I want to create a movie clip that loads different jpegs (one at a time randomly) from a source folder. I've tried using the onClipEvent(enterFrame) but it doesn't seem to work.
Here's the onClipEvent() code;
Is there any other better way of achieving this similar effect? By the way, I would like to insert a timer too. Say... change the picture every 2 secs.
Here's the onClipEvent() code;
Code:
onClipEvent(enterFrame) {
picIndex = Math.round(1+(15*Math.random()));
if(picIndex<10) {
this.thumbBox_mc.loadMovie("Images/Pic 0"+picIndex+".jpg");
} else {
this.thumbBox_mc.loadMovie("Images/Pic "+picIndex+".jpg");
}
}
Is there any other better way of achieving this similar effect? By the way, I would like to insert a timer too. Say... change the picture every 2 secs.