6 Replies Latest reply on Jun 15, 2006 7:33 AM by Peter Lorent

    need help with rollOver

    jezbennett75
      I am trying to get an image to move when a user hovers over the image.
      My movie is called ball_mc
      i have added this code but get some errors. what am i doing wrong please?

      myButton_btn.onRollOver = function() {
      tweenBall(mx.transitions.easing.Bounce.easeOut);
      };
      function tweenBall(easeType) {
      var begin = 20;
      var end = 380;
      var time = 20;
      var mc = ball_mc;
      ballTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time);
      }


      cheers
      jez