# Moving a MovieClip along a Motion Path in AS3

**URL:** <https://forum.kirupa.com/t/moving-a-movieclip-along-a-motion-path-in-as3/318563>\
**Category:** flash\
**Created:** [January 24, 2011, 6:18am UTC](https://forum.kirupa.com/t/moving-a-movieclip-along-a-motion-path-in-as3/318563 "2011-01-24T06:18:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JiaLiLabyrinth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@JiaLiLabyrinth](https://forum.kirupa.com/u/JiaLiLabyrinth)\
**Post date:** [January 24, 2011, 6:18am UTC](https://forum.kirupa.com/t/moving-a-movieclip-along-a-motion-path-in-as3/318563/1 "2011-01-24T06:18:25Z")

</div>

I need to have a MovieClip/Sprite move along a path (which will likely be a Shape object) which is drawn dynamically and is going to be segments of straight-lines that bounces off the walls/edges of the stage.

I now that Flash CS4 itself allows tween animation along a path, but I haven’t been able to find an example of doing similar things in code. Most of the examples I see just deal with the x/y values directly. Is there no way to animate a MovieClip along an existing path object?
