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);