ObjectUtils
| Kind of class: | public class |
|---|---|
| Package: | com.bourre.utils |
| Inherits from: | none |
| Version: | 1.0 |
| Author: | Francis Bourre, Cédric Néhémie |
| Classpath: | com.bourre.utils.ObjectUtils |
| File last modified: | Monday, 24 November 2008, 11:36:51 |
Summary
Constructor
- ObjectUtils (access:ConstructorAccess)
Class methods
- clone (source:Object) : Object
- Clone the content of an array
- cloneArray (a:Array) : Array
- Clone the content of an array
- evalFromTarget (target:Object, toEval:String) : Object
Constructor
ObjectUtils
Class methods
clone
public static function clone (
source:Object) : Object
Clone the content of an array
Parameters:
a:
The array to clone
Returns:
- a new array cloned
cloneArray
public static function cloneArray (
a:Array) : Array
Clone the content of an array
Parameters:
a:
The array to clone
Returns:
- a new array cloned
evalFromTarget
public static function evalFromTarget (
target:Object,
toEval:String) : Object
Permit to access value like in as2
sample:var btnLaunch : DisplayObject = evalFromTarget( this , "mcHeader.btnLaunch") as DisplayObject;
Parameters:
target:
the root path of the first element write in the string
in the example mcHeader is a child of this
toEval:
the path of the element to retrieve
Returns:
- null if object not find , else the object pointed by toEval