Hi, I am making a quiz in flash and the variables are loaded
externally (through flash vars) that's not the problem as that part
works properly, for each question there are 5 variables (loaded
from the html doc) they consist of a question, three possible
answers and the answer (stored as either 1,2 or 3)
So when someone clicks on a possible answer (three different
buttons) the button executes a code (at bottom ):
the global.q1answeruser is the answer of the user (1,2 or
three corresponding to the buttons which make the variable equal
1,2 or 3 then go to another frame where the above script is
executed) then the frame goes to the correct screen or the
incorrect screen etc. Problem is that any answer I click on it goes
to the correct screen. Checked all the frames and stop(); stuff and
all that. Need help.
by prefix you mean adding the _global. because I thought a
global variable won't work without using _global. anyway I'll try.
When I tried to use double equal signs It took me to the incorrect
frame each time. Plz Help
anytime, hands down, use == to check for equality on an if
statement. Otherwise it gets confused and writes the value of
_global.q1answeruser to q1answer. (then your if statement is also
true, because "1=1" -- make sense?
also, gotoAndPlay("correct") -- make sure you capitalize the
A and P in that statement.