It doesn't like the final keyword in there I believe. When you need to
add attributes or properties that use actionscript keywords, drop back
to string keys for access:

 

m_xml["@final-note"] = "8";

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mihksoft
Sent: Tuesday, February 10, 2009 5:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML attributes

 

Hi!

I have an XML
var m_xml:XML = <note></note>;
I want to add the attribute final-note to this XML to result
<note final-note="8"></note>.

I didn't find how to add attributes like this.
I tried m_x...@final-note = "8" but is not working.

Any idea?

Thanks,
Mihai





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Reply via email to