Hi, this is infuriating me.

I have the below function which works with

Code:
function loadText(){
	textImport = new LoadVars();
	textImport.onLoad = onText;
	textImport.load("content.txt");
		function onText() {
		textBox.htmlText = textImport.aboutUs;
		}
}
But when i set a variable like below it doesnt work. The text box comes back as "undefined". Ultimately i want to pass through some arguments through the function, but i just cant work out why its not passing through this variable. Iv tryed single quotes, double quotes and no luck!

Code:
function loadText(){
	 var jgm = aboutUs;
	textImport = new LoadVars();
	textImport.onLoad = onText;
	textImport.load("content.txt");
		function onText() {
		textBox.htmlText = textImport.jgm;
		}
}
Thanks for your time and any help greatly appreciated.