# URLLoader and Variables HELP!

**URL:** https://forum.kirupa.com/t/urlloader-and-variables-help/225136
**Category:** Uncategorized
**Created:** [May 9, 2007, 3:04am UTC](https://forum.kirupa.com/t/urlloader-and-variables-help/225136 "2007-05-09T03:04:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![versus69](https://avatars.discourse-cdn.com/v4/letter/v/a587f6/32.png) [@versus69](https://forum.kirupa.com/u/versus69)
#### Post date: [May 9, 2007, 3:04am UTC](https://forum.kirupa.com/t/urlloader-and-variables-help/225136/1 "2007-05-09T03:04:31Z")

</div>

Hey i am trying to get this working and i know i can use string parsers to get what i need but that will become too messy for what i want. This is my following AS3 code:

var request:URLRequest = new URLRequest(“[http://mywebsite.yadayada/flash\_getproducts.aspx?Id=11](http://mywebsite.yadayada/flash_getproducts.aspx?Id=11)”);  
var loader:URLLoader = new URLLoader();  
loader.dataFormat = URLLoaderDataFormat.VARIABLES;  
loader.addEventListener (Event.COMPLETE, completeHandler);  
try {  
loader.load (request);  
} catch (error:Error) {  
trace(“Unable to load requested document.”);  
}

function completeHandler(event:Event):void  
{  
var loader:URLLoader = URLLoader(event.target);

trace (loader.data);  
}

Now as soon as i run my movie i get the following error message and it never even makes it to completeHandler event:

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.  
at Error$/throwError()  
at [flash.net](http://flash.net)::URLVariables/decode()  
at [flash.net](http://flash.net)::URLVariables$iinit()  
at [flash.net](http://flash.net)::URLLoader/flash.net:URLLoader::onComplete()

I need help for this urgently
