ClassUtil
| Kind of class: | public class |
|---|---|
| Package: | org.casalib.util |
| Inherits from: | none |
| Version: | 02/13/10 |
| Author: | Aaron Clinger |
| Classpath: | org.casalib.util.ClassUtil |
| File last modified: | Sunday, 28 March 2010, 11:55:55 |
Utilities for constructing and working with Classes.
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
typeparameter.
Throws:
- Error if you pass more arguments than this method accepts (accepts ten or less).
Example:
-
var bData:* = ClassUtil.construct(BitmapData, 200, 200); trace(bData is BitmapData, bData.width);