Access keys

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'
This class also automatically creates a clickable mask that will match the total size of the component (button + label)
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

Constructor

RadioButton

function RadioButton (
)

Instance properties

label

label
(write)
The label text.

Instance methods

getDisableSelf

function getDisableSelf (
) : Boolean

getEnabled

function getEnabled (
) : Boolean
Gets the enabled state (enabled or disabled).
Returns:
True: the button is enabled; false: the button is disabled.

getSelected

function getSelected (
) : Boolean
Gets the selected state (selected or deselected).
Returns:
True: the button is selected; false: the button is deselected.

setDisableSelf

function setDisableSelf (
inValue:Boolean) : Void

setEnabled

function setEnabled (
inValue:Boolean) : Void
Sets the enabled state (enabled or disabled).
Parameters:
inValue:
 

setSelected

function setSelected (
inValue:Boolean) : Void
Sets the selected state (selected or deselected).
Parameters:
inValue:
(optional) the selected state: true = selected, false = deselected (default)

Event handlers

onPress

function onPress (
) : Void

onRelease

function onRelease (
) : Void
Events broadcast to listeners:
RadioButtonEvent with type: ON_SELECTED

onRollOut

function onRollOut (
) : Void

onRollOver

function onRollOver (
) : Void