Flash CS5 Actionscript 3.0 Gehen Sie zum Nächsten Frame und der Spiel-Code

Ich bin der Codierung eine einfache Film-Zeitleiste in Flash CS5 mit actionscript 3.0. Ich habe alle meine buttons funktionieren, außer für den Play-button, den würde ich gerne code, zu sagen, "gehen Sie zum nächsten frame und spielen". Hier ist meine aktuelle actionscript-kann mir jemand helfen den richtigen code?

fastforwardBtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void
{
gotoAndStop(4025);
}

stop();

gotoStopBtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);

function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void
{
    gotoAndStop(1);
}


gotoPlayBtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

function fl_ClickToGoToAndPlayFromFrame(event:MouseEvent):void
{
    gotoAndPlay(1);
}

stopBtn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_2);

function fl_ClickToGoToNextFrame_2(event:MouseEvent):void
{
    nextFrame();
}

playBtn.on (release) ;{
_root.gotoAndPlay(_currentframe+1);
}

InformationsquelleAutor Stephanie | 2011-03-21

Schreibe einen Kommentar