Checkbox.selected - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

CheckBox.selected

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
checkBoxInstance.selected
Description
Property; a Boolean value that selects (
Example
The following example shows a check box that has its selected property set to
default, and then uses the
the user clicking the check box. Drag the CheckBox component to the Stage. Give the
component instance the name
the first frame of the main timeline:
my_ch.selected = true;
var checkboxListener:Object = new Object();
checkboxListener.click = function(evt_obj:Object) {
if (evt_obj.target.selected) {
evt_obj.target.label = "Selected!";
} else {
evt_obj.target.label = "Unselected!";
}
};
my_ch.addEventListener("click", checkboxListener);
) or deselects (
true
property within an event handler function to respond to
selected
. Then, add the following code to the Actions panel of
my_ch
) the check box.
false
true
CheckBox.selected
, by
145

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?

This manual is also suitable for:

Flash 8

Table of Contents