Class: ImageLoader

ImageLoader

ImageLoader

new ImageLoader() → {ImageLoader}

This object provides an interface for loading textures into Image elements.
Author:
  • thegoldenmule
Source:
Returns:
Type
ImageLoader

Members

image :Image

The Image element that is being loaded.
Type:
  • Image
Source:

onLoaded :Signal

This signal is dispatched when the Image has been loaded.
Type:
  • Signal
Source:

Methods

load(url, imageElement)

Loads a url into an Image element.
Parameters:
Name Type Description
url String The URL to load.
imageElement Image An optional Image instance to load through.
Source:

loadResources(urls, callback)

Loads a list of URLs and calls the associated callback.
Parameters:
Name Type Description
urls String The List of URLs to load.
callback Function A Function to call once the images have been loaded.
Source: