Is it possible to use the GESTURE and TOUCH_POINT together?

Hello!

I wonder if there is a way to use the GESTURE and TOUCH_POINT together in a flash mobile app (Android).

I want a specific graphic object to respond to the TOUCH_POINT (i.e.: type on and drag) and specific gestures (i.e.: two fingers to Zoom).

but notice that each one requires a different configuration to the global variable Multitouch.inputMode setting:

TOUCH_TAP faucet requires:

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

where GESTURE_ZOOM requires:

Multitouch.inputMode = MultitouchInputMode.GESTURE;

I know it's possible in mobile applications, for example see GoogleMaps.

But I wonder is it possible using Flash and Adobe Air...

Thank you

Koby

I found a solution!

Instead of TOUCH_TAP use MouseEvent.CLICK and then you can use the GESTURE to the Multitouch.inputMode.

p.s.: For the long pressure feature: 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 all those who may need this...

Koby

Tags: Adobe Animate

Similar Questions

  • Is it possible to use the getObjectsUnderPoint of a DisplayObject that is not added to the display list?

    My situation:

    I have a DisplayObject (objA) added to the display list and a DisplayObjectContainer (objB) not added to the display list. When objA receives a MouseEvent.CLICK event, is it possible to use the localX and localY to the event of objA to get objects under the same point in objB?

    Sample:

    var objA:Sprite = new Sprite();

    objA.graphics.beginFill (0);

    objA.graphics.drawRect (0, 0, 100, 100);

    objA.graphics.endFill ();

    addChild (objA);

    var objB:Sprite = new Sprite();

    var childA:TextField = new TextField();

    childA.text = "This is the child.";

    objB.addChild (childA);

    objA.addEventListener (MouseEvent.CLICK, handlerClick);

    function handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = objB.getObjectsUnderPoint (pt);

    trace (objs. Length);

    }

    so your test/trace environment can deliver it.

    Use the following code, publish your swf file and test the swf file in your standalone player (or publish a html and swf and test it in your browser).

    package {}

    import flash.display.Sprite;

    import flash.events.MouseEvent;

    to import flash.geom.Point;

    import flash.text.TextField;

    SerializableAttribute public class extends Sprite {Main2

    private var _objA:Sprite = new Sprite();

    private var _objB:Sprite = new Sprite();

    private var childA:TextField

    public void Main2() {}

    _objA.name = "a";

    _objA.Graphics.beginFill (0xdddddd);

    _objA.Graphics.drawRect (0, 0, 100, 100);

    _objA.Graphics.endFill ();

    addChild (_objA);

    _objB.name = 'B ';.

    _objB.Graphics.beginFill (0xdd0000);

    _objB.Graphics.drawRect (0, 0, 100, 100);

    _objB.Graphics.endFill ();

    _objA.addEventListener (MouseEvent.CLICK, handlerClick);

    Stéphane = new TextField();

    childA.name = 'tf ';

    _objA.addChild (childA);

    childA.multiline = true;

    }

    private void handlerClick(e:MouseEvent):void {}

    var pt:Point = new Point (e.localX, e.localY);

    var objs:Array = _objB.getObjectsUnderPoint (pt);

    childA.text = "";

    for (var i: int = 0; i

    childA.appendText(objs[i].name+"\n");

    }

    }

    }

    }

  • Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi?

    Is it possible to use the Remote app with the Apple TV connected via ethernet and iPhone via WiFi? When I try this Apple TV does not appear in the list of devices on my iPhone.

    Yes, I'm doing exactly this with the same put in place.

    If the problem persists the next relative to the following articles might help you.

    Troubleshooting home sharing

  • Is it possible to use express Airport and Time Capsule both as two Wifi-repeaters at the same time?

    Hello

    I have a time Capsule from the airport. I use it for my back ups and he repeats my wifi in the House (bottom).

    Now I need a Repeater wifi upstairs. I think to buy Airport Express. I will connect the Airport express with a Lan connection on the floor. And then I would also have wifi on the floor.

    But is it possible to use the time Capsule Airport express airport and at the same time: two repeaters-wifi?

    1. I have a Fritz! Box router / wifi (we called wifi Fritz! box)

    2. I have a time Capsule airport / wifi Repeater (we called the turtle wifi)

    3 and now I want Airport express on the floor for the wifi upstairs (another name for this wifi?)

    Is this possible?

    Before I had used TP-link (in socket), but it works for a few months.

    Thank you for your help and advice.

    2. I have a time Capsule airport / wifi Repeater (we called the turtle wifi)

    I think that your terminology wrong... the TC cannot work as a Repeater in the Frtiz.

    I think that you have done is connect via ethernet and run it as wireless... or WAP Access Point. It is perfectly great way to do it.

    3 and now I want Airport express on the floor for the wifi upstairs (another name for this wifi?)

    This is connected by ethernet, then it will work fine... you can call it Expresswifi

    You are certainly going to clutter the wireless channels, you could so be interesting rather than auto setting fastenings.

    2.4 ghz has been set to 1, TC 6 and 11 Express then Frtiz.

    5 GHz is less of a problem... auto should be fine, because the beach is mediocre.

  • My wife and I have laptops and we want to combine the data both on a Mac. Including two Itunes accounts. This is possible by using the migration on each PC asst?

    In what concerns the transfer of data from a PC to a MAC, my wife and I have laptops and we want to combine the data both on a Mac. Including two Itunes accounts. This is possible by using the migration on each PC asst?

    You can bind the whole apple ID using family sharing. If you have trouble doing this, you can go to the apple store, and they would be happy to help you.

  • Is it possible to have the same work performed several times using the jobs and Planner?

    I was instructed to examine whether we can move all our DBMS and jobs table that are scheduled using submit next procedure of jobs in the job scheduler

    There are several offers that concern them;

    We run every 3 seconds - this work may take 20 minutes to complete and there may be multiple running simultaneously 8-9, both

    so, my question is possible to use the Scheduler for simply helping employment and then 3 seconds we kickoff again?

    or the first inning started three seconds ago should finish before the next could draw?

    is there any solutions for this?

    I thought maybe you could create a script that creates a new entry every 3 seconds which is named work differently so that they can run at the same time, however, I hope that there is a more simple solution

    DB - 11g

    Thank you

    Thanks for the comments. It's a start. What I do for this work is to use a program. Since my job call the same routine with the same number of arguments. I create based on a program.

  • Is it possible to use the same license on my PC and my laptop?

    Hello

    I have a PC where I installed Adobe cloud (CC PS and LR CC) and I bought a laptop now.

    Is it possible to use the same license on my PC and my laptop? I have Yes, how do I use it?

    Thank you

    Erdogan

    Yes.  Your license allows you to have two signed in facilities as long as you only use one at a time for the subscription.  Install the desktop application on the second computer, connect and install the applications.

  • Is it possible to use the same license on two computers; fixed and portable?

    I have licensed Adobe Creative Cloud for PC. Is it possible to use the same license on two computers; my desktop and my laptop?

    Hello

    You can have the creative cloud installed and signed in on two computers as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the Adobe using your Adobe ID website, download the desktop app from clouds, then download the software. Log on a computer that you will not use:

    log in and log out of the desktop Adobe Creative Cloud application

    Let us know if you have more questions!

  • Hello, is it possible to use the creative cloud on a chromebook? And how should I "install"? Thank you!

    Hello, is it possible to use the creative cloud on a chromebook? And how should I "install"? Thank you!

    No.... Mac or Windows only

    Well well, with the exception of a few mobile applications which I don't use

  • is it possible to display the Date and time in the address bar or a clock window constantly

    I need to take screenshots with date stamps and time using the script of iMacros. Everything by taking screenshots iMacro don't add taskbar windows for the date and time. It takes screenshots of browser. Is it possible to display the Date and time in the address bar or a clock within the tab browser constantly to capture the screenshot with time stamp through iMacros
    I added the big clock background Add-ons, but it is visible to new tabs.

    Badly looking for help and it will be really appreciated...

    Try this extension:

  • Is it possible to use the current version of Safari on Windows 10?

    Is it possible to use the current version of Safari on Windows 10?

    N ° Safari has been developed and supported for Windows in 2012.  If you don't want to use Edge or IE, I recommend Firefox.

  • Is it possible to use the 32-bit firefox with the plugin java 64 bit?

    Is it possible to use the 32-bit firefox with the plugin java 64 bit?
    I would use 32-bit firefox and I already install the plugin java 64 bit.
    Is this a good choice is not to install the 32-bit java plugin?
    These will cause problems?

    Thanks in advance.
    Kind regards
    Sean

    Nope - you need the 32-bit Java to go with the 32-bit Firefox, if you want that Java run

  • Is it possible to use the port replicator with the Satellite Pro series?

    Hello
    Is it possible to use the port replicator (Docking Stations) for Tecra series laptop with the Satellite Pro series?

    Hello

    No, as far as I know it of not possible to use a port on laptops Satellite Pro Replicator.
    All laptops that support the Port Replicator has a port extension at the bottom of the unit.
    To my knowledge, the Satellite Pro series don t have this port.
    For now only the Tecra and some units Protégé(ie: S100) supports this feature.

  • Is it possible to use the Win XP on my Portege HDMI output?

    Is it possible to use the HDMI on Windows XP?
    How can I activate this option (if possible)?

    Thank you

    Hello

    Generally, it should be possible.
    I m an owner of the laptop with HDMI port and I m running Win XP too.
    I plugged in my external LCD via an HDMI cable and it works.

    What Portege do you have?

  • Is it possible to use the Satellite P200D - 11L with Windows XP

    I want to buy this model from Toshiba (P200D - 11L). Is it possible to run it with Windows XP? Because I'm not interested in Windows Vista now... thx

    Of course, it is possible to use the XP on this laptop.
    But the question is; All the XP drivers are available for this series of satellites P?

    I checked the page European driver of Toshiba and, unfortunately, I didn't find the XP drivers for the series Sat P200D currently

    Well, as far as I remember the XOP drivers were unavailable for the A200 series too. But after a few days/weeks Toshiba comes to present all the XP drivers.
    I guess that this series is brand new on the market and it may need to wait a bit until all the XP drivers will be available.

    Please do not get out of patience ;)

    Best regards

Maybe you are looking for

  • How Mail copy computer 2008 to 2012?

    On the computer (newer) 2012, they want only to be under the account of the ISP (which I didn't ask for) and therefore may be either in the Inbox or sent. A computer is set up the way I want it (2008), but I can't get the new-to-me computer (2012) pu

  • phase shifted PWM with Ni 9401 and Crio

    Hello Do you have an idea of pwm shifted 180 degrees? (duty cycle frequency and variable difficulty) I tried a design, but it seems in the graphics design works on the realtime.vi but it does not work with the fpga. Graphic output pwm FPGA are distin

  • In "Add or remove programs' done 'change '?

    I am trying to run Combofix and it want me to have the updated Recovery Console which I think has something to do with "Service Pack 2, 3.0" I tried the update section, but it says that everything is up to date.  So I chose change in Add or remove pr

  • lost activation of windows 7 when I uninstalled windows 10

    I have a used laptop bought with windows 7 on it two years ago.  I went through the process of activation then and it has been very well give me all the updates.  Two months ago, I received the windows 10 icon I have my tray and upgrade to windows fr

  • Muse are updated editions site properly

    Muse new update 2016.2 not to publish the site correctly... gives an error below:Some files on the server may be missing or incorrect. Clear the cache of the browser, and then try again. If the problem persists, please contact Web site author.Is it a