How to change the color of a cell of the table
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
https://board.flashkit.com/board/ima.../2020/09/1.jpg
PHP Code:
onFrame (1) {
function mySquare (x:Number, y:Number, size:Number):MovieClip {
var depth:Number = _root.getNextHighestDepth( );
var square:MovieClip =_root.createEmptyMovieClip("example", depth);
square.beginFill(0x0022CC, 80);
square.lineStyle(2, 0xFF9900, 100);
square.moveTo(0, 0);
square.lineTo(size, 0);
square.lineTo(size, size);
square.lineTo(0, size);
square.lineTo(0, 0);
square.endFill( );
square._x = x;
square._y = y;
return square;
}
var size = 30;
for (i=0; i<10; i++) {
for (j=0; j<10; j++) {
var x_coord = i * (size + 5);
var y_coord = j * (size + 5);
var tempSquare:MovieClip =mySquare(x_coord+100, y_coord+10, size);
}
}
}