Package | sekati.text |
Class | public class FocusToggleField |
Inheritance | FocusToggleField flash.text.TextField |
Warning: Your TextField or DisplayObject containing the TextField must be added to stage before the FocusToggle is instantiated for proper functionality.
var t : FocusToggleField = new FocusToggleField( ); t.text = "Hello World!"; t.x = 50; t.y = 50; t.width = 500; t.height = 100; t.background = true; t.backgroundColor = 0xffffff; t.border = true; t.borderColor = 0x999999; addChild( t );
See also
Property | Defined by | ||
---|---|---|---|
focus : Boolean [read-only]
Boolean value which determines whether the TextField is focused or not.
| FocusToggleField | ||
text : String [write-only]
Set the default text on the TextField & store it as the last defaultValue.
| FocusToggleField | ||
type : String [write-only]
Disallow any but TextFieldType.INPUT as type.
| FocusToggleField |
Property | Defined by | ||
---|---|---|---|
_defaultValue : String | FocusToggleField |
Method | Defined by | ||
---|---|---|---|
FocusToggleField Constructor
| FocusToggleField |
Method | Defined by | ||
---|---|---|---|
focusHandler(e:Event):void
Handle the focus event.
| FocusToggleField | ||
inputHandler(e:TextEvent):void
Handle the input event: store the default value including
the latest character contained in the event.
| FocusToggleField |
_defaultValue | property |
protected var _defaultValue:String
focus | property |
focus:Boolean
[read-only]Boolean value which determines whether the TextField is focused or not.
Implementation public function get focus():Boolean
text | property |
text:String
[write-only]Set the default text on the TextField & store it as the last defaultValue.
Implementation public function set text(value:String):void
type | property |
type:String
[write-only]Disallow any but TextFieldType.INPUT as type.
Implementation public function set type(value:String):void
FocusToggleField | () | constructor |
public function FocusToggleField()
FocusToggleField Constructor
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 |