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

visible property not honored when alpha is set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.0 (Release)
    • Adobe Flex SDK Previous
    • Skinning
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. rectangle in skin has its visibility bound a boolean value
      2. rectangle has an alpha value between zero and one
      3. visibility is always true regardless of boolean value

      Actual Results:
      In example, red border is visible.

      Expected Results:
      In example, red border should not be visible.

      Workaround (if any):
      (a) Avoid using alpha values here.
      Not sure if this is just isolated to s:Rect or if it replicates with other elements.

      (b) Wrap the Rect in a Group:

      <!-- this doesn't work unless we change the alpha setting to 1 -->
      <s:Group alpha="0.8" visible="

      {(borderVisible && !hasFocus)}

      " left="-1" right="-1" top="-1" bottom="-1">
      <s:Rect width="100%" height="100%">
      <s:stroke>
      <s:LinearGradientStroke rotation="90">
      <s:GradientEntry alpha="1" color="#FF0000" ratio="0"/>
      <s:GradientEntry alpha="1" color="#FF0000" ratio="1"/>
      </s:LinearGradientStroke>
      </s:stroke>
      </s:Rect>
      </s:Group>

      I think this may be due to display object sharing (or something)

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: