Packagecom.bourre.utils
Classpublic class ObjectUtils

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Set of object utilities functions.



Public Methods
 MethodDefined by
  
clone(source:Object):Object
[static] Clone the content of an array
ObjectUtils
  
cloneArray(a:Array):Array
[static] Clone the content of an array
ObjectUtils
  
evalFromTarget(target:Object, toEval:String):Object
[static]

Permit to access value like in as2

sample:

var btnLaunch : DisplayObject = evalFromTarget( this , "mcHeader.btnLaunch") as DisplayObject;

ObjectUtils
Method detail
clone()method
public static function clone(source:Object):Object

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Clone the content of an array

Parameters
source:Object — a The array to clone

Returns
Object — a new array cloned
cloneArray()method 
public static function cloneArray(a:Array):Array

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Clone the content of an array

Parameters
a:Array — a The array to clone

Returns
Array — a new array cloned
evalFromTarget()method 
public static function evalFromTarget(target:Object, toEval:String):Object

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Permit to access value like in as2

sample:

var btnLaunch : DisplayObject = evalFromTarget( this , "mcHeader.btnLaunch") as DisplayObject;

Parameters
target:Object — target the root path of the first element write in the string

in the example mcHeader is a child of this

 
toEval:String — toEval the path of the element to retrieve

Returns
Object — null if object not find , else the object pointed by toEval