ClassUtil

Kind of class:public class
Package:org.casalib.util
Inherits from:none
Version:12/23/08
Author:Aaron Clinger
Classpath:org.casalib.util.ClassUtil
File last modified:Thursday, 19 February 2009, 11:33:37
Utilities for constructing and working with Classes.

Summary


Class methods
  • construct (type:Class, arguments) : *
    • Dynamically constructs a Class.

Class methods

construct

public static function construct (
type:Class, arguments) : *

Dynamically constructs a Class.
Parameters:
type :
The Class to create.
arguments:
Up to ten arguments to the constructor.
Returns:
  • Returns the dynamically created instance of the Class specified by type parameter.
Example:
  • var bData:* = ClassUtil.construct(BitmapData, 200, 200);
    
    trace(bData is BitmapData, bData.width);