Touch Move

The ‘touch move’ event is the equivalent of a simple ‘mouse move’ event. When a finger is placed on the screen and then moved, this event fires.

Using the Touch Move Gesture

The ‘touch move’ event is used in the same context(s) as a ‘mouse move’ in a traditional user interface (UI). Touch move may be used to create custom drag events.

Mechanics and Code Samples

To register a ‘touch move’ event, a finger must have previously touched down and then been moved across the touch screen surface.

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

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

}

Parameters

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

Related Gestures

Touch Down, Touch Up

Associated Tutorials

How To Create A Google Maps application with move, double-tap, rotate, scale and tilt