[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Username/password input goes to new URL

Posted on 2008-01-25
2
Medium Priority
?
942 Views
Last Modified: 2012-08-14
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

0
Comment
Question by:Jonathan Greenberg
2 Comments
 
LVL 11

Accepted Solution

by:
Tom Ray earned 2000 total points
ID: 20746428
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

0
 

Author Comment

by:Jonathan Greenberg
ID: 20746547
Excellent, thank you!
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

611 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question