Ok, I have scripted everything (all scripting is in the Actions layer) but have one small glitch. It doesn't make any difference what you type in the User ID field as long as the Password field is correct. I need it to be so that both fields must be correct or it fails.
I don't think I have the "if" line coded right as the user = "red" is being ignored. See code below...
stop();
Selection.setFocus("user_id_txt");
login_btn.onRelease = function() {
if (user == "red", pass == "blue") {
getURL("http://www.microsoft.com");
myText.text = "Successful";
} else {
myText1_txt.text = "Login Failed";
gotoAndStop(1);
}
};
reset_btn.onPress = function() {
pass = "";
user = "";
myText1_txt.text = "";
myText.text = "";
gotoAndPlay(1);
};
Also, when I play it on my flash program, the insertion point focus works perfectly, but when I open on the Internet the focus does not flash unless I click the Reset button first.
I have tried calling it using .html and .swf but the focus does not work.
See it in action here:
http://www.networkdriven.com/password.html
BTW, I am using Flash MX 6.000
Rudy