Touch Up

The ‘touch up’ event is the equivalent of a simple mouse up event. When a finger is removed from the screen, the event fires.
Using the Touch Up Gesture
The ‘touch up’ event listener is primarily used to call stopTouchDrag; however, the ‘touch up’ gesture can be used in any context(s) that would use a ‘mouse up’ event in a traditional user interface (UI).
Mechanics and Code Samples
To register a ‘touch up’ event, a finger must have previously touched down and must then be removed or lifted up off the touch screen surface.
1 2 3 4 5 6 | element.addEventListener(TouchEvent.TOUCH_UP, touchUpHandler); private function touchUpHandler(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.
