# Sorting 10 movie clips

**URL:** <https://forum.kirupa.com/t/sorting-10-movie-clips/197320>\
**Category:** flash\
**Created:** [August 15, 2006, 4:36pm UTC](https://forum.kirupa.com/t/sorting-10-movie-clips/197320 "2006-08-15T16:36:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [August 15, 2006, 4:36pm UTC](https://forum.kirupa.com/t/sorting-10-movie-clips/197320/1 "2006-08-15T16:36:19Z")

</div>

I have on a scaleble SWF, 10 movie clips. The´re are numbered from 1 to 10.

And I have a button named “Sort”.  
When this button is clicked, the movie cips should move in position according to its number.  
So the MC number 1 have to be on \_x= 0 and \_y= 0, the MC number 2 on \_x=100 and \_y=0 and so on.

BUT::::

If the SWF is resized and made smaller, the movie clips should go to a second line if there´s no room from them on the \_y = 0…

So the second line of MCs would be on \_x=0 and \_y=250 and so on.

How this can be made?  
Hope I have been clear enough :beam:
