Can anyone help me with a password script? (Director 8.5.1).
I need to allow a user to enter a specific password and, if it is correct,
automatically send the user to a new frame.
Create an editable text field (this is found on the toolpallet) and give the cast member a name like "input". Then add a submit button or somehting and put this script on it:
--
on beginsprite me
member("input".text = ""
end
on mouseup me
if member("input".text = "thepassword" then
go frame 2
else
alert "The supplied password is incorrect"
end if
end
--
Hope this helps, and remember that the "editable" box in the text member properties must be checked in order for this to work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.