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

subclass which extends from mx.styles.AdvancedStyleClient can NOT inherit style value in module when using application selector.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • 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 which extends from mx.styles.AdvancedStyleClient.
      2.in this subclass, define a style "testStyle1" with "inherit=yes".
      3.create a MXML Module, add this subclass in using Action Script code.
      4.add this subclass into style client when this component is create complete.
      5.set style "testStyle1" with value "test" in main mxml using application selector.
      6.verify the style value of this custom subclass.

      Actual Results:
      The value of style "testStyle1" is undefined.

      Expected Results:
      The value of style "testStyle1" should be "test".

      Workaround (if any):

      The sample code is attached.
      The subclass named "ADVStyleSimple" that extend from "mx.styles.AdvancedStyleClient".
      The module named "CustomModule" which include two instance of "ADVStyleSimple":
      One of them is defined under "Declarations" tag. It works well.
      The other is defined in Action Script, and it will meet 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: