class TextEvent
package openfl.events
extends Event
extended by DataEvent, ErrorEvent
Available on all platforms
An object dispatches a TextEvent object when a user enters text in a text
field or clicks a hyperlink in an HTML-enabled text field. There are two
types of text events: TextEvent.LINK
and
TextEvent.TEXT_INPUT
.
Constructor
new (type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = "")
Creates an Event object that contains information about text events. Event objects are passed as parameters to event listeners.
Parameters:
type | The type of the event. Event listeners can access this
information through the inherited |
---|---|
bubbles | Determines whether the Event object participates in the
bubbling phase of the event flow. Event listeners can
access this information through the inherited
|
cancelable | Determines whether the Event object can be canceled.
Event listeners can access this information through the
inherited |
text | One or more characters of text entered by the user.
Event listeners can access this information through the
|
Variables
Static variables
staticinline read onlyLINK:String = "link"
Defines the value of the type
property of a link
event object.
This event has the following properties:
staticinline read onlyTEXT_INPUT:String = "textInput"
Defines the value of the type
property of a
textInput
event object.
Note: This event is not dispatched for the Delete or Backspace keys.
This event has the following properties: