Re: [Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Kenneth Kawamoto
Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Friday, February 15, 2008 3:28 PM To: Flash Coders List Subject: Re: [Flashcoders] E4X Non sense !!! Need help Try: trace(xmlData.accesscode.(shortcut.contains

RE: [Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Patrick Matte | BLITZ
Nice! BLITZ | Patrick Matte - 310-551-0200 x214 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Kawamoto Sent: Friday, February 15, 2008 3:28 PM To: Flash Coders List Subject: Re: [Flashcoders] E4X Non sense !!! Need help Try: trace

Re: [Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Kenneth Kawamoto
Try: trace(xmlData.accesscode.(shortcut.contains("S001"))); Kenneth Kawamoto http://www.materiaprima.co.uk/ Martin Tremblay wrote: EX4 cannot find a node using E4X when one of it's sibling has the same name. Is there a way to avoid this problem ? var xmlData:XML = S001

Re: [Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Bob Wohl
erp! I was close ;) B. On Fri, Feb 15, 2008 at 3:56 PM, Glen Pike <[EMAIL PROTECTED]> wrote: > You should be able to index children of the same type as array elements. > > root.accesscode.(@id == "S000").[0] or similar. > > Martin Tremblay wrote: > > EX4 cannot find a node using E4X when one of

Re: [Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Bob Wohl
trace(xmlData.accesscode[0].(@id == "S000")); cannot test it out atm (no flash/flex infront of me) but I believe they are indexed as well. hth. On Fri, Feb 15, 2008 at 2:57 PM, Martin Tremblay <[EMAIL PROTECTED]> wrote: > > EX4 cannot find a node using E4X when one of it's sibling has the sam

Re: [Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Glen Pike
You should be able to index children of the same type as array elements. root.accesscode.(@id == "S000").[0] or similar. Martin Tremblay wrote: EX4 cannot find a node using E4X when one of it's sibling has the same name. Is there a way to avoid this problem ? var xmlData:XML =

[Flashcoders] E4X Non sense !!! Need help

2008-02-15 Thread Martin Tremblay
EX4 cannot find a node using E4X when one of it's sibling has the same name. Is there a way to avoid this problem ? var xmlData:XML = S001 smallbusiness S000 S000 ; trace(xmlData.accesscode.(@id ==