Forum Moderators: open
Here is how i set up the filter:
// Makes the filter available to use in the Movie.
import flash.filters.GradientGlowFilter;
// The Arrays (lists) below must all have the same number of entries.
// Lists the colors to use in the Gradient.
var colors:Array = [0xFFFFFF, 0x990000, 0x990000];
// Sets the transparency of each color.
var alphas:Array = [0, 0.4, 0.3, 0.8];
// Set the position of each color.
var ratios:Array = [0, 32, 64, 128, 255];
// Creates a variable with info about the Filter settings.
var myGradientGlowFilter = new GradientGlowFilter (0, 0, colors, alphas, ratios, 30, 25, 1, 2, "full", false);
Then it is applied within a function like this:
movie.filters = [myGradientGlowFilter];
Seems like i could call a filters.clear or something, but it hasn't seemed to work!
Thanks in advance!