1 Reply Latest reply on Mar 19, 2014 5:05 AM by Ned Murphy

    AS2 How to make a button that moves every two seconds

    KennethH99

      How can I make a button that moves every two seconds by itself in ActionScript2?

       

      At the moment, I have to use the on(press) command, but what I really need is for the button to be able to move randomly by itself every two seconds. For example:

       

      (insert the code here) {

           bc1._x = random(250)

           bc1._y = random(250)

      }

       

      Thanks!