stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE,zz);
focusEvent 를 사용하며, 어느 곳을 클릭해도 이벤트가 발생한다.
focusEvent 를 사용하며, 어느 곳을 클릭해도 이벤트가 발생한다.
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
stage.quality = StageQuality.BEST; //AIR ~1.5 에서는 무의미
stage.align=StageAlign.TOP_LEFT;
stage.quality = StageQuality.BEST; //AIR ~1.5 에서는 무의미
Some events that you might expect to be a part of the Stage class, such as enterFrame , exitFrame , frameConstructed , and render , cannot be Stage events because a reference to the Stage object cannot be guaranteed to exist in every situation where these events are used. Because these events cannot be dispatched by the Stage object, they are instead dispatched by every DisplayObject instance, which means that you can add an event listener to any DisplayObject instance to listen for these events. These events, which are part of the DisplayObject class, are called broadcast events to differentiate them from events that target a specific DisplayObject instance. Two other broadcast events, activate and deactivate , belong to DisplayObject's superclass, EventDispatcher. The activate anddeactivate events behave similarly to the DisplayObject broadcast events, except that these two events are dispatched not only by all DisplayObject instances, but also by all EventDispatcher instances and instances of other EventDispatcher subclasses. For more information on broadcast events, see the DisplayObject class.
도움말 문서에서 발췌한 Stage 클래스에 대한 내용 중 일부인데, 요점은.
스테이지는 이런 이벤트 적용이 안된다는 점 : enterFrame, exitFrame, frameConstructed, render
enterFrame , exitFrame , frameConstructed , and render , cannot be Stage events because a reference to the Stage object cannot be guaranteed to exist in every situation where these events are used. Because these events cannot be dispatched by the Stage object, they are instead dispatched by every DisplayObject instance, which means that you can add an event listener to any DisplayObject instance to listen for these events. These events, which are part of the DisplayObject class, are called broadcast events to differentiate them from events that target a specific DisplayObject instance. Two other broadcast events, activate and deactivate , belong to DisplayObject's superclass, EventDispatcher. The activate anddeactivate events behave similarly to the DisplayObject broadcast events, except that these two events are dispatched not only by all DisplayObject instances, but also by all EventDispatcher instances and instances of other EventDispatcher subclasses. For more information on broadcast events, see the DisplayObject class.도움말 문서에서 발췌한 Stage 클래스에 대한 내용 중 일부인데, 요점은.
스테이지는 이런 이벤트 적용이 안된다는 점 : enterFrame, exitFrame, frameConstructed, render





