Packageaway3dlite.loaders.utils
Classpublic class TextureLoadQueue
InheritanceTextureLoadQueue Inheritance flash.events.EventDispatcher

Creates a queue of textures that load sequentially

Public Properties
 PropertyDefined by
  currentItemIndex : int
[read-only] Returns the index of the current texture baing loaded
TextureLoadQueue
  currentLoader : TextureLoader
[read-only] Returns the loader object for the current texture being loaded
TextureLoadQueue
  currentURLRequest : URLRequest
[read-only] Returns the url request object for the current texture being loaded
TextureLoadQueue
  images : Array
[read-only] Returns an array of loader objects containing the loaded images
TextureLoadQueue
  numItems : int
[read-only] Returns the number of items whating in the queue to be loaded.
TextureLoadQueue
  percentLoaded : Number
[read-only] Returns the overall progress of the loader queue as a percentage.
TextureLoadQueue
  progress : Number
[read-only] Returns the overall progress of the loader queue.
TextureLoadQueue
Public Methods
 MethodDefined by
  
Creates a new TextureLoadQueue object.
TextureLoadQueue
  
addItem(loader:TextureLoader, request:URLRequest):void
Adds a new loader and request object to the load queue.
TextureLoadQueue
  
start():void
Starts the load queue loading.
TextureLoadQueue
Events
 EventSummaryDefined by
    TextureLoadQueue
    TextureLoadQueue
    TextureLoadQueue
    TextureLoadQueue
    TextureLoadQueue
Property detail
currentItemIndexproperty
currentItemIndex:int  [read-only]

Returns the index of the current texture baing loaded

Implementation
    public function get currentItemIndex():int
currentLoaderproperty 
currentLoader:TextureLoader  [read-only]

Returns the loader object for the current texture being loaded

Implementation
    public function get currentLoader():TextureLoader
currentURLRequestproperty 
currentURLRequest:URLRequest  [read-only]

Returns the url request object for the current texture being loaded

Implementation
    public function get currentURLRequest():URLRequest
imagesproperty 
images:Array  [read-only]

Returns an array of loader objects containing the loaded images

Implementation
    public function get images():Array
numItemsproperty 
numItems:int  [read-only]

Returns the number of items whating in the queue to be loaded.

Implementation
    public function get numItems():int
percentLoadedproperty 
percentLoaded:Number  [read-only]

Returns the overall progress of the loader queue as a percentage.

Implementation
    public function get percentLoaded():Number
progressproperty 
progress:Number  [read-only]

Returns the overall progress of the loader queue. Progress of 0 means that nothing has loaded. Progress of 1 means that all the items are fully loaded

Implementation
    public function get progress():Number
Constructor detail
TextureLoadQueue()constructor
public function TextureLoadQueue() Init Parameters
Method detail
addItem()method
public function addItem(loader:TextureLoader, request:URLRequest):void

Adds a new loader and request object to the load queue.

Parameters
loader:TextureLoader — The loader object to add to the queue.
 
request:URLRequest — The url request object to add tp the queue.
start()method 
public function start():void

Starts the load queue loading.

Event detail
completeevent 
Event object type: flash.events.Event

httpStatusevent  
Event object type: flash.events.HTTPStatusEvent

ioErrorevent  
Event object type: flash.events.IOErrorEvent

progressevent  
Event object type: flash.events.ProgressEvent

securityErrorevent  
Event object type: flash.events.SecurityErrorEvent

Wiki link
Click to go to the wiki page for 'away3dlite.loaders.utils.TextureLoadQueue'

Code examples

Comments