HintedInputField
| Kind of class: | class |
|---|---|
| Inherits from: | InputField < EventMovieClip < MovieClip |
| Implements: | |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.ui.input.HintedInputField |
| File last modified: | Friday, 06 October 2006, 23:33:26 |
Class to create a hinted input field with.
The hint is shown in the field. As soon as the field gets focus, the hint is removed. If no text is entered or the same text as the hint text is entered, the hint will re-appear as soon as the textfield looses focus.Usage:
var mHintFormat:TextFormat = new TextFormat(); mHintFormat.color = 0x067ADD; var mTextFormat:TextFormat = new TextFormat(); mTextFormat.color = 0x001E69; msg_txt.textFormat = mTextFormat; msg_txt.hintFormat = mHintFormat; msg_txt.hint = "(your message)";
Summary
Constructor
Instance properties
Instance properties inherited from InputField
Instance properties inherited from EventMovieClip
Instance methods
Instance methods inherited from InputField
Event handlers
Event handlers inherited from InputField
Constructor
HintedInputField
function HintedInputField (
)
Instance properties
hint
hint
(read,write)
The hint text.
hintFormat
hintFormat
(write)
The TextFormat of the hint state.
text
text
(read,write)
The text of the HintedInputField.
Instance methods
getValue
function getValue (
) : Object
IValidate implementation: Returns the contents of the text field.
Overrides:
Event handlers
onChangeTextFocus
function onChangeTextFocus (
inFocus:Boolean) : Void
Triggered by input field.
Parameters:
inFocus:
Overrides: