°°° loading game in other movie °°°

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:

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

how can I solve this?

thanks!

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 ? :slight_smile:

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

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

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

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

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

thanks

nookyalur