Groups | Blog | Home
all groups > flash actionscript > october 2005 >

flash actionscript : Help with photo gallery


*
10/25/2005 4:11:06 PM
On Tue, 25 Oct 2005 21:18:00 +0000 (UTC), "brodewald"
[quoted text, click to view]

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
Jane_ly33 NO[at]SPAM yahoo.com
10/25/2005 8:11:24 PM
Hi,

Just stumbled over a nice Flash slideshow site -
www.flash-slide-show.com The Flash SlideShow Builder lets you create
Flash photo gallery with beyond 200 transition effects. Very esay to
use, you may have a try and see if it will meet you needs.

Hope this helps.
brodewald
10/25/2005 9:18:00 PM
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!!!!
brodewald
10/26/2005 12:00:00 AM
bencallahan
10/26/2005 4:41:18 AM
try changing the createEmptyMov... line to create your clip on the root:

_root.createEmptyMovieClip("clip", 10);
with (_root.clip)
{
...
}

then reference it as _root.clip in the button code...

good luck,
ben callahan
www.designdistrictinc.com
AddThis Social Bookmark Button