URLVariables Class

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:


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?