PDA

View Full Version : button with multiple functions



Audrius
January 28th, 2003, 12:19 PM
how to make button do multiple things at the same time. i.e

when button is pressed it animates object1 and object2

i have a buttons that opens a sliding door (code is:

on (release) {
control.gotoAndStop(2);
}


so it opens a door where sound control is and i want for the same button at the same time to open lets say another door somewhere in the same stage with a music tracks in there.

any suggestios



thanks

Sorcerer
January 28th, 2003, 01:13 PM
just put all your actions in there on one button command.

just target each mc you want to control in there and put your command.

example


on(release){
_root.movieclip1.gotoAndPlay(2);
_root.movieclip2.play();
_root.movieclip3.stop();
}