# Urgent help

**URL:** <https://forum.kirupa.com/t/urgent-help/322848>\
**Category:** Uncategorized\
**Created:** [June 5, 2011, 10:26pm UTC](https://forum.kirupa.com/t/urgent-help/322848 "2011-06-05T22:26:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alaa\_3darts](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@alaa\_3darts](https://forum.kirupa.com/u/alaa_3darts)\
**Post date:** [June 5, 2011, 10:26pm UTC](https://forum.kirupa.com/t/urgent-help/322848/1 "2011-06-05T22:26:44Z")

</div>

for those who are got talent in flash AS  
please, how can I make multiple rows of the thumbnails given here and control the number of columns.  
AS:

myPhoto = new XML();  
myPhoto.ignoreWhite = true;  
myPhoto.onLoad = function(success) {  
//portfolioTag = this.firstChild;  
numimages = this.firstChild.childNodes.length;  
spacing = 100;  
yspace = 20;  
var columns=2;  
for (i=0; i\<numimages; i++) {  
images++;  
this.picHolder = this.firstChild.childNodes\*;  
this.thumbHolder = thumbnails.createEmptyMovieClip(“thumbnail”+i, i);  
if (images\>=howManyLong) {  
yspacing++;  
yspacing = Math.acos(30)_yspace/10;  
images = 0;  
}  
this.thumbHolder.\_x = i_spacing;  
this.thumbHolder.\_y = i\*yspacing;  
thumbHolder.\_y = Math.floor(i/columns)\*thumb\_spacing;  
this.thumbLoader = this.thumbHolder.createEmptyMovieClip(“thumbnail\_image”, 0);  
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);  
this.thumbHolder.title = this.picHolder.attributes.title;  
this.thumbHolder.main = this.picHolder.attributes.main;  
this.thumbHolder.onRelease = function() {  
loader.loadMovie(this.main);  
title\_txt.text = this.title;  
};  
}  
};  
myPhoto.load(“xmlphoto.xml”);  
any single data is much appreciated
