Skip to main content
Participant
July 30, 2008
Question

Using Cookies to decide whether to play intro or not

  • July 30, 2008
  • 1 reply
  • 369 views
Is there a way to leave a cookie so when the users return a second or third time the flash file skips to the end of the animation.

My experience with cookies is nil so if anyone could provide some info that would be great.

Thanks in advance.
This topic has been closed for replies.

1 reply

Participant
July 30, 2008
here's is the actionscript i'm trying to use. It does what i want when i test the movie, but in my browser it plays straight through every time.

var so:SharedObject = SharedObject.getLocal("000");
if (so.size == 0)
{
gotoAndPlay('start');
}else{
gotoAndPlay('end');
}
so.flush();
Inspiring
July 31, 2008
I don't see you store any data in you cookie. How does it know what visit it is? Perhaps the following code will work.
Participant
July 31, 2008
after some research i found this code which works well in safari but in Firefox it skips to the middle of the movie instead of the end label