Using sharedObject... 2004-03-03 - By Clint Little
Back Hey all.
I am working with the sharedObject class and having some stuff I am just not following happen. I make a connection to the flashComm with no problems (get a connection success message).
Once the connection is made, I setup my sharedObject like this:
this.so = SharedObject.getRemote("graphInfo", netConnect.uri, true); this.so.connect(netConnect);
Then in an input window I type some text, press a button, and the click of that button is to change the data property of my sharedObject like this:
// Set Shared Object this.so.data["aPlace"] = textInfo;
So from my understanding, once this happens, a onSync event is to occur where I can then check the status code and handle properly. The problem is I am not getting any onSync event. Here is the code for that check.
this.so.onSync = function(shareInfo:Object){
trace( "Synchronizing Data");
for (name in shareInfo){ switch (shareInfo[name].code){ case "change": trace("Change"); case "success": trace("Success"); case "reject": trace("Reject"); case "clear": trace("Clear"); case "delete": trace("Delete"); } }
Could someone please help me with this?
Thanks,
-- Clint
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
|
|