Sorry if the title is a little confusing. Here’s what I meant - I have an array and and object. Let me give a visual:
This is my object:
obj["id"] = ["1","2","3"];
obj["name"] = ["na","no","ne"];
my itemArray:
itemArray = ["id","name"];
And now, I want to retrieve the items in the object, I tried
for (var i:int = 0; i<objLen; i++)
{
for (var j:int = 0; j<count; j++)
{
textBox_txt.appendText(obj.arr*[j]);
}
}
but it doesn’t work. How do I actually use the arr* variable in the array? :s