That works great! Thanks a lot.
C

Juan Carlos Anorga wrote:
check out the docs for the descendants method in the XML class.

<http://livedocs.adobe.com/flex/2/langref/XML.html#descendants()>

you should be able to do this:

var node:String = "zip";
employees.descendants(node);

- juan

On May 16, 2007, at 4:57 PM, Chris Hill wrote:

The as3 examples for XML show the following:
var node:String = "zip";
trace(employees.employee[0].address[node]); // 98765

What I'd like to do is something like this:
var node:String = "zip";
trace(employees..[node]); // 98765

ie: Find all nodes that are called 'zip' in the document, but do it dynamically.

any ideas?
C
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to