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.
Printable View
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.
Thanks!
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.