API Docs for: 1.2.1
Show:

AssetLoader Class

Extends EventTarget
Module: PIXI

A Class that loads a bunch of images / sprite sheet files. Once the assets have been loaded they are added to the PIXI Texture cache and can be accessed easily through PIXI.Texture.fromFrameId(), PIXI.Texture.fromImage() and PIXI.Sprite.fromImage(), PIXI.Sprite.fromFromeId() When all items have been loaded this class will dispatch a 'loaded' event As each individual item is loaded this class will dispatch a 'progress' event

Constructor

AssetLoader

(
  • assetURLs
)

Parameters:

  • assetURLs Array

    an array of image/sprite sheet urls that you would like loaded supported. Supported image formats include "jpeg", "jpg", "png", "gif". Supported sprite sheet data formats only include "JSON" at this time

Item Index

Properties

Properties

assetURLs

Array

The array of asset URLs that are going to be loaded