Packagecom.gskinner.motion.plugins
Classpublic class MotionBlurPlugin
ImplementsIGTweenPlugin

Plugin for GTween. Automatically applies a motion blur effect when x & y are tweened. This plugin will create a new blur filter on the target, and remove it based on a saved index when the tween ends. This can potentially cause problems with other filters that create or remove filters.

Note: Because it works on the common x,y properties, and has a reasonably high CPU cost, this plugin is disabled for all tweens by default (ie. its enabled property is set to false). Set pluginData.MotionBlurEnabled to true on the tweens you want to enable it for, or set MotionBlurPlugin.enabled to true to enable it by default for all tweens.

Supports the following pluginData properties:



Public Properties
 PropertyDefined by
  enabled : Boolean = false
[static] Specifies whether this plugin is enabled for all tweens by default.
MotionBlurPlugin
  strength : Number = 0.6
[static] Specifies the strength to use when calculating the blur.
MotionBlurPlugin
Public Methods
 MethodDefined by
  
install():void
[static] Installs this plugin for use with all GTween instances.
MotionBlurPlugin
Property detail
enabledproperty
public static var enabled:Boolean = false

Specifies whether this plugin is enabled for all tweens by default.

strengthproperty 
public static var strength:Number = 0.6

Specifies the strength to use when calculating the blur. A higher value will result in more blurring.

Method detail
install()method
public static function install():void

Installs this plugin for use with all GTween instances.