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

Generated .as has syntax error when using State.basedOn

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • States
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a state (State1)
      2. Create another state (State2)
      3. Set the basedOn property of State2 equal to State1: <s:State name="State2" basedOn="State1"/>
      4. Build.

      Actual Results:

      Syntax error: expecting identifier before rightparen. [Generated code (use -keep to save): Path: C:\Documents and Settings\*********-generated.as, Line: 111, Column: 6]

      The actual syntax error is double-quotes in the basedOn property assignment:

      states = [
      new State ({
      name: "State2",
      basedOn: ""State1"",
      overrides: [
      new AddItems().initializeFromObject(

      { itemsFactory: _MyClass_Button1_factory, destination: null, propertyName: "mxmlContent", position: "first" }

      )
      ]
      })
      ];

      Expected Results:

      There should only be one set of quotes around the value for the basedOn property in the generated .as.

      Workaround (if any):

      None.

      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: