How do you guys reference one of multiple objects? Every recent project of mine winds up having a bunch of items pushed into an array, and I find out which one to manipulate like this:
function myFunction():void
{
index = e.target.name.slice(5,7); // object is named "item_1"
myArray[index].x += 5 (or whatever);
}
Is there an “ideal” (or better) way to do this? I hope this makes sense.