F > FComboBox.setValue

 

FComboBox.setValue

Availability

Flash Player 6.

Usage

myComboBox.setValue(editableText)

Parameters

editableText A string specifying the text to appear in the text field of an editable combo box.

Returns

Nothing.

Description

Method; specifies the text displayed in the input field at the top of an editable combo box. If you call this method, the user can still input text in the field.

This method can be used only with editable combo boxes. Before calling this method, you must specify true for the Editable parameter (which defaults to false) during authoring or use FComboBox.setEditable to set the parameter to true.

Example

The following code enters the string Gabino in the top field of the combo box surnameMenu.

surnameMenu.setValue("Gabino");

See also

FComboBox.getValue