I'm using AS3 and Flash CS5. I'm creating a site where one of the pages has 7 buttons on it. I want each button to execute a different "gotoAndPlay" frame sequence when the user clicks on it. I was wondering if it's possible to make a button perform 2 gotoAndPlay actions (where it jumps to a set of frames and plays them, THEN at the end of those frames it will jump to another frame label and play those frames.)
For example:
button1_btn.addEventListener(MouseEvent.CLICK, gotostep1);
function gotostep1 (event:MouseEvent):void
{
gotoAndPlay("page1");
(THEN I want it to do the following right after it plays the frames in the frame label above:)
gotoAndPlay("page5");
}
Thanks for your help.
MovieClip(root).dispatchEv
I hope that works