How to pop filters using cs4 action script

Posted by druva | Flash, as3, utils | Wednesday 23 December 2009 8:01 am

CS4 condenseWhite in textField using action script

This code shows how to apply filters and how to pop filter using action script.


addChild(glowFilter);			   

var glow:GlowFilter = new GlowFilter(0x5C947C, 1, 20, 20);
var dropShadow:DropShadowFilter = new DropShadowFilter();

glowFilter.filters = [glow,dropShadow];

filters = glowFilter.filters;
filters.pop();
glowFilter.filters = filters;