Yeah yeah, Shared Objects

I have read all the forums and tutorials on the net, but I cannot find a solution to my Shared Objects problem.

I have an animation in the main timeline, from frame 1 to 15.

I only want to let the user see the animation once. The second time he views it it should gotoAndStop at frame 15.

Now I figure Shared Objects would work but I’m having difficulty.

Heres my code:

Frame1:
user = SharedObject.getLocal(“user_profile”);

if (user.data.name == undefined){
_root.gotoAndPlay(2);
} else {
firstname = user.data.firstname;
gotoAndStop(15);
}

Frame 15:
stop ();
user.data.firstname = firstname;

Thanks guys. :hugegrin: