gotoAndPlay won't repeat
Hi,
Actionscript3 in Flash CC
I am trying to make a timeline play to specific points using buttons and then go back to the start at the end of the timeline.
The timeline will play OK once, but on the last frame returns to frame 3 and won't go any further.
The code I have is this:
Frame 3:
stop();
Next.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_8);
function fl_ClickToGoToAndPlayFromFrame_8(event:MouseEvent):void
{
gotoAndPlay(4);
}
This is repeated on frames 20, 22 and 24. Each gotoAndPlay is set to the stop frame+1 (21,23,25)
On frame 36 - gotoAndPlay(1); . When I hit the button on frame 36 the timeline returns to frame 3.
Each time I hit the button the timeline flashes to frame 1, then back to 3 and will go no further.
I am not getting any compiler errors.
And help will be greatly appreciated. Thank you.