# XML links in Flash

**URL:** <https://forum.kirupa.com/t/xml-links-in-flash/287775>\
**Category:** flash\
**Created:** [May 6, 2009, 4:07am UTC](https://forum.kirupa.com/t/xml-links-in-flash/287775 "2009-05-06T04:07:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssalama76](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@ssalama76](https://forum.kirupa.com/u/ssalama76)\
**Post date:** [May 6, 2009, 4:07am UTC](https://forum.kirupa.com/t/xml-links-in-flash/287775/1 "2009-05-06T04:07:30Z")

</div>

Hi,  
I am new into flash and I am editing fla file with Flash CS4, I have a page on the website that has a list of videos I want to change the videos with html fils to open in a new tab(page). I removed the video links and added the html files but when I click on it nothing happen when i put the the videos back it works, here is the xml file and the action script any help is appreciated 🙂

Thanks in advance.

source.xml  
\<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
\<buttons\>  
\<b1 name=“Bubbles” link=“video/video\_1.flv” til=“4:30” /\>  
\<b2 name="Toyota " link=“video/video\_2.flv” til=“5:32”/\>  
\<b3 name=“Cartoon” link=“video/video\_3.flv” til=“4:82”/\>  
\</buttons\>

I change this with the following in order to open html files instead of the video files.  
but it is not working when I click it doesn’t go anywhere

\<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
\<buttons\>  
\<b1 name=“Bubbles” link=“albums/album.html” til=“February” /\>  
\<b2 name="Toyota " link=“albums/album2.html” til=“April09”/\>  
\<b3 name=“Cartoon” link=“albums/album3” til=“May09”/\>  
\</buttons\>

here is the Action script.

Stage.scaleMode = “noScale”  
Stage.align = “TC”  
xml\_data = new XML();  
xml\_data.ignoreWhite = true;  
xml\_data.load(“albums/source.xml”);  
stop();  
\_root.current\_p = 0;  
\_root.g\_page = 0;  
\_root.page = 0;  
\_root.flag = 0;  
magnet = 400;  
magic = 6;  
loadVariablesNum(“inc/text.html”, 0);

and here is the action script on the symbole  
text1.text = \_root.xml\_data.firstChild.childNodes[\_parent.url1].attributes.name;
