Maybe I'm missing something here but can't you just set the visible
property on the component to false?  Why do you need to create a mask?

--- In flexcoders@yahoogroups.com, "Sebastian Mohr"
<[EMAIL PROTECTED]> wrote:
>
> 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(0x00FFFF, 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
>


Reply via email to