Hey, Can anyone help me? I’m trying to get each of my thumbs to load an individual picture but I can’t seem to get it working. I have this script that has a trace for each thumb but I don’t know how to actually get the thumb images to load individual pictures.
I’ve tried using:
img1.onRelease = function() {
as a way of talking to each of my thumb pictures but it doesn’t work. If anyone can help I would greatly appreciate it.
this.createEmptyMovieClip(“container”, 1);
container._x = 0;
container._y = 0;
function initClips()
{
var imageNumbers:Number = 9;
for (var i=1; i<=imageNumbers; i++)
{
container.attachMovie(“img”, “img”+i, i);
myThumb_mc = container[“img”+i];
myThumb_mc._x = (i-1) * myThumb_mc._width;
myThumb_mc._y = (Stage.height - myThumb_mc._height)/2;
myMCL.loadClip(“img/thumb” + i + “.jpg”, container[“img”+i], i);//load images into clip
// Give each thumb a name property.
// Use this name to load the full size image
myThumb_mc._name = “img” + i;
// Use an onRelease handler on each thumb to call a function
myThumb_mc.onRelease = showFullImage;
}
}
// Use this function to load the full size image
function showFullImage()
{
var full_image = this._name;
trace(full_image);
myMCL.loadClip(“image1.jpg”, imgCon, i);
}
// Place your load movie routine here
}
initClips();