Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-22853

Setting a mask via an dataObject causes flex to not load the mask

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Adobe Flex SDK Previous
    • Fix Version/s: None
    • Component/s: Data Binding
    • Labels:
      None
    • Environment:
      Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

      Description

      Steps to reproduce:
      1. Create a data object with variables for an image location, mask location, mask width and mask height.
      2. Override the Image class and add properties and handlers for setting this mask on the image (see attachments).
      3. Bind the setters to the data object and set properties of the dataobject via user interaction.

      In the included example there are 2 canvas elements with an extended Image in it. If you bind this MaskedImage class to local variables, rendering of the mask works fine. And the image is displayed as a circle.
      The second MaskedImage has been binded to the DataObject and when the properties are changed the mask is not loaded correctly. And the entire image isn't visible anymore. Removing the mask makes the image visable again.
      With testing we have the suspicion that the mask image is not loaded correctly. As when we read the bitmapdata of the mask and display it isn't drawn by the rendering engine (the mask of the first MaskedImage is rendered correctly and displayed when we read the bitmapdata).

      The compiled example has view source anabled.

      Actual Results:
      The image with the mask set via the data object is not displayed. The image set via directly binding to a local variable does display correctly.

      Expected Results:
      The image with the mask set via the data object should be masked and displayed as a circle.

      Workaround (if any):
      None found.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: