Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

simulate Page (frame) changing by touch for android

Participant ,
May 07, 2014 May 07, 2014

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

TOPICS
ActionScript
451
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 07, 2014 May 07, 2014

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:

Adobe Flash Platform * Gesture event handling

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 09, 2014 May 09, 2014

thanks so much

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 ??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2014 May 09, 2014
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines