On Nov 26, 2007 2:29 PM, Daniel Freiman <[EMAIL PROTECTED]> wrote:

> This is by design.  Flex clipping is expensive (at least relative to not
> clipping), so Flex Containers don't clip unless measurement says they
> should.  Drawing isn't included in measurement.  You can use
> mx_internal::forceClipping but then you're using mx_internal.

Thanks for the response, Dan.  That makes a lot of sense, but it would
be great if the AS3doc for "clipContent" went into that detail.  I'll
check the bug database to see if it's already been logged and if not,
log it as a docs enhancement.

For anyone else who may run into this problem, I was able to use a
workaround following an approach something like this example:

<Script>
  private function handleResize(event:ResizeEvent):void
  {
    drawingLayerMask.graphics.clear();
    drawingLayerMask.graphics.drawRect(0, 0, workspace.width, workspace.height);
  }
</Script>

<Canvas id="workspace" resize="handleResize(event)">
  <UIComponent id="drawingLayer" mask="{drawingLayerMask}"/>
  <UIComponent id="drawingLayerMask"/>
</Canvas>

Regards,

Erik

Reply via email to