# Xml starts to make me feel dizzy?

**URL:** <https://forum.kirupa.com/t/xml-starts-to-make-me-feel-dizzy/126036>\
**Category:** Uncategorized\
**Created:** [October 19, 2004, 11:18pm UTC](https://forum.kirupa.com/t/xml-starts-to-make-me-feel-dizzy/126036 "2004-10-19T23:18:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angaturama](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@angaturama](https://forum.kirupa.com/u/angaturama)\
**Post date:** [October 19, 2004, 11:18pm UTC](https://forum.kirupa.com/t/xml-starts-to-make-me-feel-dizzy/126036/1 "2004-10-19T23:18:51Z")

</div>

Hi good day

I got problems with this code when i try the button that i made it just take the last link attribute of my xml array instead of the differents link attribute that i have in the xml array.

could someone help me?

miXml = new XML();  
miXml.ignoreWhite = true;  
miXml.load(“data.xml”);  
miXml.onLoad = init;  
spacing = 200;  
function init() {  
for (i=0; i\<=miXml.firstChild.childNodes.length-1; i++) {  
info = miXml.firstChild.childNodes\*;  
\_root.attachMovie(“blog”, “b1”+i, i+1000);  
\_root[“b1”+i].\_x = 0+spacing\*i;  
\_root[“b1”+i].\_y = 30;  
link = info.attributes.link;  
fecha = info.attributes.fecha;  
body = info.attributes.body;  
\_root[“b1”+i].fecha.text = fecha;  
\_root[“b1”+i].body.text = body;  
\_root[“b1”+i].link.text = link;  
[color=SandyBrown]\*\* \_root[“b1”+i].onPress=function{  
getURL(link,“target=\_blank”);  
}\*\* [/color]  
}  
}

cheers  
david c  
MEXICO
