Copy link to clipboard
Copied
i want to write a project for android
in some application i see page change bye touching to write or left ( next page or previous )
i think about create 2 hidden button on right and left of my screen in flash and use goto script but it`s not nice and page will change with single touch and not with dragging the touch to left or right
is there possible to change frame by dragging to left or right in android mobiles ? or any tip or tick to simulate this in flash ??
thanks
Copy link to clipboard
Copied
There are some basic gestures that are supported already for this kind of thing. Swipe is one of them which is the gesture you're describing. Here's information and example code on it (the first example code is swipe), experiment with it:
Copy link to clipboard
Copied
thanks so much sinious
it seems all things that i want can run in Flash and AS3 for android .
but my English is weak and i cant understand this tutorial right , do you have any idea how can i found some sample *.fla projects about using gestures ?
another important thing is it seems these codes are use for movieclips and objects , is it possible to use swipe right left stage or window ??
Copy link to clipboard
Copied
Code is the same no matter what language you speak . You can literally copy and paste the code while observing the output. Use a simple service like http://translate.google.com to convert the words in the tutorial to your language and you're all set.
And yes, it's actually extremely often that people directly attach the event to listen for a swipe to the entire stage rather than a single object. So just change the example code to stage.addEventListener(...) and the entire stage becomes swipeable!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now