rwmoulton
02-12-2003, 03:41 AM
Here' s an easy one...
Want to create a simple portfolio where I dynamically load in the thumbnails. I want to attach a RollOver event to each to eventually bring up the larger image. Seems simple, the thumbnails get created, but I just can't get the RollOver events to work.
---------------------------
imgCnt = 4;
for (i = 1; i <= imgCnt; i++) {
_root.createEmptyMovieClip('mc'+i,i);
with (_root['mc' + i]) {
_x = i*60;
_y = 350;
loadMovie("thumb_" + i + ".jpg");
}
//Create Click Event
_root['mc' + i].onRollOver = function(){
trace(i); //Just do something for now
}
}
Want to create a simple portfolio where I dynamically load in the thumbnails. I want to attach a RollOver event to each to eventually bring up the larger image. Seems simple, the thumbnails get created, but I just can't get the RollOver events to work.
---------------------------
imgCnt = 4;
for (i = 1; i <= imgCnt; i++) {
_root.createEmptyMovieClip('mc'+i,i);
with (_root['mc' + i]) {
_x = i*60;
_y = 350;
loadMovie("thumb_" + i + ".jpg");
}
//Create Click Event
_root['mc' + i].onRollOver = function(){
trace(i); //Just do something for now
}
}