# URLVariables Class

**URL:** https://forum.kirupa.com/t/urlvariables-class/238349
**Category:** flash
**Created:** [September 10, 2007, 1:12pm UTC](https://forum.kirupa.com/t/urlvariables-class/238349 "2007-09-10T13:12:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)
#### Post date: [September 10, 2007, 1:12pm UTC](https://forum.kirupa.com/t/urlvariables-class/238349/1 "2007-09-10T13:12:09Z")

</div>

I’ve created an external text file that holds some variables that I want to access to change the height of some bars in a chart. I’m trying to use the URLVariables class to access the variables but it doesn’t seem to be working. Here’s my code so far:

```auto

var loader:URLLoader = new URLLoader(new URLRequest("values.txt"));
var variables:URLVariables = new URLVariables(loader.data);
trace(variables);

```

Here’s the setup in the text file:

ma=25&ct=48&vt=99&nh=37&ri=58

The output panel doesn’t display any variables when I test the movie. Any ideas?
