Property | Defined By | ||
---|---|---|---|
dependencyBaseUrl : String
A base URL that will be prepended to all relative dependency URLs found in a loaded resource. | AssetLoaderContext | ||
includeDependencies : Boolean
Defines whether dependencies (all files except the one at the URL given to the load() or
parseData() operations) should be automatically loaded. | AssetLoaderContext | ||
overrideAbsolutePaths : Boolean
Defines whether absolute paths (defined as paths that begin with a "/") should be overridden
with the dependencyBaseUrl defined in this context. | AssetLoaderContext | ||
overrideFullURLs : Boolean
Defines whether "full" URLs (defined as a URL that includes a scheme, e.g. | AssetLoaderContext |
Method | Defined By | ||
---|---|---|---|
AssetLoaderContext(includeDependencies:Boolean = true, dependencyBaseUrl:String = null)
AssetLoaderContext provides configuration for the AssetLoader load() and parse() operations. | AssetLoaderContext | ||
mapUrl(originalUrl:String, newUrl:String):void
Map a URL to another URL, so that files that are referred to by the original URL will instead
be loaded from the new URL. | AssetLoaderContext | ||
mapUrlToData(originalUrl:String, data:*):void
Map a URL to embedded data, so that instead of trying to load a dependency from the URL at
which it's referenced, the dependency data will be retrieved straight from the memory instead. | AssetLoaderContext |
dependencyBaseUrl | property |
dependencyBaseUrl:String
A base URL that will be prepended to all relative dependency URLs found in a loaded resource. Absolute paths will not be affected by the value of this property.
public function get dependencyBaseUrl():String
public function set dependencyBaseUrl(value:String):void
includeDependencies | property |
includeDependencies:Boolean
Defines whether dependencies (all files except the one at the URL given to the load() or parseData() operations) should be automatically loaded. Defaults to true.
public function get includeDependencies():Boolean
public function set includeDependencies(value:Boolean):void
overrideAbsolutePaths | property |
overrideAbsolutePaths:Boolean
Defines whether absolute paths (defined as paths that begin with a "/") should be overridden with the dependencyBaseUrl defined in this context. If this is true, and the base path is "base", /path/to/asset.jpg will be resolved as base/path/to/asset.jpg.
public function get overrideAbsolutePaths():Boolean
public function set overrideAbsolutePaths(value:Boolean):void
overrideFullURLs | property |
overrideFullURLs:Boolean
Defines whether "full" URLs (defined as a URL that includes a scheme, e.g. http://) should be overridden with the dependencyBaseUrl defined in this context. If this is true, and the base path is "base", http://example.com/path/to/asset.jpg will be resolved as base/path/to/asset.jpg.
public function get overrideFullURLs():Boolean
public function set overrideFullURLs(value:Boolean):void
AssetLoaderContext | () | Constructor |
public function AssetLoaderContext(includeDependencies:Boolean = true, dependencyBaseUrl:String = null)
AssetLoaderContext provides configuration for the AssetLoader load() and parse() operations. Use it to configure how (and if) dependencies are loaded, or to map dependency URLs to embedded data.
ParametersincludeDependencies:Boolean (default = true )
| |
dependencyBaseUrl:String (default = null )
|
See also
mapUrl | () | method |
public function mapUrl(originalUrl:String, newUrl:String):void
Map a URL to another URL, so that files that are referred to by the original URL will instead be loaded from the new URL. Use this when your file structure does not match the one that is expected by the loaded file.
Parameters
originalUrl:String — The original URL which is referenced in the loaded resource.
| |
newUrl:String — The URL from which Away3D should load the resource instead.
|
See also
mapUrlToData | () | method |
public function mapUrlToData(originalUrl:String, data:*):void
Map a URL to embedded data, so that instead of trying to load a dependency from the URL at which it's referenced, the dependency data will be retrieved straight from the memory instead.
Parameters
originalUrl:String — The original URL which is referenced in the loaded resource.
| |
data:* — The embedded data. Can be ByteArray or a class which can be used to create a bytearray.
|