When opening a SharedObject Flash will use it soley from memory. You can
call Flush to commit the data to disk, but it doesn't reload data from disk.
I think getting a unique reference to the object each time should work, but
only if all other references have been closed. Try deleting a reference as
soon as you've called Flush and are done using it.
good luck!
Tyler
On 5/17/06, Jason Saelhof <[EMAIL PROTECTED]> wrote:
I did try getting a reference to the Shared Object again using...
myVar = SharedObject.getLocal( ... );
... but it didn't seem to help. I basically set it up so that each time
it tried to read from the object it would get a new reference first.
Jason
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: Wednesday, May 17, 2006 3:17 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Local Shared Objects
Did you try setting your variable to the shared object again after the
change?
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Jason Saelhof
> Sent: Wednesday, May 17, 2006 2:00 PM
> To: [email protected]
> Subject: [Flashcoders] Local Shared Objects
>
> Hi everyone,
>
>
>
> I'm trying to get a Local Shared Object (LSO) to share data between 2
> flash windows. The first movie creates the LSO and can write
> to it. The
> second movie can then get a reference to the shared object
> and read the
> data set by movie 1. The problem occurs when movie 2 tries to change
> that data and flush it to the disk. Movie 1 doesn't get the
> change. If I
> close movie 1 and re-open it, it can now see the changes.
> This makes me
> think that each instance of the Flash Player is working from
> a "cached"
> copy of the LSO. Can anyone confirm this behavior? Does anyone know a
> way to force the movies to always refer to the disk when
> reading values
> from the LSO?
>
>
>
> Jason.
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com