MC Tween: it saves the world.™

Home | Using MC Tween | Documentation | AS2 usage notes | Animation Types | Downloads | Examples | Extensions | Author & Disclaimer | Links

.xyBlurTo()

Applies To

MovieClip, TextField

Availability

Flash 8 and above, using AS1 or AS2.

Usage

<MovieClip|TextField>.xyBlurTo([blurX, blurY, quality, seconds, animation type, delay, callback, extra1, extra2]);

Parameters

blurX : Desired horizontal radius of the blur. The bigger this value, the more blurred the object will look. This can be omitted (use undefined) but then the blurY parameter is mandatory. This is equivalent to this filter's blurX property.

blurY : Desired vertical radius of the blur. The bigger this value, the more blurred the object will look. This can be omitted (use undefined) but then the blurY parameter is mandatory. This is equivalent to this filter's blurY property.

quality : A numeric value indicating the quality of this blur, usually from 1 ("Low") to 3 ("High"). It's, roughly, the number of times this filter is applied - the higher the number, the better the quality, but also the higher the time it takes to be applied. If ommited, this value defaults to 2. This value is not tweenable. This is equivalent to this filter's quality property.

All other parameters are standard tween() related. Refer to the .tween() command for reference.

Returns

Nothing.

Description

Shortcut method; applies a Blur filter to an existing object, tweening its properties, with different vertical and horizontal blurring radius.

If the object doesn't have any filter of this type applied, it creates a new filter with default values and then tweens to the new one. If the object already has a filter of this type applied, it will tween the existing filter's properties to match the new one. If the object has two different filters of this same type applied, it will tween the first one.

Some values are not tweenable and will be rewritten on the new filter if they differ from the original value.

Examples

// Adds a kind of a motion blur to a MovieClip, using 20 pixels of horizontal blur,
// 3 pixels of vertical blur, "medium" quality, and in 1 second, with a "easeoutback" animation
<MovieClip>.xyBlurTo(20, 3, 2, 1, "easeoutback");

See Also

blurTo(), xBlurTo(), yBlurTo(), flash.filters.BlurFilter

MC Tween· Zeh Fernando, 2003-2006 · Proudly hosted at DreamHost · Disclaimer