# Position MovieClips on a curved Line

**URL:** https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095
**Category:** flash
**Created:** [June 3, 2008, 9:21am UTC](https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095 "2008-06-03T09:21:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![colouredFunk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)
#### Post date: [June 3, 2008, 9:21am UTC](https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095/1 "2008-06-03T09:21:56Z")

</div>

Hey,

I want to be able to position a series of movieClips along a curve of a cicrcle, well part of it. Basically I need a curved wall.

This is where I am at the moment, …not very close.

_root.rot = -30  
for (var i:Number = 1; i \< 6; i++) {  
var block = attachMovie(“block”, "block_" + i, \_root.getNextHighestDepth())  
block.\_y = 30  
block.\_x = (block.\_width+10)\*i  
\_root.rot += 5  
trace(\_root.rot)  
block.\_rotation = \_root.rot  
}

Can anyone point me in the right direction

Cheers

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 3, 2008, 9:26am UTC](https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095/2 "2008-06-03T09:26:28Z")

</div>

I think you may have be a bit more specific

there are papervision walls,

with basic AS you can get them in a curve,

lol, my sig has a link to a carousel which has MCs in curved path

---

<div class="post-metadata">

### Author: ![colouredFunk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)
#### Post date: [June 3, 2008, 9:53am UTC](https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095/3 "2008-06-03T09:53:36Z")

</div>

hey,

if you check out the attached it might become shed some light.

I want to be able to position the mc’s around that circle, dynamically.

But you got it right on the nail about the papervision wall, that’s the end product, but I’m thinking if I get the current example working… I can transfer it easlily over to my papervision project.

Cheers

---

<div class="post-metadata">

### Author: ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)
#### Post date: [June 3, 2008, 12:57pm UTC](https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095/4 "2008-06-03T12:57:12Z")

</div>

The commonly used carousel code is also built upon the same thing… attaching images along a circle…

its done using Math.cos and Math.sin

am attaching a carousel… wherein you will find that code too 🙂  
hope it helps

[http://www.4shared.com/file/49954664/751f9f9e/carousel.html](http://www.4shared.com/file/49954664/751f9f9e/carousel.html)

---

<div class="post-metadata">

### Author: ![colouredFunk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)
#### Post date: [June 11, 2008, 10:34am UTC](https://forum.kirupa.com/t/position-movieclips-on-a-curved-line/262095/5 "2008-06-11T10:34:59Z")

</div>

sorry forgot to say thanks 🙂 ‘carousel’ is the key word hey!

Got it working now, so much appreciated for the links
