Packagenet.guttershark.preloading
Classpublic class Asset

The Asset class defines an asset to preload with a PreloadController.

See also

PreloadController class
AssetLibrary class


Public Properties
 PropertyDefined 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 to use in an AssetLibrary.
Asset
  source : String
The URI to the file to load.
Asset
Public Methods
 MethodDefined by
  
Asset(source:String, libraryName:String = null, forceAssetType:String = null)
Constructor for Asset instances.
Asset
Property detail
dataproperty
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.

fileTypeproperty 
public var fileType:String

The file type of this asset. This will be a file extension less the period (jpg).

libraryNameproperty 
public var libraryName:String

The identifier to use in an AssetLibrary.

See also

sourceproperty 
public var source:String

The URI to the file to load.

Constructor detail
Asset()constructor
public function Asset(source:String, libraryName:String = null, forceAssetType:String = null)

Constructor for Asset instances.

Parameters
source:String — The source URL to the asset
 
libraryName:String (default = null) — The name to be used in an AssetLibrary
 
forceAssetType:String (default = null)

Throws
— If the filetype couldn't be figured out from the source property.