title: Basics in for loop in actionscript 3 in flex
body: <p>Good Morning stackoverflow...
  I'm having a problem.... this is my sample code</p>
  
  <pre><code>var i:Number = new Number();
  
  trace("showarray length" + showArray.length);
  
  for(i=0;i&lt;showArray.length;i++){
  
      trace("equal daw" + showArray.getItemAt(i).id + "==" + num);
  
      if(showArray.getItemAt(i).id == num){
          showArray.removeItemAt(i);
  
      }
  }
  trace('alerts');
  </code></pre>
  
  <p>myproblem here is...wherenever the if is satisfied it stops looping it immediately goes out of the loop</p>
  
  <p>this is a sample output
  given that the length of showArray is 2 and num = 0</p>
  
  <p>showarray length2</p>
  
  <p>equal daw0==0</p>
  
  <p>alerts</p>
  
  <p>please help me</p>