Hi
I want to be able to do something when I click my large image (which is placed inside the mc image). The thumb.onRelease works, and when I click on it, a large image appears. But I want to be able to click on that image too! How can I do that? Here’s my code:
[AS]
function loadThumb() {
for (i=0; i<size; i++) {
var thumb = this.createEmptyMovieClip(“thumbnail”+i, i);
thumb.holder = thumb.createEmptyMovieClip(“holder”, 1);
thumb._x = i50;
thumb.pic = imgFolder+imgArray;
makeThumb(thumb.holder, thumb.pic, i);
thumb.onRelease = function() {
var image = _root.createEmptyMovieClip("image", 1500+i);
image.holder = image.createEmptyMovieClip("holder", 1);
image._x = image._y = 50;
image.holder = image.loadMovie(this.pic);
image.onRelease = function(){
trace("Pressed large image");
};
};
}
}
function makeThumb(th, pic, depth) {
th.loadMovie(pic);
var temp = this.createEmptyMovieClip(“temp”, 999+depth);
temp.onEnterFrame = function() {
if (th._width>0 && th._height>0 && th.getBytesLoaded()==th.getBytesTotal()) {
//layer ‘preloader’
imgLoaded(“add”);
th._width = 50;
th._height = 50;
delete this.onEnterFrame;
}
};
}[/AS] regards, henxon