Flash 8 XML Class Bug: There is no property with the name ‘idMap’.
I’ve been racking my brain trying to use the old XML id attribute shortcut to quickly access XMLNodes. I couldn’t get it to work consistently when publishing to Flash Players 6, 7, or 8. In Flash 7, it seems that only uppercase node IDs work. In Flash 8, you need to use the idMap array to access your nodes directly. This works fine on its own, but if you try it in a class with an XML object in it, you’ll get this error:
There is no property with the name ‘idMap’.
I did a little digging and found this blog that posted this solution:
Editer le fichier intrinsic de la classe XML ([login]\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\FP8) et y ajouter var idMap:Array. Ce qui reste dangereux si votre code source doit pouvoir être compilé sur une autre machine.
The rought translation is that you need to edit your intrinsic Flash classes in your Flash IDE’s classpath. A pain, expecially if you need to share your code with others. You’ll need to edit the XML.as file and add:
var idMap:Array;
I hope this saves someone from frustration.


