Add url to the MCs on the fly

Is it possible add link to a duplicated movieclips dynamically?

A movieclip named “box” on the stage and duplicated using the following code


width = _root.box._x;
for (i=0; i<10; i++){
_root.box.duplicateMovieClip ("box" add i, i);
_root["box" add i]._x = width * i;
}

That is the root created the movieclips box1, box2 and sofar… How can we create different links to these mcs that are created on the fly?

I’ve also tried the following code but i’m getting the only link that “file10.html”

  
width = _root.box._x;
for (i=0; i<10; i++) {
 _root.box.duplicateMovieClip("box" add i, i);
 _root["box" add i]._x = width*i;
 _root["box" add i].onRelease = function() {
  getURL("file" add i add "." add "html");
  trace("file" add i add "." add "html");
 };
}