Created a login for a site using flash. Once logged in how to do I grant access to just the people allowed in? Like *.doc, *.xls files are will all that will be there with a fancy interface but I can't figure out how to keep some one from just typing in the the web address and the file name to get access.

Any help?

Wade

// creates array for usernames
users = new Array();
users[0] = "1";
users[1] = "2";
users[2] = "morty";
users[3] = "jack";
// creates array for passwords
password = new Array();
password[0] = "bruce";
password[1] = "bruce";
password[2] = "rs3";
password[3] = "dempsey";
l = users.length;
// counts number of times invalid entries submited
x = x;
if (Number(x) == 3) {
gotoAndPlay("invalid", 1);
}
// loop to check array for username and password
do {
if ((user == users[p]) and (pass == password[p])) {
gotoAndPlay(35);
}
p = p+1;
} while (p<Number(l));