Aii there…
Okay I just make a grid based on array… my problem is how to highlight boxes that contain only character I mean if the box contain character it will gotoAndPlay(2)…eg:
C
CAR
T
here’s the code currently Im using…
var xPos:Number = 10;
var yPos:Number = 10;
var columns:Array = new Array(["*","*","*","*","*"],["*","*","c","*","*"],["*","c","a","r","*"],["*","*","t","*","*"],["*","*","*","*","*"]);
for (var i:Number = 0; i < columns.length; i++) {
for (var j:Number = 0; j < columns*.length; j++) {
//if (columns*[j]) {
var s:MovieClip = this.attachMovie("square", "square" + this.getNextHighestDepth(), this.getNextHighestDepth());
s._x = xPos;
s._y = yPos;
s.lbltxt.text = columns*[j];
//}
xPos += 20;
}
yPos += 20;
xPos = 10;
}
Hope someone will give me shed some light…thanks