[SIZE=3][COLOR=#000000][FONT=Calibri]Ok, I am new to Flash and I understand that this project I’m working on is probably a little too ambitious for me, but I’m going to try it anyway… Here’s my problem: I’m trying to create a math game where the user gets two random numbers and has to enter the correct value of their sum. I figured out the random number generator (finally) with the action script:[/FONT][/COLOR][/SIZE]
[FONT=Calibri][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT]
[SIZE=3][COLOR=#000000][FONT=Calibri]var r1 = Math.floor(Math.random()*9);[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri]var r2 = Math.floor(Math.random()*9);[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri]r1_txt.text = r1;[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri]r2_txt.text = r2;[/FONT][/COLOR][/SIZE]
[FONT=Calibri][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT]
[SIZE=3][COLOR=#000000][FONT=Calibri]My two dynamic text fields are the variables r1 and r2. My answer box is var a1 (which is the input text field) and I have a button. I need to figure out the script for the answer so that the random number generator will stop and just display the same two random numbers for longer than 5 seconds (that’s another problem I’m having currently) and so when the user enters the correct answer they can press the button and the number generator will produce two new numbers but if their answer is wrong and they press the button it will display a message to try again.[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri]Again, I know this is too ambitious for me, but any help would be greatly appreciated!! Thanks.[/FONT][/COLOR][/SIZE]
[SIZE=3][COLOR=#000000][FONT=Calibri]~emm
oh! and i’m using Flash cs3 and as2[/FONT][/COLOR][/SIZE]