2 Replies Latest reply on Nov 8, 2006 3:01 PM by zstasa

    setInterval passing parameters

    zstasa Level 1
      I'm wondering if someone has an idea why this won't work....

      //------------------------------
      function example(){
      trace(this);
      }
      example();

      setInterval(example, 100);
      //-------------------------------------

      When I call function without setInterval it traces "_level0" , but when function is called with setInterval, function traces "undefined". ...

      Does anyone have idea how to fix this?