you're probably seeing what you've encoded. i'm just not sure what you want but my guess is when you swipe left you want to go to the previous keyframe. is that correct?
if so, you need to encode a loop (eg, enterframe) that repeatedly executes a prevFrame() until the previous keyframe is reached and then remove the loop.
tq, ill try it
(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)
not works yet m8, actually what i mean is when i create a script
at frame 30
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousScene_d);
if(event.offsetX == 1)
// swiped right
else if(event.offsetX == -1)
// swiped left
it should be go to and play frame 2 until stop *i put stop();* at frame 10 and run the swipe function at this frame, but the fuction which running is always swipe at the last frame, in this case swipe function at frame 30
the code in message 4 will direct the timeline to frame 2 and play.
but if you failed to remove those other listeners, they'll be triggered too.
script at each frame running well, untill i swipe right that contain gotoAndPlay (2); or back to previous frame,
is there any script to break the swipe fuction in last frame and release swipe function in previous frame?
1 person found this helpful
use removeEventListener to remove event listeners. eg,
stage.removeEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousScene_a);