Ok first off I’ll explain how the thumbnail works:
It’s basically a button symbol with 3 states with UP, OVER and DOWN which you probably know already. So on each of those I have an effect.
As for the scripting for the button, I applied a script that tells it to play a transition section on the timeline that I’ve given a frame label:
on (release) {
gotoAndPlay("transitionA");
}
When it reaches the end of that “transitionA” section, there is a loadMovie script and a stop applied to the last frame of that section:
stop();
loadMovie ("external.swf", "containerMC");
The loadMovie script loads an external swf into a empty movieclip with an instance of “containerMC” which is located on the same timeline as the thumbnails but on a different layer.
The external movie is the section you see in the window above the window that holds my little thumbnails on my site.
On the external movie, you’ll see that I have more clickable movieclips that shows a preview of my artwork.
Each of these preview movieclips has these actions applied to it:
on (release){
_root.createEmptyMovieClip("emptyMC", 2)
_root.emptyMC._x = Stage.width/5.9;
_root.emptyMC._y = Stage.height/4.8;
_root.emptyMC.loadMovie("artwork.swf")
MovieClip.prototype.enabled = false;
}
This basically creates a movieclip with an instance name of “emptyMC” into level 2 and also loads another external swf called artwork into that emptyMC movieclip. It also places this newly created movieclip on the specified x and y cordinates as well. What this all does is create what appears to be a popup window to display my artwork which is the artwork.swf. The line MovieClip.prototype.enabled = false; is used to disable all those preview movieclips while the popup window is on the stage so that the viewer can’t press on them.
On the popup window (artwork.swf) that was created, I have a closed button which has these actions applied to it:
on (release) {
MovieClip.prototype.enabled = true;
_root.emptyMC.removeMovieClip();
}
What that does is once it’s clicked, it will enable those disabled preview movieclips and remove emptyMC which is the movieclip created by pressing the preview movieclips.
So that is basically how my gallery is set up, nothing fancy. I hope you were able to understand all that. I’m not good with explaining things so feel free to ask questions if you’re still confused. =)