# AS3 animation w/ 2 control points (IK?)

**URL:** <https://forum.kirupa.com/t/as3-animation-w-2-control-points-ik/276558>\
**Category:** flash\
**Created:** [November 30, 2008, 9:59pm UTC](https://forum.kirupa.com/t/as3-animation-w-2-control-points-ik/276558 "2008-11-30T21:59:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobcahill](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bobcahill](https://forum.kirupa.com/u/bobcahill)\
**Post date:** [November 30, 2008, 9:59pm UTC](https://forum.kirupa.com/t/as3-animation-w-2-control-points-ik/276558/1 "2008-11-30T21:59:48Z")

</div>

I am working on a AS3 animation that is of a piston. This piston is connected to a up and down y motion and at the bottom does a circular motion around a cog like stucture. So the sprite essentially needs to animate on the y axis and I can do that fine. The base of the sprite needs to rotate around an axis, which I can do as well. But I can’t do both. It becomes almost an invers kinimatics setup. Any resources for that. You can see an example of the animation I have found as a reference here: [http://en.wikipedia.org/wiki/Four-stroke\_cycle](http://en.wikipedia.org/wiki/Four-stroke_cycle) there is a gif animation on the page. Any resources or anyone that wants to help me concept this out?

Thanks
