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

Error evaluating XML variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache FalconJX 0.6.0
    • Apache FalconJX 0.8.0
    • FalconJX
    • None

    Description

      Consider the following code:
      public class LocaleManager
      {
      public static function get localeStrings():Object
      {
      return

      { ADD_TEXT_HERE : "Add text here" }

      }
      }
      public class MyClass
      {
      private static const txtStr:String = LocaleManager.localeStrings.ADD_TEXT_HERE;
      public static const sampleXML:XML = <text>
      <content>

      {txtStr}

      </content>
      </text>;

      }

      sampleXML should compile on the javascript side to:
      MyClass.sampleXML = new XML( '<text><content> + MyClass.txtStr + '</content,</text>');
      While in fact the MyClass.txtStr falls out, and it evaluates to NaN in Javascript.

      Attachments

        Activity

          People

            aharui Alex Harui
            harbs Harbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: