UIObject.createObject()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

componentInstance.createObject(linkageName, instanceName, depth, initObject)

Parameters

linkageName A string indicating the linkage identifier of a symbol in the Library panel.

instanceName A string indicating the instance name of the new instance.

depth A number indicating the depth of the new instance.

initObject An object containing initialization properties for the new instance.

Returns

A UIObject that is an instance of the symbol.

Description

Method; creates a subobject on an object. Generally only used by component or advanced developers.

Example

The following example creates a CheckBox instance on the form object:

form.createObject("CheckBox", "sym1", 0);