Actionscript tiles?

for(var vary = 0; vary <= 2; vary++) {
    for (var varx = 0; varx <= 2; varx++) {
        var idname = "t_"+varx+"_"+vary;
        this.attachMovie("tile", idname, 1);
        this.idname.gotoAndStop(1);
        this.idname._x=XDis;
    }
}

This is the code i am using to show the tiles, but the tile pops up in ONE place, but it doesn’t go to and stop at frame 2 :(, can anyone help?