Photo Gallery and loading .swf files

I’ve been trying to load a external .swf file, which is a photo gallery. Naturally, everything works before I load the file, but when I load it, the images don’t display. I tried just about everything with _parent.loadMovie, _root.loadMovie, and this.loadMovie. But nothing seems to work. I’m ready to throw this pc out the window due to lack of sleep and frustration! :!:

Check out a sample flash file of what I’m talking about. I would greatly appreciate any help!

It’s because you used “_root” in your external swf. _root always refers to the main timeline but since you were loading in the swf as an external _root becomes the main timeline of the main file. So Flash was looking for items on the main timeline of the main file that were actually located in the external swf. I replaced _root in the external swf with _root.stuff (both on the buttons and on the action layer) and it works fine.

When using external swfs (which is a great way to go) always remember to check your paths and always re-publish your external swf when you make changes. Because of the path issue the external may not work on its own but should work when loaded into the main file.

:hr:

It worked! I figured that that was the problem, I just had no clue how to fix it. I appreciate your help. Now I can sleep! YAH!!!:hugegrin:

:thumb: