scaleform.minarto.com

new TextField 의 기본 width, height 값은 100이다 본문

ActionScript

new TextField 의 기본 width, height 값은 100이다

미나토 2007. 5. 21. 11:18
var tf:TextField = new TextField();
trace(tf.width, tf.height) // 100 100


2.0 시절의 createTextField("tf", 0, 0, 0, 0, 0, 0) 을 생각하고 0 이라고 생각한다면 오산이다...


텍스트 필드를 붙여넣었는데 엉뚱한 크기와 위치에 존재하게 된다면 width, height 값을 체크해보자


width, height 의 기본값은 레퍼런스에 나와있으나... 아무래도 지나치기 쉽다