Packagecom.acleveraddress.net.multi_loader
Classpublic class MultiLoaderQuickLoad

The quickest, simplest way to load an item - suitable for quick testing, or if you don't need access to the loader. As it creates a new loader instance for each item then it's not recommended to use it for more than that.

Usage eg:
var item : MultiLoaderItem = MultiLoaderQuickLoad.quickLoad('http://www.my_site.com/my_image.jpg', MultiLoaderTypes.IMAGE);
item.addEventListener(MultiLoaderEvent.LOAD_COMPLETE, onComplete);
item.addEventListener(MultiLoaderProgressEvent.PROGRESS, onProgress);
item.load();

See also

com.research_now.net.multi_loader.items.MultiLoaderItem
com.research_now.net.multi_loader.data.MultiLoaderTypes


Public Methods
 MethodDefined by
  
quickLoad(path:String, type:String = "", props:Object = null, params:Object = null):MultiLoaderItem
[static] Creates an invisible loader and the necessary item, and prepares it for loading.
MultiLoaderQuickLoad
Method detail
quickLoad()method
public static function quickLoad(path:String, type:String = "", props:Object = null, params:Object = null):MultiLoaderItem

Creates an invisible loader and the necessary item, and prepares it for loading.

Note that load() still needs to be called on the returned MultiLoaderItem

Parameters
path:String — The path to the resource - may be relative or absolute
 
type:String (default = "") — The type of asset to load. Not required but it is strongly advised to use this If not then MultiLoader will attempt to guess what the file type is, defaulting to text
 
props:Object (default = null) — An object containing the specific properties for this item. If the MultiLoaderItem returned by this function is cast to the appropriate type, eg MultiLoaderImageItem then these properties may be set using strong typing.
 
params:Object (default = null)

Returns
MultiLoaderItem — The MultiLoaderItem instance that has been created.

See also

com.research_now.net.multi_loader.items.MultiLoaderItem
com.research_now.net.multi_loader.data.MultiLoaderTypes