Hi there,
I have this piece of code:
bt_mc.addEventListener(MouseEvent.CLICK, onClick);
bt2_mc.addEventListener(MouseEvent.CLICK, onClick2);
function onClick(Event:MouseEvent):void {
PutOnStage("thumb_dk.swf");
}
function onClick2(Event:MouseEvent):void {
PutOnStage("broom_dk.swf");
}
The thing that is crushing my skull is i have 6 buttons in each page and each one of them call a different movie. Is there a better way to call them, i mean, like, assign a value to each button so i dont have to write 6 different versions of the same function on my code?
any help really appreciated,
mr_n00