# Restricting movieclip movement along a path

**URL:** https://forum.kirupa.com/t/restricting-movieclip-movement-along-a-path/286490
**Category:** flash
**Created:** [April 16, 2009, 8:36am UTC](https://forum.kirupa.com/t/restricting-movieclip-movement-along-a-path/286490 "2009-04-16T08:36:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)
#### Post date: [April 16, 2009, 8:36am UTC](https://forum.kirupa.com/t/restricting-movieclip-movement-along-a-path/286490/1 "2009-04-16T08:36:18Z")

</div>

Hi,

I know how to do motion guides, but now I also want to control this movieclip with actionscript code, so that I modify the x and y properties, but STILL restrict the position of the movieclip only to that motion guide.

I see that once I modify the x or y properties, the movieclip jumps off the motion guide. Any ideas how to keep that movieclip on the motion guide??
