MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 203

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

Advertisement

Description
Method; replaces the content of the item at the specified index. This is a method of the List
component that is available from the ComboBox component.
Example
The following example changes the third index position:
myCombo.replaceItemAt(3, "new label");
See also
ComboBox.removeAll()
ComboBox.restrict
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
comboBoxInstance.restrict
Description
Property; indicates the set of characters that a user can enter in the text field of a combo box. The
default value is
undefined
character. If this property is a string of characters, the user can enter only characters in the string;
the string is scanned from left to right. You can specify a range by using a dash (
If the string begins with a caret (
characters. If the string does not begin with a caret, the characters in the string are considered
acceptable.
You can use the backslash (
here:
\^
\-
\\
When you enter a backslash in the Actions panel within double quotation marks, it has a
special meaning for the Actions panel's double-quote interpreter. It signifies that the character
following the backslash should be treated "as is." For example, you could use the following code to
enter a single quotation mark:
var leftQuote = "\'";
The Actions panel's restrict interpreter also uses the backslash as an escape character. Therefore,
you may think that the following should work:
myText.restrict = "0-9\-\^\\";
,
ComboBox.removeItemAt()
. If this property is
null
), all characters that follow the caret are considered unacceptable
^
) to enter a hyphen (
\
or an empty string (
), caret (
), or backslash (
-
^
ComboBox component
), a user can enter any
""
).
-
) character, as shown
\
203

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents