Controller

Handles main flow of information between UI views and datamodel.

Summary
ControllerHandles main flow of information between UI views and datamodel.
Functions
ControllerController constructor, paints the application background.
initializeInitialize application data model and user interface views.
disposeDispose of all resources used or referenced in the instance.
resizeForward a stage resize event to views and the model for masking.
loadScriptLoad a script from an external source.

Functions

Controller

public function Controller(app: Sprite)

Controller constructor, paints the application background.

Parameters

appmain application sprite

initialize

public function initialize(app: Sprite):void

Initialize application data model and user interface views.  Activates initially viewed widgets and initalizes a default state.

Parameters

appmain application sprite

dispose

public function dispose():void

Dispose of all resources used or referenced in the instance.

resize

public function resize():void

Forward a stage resize event to views and the model for masking.

loadScript

public function loadScript(script: String):void

Load a script from an external source.

public function Controller(app: Sprite)
Controller constructor, paints the application background.
public function initialize(app: Sprite):void
Initialize application data model and user interface views.
public function dispose():void
Dispose of all resources used or referenced in the instance.
public function resize():void
Forward a stage resize event to views and the model for masking.
public function loadScript(script: String):void
Load a script from an external source.
Close