Packagesekati.load
Classpublic class ApplicationLoader
InheritanceApplicationLoader Inheritance flash.events.EventDispatcher

ApplicationLoader provides a baseline invisible preloader facility for Canvas based Application SWF files that implement the core API (Document or DocumentPreloader).

The loader insures that the SWF has been fully loaded by the client before initialization. Once loading has completed the BootstrapEvent.APP_LOAD event is invoked.

Note: This is not a visual preloader. Rather, it is added as a preventative measure to insure smooth execution and initialization of the SWF. If an external visual preloader is necessary for your API based application you should subclass DocumentPreloader.


Example
   preloader = new ApplicationLoader( this );
   preloader.addEventListener( BootstrapEvent.APP_LOAD, applicationLoadHandler );
   
   private function applicationLoadHandler( e : BootstrapEvent ) : void {
    preloader.removeEventListener( BootstrapEvent.APP_LOAD, applicationLoadHandler );
    trace( "application loaded!" );
   }
  

See also

sekati.display.DocumentPreloader
sekati.display.Document
sekati.display.Canvas


Public Properties
 PropertyDefined by
  bytesLoaded : uint
[read-only] The number of loaded bytes.
ApplicationLoader
  bytesTotal : uint
[read-only] The number of total bytes.
ApplicationLoader
  percent : Number
[read-only] The (1 based) percent loaded.
ApplicationLoader
Public Methods
 MethodDefined by
  
ApplicationLoader(stage:Stage)
ApplicationLoader Constructor
ApplicationLoader
  
load():void
Begin checking the SWF load status.
ApplicationLoader
Protected Methods
 MethodDefined by
  
enterFrame(e:Event):void
Frame-based load handler; dispatches BootstrapEvent.APP_LOAD on completion.
ApplicationLoader
Property detail
bytesLoadedproperty
bytesLoaded:uint  [read-only]

The number of loaded bytes.

Implementation
    public function get bytesLoaded():uint
bytesTotalproperty 
bytesTotal:uint  [read-only]

The number of total bytes.

Implementation
    public function get bytesTotal():uint
percentproperty 
percent:Number  [read-only]

The (1 based) percent loaded.

Implementation
    public function get percent():Number
Constructor detail
ApplicationLoader()constructor
public function ApplicationLoader(stage:Stage)

ApplicationLoader Constructor

Parameters
stage:Stage — document class instance being loaded.
Method detail
enterFrame()method
protected function enterFrame(e:Event):void

Frame-based load handler; dispatches BootstrapEvent.APP_LOAD on completion.

Parameters
e:Event
load()method 
public function load():void

Begin checking the SWF load status.