hello,
when i rollover my map, i would like to get some values of my xml attributes and show this values for example in a text field
i'm using filterPath, and that's the reason - i think - it's not working
is there any other possibility or solution?
my code:
xml:
<world>
<country continent="Africa" region="Central Africa" name="Cameroon" population="3249136" />
</world>
mxml:
private function onNodeRollOver(event:TreeMapEvent):void
Unknown macro: {
var region}
<treemap:TreeMap
id="worldTreemap"
labelField="id"
filterPath="
Unknown macro: {['@continent', '@region', '@name']}
"
areaField="@population"
colorField="@population"
nodeRollOver = "
Unknown macro: {onNodeRollOver(event)}
"
/>
<mx:Text id="infoBox" />
thank you very much for your help
best regards
ines
Comments (1)
Mar 04
Ines Schwaighofer says:
there is some problem with the wiki: i tried to use country = event.item.@nam...there is some problem with the wiki:
i tried to use
country = event.item.@name;
infoBox.htmlText = "<i>Country</i>: " + country;
in my function onNodeRollOver