Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Using sharedObject...

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)