Following Lee's dynamic filters tutorial from gotoAndLearn.com, I altered it slightly to make it an outer glow. I want to apply this to a menu, but I am having difficult visualizing the code logic. I tried running it through a For loop, but that would just apply the rollover to the last button in the array. I could probably put the code inside the button and reference the parent or I was thinking about having the button rollovers define a variable which would define which button ( _root["button"+var].filters), but I think flash will get confused.
Here is my code:
import flash. filters.*; //this imports all filters
var gf:GlowFilter = new GlowFilter (0xffffff,0,20,20,3,3,false,false);
button1.filters = [gf]; //creates an array of the filters we have defined.