logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

RE: Understanding persistent remote sharedObjects: msg#00660

Subject: RE: Understanding persistent remote sharedObjects
I think you cant use
remote_so.data.num=1
You need to use a var
Like
X=1;

remote_so.data.num=x

Try that


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx] On 
Behalf Of Michael
Kרnig
Sent: Thursday, April 28, 2005 3:45 PM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
Subject: [FlashComm] Understanding persistent remote sharedObjects 


I am trying to make a persistent remote shared object on my FCS for the 
first time and I am a little confuesed.

If I create a  persistent remote shared object, its data will exist
AFTER 
all clients have disconected and even AFTER the servere is reloaded
right?

I call this function from an swf and keep getting a 1 in my trace. Why 
doesnt it increase every time i publish the file?? (I traced
connCheck_so 
which returns true, so the connection is working)

getRemoteSharedObject=function(){
        remote_so = SharedObject.getRemote("foo", client_nc.uri, true);
        connCheck_so=remote_so.connect(client_nc);
        if(remote_so.data.num==undefined){
                remote_so.data.num=1
        }else{
                remote_so.data.num=remote_so.data.num+1
        }
        trace(remote_so.data.num)
}

What happends if you call gerRemote for the first time i.e. the
persistent 
remote shared object doesnt exist?

/Michael

_________________________________________________________________
Fו alle de nye og sjove ikoner med MSN Messenger
http://messenger.msn.dk/


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm



<Prev in Thread] Current Thread [Next in Thread>