for(var i:int=0;i<aGalleryContentThumbURL.length;i++) {
trace("running drawThumbPane() loop. i is: " + i);
// New instance of mcThumbnail
var temp:mcThumbnail = new mcThumbnail();
// Add instance of mcThumbnail to mcThumbPane
mcThumbPane.addChild(temp);
// Move the thumbnail on y axis according, give it an instance name and add an event listener for onclick function
nThumbPos = nThumbPos + 52;
temp.y = nThumbPos;
temp.addEventListener(MouseEvent.CLICK, thumbClick);
// When finished drawing the thumbnails to scene, run thumbnail image loader function
if(i == aGalleryContentThumbURL.length - 1) {
loadThumbs();
}
}