# GetRemote, why it doesnt work in AS3?

**URL:** <https://forum.kirupa.com/t/getremote-why-it-doesnt-work-in-as3/248779>\
**Category:** flash\
**Created:** [January 11, 2008, 2:15pm UTC](https://forum.kirupa.com/t/getremote-why-it-doesnt-work-in-as3/248779 "2008-01-11T14:15:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenz82](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@lorenz82](https://forum.kirupa.com/u/lorenz82)\
**Post date:** [January 11, 2008, 2:15pm UTC](https://forum.kirupa.com/t/getremote-why-it-doesnt-work-in-as3/248779/1 "2008-01-11T14:15:44Z")

</div>

Hi i have tried this code on AS3:

```php
var nc:NetConnection = new NetConnection(); 
nc.connect("rtmp://localhost/SOSample"); 
var so:SharedObject = SharedObject.getRemote("Chat", nc.uri);  
so.connect(nc); 

function sendMessage():void{     
    history.appendText(so.data.chatMessage + "
"); 
    so.data.chatMessage = message.text; 
    } 
sendMessage();}

```

It is weird becouse if i convert the code in AS2 it works, but in AS3 it seems like the getremote doesnt send message to the server, so 2 clients can not comunicate.  
I tried this with RED5 but i think with FMS would be the same. Someone knows why?
