[
https://issues.apache.org/jira/browse/FLEX-27228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Mclean resolved FLEX-27228.
----------------------------------
Resolution: Won't Fix
Or rather can't fix, it's a Flash Player issue not an Adobe Flex issue.
> [flex_next] XML object doesn't work as key to Dictionary
> --------------------------------------------------------
>
> Key: FLEX-27228
> URL: https://issues.apache.org/jira/browse/FLEX-27228
> Project: Apache Flex
> Issue Type: Bug
> Components: .Unspecified - Framework
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Priority: Minor
> Labels: easytest
>
> Steps to reproduce:
> Run the following code:
> var dictionary:Dictionary = new Dictionary(); // or new
> Dictionary(true)
> var p:XML =
> <root>
> <node label="Monkeys">
> <node label="South America">
> <node label="Coastal"/>
> <node label="Inland"/>
> </node>
> <node label="Africa" isBranch="true"/>
> <node label="Asia" isBranch="true"/>
> </node>
> </root>;
> dictionary[p] = true;
>
> // get the first child and then get its parent.
> var c1:XML = p.children()[0];
> var cp:XML = c1.parent();
>
> var b:Boolean = p === cp; // true
> var s:* = dictionary[p]; // true
> var s1:* = dictionary[cp]; // undefined
> trace(b, s, s1);
>
> Actual Results:
> true true undefined
>
> Expected Results:
> true true true
>
> Workaround (if any):
> Use an array with indexOf() instead of using a Dictionary. (Potentially much
> slower though.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira