Packagestarling.events
Classpublic final class TouchPhase
InheritanceTouchPhase Inheritance Object

A class that provides constant values for the phases of a touch object.

A touch moves through at least the following phases in its life:

BEGAN -> MOVED -> ENDED

Furthermore, a touch can enter a STATIONARY phase. That phase does not trigger a touch event itself, and it can only occur in multitouch environments. Picture a situation where one finger is moving and the other is stationary. A touch event will be dispatched only to the object under the moving finger. In the list of touches of that event, you will find the second touch in the stationary phase.

Finally, there's the HOVER phase, which is exclusive to mouse input. It is the equivalent of a MouseOver event in Flash when the mouse button is not pressed.



Public Constants
 ConstantDefined By
  BEGAN : String = began
[static] The finger touched the screen just now, or the mouse button was pressed.
TouchPhase
  ENDED : String = ended
[static] The finger was lifted from the screen or from the mouse button.
TouchPhase
  HOVER : String = hover
[static] Only available for mouse input: the cursor hovers over an object without a pressed button.
TouchPhase
  MOVED : String = moved
[static] The finger moves around on the screen, or the mouse is moved while the button is pressed.
TouchPhase
  STATIONARY : String = stationary
[static] The finger or mouse (with pressed button) has not moved since the last frame.
TouchPhase
Constant Detail
BEGANConstant
public static const BEGAN:String = began

The finger touched the screen just now, or the mouse button was pressed.

ENDEDConstant 
public static const ENDED:String = ended

The finger was lifted from the screen or from the mouse button.

HOVERConstant 
public static const HOVER:String = hover

Only available for mouse input: the cursor hovers over an object without a pressed button.

MOVEDConstant 
public static const MOVED:String = moved

The finger moves around on the screen, or the mouse is moved while the button is pressed.

STATIONARYConstant 
public static const STATIONARY:String = stationary

The finger or mouse (with pressed button) has not moved since the last frame.