iphone - How to add multiple pages in AIR for Android -
i want add multiple pages in android app, similar home screen on phone, want able swipe left , right see multiple pages.
i'm developing app in adobe flash cc 2014 using "air 16.0 android".
anyone know how can this?
you can go different approaches problem. create swipegestures detect or go way flash went since 1999, setup movieclip (or many) , listen onmousedown (ontouchstart) events , mc.startdrag(); (you want limit drag-movement to x axis). onmouseup (ontouchend) can determine if current mc relativly cented , tween middle of screen, or if page far left/right , therefore page next page. there touch drag implementation out of box ontouchmove .
basicly looking kind of coverflow as3 ... or lot less fancy. please make comfortable startdrag , stopdrag , see how there doing.
Comments
Post a Comment