Packagecom.acleveraddress.net.multi_loader.items
Classpublic class MultiLoaderItemManager
InheritanceMultiLoaderItemManager Inheritance AbstractMultiLoaderManager

A collection of static methods which return loading data for all items in every current loader

As this information is always returned in the progress event, it shouldn't really be necessary to access this directly.

When loading an item, ActionScript has no idea what the total file size is until it has started downloading, which means that the bytes total cannot be worked out until the last file has begun downloading

To get around this, there are options to monitor progress by weight or ratio instead

With ratio, each file is treated as one unit, so if, for example you were loading two files:
file_a is 1000 bytes
file_b is 4000 bytes
Then if file_a has loaded and file_b hasn't, the loader will report that 1 out of 2 (50%) has been loaded, even though the actual progress is only 20%

Weight is similar to ratio, except you can specify the units for each (the default is 1)
Using the example of the files above, then imagine:
file_a has its weight set to 1, and
file_b has its weight set to 4
then the total weight is 5 (1 + 4), so when file_a has loaded and file_b has not, then the loader reports that 1 out of 5 (20%) has been loaded, which is correct.
Theoretically, you could find all the required file sizes out before loading, and set the weights for all items perfectly accurately, but that can be quite a lot of effort, so often a rough guess will be used, eg A big video file might have a weight of 10, while a small XML file could be .5

See also

com.research_now.net.multi_loader.events.MultiLoaderProgressEvent


Public Properties
 PropertyDefined by
  allItems : Array
[static][read-only]
MultiLoaderItemManager
  bytesLoaded : Number
[static][read-only]
MultiLoaderItemManager
  bytesTotal : Number
[static][read-only]
MultiLoaderItemManager
  loadedItems : Array
[static][read-only]
MultiLoaderItemManager
  loadingItems : Array
[static][read-only]
MultiLoaderItemManager
  ratioLoaded : Number
[static][read-only] The ratio loaded is an overall percentage of what has loaded, acting as if every item is the same size, so if 6 out of 10 items have loaded then this will return 60%, even if the remaining 4 items are much larger
MultiLoaderItemManager
  ratioTotal : Number
[static][read-only] The ratio loaded is an overall percentage of what has loaded, acting as if every item is the same size, so if 6 out of 10 items have loaded then this will return 60%, even if the remaining 4 items are much larger
MultiLoaderItemManager
  weightLoaded : Number
[static][read-only] Returns the overall weight loaded for all current loaders
MultiLoaderItemManager
  weightTotal : Number
[static][read-only] Returns the overall weight total for all current loaders
MultiLoaderItemManager
Protected Methods
 MethodDefined by
 Inherited
hasFailed(element:MultiLoaderItem, ... args):Boolean
[static]
AbstractMultiLoaderManager
 Inherited
isLoaded(element:MultiLoaderItem, ... args):Boolean
[static]
AbstractMultiLoaderManager
 Inherited
isLoading(element:MultiLoaderItem, ... args):Boolean
[static]
AbstractMultiLoaderManager
 Inherited
isPending(element:MultiLoaderItem, ... args):Boolean
[static]
AbstractMultiLoaderManager
Property detail
allItemsproperty
allItems:Array  [read-only]

Implementation
    public static function get allItems():Array
bytesLoadedproperty 
bytesLoaded:Number  [read-only]

Implementation
    public static function get bytesLoaded():Number
bytesTotalproperty 
bytesTotal:Number  [read-only]

Implementation
    public static function get bytesTotal():Number
loadedItemsproperty 
loadedItems:Array  [read-only]

Implementation
    public static function get loadedItems():Array
loadingItemsproperty 
loadingItems:Array  [read-only]

Implementation
    public static function get loadingItems():Array
ratioLoadedproperty 
ratioLoaded:Number  [read-only]

The ratio loaded is an overall percentage of what has loaded, acting as if every item is the same size, so if 6 out of 10 items have loaded then this will return 60%, even if the remaining 4 items are much larger

Implementation
    public static function get ratioLoaded():Number
ratioTotalproperty 
ratioTotal:Number  [read-only]

The ratio loaded is an overall percentage of what has loaded, acting as if every item is the same size, so if 6 out of 10 items have loaded then this will return 60%, even if the remaining 4 items are much larger

Implementation
    public static function get ratioTotal():Number
weightLoadedproperty 
weightLoaded:Number  [read-only]

Returns the overall weight loaded for all current loaders

Implementation
    public static function get weightLoaded():Number
weightTotalproperty 
weightTotal:Number  [read-only]

Returns the overall weight total for all current loaders

Implementation
    public static function get weightTotal():Number