Packageaway3d.utils
Classpublic class Cast
InheritanceCast Inheritance Object

Helper class for casting assets to usable objects



Public Methods
 MethodDefined By
  
bitmapData(data:*):BitmapData
[static]
Cast
  
[static]
Cast
  
byteArray(data:*):ByteArray
[static]
Cast
  
color(data:*):uint
[static]
Cast
  
string(data:*):String
[static]
Cast
  
tryClass(name:String):Object
[static]
Cast
  
tryColor(data:*):uint
[static]
Cast
  
xml(data:*):XML
[static]
Cast
Method Detail
bitmapData()method
public static function bitmapData(data:*):BitmapData

Parameters

data:*

Returns
BitmapData
bitmapTexture()method 
public static function bitmapTexture(data:*):BitmapTexture

Parameters

data:*

Returns
BitmapTexture
byteArray()method 
public static function byteArray(data:*):ByteArray

Parameters

data:*

Returns
ByteArray
color()method 
public static function color(data:*):uint

Parameters

data:*

Returns
uint
string()method 
public static function string(data:*):String

Parameters

data:*

Returns
String
tryClass()method 
public static function tryClass(name:String):Object

Parameters

name:String

Returns
Object
tryColor()method 
public static function tryColor(data:*):uint

Parameters

data:*

Returns
uint
xml()method 
public static function xml(data:*):XML

Parameters

data:*

Returns
XML