Var troubles

hey guys,

well I have a frame that has a variable named language and it’s value will depend on the button clicked.


var language:String;

enterBtn.onRelease = function() {
    language = "eng";
    gotoAndPlay(14);
}

now on frame 23 I have


stop();

_root.container.unloadMovie("swf/splash.swf");

if (language == fr) {    
    trace("selected language is french");
    _root.container.loadMovie("swf/aboutFr.swf");
}
else if (language == eng) {
    trace("selected language is english");
    _root.container.loadMovie("swf/aboutEng.swf");
    
}    
trace(language);

my problem is that no matter what the language is it won’t go in any of the if statements, nothing gets traced except the last trace which tells me what language has been selected and that works perfectly.

I can’t seem to find the problem, can someone please help me out