|
-
Detecting if Movie has been played before?
Is there any way in MX to detect if a movie has previously been played and if so, to skip to a certain frame?
Thanks for any help in advance.
-
stop();
myLocalSO = sharedobject.getLocal("flashcookie" );
if (myLocalSO.data.cookie == "foo") {
trace("You've been here before.");
} else {
trace("this is the first time this movie has been played on this computer");
}
myLocalSO.data.cookie = "foo";
to reset it, change the value of cookie on the way out, so that when the user relads, it's no longer equal to foo.
-
-
Where do i put this in my movieclip? and what do i rename to make so it works for mine?
-
@ gamevice
this topic is not about an mc but a flash project on the internet.
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
|