Calling image when specific word is shown in flash

Aoltrfsenos

New Member
So here is my qustion! I have a flash file in which I'm calling information from XML file. Also i need to call an image when a specific word is called from the XML file. For example: I'm calling the word 'England' and I need to get also the England flag ( in my case picture with flag ).Here is my code so far.\[code\]my_xml = new XML();\[/code\]my_xml.load("direktno.xml");my_xml.onLoad = my_function;my_xml.ignoreWhite=true;\[code\] function my_function() { _root.main.ma4.minute.text = my_xml.firstChild.childNodes[1].firstChild; _root.main.ma4.team1.text = my_xml.firstChild.childNodes[2].firstChild; _root.main.ma4.team2.text = my_xml.firstChild.childNodes[3].firstChild; _root.main.ma4.score1.text = my_xml.firstChild.childNodes[4].firstChild; _root.main.ma4.score2.text = my_xml.firstChild.childNodes[5].firstChild; _root.main.ma4.minute1.text = my_xml.firstChild.childNodes[6].firstChild.firstChild.firstChild; _root.main.ma4.goalmaker.text = my_xml.firstChild.childNodes[6].firstChild.childNodes[1].firstChild; }\[/code\]
 
Back
Top