I have two arrays of strings
containing usernames and passwords for login,
I need to do a function which will compare the positions of certain string from one arrayCode:var uN:Array; var pW:Array; uN = ["fla","fli","flu"]; pW = ["adv","advi","advu"];
with position of string from another.And get something like
So "fla" is match with "adv".Code:if(username.text == uN[0] && password.text == pW[0]){ logIn(); }
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




Reply With Quote