Shapes and filters

Hi,

I have some code that builds a shape and adds a shadow filter. If I use a single call to make the shape, like drawRect() or drawRoundRect() all looks fine including the shadow.

However, when I do something like:


shape= new Shape();
shape.graphics.beginFill(0xfffffff, 1); 
shape.drawRect();
shape.drawRoundRect();
shape.drawRoundRect();
etc. etc.
shape.graphics.endFill();

The boundaries of these draw calls do overlap each other. The final shape by itself looks fine. But as soon as I add the shadow filter, parts of the shape get transparent. I belief it has to do with the various draw calls within begin and end fill.

Anyone familiar with this and knows what goes wrong and how to solve this?