Creating field of tiles

Basicly this should work just like a non OOP tile game board. It just stacks the tiles on top of each other and never changes the color. So I assume that _root.cname is the wrong way to referance it. Any ideas?


//Create beginning variables
var checks_ver:Number = 8;
var checks_hor:Number = 8;

var check_size:Number = 64;
var frame:Number = 2;
//Create board
for(var i = 0; i < checks_hor; i++){
    for(var j = 0; j < checks_ver; j++){
        var ver = check_size*i;
        var hor = check_size*j;
        var cname = "check_"+i+"_"+j;
        _root.attachMovie("checks", cname, i*100+j*2);
        _root.cname._x = 200;
        _root.cname._y = 400;
        _root.cname.gotoAndStop(frame);
        if(frame == 2){
            frame = 1;
        }
        else{
            frame = 2;
        }
    }
}