Features  »  Supported Gestures  »  One Finger Single Tap Gesture

One Finger Single Tap

The ‘one finger single tap’ event is the equivalent of a simple ‘mouse click’ event. When a finger is placed on the screen and then removed within a certain time interval, the event fires.

Using the One Finger Single Tap Event

One finger single tap can be used to select items, click links, and more. The tap is typically used in the same context(s) as a ‘mouse click’ event in a traditional user interface (UI).

Mechanics and Code Samples

To register a ‘one finger single tap’ event, a finger must touch down on the screen and then be lifted up again within a limited time period and within a limited spatial area on the touch screen surface. This ensures that the gesture registered is actually a ‘tap’ and not two unrelated touch events.

1
2
3
4
5
6
element.addEventListener(TouchEvent.TOUCH_TAP, touchTapHandler);
private function touchTapHandler(e:TouchEvent):void {

    trace("e type:",e.type);

}

Parameters

All touch and gesture events have a localX and localY (relative) position as well as a stageX and stageY (absolute) position.

In addition, the ‘one finger single tap’ has a max time between touch down and touch up as well as a spatial separation threshold between touch down and touch up coordinates.

Related Gestures

One Finger Double Tap

Associated Tutorials

How To Create An Application Using Touch Tap