PDA

View Full Version : How to play animation only once for return visitors?



fatPluto
April 10th, 2009, 05:31 PM
Hi,

I'm not sure how to go about this: I'm building an animation on the home page of a site that I think people shouldn't have to watch more than once. So, if they've already been on the home page and now they've clicked back to it a second time, I'd like to have the animation not play through again. Is this a good case for a cookie? Maybe I could set a flashVar that reads in the header or referring page, and if it's =="same domain" don't play animation???

thanks...

Digitalosophy
April 10th, 2009, 06:49 PM
Storing a Flash cookie would be the best approach for something like this.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html

fatPluto
April 15th, 2009, 03:23 PM
Storing a Flash cookie would be the best approach for something like this.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html

I'll have a look. thanks a lot!