Assign Global Variable

Okay me and XML @^$7#@!!

I’ve set up a multi-lingual fla now where you select your language with a button on the first frame and that loads in the equivalent xml file. Now Later in my swf I’m trying to load in another swf with loadMovie but I’d like to assign conditional statements to determine what xml is loaded.

for code thus far I have
//first frame
var myXML:XML = new XML();
myXML.ignoreWhite = true;
loadXMLfunc.onLoad = function(ok:Boolean):Void {

//on buttons
eng_btn.onRelease = function() {
myXML.load(“english.xml”);
_global.myXML = “english” //not sure on this bit
gotoAndPlay(2);

};

//movieclip
if (_global.myXML = “english”) {
loadMovie(“cat.swf”, “level_1”);
}else if (_global.myXML = “french”) {
loadMovie(“chat.swf”, “level_1”);
}

Any advice would be greatly appreciated.

_global.myXML = “english” //not sure on this bit

you’ll have to send a variable or create a variable

so when the MC loads it checks the variable and loads in the respective XML…:stare:

Sorry wasn’t being very clear with my question.
I have the main timeline that changes all the text
//first frame
var myXML:XML = new XML();
myXML.ignoreWhite = true;
loadXMLfunc.onLoad = function(ok:Boolean):Void {

//on buttons
eng_btn.onRelease = function() {
myXML.load(“english.xml”);
gotoAndPlay(2);

fr_btn.onRelease = function() {
myXML.load(“french.xml”);
gotoAndPlay(2);
};

This works fine to this point.
Now I don’t want to load any more xml into my movieclip I just want flash to check what xml file has already been loaded in order assign a conditional statement
ie if “english.xml” is loaded then load “cat.swf”,"holder_mc"
else if “french.xml” is loaded then load “chat.swf”,“holder_mc”

So I’m slowly getting there.

on the first frame main timeline
var babel = “”;

on my buttons I have

eng_btn.onRelease = function() {
myXML.load(“english.xml”);
babel = “english”;
gotoAndPlay(2);

=“french” ect ect

I can see the var changing in the output

Stuck on the conditional statment in my external movieclip
onEnterFrame = function() {
if (_root.babel == “english”){
trace(hello);
}else if (_root.babel == “french”){
trace(bonjour);
}
}

tried many variations of this and only get “undefined”

Pulling my hair out on this one last step to a big project any advice?