No prob!
You could also use the associative array syntax: _xml[idMap][myID]
Altering the class is more elegant (and something Macromedia should have
done in the first place, of course), but if someone else has to compile
it, you may want to use the associative array cheat and mark it with a
KLUDGE comment.
―
Mike Keesey
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Rifled Cloaca
Sent: Thursday, September 07, 2006 3:59 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] XML id attribute shortcut not working?
All,
It seems to be due to a bug in the base XML class definition. If you
want
to use idMap in Flash 8, you'll need to edit your XML.as class to add
the
attrib.
Thanks again!
On 9/7/06, Rifled Cloaca [EMAIL PROTECTED] wrote:
Thanks,
It works by itself, but if I try to use it in a class with an XML
object
in it, I get:
There is no property with the name 'idMap'.
It's defined as type XML. What's up?
Thanks!
On 9/7/06, Mike Keesey [EMAIL PROTECTED] wrote:
Use the XML.idMap property.
―
Mike Keesey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Rifled Cloaca
Sent: Thursday, September 07, 2006 3:27 PM
To: Flashcoders mailing list
Subject: [Flashcoders] XML id attribute shortcut not working?
All,
I have a large XML document with unique ID attributes that I'd
like
to
access via the ID shortcut, like so:
trace(myXML[3]);
returns:
myxmlnode id=3...
It works fine when I publish to Flash 6, but publishing to
anything
greater
returns undefined.
Any thoughts?
Thanks in advance!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com