Big_Al
February 23rd, 2003, 07:48 PM
Is it possible to access the same shared object from different flash movies. I am trying this, and I put the exact same code to access the shared object in the first frame of both movies, but when I update the SO in one of the movies, the other one does not reflect the change. Both movies are in the same folder. Any ideas?
Since it is called a "shared object, I would think that more than one movie could access it, but what do I know. :smirk:
I don't know if it matters, but here is the code:
// Get the user's name from the cookie
user = SharedObject.getLocal("user_profile");
// If the user has not set up a name, call them Guest. If thay have already set a name, call them that.
if (user.data.userName == undefined) {
user.data.userName = "Guest";
user.flush()
userName = "Guest";
} else {
userName = user.data.userName;
}
_root.gotoAndStop("done");
Many thanks.
Since it is called a "shared object, I would think that more than one movie could access it, but what do I know. :smirk:
I don't know if it matters, but here is the code:
// Get the user's name from the cookie
user = SharedObject.getLocal("user_profile");
// If the user has not set up a name, call them Guest. If thay have already set a name, call them that.
if (user.data.userName == undefined) {
user.data.userName = "Guest";
user.flush()
userName = "Guest";
} else {
userName = user.data.userName;
}
_root.gotoAndStop("done");
Many thanks.