Re: shared object question
Quote:
Originally posted by maydays
local_data = SharedObject.getLocal("once_data");
stored_once = once_data.data.once;
if (once_data.data.once == "2") {
this.gotoAndStop(50);
}
Take a look at the 2nd line:
code:
stored_once = once_data.data.once;
once_data is the name of your file and NOT the name of the shared object, which is local_data. Therefore, your second line should be:
code:
stored_once = local_data.data.once;
and ur if statement should read:
code:
if (local_data.data.once == "2") {
this.gotoAndStop(50);
}
or simply:
code:
if (stored_once == "2") {
this.gotoAndStop(50);
}