# Determining the middle of a curved line?

**URL:** https://forum.kirupa.com/t/determining-the-middle-of-a-curved-line/192209
**Category:** flash
**Created:** [June 27, 2006, 1:33am UTC](https://forum.kirupa.com/t/determining-the-middle-of-a-curved-line/192209 "2006-06-27T01:33:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jragon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jragon/32/2524_2.png) [@jragon](https://forum.kirupa.com/u/jragon)
#### Post date: [June 27, 2006, 1:33am UTC](https://forum.kirupa.com/t/determining-the-middle-of-a-curved-line/192209/1 "2006-06-27T01:33:32Z")

</div>

Hello,

I want to draw a race course with a single line and be able to place movieclips on it to represent cars. Is there a way to take a line and figure out its total length so you can determine where its midpoint is? I want to be able to pull from a data source and say "car A should be 18% of the way through the course, and car B should be 32% of the way to the end.

Any help would be lovely.

Thanks,  
Jon
