둘다 스테이지의 가로 크기를 구하는 속성이지만,

width 는 화면상에 표시된 오브젝트를 포함한 크기를 말하며,

stageWidth 는 실제 550x400 등의 스테이지 크기를 말한다.
(http://ogoon.egloos.com/3271505)


[CS3] stage.width와 stage.stageWidth의 차이


붉은색 테두리가 stage.width
즉 무비클립이 움직이는 Display Object의 전체 범위를 뜻한다.

파란색 테두리가 stage.stageWidth
즉 Modify > Document에서 설정하는 Dimensions 값과 같다.


by Anna 안나 2009. 1. 2. 18:46