Help Please
Could someone please tell me the code to how to stop the swipe when on a diffrent scene
test1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_9);
function fl_ClickToGoToScene_9(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 2");
}
/* Swipe to Go to Next/Previous Frame and Stop
Swiping the stage moves the playhead to the next/previous frame and stops the movie.
*/
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousFrame_30);
function fl_SwipeToGoToNextPreviousFrame_30(event:TransformGestureEvent):void
{
if(event.offsetX == 1)
{
// swiped right
gotoAndPlay(2);
}
else if(event.offsetX == -1)
{
// swiped left
gotoAndPlay(1);
}
}
