AddedToStage event object and root, parent.

In AS3, There are times that you can not use root or parent properties on a display object. It is because root and parent properties are set to null, unless they are not added to the stage. So, an error occurs when you try to use root or parent properties in the constructor of an class. To avoid this problem, use addedToStage event object, and run codes after a display object was added to the display list.
AS3의 디스플레이 오브젝트에서 root 또는 parent 속성을 참조하지 못하는 경우가 종종 있습니다. 이는 root 및 parent 속성은 디스플레이 오브젝트가 스테이지에 애드되지 않으면 null 값을 가지기 때문입니다. 그러므로 클래스 컨스트럭터에서 root 또는 parent를 참조하려 할 때 에러가 발생하는 것입니다. 이를 해결하기 위해서 addedToStage 이벤트 오브젝트를 사용하여, 디스플레이 오브젝트가 디스플레이 리스트에 추가되었을 때 필요한 코드를 실행하도록 하면 됩니다.
AS3で、ディスプレーオブジェクトがrootやparentプロパ ティを参照できない時があります。それは、ディスプレーオブジェクトがステ―ジに追加されていないと、rootとparentプロパ ティはnullに設定されると言うわけです。だから、クラスのコンストラクタの中でrootやparentプロパ ティ参照しようとする時、エラーが発生するのです。このエラーを回避するために、addedToStageイベントオブジェクトを使用し、ディスプレーオブジェクトがディスプレーリストに追加された時、コードを実行します。

root property
root:DisplayObject [read-only]

…… The root property is set to null for any display object that has not been added to the display list, unless it has been added to a display object container that is off the display list but that is a child of the top-most display object in a loaded SWF file.

quote from ActionScript 3.0 Language and Components Reference

The following codes are the codes that I use frequently. I choose _root and _parent keywords that are not used in AS3.
다음 코드는 제가 자주 사용하는 코드로, AS3에서는 사용되지 않는 _root, _parent 키워드를 사용합니다.
下のコードは私がよく使うこーどで、私はAS3では使わない_rootと_parentキーワードを選びました。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package{
 
	import	flash.display.MovieClip;
 
	public class SomeClass extends MovieClip{
 
		private var _root:MovieClip;
		private var _parent:MovieClip;
 
		public function SomeClass(){
 
			addEventListener(Event.ADDED_TO_STAGE, initialize);
 
		}// end SomeClass constructor
 
 
		/**
		 * Initializes the SomeClass, when an instance is added to the display list
		 */
		private function initialize(evt:Event):void{
 
			removeEventListener(Event.ADDED_TO_STAGE, initialize);
 
			_root = root as MovieClip;
			_parent = parent as MovieClip;
 
		}// end initialize
 
	}// end SomeClass definition
 
}// end package

Flash CS3 Professional updated (9.0.2)

Flash CS3 Professional was updated on December 12th. This update includes Flash Player 9 Update 3 support, video playback component with H.264 surpport, Flash Lite 3 update, and so on.

Usually, it took some time to release Korean version after English one has been released. But, this update was delivered with all other language versions.

12월 12일 플래시 CS3 프로페셔널이 업데이트 되었네요. 이번 업데이트는 Flash Player 9 Update 3 지원, H.264를 지원하는 비디오 플레이백 컴포넌트, 플래시 라이트 3 업데이트 등을 포함하고 있습니다.

보통 영어버전이 공개되고, 시간이 지나서 일어 등 주요 언어와, 마지막에야 한글버전이 공개되던 것과 달리, 이번에는 모든 언어 버전들이 같이 배포되고 있네요.

12月12日、Flash CS3 Professionalがアップデートされました。このアップデートは Flash Player 9 Update 3の支援、H.264を支援する video playback component、Flash Lite 3 アップデートなどを含んでいるんです。

これまでは、英語のバージョンが発表されてから少なくない時間が過ごした後、韓国語のバージョンが公開されたけど、今度は他の言語のバージョンを一緒に配れているんですね。

Adobe Flash Support Center – Adobe Flash Player Update for Flash CS3 Professional (9.0.2)

IE Automatic Component Activation Preview Available

IE Automatic Component Activation Preview, that I mentioned on Goodbye to “Click To Activate”, is released. For more infomation about IE ACA, check Knowledge Base article 945007.

It is highly recommened to install IE ACA for testing. The Internet Explorer cumulative update for general users is planned for April 2008. IE ACA disables the “Click to activate” message. And developers don’t have to create new Web pages or modify current pages.

Goodbye to “Click To Activate” 포스트에서 얘기했던 IE Automatic Component Activation 프리뷰 버전이 나왔네요. IE ACA에 대한 자세한 정보 및 다운로드는 Knowledge Base article 945007를 참고하세요.

IE ACA는 프리뷰 버전으로 테스트를 위해서 설치, 사용하도록 권장됩니다. 일반사용자용 업데이트는 내년 4월에 공개될 예정입니다. IE ACA를 설치하면 IE에서 플래시 등의 객체에 대해서 “Click To Activate” 메세지가 나타나지 않습니다. 또한 웹사이트 개발자도 현재의 웹페이지를 수정하거나 새로운 웹페이지를 생성해야할 필요가 없습니다.

Goodbye to “Click To Activate”で書いた IE Automatic Component Activation Previewが公開されました。IE ACAの詳しい情報は Knowledge Base article 945007を参考します。

IE ACAはテストのために組み込む、使用するのが勧められる。一般のユーザのためのアップデートは来年の四月に公開する予定です。IE ACAをインストールすると、IEでFlashなどの客体に対して”Click To Activate”メッセージを示さないんです。また、ホームページ開発者も、現在のページを直すとか、新たなページを作るとか、する必要はないんです。

via IE Blog: IE Automatic Component Activation Preview Now Available

EV-W100 Standby FlashLite File

개인적으로 EV-W100에서 사용하려고 만든 사진 슬라이드 쇼 대기화면 플래시 파일입니다. count.txt 파일에 전체 사진 개수를 입력하고, bgs 폴더에 0.jpg, 1.jpg 와 같이 순서대로 파일명을 넣어서 사용하면 됩니다. 주의할 것은 0.jpg 부터 시작하며, 크기는 240*320 픽셀입니다.

EV-W100에서 대기화면 변경 방법

  1. 메뉴 – 6 엔터테인먼트 – 0 플래시 마법사 – 1 플래시 만들기
  2. 아무 사진이나 선택하고 편집
  3. 아이콘 등을 추가하고 저장
  4. 저장 옵션에서 ‘대기화면 설정’ 선택
  5. 파일명을 ‘mybg’로 입력
  6. PC에서 Ever PC Communicator 실행 – 파일 관리 실행
  7. mybg.swf, count.txt, bgs 폴더와 사진들을 폰의 flash 폴더로 이동
  8. 폰 재부팅
Sorry, English translation is not available on this post.
Sorry, Japanese translation is not available on this post.

Download the source file.

Moviestar makes its debut.

Adobe reveals Flash Player 9 Update 3 (9.0.115.0). With the H.264/HE-AAC codec support, it was code-named Moviestar, and drew attention of the people. In addtion, it supports muti-core processors, hardware scaling, etc.
Flash Player 9 Update 3 (9.0.115.0)가 공개되었습니다. H.264/HE-AAC 코덱 지원으로 인해 무비스타라는 코드명을 얻었고, 그만큼 많은 관심을 받았었죠. 그 외에도 멀티코어 지원과 하드웨어 스케일링 등 많은 개선이 이루어 졌군요.
アドビが Flash Player 9 Update 3 (9.0.115.0)を公開しました。H.264/HE-AACコーデックのサポートのおかげで、Moviestarと言うコードネームを名付けられたし、人々の注目の的になちゃったんですね。その他に、multi-core processorとhardware scalingなどの機能を提供します。
  • H.264/HE-AAC codec support
  • Multi-core support
  • Hardware scaling
  • Multi-threaded video decoding
  • Image scaling
  • Flash Player cache
  • Flash Media Server buffering
  • Full screen mode for Linux
  • Accessibility support for the plugin
  • Mac Os X Leopard support

Related links
Adobe Flash Player 9 Release Notes
Security changes in Flash Player 9

via Emmy Huang blog

Older Posts »