A simple TextField with a method for setting text that will auto-clear.
text:String
[write-only]
Set text that will not auto-clear.
Implementation
public function set text(value:String):void
protected var _timer:Timer
public function ClearingTextField()
protected function handleTimer(event:TimerEvent):void
Parameters
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 )
|
Copyright © 2007-2009 Three Rings Design, Inc.