Harbs created FLEX-35113: ---------------------------- Summary: Error evaluating XML variable Key: FLEX-35113 URL: https://issues.apache.org/jira/browse/FLEX-35113 Project: Apache Flex Issue Type: Bug Components: FalconJX Affects Versions: Apache FalconJX 0.6.0 Reporter: Harbs Assignee: Alex Harui
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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)