Can't stop sound playing!
The problem is that I have a sound that plays inside a movieclip when the play head enters a frame (inside the movieclip), this is controlled by an event listener:
Multitouch.inputMode = MultitouchInputMode.GESTURE;
stage.addEventListener (TransformGestureEvent.GESTURE_SWIPE, fl_SwipeToGoToNextPreviousFrame_4);
function fl_SwipeToGoToNextPreviousFrame_4(event:TransformGestureEvent):void
{
if(event.offsetX == 1)
{
// swiped right
prevFrame();
}
else if(event.offsetX == -1)
{
// swiped left
nextFrame();
}
}
when the playhead in the maintime line, goes back to a frame before the one containing said movieclip,
swiping still causes this sound to play.
I am both unsure as to why this happens and home to stop it from happening
Any suggestions would be greatly appreciated
Thanks
