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
}
}