This is probably a pretty simple problem, but i'm stuck. I need to get the profile_id variable in the below code...

Code:
MyVars = new LoadVars ();
MyVars.onLoad = function () {
	//save profile_id to pass to uploader
	_root.profile_id= MyVars.profile_id;
	//save songs for this user
   songsArray = serial.unserialize(this.initSongsPHP);
	len = songsArray.length;
  for(var i=0; i<len; i++){
   songDisplay.text += songsArray[i] + "\n";
  }
  

};
MyVars.load ('php_scripts/flash_interact.php?action=initialize');
To display later in on in the actionscript here, added to the scriptLocation string here:

Code:
var scriptLocation:String = 'php_scripts/flash_interact.php?action=add&profile_id' + _root.profile_id;
the profile_id variable doesn't seem to make it to the URL variable here. Through debugging I know that the profile_id variable gets set in the first chunk of code.