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

Flex 3 MXML code defining an <mx:Array> with child <mx:Object> tags does not compile in Flex 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • MXML Scripting
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Flex 3 MXML code that used to compile now is generating compiler errors. See associated file ArrayOfColorsMXML.mxml. The code that causes the error is:

      <mx:Array id="myDepthColors">
      <mx:Object>0xFFCC33</mx:Object>
      <mx:Object>0xFFCC99</mx:Object>
      <mx:Object>0xCC9900</mx:Object>
      </mx:Array>

      The compiler errors are:

      C:/stephen/depot/EN/Docs/Flex/gumbo/Big_Book/code/styles/ArrayOfColorsMXML.mxml(6): Error: Component declarations are not allowed here.

      <mx:Object>0xFFCC33</mx:Object>

      C:/stephen/depot/EN/Docs/Flex/gumbo/Big_Book/code/styles/ArrayOfColorsMXML.mxml(7): Error: Component declarations are not allowed here.

      <mx:Object>0xFFCC99</mx:Object>

      C:/stephen/depot/EN/Docs/Flex/gumbo/Big_Book/code/styles/ArrayOfColorsMXML.mxml(8): Error: Component declarations are not allowed here.

      <mx:Object>0xCC9900</mx:Object>

      C:/stephen/depot/EN/Docs/Flex/gumbo/Big_Book/code/styles/ArrayOfColorsMXML.mxml(12): Error: Component declarations are not allowed here.

      <mx:Object>red</mx:Object>

      C:/stephen/depot/EN/Docs/Flex/gumbo/Big_Book/code/styles/ArrayOfColorsMXML.mxml(13): Error: Component declarations are not allowed here.

      <mx:Object>green</mx:Object>

      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: