Movie clips can be set up to go in two ways. Either you can drag and drop an instance of the movie clip to the stage, or you can use action script to initiate an instance of that clip during run time.
I suggest for you, since you’re new and it will require less work on your part that you do the former.
so… create a new blank layer on your timeline and select the first frame. Click and drag a copy of the movie clip to the stage, and let it go.
Open your “instance” panel. (menu option
“Window/Panels/Instance”.
Select the movie clip if it is not already selected, using the black arrow tool.
In the instance panel, type in a unique identifier for this movie clip. (Hint: it doesn’t technicaly have to be unique. You could use the same name as the movie clip has in the library, as long as you were only going to have one instance of this movie clip on the stage.)
As long as you’ve placed a
stop();
action on the first frame of that movie clip it will sit in it’s first frame state for as long as you like.
To start it up, ie to get it to play, we have only to call out it’s name and give it a command.
This is taking into account that the movie clip is on the main timeline, not inside another movie clip, and that it has been given the “instance” name of “myMovieClipMenu”, in the instance panel.
if I had a button anywhere in the movie, even inside another movie clip, I could place this code on it to control our movie clip
on(release){
_root.myMovieClipMenu.play();
}
the “_root” tells our Flash player to look for the object called myMovieClipMenu (case sensitive), on the main timeline; and to tell it to start playing from wherever it’s playhead is currently located. In our case, frame 1.
You could place the following code in any frame of any timeline in your movie and it would have the same effect upon our movie clip.
_root.myMovieClipMenu.play();
you can likewise use any of the other basic control commands that you see in your action panel. (when you click on the plus symbol).
so
_root.myMovieClipMenu.stop();
or
_root.myMovieClipMenu.gotoAndPlay(“begin”);
or
_root.myMovieClipMenu.gotoAndStop(20);
etc
Keep in mind, you probebly will have to turn on “expert” mode to enter the lines of code as I’m showing them to you. That is under the options pull down in the upper right corner of the action panel. Get used to switching back and forth. Some things just can’t be done with the basic action panel.
Now… I know what you’re going to run into ahead of time, because I’ve done a couple dozen of these menus. You’re going to do an “on(rollOver){}” to have the menu pop out. But you’re not going to be able to have a button that extends over the button items in the menu (otherwise you can’t click on them), and if you don’t then the menu is going to colapse to it’s shrunken state once you roll off of the button’s hit state.
When you encounter this, you’ll be ready for another post probebly. The above should take you a while to get right.