I think _root.section+’/thumb.’+i+’.jpg’ is causing it to not function. I still don’t get it, do you have a folder names ‘_root.section’ and in it are the ‘thumbi.jpg’ files :q:
I’ve got it now. The problem was you can’t assign actions to a MC, that is a JPG. The second the JPG is loaded into MC the onRelease handle won’t work. So i created a new symbol inside it, and had that one take the JPG, while it’s parent took the onRelease actions. Here’s my finished code…
section = "18";
function loadDay() {
linearnotes_18._alpha=linearnotes_19._alpha=0
eval('linearnotes_'+section)._alpha=75
currentX = 595;
currentY = 88;
for (i=1; i<40; i++) {
_root.createEmptyMovieClip('pic'+i, i+10);
with (eval('pic'+i)) {
eval('pic'+i).createEmptyMovieClip('thumb', i+10+100);
with (eval('pic'+i+'.thumb')) {
_x = currentX;
_y = currentY;
_xscale = 100;
_yscale = 100;
if ((_root.section == '18' and i<=32) or (_root.section == '19' and i<=25)) {
loadMovie(_root.section+'/thumb'+i+'.jpg');
}
}
eval('pic'+i).onRelease = function() {
_root.Picture.loadMovie(_root.section+'/'+_name+'.jpg');
_root.shotinfo = eval('_root.'+_root.section+_name);
};
}
if (currentX<670) {
currentX += 32;
} else {
currentX = 595;
currentY += 32;
}
}
}
loadDay();
Kinda hard to figure it out, because I didn’t add my comments yet.
By the way, my images saved like this ‘18/thumb1.jpg’, where 18 was the current section, and 1 was the picture number. Sorry that was kinda confusing. But either way thanks for you help! With out your help I wouldn’t have learned about the myMovieClip.onRelease handler.
Thanks
Creating engaging and entertaining content for designers and developers since 1998.