|
-
shared object question
I have a .SWF file that is a navigational menu on a page, menu has several links and it is inserted in several HTML's ... there are some animations in this movie before the actual link buttons appear. So, a user comes, the animation plays, the links appear and he clicks on any of the links, in the next HTML, where the same movie is inserted, i want the animation to be take directly to a specific keyframe without having to play what's ahead of that keyframe.
I know that this is possible with some javascript, but i have tried with .SOL files, so i have the following script :
in frame 1:
code:
local_data = SharedObject.getLocal("once_data");
stored_once = once_data.data.once;
if (once_data.data.once == "2") {
this.gotoAndStop(50);
}
in last frame i have:
code:
local_data.data.once = "2";
local_data.flush ();
i have checked, the .SOL object is created, i have looked inside the file, and value "2" is there.
the problem is that when cliked on any of the links from the movie, the entire animation plays from beginning and doesen't care about my "if" from above.
anybody could tell me what i have done wrong ?
thank you very much.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|