Flash ActionScript stage.stageWidth vs stage.width
Aug 13
Technology actionscript, flash, flex 5 Comments
I was never clear on the differences between stageWidth and the width properties of the stage object. Here it is:
stage.stageWidth is the width of the Flash Player
stage.width is the width of content within the stage. So if you have nothing on the stage, stage.width would be 0.
Popularity: 88% [?]
Related posts:





Mar 30, 2009 @ 21:16:26
Hey!
Thanks for the plain and simple text! I haven’t tested it out yet, but I think you know what your talking about so I’m going ahead and thanking you for this. I have been so confused between this difference and you have settled it for me.
Thanks!
Noah
May 28, 2009 @ 08:00:14
Yeah he is correct.
Nov 14, 2009 @ 14:55:10
Thanks!!
Jan 20, 2010 @ 02:23:04
errr I was on this problem for like 3 hours yesterday and didn’t realise I had stage.width in half the places :s thanks for the clarification!
Nov 01, 2010 @ 02:43:44
I got the stage.stageWidth always 0. What is the problem? If I enter fullscreen mode, is the stage.stageWidth the same to the full screen size?