0

我正在尝试在按键上更改动画,然后循环以模拟运行。但无论动画在哪个帧上,它都会粘在gotoAndPlay(9)触发器上。

onClipEvent(keyDown)
{
        if (Key.isDown(Key.RIGHT))
        {
            this._x += 5;

                if (this.currentFrame <= 9)
                {
                    if (this.currentFrame <= 8)
                    {

                    gotoAndPlay(9);
                    }
                    else
                    {
                        //nothing
                    }
                }
        }
4

1 回答 1

0

如果是 AS2,它应该是:

_currentframe

代替

currentFrame

但它可能是别的东西,也许是第 9 帧上的 stop()?

于 2010-10-06T09:09:54.197 回答