Skip navigation
bock85
Currently Being Moderated

Button wont work after Swipe

Mar 4, 2011 7:02 AM

Hello everybody,

 

I have this script to scroll a movieclip on Ipad:

 

import fl.transitions.Tween;
import fl.transitions.easing.*;

text_asco.addEventListener(TransformGestureEvent.GESTURE_SWIPE, onSwipe8);

function onSwipe8 (e:TransformGestureEvent):void{
if (e.offsetY == 1) {
if(text_asco.y <= 100){
var RightTween:Tween = new Tween(text_asco, "y", Regular.easeOut, text_asco.y, text_asco.y+200, 0.5, true);
}
}
if (e.offsetY == -1) {
{
var LeftTween:Tween = new Tween(text_asco, "y", Regular.easeOut, text_asco.y, text_asco.y-200, 0.5, true);
}
}
}

 

And then I have some buttons that moves in Timeline, so if the user press chapter one in a menu then it jumps on the timeline so the scrollable movieclip is place at chapter one. But my problem is that when I have used the Swipe gesture the buttons wont work anymore.

 

This is my code for ons of the button:

 

a.addEventListener(MouseEvent.CLICK, a_Click, false, 0, true);
function a_Click(event:MouseEvent) { gotoAndStop("asco");
}

 

WHAT IS WRONG???

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points