# Heavy weights only

**URL:** <https://forum.kirupa.com/t/heavy-weights-only/50461>\
**Category:** Uncategorized\
**Created:** [May 3, 2004, 10:25am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461 "2004-05-03T10:25:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabydog](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gabydog](https://forum.kirupa.com/u/gabydog)\
**Post date:** [May 3, 2004, 10:25am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/1 "2004-05-03T10:25:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 10:20am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/2 "2004-05-04T10:20:31Z")

</div>

What are you talking about? I just explained where the code was! its in the mx quiz template. Loook at the global functions.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 10:22am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/3 "2004-05-04T10:22:59Z")

</div>

Use relative addressing: [http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.htm](http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 10:32am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/4 "2004-05-04T10:32:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 10:35am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/5 "2004-05-04T10:35:22Z")

</div>

Do as the tute says. Create a \_global variable in the movie that you load, and replace all the references to the \_root.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 10:56am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/6 "2004-05-04T10:56:29Z")

</div>

Sorry you will have to forgive me…

do I replace \_root with myAppMain everywhere \_root is used?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 11:00am UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/7 "2004-05-04T11:00:50Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 4, 2004, 12:58pm UTC](https://forum.kirupa.com/t/heavy-weights-only/50461/8 "2004-05-04T12:58:46Z")

</div>

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);
