Photgallery not loading properly

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

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

thanks! much appreciated

the thing is I am only coming to grips with levels and targets :slight_smile: 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);
}

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

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

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

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

cheers travis,
I understand what you are saying :wink: (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 :wink:

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

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

cheers travis

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… :-\

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

Yep, I was right. You had pathing problems.

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… :wink:

happiness…

but THANKYOU for taking the time to help me