Hello,
1061: Call to a possibly undefined method enteredScreen through a reference with static type Shooter1.SpaceShips:EnemyShip.
this error is thrown from the line: craft.enteredScreen();
craft is declared as var craft:EnemyShip
in EnemyShip is the function:
PHP Code:
public function enteredScreen():void
{
doEnterScreen();
}
Why would this error be thrown? The function is public. does anyone know a possible cause of this error?
EDIT: Nm i solved it. apparently I had two copies of the same class, and he somehow compiled the wrong one.