On Tue, 25 Oct 2005 21:18:00 +0000 (UTC), "brodewald"
[quoted text, click to view] <webforumsuser@macromedia.com> wrote:
>Let me start by saying I don't know much about action scripting and I have been
>learning as I go. I have been working on getting this photo gallery going for a
>week now and just can't find a solution anywhere.
>
> Anyway, I have some thumbnails that I have turned into buttons. These
>thumbnails use the loadmovie command to load an external jpg to an area I have
>predifined with the createEmptyMovieClip command. This is what my code looks
>like:
>
> In my main flash file I have this script:
> this.createEmptyMovieClip("clip", 10);
> with (clip){
> _x=385;
> _y=49;
> }
>
> The code on the buttons looks like this:
> on (release) {
> unloadMovie(clip);
> loadMovie("wedding1.jpg", clip);
> }
>
> This works just fine. My problem occurs when I grab all of the thumbnail
>buttons and turn them into a movie clip. After I do that I place the movie in a
>scrollpane and it looks great. But now when I click on the buttons the jpgs
>load into my scrollpane area.
>
> Is there something that I can change in my code to fix this? Do I need to move
>my scripting to another place? Is there a better way to go about it that is
>totally different?
>
> Any help would be GREATLY appreciated. Thanks!!!!
It sounds like you're targeting the wrong MovieClip. Either that or you're
targeting the wrong _level of your clip object. If you wanted to load the
picture into "clip", I think you could use loadMovie("wedding.jpg",
clip.getNextHighestDepth());
Also, loadMovie replaces any movie that was in a MovieClip instance so I don't