jess
July 5th, 2004, 01:21 PM
:beer: Salut salut !
I create and populate a sharedobject in A.swf, like this :
var myCookie = SharedObject.getLocal("user_profile");
if (myCookie.data.firstname == undefined) {
myCookie.data.firstname = "cowboy";
myCookie.flush();
}
else {
myCookie.data.firstname = "cowgirl";
myCookie.flush();
}
I want to retrieve this stored data, in B.swf, which is located beside A.swf, like this :
var myCookie = SharedObject.getLocal("user_profile");
myTextfield.text = myCookie.data.firstname;
The problem is that I always get "undefined" in place of "cowboy" or "cowgirl".
:ogre:
What I'm doing wrong ?
thxx a lot :)
I create and populate a sharedobject in A.swf, like this :
var myCookie = SharedObject.getLocal("user_profile");
if (myCookie.data.firstname == undefined) {
myCookie.data.firstname = "cowboy";
myCookie.flush();
}
else {
myCookie.data.firstname = "cowgirl";
myCookie.flush();
}
I want to retrieve this stored data, in B.swf, which is located beside A.swf, like this :
var myCookie = SharedObject.getLocal("user_profile");
myTextfield.text = myCookie.data.firstname;
The problem is that I always get "undefined" in place of "cowboy" or "cowgirl".
:ogre:
What I'm doing wrong ?
thxx a lot :)