Module hilo/loader/LoadQueue
Requires
hilo/core/Class, hilo/event/EventMixin, hilo/loader/ImageLoader, hilo/loader/ScriptLoader
Source
LoadQueue.js
LoadQueue is a queue-like loader.
Property | Defined | |
---|---|---|
maxConnections:Int
the limited concurrent connections.
|
LoadQueue |
Method | Defined | |
---|---|---|
LoadQueue(source:Object)
Constructor
|
LoadQueue | |
add(source:Object|Array):LoadQueue
Add desired resource,could be a single object or array resource.
|
LoadQueue | |
fire(type:String, detail:Object):Boolean
Send events.
|
LoadQueue | |
get(specified:String):Object
get resource object by id or src
|
LoadQueue | |
getContent(specified:String):Object
get resource object content by id or src
|
LoadQueue | |
getLoaded():Uint
get loaded resource count
|
LoadQueue | |
getSize(identify:Boolean):Number
get resource size, loaded or all.
|
LoadQueue | |
getTotal():Uint
get all resource count
|
LoadQueue | |
off(type:String, listener:Function):Object
Remove one event listener.
|
LoadQueue | |
on(type:String, listener:Function, once:Boolean):Object
Add an event listenser.
|
LoadQueue | |
removeContent(specified:String)
remove resource object content by id or src
|
LoadQueue | |
start():LoadQueue
start loading
|
LoadQueue |