# Photo gallery won't show when loaded from main swf

**URL:** https://forum.kirupa.com/t/photo-gallery-wont-show-when-loaded-from-main-swf/125851
**Category:** Uncategorized
**Created:** [October 18, 2004, 12:17pm UTC](https://forum.kirupa.com/t/photo-gallery-wont-show-when-loaded-from-main-swf/125851 "2004-10-18T12:17:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![philler](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@philler](https://forum.kirupa.com/u/philler)
#### Post date: [October 18, 2004, 12:17pm UTC](https://forum.kirupa.com/t/photo-gallery-wont-show-when-loaded-from-main-swf/125851/1 "2004-10-18T12:17:44Z")

</div>

I’ve searched the forum extensively but to no avail unfortunately. I saw a similar topic with a similar problem only concerning text. Well my problem concerns a photo gallery (using the great tutorial [http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm)).  
When I play the swf file on its own, everything works fine. The images show up fine, no problems whatsoever. However when I load the swf file from the main swf movie, the photos don’t show.  
Here’s the file structure I’ve got:

Flash - Main folder containing the main swf (later to be converted to .exe) file.  
images - subfolder in “Flash” containing images.  
data - subfolder in “Flash” containing text etc.  
swf - subfolder in “Flash” containing the seperate swf files.

The bit of code that is supposed to find the images is:  
_this.pathToPics = “…/images/”;_

How come it works fine when I load the swf on its own but it doesn’t when I load it from the movie?

Thanks a bunch :mu:
