I have two arrays of strings
containing usernames and passwords for login,
var uN:Array;
var pW:Array;
uN = ["fla","fli","flu"];
pW = ["adv","advi","advu"];
I need to do a function which will compare the positions of certain string from one array
with position of string from another.And get something like
if(username.text == uN[0] && password.text == pW[0]){
logIn();
}
So “fla” is match with “adv”.
How can I infact mach other usernames with passwords to allow login, without doing a row of “if”
statements for each string to match appropriate one?
Thanx