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

Different behaviour when binding to xmlroot.@attribute.toString().length and xmlroot.child.@attribute.toString().length

    XMLWordPrintableJSON

    Details

      Description

      In Flex 4 (4.12.1 and 4.11.0), binding to xmlroot.child.@attribute.toString().length works if compile the application with keep-generated-actionscript flag. Otherwise, it gives this runtime error (_testXml is the xml data and keepFlagTest is the application):

      ReferenceError: Error #1069: Property _testXml not found on keepFlagTest and there is no default value.
      at _keepFlagTestWatcherSetupUtil/setup() ...

      Note that binding to xmlroot.child.@attribute.toString().length works in Flex 3 (3.3) and binding to xmlroot.@attribute.toString().length works in both Flex 3 (3.3) and Flex 4 (4.12.1 and 4.11.0).

        Attachments

        1. keepFlagTestFlex4.mxml
          2 kB
          Mei Xue
        2. keepFlagTestFlex3.mxml
          2 kB
          Mei Xue

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xm Mei Xue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: