lastcount = 10; count = 0;
pictures = new Image[10];
MediaTracker tracker = new MediaTracker(this);
for (int a = 0; a < lastcount; a++) {
pictures[a] = getImage (
getCodeBase(), new Integer(a).toString()+".jpeg");
tracker.addImage(pictures[a], 0);
}
tracker.checkAll(true);