Package | sekati.text |
Class | public class FocusToggle |
Inheritance | FocusToggle flash.events.EventDispatcher |
Warning: Your TextField or DisplayObject containing the TextField must be added to stage before the FocusToggle is instantiated for proper functionality.
// inside a Sprite-based class with a textfield instance tf.text = "Your E-Mail Address"; var toggle : FocusToggle = new FocusToggle( tf );
See also
Property | Defined by | ||
---|---|---|---|
focus : Boolean [read-only]
Boolean value which determines whether the TextField is focused or not.
| FocusToggle | ||
isInitialValue : Boolean [read-only]
Denotes whether the text is set to the initial value.
| FocusToggle |
Property | Defined by | ||
---|---|---|---|
_currentValue : String | FocusToggle | ||
_initialValue : String | FocusToggle | ||
_tf : TextField | FocusToggle |
Method | Defined by | ||
---|---|---|---|
FocusToggle(tf:TextField)
FocusToggle Constructor
| FocusToggle | ||
destroy():void
Destroy the FocusToggle action for the field.
| FocusToggle |
Method | Defined by | ||
---|---|---|---|
focusHandler(e:Event):void
Handle the focus event.
| FocusToggle | ||
inputHandler(e:TextEvent):void
Handle the input event: store the default value including
the latest character contained in the event.
| FocusToggle |
_currentValue | property |
protected var _currentValue:String
focus | property |
focus:Boolean
[read-only]Boolean value which determines whether the TextField is focused or not.
Implementation public function get focus():Boolean
_initialValue | property |
protected var _initialValue:String
isInitialValue | property |
isInitialValue:Boolean
[read-only]Denotes whether the text is set to the initial value.
Implementation public function get isInitialValue():Boolean
_tf | property |
protected var _tf:TextField
FocusToggle | () | constructor |
public function FocusToggle(tf:TextField)
FocusToggle Constructor
Parameterstf:TextField |
destroy | () | method |
public function destroy():void
Destroy the FocusToggle action for the field.
focusHandler | () | method |
protected function focusHandler(e:Event):void
Handle the focus event.
Parameterse:Event |
inputHandler | () | method |
protected function inputHandler(e:TextEvent):void
Handle the input event: store the default value including the latest character contained in the event.
Parameterse:TextEvent |