create xml file from flash
this is my as3 code which is making an xml file
var submitListener:Object = new Object();
submitListener.click = function() {
var login_xml:XML = new XML("<login password=\""+username_txt.text+"\" username=\""+password_txt.text+"\"> password_txt.text </login>");
login_xml.xmlDecl = "<?xml version=\"1.0\" ?>";
packet_txt.text = login_xml;
};
submit_btn.addEventListener("click", submitListener);
i want to insert password as node value in login node . the above syntax is not working.how it can be done?
and i also want to know how to save this xml file on hard disk?
Related Article: xml parsing in flash
is a Web Design, HTML and CSS discussion thread by aaloo that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: , multimedia.
aaloo
Junior Poster in Training
85 posts since Oct 2011
Reputation Points: 22
Solved Threads: 0
Skill Endorsements: 0