Array problem

Hello all,

I’ve just started working with Flash MX Pro 2004 and have already run across a problem. Can anyone explain why the following code doesn’t work?

testArray = new Array(3);
      
      function testFunc(foo)
      {
      	this.foo = foo;
      }
      
      for(lcv in testArray)
      {
      	this[lcv] = new testFunc(lcv);
      	trace(this[lcv].foo);
      }