1 Reply Latest reply on Jan 11, 2007 9:08 AM by kglad


      Is there a way to sit in a while loop while waiting for a variable to be changed?
      An example in C# would be Application.DoEvents();

      Is there a better way to this?

        • 1. Re: DoEvents?
          kglad Adobe Community Professional & MVP
          you can't pause a for-loop nor a while-loop.

          you can use a pair of functions to loop and use setInterval() or setTimeout() to pause while waiting for something to happen.

          or you can use a listener or the watch() function to check when something occurs before proceding to the next step in your code.