I’m tring the following, However in a follow up function, the name (of the clicked object)doesn’t coincide with the name it has been given in this function
var tiles:URLVariables = new URLVariables(evt.target.data);
for (var n:uint=0; n<tiles["total"]; n++)
{
MyTileList.addItem({source:address + tiles["tile"+n] + ".jpg"});
****The things written below are things i have tryed****
TileArray[n].name = n
trace(TileArray[n])
}
These are the things i have tryed… all of them failed
TileArray[n] = MyTileList.getChildAt(numChilden -1)
TileArray[n] = MyTileList.getChildAt(0)
TileArray[n] = MyTileList.getItemAt(n)
function TilesSelect(evt:Event)
{
trace(evt.target.name)
}
This will trace a instance name, depending on the item clicked inside of the TileList , however, not the name i try assigning to it VIA the previous mentioned Function