# How to place the movie clips in square shape?

**URL:** <https://forum.kirupa.com/t/how-to-place-the-movie-clips-in-square-shape/63444>\
**Category:** flash\
**Created:** [September 7, 2004, 1:05am UTC](https://forum.kirupa.com/t/how-to-place-the-movie-clips-in-square-shape/63444 "2004-09-07T01:05:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xavier](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@Xavier](https://forum.kirupa.com/u/Xavier)\
**Post date:** [September 7, 2004, 1:05am UTC](https://forum.kirupa.com/t/how-to-place-the-movie-clips-in-square-shape/63444/1 "2004-09-07T01:05:15Z")

</div>

how do i place the movie clips in a square shape? below is the actionscript of it.

> onClipEvent (load) {  
> initialRotation = 0;

for(i=0;i\<10;i++) {

\_root.attachMovie(“sample”,“sample”+i,i);  
\_root[“sample”+i].\_x = i\*37;  
\_root[“sample”+i].\_y = 100;  
\_root[“sample”+i].\_rotation = initialRotation;  
initialRotation += 15;  
}  
}

onClipEvent (enterFrame) {

for(i=0;i\<10;i+=2) {

\_root[“sample”+i].\_rotation += 10;  
\_root[“sample”+(i+1)].\_rotation -= 10;  
}  
}
