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

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?