플밍

StyleSheet에 정의한 값을 as에서 가져오기 본문

프로그래밍/Flash & Flex

StyleSheet에 정의한 값을 as에서 가져오기

너구리안주 2009. 8. 12. 23:25

<mx:Style>

...
.scbrThumb{
    width:20;
    height:6;
}
...
</mx:Style>



<ActionScript 에서 위 설정값을 부르는 법>

var w:int = StyleManager.getStyleDeclaration('.scbrThumb').getStyle('width');
Comments