# Playing Flash movie once per visit

**URL:** <https://forum.kirupa.com/t/playing-flash-movie-once-per-visit/325118>\
**Category:** flash\
**Created:** [September 27, 2011, 12:45pm UTC](https://forum.kirupa.com/t/playing-flash-movie-once-per-visit/325118 "2011-09-27T12:45:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![h3d0](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@h3d0](https://forum.kirupa.com/u/h3d0)\
**Post date:** [September 27, 2011, 12:45pm UTC](https://forum.kirupa.com/t/playing-flash-movie-once-per-visit/325118/1 "2011-09-27T12:45:05Z")

</div>

I have a website that consists of 3 pages - About, Services, Contacts (every page is a separate html file). I have the same flash movie embed to every page (animated header intro). I want flash intro to play once and then stop. User can browser through these 3 pages, but flash shouldn’t play anymore. Only if user closes the whole website (a browser, or a tab) the flash should refresh, and after user enters the website again it will play again once and stop.

Tell me please, how can I achieve this? Should I use cookies or a SharedObject or something else to store the variable whether to play flash or not?
