componentsPanel object
Availability
Flash MX 2004.
Description
The componentsPanel object, which represents the Components panel, is a property of the
object
and can be accessed by
Method summary for the ComponentsPanel object
You can use the following method with the componentsPanel object:
Property
componentsPanel.addItemToDocument()
componentsPanel.addItemToDocument()
Availability
Flash MX 2004.
Usage
componentsPanel.addItemToDocument( position, categoryName, componentName )
Parameters
A point (for example, {
position
component. Specify
component's registration point.
categoryName
"). The valid category names are listed in the Components panel.
Components
componentName
(for example, "
WebServiceConnector
Components panel.
Returns
Nothing.
Description
Adds the specified component to the document at the specified position.
Examples
The following examples illustrate some ways to use this method:
fl.componentsPanel.addItemToDocument({x:0, y:0}, "UI Components", "CheckBox");
fl.componentsPanel.addItemToDocument({x:0, y:100}, "Data Components",
"WebServiceConnector");
fl.componentsPanel.addItemToDocument({x:0, y:200}, "UI Components", "Button");
fl.componentsPanel.
:0,
x
relative to the center point of the component—not the
position
A string that specifies the name of the component category (for example, "
A string that specifies the name of the component in the specified category
"). The valid component names are listed in the
Description
Adds the specified component to the document at the
specified position.
}) that specifies the location at which to add the
y:100
CHAPTER 3
componentsPanel object
Objects
flash
Data
55
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?