Trouble accesing data using LoadVars()

Hello all,

I’m having so much trouble using laodVars() even after reading the tutorial on this site and others as well. All i want to do is store some variables in a text file instead of having it hardcoded. I’ve tried variations of using loadVar(). It seems to load the variables but i can’t access them.
The code i have is:

data = new loadVars();
data.load("themes/color.txt")
data.onLoad = function( success ){
     if(success){
 		trace("variables loaded");
		trace(data.color1);
		trace(data.color2);
		trace(data.color3);
      } else {
        trace("Error loading page");
     } 

And in color.txt are different colors like:

color1=0x99FF99&color2=0xFF99FF&color3=0xAA99FF

So the hex colors are stored in the txt file and i would like to load them into variables so i can use them in flash. The trace in the above code is undefined…

Any ideas? thanks in advance!