DropShadowFilterPlugin

[AS3/AS2] Tweens a DropShadowFilter. The following properties are available (you only need to define the ones you want to tween):

  • distance : Number [0]
  • angle : Number [45]
  • color : uint [0x000000]
  • alpha :Number [0]
  • blurX : Number [0]
  • blurY : Number [0]
  • strength : Number [1]
  • quality : uint [2]
  • inner : Boolean [false]
  • knockout : Boolean [false]
  • hideObject : Boolean [false]
  • index : uint
  • addFilter : Boolean [false]
  • remove : Boolean [false]

Set remove to true if you want the filter to be removed when the tween completes.

Usage

import com.greensock.TweenLite; 
import com.greensock.plugins.TweenPlugin;
import com.greensock.plugins.DropShadowFilterPlugin; 
TweenPlugin.activate([DropShadowFilterPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
TweenLite.to(mc, 1, {dropShadowFilter:{blurX:5, blurY:5, distance:5, alpha:0.6}}); 

Get GSAP

Version: 1.20.3 updated 2017-10-02

Core

    Extras

      Plugins

        By using GreenSock code, you agree to the terms of use.

        Help support GreenSock by becoming a member

        Join Club GreenSock