All pastes #544420 Raw Edit

Something

public text v1 · immutable
·published 2007-06-06 12:50 UTC
rendered paste body
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();
		}
	}