Copy link to clipboard
Copied
Hi everybody.
My problem is that when i write 2 differents "Multitouch.inputMode" in my script (for Androïd), in every case, only the first written works.... How can i do to conserve the two behaviors ? (i'm a new french user of AS3...)
An example of my very simple AS3 code
stop();
Multitouch.inputMode = MultitouchInputMode.GESTURE;
oc_carte.addEventListener(TransformGestureEvent.GESTURE_PAN, fl_PanHandler_5);
function fl_PanHandler_5(event:TransformGestureEvent):void
{
event.currentTarget.x += event.offsetX;
event.currentTarget.y += event.offsetY;
}
oc_carte.addEventListener(TransformGestureEvent.GESTURE_ZOOM, fl_ZoomHandler_2);
function fl_ZoomHandler_2(event:TransformGestureEvent):void
{
oc_carte.scaleX *= event.scaleX;
oc_carte.scaleY *= event.scaleY;
}
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
oc_retourmenu.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_1);
function fl_TapHandler_1(event:TouchEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Séquence 2");
}
Copy link to clipboard
Copied
you can't in one swf.
you must choose one or the other in any one swf. you could try loading two different swfs.
Copy link to clipboard
Copied
Thank you for this. I still do it...
Berst regards.
Vincent.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now