Hello,
I have an array of data objects that I would like to send from my .swf to a server-side script. I would like to loop through the array and assign a variable key name to each name-value pair, for example:
But when I try to use this method, the parser treats 'keyName' as a string.
Is it possible to do this? or do I have to write a very long switch/case statement?
Your insight is appreciated!
many thanks,
thesmithman
I have an array of data objects that I would like to send from my .swf to a server-side script. I would like to loop through the array and assign a variable key name to each name-value pair, for example:
Code:
myVars = new URLVariables; for(i in objectArray){ var keyName = 'obj_' + i; myVars.keyName = objectArray[i].data; }
Is it possible to do this? or do I have to write a very long switch/case statement?
Your insight is appreciated!
many thanks,
thesmithman
Comment