728x90

프로그래머의 삶 Programmer's Life/Flex3.0 10

FLEX 성능향상 테크닉

1. 변수에 불필요한 [Binable] 선언을 줄인다.(메모리사용량차이) 2. 데이터바인딩이 필요하지 않으면 배열에는 Array 를 사용 3. 임베드된 애셋들은 애플리케이션 사이즈에 그대로 추가된다. ex)이미지 크기는 gif < jpg < png < bmp 순이다. 4. 컨테이너의 creationPolicy는 queued 옵션이 auto 나 all 옵션에 비해 메모리를 적게 사용한다. 5. 서브 화면은 Module 로 만들어 메인 애플리케이션에 최적화하라 6. 공통 컴포넌트는 RSL 로 만들어 공유하고 인증 플레임웍 RSL 을 적용해 애플리케이션 사이즈를 최소화한다.

단축키 예제...단...단축키만 먹지..내부 링크는 안된다.ㅡㅡ

http://www.adobe.com/2006/mxml" layout="absolute" fontSize="14"  initialize="initShortKey()">      import mx.controls.Alert;   private function initShortKey():void{    application.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);    ta.setFocus();   }   private function keyHandler(event:KeyboardEvent):void{    if(event.ctrlKey){     var curKeyCode:int=event.keyCode;      var urlRQ:URLRequest=..

DataProvider - 이것도 책...

http://www.adobe.com/2006/mxml" layout="vertical" fontSize="11">            paddingTop="10" horizontalAlign="left" fontSize="11" layout="absolute">          change="dg.selectedIndex=lst.selectedIndex=tlst1.selectedIndex=tlst2.selectedIndex=cb.selectedIndex "/>      change="cb.selectedIndex=dg.selectedIndex">                         change="tlst1.selectedIndex=tlst2.selectedIndex=cb.selectedInd..

버튼~ 예제~

http://www.adobe.com/2006/mxml" layout="vertical" fontSize="11" backgroundGradientColors="[#f7f794,#adb2ce]">      private function showMsg(input:String):void{    mx.controls.Alert.show(input);   }  ]]>    verticalAlign="middle" label="커서버튼" title="button/linkbutton">      toolTip="buttonMode=\'true\' useHandCursor=\'true\'" buttonMode="true" useHandCursor="true"/>    URLRequest('http://www.nave..

728x90