# Photgallery not loading properly

**URL:** <https://forum.kirupa.com/t/photgallery-not-loading-properly/22379>\
**Category:** Uncategorized\
**Created:** [June 3, 2003, 2:30pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379 "2003-06-03T14:30:53Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jain](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jain](https://forum.kirupa.com/u/jain)\
**Post date:** [June 3, 2003, 2:30pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/1 "2003-06-03T14:30:53Z")

</div>

Hi guys,  
well I am pulling my hair out with this one.You guys are my last resort! heres the deal:

I have a main swf (containing only the main nav)

I have several external swf’s I am calling into the main swf using the loadmovie command. I have no problems with that.

BUT I am trying to call in a particular swf that has an image gallery (the dynamic image gallery in the tutorials here), the thing is that it loads okay but only loads the actual jpeg into the empty movieclip in the main.swf and not the graphics surrounding it?

what am I suppose to be doing? at the moment the code is:

on (release) {  
loadMovie(“photo.swf”, contents);  
}

also if I put an underscore before contents (see below) the image gallery will work but its the only thing on screen, everything else gets taken over?

on (release) {  
loadMovie(“photo.swf”, \_contents);  
}

any help very very much appreciated…

cheers  
jain

---

<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:** [June 3, 2003, 2:48pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/2 "2003-06-03T14:48:29Z")

</div>

Well, your problem is that the pathing of all the things \<i\>inside\</i\> the swf you loaded aren’t right. For instance, let’s say that you loaded the swf into \_level1. Alright, good enough, but let’s consider what the call might be from the swf…Say it asks for “\_root.photo”. Well, since you loaded it into \_level1, \_root.photo doesn’t exist. Do you understand where I’m going with this? You’re going to have to make sure that ALL of the calls out of the swf are correct. So…"\_root.photo" would be “\_level1.photo”. If it were me going about it, in the debugger I’d \<b\>list all objects\</b\> (Ctrl+L) and then watch as things try to play out, via the photo gallery or whatever.

Later,  
–Elios

---

<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:** [June 3, 2003, 3:03pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/3 "2003-06-03T15:03:40Z")

</div>

thanks! much appreciated

the thing is I am only coming to grips with levels and targets 🙂 I can get the gallery to work (but reg is way outf )using levels, but it wont work when I use targets???, does that makes sense?

I know I have to put in the X and Y coordinates to position it corre ctly when using levels but I don’t know how to do it? this is code I got working but it is registered all wrong…help…

on (release) {  
loadMovieNum(“gallery.swf”, \_1/contents);  
}

---

<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:** [June 3, 2003, 3:13pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/4 "2003-06-03T15:13:28Z")

</div>

Well, you can use targets instead. I mean, it’s the same thing. I guess I just didn’t mention it. Let’s say you’ve got a movieClip with the \<B\>instance name\</b\> (not the same as the movieClip’s name) of “contents”. This movieClip is on the root and you’ve loaded your “gallery.swf” into it. Something like “\_root.photo” in the gallery would actually be “\_root.contents.photo”. See?

Later,  
–Elios

---

<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:** [June 3, 2003, 3:26pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/5 "2003-06-03T15:26:55Z")

</div>

hey man,

if you load the movie onto another level, you can still use \_root.photo (or whatever) to refer to your movieclips inside your photo gallery swf…you dont have to change anything, usually.

when you load into a seperate level than 0 \_root refers to the root of that level…does that make sense?

if not lemme know, and ill try and reword it.

travis

---

<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:** [June 3, 2003, 3:27pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/6 "2003-06-03T15:27:22Z")

</div>

I have tried that and it still is overriding the main swf?

---

<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:** [June 3, 2003, 3:42pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/7 "2003-06-03T15:42:24Z")

</div>

well, im confused as to what exactly is happening…maybe if you post the fla up here i can look at it.

---

<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:** [June 3, 2003, 3:50pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/8 "2003-06-03T15:50:45Z")

</div>

cheers travis,  
I understand what you are saying 😉 (but maybe I just think I do, cause if I did I probably would have got it to work by now) Maybe I should load the swf onto the backend of my works mirror site and then you can see what I mean, I bet its easy, something stupid. I have been trying so hard to get this to work for two days now and I am sure my boss will be asking me to see it working soon (yikes) It’s just that when I use levels to bring it in it overrides the whole main swf. When I use targets it works fine but the registration is way out…am trying to figure out how to set the x and y coordinates so the reg will be perfect…ahhhhh! the pain…my brain hurts 😉

---

<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:** [June 3, 2003, 3:57pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/9 "2003-06-03T15:57:11Z")

</div>

okay, the registration on your target movie clip needs to be set to the top left. and then your movie needs to be the exact size (for best results) of the target movieclip…unless you just use an empty movieclip for your target

---

<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:** [June 3, 2003, 4:01pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/10 "2003-06-03T16:01:03Z")

</div>

I will post the fla up for you to see in a sec…(just clean it up a lil 😉

cheers travis

---

<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:** [June 3, 2003, 4:28pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/11 "2003-06-03T16:28:17Z")

</div>

heres one of the test fla’s, as you can see it hasn’t been ‘designed’ as yet in this fla-I am getting the thing working first before I put the design elements in place.

also when you see the main nav, only click on the 2nd nav to the left hand side (home and button10) to see what I mean…

I couldnt upload the folder with the images in it, therefore it will be looking for the gallery images…but whats your personal email and I can send you them, they are small…

cheers, and I cross my fingers that you/someone can help me to ge it to work properly…

thanks you… thank you …thank you… :-\

---

<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:** [June 3, 2003, 4:43pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/12 "2003-06-03T16:43:14Z")

</div>

try this…I zipped it but its still too big so here the fla, and only 2 of the 10 images from the gallery…

---

<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:** [June 3, 2003, 7:10pm UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/13 "2003-06-03T19:10:49Z")

</div>

Yep, I was right. You had pathing problems.

---

<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:** [June 4, 2003, 11:17am UTC](https://forum.kirupa.com/t/photgallery-not-loading-properly/22379/14 "2003-06-04T11:17:06Z")

</div>

I uploaded the wrong swf for you to look at! silly me…BUT I figured out the problem and it wasnt pathing it was simply having the same size stage in my parent clip as my child clip… 😉

happiness…

but THANKYOU for taking the time to help me
