Hi all,
I'm new to flash / xml and I have no idea why I can't understand how to do this. Can someone possibly explain to me the actionscript and xml needed to output several strings into dynamic text boxes in flash?
My xml looks like this:
My actionscript 2.0 looks like this:
I have dynamic text boxes labeled information_txt, widths_txt, fit_txt, weight_txt, support_txt, node_name, and xmldoc. HELP!!!
I'm new to flash / xml and I have no idea why I can't understand how to do this. Can someone possibly explain to me the actionscript and xml needed to output several strings into dynamic text boxes in flash?
My xml looks like this:
| Quote: |
| <?xml version="1.0"?>
<shoe> <support="Support: Neutral" /> <weight="Weight: 12.7 oz." /> <fit="Fit: normal" /> <widths="Additional Widths: N/A" /> <information="Nike's best cushioning shoe, nicely improved. The men's Air Max Moto+5 features articulated air and improved flexibility to let you get out and run. "/> </shoe> |
My actionscript 2.0 looks like this:
| Quote: |
| on (release) {
if (getxmldata.loaded){ pic1_mc._alpha = 100; var p = getxmldata.firstChild; xmldoc = getxmldata.childNodes; node_name=p.nodeName; support_txt=this.firstChild.nodeValue; weight_txt=p.attributes.weight; fit_txt=p.attributes.fit; widths_txt=p.attributes.widths; information_txt=p.attributes.information; } |
I have dynamic text boxes labeled information_txt, widths_txt, fit_txt, weight_txt, support_txt, node_name, and xmldoc. HELP!!!
