CreateObject creates an instance of ActionScript Object, if no class name is provided, or an instance of a built-in ActionScript class. The lifetime of the created Object is maintained by the runtime. If the runtime dies, then the Value(s) that hold references to the Object are invalid. Such Value(s) must be released before destroying the movie.
The className parameter of CreateObject can accept fully qualified class names, such as flash.geom.Matrix. Without using the fully qualified name, classes in packages will not be created by this method.
Parameters |
Description |
Value* pvalue |
Holder for the created Object. |
const char* className = NULL |
The class name, if instance of a specific built-in object type is requested. |
const Value* pargs = NULL |
Arguments to be supplied to the Object's constructor. |
unsigned nargs = 0 |
Number of arguments to be supplied to the Object's constructor. |