We help IT Professionals succeed at work.

Username/password input goes to new URL

Jonathan Greenberg
on
After inputting the correct username & password, the following ActionScript sends the user to frame 2 ("Code Snippet" line 7).  How can I modify it such that instead, upon user input of the correct username and password, the browser goes to a specific new URL in a new window?
stop();
var user_input = ""
var pass_input = ""
login_button.onRelease = function() {
	if (user_input == "username"
		&& pass_input == "password") {
		gotoAndStop(2);
	}
	else{
		gotoAndStop(3);
	}
}

Open in new window

Comment
Watch Question

Commented:
changed line 7, fill in the domain name of choice
stop();
var user_input = ""
var pass_input = ""
login_button.onRelease = function() {
        if (user_input == "username"
                && pass_input == "password") {
		getURL("http://www.yourdomain.com" , "_blank");
        }
        else{
                gotoAndStop(3);
        }
}

Open in new window

Author

Commented:
Excellent, thank you!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.