|
Home > Archive > Macromedia Flash Server > April 2005 > Understanding persistent remote sharedObjects
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Understanding persistent remote sharedObjects
|
|
| Michael Kønig 2005-04-28, 5:45 pm |
| 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
| |
|
| I think you cant use
remote_so.data.num=3D1
You need to use a var
Like
X=3D1;
remote_so.data.num=3Dx
Try that
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Michael
K=F8nig
Sent: Thursday, April 28, 2005 3:45 PM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: [FlashComm] Understanding persistent remote sharedObjects=20
I am trying to make a persistent remote shared object on my FCS for the=20
first time and I am a little confuesed.
If I create a persistent remote shared object, its data will exist
AFTER=20
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=20
doesnt it increase every time i publish the file?? (I traced
connCheck_so=20
which returns true, so the connection is working)
getRemoteSharedObject=3Dfunction(){
remote_so =3D SharedObject.getRemote("foo", client_nc.uri, true);
connCheck_so=3Dremote_so.connect(client_nc);
if(remote_so.data.num=3D=3Dundefined){
remote_so.data.num=3D1
}else{
remote_so.data.num=3Dremote_so.data.num+1
}
trace(remote_so.data.num)
}
What happends if you call gerRemote for the first time i.e. the
persistent=20
remote shared object doesnt exist?
/Michael
________________________________________
_________________________
F=E5 alle de nye og sjove ikoner med MSN Messenger
http://messenger.msn.dk/
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
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
| |
| Michael Kønig 2005-04-28, 5:45 pm |
| 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@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: "'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>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@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Michael
>Kønig
>Sent: Thursday, April 28, 2005 3:45 PM
>To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>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
| |
|
| Well first use the onsync function
Like
remote_so =3D SharedObject.getRemote("foo", client_nc.uri, true);
remote_so.connect(client_nc);
var x=3D1;
remote_so.onSync =3D function(){
if(remote_so.data.num=3D=3Dundefined){
remote_so.data.num=3Dx;
}else{
X=3Dx+remote_so.data.num;
remote_so.data.num=3Dx;
}
}
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Michael
K=F8nig
Sent: Thursday, April 28, 2005 4:13 PM
To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
Subject: RE: [FlashComm] Understanding persistent remote sharedObjects
like this u mean:
getRemoteSharedObject=3Dfunction(){
remote_so =3D SharedObject.getRemote("foo", client_nc.uri, true);
myCheck=3Dremote_so.connect(client_nc);
var x=3D1
if(remote_so.data.num=3D=3Dundefined and myCheck){
remote_so.data.num=3Dx
}else{
remote_so.data.num=3Dremote_so.data.num+1
}
trace(remote_so.data.num)
}
that wont work either....
>From: "dan" <dan-zpb3JjKVF03RNpEZXGUFxA@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: "'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>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=3D1
>You need to use a var
>Like
>X=3D1;
>
>remote_so.data.num=3Dx
>
>Try that
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Michael=20
>K=F8nig
>Sent: Thursday, April 28, 2005 3:45 PM
>To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>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=20
>AFTER all clients have disconected and even AFTER the servere is=20
>reloaded right?
>
>I call this function from an swf and keep getting a 1 in my trace. Why=20
>doesnt it increase every time i publish the file?? (I traced=20
>connCheck_so which returns true, so the connection is working)
>
>getRemoteSharedObject=3Dfunction(){
> remote_so =3D SharedObject.getRemote("foo", client_nc.uri, true);
> connCheck_so=3Dremote_so.connect(client_nc);
> if(remote_so.data.num=3D=3Dundefined){
> remote_so.data.num=3D1
> }else{
> remote_so.data.num=3Dremote_so.data.num+1
> }
> trace(remote_so.data.num)
>}
>
>What happends if you call gerRemote for the first time i.e. the=20
>persistent remote shared object doesnt exist?
>
>/Michael
>
> ________________________________________
_________________________
>F=E5 alle de nye og sjove ikoner med MSN Messenger=20
>http://messenger.msn.dk/
>
>
>=3D-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D-----------------------------------------------------------
>
>To change your subscription options or search the archive:=20
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
>=3D-----------------------------------------------------------
>Supported by Fig Leaf Software - http://www.figleaf.com
>=3D-----------------------------------------------------------
>
>To change your subscription options or search the archive:=20
>http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
________________________________________
_________________________
Undg=E5 pop-ups med MSN Toolbar - http://toolbar.msn.dk/ hent den =
gratis!
=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------
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
| |
| Michael Kønig 2005-04-29, 7:45 am |
|
ofcourse - thankyou!
>From: "dan" <dan-zpb3JjKVF03RNpEZXGUFxA@public.gmane.org>
>Reply-To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>To: "'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
>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@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Michael
>Kønig
>Sent: Thursday, April 28, 2005 4:13 PM
>To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>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....
>
>
>
> ________________________________________
_________________________
>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
________________________________________
_________________________
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
| |
| Bill Sanders 2005-04-29, 7:45 am |
| Mike,
A while back I put together a little "chapter" along with a FLA on=20
using server side persistent shared objects. It's available in a Zip=20
file at:
http://nemo.hartford.edu/~wsanders/SerSidePSO.zip
HTH,
Bill
On Apr 29, 2005, at 5:12 AM, Michael K=F8nig wrote:
>
> ofcourse - thankyou!
>
>
sharedObjects[vbcol=seagreen]
sharedObjects[vbcol=seagreen]
true);[vbcol=seagreen]
Michael[vbcol=seagreen]
[vbcol=seagreen]
[vbcol=seagreen]
true);[vbcol=seagreen]
>
> ________________________________________
_________________________
> Undg=E5 pop-ups med MSN Toolbar - http://toolbar.msn.dk/ hent den=20
> gratis!
>
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
=-----------------------------------------------------------
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
|
|
|
|
|