[Tweener] Tweening filters, latest SVN

Andrew Larking andrew at ingenieursonline.co.uk
Sat Nov 15 06:13:00 PST 2008


Hello.

I'm trying to tween in some filters, and getting nowhere. :)  I have  
the latest SVN AS3 download.

So, some code that fails (I cut out all the standard package, public  
class stuff):

	import caurina.transitions.*;
	import caurina.transitions.properties.FilterShortcuts;

		private var breathIn:BlurFilter = new BlurFilter(15, 15, 2);
		private var breathOut:BlurFilter = new BlurFilter(0, 0, 2);
		

private function cGlow():void {
		Tweener.addTween(mmMaster.mmC, {_filter:breathIn, time:1.5,  
transition:"easeInOutQuad"});
		Tweener.addTween(mmMaster.mmC, {delay:1.5, _filter:breathOut, time: 
1.5, transition:"easeInOutQuad", onComplete:cGlow});
}


Now, the tweens are called from the constructor, and they fail.  If  
however they are called by a MouseEvent, they work fine.

Any ideas?

A.



More information about the Tweener mailing list