0

I can't seem to be able to override methods in Flash Builder. I get the following error: #1065 Variable Override is not defined. Worst part is that now it seems Flash Builder got bugged or something because I deleted the line that contained the error and I still get it, I can't even run my project anymore, so I need help with that too. Thanks to anyone in advance for helping.

And for some reason the error states the problem is in line 0: ReferenceError: Error #1065: Variable Override is not defined. at Enemy$cinit()[C:...\src\Enemy.as:0]

This is the code:

public class Character extends Sprite
    {

    ...
    protected function moveDown():void
        {
            if ( isAdded == true && isAlive == true)
            {
                if (_loader.y < BOTTOM_HEIGHT)
                    _loader.y += _vel;
                if (_loader.y >= BOTTOM_HEIGHT)
                    _loader.y = BOTTOM_HEIGHT;
            }
        }
}


    public class Enemy extends Character
{
   ...

   protected override function moveDown():void
   {
      //different stuff
   }
}
4

1 回答 1

0

我自己解决了,有点奇怪的错误,但是很好。我不得不按下控制台选项卡中停止图标旁边的十字图标,上面写着“删除启动”和“删除所有终止的启动”。我什至重新启动了我的 PC,尝试了 project>clean,并多次重新启动了 Flash Builder,但只是修复了它。我把它留在这里,以防万一有人遇到同样的错误。

于 2013-08-08T05:27:53.533 回答