00.Flex,Flash,ActionScript
flex 에서 동적 영역 생성시 넓이와 높이 100% 안먹힐경우
1010
2013. 4. 1. 17:41
반응형
flex
Note: You can specify a percentage value in the MXML width attribute, such as width="100%", but you cannot use a percentage value in the width property in ActionScript. Use the percentWidth property instead.
mxml 에서는 width 를 100% 로 줄수 있지만 ActionScript 에서는 100% 가 먹지 않으니...
percentWidth 이걸로 주면됨 (0~100) 으로...
ex:
_SWFLoader.percentWidth = 100;
_SWFLoader.percentHeight = 100;