title: AS2: Function not calling, using timer-- and myFunction();
body: <p>I'm programming a game for fun. I'm using a timer that when hits 0 it's supposed to call functions (which I think is how games work, right?). Anyway, myFunc; does not do anything at all when timer hits 0, but it does do timer = TIMER_INIT;. </p>
  
  <p>Also, the first line below has myFunction; being called first thing and that also fails.</p>
  
  <pre><code>myFunction;
  
  // Timer
  var timer = TIMER_INIT;
  countdown = function() {
  
      if (timer == 0) {
          myFunc ;
          timer = TIMER_INIT;
      } else {
              timer--; 
      }
  }
  
  countdownInterval = setInterval(countdown, TIMER_INTERVAL);
  
  myFunc = function() {
      ab += abI;
      abc += abcI;
      abcd += abcdI;
      myFunction;
  }
  
  myFunction= function() {
      a.ab.text = ab + " / 200";
      a.abc.text = abc+ " / 200";
      a.abcd.text = abcd+ " / 200";   
  }
  </code></pre>