hey guys:D
im still struggling with the switch over from as2 to as3. to begin with, let me tell u what i want to acheive. if i want to create a drig using as2 i woud say:
this.createEmptyMovieClip("gridHolder",0);
for(i=0;i<10;i++){
gridHolder.attachMovie("gridItem","gridItem"+i,this.getNextHighestDepth());
//rest of code
}
and by doing it this way i can access any of the items attached to the gridHolder movieclip, because it would be stored in an array. for example:
trace(gridHolder[0])
that would return the name of the first movieclip.
Now heres my as3 problem. i use this method to create my grid stuff:
for(var i:uint =0; i<10; ++)
{
var item:gridItem = new gridItem();
holder.addChild(item); //holder movieclip is already on the display list
//rest of code
}
How could i write some code, so that when i click on one of these items it would return the name of the movieclip, or just the āiā variable.