# Change thumbnails position

**URL:** <https://forum.kirupa.com/t/change-thumbnails-position/158943>\
**Category:** flash\
**Created:** [August 12, 2005, 10:32pm UTC](https://forum.kirupa.com/t/change-thumbnails-position/158943 "2005-08-12T22:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecohen](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@ecohen](https://forum.kirupa.com/u/ecohen)\
**Post date:** [August 12, 2005, 10:32pm UTC](https://forum.kirupa.com/t/change-thumbnails-position/158943/1 "2005-08-12T22:32:23Z")

</div>

Hi,  
Im sending you a sample file.  
The problem is that I would like to change the position of my thumbnails.  
I don’t have any clue how to do that.  
I would like to position my thumbnails this way (see the position.gif file)

How to do that

Here’s my code in the fla file:

var thumb\_spacing = 40;  
// load variables object to handle loading of text  
var description\_lv = new LoadVars();  
description\_lv.onData = function(raw\_text){  
description\_txt.text = raw\_text;  
}  
function GeneratePortfolio(portfolio\_xml){  
var portfolioPictures = portfolio\_xml.firstChild.childNodes;  
for (var i = 0; i \< portfolioPictures.length; i++){  
var currentPicture = portfolioPictures\*;

var currentThumb\_mc = menu\_mc.createEmptyMovieClip(“thumbnail\_mc”+i,i);  
currentThumb\_mc.\_x = i \* thumb\_spacing;

currentThumb\_mc.createEmptyMovieClip(“thumb\_container”,0);  
currentThumb\_mc.thumb\_container.loadMovie(currentPicture.attributes.thumb);

currentThumb\_mc.title = currentPicture.attributes.title;  
currentThumb\_mc.image = currentPicture.attributes.image;  
currentThumb\_mc.description = currentPicture.attributes.description;

currentThumb\_mc.onRollOver = currentThumb\_mc.onDragOver = function(){  
info\_txt.text = this.title;  
}  
currentThumb\_mc.onRollOut = currentThumb\_mc.onDragOut = function(){  
info\_txt.text = “”;  
}  
currentThumb\_mc.onRelease = function(){  
image\_mc.loadMovie(this.image);  
description\_lv.load(this.description);  
}  
}  
}  
// xml object for xml content (defines sources for selections)  
var portfolio\_xml = new XML();  
portfolio\_xml.ignoreWhite = true;  
portfolio\_xml.onLoad = function(success){  
if (success) GeneratePortfolio(this);  
else trace(“Error loading XML file”); // no success? trace error (wont be seen on web)  
}  
// load  
portfolio\_xml.load(“portfolio.xml”);

Thanks for your help
