Password protection

if someone would look, Im just trying to put a “password” protection on a part of a site. I created a button, and attached that button with a script:

on (release) { if (_root.password.value eq tommygun) { getURL(“secure.html”); } }

I want when they input the correct password, that they will be directed to the site. (there is more, but I just need to figure this out). any help would be most appreciated…and if someone has a much better way to do this…please tell…:smiley:

This should solve your problem.

if(textField.text == correctPass){
Show status.text = “Password confirmed”;
//or you can use this
Show status.text = “Error, try again!”;
Hope this helps.


Password Tutorial