muSprite

Sprite
muSprite

Main application class responsible for startup, shutdown and stage resize events.  It holds global application constants.

Summary
muSpriteMain application class responsible for startup, shutdown and stage resize events.
Functions
muSpriteCreate an instance of the application.
loadScriptLoad a script from an external source.
disposeDispose of all resources held by the application.

Functions

muSprite

public function muSprite()

Create an instance of the application.

If the application is started from a preloader then it waits for the loader to finish so the preloader can choose a theme color otherwise a random color is chosen.  A delayed function call is used to ensure that the stage is initialized before resizing the application to fully utilize the available stage area.  If the application is not started in any of these ways then it is loaded by the AIR frontend and started directly.

Control is then handed over to the Controller object and this class only handles stage resize events in the rest of the applications lifetime.

loadScript

public function loadScript(script: String):void

Load a script from an external source.

dispose

public function dispose():void

Dispose of all resources held by the application.

public function muSprite()
Create an instance of the application.
public function loadScript(script: String):void
Load a script from an external source.
public function dispose():void
Dispose of all resources held by the application.
Handles main flow of information between UI views and datamodel.
Close