A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Detecting if Movie has been played before?

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Posts
    2

    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.

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Posts
    199
    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.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Posts
    2
    Thanks!

  4. #4
    Junior Member
    Join Date
    Mar 2010
    Posts
    14
    Where do i put this in my movieclip? and what do i rename to make so it works for mine?

  5. #5
    Senior Member
    Join Date
    Mar 2010
    Posts
    157
    @ 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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center