onEnterFrame IN for loop

I’ve dynamically added some boxes with text boxes in them that pick up a letter from an array.

How do I get each box to move across the stage? I can’t find where to put the onEnterFrame part. Within the for loop?

I can hard code it and it works, but there should be a way.

[AS]
for(i=0;i<moji.length;i++) {
box.duplicateMovieClip(“box”+i,this.getNextHighestDepth(),{_x:(i20)+480,_y:i20});
this[“box”+i].txt.text = moji*;
onEnterFrame = function() {
this[“box”+i]._x -= (10+i);
}
}
[/AS]