# URLVariables Decode

**URL:** <https://forum.kirupa.com/t/urlvariables-decode/279584>\
**Category:** flash\
**Created:** [January 16, 2009, 10:53am UTC](https://forum.kirupa.com/t/urlvariables-decode/279584 "2009-01-16T10:53:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [January 16, 2009, 10:53am UTC](https://forum.kirupa.com/t/urlvariables-decode/279584/1 "2009-01-16T10:53:55Z")

</div>

i have a text file with some data in it. now when i read it with actionscript 2.0 Loadvars class, it gives the proper results and can read each variable. however in actionscript 3.0 the decode method is giving error saying that : “Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.”

can some one help.
