MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 179

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Select Frame 1 in the Timeline, open the Actions panel, and enter the following code:
5.
function change(evt){
trace(evt.target.selectedItem.label);
}
comboBox.addEventListener("change", this);
The last line of code adds a
information, see
Customizing the ComboBox component
You can transform a ComboBox component horizontally and vertically while authoring. While
authoring, select the component on the Stage and use the Free Transform tool or any of the
Modify > Transform commands.
If text is too long to fit in the combo box, the text is clipped to fit. You must resize the combo box
while authoring to fit the label text.
In editable combo boxes, only the button is the hit area—not the text box. For static combo
boxes, the button and the text box constitute the hit area. The hit area responds by opening or
closing the drop-down list.
Using styles with the ComboBox component
You can set style properties to change the appearance of a ComboBox component. If the name of
a style property ends in "Color", it is a color style property and behaves differently than noncolor
style properties. For more information, see
on page
67.
The combo box has two unique styles:
to the button, text box, and drop-down list of the combo box through those individual
components, as follows:
The button is a Button instance and uses its styles. (See
component" on page
The text is a TextInput instance and uses its styles. (See
component" on page
The drop-down list is an List instance and uses its styles. (See
component" on page
A ComboBox component uses the following styles:
Style
themeColor
backgroundColor
event handler to the
change
.
ComboBox.change
openDuration
133.)
744.)
453.)
Theme Description
Halo
The base color scheme of a component. Possible values are
"haloGreen"
is
"haloGreen"
Both
The background color. The default color is white.
ComboBox
"Using styles to customize component color and text"
and
openEasing
"Using styles with the Button
"Using styles with the TextInput
"Using styles with the List
,
, and
"haloBlue"
.
instance. For more
. Other styles are passed
. The default value
"haloOrange"
ComboBox component
179

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents