| Package | com.acleveraddress.net.multi_loader |
| Class | public class MultiLoaderQuickLoad |
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
| Method | Defined 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 | ||
| 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
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) |
MultiLoaderItem —
The MultiLoaderItem instance that has been created.
|
See also