You can use a tween library ( there are many out there - tweener, tweenlite
etc.).
you can give it a source and origin x,y Points and duration, easing function
etc and it will handle the animation.
it the route is not a straight line, you can break the animation into
sections, listen for the end of one and start the next one.

I don't know about tweenLite, but in tweener it's done in a single line of
code.

HTH
Sefi

On Tue, Nov 25, 2008 at 3:21 AM, tim.geiges <[EMAIL PROTECTED]> wrote:

>   Take a look at, it might have your answer(I hope) :-)
>
> http://keith-hair.net/blog/2008/05/30/interpolation-of-a-point-on-quadratic-curve/#more-4
>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>,
> "gilbert_mizrahi" <[EMAIL PROTECTED]> wrote:
> >
> > I would like to be able to draw a path and then have an object
> > "travel" through that path.
> >
> > I know how to draw a path in AS3. But I need to get some tips on how I
> > can make an object (i.e. car) following that path. Something like the
> > original LineRider.
> >
> > A while ago I saw an example on a blog, which I did not bookmark, and
> > I am unable to locate it again.
> >
> > Thanks,
> > Gilbert
> >
>
>  
>

Reply via email to