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

    Mask Problem

    Francisc Level 3



      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:SolidColor color="#AEDFE4"/>



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




      <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?