Hello,
I have recently tried to implementone of flash’s 2003 Quiz templates and found that it does not function fully when loaded onto another swf file!
Basically I have an index swf that loads in this swf. The quiz works fine BUT the feedback results return all zeros! When the quiz is run by itself it returns the correct values but when loaded onto a new level on another swf the above happens!
Someone please tell me that there is a solution to this because I have spent hours setting up my quiz only to find this out.
Any help is appreciated.
Thanks for your time.
G’luck.
What are you talking about? I just explained where the code was! its in the mx quiz template. Loook at the global functions.
Thanks for your input, but if you look at that template what you just said seems a little unclear? Can you be a little more specific with regards to this quiz?
Do as the tute says. Create a _global variable in the movie that you load, and replace all the references to the _root.
Sorry you will have to forgive me…
do I replace _root with myAppMain everywhere _root is used?
have you looked at the quiz template?
There is alot of code… so all i do is put this line on the main timeline of the loaded movie _global.myAppMain = this ?
here is the deal…
_root always refers to the main timeline. You need to change roots to reference your movie clip (in this case your movie) instead of _root.
For example:
_root.gotoAndPlay(2);
Should be
_parent.gotoAndPlay(2);
If the clip is really nested you might have to take it farther back
_parent._parent.gotoAndPlay(2);