Hi just began with flash mx actionscript.

made a tile script that checks resolution and then duplicates enough tiles. But when I store the mc in a variable in the loop it goes wrong. See //*****
I dont no why, can someone help me?

for(c=1; c<cells; c++) {
duplicateMovieClip(_root.bgp_mc,"bg_mc"+c,"backgro und");
trace("bg_mc"+c); //=ok
removeMovieClip(_root.bgp_mc);
}

for(c=1; c<cells; c++) {
mc = _root["bg_mc"+c];
//mc = eval("_root.bg_mc"+c);
trace(mc); //*****fault ->all undifened except last one
mc._x += mc._width/2;
}