Packagestarling.assets
Classpublic class AssetReference
InheritanceAssetReference Inheritance Object

The description of an asset to be created by an AssetFactory.



Public Properties
 PropertyDefined By
  data : Object
The raw data of the asset.
AssetReference
  extension : String
The file extension of the asset, if the filename or URL contains one.
AssetReference
  mimeType : String
The mime type of the asset, if loaded from a server.
AssetReference
  name : String
The name with which the asset should be added to the AssetManager.
AssetReference
  textureOptions : TextureOptions
The TextureOptions describing how to create a texture, if the asset references one.
AssetReference
  url : String
The url from which the asset needs to be / has been loaded.
AssetReference
Public Methods
 MethodDefined By
  
AssetReference(data:Object)
Creates a new instance with the given data, which is typically some kind of file reference / URL or an instance of an asset class.
AssetReference
Property Detail
dataproperty
data:Object

The raw data of the asset. This property often contains an URL; when it's passed to an AssetFactory, loading has already completed, and the property contains a ByteArray with the loaded data.


Implementation
    public function get data():Object
    public function set data(value:Object):void
extensionproperty 
extension:String

The file extension of the asset, if the filename or URL contains one.


Implementation
    public function get extension():String
    public function set extension(value:String):void
mimeTypeproperty 
mimeType:String

The mime type of the asset, if loaded from a server.


Implementation
    public function get mimeType():String
    public function set mimeType(value:String):void
nameproperty 
name:String

The name with which the asset should be added to the AssetManager.


Implementation
    public function get name():String
    public function set name(value:String):void
textureOptionsproperty 
textureOptions:TextureOptions

The TextureOptions describing how to create a texture, if the asset references one.


Implementation
    public function get textureOptions():TextureOptions
    public function set textureOptions(value:TextureOptions):void
urlproperty 
url:String

The url from which the asset needs to be / has been loaded.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
AssetReference()Constructor
public function AssetReference(data:Object)

Creates a new instance with the given data, which is typically some kind of file reference / URL or an instance of an asset class. If 'data' contains an URL, an equivalent value will be assigned to the 'url' property.

Parameters
data:Object