Guys can any body explain me how to access an array.Actually i am succsufully getting value from array named Dynamic array.
here the node language_1 is not static it may be language_2 or language_3 or language_4 ect.. so i put that getting value in a variable named key
var key:String = 'language_1'; //Suppose i am getting right value here in key
So please guide me how i access my dynamic array using key so that i got same value as previous code give.
i already tried:-DynamicArray[i].key.translation;
but every time got error.
for more clarity i put array structure here
DynamicArr= Array (@43b1271)
 = Object (@43ad219)
contentlanguage_1 = Array (@43b1431)
 = Object (@4417a11)
choice_id = "0"
deleted = "N"
downloadurl = "http://126.96.36.199:80/cgi-bin/WebObjects/DataVit.woa/wa/Download/getImage?imageId=1281&f ilename="
selected = "Y"
translation = "2_486"
length = 1
 = Object (@4417949)
please Help me out
Thanks In Advance
Hi Vineet Osho,
You haven't tried ---> DynamicArray[i][key].translation; This will work
You tried -> DynamicArray[i][key].translation; (This is wrong as you havent specified on which index you want to access)
If still doesn't work ty this...
If the above one doesn't work then try the below one...
var obj:Object = DynamicArray[i];
var translation:String = obj[key].translation;
Thanks A ton Bhasker For your Quick reply.
you are Absolutely right i missed one index.Thanks for your guidance.it works for me.