Johannes, I didn't think in the possibility to script the movement this way. Even though I want to have in AS3, so I can create paths and animations at run time, this could be a potential solution, once I understand how to create the motion XML dynamically.
Thanks. I will look more into this too. Gilbert --- In [email protected], "Johannes Nel" <[EMAIL PROTECTED]> wrote: > > i fair while ago i created an animation in flash, exported it to xml (its a > command in flash) import the correct action script classes and used it in > flex. i cannot recall if i had t make changes. > http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/motionXSD.html > > i am certain other people have done the same, so a google might help. > > On Tue, Nov 25, 2008 at 6:02 PM, gilbert_mizrahi <[EMAIL PROTECTED]> wrote: > > > Tim, That could help. I have to see how I can extend that > > functionality for more complex paths, but this seems to be a good start. > > > > Sefi, I am familiar with some of the tween engines. However, I believe > > the create tweens from point x1,y1 to x2,y2. Hence, I need to break > > the path in multiple line segments to use them. That is a possibility, > > but I would need then to look for a way to fit a function to a path. > > > > Gilbert > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Sefi > > Ninio" <sefi.ninio@> wrote: > > > > > > 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 <tim.geiges@> 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><flexcoders% > > 40yahoogroups.com>, > > > > "gilbert_mizrahi" <mizrahi@> 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > j:pn > \\no comment >

