[Tweener] pausing tweens...

Zeh Fernando zehfernando at zeh.com.br
Fri May 9 08:00:03 PDT 2008


Unfortunately there's no way to scrub an animation with Tweener. You 
would either need to:

1. Change the Tweener class to create some scrub method, to go to a 
certain "time", by changing the tween start/end/current time to hack it;

2. Do your animation manually, without Tweener, based on the FLV 
position, like Baluta said; you could use the Equations.* functions to 
replicate all easings based on the time


Both are pretty doable and would grant you some good results, but yes, 
would require you doing some more additional work.

Zeh

Rob Coenen wrote:
> Hi, thangs for uour update. Im basically asking the question to see what 
> your guys opinion is. Sometime speople come up with refreshing solutions 
> and approaches one didn't think of himself.
> 
> Your solution is exactly the way I have done it right now -- yet theres 
> a problem here which is that it will only work with perfectly linear 
> transitions. It will not work when ease-in or ease-out is applied... and 
> this is where I'm still stuck.
> 
> Any thoughts on the easing in/out issue when scrubbing through a Tweener 
> animation?
> 
> -Rob
> 
> 
> 
> 
> 2008/5/9 Baluta Cristian <cristi.baluta at gmail.com 
> <mailto:cristi.baluta at gmail.com>>:
> 
>     if you're using flex i'm shure you're pretty advanced.
>     you just start an eventListener for enterFrame, and you calculate
>     the position of your object depending on the time of your movie.
>     when you stop the movie, you stop the listener also. i use an
>     equation from algebra to calculate positions, it's the equation for
>     a stright line: (x2 - x1) / (x - x1) = (y2 - y1) / (y - y1)
>     if you don't know i can explain.
> 
>     On Fri, May 9, 2008 at 1:50 PM, Rob Coenen <coenen.rob at gmail.com
>     <mailto:coenen.rob at gmail.com>> wrote:
> 
>         Do you mean: build your own animation (without Tweener) ? I
>         still will need to script the animation (especially since Im
>         using Flex -- no timelines)
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com


More information about the Tweener mailing list