I achieved to Load the variables correctly, but I can only view them with "traces".
Actionscript Code:
varReceiver = new LoadVars();
// load the variables from the text file
varReceiver.load("Passwords2.txt");
// trigger something - when the variables finish loading
varReceiver.onLoad = function(){
//the variables have finished loading
//do something...
trace(this.myPassword); // you use the this keyword to call the variables stored in the object varReceiver
trace(this.myPassword2);
};
How do I import them now into the first frame or something, so I can call them as:
Actionscript Code:
btn.onPress=function(){
if (passW.text == myPassword || passW.text == myPassword2 ){
getURL("nivelseis.htm", "_self");
}
else {
getURL("error.htm", "_self");
}
}