[Tweener] "from" values
Zeh Fernando
zehfernando at zeh.com.br
Thu May 1 09:45:27 PDT 2008
Very nice, thanks for the long post.
When I need starting values, I usually do this
Tweener.addTween(mc, {x:0, delay:1});
Tweener.addTween(mc, {x:1, delay:1, time:1});
Tweenings with no time are immediate assignments. This breaks down the
thing in two lines, which may not be ideal. But that's what allows me to
start from a value, with a delay if needed be, and simply duplicating
assignments with another tween ("x" might not be the best example, but
for stuff like __Blur_* it makes some sense so it wouldn't require me to
create new instances of another class and assign filters etc).
I'll have a more in depth look at your solution when I get the time
though. Because some of the features will need to change in the future
this may as well be taken into consideration.
Thanks again,
Zeh
Jason Van Pelt wrote:
> Using "from" values is VERY convenient. I've implemented a means of
> passing in from values in my animation class -- which uses Tweener as
> the tweening engine. My explanation of how it works was getting kinda
> long-winded for an email, so I've posted how I've got it working on my
> website.
>
> This is something that comes up every so often that I'd love to see
> implemented in Tweener. If the work I've done so far can help you in any
> way, Zeh, great.
>
> Read here:
> http://www.j-ink.com/blog/2008/05/from-values-in-tweener.html
>
>
> Jason Van Pelt
> Interactive Developer
> 504.210.1232 (p) / 504.581.2731 (f)
> Peter A. Mayer Advertising, Inc.
> www.peteramayer.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
More information about the Tweener
mailing list