Copy link to clipboard
Copied
Hi !
I wonder if there's a way to use GESTURE and TOUCH_POINT together in a mobile (Android) flash app.
I want a specific graphic object to react to TOUCH_POINT (i.e.: Tap & Drag) and to specific GESTUREs (i.e.: Two finger Zoom),
but noticed that each of those requires a different configuration setting to the Multitouch.inputMode global variable:
Tap TOUCH_TAP requires:
Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
where GESTURE_ZOOM requires:
Multitouch.inputMode = MultitouchInputMode.GESTURE;
I know this is possible in Mobile applications, see for example GoogleMaps.
But I wonder it is possible using Flash and Adobe Air...
Thanks,
Koby
I found a solution!
Instead of TOUCH_TAP use MouseEvent.CLICK and then you can use GESTURE for the Multitouch.inputMode.
p.s.: For long press functionality: instead of TouchEvent.TOUCH_BEGIN use MouseEvent.MOUSE_DOWN
and instead of TouchEvent.TOUCH_END / TouchEvent.TOUCH_OUT / TouchEvent.TOUCH_ROLL_OUT use MouseEvent.MOUSE_UP)
For anyone who may need this...
Koby
Copy link to clipboard
Copied
I found a solution!
Instead of TOUCH_TAP use MouseEvent.CLICK and then you can use GESTURE for the Multitouch.inputMode.
p.s.: For long press functionality: instead of TouchEvent.TOUCH_BEGIN use MouseEvent.MOUSE_DOWN
and instead of TouchEvent.TOUCH_END / TouchEvent.TOUCH_OUT / TouchEvent.TOUCH_ROLL_OUT use MouseEvent.MOUSE_UP)
For anyone who may need this...
Koby
Find more inspiration, events, and resources on the new Adobe Community
Explore Now