3 Replies Latest reply on Jul 18, 2010 2:14 PM by dafo_13



      i have a button which has a mouseDown="ToDo(event)"

      so when i click the button, the function ToDo will go off

      im just wondering how to make the function ToDo loop..

      so that when u press and hold the button ToDo goes off and loops

      ...until you release the button

      i tried putting in a "while"        -->        while(MouseEvent.MOUSE_DOWN){...}

      but browser just crashes.. since the loop goes to infinity i think..

      so how can i make a button which when pressed does smth. and does it untill i release the button







      sorry for awsum english