Loading external thumbs movie

I’m a bit confused about how to load movies (swf) into other movies. I’m working on my first website and I wanna have my image gallery thumbnails come in and out depending on which gallery button I choose. So I made thumbnails of my pics in a movie and I animated them to fade in and out. But when I load this movie into my other movie for the site, the thumbnail movie pops up, stays until I click a picture, then disappears. I can make it load my pics fine. But I don’t know how to stop the thumbs from disappearing after I click any of my thumbs. I think it’s something with my scripting to load the movie, but I don’t fully understand loading movies, loading movies with buttons, etc. Can anyone help? :hangover: :cyclops:

can you post your code please their can be a lot of factors that is causing the problem

The script on the first frame of my gallery page is:

_root.createEmptyMovieClip("twinkle", 0);
_root.twinkle.loadMovie("Thumbs.swf");
_root.twinkle._x = 100.4;
_root.twinkle._y = 105.2;
_root.twinkle._xscale = 100;
_root.twinkle._yscale = 100;

Then when the thumbnails load in, the script on the thumbnails is:

on (press) {

_root.twinkle.loadMovie("14.jpg");
_root.twinkle._x = 150.4;
_root.twinkle._y = 105.2;
_root.twinkle._xscale = 48.6;
_root.twinkle._yscale = 43.2;

}

The pic loads fine, but the menu vanishes.

hello BATMAN,

please next time include your actionscript in the tags [ AS ] [ /AS ] (without the spaces) to show more clearly.

I think your problem is that your are loading the thumbs and the picture into the same movieclip and thus the picture is taking the place of your thumbs in the movieclip “twinkle”.
When you have a movieclip and load into it anything, evereything in the movieclip that was previously their is replaced by the newly loaded items. So the best solution for you is to create another movieclip “twinkle2” so you’ll have one movieclip to load the thumbnail and another to load the picture.

So the edited code will be:

[As]

_root.createEmptyMovieClip(“twinkle1”, 0);
_root.createEmptyMovieClip(“twinkle2”, 1);

_root.twinkle1.loadMovie(“Thumbs.swf”);
_root.twinkle1._x = 100.4;
_root.twinkle1._y = 105.2;
_root.twinkle1._xscale = 100;
_root.twinkle1._yscale = 100;

//Then when the thumbnails load in, the script on the thumbnails is:

on (press) {

_root.twinkle2.loadMovie(“14.jpg”);
_root.twinkle2._x = 150.4;
_root.twinkle2._y = 105.2;
_root.twinkle2._xscale = 48.6;
_root.twinkle2._yscale = 43.2;
}
[/AS]

Thank you so much for your help! It works great now and I am thrilled. I was wondering if it is possible to control that movie clip (ie Make it play from a certain frame) by clicking a button on my main movie? I wanna transition my thumbs out when users click to see a new gallery. Thanks for all your help! :beam: :cool:

Scratch that thought, I figured it out. But what I am now stuck on is trying to load a new gallery (new swf) after the previous has completely finished doing a transition animation. I have my movie transitioning out on frame 29 and it fades till frame 39. Then I want the new gallery to come in. As of now, the second gallery overlaps the transition and is loading at the same time my other gallery is unloading. Tips?

:cyclops:

Hello BATMAN

what i understood is that you are making the movie of the old gallery plays from a certain frame by using the gotoAndPlay function in the new gallery button and then you are loading the new gallery.

something like this:

[AS]

// new gallery button function
on (press) {
twinkle1.gotoAndPlay (“fadeout”);
twinkle1.loadMovie(“newGallery.swf”);
}

[/AS]

i am not sure of what i am saying here but try to put a condition an if statement maybe so that when the movie reachs frame 39 it loads the new gallery.

[AS]

if (twinkle1._currentframe == 39) {
twinkle1.loadMovie(“newGallery.swf”);
}

[/AS]

hope that helps

Thanks a lot adham_a! Your advice really helped me out and I am absolutely thrilled to have my galleries working exactly how I want them to! Have a good one!