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

Randomising passwords in a Flash quiz

Status
Not open for further replies.

robertaidy

Technical User
Feb 23, 2007
14
GB
Is it possible to randomise passwords within a the flash programme. Basically I have added a dynamic text field to my results page that shows a password if the test is passed. If possible I would like to randomise the password rather than just having one. If it is possible how would I do it, any help would be gratfully recieved.
 
Kenneth thanks however is there a way i can control these passwords. I need to be able to use the password to enter a new captivate screen, so i need to know what has been produced and how to link them, Thanks
 
You'll need a database and a server side script such as PHP to store passwords and provide look up functionality, unless you want to hard code the list of passwords in the SWF itself - then anyone can decompile it and find what the passwords are!

Kenneth Kawamoto
 
Kenneth thabnks again and now I am going to be a pain in the proverbial and ask how do i hard code and randomise them, Thanks
 
If you want to hard code then you can't actually generate random passwords because if you do you have to store them in somewhere (namely in a database).

May be you can create an Array with say 100 passwords, pick one randomly and give it to the user. When a user type in the password you can check it against the pool of passwords in the Array to see if it exists.

Kenneth Kawamoto
 
Thanks mate I least I wont have to worry about hard coding etc. On another note I dont suppose you know a good Adobe Captivate forum?

Thanks Again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top