[flexcoders] Re: How to use e4x to extract the name of the node - NOT the value

2008-03-12 Thread guitarguy555
Thanks guys! That's exactly what I needed. Cheers --- In flexcoders@yahoogroups.com, vardpenguin [EMAIL PROTECTED] wrote: once you've nagivated to the node you're wanting to look at you can use name().localName: once example might be: var nodeName : String =

[flexcoders] Re: How to use e4x to extract the name of the node - NOT the value

2008-03-12 Thread guitarguy555
Argh..now I'm having difficulty using this variable in an e4x filtering expression. here was my old code that worked fine with a named value var myXMLList:XMLList = xl.(EmployeeId == _selectedRowID); Now, I know that I can use the variable name to refer to an XML node like so:

[flexcoders] Re: How to use e4x to extract the name of the node - NOT the value

2008-03-12 Thread guitarguy555
ok I figured it out...you have to use the child method - hopefully this helps someone else out there! var myXMLList = myXMLList.(child(id) ==_selectedRowID); --- In flexcoders@yahoogroups.com, guitarguy555 [EMAIL PROTECTED] wrote:

[flexcoders] Re: How to use e4x

2006-05-22 Thread Geoffrey Williams
The xml returned defines it's own namespace: private function onInit ():void{ var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest (http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml); loader.addEventListener(Event.COMPLETE, onComplete);