From: "dan" <dan-zpb3JjKVF03RNpEZXGUFxA@xxxxxxxxxxxxxxxx>
Reply-To: FlashComm Mailing List
<flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx>
To: "'FlashComm Mailing List'"
<flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx>
Subject: RE: [FlashComm] Understanding persistent remote sharedObjects
Date: Thu, 28 Apr 2005 16:34:18 +0200
Well first use the onsync function
Like
remote_so = SharedObject.getRemote("foo", client_nc.uri, true);
remote_so.connect(client_nc);
var x=1;
remote_so.onSync = function(){
if(remote_so.data.num==undefined){
remote_so.data.num=x;
}else{
X=x+remote_so.data.num;
remote_so.data.num=x;
}
}
-----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 4:13 PM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx
Subject: RE: [FlashComm] Understanding persistent remote sharedObjects
like this u mean:
getRemoteSharedObject=function(){
remote_so = SharedObject.getRemote("foo", client_nc.uri, true);
myCheck=remote_so.connect(client_nc);
var x=1
if(remote_so.data.num==undefined and myCheck){
remote_so.data.num=x
}else{
remote_so.data.num=remote_so.data.num+1
}
trace(remote_so.data.num)
}
that wont work either....
>From: "dan" <dan-zpb3JjKVF03RNpEZXGUFxA@xxxxxxxxxxxxxxxx>
>Reply-To: FlashComm Mailing List
<flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx>
>To: "'FlashComm Mailing List'"
<flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@xxxxxxxxxxxxxxxx>
>Subject: RE: [FlashComm] Understanding persistent remote sharedObjects
>Date: Thu, 28 Apr 2005 16:17:06 +0200
>
>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
_________________________________________________________________
Undgå pop-ups med MSN Toolbar - http://toolbar.msn.dk/ hent den gratis!
=-----------------------------------------------------------
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