deleting temporary shared objects
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > deleting temporary shared objects




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    deleting temporary shared objects  
Todd Coulson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-05 10:45 PM

I have used Peldi's UserManager app from his coding caf=E9.  I also =
added onto it by giving it another shared object for animation of some =
objects in the scene.   But I am trying to clear a temporary remote =
shared object from a system, so that my computer will think it is the =
first time visiting a project (this is because computers visiting for =
the first time can connect to the shared object, but they do not run =
onSync anytime after the initial connection to the shared object).  That =
way I can determine when to call a flush command (I think it is a flush =
like command that I need to get the SO to be recognized for these new =
users). =20

=20

Here is the project as it stands:

http://www.myhaleypro.com/holiday/test.html

=20

if you go to it, click on the scroll, once the card has gone away.  Then =
click on the pen to become the current writer of the application.  Then =
try to post to the database.  The first time users have not been able to =
post (because the system for some reason cannot see the most relevant SO =
data.  But if they refresh or come back to the application later, then =
it will let them post the way we want the application to run. =20

=20

If you need to see any of my code it is online at:

=20

http://tc.haleypro.com/holiday.zip

=20

and I have been posting furiously the last two days on ultrashock to get =
answers too:

http://forums.ultrashock.com/forums...D76711&goto=3D=
newpost

=20

but came up against a roadblock there too. =20

=20

Thanks in advance for any help you can lend or suggestions you might =
have.

=20


=-----------------------------------------------------------
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






[ Post a follow-up to this message ]



    RE: deleting temporary shared objects  
Stefan Richter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-05 10:45 PM


Do you want to identify when a user visits your app for the first time =
but
currently that check fails?

What do you mean by 'clear a temporary remote shared object from a =
system' ?

What system? Why store any such info in a non-persistent remote SO - =
that
seems to make no sense.

If I had to determine if a user has visited my app before I would try =
and
read a local sharedobject. If its value is undefined it must be her =
first
visit. Upon first vist write some value to the local SO, sorted.

Stefan

=20

> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org=
20
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gman
e.org] On Behalf Of=20
> Todd Coulson
> Sent: 15 December 2005 16:30
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: [FlashComm] deleting temporary shared objects
>=20
> I have used Peldi's UserManager app from his coding caf=E9.  I=20
> also added onto it by giving it another shared object for=20
> animation of some objects in the scene.   But I am trying to=20
> clear a temporary remote shared object from a system, so that=20
> my computer will think it is the first time visiting a=20
> project (this is because computers visiting for the first=20
> time can connect to the shared object, but they do not run=20
> onSync anytime after the initial connection to the shared=20
> object).  That way I can determine when to call a flush=20
> command (I think it is a flush like command that I need to=20
> get the SO to be recognized for these new users). =20
>=20
> =20
>=20
> Here is the project as it stands:
>=20
> http://www.myhaleypro.com/holiday/test.html
>=20
> =20
>=20
> if you go to it, click on the scroll, once the card has gone=20
> away.  Then click on the pen to become the current writer of=20
> the application.  Then try to post to the database.  The=20
> first time users have not been able to post (because the=20
> system for some reason cannot see the most relevant SO data. =20
> But if they refresh or come back to the application later,=20
> then it will let them post the way we want the application to run. =20
>=20
> =20
>=20
> If you need to see any of my code it is online at:
>=20
> =20
>=20
> http://tc.haleypro.com/holiday.zip
>=20
> =20
>=20
> and I have been posting furiously the last two days on=20
> ultrashock to get answers too:
>=20
> http://forums.ultrashock.com/forums...p?threadid=3D76
> 711&goto=3Dnewpost
>=20
> =20
>=20
> but came up against a roadblock there too. =20
>=20
> =20
>=20
> Thanks in advance for any help you can lend or suggestions=20
> you might have.
>=20
> =20


=-----------------------------------------------------------
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






[ Post a follow-up to this message ]



    RE: deleting temporary shared objects  
Todd Coulson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-05 10:45 PM

Great information, thanks Stefan for your quick reply.

=20

I should also mention I am using Flash Comm 1.5 - not the new Media
Server.

=20

<quote>Do you want to identify when a user visits your app for the first
time but currently that check fails? </quote>

Not exactly, it is on first time visits that the user has a shared
object that connects, but then won't make any other onSync calls after
that initial onSync call.  SO I am not really trying to test to see
whether a user is on the system for the first time (although that could
be a possible work around), but rather, trying to get first time users
to recognize the shared object instance past the first connect
statement.

=20

<quote>What do you mean by 'clear a temporary remote shared object from
a system' ? </quote>

There are persistent remote shared objects that stay on the server.
There are temporary remote shared objects which I cannot determine where
they are stored (probably on the server but I cannot determine how to
remove entire references to the shared object.  I know they are
"temporary" or at least that is what the Communication App Inspector
tells me they are.  It is not getting stored as a local shared object,
because I have turned them off and it still runs like it is not the
first occurrence of the application.  There are no fso files on my
server.  So how is my computer knowing that it has been to the
application before and can read in that shared object, where new users
to the project cannot read the RSO except for the initial connect
statement?

=20

<quote>What system? Why store any such info in a non-persistent remote
SO - that seems to make no sense. </quote>

I may not have been clear, I have been trying to explain this to a
number of people, and just now and feeling like I have the right
resource.  Anyway, the "system" I am trying to refer to is the
difference between a user's system that has not connected yet (their
onSync runs exactly once after clicking on the pen).  As opposed to the
user's system who has previously disconnected or refreshed their browser
(they get the correct number of updates to onSync - it continuously
updates and displays information).  I have been told that one way to
manually write that SO data to the first user's computer would be to use
a so.flush() command, but I have tried putting that in several locations
in my code, and it never seems to help the situation. =20

=20

<quote>If I had to determine if a user has visited my app before I would
try and read a local sharedobject. If its value is undefined it must be
her first visit. Upon first vist write some value to the local SO,
sorted. </quote>

The "undefined" values that show up in the upper right hand list box are
local variables to the Shared Object that I have placed in the following
code:

<code>

a_so.onSync=3Dfunction( list ):Void{                                  =
20

_root.pen_mc.ref=3Dthis;

_root.wholeGlass.top_mc.ref=3Dthis;

this.tmpCk=3Dthis.data.allow;

this.cache=3D"?cacheKiller=3D" + new Date().getTime();

this.traceVar=3D"tmpCk: "+tmpCk+"    prevCk: "+prevCk;

_root.trace_list.addItem({label:this.traceVar});

if ((this.tmpCk!=3Dthis.prevCk && this.tmpCk=3D=3Dtrue)
||(this.tmpCk=3D=3Dundefined && this.prevCk=3D=3Dundefined)){

_root.currently._visible=3Dfalse;

=20
_root.myVars_lv.load("http://www.myhaleypro.com/um/story.php"+this.cache
);

_root.allowPenActions();

}else if (tmpCk!=3DprevCk && tmpCk=3D=3Dfalse){

_root.pen_mc.enabled=3Dfalse;

}

this.prevCk=3Dthis.data.allow;

for (var i in list){

if (list[i].code=3D=3D"change" ||
list[i].code=3D=3D"reject"){

this.owner.onChange();

break;

}

}

}

</code>

That is my shared object onSync method.  I am checking tmpCk and prevCk
to isolate a single instance when the user has taken the pen, and when
the user has returned the pen. =20

=20

I will add on the links I had in the previous post to let everyone have
access to other user groups where I have tried to explain this and to
the code I am using on the project:

=20

Project:

http://www.myhaleypro.com/holiday/test.html

=20

Source code:

http://tc.haleypro.com/holiday.zip

=20

ultrashock post:

http://forums.ultrashock.com/forums...D76711&goto=3D=
n
ewpost

=20

Thanks again, a ton for response to this.

=20

Todd Coulson

Haley Productions

604 E. Baltimore Pk.

Media, PA 19063

610-892-7970

http://www.haleypro.com

=20


=-----------------------------------------------------------
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






[ Post a follow-up to this message ]



    RE: RE: deleting temporary shared objects  
Stefan Richter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-05 10:45 PM

Sorry Todd, you lost me now...

Stefan



> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gman
e.org] On Behalf Of
> Todd Coulson
> Sent: 15 December 2005 18:30
> To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> Subject: [FlashComm] RE: deleting temporary shared objects
>
> Great information, thanks Stefan for your quick reply.
>
>
>
> I should also mention I am using Flash Comm 1.5 - not the new
> Media Server.
>
>
>
> <quote>Do you want to identify when a user visits your app
> for the first time but currently that check fails? </quote>
>
> Not exactly, it is on first time visits that the user has a
> shared object that connects, but then won't make any other
> onSync calls after that initial onSync call.  SO I am not
> really trying to test to see whether a user is on the system
> for the first time (although that could be a possible work
> around), but rather, trying to get first time users to
> recognize the shared object instance past the first connect statement.
>
>
>
> <quote>What do you mean by 'clear a temporary remote shared
> object from a system' ? </quote>
>
> There are persistent remote shared objects that stay on the server.
> There are temporary remote shared objects which I cannot
> determine where they are stored (probably on the server but I
> cannot determine how to remove entire references to the
> shared object.  I know they are "temporary" or at least that
> is what the Communication App Inspector tells me they are.
> It is not getting stored as a local shared object, because I
> have turned them off and it still runs like it is not the
> first occurrence of the application.  There are no fso files
> on my server.  So how is my computer knowing that it has been
> to the application before and can read in that shared object,
> where new users to the project cannot read the RSO except for
> the initial connect statement?
>
>
>
> <quote>What system? Why store any such info in a
> non-persistent remote SO - that seems to make no sense. </quote>
>
> I may not have been clear, I have been trying to explain this
> to a number of people, and just now and feeling like I have
> the right resource.  Anyway, the "system" I am trying to
> refer to is the difference between a user's system that has
> not connected yet (their onSync runs exactly once after
> clicking on the pen).  As opposed to the user's system who
> has previously disconnected or refreshed their browser (they
> get the correct number of updates to onSync - it continuously
> updates and displays information).  I have been told that one
> way to manually write that SO data to the first user's
> computer would be to use a so.flush() command, but I have
> tried putting that in several locations in my code, and it
> never seems to help the situation.
>
>
>
> <quote>If I had to determine if a user has visited my app
> before I would try and read a local sharedobject. If its
> value is undefined it must be her first visit. Upon first
> vist write some value to the local SO, sorted. </quote>
>
> The "undefined" values that show up in the upper right hand
> list box are local variables to the Shared Object that I have
> placed in the following
> code:
>
> <code>
>
> a_so.onSync=function( list ):Void{
>
>             _root.pen_mc.ref=this;
>
>             _root.wholeGlass.top_mc.ref=this;
>
>             this.tmpCk=this.data.allow;
>
>             this.cache="?cacheKiller=" + new Date().getTime();
>
>             this.traceVar="tmpCk: "+tmpCk+"    prevCk: "+prevCk;
>
>             _root.trace_list.addItem({label:this.traceVar});
>
>             if ((this.tmpCk!=this.prevCk && this.tmpCk==true)
> ||(this.tmpCk==undefined && this.prevCk==undefined)){
>
>                         _root.currently._visible=false;
>
>
> _root.myVars_lv.load("http://www.myhaleypro.com/um/story.php"+
> this.cache
> );
>
>                         _root.allowPenActions();
>
>             }else if (tmpCk!=prevCk && tmpCk==false){
>
>                         _root.pen_mc.enabled=false;
>
>             }
>
>             this.prevCk=this.data.allow;
>
>             for (var i in list){
>
>                         if (list[i].code=="change" ||
> list[i].code=="reject"){
>
>                                     this.owner.onChange();
>
>                                     break;
>
>                         }
>
>             }
>
> }
>
> </code>
>
> That is my shared object onSync method.  I am checking tmpCk
> and prevCk to isolate a single instance when the user has
> taken the pen, and when the user has returned the pen.
>
>
>
> I will add on the links I had in the previous post to let
> everyone have access to other user groups where I have tried
> to explain this and to the code I am using on the project:
>
>
>
> Project:
>
> http://www.myhaleypro.com/holiday/test.html
>
>
>
> Source code:
>
> http://tc.haleypro.com/holiday.zip
>
>
>
> ultrashock post:
>
> http://forums.ultrashock.com/forums...php?threadid=76
> 711&goto=n
> ewpost
>
>
>
> Thanks again, a ton for response to this.
>
>
>
> Todd Coulson
>
> Haley Productions
>
> 604 E. Baltimore Pk.
>
> Media, PA 19063
>
> 610-892-7970
>
> http://www.haleypro.com
>
>
>
>
> =---------------------------------------------------------
> 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






[ Post a follow-up to this message ]



    RE: RE: deleting temporary shared objects  
Todd Coulson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-15-05 10:45 PM

Stefan, I need more to go on than "You lost me".  Your other email was a
lot more helpful. =20

Todd Coulson
Haley Productions
604 E. Baltimore Pk.
Media, PA 19063
610-892-7970
http://www.haleypro.com


=-----------------------------------------------------------
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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register