Access keys

CheckBox

Kind of class: class
Inherits from: EventButton < EventMovieClip < MovieClip
Implements:
Author: Martijn de Visser
Classpath: org.asapframework.ui.buttons.CheckBox
File last modified: Thursday, 13 July 2006, 09:33:58
CheckBox class to create checkboxes with.
Class puts label in textfield named label_txt. Assumes the presence of the following framelabels to represent states:
  • 'unselected_disabled'
  • 'unselected_normal'
  • 'unselected_rollover'
  • 'unselected_press'
  • 'selected_disabled'
  • 'selected_normal'
  • 'selected_rollover'
  • 'selected_press'
Events broadcast to listeners:
CheckBoxEvent with type: ON_CHANGED

Constructor

CheckBox

function CheckBox (
)

Instance properties

label

label
(read,write)
The label text.

Instance methods

getEnabled

function getEnabled (
) : Boolean
Gets the enabled state.

getSelected

function getSelected (
) : Boolean
Gets the selected state.

getValue

function getValue (
) : Object
Returns true if checkbox is in selected state.

setEnabled

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

setSelected

function setSelected (
inValue:Boolean) : Void
Sets the selected state.

Event handlers

onLoad

function onLoad (
) : Void

onPress

function onPress (
) : Void

onRelease

function onRelease (
) : Void
Events broadcast to listeners:
CheckBoxEvent with type: ON_CHANGED

onRollOut

function onRollOut (
) : Void

onRollOver

function onRollOver (
) : Void