How to create a column header in a grid using action script?

Hi all,

I have tried to draw a grid like thing in flash using action script with the help of looping, how can i change the color of the first row in the grid? plz help me in coding. I have shared the coding here… this will create a table like structure with 5 rows and columns with some random numbers inside each cell.

for (var i = 1; i<=5; i++) {
for (var j = 1; j<=5; j++) {
// We attach the movie clip on the stage
grid_container.attachMovie(“cellMCs”, “cell”+counter, counter);

// We assign a _x position to the cell
grid_container[“cell”+counter]._x = initX;

// We assign a _y position to the cell
grid_container[“cell”+counter]._y = initY;

// We generate a random number that we display in the dynamic text field of the cell
grid_container[“cell”+counter].randomNumber.text = Math.floor(Math.random()*9)+1;
// We assign a onRelease event to the cell
//grid_container[“cell”+counter].onRelease = function() {
//cellName.text = this._name;
initX += 30;
initY += 30;
initX = 0;

Thanks in advance,