Packagesekati.text
Classpublic class FocusToggle
InheritanceFocusToggle Inheritance flash.events.EventDispatcher

FocusToggle provides a togglable action to the passed-in input TextField.

Warning: Your TextField or DisplayObject containing the TextField must be added to stage before the FocusToggle is instantiated for proper functionality.


Example
   // inside a Sprite-based class with a textfield instance
   tf.text = "Your E-Mail Address";
   var toggle : FocusToggle = new FocusToggle( tf );
  

See also

sekati.text.FocusToggleField


Public Properties
 PropertyDefined 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
Protected Properties
 PropertyDefined by
  _currentValue : String
FocusToggle
  _initialValue : String
FocusToggle
  _tf : TextField
FocusToggle
Public Methods
 MethodDefined by
  
FocusToggle(tf:TextField)
FocusToggle Constructor
FocusToggle
  
destroy():void
Destroy the FocusToggle action for the field.
FocusToggle
Protected Methods
 MethodDefined 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
Property detail
_currentValueproperty
protected var _currentValue:String
focusproperty 
focus:Boolean  [read-only]

Boolean value which determines whether the TextField is focused or not.

Implementation
    public function get focus():Boolean
_initialValueproperty 
protected var _initialValue:String
isInitialValueproperty 
isInitialValue:Boolean  [read-only]

Denotes whether the text is set to the initial value.

Implementation
    public function get isInitialValue():Boolean
_tfproperty 
protected var _tf:TextField
Constructor detail
FocusToggle()constructor
public function FocusToggle(tf:TextField)

FocusToggle Constructor

Parameters
tf:TextField
Method detail
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.

Parameters
e: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.

Parameters
e:TextEvent