Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop animation from replaying 1

Status
Not open for further replies.

JeffStoker

Technical User
Aug 21, 2003
9
US
When a visitor exits an .html page containing a flash animation, then returns to it via link or browser "back" button, how can I prevent animation from replaying??
What I want to do is detect that visitor has already viewed that page and communicate to flash movie so it can react accordingly.
Thanks All!
 
You could use a sharedObject, a SO (cookie like), assuming they were not disabled on the user machine...

This tutorial does explain exactly what you're looking for:


Regards,

cubalibre2.gif
 
Thanks, Oldnewbie. That tutorial is exactly what I need. I'm so used to Flash 5 (like an old pair of shoes), I've been putting off MX. Guess it's time to drag myself into the new milenium; break in that new pair of shoes.

Thanks again
 
stop();

mySO = sharedObject.getLocal("3by7intro");
returned = mySO.data.viewed;
if(returned == "yes"){
gotoAndStop(540);
trace (returned);
}else{
mySO.data.viewed = "yes";
mySO.flush();
gotoAndPlay(4);
trace ("not yes");
}

This is the simplified version of the script I have on frame(1) of the main timeline. It works correctly when I test movie, but does not work online or on .html page on local system. Can any of you experts steer this wannabe in the right direction??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top