# Catching the shared object.send

**URL:** <https://forum.kirupa.com/t/catching-the-shared-object-send/331032>\
**Category:** Uncategorized\
**Created:** [April 29, 2013, 6:47pm UTC](https://forum.kirupa.com/t/catching-the-shared-object-send/331032 "2013-04-29T18:47:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickyhay](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rickyhay](https://forum.kirupa.com/u/rickyhay)\
**Post date:** [April 29, 2013, 6:47pm UTC](https://forum.kirupa.com/t/catching-the-shared-object-send/331032/1 "2013-04-29T18:47:23Z")

</div>

Hey All, I am using the remote shared object to broadcast a message to all clients subscribed using the send.nethod(). I copied the majority of the code from a tutorial. However, when I run the code the callback is not invoked. I have tried using the responder class it the client code but it never worked. This is the error I receive when I run the program: Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.SharedObject was unable to invoke callback myTest. error=ReferenceError: Error #1069: Property myTest not found on flash.net.SharedObject and there is no default value.I don’t understand this error. I show you my code underneath I use both client-side and server-side. The problem maybe obvious to you but plz pinpoint where I am going wrong thanks! import flash.net.NetConnection;  
import flash.events.NetStatusEvent;  
import flash.net.SharedObject;  
importflash.events.MouseEvent; var nc:NetConnection = new NetConnection();  
nc.connect(“rtmfp://localhost/msgSend”);  
var so:SharedObject = SharedObject.getRemote(“mySo”, nc.uri, false);  
so.connect(nc);  
btn\_Two.addEventListener(MouseEvent.CLICK, btnMsg);  
function btnMsg(event:MouseEvent):void{  
so.send(“myTest”, “This is a test”);  
}  
Server-Side  
application.onAppStart = function(){ this.so = SharedObject.get(“myTest”, false); this.so.myTest = function(msg){ application.onConnect = function(clientObj);
