본문 바로가기

FLEX

Flash Builder 4.6 모바일 화면 크기 알아내기 import mx.managers.SystemManager; 가로 : SystemManager.getSWFRoot(this).width 세로 : SystemManager.getSWFRoot(this).height 더보기
Flash Builder 4 for Android 배포 swf를 가지고 컴파일 하는 경우 adt -package -target apk -storetype pkcs12 -keystore ../codesign.p12 myApp.apk myApp-app.xml myApp.swf icons air를 가지고 컴파일 하는 경우 adt -package -target apk -storetype pkcs12 -keystore ../codesign.p12 myApp.apk myApp.air 더보기
[FLEX] Flash Builder Skin 관련 옵션 Module을 load 하려고 할때 Graph 관련 에러가 난다. ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::Graphics/drawRect() at mx.graphics::RectangularDropShadow/drawShadow()[E:\dev\4.0.0\framewor ks\project s\framework\src\mx\graphics\RectangularDropShadow.as:575] at cobalt.skins::BorderSkin/updateDisplayList()[E:\dev\4.0.0\samples\the mes\cobalt \src\cobalt\skins\BorderSkin.mxml:1.. 더보기
Flash Builder 4 + WebTools Flash Builder 4 Help -> Install New Software... -> Add Galileo - http://download.eclipse.org/releases/galileo Web Tools - http://download.eclipse.org/webtools/updates Web Tools Platform (WTP) 3.1.2 Web Tools Platform SDK (WTP SDK) 3.1.2 등등 선택 Tomcat 6 구동시 오류 The APR based Apache Tomcat Native library which allows optimal performance in production environments was not fount on the java.library.pa.. 더보기
[FLEX, JAVA] ANT and release Flash Builder 4 standalone (eclipse 3.5.1) http://archive.eclipse.org/eclipse/downloads/drops/R-3.5.1-200909170800/index.php -> JDT Runtime Binary : Download the appropriate file for your OS -> Extract zip file -> Then copy the files in features/* into your “Adobe Flash Builder 4/features” folder. -> Do the same for plugins/* -> “Adobe Flash Builder 4/plugins”. -> Restart Flash Builder 4 and now you should have the Ant UI available. [Lin.. 더보기
[FLEX] 플렉스에서 웹메시지 보는 프로그램 FLEX 에서 WebService 나 HTTPService 를 이용한 웹접근시 에러메시지를 잘보여주지 못한다. 그럴땐 위의 프로그램을 써보자. 쉽게 어떤 WebService에서 문제가 있는지 확인할 수 있다. Introducing Fiddler What is Fiddler? Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler includes a powerful.. 더보기
[FLEX] 두 날짜 사이의 개월 수 구하기 private function getMonths(startDate:Date, endDate:Date):Number { if (startDate > endDate) { var tmp:Date = endDate; endDate = startDate; startDate = tmp; } var numMonths:Number = 0; // Get number of months in years numMonths += (endDate.fullYear - startDate.fullYear) * 12 numMonths += endDate.month - startDate.month; //numMonths += (endDate.day - startDate.day) / 30; // This needs fixing return.. 더보기
[AIR] Image File (Client) <--> C# (WebService) <--> MSSQL Image 주고받기 1. Client에서 Image 파일을 읽어 C# WebService를 통해 MSSQL Image 컬럼에 데이터 넣기 - Image File을 ByteArray로 읽는다. - Base64Encoding 을 하여 ArrayCollection 형태로 WebService에 전송 - Serialize Class를 이용하여 ArrayCollection을 파라메터로 받아 MSSQL 서버에 Image 를 저장한다. 2. MSSQL Image 컬럼의 데이터를 C# WebService를 통해 Client로 내려받아 File로 저장하기 - C# function에서 MSSQL 서버에서 Image 컬럼을 읽어온다. - DataTable 또는 DataSet 형태로 Client에 전송한다. (SOAP / WSDL을 이용하여 내려.. 더보기
[AIR] 외부실행프로그램 실행하기 기본적으로 AIR에서는 외부 실행프로그램의 실행이 안된다. 구글링 결과 외국 어느 사이트에서 제공한 FluorineFx Aperture Framework 이란 것을 발견했다.. debug 할때 좀 특수한 액션을 취해야 하는거 빼고는 무지 잘 작동한다. 단지 아쉽다면 외부 실행프로그램의 return code 값이 안넘어온다는 정도? FLEX Builder에서 Debug 할때의 방법은 FAQ를 잘 읽어 보아야 할 것이다. 더보기
[FLEX] RadioButton 버그 그룹화된 RadioButton 각각에서 change 이벤트를 걸지 말자. 오작동을 한다. ==> 대책은 RadigGroup에 change 이벤트를 걸어야 한다. 더보기