Compare and contrast: var artData:XML = new XML(<art> <bios> <artist f="Peter" s="Agrafiotis">A longtime resident of Southern Maine, Peter Agrafiotis has always been fascinated with the timelessness of nature</artist> <artist f="Larry" s="Denning">He sucks</artist> <artist f="Susan" s="Agrafiotis">She rocks</artist> </bios> </art>);
var lastName = "Agrafiotis"; var artistBio:XMLList = artData.bios.artist.(@s==lastName); trace(artistBio) That works fine for me. Jason Merrill Bank of America Global Learning Learning & Performance Soluions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mendelsohn, Michael Sent: Wednesday, February 03, 2010 1:19 PM To: Flash Coders List Subject: [Flashcoders] E4X, it's just not my day. Ugh! What am I missing here? //XML: var artData:XML = <art> <bios> <artist f="Peter" s="Agrafiotis">A longtime resident of Southern Maine, Peter Agrafiotis has always been fascinated with the timelessness of nature</artist> </bios> </art>; var lastName = "Agrafiotis"; var artistBio:XMLList = artData.bios.artist.(@s==lastName); // artistBio returns null -- WHY??? _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders