scene by scene smooth swipe gestures in AS3
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
