| Package | sekati.load |
| Class | public class ApplicationLoader |
| Inheritance | ApplicationLoader flash.events.EventDispatcher |
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.
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
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
ApplicationLoader(stage:Stage)
ApplicationLoader Constructor
| ApplicationLoader | ||
|
load():void
Begin checking the SWF load status.
| ApplicationLoader | ||
| Method | Defined by | ||
|---|---|---|---|
|
enterFrame(e:Event):void
Frame-based load handler; dispatches
BootstrapEvent.APP_LOAD on completion. | ApplicationLoader | ||
| bytesLoaded | property |
bytesLoaded:uint [read-only]The number of loaded bytes.
Implementation public function get bytesLoaded():uint
| bytesTotal | property |
bytesTotal:uint [read-only]The number of total bytes.
Implementation public function get bytesTotal():uint
| percent | property |
percent:Number [read-only]The (1 based) percent loaded.
Implementation public function get percent():Number
| ApplicationLoader | () | constructor |
public function ApplicationLoader(stage:Stage)ApplicationLoader Constructor
Parametersstage:Stage — document class instance being loaded.
|
| enterFrame | () | method |
protected function enterFrame(e:Event):void
Frame-based load handler; dispatches BootstrapEvent.APP_LOAD on completion.
e:Event |
| load | () | method |
public function load():voidBegin checking the SWF load status.