PackageTop Level
Classpublic class SekatiMain
InheritanceSekatiMain Inheritance Document Inheritance Canvas Inheritance CoreSprite Inheritance flash.display.Sprite

SekatiMain provides an example implementation of the application Document class for SEKATI API.

See also

sekati.display.Document


Public Properties
 PropertyDefined by
 Inheritedbootstrap : Bootstrap
The Boostrap (queued initialization) for adding BootstrapEvent listeners.
Document
 Inheritedenabled : Boolean
Boolean stub property which subclasses implement to control core behavor availability such as interactivity, liquidity, drag-drop functionality.
CoreSprite
 InheritedflashVars : Object
[static] Reference to the object that contains name-value pairs that represent the parameters provided to the loaded SWF file through the Object Embed Flashvars tags.
Canvas
 InheritedhasParent : Boolean
[static] Reference property which defines whether the Canvas has a parent (and has thus been loaded by another SWF): true or not (is executing under its own FlashPlayer instance): false.
Canvas
 InheritedinteractiveMode : Boolean
Specifies the mouse cursors modal state in the object as an interactive target via: buttonMode, mouseChildren & tabChildren.
CoreSprite
 InheritedloaderInfo : LoaderInfo
[static] Reference to the LoaderInfo object associated with the SWF file containing information about loading the file to which this display object belongs.
Canvas
 Inheritedpreloader : ApplicationLoader
The ApplicationLoader instance if load progress checking is desired via BootstrapEvent.APP_LOAD listeners.
Document
 Inheritedroot : DisplayObject
[static] Reference to the Application root which represents the top-most display object, if this is the first SWF file loaded (e.g.
Canvas
 Inheritedscale : Number
The scale value.
CoreSprite
 Inheritedstage : Stage
[static] Reference to the Application stage instance which represents the main drawing area.
Canvas
Public Methods
 MethodDefined by
  
SekatiMain Application Constructor
SekatiMain
 Inherited
addChildren(... args):void
Add multiple child DisplayObject's.
CoreSprite
 Inherited
destroy():void
Clean up after thy self.
CoreSprite
 Inherited
toString():String
Return reflective output.
CoreSprite
Protected Methods
 MethodDefined by
 Inherited
The SWF has been fully loaded: removed the ApplicationLoader & execute Document setup code: initTweenEngine() & initAPI().
Document
 Inherited
The Application API has been fully initialized; remove the Bootstrap & call initEntryPoint.
Document
  
initAPI(hasBootstrap:Boolean = true):void
Initialize the API Bootstrap queued core initialization routines.
SekatiMain
 Inherited
initDocument(e:Event):void
Initialize the Document & update the Canvas references.
Document
  
Initialize Entry Point: all custom (non-API) application layer code enters.
SekatiMain
  
Initializes SWF movie properties & StageDisplay.
SekatiMain
  
Initialize Tweener specialProperties shortcuts.
SekatiMain
 Inherited
invalidate():void
Request a redraw, use for deferred rendering.
CoreSprite
 Inherited
offStage(e:Event = null):void
Stub: Sprite has been removed from stage.
CoreSprite
 Inherited
onStage(e:Event = null):void
Stub: Sprite has been added to stage.
CoreSprite
 Inherited
Initialize or update the core DisplayList reference properties.
Canvas
Constructor detail
SekatiMain()constructor
public function SekatiMain()

SekatiMain Application Constructor

Method detail
initAPI()method
protected override function initAPI(hasBootstrap:Boolean = true):void

Initialize the API Bootstrap queued core initialization routines.

Parameters
hasBootstrap:Boolean (default = true) — defines whether the Document initializes the API Bootstrap sequence or runs the API "dumb".

Customization: Override this method & adjust to point to your custom Bootstrap (extended from sekati.core.Bootstrap) if custom initialization is required or override and alter the default hasBootstrap = true to false if no bootstrapping is needed.

initEntryPoint()method 
protected override function initEntryPoint():void

Initialize Entry Point: all custom (non-API) application layer code enters.

Customization: When implementing the API you will most likely extend Document as your Document Class overriding initEntryPoint to instantiate your manager, ui & other core classes.

initMovieProperties()method 
protected override function initMovieProperties():void

Initializes SWF movie properties & StageDisplay.

Customization: Override this method & adjust to fit your application specification. Be sure to either call super.initMovieProperties() or StageDisplay.$.init() to initialize stage management.

initTweenEngine()method 
protected override function initTweenEngine():void

Initialize Tweener specialProperties shortcuts.

Customization: When overriding this method only init the shortcuts needed by your application to minimize memory usage.