accessing/changing variable across frames
hey there
i just started using flash, following tutorials and such. however some of them still use actionscript 2, and so i'm having trouble finding help on basic input text programming.
here's the idea:
its a simple adding "game" where 2 numbers are randomly generated and you have to input what you think the answer is (userAnswer). then it adds the two numbers it just generated to produce correctAnswer, and checks it against userAnswer. when you hit the check answer button, it moves the the score dialog frame and says whether its correct or not.
but im having 2 problems i think - 1 - i can't get the input textfield to assign the typed-in value to userAnswer (I'm trying userAnswer = inputAnswer.text; ) and - 2 - the second frame that has the score and "Correct!" / "Incorrect!" dialog can't seem to access any variables from the first frame.
i've tried using two layers and keeping the variables on the second layer that spans both frames, but then the functions in the frames that you actually see can't change the variable to update it with the user's input.
i hope this makes sense and i can update the problem file if its needed. i'm just using this as a way to learn flash so it doesnt have to be elaborate.
thanks!
