AS3: currentFrame & stop ();

Posted by Eleonara on Stack Overflow See other posts from Stack Overflow or by Eleonara
Published on 2014-06-12T21:09:46Z Indexed on 2014/06/12 21:25 UTC
Read the original article Hit count: 201

Filed under:
|

So, my next problem. Sorry for asking so much, but my teacher doens't respond. So, this doesn't work. The stop command doesn't seem too respond, but i don't get an error either. I know i miss a bracket, but my function isn't finished. Due to copy and paste the place of the brackets have shifted a bit.

function Knipperen (event:TimerEvent):void 
{
    if (event.currentTarget.currentCount == 3 && geknipperd < 3) 
    {
    geknipperd ++;
    timer.reset();
    timer.start();
    trace (geknipperd);
    gotoAndPlay(1);

    if (currentFrame == 13) 
    {
        stop();
    }
}           

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about stop