11 Replies Latest reply on Aug 30, 2011 9:37 PM by relaxatraja

    gotoAndStop('frame') doesn't stop!

    illegalbrain

      I have been following Doug WInnie's tutorials on flash, and am up to ep17:

       

      http://tv.adobe.com/watch/actionscript-11-with-doug-winnie/more-control-with-the-timeline- episode-17/

       

      He briefly mentions these functions at the end, but doesn't go into any detail:

       

      _______________

      // Add event listener and callback function for roll over of the ball
      myBall.addEventListener(MouseEvent.MOUSE_OVER, ballOver);
      function ballOver(e:MouseEvent)
      {
          myBall.gotoAndStop('glow');
      }

       

      // Add event listener and callback function for roll out of the ball
      myBall.addEventListener(MouseEvent.MOUSE_OUT, function (e:MouseEvent) {myBall.gotoAndStop('normal'); })

      _______________


      When I tried doing this, I labelled one frame within the myBall movie clip 'normal' and the next one 'glow' and I added a filter glow to the ball on the glow frame.

       

      When I play it back, and mouse over the ball it flickers really quickly between glowing and not glowing, and when I mouse out it returns to normal and stops, but I thought it should stop on the glow frame as well.

       

      What am I doing wrong?