title: Flashvars to stop flash movie reloading on page reload
body: <p>I have a flash banner on every page in my site. I want it to continue playing rather than reloading when users change pages. Ive read that this can be achieved using flashvars, however, its been quite some time since I did any actionscripting. I've tried looking up tutorials to no avail. Can someone point me in the right direction please.</p>
  
  <p><strong>UPDATED</strong></p>
  
  <p>Thanks for your comments. I have this on frame 1 of my fla file now:</p>
  
  <pre><code>var mySharedObject:SharedObject = SharedObject.getLocal("displayCookie");
  if(mySharedObject.data.displayed == true){
  gotoAndPlay(currentFrame); 
      trace("cookie found");
  }else{
      trace("cookie not found, setting it now");
      //do whatever if NOT already been played
      mySharedObject.data.displayed = true;
      mySharedObject.flush();
  }
  </code></pre>
  
  <p>But I don't know how to give the currentFrame the value it had at the time the page was refreshed. How do I put that in there?</p>
  
  <p>Sorry for my noobness</p>