Packageaway3dlite.core.utils
Classpublic class Cast

Helper class for casting assets to usable objects

Public Methods
 MethodDefined by
  
bitmap(data:*):BitmapData
[static] Casts the given data value as a bitmapdata object.
Cast
  
bytearray(data:*):ByteArray
[static] Casts the given data value as a bytearray.
Cast
  
color(data:*):uint
[static] Casts the given data value as a color.
Cast
  
material(data:*):Material
[static] Casts the given data value as a material object.
Cast
  
string(data:*):String
[static] Casts the given data value as a string.
Cast
  
xml(data:*):XML
[static] Casts the given data value as an xml object.
Cast
Method detail
bitmap()method
public static function bitmap(data:*):BitmapData

Casts the given data value as a bitmapdata object.

Parameters
data:*

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

Casts the given data value as a bytearray.

Parameters
data:*

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

Casts the given data value as a color.

Parameters
data:*

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

Casts the given data value as a material object.

Parameters
data:*

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

Casts the given data value as a string.

Parameters
data:*

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

Casts the given data value as an xml object.

Parameters
data:*

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

Code examples

Comments