# Parsing incoming data from URLLoader?

**URL:** <https://forum.kirupa.com/t/parsing-incoming-data-from-urlloader/303876>\
**Category:** flash\
**Created:** [January 28, 2010, 3:59pm UTC](https://forum.kirupa.com/t/parsing-incoming-data-from-urlloader/303876 "2010-01-28T15:59:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yankleber](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@yankleber](https://forum.kirupa.com/u/yankleber)\
**Post date:** [January 28, 2010, 3:59pm UTC](https://forum.kirupa.com/t/parsing-incoming-data-from-urlloader/303876/1 "2010-01-28T15:59:36Z")

</div>

Hi,

How can I parse my incoming string returned by server and get values?

Look at the code below, that is part of a class I am writing:

```auto

var PHPURLRequest:URLRequest = new URLRequest(MyServerURL+"myscript.php");
var PHPsendVars:URLVariables = new URLVariables();
var PHPLoader:URLLoader = new URLLoader();
            
PHPLoader.dataFormat = URLLoaderDataFormat.TEXT;
PHPLoader.load(PHPURLRequest);
PHPLoader.addEventListener(Event.COMPLETE, onDataLoad);

function onDataLoad(evt:Event)
{
      trace (evt.target.data); // traces &errorcode=4& as expected
      trace (evt.target.data.errorcode); // spits out Error #1069: Property errorcode not found
}

```

Any clues?
