I'm working with a Sprite that has multiple children. I want to apply a DropShadow filter to the main sprite, but not it's children. Is there a way to exclude filter effects from children?
Here's a simple example:
Code:
class Foo extends Sprite {
public function Foo() {
graphics.lineStyle(10, 0xff0000);
graphics.moveTo(-100, -100);
graphics.lineTo(100, 100);
// draw a second line, forming an 'X'
var childLine:Sprite = new Sprite();
childLine.graphics.lineStyle(10, 0x0000ff);
childLine.graphics.moveTo(100, -100);
childLine.graphics.lineTo(-100, 100);
this.addChild(childLine);
this.filters = [new DropShadowFilter()];
// Is there a way to prevent a shadow from appearing under 'childLine'
// childLine.filters = [] is already empty
}
}
Thanks!