tag:blogger.com,1999:blog-20487991.post4132395452368681576..comments2023-05-19T16:04:41.005+01:00Comments on Ernesto Quezada's Blog: Actionscript: Tween vs TweenerErnestohttp://www.blogger.com/profile/16355503526492674107noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-20487991.post-74134146596927254352009-02-26T22:32:00.000+00:002009-02-26T22:32:00.000+00:00Fan boy! :)It's not the most unbiased post I have ...Fan boy! :)<BR/><BR/>It's not the most unbiased post I have ever seen, but Tweener is really good.<BR/><BR/>Personally I believe in just doing it properly the first time, and not being a lazy programmer. It is always best to use intrinsic classes when you can, because of file size, but also for performance.<BR/><BR/>Of course if you have many complicated tweens then it might just be better to go for a 3rd party tweening package instead.Anonymoushttps://www.blogger.com/profile/15931286338275789919noreply@blogger.comtag:blogger.com,1999:blog-20487991.post-31345013267939825072008-07-31T04:30:00.000+01:002008-07-31T04:30:00.000+01:00I ran into the exact same problem to your example,...I ran into the exact same problem to your example, and it took less than a minute for you to convince me to adapt Tweener into my project now Ernesto. Cheers mate.<BR/><BR/>HuyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-20487991.post-26848460808767237852007-07-29T13:35:00.000+01:002007-07-29T13:35:00.000+01:00Hey Nate, thank you, you're doing a great job ;)Ke...Hey Nate, thank you, you're doing a great job ;)<BR/><BR/>Keith, I'm still using AS2 as in the office they think is still to early to use AS3 (broader audience...). So, in AS2 I would use:<BR/><BR/>import flash.filters.BlurFilter;<BR/>import mx.transitions.Tween;<BR/>import mx.transitions.easing.*;<BR/><BR/>function blurIt():Void {<BR/> var blurT:Tween = new Tween(my_mc, "blur", Strong.easeInOut, 0, 15, 1, true);<BR/> blurT.onMotionChanged = function() {<BR/> my_mc.filters = [new BlurFilter(my_mc.blur, null, 1)];<BR/> };<BR/> blurT.onMotionFinished = unBlurIt;<BR/>}<BR/>function unBlurIt():Void {<BR/> var unBlurT:Tween = new Tween(my_mc, "blur", Strong.easeInOut, 15, 0, 1, true);<BR/> unBlurT.onMotionChanged = function() {<BR/> my_mc.filters = [new BlurFilter(my_mc.blur, null, 1)];<BR/> };<BR/>}<BR/>this.onMouseDown = blurIt;<BR/><BR/>as you can see, there are many more lines of code... <BR/>I think if you check <A HREF="http://natejc.com/blog/?cat=8" REL="nofollow">Nate</A> or <A HREF="http://labs.zeh.com.br/blog/?cat=18" REL="nofollow">Zeh</A> blogs you will get a better idea about the Tweener advantages in AS3<BR/><BR/>salut!Ernestohttps://www.blogger.com/profile/16355503526492674107noreply@blogger.comtag:blogger.com,1999:blog-20487991.post-8341097126280158932007-07-27T18:12:00.000+01:002007-07-27T18:12:00.000+01:00y Ernesto, your post came up first on a google sea...y Ernesto, your post came up first on a google search fro me. I am trying to figure out the benefits that Tweener in AS3 provides over the built in Tween class, and really I haven't figured it out yet. Could you show how you WOULD program the xblur if you sued the Tween class?Keith Guerinhttps://www.blogger.com/profile/03014843685011460502noreply@blogger.comtag:blogger.com,1999:blog-20487991.post-79871533705765351032007-07-19T23:28:00.000+01:002007-07-19T23:28:00.000+01:00Thanks for the post Ernesto, great thoughts.Thanks for the post Ernesto, great thoughts.Anonymousnoreply@blogger.com