8 Replies Latest reply on Jul 4, 2006 12:54 PM by kglad

    animate with setInterval

    hushhurt
      I am trying to animate a MC in once a rollover on another mc has been detected.
      here is my code:

      musicPlayer._x = -185;
      musicPlayer._y = -538
      musicPlayer._alpha = 0;

      function musicMove() {
      musicPlayer._alpha++;
      musicPlayer._x++;
      musicPlayer._y++;
      updateAfterEvent();
      }

      var myInterval:Number = setInterval(musicMove, 10);

      any suggestions?