Hi Fabio,
Here is an example that you can follow that will hopefully clear-up some of your questions.
-TH
_______________________________
Tim Hoff
Cynergy Systems, Inc
http://www.CynergySystems.com
Office: 1.866.CYNERGY
--- In [email protected], "Fabio Barreiro" <[EMAIL PROTECTED]> wrote:
>
> Hi guys
>
> I have this XML returned to my app:
> <menu>
> <categoria nome="cat1">
> <item>item 1</item>
> <item>item 2</item>
> <item>item 3</item>
> </categoria>
>
> <categoria nome="cat2">
> <item>item 1b</item>
> <item>item 2b</item>
> <item>item 3b</item>
> </categoria>
>
> <categoria nome="cat3">
> <item>item 1c</item>
> <item>item 2c</item>
> <item>item 3c</item>
> </categoria>
> </menu>
>
>
> this is retrieved by an HTTPService
> <mx:HTTPService id="xmlMenu" url="" method="POST"
> useProxy="false" result="handler()" resultFormat="e4x" />
>
> How to manipulate the XML data in then result handler using action script?
> - show nodes length
> - get the atribute of node categoria
> - get to the values of node item
>
> i've tried
> xmlMenu.lastResult.menu.length.toString()
> xmlMenu.lastResult.menu.categoria[0].length.toString()
> [EMAIL PROTECTED]
> xmlMenu.lastResult.menu.categoria[0].item[0]
>
> nothing happens
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

