본문 바로가기

Programming/ActionScript

[AS 3.0] 강좌 더보기
한글깨짐 방지코드 System.useCodePage = true; http://blog.flashplatform.kr/195 더보기
[AS 3.0] Load Image & Set Timer & Read INI var INI_PATH = "c:\\windows\\FlashView.ini" var INI_SECKEY = "List" var INI_VARNAME = "list" var arr_IniPath :Array = new Array(); var int_CurrImgPos :int = 0; var int_ImgCount :int = 0; var timer :Timer; var loader :Loader = new Loader(); var urlReq :URLRequest = new URLRequest( INI_PATH ); var urlLoad :URLLoader = new URLLoader( urlReq ); urlLoad.addEventListener( Event.COMPLETE, iniLoaded ); .. 더보기
[AS 3.0] 1172: Definition flash.filesystem:File Could not be found. import flash.filesystem.File 로 인해 발생하는 Error http://www.actionscript.org/forums/showthread.php3?t=176906 에 나와있는대로 Adobe AIR pack를 설치해보기로함 The flash.filesystem package contains classes used in accessing the filesystem. This package is only available to content running in Adobe AIR. 라고 ActionScript 3.0 Reference Guide에 명시되어 있다. Adobe Player가 아닌 Adobe AIR로 Publish를 하면 된다. publish setting --> Flash .. 더보기
[AS 3.0] Reading Text From INI File ActionScript에는 INI파일을 Key값과 변수 값으로 분류하여 Data만 가져오는 공식적인 방법은 존재하지 않는다. 하지만 INI역시 파일이므로 AS3.0의 URLRequest와 URLLoader를 통하여 File Control이 가능하다. Example. var loader :URLLoader = new URLLoader(); // 새로운 URLLoader 클래스를 만든다. loader.dataFormat = URLLoaderDataFormat.TEXT; // DataFormat는 Text 형식 loader.addEventListener( Event.COMPLETE, loading ); // Load가 완료되면 수행되는 함수 loader.load( new URLRequest( "museum.i.. 더보기
[AS 3.0] LocallConnection Class를 사용하여 SWF간 이벤트 주고받기 ActionScript 3.0에서는 FsCommand를 사용하지 않고 LocalConnection를 사용하여 SWF간에 이벤트를 주고받을 수 있다. 아래의 그림은 Local computer에서 실행시킨 두개의 LocalConnectio Class를 사용해 통신을 하는 두 SWf 파일이다. 한쪽의 버튼을 클릭하면 그 색에 맞추어 다른쪽의 다각형 색이 변하게 된다. LocalConnection_One.swf LocalConnection_Two.swf 아래의 그림은 각 SWF 별 ActionScript 3.0 Source 파일이다. Adobe Flash CS를 사용하지 않는 순수 AS Code이다. LocalConnection_One.as LocalConnection_Two.as 아래의 출처는 Adobe Fl.. 더보기
[AS 3.0] 라이브러리에 있는 객체 동적으로 Attach하기 There are some small differences in syntax when dynamically attaching library objects in ActionScript 2.0 and ActionScript 3.0. In this post, I will provide a very simplified example in both ActionScript 2.0 and ActionScript 3.0. ActionScript 2.0 Example: You will need to make sure the library object that you are trying to attach has been configured, to do this you need to right click on the obj.. 더보기
[AS 3.0] WCF Client using WSDL In Actionscript 3.0 WSDL Address : http://192.168.0.4/FRS/FRSService.svc?wsdl import package : import flash.display.Sprite; import flash.events.*; import mx.rpc.events.*; import mx.rpc.soap.*; Main Use Class : mx.rpc.soap.WebService ActionScript 3.0 Code : 더보기
[AS 3.0] mx.rpc.soap.WebService 사용하기 1. In the Navigator, select the project's root folder. 2. Right click Project -> Select Properties. 3. Select [ActionScript Build Path] -> [LibraryPath] 4. [Add SWC...] -> [Browse] -> C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0\frameworks\libs\rpc.swc [ Add SWC Folder...] -> [Browse] -> C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0 \frameworks\locale\{locale} 출처 : http://.. 더보기