Core stage for UI creation.
Use it to create UI component ( MovieClip or AsWing components for example )
Support new player 9 feature 'Fullscreen mode'.
FeverStage allow better levels managment defining pre-level like :
static public onStageAlignChangeEVENT:EventType Stage.align property change. static public onStageMenuChangeEVENT:EventType Stage.scaleMode property change. static public onStageScaleModeChangeEVENT:EventType Stage.showMenu property change. static public DISABLED_FEATURE:Booleanstatic public context:MovieClippublic level0:MovieClip [Read Only] _level0 target. public root:MovieClip [Read Only]public bitmapLevel:MovieClip [Read Only]public fontLevel:MovieClip [Read Only]public themeLevel:MovieClip [Read Only]public backgroundLevel:MovieClip [Read Only]public overlayLevel:MovieClip [Read Only]public cursorLevel:MovieClip [Read Only]public showMenu:Booleanpublic scaleMode:Stringpublic align:Stringstatic public function getInstance():FeverStageCreates and returns FeverStage instance
Always return the same instance ( Singleton desing ).
public function addEventListener(type:EventType, listener):Void
Adds passed-in listener for receiving passed-in type event type.
type | Name of the Event. |
listener | Listener object. |
public function removeEventListener(type:EventType, listener):Void
Removes passed-in listener that subscribed to passed-in type event type.
type | Name of the Event. |
listener | Listener object. |
public function broadcastEvent(event:IEvent):VoidBroadcasts event to suscribed listeners.
event | an IEvent instance |
public function createEmptyMovieClip(name:String):MovieClip
Creates and returns a new empty MovieClip on root level.
MovieClip depth is automatically calculated.
name | ( optional ) MovieClip name |
public function createOverlayTarget():MovieClipCreates a new MovieClip target on overlay level.
Means that MovieClip is at the top of rendering layer.
public function createCursorTarget():MovieClipCreates cursor target in dedicated layer.
public function getLoggerTarget():MovieClipReturns specific level to keep a possible logging view on top of application.
public function setBackground(b:Background):VoidSets a new Background for application.