public function unloadAndStop(gc:Boolean = true):void
언어 버전:
ActionScript 3.0
런타임 버전:
Flash Player 10, AIR 1.5
자식 SWF 파일 내용을 언로드하고 로드된 SWF 파일의 명령 실행을 중지합니다. 이 메서드는 자식 SWF
파일의 EventDispatcher, NetConnection, Timer, Sound 또는 Video 객체에 대한 참조를
제거하여 Loader.load() 또는 Loader.loadBytes()를 사용하여 로드되고 있는 SWF 파일을 언로드합니다. 따라서 자식 SWF 파일 및 자식 SWF 파일의 표시 목록에서 다음 동작이 발생합니다.
사운드가 중지됩니다.
Stage 이벤트 리스너가 제거됩니다.
enterFrame, frameConstructed, exitFrame, activate 및 deactivate의 이벤트 리스너가 제거됩니다.
타이머가 중지됩니다.
Camera 및 Microphone 인스턴스가 분리됩니다.
무비 클립이 중지됩니다.
매개 변수
gc:Boolean (default = true) —
자식 SWF 객체를 대상으로 가비지 수집기를 실행할지 여부(true 또는 false)를 나타내는 힌트를 제공합니다. 여러 객체를 비동기적으로 언로드하는 경우 gc 매개 변수를 false로 설정하면 응용 프로그램 성능이 향상될 수 있습니다. 그러나 이 매개 변수를 false로 설정하면 자식 SWF 파일의 미디어와 표시 객체가 unloadAndStop() 명령을 실행한 후에도 메모리에 유지될 수 있습니다.
데스크탑에서 사용하기 아이폰과 웹 연동 할 일 관리 중 구글 테스트는 사용법이 단순하고 동기화가 잘 되서 애용하고 있는 서비스입니다.
구글 계정이 있으시면 https://mail.google.com/tasks/ig 를 통해 웹브라우저에서 바로 이용할 수 있습니다. 저는 독립적으로 사용하기 위해 에어로 옮겨 사용하고 있습니다.
Preparing the workbench
Before creating your first AS3 project the Adobe Flash Debug Player should definitely be installed. It is important to install the Debug Player - not only the standard version - as you do not get any "trace"- output otherwise. In addition, the Debug Player should also be installed in the Internet Explorer - in case of working on windows - as some FDT tools refer to that plugin when using windows. Among other things, the Debug Player is delivered with the FlexSDK that ships with FDT.
Adobe and ARM today announced that they are joining forces to bring Adobe Flash Player 10 and Adobe AIR to ARM powered devices in a move that Adobe hopes will lower power consumption for mobile devices running Flash and AIR content, and make it easier for users to play video on a variety of devices.
The joint technology will target the ARMv6 and ARMv7 architectures used in ARM11 processors as well as the upcoming Cortex-A series processors.
ARM believes that the resulting technology will run on "billions of devices from our partners, such as pocket-sized mobile devices, mobile computing platforms, set-top boxes, digital TVs and automotive infotainment," said vice president of marketing, Ian Drew in the statement. "The combination of Adobe Flash and ARM's low-power processor IP and Mali GPU will ensure a fantastic Internet experience for consumers on the world's leading 32-bit architecture."
Getting Flash on mobiles in an efficient manner has been a goal of Adobe for some time. The majority of mobile phones that can use Flash at the moment use Flash Lite, the cut down version of the technology, and one that is limited in what it can play.
Although the technology is not expected to be available until the second half of 2009, Adobe will demonstrate Flash Player 10 during the Adobe MAX developer conference this week in San Francisco.
플래시 플레이어는 외부텍스트를 읽어 들일때 유니코드를 사용합니다. 그러나, 윈도우의 경우는 EUC-KR(51949)가 기본 캐릭터 셋이기 때문에 한글이 깨지는 경우가 발생합니다.
이럴때 우리가
System.useCodePage = true;
를 사용하면 한글이 보이게 되는데 'true'이면 '시스템의 캐릭터 셋'으로 읽어 들이게 되기 때문입니다.
useCodePage property에 대해
System.useCodePage = true;
When this code is present, the application interprets external text using the traditional code page of the operating system. This is generally CP1252 for an English Windows operating system and Shift-JIS for a Japanese operating system. If you set useCodePage to true, Flash Player 6 and later treat text as Flash Player 5 does. (Flash Player 5 treated all text as if it were in the traditional code page of the operating system running the player.)
요즘은 유니코드로 작성된 글이 많지만, 아래 소개한 원강민님이 RSS리더기를 개발하면서 EUC-KR과 UTF-8외에 다양한 인코딩으로 작성된 존재하고 이에 대한 코드가 올려져 있어 소개합니다.