flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harbs (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35113) Error evaluating XML variable
Date Sun, 17 Jul 2016 10:39:20 GMT
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
			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>


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

View raw message