Class Index | File Index

Classes


Class createjs.Loader


Defined in: loader.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.Loader(listener, item)
A class that loads a file either from a server or from a cache.
Field Summary
Field Attributes Field Name and Description
<static>  
createjs.Loader.Extension
Extension IDs.
<static>  
createjs.Loader.Type
Item types.
Method Summary
Method Attributes Method Name and Description
<static>  
createjs.Loader.Cache()
An interface that enumerates methods to access a cache storage used by the createjs.Loader object and its derivatives.
 
Cancels loading this item.
<static>  
createjs.Loader.getCache()
Retrieves an available createjs.Loader.Cache interface.
 
Returns a reference to the manifest item.
 
Retrieves the current loading progress.
 
handleEvent(event)
 
 
handleGetSuccess(key, data)
 
 
<static>  
createjs.Loader.Listener()
An interface that listens events from a createjs.Loader object.
 
load()
Starts loading the item associated with this object.
<static>  
createjs.Loader.resetCache()
Clears all files in the cache and resets its state.
 
sendFileComplete(error, buffer)
Sends a completion event (or an error event) to the listener attached to this loader, i.e.
Class Detail
createjs.Loader(listener, item)
A class that loads a file either from a server or from a cache.
Parameters:
{createjs.Loader.Listener} listener
{createjs.Loader.Item} item
Field Detail
<static> createjs.Loader.Extension
Extension IDs.

<static> createjs.Loader.Type
Item types.
Method Detail
<static> createjs.Loader.Cache()
An interface that enumerates methods to access a cache storage used by the createjs.Loader object and its derivatives.

cancel()
Cancels loading this item.

<static> {createjs.Loader.Cache} createjs.Loader.getCache()
Retrieves an available createjs.Loader.Cache interface. This method creates an object that implements the createjs.Loader.Cache interface and returns it.
Returns:
{createjs.Loader.Cache}

{createjs.Loader.Item} getItem()
Returns a reference to the manifest item.
Returns:
{createjs.Loader.Item}

{number} getProgress()
Retrieves the current loading progress.
Returns:
{number}

handleEvent(event)
Parameters:
event

handleGetError(key)
Parameters:
key

handleGetSuccess(key, data)
Parameters:
key
data

handlePutError(key)
Parameters:
key

handlePutSuccess(key)
Parameters:
key

<static> createjs.Loader.Listener()
An interface that listens events from a createjs.Loader object. This interface is used by the createjs.LoadQueue class to dispatch events to games.

load()
Starts loading the item associated with this object.

<static> createjs.Loader.resetCache()
Clears all files in the cache and resets its state.

sendFileComplete(error, buffer)
Sends a completion event (or an error event) to the listener attached to this loader, i.e. a createjs.LoadQueue object that owns this loader.
Parameters:
{boolean} error
{AudioBuffer} buffer

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:29 GMT+0900 (JST)