title: Flash AS3 timer question
body: <p>I have got a timerEvent that adds 25 movieclips to the stage and animates them from x:0,y:0, this all works fine! What i would like to do is assign each movie clip a y value of 25px more than the last movieClip added to the stage. I did a little test by trying to increment a number value each time the timer did a loop but it didnt increment. Should i be using a for loop/array too?</p>
  
  <p>Thanks in advance.
  Jono</p>
  
  <pre><code>import flash.events.*;
  import caurina.transitions.*;
  
  bringItemsOn();
  
  var itemTimer:Timer;
  function bringItemsOn():void {
      itemTimer=new Timer(300);
      itemTimer.addEventListener(TimerEvent.TIMER,itemTimer_tick);
      itemTimer.start();
  }
  
  function itemTimer_tick(e:TimerEvent):void {    
      itemTimer.currentCount-1;
      var mc:MovieClip = new MovieClip();
      mc.graphics.beginFill(Math.random() * 0x000000);
      mc.graphics.drawRect(0,0,stage.stageWidth,25);
      mc.x=0;
      mc.y=0;
      addChild(mc);
      Tweener.addTween(mc,{y:Math.random()*1000 - 500,
                               x:0,
                               time:.9,
                               transition:"easeOutExpo"});
  
      if (itemTimer.currentCount&gt;=25) {
          itemTimer.removeEventListener(TimerEvent.TIMER,itemTimer_tick);
      }
  }
  </code></pre>