Yes, Of cause. You can add an event listener to stage of your application, such as:
stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousFrame);
function fl_SwipeToGoToNextPreviousFrame(event:TransformGestureEvent):void
{
if(event.offsetX == 1)
{
if(currentGalleryItem > 1){
currentGalleryItem--;
slideRight();
}
}
else if(event.offsetX == -1)
{
if(currentGalleryItem < totalGalleryItems){
currentGalleryItem++;
slideLeft();
}
}
}
Actually you can use the Template of Flash CC to do this:
Select "AIR for Android" or "AIR for iOS" from the Category list, select "gesture swipe library"(last one of list) from the Category Items list, and click OK.