hello all

I created a table how can I write inside these cells and how it is possible to change the color of a specific cell if some condition is met, for example if the writing is excellent, the cell color is red




PHP Code:
onFrame (1) {
    function 
mySquare (x:Numbery:Numbersize:Number):MovieClip {
        var 
depth:Number _root.getNextHighestDepth( );
var 
square:MovieClip =_root.createEmptyMovieClip("example"depth);
square.beginFill(0x0022CC80);
square.lineStyle(20xFF9900100);
square.moveTo(00);
square.lineTo(size0);
square.lineTo(sizesize);
square.lineTo(0size);
square.lineTo(00);
square.endFill( );
square._x x;
square._y y;
return 
square;
}
var 
size 30;
for (
i=0i<10i++) {
for (
j=0j<10j++) {
var 
x_coord * (size 5);
var 
y_coord * (size 5);
var 
tempSquare:MovieClip =mySquare(x_coord+100y_coord+10size);
}
}