Skip to main content
Participant
March 26, 2009
Question

sharedObjects will not sync

  • March 26, 2009
  • 2 replies
  • 550 views
I am in the process of moving from as2 to as3...it would seem that they did something to the shared objects and my line so.onSync(nc); does not work anymore. Is there something like this in as3 or something new and different I can't get the objects to go to the server...the name shows but the array i am sending will not. Please and thank you.
    This topic has been closed for replies.

    2 replies

    Participant
    March 27, 2009
    Now this is a very good post but i have eventlieners on my net connection so where would i go about do this now?
    March 27, 2009
    In AS3, add a listener for the NetStatusEvent.NET_STATUS event:

    var so:SharedObject = SharedObject.getRemote("foo", netConnection.uri, false);
    so.addEventListener(NetStatusEvent.NET_STATUS, doSomething);
    so.connect(netConnection)

    function doSomething(event:SyncEvent){
    //add your sync handling code here
    }