GlowFilterPlugin

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

  • color : uint [0x000000]
  • alpha :Number [0]
  • blurX : Number [0]
  • blurY : Number [0]
  • strength : Number [1]
  • quality : uint [2]
  • inner : Boolean [false]
  • knockout : 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.GlowFilterPlugin; 
TweenPlugin.activate([GlowFilterPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
TweenLite.to(mc, 1, {glowFilter:{color:0x00FF00, blurX:10, blurY:10, strength:1, alpha:1}});

Get GSAP

Version: 1.20.4 updated 2018-02-15

Core

    Extras

      Plugins

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

        For an all-access pass to premium content

        Join Club GreenSock