In AS3 you can use this: stage.stageWidth

trace(stage.stageWidth);