Hi,
I feel bad contradicting Flash Coders readers, but 2 different swf's
cannot read the same LSO.
Macromedia Technote:
Shared Objects are used to store data on the client machine in much
the same way that data is stored in a cookie created through a web
browser. The data can only be read by movies originating from the
same domain that created the Shared Object.
If you want 2 swf's open at the same time to communicate, use a
localConnection
Macromedia Technote:
You can use local connection objects to develop Macromedia Flash MX
movies that can send instructions to each other without the use of
FSCommand or JavaScript. Local connection objects can communicate
only between movies that are running on the same client machine, but
they can be running in two different applications—for example, a
Macromedia Flash MX movie running in a browser and a Macromedia Flash
MX movie running on a desktop. You can use local connection objects
to send and receive within a single movie, but this is not a standard
implementation; all the examples in this article illustrate
communication between different movies.
Greetz,
Sander.
On 20 May 2006, at 05:15, Tyler Wright wrote:
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
_______________________________________________
[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