Hello Actionscript 3 Wizards,

I am looking to make a game in Adobe Animate CC. I have most of the Art assets drawn. I am looking for help with the code to do the following:

An object needs to be called at random from the library. The object ideally has a “Key” that corresponds to either Right or Wrong, True or False. Essentially the picture is a question that can be right or wrong based on if they choose Button A or Button B.

For Example, if they choose Button A, and it’s correct, I would like the score to update 2 points, and for the script to call the next object and start the process again.

Vice Versa, if it’s incorrect, the score is deducted and the process again repeats with a new object and possibility of it being right or wrong.

I apologize for my English, and thank you for any help I can get.



Please see the attached for a visual.



http://prntscr.com/bivdn4