Variables in a loop?help!

help me with this problem. The script creates a movieclip for each image which when i click will show an image on a root movieclip…but when clicked,it outputs undefined…

addressVars= new LoadVars();
addressVars.load("[http://localhost/test/flashmx_dbPassReturn.php](http://localhost/test/flashmx_dbPassReturn.php)");
addressVars.onLoad = function() {
for (i=0; i<this.n; i++){
myMC = createEmptyMovieClip("holder"+i, i);
myContainer = myMC.createEmptyMovieClip("container", 1);
myContainer.loadMovie(this["picFile"+i]);
  myMC._x =  (40*i);
myMC._y =  (1*i);
myMC.i = i;
myMC.onPress = function (){
trace (this["picFile"+i]);
_root.screen.loadMovie(this["picFile"+i]); }
}
}
}

i think the problem is that in the onPress function, it can’t define the “picFile” which i call from the database…help me please!!!