Anyone knows how to relatively get the ship's shield? In the tutorial it always refers to _root.ship.shield (that's not really OO) and will work only if you know which object you are looking for from the root. How is it possible to get inside from the ship object a link to shield (like this.shield)? And why doesn't this work?
I had to add this to function onEnterFrame()
if(!this._visible)
return;
to prevent enemy ships to spawn over the game over menu.
It seems onenterframe is still called even if the ship is not visible.