Товарищи, подскажите советом. уже всю голову сломал.

Код AS3:
/////// отрывок кода
for(var i:int=0; i<10; i++)
{
tempArr[i]=new UILoader();
tempArr[i].source="path";
tempArr[i].addEventListener(Event.COMPLETE, function(e:Event){onComplete(i)});
}
/////// отрывок кода
//
private static function onComplete(j:int)
{
j здесь один и тот же, а должен быть разным.....
}
//