with as3, i currently am using next main timeline "next frame" and "precedent frame" and stop. But i would like to be able to go like frome frame 1 (menu) to whatever frame and then stop. at this point I could do it, but then, in the chosen frame, i put the same code to navigate anywhere else, but then the flash starts going menu, then chosen frame in loop. like:
menu>frame 5>menu>frame 5 etc...
...endlessly. I don't know why. and this problem really limitate my possibilities.
I tried two codes:
- Code: Select All Code
name of the button.addEventListener(MouseEvent.CLICK, onClickNextSlide);
function onClickNextSlide(event:MouseEvent):void{
gotoAndStop("number of the frame");
}
- Code: Select All Code
stop();
name of the button.addEventListener
(MouseEvent.CLICK, onClick);
function onClick
( event:MouseEvent):void
{
gotoAndPlay("number of the frame")
}
any idea(s)?