Packagestarling.assets
Classpublic class AssetType
InheritanceAssetType Inheritance Object

An enumeration class containing all the asset types supported by the AssetManager.



Public Methods
 MethodDefined By
  
fromAsset(asset:Object):String
[static] Figures out the asset type string from the type of the given instance.
AssetType
Public Constants
 ConstantDefined 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
Method Detail
fromAsset()method
public static function fromAsset(asset:Object):String

Figures out the asset type string from the type of the given instance.

Parameters

asset:Object

Returns
String
Constant Detail
ASSET_MANAGERConstant
public static const ASSET_MANAGER:String = assetManager

BITMAP_FONTConstant 
public static const BITMAP_FONT:String = bitmapFont

BYTE_ARRAYConstant 
public static const BYTE_ARRAY:String = byteArray

OBJECTConstant 
public static const OBJECT:String = object

SOUNDConstant 
public static const SOUND:String = sound

TEXTUREConstant 
public static const TEXTURE:String = texture

TEXTURE_ATLASConstant 
public static const TEXTURE_ATLAS:String = textureAtlas

XML_DOCUMENTConstant 
public static const XML_DOCUMENT:String = xml