Create a new ResourceLoadSession object.
Returns the base dependency of the loader
Returns a LoaderInfo object corresponding to the object being loaded. LoaderInfo objects are shared between the Loader object and the loaded content object. The LoaderInfo object supplies loading progress information and statistics about the loaded file.
Events related to the load are dispatched by the LoaderInfo object
referenced by the contentLoaderInfo
property of the Loader
object. The contentLoaderInfo
property is set to a valid
LoaderInfo object, even before the content is loaded, so that you can add
event listeners to the object prior to the load.
To detect uncaught errors that happen in a loaded SWF, use the
Loader.uncaughtErrorEvents
property, not the
Loader.contentLoaderInfo.uncaughtErrorEvents
property.
Add an event listener
Dispatch an event
check if an object has an event listener assigned to it
Loads a file and (optionally) all of its dependencies.
The URLRequest object containing the URL of the file to be loaded.
An optional context object providing additional parameters for loading
An optional namespace string under which the file is to be loaded, allowing the differentiation of two resources with identical assets
An optional parser object for translating the loaded data into a usable resource. If not provided, Loader will attempt to auto-detect the file type.
Loads a resource from already loaded data.
The data object containing all resource information.
An optional context object providing additional parameters for loading
An optional namespace string under which the file is to be loaded, allowing the differentiation of two resources with identical assets
An optional parser object for translating the loaded data into a usable resource. If not provided, Loader will attempt to auto-detect the file type.
Remove an event listener
Enables a specific parser. When no specific parser is set for a loading/parsing opperation, loader3d can autoselect the correct parser to use. A parser must have been enabled, to be considered when autoselecting the parser.
The parser export class to enable.
Enables a list of parsers. When no specific parser is set for a loading/parsing opperation, Loader can autoselect the correct parser to use. A parser must have been enabled, to be considered when autoselecting the parser.
A Vector of parser classes to enable.
Generated using TypeDoc
Loader can load any file format that away.supports (or for which a third-party parser has been plugged in) and it's dependencies. Events are dispatched when assets are encountered and for when the resource (or it's dependencies) have been loaded.
The Loader will not make assets available in any other way than through the dispatched events. To store assets and make them available at any point from any module in an application, use the AssetLibrary to load and manage assets.
away.library.AssetLibrary