PDA

View Full Version : Very basic - 2 buttons and 2 movieclips


BevD
05-15-2004, 05:42 AM
Hello,

I have 2 buttons which initiate 2 movie clips.

I have put the first button in frame 1 with a stop command and the corresponding movie clip in frame 2 (both on the same timeline). I have attached the following script to the button:

on (release) {
_root.dropMenu.play();

}

where dropMenu is the instance name of the movie clip that I want the button to initiate.

Problem is that is doesn't work! Is this the correct thing to do? On my second button I attach a script which tells it to goto and play a specific frame which contains the corresponding movie clip. This seems to work but it initiates both the movie clips - not just the one I want it to!

Any help most appreciated.
Thanks

Ricod
05-17-2004, 05:04 AM
It probably doesn`t work because Flash can`t find the mc, since it`s not there yet, on frame 1. So, you can either put the mc on frame 1 too, or use :
_root.gotoAndPlay(2);

To prevent a mc from playing right away, put a stop(); on the first frame.