Hi Vineet Osho,
You can loop through your object using for loop and can get the Array name...as shown below..
for each(var obj:Object in myArray)
for(var str:String in obj)
if(obj[str] is Array)
var arrayName:String = str;
Hi bhasker Thanks Alot This also Works for me.
Needs a little favour from your side.i want to add some values at runtime in my array.for this i choose param variable which is Object type.
I just want that how can i make my str and tempid variable dynamic.means every time a new variable added in my param object.
hope you understand what i want to say.
var arr:Array = ;
var param:Object = new Object();
param.str = int(xml.tempImageId);
param.tempId = int(xml.recipeImageId);
1 person found this helpful
By what means you are trying to make str and tempid variables dynamic.
I din't get you question exactly ...Will you please elaborate..??
If you want to say add str and tempid first time to your param object and str1 and tempid1 to second Object, str2 and tempid2 ..etc;
then you can do something like below:
param = new Object();
param["str"+i] = i * 10;//pushing some random number
param["tempId"+i] = i * 14;//pushing some random number
Check for arr variable after the loop is finished you can see your array with each object having different properties.
Thanks Bhasker for your quick reply .that is what i exactly wants.you sorted out my problem once again.
thanks once again.