PDA

View Full Version : movie clip problem


damien_
09-25-2002, 06:40 AM
there are 5 buttons, each assigned to play a different movie clip, but is it possible to make them play a small movie clip (the same one for all) before proceeding to play the assigned movie clip?

example:
our guy goes into a lift.
then you get his hand, and five different buttons.
then what we want, after you push the button, is to:
first show a movie clip of the elevator making elevator sounds and such tings they do.
then show a movie clip of our guy reaching the destination he chose.

is there an esay way around this?

thanks.

Rupert
09-25-2002, 07:18 AM
Depending on how you have your movie set up - when you first push a button, you'll need to set a variable like _root.floorNum = 2; for instance. Then you tell your repeating animation to play and at the end of which you get it to load a particular "floor" movieClip name (or goto a particular frame) utilising the variable you set earlier as part of the name.

sfa
09-25-2002, 07:20 AM
try something like this,

on the button 1 put some code like this -

on(Press){
clip.play();
cliptoplay = "1";
}

and so on. "clip" will be the common clip you want played all the time. On the las frame of this MCs timeline put some sode like this -

_root["clip" + _root.cliptoplay].play();

and call your movie clips "clip1","clip2" and so on.

Get it?

SFA

damien_
09-25-2002, 07:37 AM
hey. that makes sense :D
thanks