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!

flash game

Status
Not open for further replies.

pmoorey

Technical User
Mar 19, 2007
144
0
0
GB
I have made a small memory game where the player looks at a number of words then they are hidden from view. The player then has to try remember as many as possible. I want to leave a list on the screen to show the words that they have already remembered correctly. Does anyone have any ideas on the best way to do this?

Thanks

Peter
CCNA, Cisco Qualified Specialist
 
Yes the are going to type the words using an input TextField. If I make an array to hold all of the words, how do I then make it display on screen after the array confirms that the input is a match to a word within the array?

Thanks for your help

Peter
CCNA, Cisco Qualified Specialist
 
I am new to flash and I am not quite sure how to do either of those. :(

Thanks again for your help

Peter
CCNA, Cisco Qualified Specialist
 
How are you presenting the words in the first place? Are they in a grid/table? Do the words come from the database? Do you know how to display them before start worrying about showing the correct answers???

Kenneth Kawamoto
 
I have been trying a few things out thanks for the help. If the player types in the wrong word I have some text appear to let them know that it is incorrect using "_visible=true". Is is possible to have this text visible for just a few seconds or for it to be hidden again once the player starts to type in a new word?

Thank you

Peter
CCNA, Cisco Qualified Specialist
 
Yes, and yes. You can use [tt]setTimeout()[/tt] to set the [tt]_visible[/tt] to [tt]false[/tt] on timeout for the first strategy. For the second strategy you can try [tt]onSetFocus[/tt], i.e. when the TextField gains the keyboard focus again set the [tt]_visible[/tt] to [tt]false[/tt].

Kenneth Kawamoto
 
Thank you, much appreciated. Do you know any websites that have good tutorials on the different functions of actionscript?

Thanks

Peter
CCNA, Cisco Qualified Specialist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top