# Why won't link in xml open from html?

**URL:** <https://forum.kirupa.com/t/why-wont-link-in-xml-open-from-html/255635>\
**Category:** flash\
**Created:** [March 25, 2008, 3:16pm UTC](https://forum.kirupa.com/t/why-wont-link-in-xml-open-from-html/255635 "2008-03-25T15:16:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamjw3](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@adamjw3](https://forum.kirupa.com/u/adamjw3)\
**Post date:** [March 25, 2008, 3:16pm UTC](https://forum.kirupa.com/t/why-wont-link-in-xml-open-from-html/255635/1 "2008-03-25T15:16:25Z")

</div>

hi all

i have a small problem with a flash scroller that i am using.  
its a standard link the xml file that calls images and url for that image.

when i text movie everything works fine but if i preview it in html none of the links work!

any ideas what i’m doing wrong???

here is the code

```auto
stop();
System.useCodepage = true;
var tmp = random(1000000);
var xmlLength;
Str = new Array();
imageXML = new Array();

myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function() {
    imageXML = this.firstChild.childNodes;
    
    if (xmlItem.length == 0) {
        play();
    }
    _global.picAll = int(imageXML.length);
    if(weburl==undefined)
    {
        for (var i = 0; i<imageXML.length; i++) {
        kk = Str.push({url:(myXML.firstChild.childNodes*.childNodes[1].childNodes), imagepath:(myXML.firstChild.childNodes*.childNodes[0].childNodes)});
        if (myXML.loaded == true) {
            play();
        }
        }
        
    }else{
        
        for (var i = 0; i<imageXML.length; i++) {
        kk = Str.push({url:(myXML.firstChild.childNodes*.childNodes[1].childNodes), imagepath:(weburl+myXML.firstChild.childNodes*.childNodes[0].childNodes)});
        if (myXML.loaded == true) {
            play();
        }
        }
    }
    
};

    myXML.load("data.xml");

```

here is an example of the xml

\<imagesbar\>  
\<pic\>  
\<imagepath\>images/1.jpg\</imagepath\>  
\<url\>[http://www.google.com](http://www.google.com)\</url\>  
\</pic\>  
\<pic\>  
\<imagepath\>images/2.jpg\</imagepath\>  
\<url\>[http://www.google.com](http://www.google.com)\</url\>  
\</pic\>  
\</imagesbar\>

Now when i
