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:
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).
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.
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…