Return to Snippet

Revision: 6447
at May 22, 2008 04:00 by manec


Initial Code
_root.tweenBlur = function(my_mc, fromBlur, toBlur, duration, afterFunc){
	var blur:BlurFilter = new BlurFilter(fromBlur, fromBlur, 3);
	my_mc.filters = new Array(blur);
	blurTween = new Tween(blur, "blurX", _root.easeType, blur.blurX, toBlur, duration, true);
	blurTween.onMotionChanged = function() {
		blur.blurY = blur.blurX;
		my_mc.filters = new Array(blur);
	}
	if(afterFunc) blurTween.onMotionFinished = afterFunc; // This will run a function when the blur is complete
}

Initial URL

                                

Initial Description

                                

Initial Title
Flash blur action

Initial Tags
flash

Initial Language
ActionScript