如何像这样用我的 actionscript 3 删除我的 EventListener,我尝试了任何代码,但我仍然无法杀死我的 EventListener,请帮助新手....
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener(TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousFrame);
function fl_SwipeToGoToNextPreviousFrame(event:TransformGestureEvent):void
{
if (event.offsetX == -1)
{
// swiped left
nextFrame,play();
}
else if (event.offsetX == 1)
{
addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler_2);
function fl_EnterFrameHandler_2(event:Event):void
{
prevFrame();
}
}
}