# URLVariables not parsing data. Why?

**URL:** <https://forum.kirupa.com/t/urlvariables-not-parsing-data-why/301665>\
**Category:** flash\
**Created:** [December 13, 2009, 3:03pm UTC](https://forum.kirupa.com/t/urlvariables-not-parsing-data-why/301665 "2009-12-13T15:03:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [December 13, 2009, 3:03pm UTC](https://forum.kirupa.com/t/urlvariables-not-parsing-data-why/301665/1 "2009-12-13T15:03:46Z")

</div>

Hi!

Very simple script:

```
ActionScript Code:
[LEFT][COLOR=#808080]*//request is made to PHP script*[/COLOR]

```

[COLOR=#000000] **function** [/COLOR] completorCOLOR=#000000[/COLOR]:[COLOR=#0000FF]void[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#000000] **var** [/COLOR] getor:URLLoader = URLLoaderCOLOR=#000000[/COLOR];[COLOR=#808080]_//works_[/COLOR]  
[COLOR=#000000] **var** [/COLOR] vars:URLVariables = [COLOR=#000000] **new** [/COLOR] URLVariablesCOLOR=#000000[/COLOR];[COLOR=#808080]_//doesn’t work!_[/COLOR]  
[COLOR=#000000]}[/COLOR]  
getData.[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR]Event.[COLOR=#000080]COMPLETE[/COLOR], completor[COLOR=#000000])[/COLOR];  
[/LEFT]

Does anybody knows why the hell the second line in that function doesn’t work? The first line outputs something like “&var1=something&var2=something\_else”. I just can’t get why when I try to parse the data from the loader object into variables (second line) Flash simply stops and all the code after doesn’t get executed.

Help?
