I have a sprite, it's added to the display...
I understand that any display object has access to the stage Object.
Can someone clear the confusion for me, what's the deal here, I get a
null error trying to access the stage height... I've even tried to
call another method after addChild to make sure that it's already in
the display. My preloader extends sprite (of course).
This is baffling.
var _preloader = new _preloader();
addChild(_preloader);
_preloader.getHeight();
inside my preloader...
public function getHeight(){
trace (this.stage.stageHeight); //returns null object reference???
Thanks,
Patrick