Packagesekati.load
Classpublic class AbstractLoader
InheritanceAbstractLoader Inheritance flash.events.EventDispatcher
ImplementsILoader
SubclassesByteArrayLoader, ImageLoader, SoundLoader, StyleSheetLoader, SWFLoader, TextLoader, VariableLoader, XMLLoader

AbstractLoader provides the core Loader & URLLoader logic for API Loaders.



Public Properties
 PropertyDefined 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
Protected Properties
 PropertyDefined by
  loader : *
AbstractLoader
Public Methods
 MethodDefined 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
Protected Methods
 MethodDefined 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
Property detail
bytesLoadedproperty
bytesLoaded:uint  [read-only]

The loader bytes loaded.

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

The loader bytes total.

Implementation
    public function get bytesTotal():uint
contextproperty 
context:LoaderContext  [read-write]

Returns LoaderContext (for Loader types only).

Implementation
    public function get context():LoaderContext
    public function set context(value:LoaderContext):void
dataFormatproperty 
dataFormat:String  [read-write]

Returns URLLoaderDataFormat (for URLLoader types only).

Implementation
    public function get dataFormat():String
    public function set dataFormat(value:String):void
loaderproperty 
protected var loader:*
loadingproperty 
loading:Boolean  [read-only]

The loading status of the loader; if true the loader is loading, if false the loader has not started yet.

Implementation
    public function get loading():Boolean
percentproperty 
percent:Number  [read-only]

The loader percentile.

Implementation
    public function get percent():Number
rawContentproperty 
rawContent:*  [read-only]

The loosely-typed AbstractLoader content.

Implementation
    public function get rawContent():*
readyproperty 
ready:Boolean  [read-only]

The ready status of the loader content; if true the content is loaded, if false the content is not loaded.

Implementation
    public function get ready():Boolean
requestproperty 
request:URLRequest  [read-write]

The loader URLRequest.

Implementation
    public function get request():URLRequest
    public function set request(value:URLRequest):void
soundContextproperty 
soundContext:SoundLoaderContext  [read-write]

Returns SoundLoaderContext (for Sound types only).

Implementation
    public function get soundContext():SoundLoaderContext
    public function set soundContext(value:SoundLoaderContext):void
urlproperty 
url:String  [read-write]

The loader url.

Implementation
    public function get url():String
    public function set url(value:String):void
Constructor detail
AbstractLoader()constructor
public function AbstractLoader(loaderType:Class, url:String)

AbstractLoader Constructor

Parameters
loaderType:Class — Class definition to use for the file type.
 
url:String — of the file to be loaded.
Method detail
close()method
public function close():void

Stop the loading process.

closeHandler()method 
protected function closeHandler(e:Event):void

Event.CLOSE handler.

Parameters
e:Event
configureListeners()method 
protected function configureListeners(isAdd:Boolean = true):void

Configure the adding & removing of loader listeners.

Parameters
isAdd: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.

Parameters
e:Event

Returns
Boolean
genericErrorHandler()method 
protected function genericErrorHandler(e:ErrorEvent):void

Generic processor for ErrorEvent's.

Parameters
e:ErrorEvent
initHandler()method 
protected function initHandler(e:Event):void

Event.INIT handler.

Parameters
e:Event
ioErrorHandler()method 
protected function ioErrorHandler(e:IOErrorEvent):void

IOErrorEvent.IO_ERROR handler.

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

Start the loading process.

openHandler()method 
protected function openHandler(e:Event):void

Event.OPEN handler.

Parameters
e:Event
progressHandler()method 
protected function progressHandler(e:ProgressEvent):void

ProgressEvent.PROGRESS handler.

Parameters
e:ProgressEvent
securityErrorHandler()method 
protected function securityErrorHandler(e:SecurityErrorEvent):void

SecurityErrorEvent.SECURITY_ERROR handler.

Parameters
e:SecurityErrorEvent