Load Movie Function - - Help
- Started
- Last post
- 5 Responses
- Blaytont
Flash beginner trying to use the Load Movie function. I know how to control the Load Movie function using buttons...But how does one load a movie onEnterFrame.. so that the movie load when you first hit the site??
Thanks in advance for your help!
- skonge0
Put the loadmovie script in the first frame of your first scene.
- skonge0
maybe?
- unformatted0
yep.
- autonoma0
onEnterFrame is a loop that, you guessed it, loops every frame. So, for that reason, you should never use onEnterFrame to load a movie because it would reload it every loop, unless you used an if statement.
- drubynum0
First create an empty movie clip - just go under Insert>New Symbol and name it "loader" or something. Then drag it from your library and place it somewhere just off the stage, I usually put them on the top left of the stage. It doesn't really matter where. Next, select the movie clip and attach the following:
onClipEvent (load) {
loadMovieNum("yourMovie.swf",1);
}That should work unless the movie being loaded is not the same size as the movie you're loading it into. Let me know and I can help if that's the case. Good Luck!