I've been having issues with trying to get stageHeight from every
sprite. Getting the
height is a hit or miss thing for me.
var _sprite:Sprite = new Sprite();
addChild(_sprite)
trace (_sprite.stage.stageHeight)
give me null object reference... even after it's been added to the display.
And also why can't I just access it from any class that extends Sprite
like this:
this.stage.stageHeight or like super.stage.stageHeight;
What's confusing is I am doing this with no problem, but only
successfully in one place. I
just want every sprite i make to be able to access this property. I
guess I'm left
creating a global variable.
Thanks,
Patrick
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com