RadioButton
| Kind of class: | class |
|---|---|
| Inherits from: | EventButton < EventMovieClip < MovieClip |
| Implements: | |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.ui.buttons.radio.RadioButton |
| File last modified: | Friday, 06 October 2006, 23:50:48 |
Creates radiobutton functionality.
Assumes the presence of the following framelabels to represent states:- 'deselected_normal'
- 'deselected_rollover'
- 'deselected_mousedown'
- 'selected_normal'
- 'selected_rollover'
- 'selected_mousedown'
You should place a dynamic textfield named 'label_txt' in which the label will be placed (use .label = "my label")
Events broadcast to listeners:
RadioButtonEvent with type:
ON_SELECTED Summary
Constructor
Instance properties
Instance properties inherited from EventButton
Instance properties inherited from EventMovieClip
Instance methods
Instance methods inherited from EventButton
Event handlers
Event handlers inherited from EventButton
Constructor
RadioButton
function RadioButton (
)
Instance properties
label
label
(write)
The label text.
Instance methods
getEnabled
function getEnabled (
) : Boolean
Gets the enabled state (enabled or disabled).
Returns:
True: the button is enabled; false: the button is disabled.
Specified by:
getSelected
function getSelected (
) : Boolean
Gets the selected state (selected or deselected).
Returns:
True: the button is selected; false: the button is deselected.
Specified by:
setDisableSelf
function setDisableSelf (
inValue:Boolean) : Void
Specified by:
setEnabled
function setEnabled (
inValue:Boolean) : Void
Sets the enabled state (enabled or disabled).
Parameters:
inValue:
Specified by:
setSelected
function setSelected (
inValue:Boolean) : Void
Sets the selected state (selected or deselected).
Parameters:
inValue:
(optional) the selected state: true = selected, false = deselected (default)
Specified by:
Event handlers
onRelease
function onRelease (
) : Void
Events broadcast to listeners:
RadioButtonEvent with type:
ON_SELECTED onRollOut
function onRollOut (
) : Void
onRollOver
function onRollOver (
) : Void