Hi there, please help

 

How can I watch remote Shared Object changes with FMS 2 and Flex 2? And how can I detect “success” or “change” call type as it’s declared in documentation?

 

I'm trying something like this:

      {

      _people = SharedObject.getRemote(“people”, _server.uri);

      _people.addEventListener(SyncEvent.SYNC, syncPeopleHandler);

      _people.connect(_server);

      }

 

      private var _first:Boolean = false;

 

      private function syncPeopleHandler(event:SyncEvent):void {

            if (_first) {

                  var items:Array = _people.data.items;

                  if (items == null) {

                        items = new Array();

}

                  items.push(getMyName());

                  _first = true;

                  _people.data.items = items;

            }

            else {

                  /////// DOESN’T COME HERE

                  var items:Array = _people.data.items;

                  appendLog(“People: ” + items);

            }

      }

     

Thanks,

Mozilla By

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to