Calling the experts! - AS3 & AS2 mix?

Hey folks! Hope you are all well!

Ok, so Im not AS expert, & am struggling. I have a silly wee site for friends, which has an AS3 preloader - which once 100% loads up the main site (working fine). But! When the main site loads, I need a simple login form (which Ive done previously in AS2) but of course now doesnt work. There is nothing valuable in the site, the login is purely to make the site an exclusive perk of another site (if that makes sense!)…lol. Ive tried to find an AS3 tutorial for a simple user name & password idea several times (then “proper” work got in the way) so Im trying again.

Any tutorials out there I haven’t tried? I am limited in AS, normally Im a trial & error sort - but Im stumped! Perhaps the simple AS2 button code I used previously can be tweaked?..(hope hope) ;

on (release, keyPress "<Enter>")
 
 {
 mess = "oops! - please check your caps button & remember only members with usernames & passwords can access the secret stalle!";
 if (username == "" or username == "") {
  mess = "Invalid password!";
 }
 if (password == "" or password == "") {
  mess = "Invalid username!";
 }
 if (username == "me" & password == "mine" 
or username == "guest" & password == "guest"
 
 
 
) {
  mess = "Welcome  "+username;
  gotoAndPlay("mainYard")();
 }
}

Any suggestions & all help most appreciated!

scotia :beer: