surfjoe
asked on
password protecting access to a flash websit
I am looking for a way of password protecting access to a flash website, can this be done with flash using action script?
ASKER
This dose answer my question but when I try using it I get this error:
**Error** Scene=Scene 1, layer=Password AS, frame=1:Line 3: Statement block must be terminated by '}'
login_btn.onRelease = function() {
**Error** Scene=Scene 1, layer=Password AS, frame=1:Line 13: Syntax error.
Total ActionScript Errors: 2 Reported Errors: 2
Using this AS:
var password ="whatever";
login_btn.onRelease = function() {
if (password_txt.text == password) {
//carry on
gotoAndPlay(2);
} else {
//stop them
stop();
}
**Error** Scene=Scene 1, layer=Password AS, frame=1:Line 3: Statement block must be terminated by '}'
login_btn.onRelease = function() {
**Error** Scene=Scene 1, layer=Password AS, frame=1:Line 13: Syntax error.
Total ActionScript Errors: 2 Reported Errors: 2
Using this AS:
var password ="whatever";
login_btn.onRelease = function() {
if (password_txt.text == password) {
//carry on
gotoAndPlay(2);
} else {
//stop them
stop();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/questions/22474268/password-login.html?sfQueryTermInfo=1+flash+password