How can I assign values to the buttons in AS3?
Hi everyone,
I am using Adobe Flash CS6 ActionScript3. I am building some kind of a game and I need to assign values to some buttons. There are buttons that are wrong answers and right ones. At the end scene player needs to see how many wrong answers did he get and also how many correct ones, also I have math formula that should be applied to calculate final score.
How the math is going?
Correct answer=r
Incorrect answer=w
Tatal= w+r=x
Every answer weight=100/x=y
Y*incorrect=Q
Final grad=Q-100
Math for this screen(example):
R = 10
W = 10
10 + 10 = 20
100/20 = 5
3* 5 = 15
100-15 = 85
Thanks in advance!
