Claudio helped me out a few weeks ago, and it worked great.
I’m having some more trouble parsing data.
The string is being passed in as so:
DefaultValueList=DefaultValue10=“Caption 1 Text”,DefaultValue11=“Some text”;
my code is
//assuming flash already has the string
DefaultValueList=DefaultValue10="Caption 1 Text",DefaultValue11="Some text";
//
var receivedData = {vars:new Array(), datas:new Array()};
function Parse() {
var temp1 = _level0.DefaultValueList.split(",");
for (var i = 0; i<temp1.length; ++i) {
var temp2 = temp1*.split("=");
receivedData.vars.push(temp2[0]);
receivedData.datas.push(temp2[1]);
}
trace(receivedData.vars+newline+receivedData.datas);
}
Parse();
Help is much appreciated