Navigation buttons - next / previous
Hi,
I'm having one problem after another trying to set up forwards and backwards nav buttons.
I want to set up a series of movie clips on 10 frames. I only need to navigate from one frame to the next and back to the previous one.
This is where I'm at:
I've got the first time frames with a left and right button (backwards and forwards). It's going forward fine but it's just not working going back to previous frame. Here's an example of two sets of links I've got:
FRAME 2 ACTIONS:
stop();
btn_left.addEventListener(MouseEvent.CLICK, fl_ClickToGoToPreviousFrame_2);
function fl_ClickToGoToPreviousFrame_2(event:MouseEvent):void
{
prevFrame();
}
btn_right.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);
function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
{
gotoAndStop(3);
}
FRAME 3 ACTIONS:
stop();
btn_left.addEventListener(MouseEvent.CLICK, fl_ClickToGoToPreviousFrame_3);
function fl_ClickToGoToPreviousFrame_3(event:MouseEvent):void
{
prevFrame();
}
btn_right.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_3);
function fl_ClickToGoToAndStopAtFrame_3(event:MouseEvent):void
{
gotoAndStop(4);
}
Hope that's clear enough.
I also have a question about navigating from a movie clip timeline to a frame on the root timeline but maybe I'll do that as a follow up question.
I'd appreciate any advice please.
Thanks.
