Access keys

InputField

Kind of class: class
Inherits from: EventMovieClip < MovieClip
Implements:
Known subclasses:
Author: Martijn de Visser
Classpath: org.asapframework.ui.input.InputField
File last modified: Friday, 06 October 2006, 23:33:42
Class to create an input field with.
Class assumes there's a texfield named 'input_txt' present in MovieClip to read/write values
Events broadcast to listeners:
InputEvent with type: ON_CHANGED

Constructor

InputField

function InputField (
)

Instance properties

field

field:TextField
(read)
The actual input text field.

maxChars

maxChars
(write)
Same as TextField.maxChars

restrict

restrict
(write)
Same as TextField.restrict.

text

text
(read,write)
Sets / gets the text of the InputField

textFormat

textFormat
(write)
The TextFormat of the text-input state.

Instance methods

getEnabled

function getEnabled (
) : Boolean
Gets the enabled state of the InputField

getValue

function getValue (
) : Object
IValidate implementation: Returns the contents of the text field.

hasFocus

function hasFocus (
) : Boolean
IFocus implementation: Triggered by input field

setEnabled

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

setFocus

function setFocus (
) : Void
IFocus implementation: Triggered by input field

Event handlers

onChangeTextFocus

function onChangeTextFocus (
inFocus:Boolean) : Void
Triggered by input field

onLoad

function onLoad (
) : Void

onTextChange

function onTextChange (
inText:String) : Void
Triggered by input field
Events broadcast to listeners:
InputEvent with type: ON_CHANGED

onUnload

function onUnload (
) : Void