# How to play animation only once for return visitors?

**URL:** <https://forum.kirupa.com/t/how-to-play-animation-only-once-for-return-visitors/286151>\
**Category:** flash\
**Created:** [April 10, 2009, 8:31pm UTC](https://forum.kirupa.com/t/how-to-play-animation-only-once-for-return-visitors/286151 "2009-04-10T20:31:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatPluto](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fatpluto/32/2874_2.png) [@fatPluto](https://forum.kirupa.com/u/fatPluto)\
**Post date:** [April 10, 2009, 8:31pm UTC](https://forum.kirupa.com/t/how-to-play-animation-only-once-for-return-visitors/286151/1 "2009-04-10T20:31:33Z")

</div>

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…
