Twease 1.1 Now Available
Whew, Twease 1.1 is hot off the desktop of yours truly. Been working on this one off and on for a few weeks, and it’s a nice little upgrade.
We’ve got new Array tweening features, Penner Easing Equations are now included, some bug fixes and optimizations, and a new beta Extend class. This Extend class is still an infant, and only really provides a getTweens function for now. We’re also under 200 lines of code for the core Twease class now, and still only 2k, even with new features!
Expect color and bezier in 1.2 as well as polishing off the Extend class and squashing any bugs that come up in this release. 1.3 I’m thinking will be the filter tweening release. After that, it’s pretty much done.
I know I know, AS3 AS3. I haven’t even touched it yet, I’ve been a bit busy ya know?
September 12th, 2007 at 6:54 pm
Cool stuff Andrew, good to see you’re still releasing it
September 13th, 2007 at 5:40 pm
Thanks, I try to put in what I can here and there when I’m not so busy.
September 30th, 2007 at 6:44 pm
Hey, Im liking you thinking for this class. Its nice to see some restraint, and not bogging it sown too much.
I recently needed a tweening class, and stumbled upon Fuze. It is great, but all I am using it for is to fade one MovieClip out while another MovieClip fades in. And using Fuze for this one task is just overkill. I noticed my compile time double after I added it too.
This is why I want to switch it over to Twease.
I did a few test runs with Twease but am not too sure what im doing yet. Do you have any example files, so I could pull them apart and see how Twease works?
September 30th, 2007 at 7:13 pm
Yeah, sure do! This is the messy fla I use to test Twease with. There’s a lot of stuff going on there, so you may want to comment a lot of it out. Sorry I don’t have the time make it all nice and perfect, but I hope it helps!
Twease Test Fla 1.1
September 30th, 2007 at 10:12 pm
Andrew this is truly great work!
I will definitely be able to find a use for this in interactive banners.
Is it possible to animate filters with this beast?
September 30th, 2007 at 11:03 pm
Of course it can! It takes a bit more, but worth it to save the extra 5k from other packages. Just create the filter object like normal, with whatever starting values you want. Then apply a tween to that filter object for whichever properties you want, then run an upfunc applying it to the mc. Easier shown:
import flash.filters.BlurFilter;
var filter:BlurFilter = new BlurFilter(0, 0, 3);
Twease.tween({target:filter, blurX:8, blurY:8, time:3, ease:’easeOutElastic’, upfunc:function(){my_mc.filters = [filter]}});
Pretty simple, just replace my_mc with your real target movieclip, and interchange that with whatever filter and props you want. If you’re going to use multiple filters, then have that array in there all the filter objects. If you’re going to tween multiple filters at the exact same time, you can save a bit by only running one upfunc. That shouldn’t be an issue though unless you really notice a hit.
With this latest one, you can tween anything: object properties, items in an array, and even entire arrays, which just about covers everything.
October 1st, 2007 at 2:20 am
Whoa! I can hardly believe how something so little can do so much.
November 14th, 2007 at 7:25 am
It’s be great if you set up a forum for this so people could ask questions, see previous answers etc…
December 10th, 2007 at 9:25 am
Any idea if tweening filters automatically get stacked?
I’m getting some strange results when trying to blur a bunch of thumbnails.
Each is it’s own instance of a movieclip, with a class. I’ve tried it a variety of ways but always seems to play out in sequence. I’m already tweening their transparency with no problem so I’m quite confused.
I’ve tried using TweenLite for just the thumbnails and that works fine, but I’m using Twease throughout the project, rather than switching between two.
Any ideas why I might be seeing this behaviour?
December 11th, 2007 at 12:07 pm
Yes, every tween is automatically stacked. You can try disabling it to see if it helps.
February 6th, 2008 at 11:37 am
This tiny little thing is just perfect! Great work Andrew - simple and quick to get used to as well! Just as everyone else, I’m eagerly awaiting an AS3 port! Hope you find the time! I have been using TweenLite for AS3 size critical projects, but I find myself missing your intuitive sequencing solution.