Hello!
My problem is kinda strange, I was testing a way to set a Menu before my Setup class wich load the game (was starting fine before).
After those test i choosed to reset my Setup class right at the start of the swf for not to have the Menu interferring while i’m developping.
Now when i launch I get a “*TypeError: Error #1009: Cannot access a property or method of a null object reference”
Quite usual, but this error occure when i use the stage in those 2 lines
stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
Of course i’ve imported Stage class like this:
import flash.display.Stage;
So all my game launch, background, ships, ennemyspawn… but i can’t get keyboards input wich worked fine before with the same configuration and it looks like because the stage is null.
Where’s the poop?
Max