Skip to main content
Inspiring
February 26, 2023
Question

AIR for ANDROID zoom gestures

  • February 26, 2023
  • 2 replies
  • 1775 views

Hi there!

Is there any way i can zoom on specific object, for example picture on flash android app. Lets say i have a photo and i want user to be able to zoom it normally. The way adobe has it in its script its weird and makes a mess, its not right. I want to be able to zoom it to some level, proportionally, and to drag it inside its box?

I use adobe animate AIR for android, and those gestures are no help.

Thank you very much

    This topic has been closed for replies.

    2 replies

    Colin Holgate
    Inspiring
    March 1, 2023

    The AIR AS3 functions do include everything you need to do zoom gestures, but that doesn't mean that it's easy. When I had to do gestures on Android I used this library to make things easier for me. It's years since I used it, so you may need to read what it is able to do these days (as you can see, it hasn't been updated in 10 years):

    https://github.com/fljot/Gestouch

    Inspiring
    March 3, 2023

    Yeah i know. Thanx for response. But anyway its lousy functions, it doesnt zoom proportionaly, but distorts object completely. 

    kglad
    Community Expert
    Community Expert
    February 26, 2023

    you can disable scroll/rubberbanding and let the os handle zooming.

    Inspiring
    February 26, 2023

    Wheee how what is that? 

     

    So i want normal zooming and paning on my app, Android app made in animate. I fou d yoir solition with sligjtly changed default Air gesture code. Its helpfull. But i need alot of that. lile 500 objects. Can i somebow edit that default AIR cscript in animate?

    kglad
    Community Expert
    Community Expert
    February 26, 2023

    what file type are your trying to edit?