new TextField 의 기본 width, height 값은 100이다
ActionScript 3 2007. 5. 21. 11:18 |var tf:TextField = new TextField();
trace(tf.width, tf.height) // 100 100
trace(tf.width, tf.height) // 100 100
2.0 시절의 createTextField("tf", 0, 0, 0, 0, 0, 0) 을 생각하고 0 이라고 생각한다면 오산이다...
텍스트 필드를 붙여넣었는데 엉뚱한 크기와 위치에 존재하게 된다면 width, height 값을 체크해보자
width, height 의 기본값은 레퍼런스에 나와있으나... 아무래도 지나치기 쉽다
'ActionScript 3' 카테고리의 다른 글
navigateToURL target 의 기본값은 _blank 다 (0) | 2007.06.01 |
---|---|
buttonMode (0) | 2007.05.28 |
Number, int, uint 를 쓰며 기억해 둘 것... (0) | 2007.05.17 |
FlashVars 가져오기 (0) | 2007.05.17 |
as3.0 3d 엔진 (1) | 2007.05.16 |