BiSerializedLoader

Used to start multiple loaders in the order they were added.

This class extends BiAbstractLoader and therefore all methods and fields available for BiAbstractLoader are also available for BiSerializedLoader .

Constructor

new BiSerializedLoader ( )

Parameters

No parameters.

Properties

Name Type get set Descripton
count Number checked Returns the number of added loaders.
error Boolean checked Whether any error occured when loading.
loaded Boolean checked Whether all loaders have finished loading.
loadedCount Number checked Returns the number of finished loaders.
loading Boolean checked Whether a loder is currently loading.

Methods

Name Description
abort Stops the loading
add Adds a loader to the queue
load Starts the loading one loader at a time. One loader finishes loading before the next loader starts.

Events

Name Type Bubbles Descripton
load BiEvent Fires when all the loaders have finished loading, or if an error occurs.
progress BiEvent Fires every time one of the loaders has finished. This is useful for providing visual feedback.

Static Methods

None.

Static Fields

None.

Remarks

Method Details

abort

Stops the loading

Syntax

object.abort
 (
 
 )
 

Parameters

No arguments.

Return Type

void

add

Adds a loader to the queue

Syntax

object.add
 (
 oLoader
 )
 

Parameters

Name Type Optional Default Descripton
oLoader BiAbstractLoader The loader to add to the queue

Return Type

void

load

Starts the loading one loader at a time. One loader finishes loading before the next loader starts.

Syntax

object.load
 (
 
 )
 

Parameters

No arguments.

Return Type

void