# °°° loading game in other movie °°°

**URL:** <https://forum.kirupa.com/t/loading-game-in-other-movie/61904>\
**Category:** flash\
**Created:** [August 23, 2004, 7:56am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904 "2004-08-23T07:56:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lampe](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lampe](https://forum.kirupa.com/u/lampe)\
**Post date:** [August 23, 2004, 7:56am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904/1 "2004-08-23T07:56:14Z")

</div>

hey there!

I made a memory-game whereby you should find the two identical pictures. (click the card and they turn, when not identical they turn again, when identical, they dissappear). The games works perfect.  
But here’s the problem: when i load this game (movie is called: memory2.swf) into my mains swf (in the mc called: inhoud), it only shows the backgroundcolor of my memory2.swf. Not the tweenings and the pictures (that are loaded with XML).

this is the script on my mainframe of my main movie:

```auto
_root.inhoud.loadMovie("memory2.swf");

```

how can I solve this?

thanks!

---

<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:** [August 23, 2004, 9:04am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904/2 "2004-08-23T09:04:05Z")

</div>

When an SWF is loaded into another movie, it’s background is removed. So if you want a background, manually make a rectangle as big as the stage and give it the color you want.

I’m pretty sure the reason for the whole thing stopping to work is that you use \_root in the external swf. When on it’s own, \_root will target the main timeline of the external swf, but when loaded into the main movie \_root will target the main timeline of the main movie, no longer of the external swf. Therefore, make sure to use relative paths in your external swf (\_parent, this) instead of absolute paths (\_root).

By the way, waar ergens in België woont ge ? 🙂

---

<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:** [August 23, 2004, 9:10am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904/3 "2004-08-23T09:10:12Z")

</div>

the background-thing works perfectly.

\_parent: doesn’t work (i can’t see the background-image)  
this: doesn’t work (i can see the bg-image, but that’s it)

hmm…

here’s the file: [zip](http://www.nookyalur.com/game.zip)

nookyalur  
’momenteel nog in gent (bij gasmeterloane…) volgende maand in ieper 😛 ’

---

<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:** [August 23, 2004, 9:46am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904/4 "2004-08-23T09:46:55Z")

</div>

I meant that relative paths use this and/or parent, and that absolute paths use \_root, not that this or \_parent will work, just like that. And I meant in the external swf, not in the main movie.

[http://users.pandora.be/voetsjoeba/game.zip](http://users.pandora.be/voetsjoeba/game.zip)

---

<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:** [August 23, 2004, 11:09am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904/5 "2004-08-23T11:09:42Z")

</div>

huh? that’s strange! I can open your Zipfile, but I can’t copy/open the fla-files. There is a damage in it…

nookyalur

---

<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:** [August 24, 2004, 7:48am UTC](https://forum.kirupa.com/t/loading-game-in-other-movie/61904/6 "2004-08-24T07:48:02Z")

</div>

ok, i see the external movie in my main movie, but the problem is now that the game doesn’t work anymore…

When i click two pictures, they turn the way it should be. When i click a third picture, the two turned pictures should return to their previous situation… Every clicked picture stays turned…

Do I have to add something in my script???

zipfile is [here](http://www.nookyalur.com/game.zip)

thanks

nookyalur
