How to place the movie clips in square shape?

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;
}
}