# Drag object along cutom pass

**URL:** <https://forum.kirupa.com/t/drag-object-along-cutom-pass/310101>\
**Category:** flash\
**Created:** [June 1, 2010, 4:43pm UTC](https://forum.kirupa.com/t/drag-object-along-cutom-pass/310101 "2010-06-01T16:43:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![h3d0](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@h3d0](https://forum.kirupa.com/u/h3d0)\
**Post date:** [June 1, 2010, 4:43pm UTC](https://forum.kirupa.com/t/drag-object-along-cutom-pass/310101/1 "2010-06-01T16:43:40Z")

</div>

Greetings.

Please look at this picture:

![](http://forum.kirupa.com/uploads/kirupa/6239/b44e71101487ac92.jpg)

I have a guide (curve, part of circle) and an object. I want this object to be draggable along the curve.

The questions are:

1. Is there any easy way like startDrag() function to solve this?
2. Any other code? (I guess it should be some Math)

I think some relation could be used here. For example, I drag along x, and I get the right y via some sin or cos relation. Or something like that…
