  | |  | using SharedObjects at same time in different movies | using SharedObjects at same time in different movies
2004-02-16 - By Martin Fleck
Back
hello list,
i have some problems using a SharedObject at same time in different
movies. When updating one SharedObject, the other gets not updates. Does
anybody know why this happens?
Sample code from "movie1.swf ":
this.so = SharedObject.getLocal ( "test ", "/ ");
this.onMouseDown = function () {
this.so.data.value = random (999);
this.so.flush();
};
Sample code from "movie2.swf ":
this.onMouseDown = function () {
this.so = SharedObject.getLocal ( "test ", "/ ");
};
To reproduce this problem:
1) open movie1.swf
2) open movie2.swf
3) click into movie1.swf, the SharedObject gets written with a random
value
4) click into movie2.swf, the value is visible in the SharedObject
5) click again in movie1.swf, a new random value was written
6) click again in movie2.swf, the SharedObject has still the old value!
Why?
Thanks for your help!
--
Martin Fleck
Powerflasher GmbH | Tel: +49(0)241 91880-230
> Drehturm < | Fax: +49(0)241 91880-239
Belvedereallee 5 | Mail: mf@(protected)
D-52070 Aachen | http://www.powerflasher.de
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104340
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |