Packagecom.threerings.text
Classpublic class ClearingTextField
InheritanceClearingTextField Inheritance flash.text.TextField

A simple TextField with a method for setting text that will auto-clear.



Public Properties
 PropertyDefined by
  text : String
[write-only] Set text that will not auto-clear.
ClearingTextField
Protected Properties
 PropertyDefined by
  _timer : Timer
ClearingTextField
Public Methods
 MethodDefined by
  
ClearingTextField
  
setText(str:String, secondsToClear:Number = 5):void
Set the specified text on this TextField, and clear the text after the specified delay.
ClearingTextField
Protected Methods
 MethodDefined by
  
handleTimer(event:TimerEvent):void
ClearingTextField
Property detail
textproperty
text:String  [write-only]

Set text that will not auto-clear.

Implementation
    public function set text(value:String):void
_timerproperty 
protected var _timer:Timer
Constructor detail
ClearingTextField()constructor
public function ClearingTextField()
Method detail
handleTimer()method
protected function handleTimer(event:TimerEvent):voidParameters
event:TimerEvent
setText()method 
public function setText(str:String, secondsToClear:Number = 5):void

Set the specified text on this TextField, and clear the text after the specified delay. If more text is set prior to the delay elapsing, the clear is pushed back to that text's delay, if any.

Parameters
str:String
 
secondsToClear:Number (default = 5)