Class fever.data.libs.BitmapLib

Description

BitmapLib is used to load external image and store data into a BitmapData object.

We can retreive ( attach ) data using directly getContent method or using BitmapLibLocator helper.

See Also

Method Index

new BitmapLib()
getBytesLoaded(), getBytesTotal(), getContent(), initEventSource(), isLoaded(), load(), onLoadInit(), release(), setContent(), toString()

Constructor Detail

BitmapLib

public function BitmapLib(repositoryID:String)

Constructor.

Method Detail

initEventSource

public function initEventSource():Void

Inits event structure.

Here a BitmapLibEvent object

load

public function load(url:String):Void

Starts loading bitmap dara from passed-in url adress.

Parameters

urlImage's url

getBytesLoaded

public function getBytesLoaded():Number

Returns loaded bytes.

getBytesTotal

public function getBytesTotal():Number

Returns total bytes to load.

isLoaded

public function isLoaded():Boolean

Indicates if BitmapData is available or not.

onLoadInit

public function onLoadInit():Void

Trigerred when data il correctly loaded.

release

public function release():Void

Release current lib.

Bitmap data is disposed

getContent

public function getContent():BitmapData

Returns current content, here a BitmapData object.

setContent

public function setContent(bmp:BitmapData):Void

Sets BitmapData content.

Parameters

bmpnew BitmapData content

toString

public function toString():String

String representation of instance.