| Package | net.guttershark.support.preloading |
| Class | public final class Asset |
| Property | Defined by | ||
|---|---|---|---|
| data : *
The data for this asset after the asset has been loaded.
| Asset | ||
| fileType : String
The file type of this asset.
| Asset | ||
| libraryName : String
The identifier of this item in the AssetManager
| Asset | ||
| source : String
The URI to the file to load.
| Asset | ||
| Method | Defined by | ||
|---|---|---|---|
|
Asset(source:String, libraryName:String = null, forceFileType:String = null)
Constructor for Asset instances.
| Asset | ||
|
dispose():void
The dispose method only disposes of unused properties
after the asset is complete / errored out, to completely
dispose of the Asset, use
disposeFinal
| Asset | ||
| data | property |
public var data:*The data for this asset after the asset has been loaded.
This will be a reference to the loader that was used in loading the data.
| fileType | property |
public var fileType:StringThe file type of this asset. This will be a file extension less the period (jpg).
| libraryName | property |
public var libraryName:StringThe identifier of this item in the AssetManager
| source | property |
public var source:StringThe URI to the file to load.
| Asset | () | constructor |
public function Asset(source:String, libraryName:String = null, forceFileType:String = null)Constructor for Asset instances.
Parameterssource:String — The source URL to the asset.
|
|
libraryName:String (default = null) — The name to be used in the AssetManager.
|
|
forceFileType:String (default = null) — Force the asset's file type (file extension without the ".", EX: xml).
|
| dispose | () | method |
public function dispose():void
The dispose method only disposes of unused properties
after the asset is complete / errored out, to completely
dispose of the Asset, use disposeFinal