I've just noticed something about my Login button, does this have anything to do with it?
Code:
on (release, keyPress "<Enter>") {
user=user;
for (var ndx = 0; ndx<totalMembers; ++ndx) {
if (user == memberArray[ndx][0]) {
if (pass == memberArray[ndx][1]) {
gotoAndStop("Website", 1);
success = true;
youremail=memberArray[ndx][2];
password=memberArray[ndx][1];
Submit = "Yes";
}
}
if (false == success) {
gotoAndStop(4);
error = "Login details incorrect. Please try again.";
}
}
}
Shouldn't it have "userlevel = memberArray[ndx][3];" in there somewhere to load up the user's level?
If so, I tried that and still get the same result. What have I done wrong?