componentsPanel object
55
componentsPanel object
Availability
Flash MX 2004.
Description
The componentsPanel object, which represents the Components panel, is a property of the
flash object (fl) and can be accessed by
fl.componentsPanel.
(See
flash object (fl)
.)
Method summary for the componentsPanel object
You can use the following methods with the componentsPanel object:
componentsPanel.addItemToDocument()
Availability
Flash MX 2004.
Usage
componentsPanel.addItemToDocument(
position
,
categoryName
,
componentName
)
Parameters
position
A point (for example, {
x
:0,
y:100
}) that specifies the location at which to add the
component. Specify
position
relative to the center point of the component—not the
component’s registration point.
categoryName
A string that specifies the name of the component category (for example,
"Data"
). The valid category names are listed in the Components panel.
componentName
A string that specifies the name of the component in the specified category
(for example, "
WebServiceConnector
"). The valid component names are listed in the
Components panel.
Returns
Nothing.
Method
Description
componentsPanel.addItemToDocument()
Adds the specified component to the document
at the specified position.
componentsPanel.reload()
Refreshes the Components panel's list of
components.
CHAPTER 7
Objects
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...