How can I add users to this ActionScript?

The following ActionScript is a very simple login script for a flash form. How must I alter this script to include additional users (user2/pass2, user3/pass3)?
var user_input = ""
var pass_input = ""
btn_send.onRelease = function() {
	if (user_input == "user1"
		&& pass_input == "pass1") {
		getURL("http://www.mysite.com" , "_blank");
	}
	else{
		gotoAndStop(2);
	}
}

Open in new window

Jonathan GreenbergAsked:
Who is Participating?
 
ZefferConnect With a Mentor Commented:
var user_input = ""
var pass_input = ""
btn_send.onRelease = function() {
      if (user_input == "user1"&& pass_input == "pass1"||user_input == "user2"&& pass_input == "pass2"||user_input == "user3"&& pass_input == "pass3") {
              getURL("http://www.mysite.com" , "_blank");
      }
      else{
            gotoAndStop(2);
      }
}

that's saying if user1  ..or...user2...or..user3

Z
0
 
Jonathan GreenbergAuthor Commented:
Got it, thanks!
0
All Courses

From novice to tech pro — start learning today.