RE: [Flashcoders] XML attributes with "-" in the name

2006-05-13 Thread Adrian Lynch
Yes, that's the way I've been getting at attributes. No problems so far. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rifled Cloaca Sent: 12 May 2006 20:09 To: Flashcoders mailing list Subject: [Flashcoders] XML attributes with "

Re: [Flashcoders] XML attributes with "-" in the name

2006-05-12 Thread Thomas Fowler
I would use the XPath for AS2 class from xfactorstudio.com. This will allow you to do a much more elegant retrieval of the attribute in question. TF On 5/12/06, Rifled Cloaca <[EMAIL PROTECTED]> wrote: All, I'm reading a SMIL file, and it has regions with "-" in an attribute name (z-index).

[Flashcoders] XML attributes with "-" in the name

2006-05-12 Thread Rifled Cloaca
All, I'm reading a SMIL file, and it has regions with "-" in an attribute name (z-index). Obviously, if I refer to the attrib explicitly, like XMLnode.attributes.z-index, it'll read that as a minus. Should I use XMLNode.attributes["z-index"]? Is this kosher? Thanks! -g ___