AIR swipe function doesn't work
I'm using Swipe function from codesnippet, but this code doesn't work for some reason, it doesn't report an error, but doesn't work. I've placed code on Background MC as suggested.
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeHandler_2);
function fl_SwipeHandler_2(event:TransformGestureEvent):void
{
switch(event.offsetX)
{
// swiped right
case 1:
{
MyMC.gotoAndStop(105);
break;
}
// swiped left
case -1:
{
MyMC.gotoAndStop(100);
break;
}
}
}
