# Parsing Help

**URL:** <https://forum.kirupa.com/t/parsing-help/82625>\
**Category:** flash\
**Created:** [March 11, 2005, 7:54pm UTC](https://forum.kirupa.com/t/parsing-help/82625 "2005-03-11T19:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [March 11, 2005, 7:54pm UTC](https://forum.kirupa.com/t/parsing-help/82625/1 "2005-03-11T19:54:10Z")

</div>

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

```auto

//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 🙂
