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

can NOT get updated result from bindable method of subclass which extends from AdvancedStyleClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Spark: Formatters
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1.create a subclass of "mx.styles.AdvancedStyleClient". Define a style named "testStyle1" with "inherit=yes".
      2.define a method in this subclass which is binding an event, this method will return value of style "testStyle1".
      3.add this subclass in a MXML Component using Action Script code.
      4.set style value in main mxml using global or application selector.
      5.verify that the return value of method is same as call getStyle method directly.

      Actual Results:
      The return value of bindable method in subclass return null.

      Expected Results:
      The return value of bindable method in subclass should return correct style value.

      Workaround (if any):

      The sample code is attached.
      Subclass extends from "mx.styles.AdvancedStyleClient" named "ADVSimpleStyle".
      The MXML Component named "MyComponent" which include two instances of "ADVSimpleStyle":
      one is defined under "Declarations" tag, it works well.
      The other is defined using Action Script, it will cause this bug.

      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: