RE: [Flashcoders] E4X, it's STILL just not my day.

2010-02-18 Thread Merrill, Jason
>> It's almost like it's the parser or something. Well, it seems what you're posting is an abstraction of the real code and/or the real XML in your project (and good for you - too many [I won't name names] post unnecessary code too often here)- so there must be some difference in your actual code

RE: [Flashcoders] E4X, it's STILL just not my day.

2010-02-18 Thread Mendelsohn, Michael
> just curious. That's just my coding style, nothing more. Every line of E4X I've written within this flp has acted funny. I just don't get it, because I've written other more complex E4X statements, even with RegEx involved, that haven't given my any issues. It's almost like it's the parser

RE: [Flashcoders] E4X, it's STILL just not my day.

2010-02-18 Thread Merrill, Jason
>>((@s==lastName)&&(@f==firstName)); Seems to me the extra parentheses are not necessary, this works for me: (@s==lastName && @f==firstName); Just say'n. Is there a technical reason for the extra parentheses or just coding style? Seems it evaluates the same either way in this case. I can see i

RE: [Flashcoders] E4X, it's STILL just not my day.

2010-02-18 Thread Mendelsohn, Michael
Thanks for the replies, everyone. I really have no idea how the solutions that everyone has responded with have worked when testing on your machine, but not here. It's odd. The statement isn't anything complicated. I ended up using a for loop to iterate through and find the node I need. Th

Re: [Flashcoders] E4X, it's STILL just not my day.

2010-02-18 Thread Muzak
; trace(thisone.toXMLString()); - Original Message - From: "Mendelsohn, Michael" To: "Flash Coders List" Sent: Wednesday, February 17, 2010 10:26 PM Subject: [Flashcoders] E4X, it's STILL just not my day. Hi list... Why can't I get to the node I wa

Re: [Flashcoders] E4X, it's STILL just not my day.

2010-02-17 Thread Glen Pike
If you hardcode the strings does it work? I had a similar problem at work - not able to look now - but I found that casting in the test may help: e.g. artData.bios..artistBio.((@s==String(lastName))&&(@f==String(firstName))) Mendelsohn, Michael wrote: Hi list... Why can't I get to the

RE: [Flashcoders] E4X, it's STILL just not my day.

2010-02-17 Thread Merrill, Jason
y 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 17, 2010 4:27 PM To: Flash Coders List Subje

[Flashcoders] E4X, it's STILL just not my day.

2010-02-17 Thread Mendelsohn, Michael
Hi list... Why can't I get to the node I want to here: blah blah more blah blah var artData:XML represents the above correctly. var lastName:String = "Pentak"; var firstName:String = "Stephen"; // successfully lists out all the tags var all