Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Verified in SDK 3.3 and 4.0
Steps to reproduce:
1. Create a class with a toString() method that returns the string "foo"
2. Create an ItemRenderer for this class
3. Add a nuber of instances to a TileList
Actual Results:
When mousing over any item, the last item in the list becomes highlighted, and when clicking on any it is the last item that is selected.
Workaround (if any):
Ensure that the toString() result is unique
My theory for why this mappens is that the ListBase class contains a number of maps defined as e.g.
protected var rowMap:Object = {};
Where objects are used as keys. Since Object-based hash maps require String keys, the VM converts the object key into a string usint key.toString(). A Dictionary should be used instead.