2 Replies Latest reply on Jun 21, 2010 9:44 AM by Francisc

    Mask Problem

    Francisc Level 3

      Hello!

       

      I am masking an image with a rectangle in a Group container.

      This is the code:

       

      <s:Group id="mask">

         <s:Rect id="rectCard" radiusX="10" radiusY="10" width="247" height="156">

            <s:fill>

               <s:SolidColor color="#AEDFE4"/>

            </s:fill>

            <s:stroke>

               <s:SolidColorStroke color="#ACBFC1" weight="1" caps="round" joints="round"/>

            </s:stroke>

         </s:Rect>

      </s:Group>

      <mx:Image id="imgUserPic" width="247" height="156" maintainAspectRatio="true" scaleContent="true" smoothBitmapContent="true" mask="{mask}"/>

       

       

      The mask works, however I get a warning about data binding won't be able to detect assignments to mask.

      How can I fix this please?