# Distributing Movie Clips

**URL:** <https://forum.kirupa.com/t/distributing-movie-clips/250232>\
**Category:** flash\
**Created:** [January 27, 2008, 12:14pm UTC](https://forum.kirupa.com/t/distributing-movie-clips/250232 "2008-01-27T12:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomway](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@randomway](https://forum.kirupa.com/u/randomway)\
**Post date:** [January 27, 2008, 12:14pm UTC](https://forum.kirupa.com/t/distributing-movie-clips/250232/1 "2008-01-27T12:14:53Z")

</div>

This is a very simple problem, but I just can’t seem to be able to solve it. I have images loading into empty movieclips (feeded from xml), inside a container movieclip. The problem I have is that the width of the pictures is not the same and they end up overlaid by each other. How could I evenly distribute the images? Here’s my script:

function contentMain\_fn(k) {  
contentMain.createEmptyMovieClip(“t”+k,contentMain.getNextHighestDepth());  
tlistener = new Object();  
tlistener.onLoadInit = function(target\_mc) {  
target\_mc.\_x = 20 +(target\_mc.\_width+20)\*k;  
};  
image\_mcl = new MovieClipLoader();  
image\_mcl.addListener(tlistener);  
image\_mcl.loadClip(image[k],“contentMain.t”+k);

And here’s the website where I arranged the pictures by hand… I’de be grateful even if I got a pointer, where to search with my question.
