SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Not syncing

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    0 Post(s)
    0 Thread(s)

    Not syncing

    I hope this correct forum to post this question. In ActionScript 3 am using a remote shared object for the first time in my application. Basically, my aim is to store a list of all users who are connected. Whenever, a user disconnects the object is updated to all clients connected. In the code below I am trying to sync users in a array that describes the changes of the clients. However, the sample nothing is triggered, no sync, no events, no exceptions, no nothing. I am somewhat confused how to do this Any help will be greatly appreciated!

    Code Actionscript:
    var so:SharedObject = SharedObject.getRemote("myUserList", nc.uri, false);
    so.addEventListener(SyncEvent.SYNC, onSyncHandler);
    function onSyncHandler(event:SyncEvent):void{
    	var object:Object = new Object();
    	for(var i = 0; i <changeList.length; i++){
    		info = changeList[i];
    		case "Success":
    		case "Clear":
    		case "Change":
    Last edited by ScallioXTX; May 23, 2013 at 03:04.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts