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:
Expand|Select|Wrap|Line Numbers
- 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