# Animating an arc in AS3

**URL:** https://forum.kirupa.com/t/animating-an-arc-in-as3/258942
**Category:** Uncategorized
**Created:** [April 29, 2008, 6:50pm UTC](https://forum.kirupa.com/t/animating-an-arc-in-as3/258942 "2008-04-29T18:50:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mammy](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mammy](https://forum.kirupa.com/u/mammy)
#### Post date: [April 29, 2008, 6:50pm UTC](https://forum.kirupa.com/t/animating-an-arc-in-as3/258942/1 "2008-04-29T18:50:06Z")

</div>

hello,  
i need to animate a sprite in an arc motion using dynamic start and end positions at runtime. hopefully with an easing function at the end of the path. since i’m not animating in a straight line i don’t think i can use Tween since that class doesn’t seem to support anything but a straight path. nothing’s in the timeline. actionscript only.

any advice as to the best way to do this? is the Animator class using XML the best way? can i use the BezierSegment class? can i create a custom easing function for Tween and get an arc path that way?

the tough thing about using an XML doc is that i have to calculate each keyframe at runtime since i don’t know the start/end points at compile time. that’s an option but i’m wondering if there’s a simpler way.

any advice appreciated.

thx  
michael
