Skip to main content
July 15, 2006
Question

How to load a movie once?

  • July 15, 2006
  • 1 reply
  • 212 views
I'm building a site where each "page" is a stopped frame.

Frame 1 is the preloader which when loaded, goes to and Stops frame 3 which is "home" of my movie.

On the Home frame I have the action script and loader to stream an flv movie and it loads a movie using the NetStream. The movie is basically a "welcome and this is what my site is all about" kind of thing.

How do I get that movie to only play if the user is coming from Frame 1 (the preloader) and not if they're returning to the home frame from elsewhere?
This topic has been closed for replies.

1 reply

Participating Frequently
July 15, 2006
The first time the flv is played set a variable to true, such as:

var moviePlayed:Boolean = true;

and on each visit to frame 3, check the value of the variable to see if the flv should be played or not.