6 Replies Latest reply on May 8, 2007 5:41 PM by Rothrock

    How to use setTimeout();

    Rothrock Level 5
      I've seen a way of using setTimeout to do a function at a specific time.

      function myFunc(){
      trace("called');
      }

      setTimeout(myFunc,1000);

      But what if I didn't want to make/name a function. Is there a way to do this:

      setTimeout(trace("called"),1000);