Copy link to clipboard
Copied
hi, I’m trying to make scene by scene swiping for may ipad and andriod application. i try this code but…..
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousScene);
function fl_SwipeToGoToNextPreviousScene(event:TransformGestureEvent):void
{
if(event.offsetX == 1)
{
// swiped right
prevScene();
}
else if(event.offsetX == -1)
{
// swiped left
nextScene();
}
}
its not working perfect. please help me for this
Copy link to clipboard
Copied
if you're trying to duplicate the ios swipe, there's no easy way. i just posted code for mimicking the swipe for a scrolling movieclip, but that (and nothing else) will work to mimic a swipe from one scene (or frame) to another.
Copy link to clipboard
Copied
boss can you give me URL where you posted the code??
Copy link to clipboard
Copied
here's the code:
Copy link to clipboard
Copied
could you please do an explanation about this answers?
so you don't use gesture swipe anymore to make it smooth??
Find more inspiration, events, and resources on the new Adobe Community
Explore Now