Packageaway3d.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
 Event Summary Defined 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()

Creates a new TextureLoadQueue object.

####INIT####
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
complete Event
Event Object Type: flash.events.Event

httpStatus Event  
Event Object Type: flash.events.HTTPStatusEvent

ioError Event  
Event Object Type: flash.events.IOErrorEvent

progress Event  
Event Object Type: flash.events.ProgressEvent

securityError Event  
Event Object Type: flash.events.SecurityErrorEvent