Touch Down

The ‘touch down’ event is the equivalent of a simple ‘mouse down’ event. When the program detects a finger being placed on the screen, the event fires.
Using the Touch Down Gesture
The touch down event listener is primarily used for startTouchDrag; however, the ‘touch down’ gesture can be used in the same way(s) a ‘mouse down’ event functions in a traditional user interface (UI)
Mechanics and Code Samples
To register a ‘touch down’ event, a finger must touch down somewhere on the touch screen surface.
1 2 3 4 5 6 | element.addEventListener(TouchEvent.TOUCH_DOWN, touchDownHandler); private function touchDownHandler(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.
