frankybones
asked on
URGENT! Not sure if I missed it or messed it--Flash text and XML
Okay I am loading different mc's out of the library and in those mc's are multiple dynamic textfields. I figured that my AS should look something like this but it does not seem to work:
//load my XML
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load("Dtext.xml");
my_xml.onLoad = function(success) {
if (success) {
main2D.text = my_xml.firstChild.childNod es.childNo des[0].att ributes.ma in2D;
upgrade2D.text = my_xml.firstChild.childNod es[0].attr ibutes.upg rade2D;
full2D.text = my_xml.firstChild.childNod es[0].attr ibutes.ful l2D;
mus2D.text = my_xml.firstChild.childNod es[0].attr ibutes.mus 2D;
feature2D.text = my_xml.firstChild.childNod es[0].attr ibutes.fea ture2D;
} else {
trace("XML NOT LOADED!");
}
};
//load my XML
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load("Dtext.xml");
my_xml.onLoad = function(success) {
if (success) {
main2D.text = my_xml.firstChild.childNod
upgrade2D.text = my_xml.firstChild.childNod
full2D.text = my_xml.firstChild.childNod
mus2D.text = my_xml.firstChild.childNod
feature2D.text = my_xml.firstChild.childNod
} else {
trace("XML NOT LOADED!");
}
};
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Both of you gave great solutions to my problem. Thank you both very much, I greatly appreciate it. I will post extra points for you two a bit later. I will make a title under this section called "Extra points for Sam & Aneesh." Again thank you both.
ASKER