F > FCheckBox.setValue |
![]() ![]() ![]() |
FCheckBox.setValue
Availability
Flash Player 6.
Usage
myCheckBox
.setValue(
select
)
Parameters
select
A Boolean value specifying whether the check box is selected (true
) or not (false
).
Returns
Nothing.
Description
Method; selects or deselects myCheckBox
and triggers the change handler function specified (if any) at runtime. The default value is true
.
Although calling this method overrides the Initial Value parameter value specified in authoring, do not use the method for this purpose because it also triggers the associated change handler function. To set the Initial Value parameter of a check box at runtime, use FCheckBox.setStyleProperty
.
Example
The following code selects the instance of checkBox1
and triggers any specified change handler function.
checkBox1
.setValue(true);
See also
![]() ![]() ![]() |