As it is now the movie gets no time to load the vars completely before the if(_global.currentPage==undefined) fires.
Even if it did have time you would shortly after notice that the path to mainurl is wrong if this was in an on(press) or somthing
This involves creating an object to hold all of the variables that are in that text file & only doing somthing with them when the onLoad event triggers it.
Any variable loaded can be accessed through _global.languageVars.variableName of course replacing .variableName with whats in the file.
on(press){
if (_global.theLanguage==undefined){
_global.theLanguage = "en.txt";
};
_global.languageVars = new LoadVars();
_global.languageVars.onLoad = function(success){
if(success){
if (_global.currentPage==undefined){
_global.currentPage = this.mainurl; /*since theese actions are inside an event for an object, we can access properties/variables of this object with "this" (this._alpha, this.variableName, ect..)*/
trace (this.mainurl);
trace (_global.currentPage);
}
}else{
trace("failure");
}
}
_global.languageVars.load(_global.theLanguage);
}
- on(press){
- if (_global.theLanguage==undefined){
- _global.theLanguage = "en.txt";
- };
- _global.languageVars = new LoadVars();
- _global.languageVars.onLoad = function(success){
- if(success){
- if (_global.currentPage==undefined){
- _global.currentPage = this.mainurl; /*since theese actions are inside an event for an object, we can access properties/variables of this object with "this" (this._alpha, this.variableName, ect..)*/
- trace (this.mainurl);
- trace (_global.currentPage);
- }
- }else{
- trace("failure");
- }
- }
- _global.languageVars.load(_global.theLanguage);
- }
To explain why th epath would have been wrong before,
If that was inside an on(press) ect... it was loading variables into _level0 if accessed with _level0.mainurl then it would work .... provided the variables have been fully loaded first

Strong with this one, the sudo is.