MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1367

Components language reference
Table of Contents

Advertisement

Description
Method; creates an instance of a component at runtime. Use the
specify the class package name before you call this method. In addition, the component must
be in the FLA file's library.
Example
The following code imports the assets of the Button component and then makes a subobject
of the Button component:
import mx.controls.Button;
createClassObject(Button,"button2",5,{label:"Test Button"});
The following example creates a
import mx.controls.CheckBox;
form.createClassObject(CheckBox, "cb", 0, {label:"Check this"});
You can also use the following syntax to specify the class package name:
createClassObject(mx.controls.Button, "button2", 5, {label:"Test Button"});
UIObject.createLabel()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
createLabel(name, depth, text)
Parameters
A string for the instance name.
name
A number indicating the depth of the new instance.
depth
The text for the label.
text
Returns
A
object.
TextField
object:
CheckBox
statement and
import
UIObject.createLabel()
1363

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents