In as3 What is the difference between calling stage.width and stage.stageWidth
I read somewhere that if we have nothing on stage then the value of stage.width is 0,
but what happen when I have nothing on stage but loading contents dynamically on stage?
I have tried this and when i have loaded content dynamically on stage then i have got
stage.width=value; // where value is dynamic number
Can anyone explain this??
thanks.
According to the Adobe Reference for the Stage Class:
stage.widthIndicates the width of the display object, in pixels. The width is
calculated based on the bounds of the content of the display object.
So this property varies as you add/remove elements from the stage.
stage.stageWidthSpecifies the current width, in pixels, of the Stage.
This property varies as you resize the Flash Player window.