Access Keys:
Skip to content (Access Key - 0)

get xml attribute values

Added by Ines Schwaighofer , last edited by Ines Schwaighofer on Mar 04, 2010 18:04

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

Join the Lab

  • Access to our free components
  • Give your feedback, your needs
  • Participate to our roadmap

Account


Forgot password ?

Latest Updates: 2010/07/12

Releases on:

Top News

Kap2Flex & Klovis new releases
(2010/06/08)
Kap2Flex A new release of our Flex code generator.
Klovis A set of free and open-source libraries.

Read the news »
ConfluenceFx release 1.0!
(2010/06/08)

After a year of beta program and lots of user feedbacks, we are glad to announce the 1st commercial release of CFx!

Need Information?

  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

Log in to reply

Why Kap Lab ?

Kap Lab exists because innovation is our passion. Enjoy our products and help us to give you the best.

Cyril Daloz
CEO Kap IT

Adaptavist Theme Builder (3.3.5-conf210) Powered by Atlassian Confluence 2.10.3, the Enterprise Wiki.