Link to home
Start Free TrialLog in
Avatar of surfjoe
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?
Avatar of Tom Ray
Tom Ray
Flag of United States of America image

Avatar of surfjoe
surfjoe

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();
}
ASKER CERTIFIED SOLUTION
Avatar of Tom Ray
Tom Ray
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial