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

Password Script Needed Urgently!! 1

Status
Not open for further replies.

firstbase

Programmer
Jul 5, 2002
4
US
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.

Thanks!!!



 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top