0 Replies Latest reply on Mar 4, 2011 7:02 AM by bock85

    Button wont work after Swipe


      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???