Packageaway3d.core.utils
Classpublic class Cast

Helper class for casting assets to usable objects

Public Methods
 MethodDefined by
  
bitmap(data:*):BitmapData
[static]
Cast
  
bytearray(data:*):ByteArray
[static]
Cast
  
color(data:*):uint
[static]
Cast
  
material(data:*):Material
[static]
Cast
  
string(data:*):String
[static]
Cast
  
tryclass(name:String):Object
[static]
Cast
  
trycolor(data:*):uint
[static]
Cast
  
[static]
Cast
  
xml(data:*):XML
[static]
Cast
Method detail
bitmap()method
public static function bitmap(data:*):BitmapData Parameters
data:*

Returns
BitmapData
bytearray()method 
public static function bytearray(data:*):ByteArray Parameters
data:*

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

Returns
uint
material()method 
public static function material(data:*):Material Parameters
data:*

Returns
Material
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
wirematerial()method 
public static function wirematerial(data:*):Material Parameters
data:*

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

Returns
XML
Wiki link
Click to go to the wiki page for 'away3d.core.utils.Cast'

Code examples

Comments