# Don't replay movie on refresh of page - Going Absolutely Crazy

**URL:** <https://forum.kirupa.com/t/dont-replay-movie-on-refresh-of-page-going-absolutely-crazy/268961>\
**Category:** flash\
**Created:** [August 20, 2008, 10:21pm UTC](https://forum.kirupa.com/t/dont-replay-movie-on-refresh-of-page-going-absolutely-crazy/268961 "2008-08-20T22:21:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Runedro](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Runedro](https://forum.kirupa.com/u/Runedro)\
**Post date:** [August 20, 2008, 10:21pm UTC](https://forum.kirupa.com/t/dont-replay-movie-on-refresh-of-page-going-absolutely-crazy/268961/1 "2008-08-20T22:21:20Z")

</div>

Hi, total n00b here to AS3, hopefully someone can help me.

This seems like a simple script I want to write, but for the past 2 days I can’t seem to get it started…

Here’s what I want to do:

I have a flash movie that I want to play once. If someone refreshes the page, I want it to check to see if it has already been viewed that day and if so, just go to the last frame of the movie instead of playing all over again.

Here’s sort of a flowchart:

1. Start a flash cookie
2. Set a variable for a “check date” and “if viewed”
3. Check “if viewed” - no=play yes=checkdate
4. If checkdate = today=don’t play goto last frame  
newday=replay movie and set played for that day.

Make any sense?  
\<:\ HeLp plz?
