Gilbert, If you do end up doing it with curves like in the top-most link, the maintainers of your favourite tween engine would probably love to see it as a patch ;-)
-Josh On Wed, Nov 26, 2008 at 6:31 AM, gilbert_mizrahi <[EMAIL PROTECTED]> wrote: > 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 > > > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk

