# Need xml help... please

**URL:** <https://forum.kirupa.com/t/need-xml-help-please/117774>\
**Category:** Uncategorized\
**Created:** [July 30, 2004, 5:51am UTC](https://forum.kirupa.com/t/need-xml-help-please/117774 "2004-07-30T05:51:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashmani](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Flashmani](https://forum.kirupa.com/u/Flashmani)\
**Post date:** [July 30, 2004, 5:51am UTC](https://forum.kirupa.com/t/need-xml-help-please/117774/1 "2004-07-30T05:51:51Z")

</div>

hai all,

i am doing one xml application with flash. its a id card of the school or organization.

first its display all the records in row wise. like

name age address  
name1 age1 address1  
name2 age2 address2

and when i mouseover the row wise records in anothere movieclip its show all details about the data with photo id card.

i did some code but i can’t continue…

i am not much coder so i need simple self explaning cods.

here is my code…  
var user\_xml:XML= new XML();  
var m:Number;  
var n:MovieClip;  
var d:MovieClip;  
var j:Number=0;  
var i:Number;  
user\_xml.ignoreWhite=true;  
user\_xml.load(“data.xml”);  
user\_xml.onLoad=function(success:Boolean)  
{  
if(success)  
{  
m=user\_xml.childNodes.length;  
for(i=0;i\<m;i++)  
{  
n=attachMovie(“record”,“record”+i,i);

n.\_y=i_30;  
n.txt\_name.text=user\_xml.childNodes_.childNodes[0].childNodes;  
n.txt\_age.text=user\_xml.childNodes\*.childNodes[1].childNodes;  
n.txt\_add.text=user\_xml.childNodes\*.childNodes[2].childNodes;

n.onRollOver=function()  
{  
d=attachMovie(“display”,“display”+j,100);  
d.\_x=500;  
d.txt\_name.text=user\_xml.childNodes[j].childNodes[0].firstChild.nodeValue;  
d.txt\_age.text=user\_xml.childNodes[j].childNodes[1].firstChild.nodeValue;  
d.txt\_add.text=user\_xml.childNodes[j].childNodes[2].firstChild.nodeValue;  
j++;  
}  
}  
}  
else  
{  
trace(“xml not found”);  
};  
}

and the xml file

\<data id=“0”\>  
\<name\>Name\</name\>  
\<age\>Age\</age\>  
\<add\>Address\</add\>  
\</data\>  
\<data id=“1”\>  
\<name\>Mani1\</name\>  
\<age\>28\</age\>  
\<add\>aaaa\</add\>  
\</data\>  
\<data id=“2”\>  
\<name\>Mani2\</name\>  
\<age\>29\</age\>  
\<add\>bbbb\</add\>  
\</data\>  
\<data id=“3”\>  
\<name\>Mani3\</name\>  
\<age\>30\</age\>  
\<add\>ccc\</add\>  
\</data\>

and i used two movieclips “display” and “record” with linkage.

any body can help with simple codes. i need in as2.0 only…

Please

Flashmani

---

<div class="post-metadata">

**Author:** ![Flashmani](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@Flashmani](https://forum.kirupa.com/u/Flashmani)\
**Post date:** [August 2, 2004, 6:31am UTC](https://forum.kirupa.com/t/need-xml-help-please/117774/2 "2004-08-02T06:31:57Z")

</div>

i think its better to attach the fla here…

so i am attaching the fla and xml file…

i posted this question in all the other flash fourms. i get some responses in [actionscript.org](http://actionscript.org)…

i am expecting here…more quick…

please

Flashmani
