Class fvaswing.FvAsWing

Description

Main class for AsWing application.

Defines a default container for application UI.

Sets ASWingUtils.setRootMovieClip to fever.display.FeverStage.root )

Sets CursorManager.CURSOR_LAYER to fever.display.FeverStage.createCursorTarget()

Preloads all components register in FvComponentBuffer

See Also

Field Index

ASWING_LEVEL, AWSHORTCUT, onUICompleteEVENT

Method Index

getContainer(), getInstance(), getRootMovieClip(), init(), toString()

Field Detail

ASWING_LEVEL

static public ASWING_LEVEL:String [Read Only]
Read only. Main movieclip level for AsWing UI creation.

onUICompleteEVENT

static public onUICompleteEVENT:EventType
Event type broadcasted when main container ( and children ) has been painted.

Add event listener to fever.display.FeverStage.addEventListener to listen to this event.

   Fever.stage.addEventListener( FvAsWing.onUICompleteEVENT, this );
 

Most case event is dispatched only once ( at the application initialization ) but if you force the UI repainting, event is broadcasted again.

AWSHORTCUT

static public AWSHORTCUT:String
Type identifier for shortcut definition for AsWing component.

Take a look at ShortcutMap class and fever.app.accelerator.ShortcutMap.registerCustomObject() method.

Method Detail

init

static public function init():Void

Only inits FvAsWing engine.

getInstance

static public function getInstance():FvAsWing

Returns FvAsWing instance.

Always returns the same instance.
Design Pattern Singleton.

Return

FvAsWing instance

getRootMovieClip

public function getRootMovieClip():MovieClip

Inits Fever AsWing Stage system and returns the new ASWingUtils.getRootMovieClip() target.

getContainer

public function getContainer():Container

Returns main application container.

toString

public function toString():String

Returns string representation.