| Package | starling.assets |
| Class | public class AssetType |
| Inheritance | AssetType Object |
| Method | Defined By | ||
|---|---|---|---|
fromAsset(asset:Object):String [static] Figures out the asset type string from the type of the given instance. | AssetType | ||
| Constant | Defined By | ||
|---|---|---|---|
| ASSET_MANAGER : String = assetManager [static] | AssetType | ||
| BITMAP_FONT : String = bitmapFont [static] | AssetType | ||
| BYTE_ARRAY : String = byteArray [static] | AssetType | ||
| OBJECT : String = object [static] | AssetType | ||
| SOUND : String = sound [static] | AssetType | ||
| TEXTURE : String = texture [static] | AssetType | ||
| TEXTURE_ATLAS : String = textureAtlas [static] | AssetType | ||
| XML_DOCUMENT : String = xml [static] | AssetType | ||
| fromAsset | () | method |
public static function fromAsset(asset:Object):StringFigures out the asset type string from the type of the given instance.
Parameters
asset:Object |
String |
| ASSET_MANAGER | Constant |
public static const ASSET_MANAGER:String = assetManager| BITMAP_FONT | Constant |
public static const BITMAP_FONT:String = bitmapFont| BYTE_ARRAY | Constant |
public static const BYTE_ARRAY:String = byteArray| OBJECT | Constant |
public static const OBJECT:String = object| SOUND | Constant |
public static const SOUND:String = sound| TEXTURE | Constant |
public static const TEXTURE:String = texture| TEXTURE_ATLAS | Constant |
public static const TEXTURE_ATLAS:String = textureAtlas| XML_DOCUMENT | Constant |
public static const XML_DOCUMENT:String = xml