| Package | sekati.load |
| Class | public class AbstractLoader |
| Inheritance | AbstractLoader flash.events.EventDispatcher |
| Implements | ILoader |
| Subclasses | ByteArrayLoader, ImageLoader, SoundLoader, StyleSheetLoader, SWFLoader, TextLoader, VariableLoader, XMLLoader |
Loader & URLLoader logic for API Loaders.
| Property | Defined by | ||
|---|---|---|---|
| bytesLoaded : uint [read-only]
The loader bytes loaded.
| AbstractLoader | ||
| bytesTotal : uint [read-only]
The loader bytes total.
| AbstractLoader | ||
| context : LoaderContext
Returns
LoaderContext (for Loader types only). | AbstractLoader | ||
| dataFormat : String
Returns
URLLoaderDataFormat (for URLLoader types only). | AbstractLoader | ||
| loading : Boolean [read-only]
The loading status of the loader; if
true the loader is loading, if false the loader has not started yet. | AbstractLoader | ||
| percent : Number [read-only]
The loader percentile.
| AbstractLoader | ||
| rawContent : * [read-only]
The loosely-typed
AbstractLoader content. | AbstractLoader | ||
| ready : Boolean [read-only]
The ready status of the loader content; if
true the content is loaded, if false the content is not loaded. | AbstractLoader | ||
| request : URLRequest
The loader
URLRequest. | AbstractLoader | ||
| soundContext : SoundLoaderContext
Returns
SoundLoaderContext (for Sound types only). | AbstractLoader | ||
| url : String
The loader url.
| AbstractLoader | ||
| Property | Defined by | ||
|---|---|---|---|
| loader : * | AbstractLoader | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractLoader(loaderType:Class, url:String)
AbstractLoader Constructor
| AbstractLoader | ||
|
close():void
Stop the loading process.
| AbstractLoader | ||
|
destroy():void
Cleanup the
AbstractLoader. | AbstractLoader | ||
|
dispatchEvent(e:Event):Boolean
Optimized
dispatchEvent only dispatches when there are listeners. | AbstractLoader | ||
|
load():void
Start the loading process.
| AbstractLoader | ||
| Method | Defined by | ||
|---|---|---|---|
|
closeHandler(e:Event):void
Event.CLOSE handler. | AbstractLoader | ||
|
configureListeners(isAdd:Boolean = true):void
Configure the adding & removing of loader listeners.
| AbstractLoader | ||
|
genericErrorHandler(e:ErrorEvent):void
Generic processor for
ErrorEvent's. | AbstractLoader | ||
|
initHandler(e:Event):void
Event.INIT handler. | AbstractLoader | ||
|
ioErrorHandler(e:IOErrorEvent):void
IOErrorEvent.IO_ERROR handler. | AbstractLoader | ||
|
openHandler(e:Event):void
Event.OPEN handler. | AbstractLoader | ||
|
progressHandler(e:ProgressEvent):void
ProgressEvent.PROGRESS handler. | AbstractLoader | ||
|
securityErrorHandler(e:SecurityErrorEvent):void
SecurityErrorEvent.SECURITY_ERROR handler. | AbstractLoader | ||
| bytesLoaded | property |
bytesLoaded:uint [read-only]The loader bytes loaded.
Implementation public function get bytesLoaded():uint
| bytesTotal | property |
bytesTotal:uint [read-only]The loader bytes total.
Implementation public function get bytesTotal():uint
| context | property |
context:LoaderContext [read-write]
Returns LoaderContext (for Loader types only).
public function get context():LoaderContext
public function set context(value:LoaderContext):void
| dataFormat | property |
dataFormat:String [read-write]
Returns URLLoaderDataFormat (for URLLoader types only).
public function get dataFormat():String
public function set dataFormat(value:String):void
| loader | property |
protected var loader:*
| loading | property |
loading:Boolean [read-only]
The loading status of the loader; if true the loader is loading, if false the loader has not started yet.
public function get loading():Boolean
| percent | property |
percent:Number [read-only]The loader percentile.
Implementation public function get percent():Number
| rawContent | property |
rawContent:* [read-only]
The loosely-typed AbstractLoader content.
public function get rawContent():*
| ready | property |
ready:Boolean [read-only]
The ready status of the loader content; if true the content is loaded, if false the content is not loaded.
public function get ready():Boolean
| request | property |
request:URLRequest [read-write]
The loader URLRequest.
public function get request():URLRequest
public function set request(value:URLRequest):void
| soundContext | property |
soundContext:SoundLoaderContext [read-write]
Returns SoundLoaderContext (for Sound types only).
public function get soundContext():SoundLoaderContext
public function set soundContext(value:SoundLoaderContext):void
| url | property |
url:String [read-write]The loader url.
Implementation public function get url():String
public function set url(value:String):void
| AbstractLoader | () | constructor |
public function AbstractLoader(loaderType:Class, url:String)AbstractLoader Constructor
ParametersloaderType:Class — Class definition to use for the file type.
|
|
url:String — of the file to be loaded.
|
| close | () | method |
public function close():voidStop the loading process.
| closeHandler | () | method |
protected function closeHandler(e:Event):void
Event.CLOSE handler.
e:Event |
| configureListeners | () | method |
protected function configureListeners(isAdd:Boolean = true):voidConfigure the adding & removing of loader listeners.
ParametersisAdd:Boolean (default = true) — true adds the listeners, false removes them.
|
| destroy | () | method |
public function destroy():void
Cleanup the AbstractLoader.
| dispatchEvent | () | method |
public override function dispatchEvent(e:Event):Boolean
Optimized dispatchEvent only dispatches when there are listeners.
e:Event |
Boolean |
| genericErrorHandler | () | method |
protected function genericErrorHandler(e:ErrorEvent):void
Generic processor for ErrorEvent's.
e:ErrorEvent |
| initHandler | () | method |
protected function initHandler(e:Event):void
Event.INIT handler.
e:Event |
| ioErrorHandler | () | method |
protected function ioErrorHandler(e:IOErrorEvent):void
IOErrorEvent.IO_ERROR handler.
e:IOErrorEvent |
| load | () | method |
public function load():voidStart the loading process.
| openHandler | () | method |
protected function openHandler(e:Event):void
Event.OPEN handler.
e:Event |
| progressHandler | () | method |
protected function progressHandler(e:ProgressEvent):void
ProgressEvent.PROGRESS handler.
e:ProgressEvent |
| securityErrorHandler | () | method |
protected function securityErrorHandler(e:SecurityErrorEvent):void
SecurityErrorEvent.SECURITY_ERROR handler.
e:SecurityErrorEvent |