Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password protection not workinig

Status
Not open for further replies.

evilfourzero

Programmer
Dec 24, 2005
1
US
Alright im working on making a website in flash, and im making a password protected page, but the password protection isnt working. I enter the correct password, and click the enter button, yet it doesnt do anything...This is the code I have for the button:

---------------------------------------

onClipEvent (mouseUp) {
if (password eq "oreos") {
getURL("ppp.html");
}
}

---------------------------------------

Ans I have the Var for the input box set as password...but its not working..any help is appreciated...

 
It's a little more code, but try this...

onClipEvent (mouseUp) {
if (String(input_txt.text) == String("oreos")) {
getURL("ppp.html");
}
}

where input_txt is the text field. Depending on how you have the clip set up, you may need to throw 1 or more "_parent"'s in front of 'input_txt'.... ie :

_parent.input_txt.text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top