Hi, I have a movieclip called mySampleMC wich I woluld like to control with a next and a prev button outside the clip (Scene 1). I don´t get any errors in the output, but for some reason it doesn’t work.
Hopefully someone can help me with this, it’s driving me crazy…
“meny” is a movieclip in wich the button “next_kn” is.
The code:
meny.next_kn.addEventListener(MouseEvent.CLICK, nextMouseClickHandler);
function nextMouseClickHandler(event:MouseEvent):void
{
if (mySampleMC.currentFrame == totalFrames) {
mySampleMC.gotoAndStop(1);
}
else {
mySampleMC.nextFrame();
}
}