MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 162

Components language reference
Table of Contents

Advertisement

You can set the following additional parameters for each ComboBox component instance in
the Component inspector (Window > Component Inspector):
restrict
indicates the set of characters that a user can enter in the text field of a combo box.
The default value is
undefined
enabled
is a Boolean value that indicates whether the component can receive focus and input.
The default value is
true
visible
is a Boolean value that indicates whether the object is visible (
The default value is
true
The minHeight and minWidth properties are used by internal sizing routines. They are
defined in UIObject, and are overridden by different components as needed. These
properties can be used if you make a custom layout manager for your application.
Otherwise, setting these properties in the Component inspector has no visible effect.
You can write ActionScript to set additional options for ComboBox instances using the
methods, properties, and events of the ComboBox class. For more information, see
"ComboBox class" on page
Creating an application with the ComboBox
component
The following procedure explains how to add a ComboBox component to an application
while authoring. In this example, the combo box presents a list of cities to select from in its
pop-up list.
To create an application with the ComboBox component:
1.
Drag a ComboBox component from the Components panel to the Stage.
2.
Select the Transform tool and resize the component on the Stage.
The combo box can only be resized on the Stage during authoring. Typically, you would
only change the width of a combo box to fit its entries.
3.
Select the combo box and, in the Property inspector, enter the instance name comboBox.
4.
In the Component inspector or Property inspector, do the following:
Enter Minneapolis, Portland, and Keene for the label parameter. Double-click the
label parameter field to open the Values dialog box. Then click the plus sign to
add items.
Enter MN.swf, OR.swf, and NH.swf for the data parameter.
These are imaginary SWF files that, for example, you could load when a user selects a
city from the combo box.
160
ComboBox component
. See
"ComboBox.restrict" on page
.
.
165.
194.
) or not (
true
false
).

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents