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

Need to get input from user to display their name

Status
Not open for further replies.

Shark76

Programmer
Sep 3, 2002
11
0
0
AU
Can someone please help me as I am a begginer to director and I am building a game and need to ask the player to input their name and then display it on the screen in the next frame.. How do I do this..
 
hei shark76,

k. hope this will be clear.

1. make a button and two textfields (one of them editable)
2. give them unique names in the cast window
3. put the textfield (the editable one, where the user has to enter his name) and the button on the stage on frame one. loop the movie
4. on the button you want to add this behaviour:
on mouseUp me
if member("yourFieldname").text = "" then
alert("Please enter your Name first!")
else
member("yourOutputFieldname").text = member("yourFieldname").text
go to frame 5
end if
end
5. on frame five you the output textfield. loop the movie.

done. if you have problems, i'd have you a small samlpe file (director 8.5).

cheers
adrian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top