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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password *****'s 1

Status
Not open for further replies.

Butters261285

Programmer
Jan 2, 2006
29
0
0
GB
Hey

Does anyone know how to make a password login display stars? i've tried using th ebuilt in password attribute fromt he lingo library in director but when i use that, because its looking for 'Education" as the text of the input field as the password, it doesnt accept ******** as an answer...

heres the code i placed on the submit button

on mouseUp
if member(460).text = "" then
alert "Please enter a password before clicking submit"
else if member(460).text = "education" then
go to "teacher"
else
alert "The Password you have entered is Incorrect"
go to 52
end if
end

any help is much appreciated cheers

Peter Butler
Tandokuno Design
 
I added a

else if member(460).text = "*********" then
go to "teacher"

to the script and added the password attribute fromt he lingo library.

This kinda works but obviously any advances on this would be great. As if anyone enters any 9 letter word then they get in

Thankyou

Peter Butler
Tandokuno Design
 
If you use "Password Entry" behaviour from the Library correctly it should work. With that you only need to specify the password and what to do if the password is entered is valid/invalid.

Kenneth Kawamoto
 
property pText, pVisibleText

on beginSprite me
pText = ""
pVisibleText =""
end

on keyDown me
if the key = backspace then
delete pText.char[pText.length]
delete pVisibleText.char[pVisibleText.length]
else if the key = return then
put pText
else
put the key after pText
put "*" after pVisibleText
end if

sprite(me.spriteNum).member.text = pVisibleText
end

----------------------
i got this from a book and fount it really useful. Of course u can limit the type of input either be alphabet or alphanumeric of just numeric numbers.
Hope it does help u. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top