[AS2.0] How do I take a filter off in A.S.?
by Clint Milner
on
Jul 23, 2008 at 9:31:29 am
I'm using drop-shadows on movie clips to act as roll-over images for a navigation bar. I want to know if there is an easier way to create the OFF state of the movie clip rather than just having an invisible drop shadow. Code Below:
//import filter class
import flash.filters.DropShadowFilter;
//rollover drop shadows
var myShadow:DropShadowFilter = new DropShadowFilter(3,45,0x000000,100,5,5,1,1,false,false,false);
var myShadowOff:DropShadowFilter = new DropShadowFilter(3,45,0x000000,0,5,5,1,1,false,false,false);