Search code examples
actionscript-3airflash-cs6

Is there any technical or processing difference between TouchEvent.Touch and MouseEvent.Click?


I am actually not getting the difference between MouseEvent.Click event and TouchEvent.Touch"event in action script.

Both are giving same output in touch based system.

I wanted to know that how they differ in processing user events.


Solution

  • Technical: On a touchscreen, TouchEvent is used for handling actions that require more than one finger being pressed on the display simultaneously. MouseEvent is used for handling actions that require only one finger.

    Processor: TouchEvent is more processor-intensive than MouseEvent.

    So you should use MouseEvent for single-touch actions and use TouchEvent (or GestureEvent) for multitouch actions.