ADOBE/ ActionScript

플래시 AS3.0, RESIZE 이벤트를 이용한 화면사이즈 조정 관련

AlrepondTech 2011. 12. 13. 20:04
반응형

 

 

 

=================================

=================================

=================================

 

 

 

 

 

 

 

출처: http://flexholic.tistory.com/entry/%EC%98%AC%ED%94%8C%EB%9E%98%EC%8B%9C-%EC%82%AC%EC%9D%B4%ED%8A%B8%EC%97%90%EC%84%9C-%EC%8A%A4%ED%85%8C%EC%9D%B4%EC%A7%80-%EC%82%AC%EC%9D%B4%EC%A6%88-%EC%84%A4%EC%A0%95%EB%B0%A9%EB%B2%95-as30

stage.scaleMode = "noScale"; stage.align = "TL";  function sizePosition():void { 	mc1.x = 5; 	mc1.y = 5; 	 	mc2.x = stage.stageWidth/2; 	mc2.y = stage.stageHeight/2; 	mc2.width = stage.stageWidth*0.6; 	mc2.height = stage.stageHeight*0.6; };  sizePosition();  stage.addEventListener(Event.RESIZE, resizeEvent);  function resizeEvent(e:Event):void { 	sizePosition(); }; 

 

=================================

=================================

=================================

 

 



관련링크

http://ufx.kr/blog/258

 

 

=================================

=================================

=================================

 

 

 

반응형