Hi there,
I just get a nice rollover effect button, it's simple look. After I figure out the code I can't find out where to put the code for navigate.
I want the button link to the scene, frame label/frame number
btw, the button file is a movie clip and inside the mc is the button. please check the code from the files here
Code:
//tells this MC to play frame 2 on roll over
on (rollOver) {gotoAndPlay(2);
}
//tell this MC to play frame 8 on roll out
on (rollOut) {gotoAndPlay(8);
}
//tell this MC to stop at frame 16 on release which
// disables the button because the button is not on frame 16.
// Checks to see if the other buttons have stopped at frame 16,
// if so, then play the roll out effect from frame 8,
// if not, don't do anything at all.
on (release) {gotoAndStop(16);
if (_root.butt2MC._currentFrame == "16") {
_root.butt2MC.gotoAndPlay(8);
}
if (_root.butt3MC._currentFrame == "16") {
_root.butt3MC.gotoAndPlay(8);
}
//changes the contents of "statusBox"
_root.statusBox.text = "BUTTON 1 PRESSED"
}
or you can download the .fla here
dl.dropbox.com/u/16366221/simpleButton02.fla
I hope anybody can help me
thanks