var orb_strip:Array = new Array();
var orb_strip_matrix:Array = new Array(orb_strip);
public function OrbArray() //constructor.
{
for (var a:uint = 0; a < orb_strip_row_size; a++)
{
//one for loop create an array of movieClips and draws them on the stage in a row.
for (var i:uint = 0; i < orb_strip_size; i ++)
{
var orb:Orb = new Orb();
// all the properties of each orb are created.
orb.x = (i*50);
orb.y = (a*100);
orb.alpha = 0.3;
orb.orbText.text = ("orb" + i);
orb.label = "blank";
orb.type = "speak";
orb.mouseChildren = false; //?
// more event listners but this time for each orb.
orb.addEventListener(MouseEvent.MOUSE_OVER, orbMouseOver);
orb.addEventListener(MouseEvent.CLICK, orbClick);
orb.addEventListener(MouseEvent.MOUSE_OUT, orbMouseOut);
orb_strip.push(orb); // an orb is born!
addChild(orb);
}
orb_strip_matrix.push(orb_strip);
}
orb_strip_matrix[1][3].alpha = 0.9;
}
Here is the problem this only references orbs in the top or 0 row of the array.
This is nested inside another for loop which creates an array of the movieClip rows. Problem I see them drawn and positioned correctly on the stage but I cant reference any other than the top row in order to change the alpha for example. I have looked for a solution but cant find any examples that attempt it this way so conclude the nested for loop is wrong way to do it? Any ideas greatly received.