framelabels
Guys,
I need help!
I have a movie clip which contains 5 frame labels : one,two,three,four,five
And I have next and prev button to move around
This is my code
var index:int = 0;
instruction_mc.next_btn.addEventListener(MouseEvent.CLICK, onNext);
function onNext(e:Event):void {
index ++;
instruction_mc.gotoAndPlay(instruction_mc.currentLabels[index]);
if(instruction_mc.currentLabel =="five"){
instruction_mc.next_btn.visible = false;
}
}
Now the problem is,its only play the frame label "one" even though I press next button, it will stays on frame label "one"
but there's no error occured.
I'm confused.
At first I though to put them in an array
but its not working as well :'(
there's one note to be taken, I am required to put all my codes on my main timeline
I can put stop(); inside my other movie clip,but only that actionscript is allowed *sigh
