how to define a parameter of frame in the function if?
Hello! I am with a doubt, I tenjo one movie clip and inside of it I have a animation! when clicar in a button in palco, the action of the button goes to make there with that the line of the time inside of the animation of movieclip if moves for frame 5, until all good. now when it arrives in frame 6, when to arrive in frame 10 of the animation inside of movie clip has one stop (); but I want that the animation is with a Loop, of the one message of error in the window of exit of the Flash saying that frame is not a function, for the connective if I place one gotoAndPlay (); to say the connective if where the needle of the line of the time has that to be to execute the block if? it sees the code:
import flash.events.MouseEvent;
function vai(event:MouseEvent):void{
simbolo.gotoAndPlay(5);
}
for(;;){
if(simbolo.frame(6)){
simbolo.gotoAndPlay(1);
}
}
bebe.addEventListener(MouseEvent.CLICK,vai);
Of the one message of error in the window of exit of the flash cs5,
saying that the function does not exist frame! Which word I place in the frame place?
already I tried gotoAndPlay (); e did not funcionaou, for the logic would not go to function but I tried exactly thus.




