| Package | starling.assets |
| Class | public class AssetReference |
| Inheritance | AssetReference Object |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| data | property |
data:ObjectThe 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.
public function get data():Object public function set data(value:Object):void| extension | property |
extension:StringThe file extension of the asset, if the filename or URL contains one.
public function get extension():String public function set extension(value:String):void| mimeType | property |
mimeType:StringThe mime type of the asset, if loaded from a server.
public function get mimeType():String public function set mimeType(value:String):void| name | property |
name:StringThe name with which the asset should be added to the AssetManager.
public function get name():String public function set name(value:String):void| textureOptions | property |
textureOptions:TextureOptionsThe TextureOptions describing how to create a texture, if the asset references one.
public function get textureOptions():TextureOptions public function set textureOptions(value:TextureOptions):void| url | property |
url:StringThe url from which the asset needs to be / has been loaded.
public function get url():String public function set url(value:String):void| 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.
Parametersdata:Object |