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

Old value of the currentState property is not restore correctly when leaving a state where that property is overridden

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK 4.5 (Release)
    • None
    • States
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile or run the attached code (Bug.mxml is the main app).
      2. Run it.
      3. Click State1, then State2, then State3, then State1.

      Actual Results:
      Rectangle becomes green (it is in CompState2).

      Expected Results:
      Rectangle should be red, which corresponds to CompState1. The component has this code:

      <local:MyComp currentState="CompState1" currentState.State2="CompState2" currentState.State3="CompState3"/>

      Thus, when we go from State3 to State1, the State3 override should be removed and we should restore the currentState that we had before applying any overrides, which is CompState1.

      Workaround (if any):

      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: