Skip to main content
Participant
August 4, 2014
Question

Scene works fine on own, doesn't work when used with whole movie

  • August 4, 2014
  • 2 replies
  • 161 views

I am building a tutorial and at the end is a small quiz game. I have the quiz game in a separate scene from the tutorial. The quiz keeps track of right and wrong answers and displays the number of correct answers at the end. When I test this scene on it's own, everything works fine. When I test the whole movie, the total is just 0. When I trace the score variable, it just comes up as 0. Why is it that it only works in the individual scene and not the whole movie?

This topic has been closed for replies.

2 replies

robdillon
Participating Frequently
August 5, 2014

If there are no errors then I'm guessing that the variable that holds the score is getting reset to 0 in the main movie somewhere. Try using a trace to look at the value of that variable as the movie runs.

robdillon
Participating Frequently
August 4, 2014

When you test the whole thing in flash do you get any errors? My first guess is that the variable(s) or textfield(s) where you are storing the score information is out of scope. You are probably getting some sort of null reference error.

nlupoAuthor
Participant
August 5, 2014

That is the strange thing. I do not get any errors when running it.