hi,
im trying to make a commend that when it arrive the last frame it will
come automatic to the start, like a loop, but with button.
it doesn’t work like i did.
thanks.
the code:
trunkBut.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_2);
function fl_ClickToGoToNextFrame_2(event:MouseEvent):void
{
Object(root).trunkBottom ++;
Object(root).tree.nextFrame();
if ( Object(root).tree.currentFrame == 4 )
{
Object(root).tree.gotoAndStop(1);
}
}