1 Reply Latest reply on Jan 23, 2007 2:14 AM by Osh_it


    srirama.83 Level 1
      I ‘m having a movieclip which on RollOver for more than ‘n’ seconds (say n=5) should perform some action. I’m able to do this using the getTimer() function, so when I RollOver the movieclip the action function get invoked and it will wait for 5 seconds and then execute it. But the problem here is when the RollOut is occurred the action function is still executed. Is there any way to stop the function execution when the RollOut occurs?
      I want
        • 1. Re: Timer
          If you are using setInterval on RollOver, you can use clearInterval(intervalID) on RollOut:

          var intervalID:Number
          myButton.onRollOver = function() {
          intervalID = setInterval(timeout, 1000);
          function timeout() {

          myButton.onRollOut = function() {