BiImageLoader

This class loads an image file to memory

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

Constructor

new BiImageLoader ( )

Parameters

No parameters.

Properties

Name Type get set Descripton
error Boolean checked Whether any error occured when loading the file
loaded Boolean checked Whether the file has been loaded
loading Boolean checked Whether a file is currently being loaded
uri BiUri checked checked The URI (location) of the file to load. If this is set to a string a new URI is created from that string relative to the ADF path.

Methods

Name Description
abort Stops the loading of the current file
load Does an HTTP GET to recieve the file

Events

Name Type Bubbles Descripton
load BiEvent Fires when the file has been loaded

Static Methods

None.

Static Fields

None.

Remarks

Only asynchronous loading is supported. Trying to load an image using synchronous will raise an exception

Method Details

abort

Stops the loading of the current file

Syntax

object.abort
 (
 
 )
 

Parameters

No arguments.

Return Type

void

load

Does an HTTP GET to recieve the file

Syntax

object.load
 (
 
 [
 oUri
 ]
 
 )
 

Parameters

Name Type Optional Default Descripton
oUri BiUri checked The location of the file. If this is a string a new URI is created from that string relative to the ADF path.

Return Type

void