# startDrag(); along a custom path AS3?

**URL:** <https://forum.kirupa.com/t/startdrag-along-a-custom-path-as3/274293>\
**Category:** flash\
**Created:** [October 28, 2008, 4:29am UTC](https://forum.kirupa.com/t/startdrag-along-a-custom-path-as3/274293 "2008-10-28T04:29:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neildlh](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@neildlh](https://forum.kirupa.com/u/neildlh)\
**Post date:** [October 28, 2008, 4:29am UTC](https://forum.kirupa.com/t/startdrag-along-a-custom-path-as3/274293/1 "2008-10-28T04:29:58Z")

</div>

Hi all

I was wondering if anyone can help me. I have recently made the shift from AS2 to AS3.

I am currently working on a job where the client would like a startDrag(); function on a movie clip. I got that already, it was easy enough to pull off.

The problem I am sitting with is I would like the startDrag to only work on a custom path I have specified.

For example it’s a car on a track. I only want the car to orient to the tracks path and nothing else, when dragging it with a mouse. Can anyone help me on this? I would really appreciate the help?
