en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en nl en en fr en en kn en fa en en
motionBlur recognizes the following properties:
strength : Number - Determines the strength of the blur. The default is 1. For a more powerful blur, increase the number. Or reduce it to make the effect more subtle.
fastMode : Boolean - Setting fastMode to true will significantly improve rendering performance but it is only appropriate for situations when the target object's contents, size, color, filters, etc. do not need to change during the course of the tween. It works by essentially taking a BitmapData snapshot of the target object at the beginning of the tween and then reuses that throughout the tween, blurring it appropriately. The default value for fastMode is false.
quality : int - The lower the quality, the less CPU-intensive the effect will be. Options are 1, 2, or 3. The default is 2.
padding : int - padding controls the amount of space around the edges of the target object that is included in the BitmapData capture (the default is 10 pixels). If the target object has filters applied to it like a GlowFilter or DropShadowFilter that extend beyond the bounds of the object itself, you might need to increase the padding to accommodate the filters.
containerClass : Class - MotionBlurPlugin must add a container to the target's parent's display list to hold the blurred image during the tween (it gets removed when it's done). By default, a Sprite is used unless it senses the presence of the Flex framework (checking getDefinitionByName("mx.managers.SystemManager")) in which case it will use a UIComponent in order to comply with Flex requirements (if we addChild() a Sprite, Flex throws an error saying it requires a UIComponent). Typically the appropriate container class is automatically selected for you (Sprite or UIComponent) but there are some extremely rare circumstances under which it may be useful to define the class yourself. That's precisely what containerClass is for. Example: containerClass:Sprite
You can optionally set motionBlur to the Boolean value of true in order to use the defaults. (see below for examples)
Also note that due to a bug in Flash, if you apply motionBlur to an object that was masked in the Flash IDE it won't work properly - you must apply the mask via ActionScript instead (and set both the mask's and the masked object's cacheAsBitmap property to true). And another bug in Flash prevents motionBlur from working on objects that have 3D properties applied, like z, rotationY, rotationX, or rotationZ.
import com.greensock.*; import com.greensock.plugins.*; TweenPlugin.activate([MotionBlurPlugin]); //only do this once in your SWF to activate the plugin TweenMax.to(mc, 2, {x:400, y:300, motionBlur:{strength:1.5, fastMode:true, padding:15}}); //or to use the default values, you can simply pass in the Boolean "true" instead: TweenMax.to(mc, 2, {x:400, y:300, motionBlur:true});
MotionBlurPlugin is a Club GreenSock membership benefit. You must have a valid membership to use this class without violating the terms of use. Visit http://www.greensock.com/club/ to sign up or get more details.
Copyright 2008-2013, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for Club GreenSock members, the software agreement that was issued with the membership.
Hide Inherited Public Methods
Show Inherited Public Methods
[static] Activates one or more plugins so that TweenLite and TweenMax recognize the associated special properties.