
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
1008
|
Appendix G: Flash UI Component Summary
setClickHandler()
Specifies the callback function to call when the pushbutton is clicked.
setEnabled()
Enables or disables the pushbutton (i.e., specifies whether it is active or dimmed).
setLabel()
Sets a pushbutton’s string label.
setSize()
Sets the height and width of the pushbutton, in pixels.
setStyleProperty()
Sets a particular style property for the pushbutton (for a list of supported properties,
see the FStyleFormat object).
FRadioButton and FRadioButtonGroup
support for standard UI radio buttons and groups
Table G-2 juxtaposes the methods of the FRadioButton and FRadioButtonGroup objects.
Note how they share several methods, although in the case of FRadioButtonGroup objects,
the method pertains to the radio button group as a whole and not an individual button.
Table G-2. FRadioButton and FRadioButtonGroup methods
Method Description FRadioButton FRadioButtonGroup
getData() Returns the data associated
with a radio button
✓✗
getEnabled() Boolean indicating whether
a radio button or group is
enabled (i.e., is active or
dimmed)
✓✓
getGroupName() Returns the radio button
group name
✓✓
getLabel() Returns the label of a radio
button
✓✗
getState() Returns the state of a radio
button—selected (
true)
or not selected (
false)
✓✗
getValue() Returns the value of the ...