[flexcoders] Inverting a Shape

2007-02-13 Thread Sebastian Mohr

Hi there,

I want to create a mask which prevents a component
from being shown, but the following code is doing the
exact opposite:

var surroundingMask:Shape = new Shape();
surroundingMask.blendMode = BlendMode.INVERT;

surroundingMask.graphics.beginFill(0x00, 0.5);
surroundingMask.graphics.drawRoundRect(x, y, width, height, 0);
surroundingMask.graphics.endFill();

I thought that the BlendMode.INVERT is going to help
but it doesn't.

Any ideas?
masu


[flexcoders] Inverting a Shape

2007-02-13 Thread lemasur
Hi there,

I want to create a mask which prevents a component
from being shown, but the following code is doing the
exact opposite:

var surroundingMask:Shape = new Shape();
surroundingMask.blendMode = BlendMode.INVERT;
   
surroundingMask.graphics.beginFill(0x00, 0.5);
surroundingMask.graphics.drawRoundRect(x, y, width, height, 0);
surroundingMask.graphics.endFill();

I thought that the BlendMode.INVERT is going to help
but it doesn't.

Any ideas?
masu