stage.width and stage.stageWidth in AS3

stage.width and stage.stageWidth in AS3

Careful with this one. It’s easy to miss if you’re accustomed to Actionscript 1 or 2. stage.width will return the width of the content on the stage and ignore any empty pixels around the edges. So if you only have a 100 px wide rectangle on stage, your stage.width will be 100. stage.stageWidth will give [...]