PLEASE HELP! Functions working in some spots but not others!

I’m building a quiz, which calls a function that checks whether or not the answer is correct. This function tells Flash that if the answer is correct, go to the frame labeled “Correct.”

The “Correct” frame has some AS on it that tells Flash to increase the score, increase the question number, and then go back to the beginning where the next question and answer choices load from an xml file.

All was working fine and dandy until I decided that I don’t want the movie to jump to another frame if the answer is correct. What I wanted to do was just execute the code on the “correct” frame, without having to jump to that frame. So, I took that code and wrote a function on the same frame as the function that checks the answer. Now instead of saying “if correct, go to “correct” frame.” I just say “execute this function.”

Now, it is checking the answer and it is increasing the score and it does increase the question number. But what it isn’t doing is resetting the question and answer choices. I can’t for the life of me figure out why. It is the same exact code that was on the frame, which worked. Now all of a sudden it doesn’t work? what gives?

I’ve attached my .fla and the .xml file for the quiz questions. Please, any help would be greatly appreciated!

Note: This is my first time doing this, so I got this code from permadi.com quiz tutorial and I’m just trying to rework it to fit my needs and try and learn something in the process.

Thanks for any and all help!