# XML value in getURL

**URL:** <https://forum.kirupa.com/t/xml-value-in-geturl/265634>\
**Category:** flash\
**Created:** [July 10, 2008, 9:35pm UTC](https://forum.kirupa.com/t/xml-value-in-geturl/265634 "2008-07-10T21:35:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_User\_of\_Flash](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@A\_User\_of\_Flash](https://forum.kirupa.com/u/A_User_of_Flash)\
**Post date:** [July 10, 2008, 9:35pm UTC](https://forum.kirupa.com/t/xml-value-in-geturl/265634/1 "2008-07-10T21:35:00Z")

</div>

## XML test file

## \<Slides\> \<slideNode linkURL=“[www.cnet.com](http://www.cnet.com)” jpegURL=“images/test1.jpg”\>test 1\</slideNode\> \<slideNode linkURL=“[www.zdnet.com](http://www.zdnet.com)” jpegURL=“images/test2.jpg”\>test 2\</slideNode\> \<slideNode linkURL=“[www.pcmag.com](http://www.pcmag.com)” jpegURL=“images/test3.jpg”\>test 3\</slideNode\> \<slideNode linkURL=“[www.newegg.com](http://www.newegg.com)” jpegURL=“images/test4.jpg”\>test 4\</slideNode\> \</Slides\>

In the browser, [www.cnet.com](http://www.cnet.com), does not work.  
The value it outputs is: file:///C:/Documents%20and%20Settings/Owner/slideshow/www.cnet.com

## ActionScript

slides\_xml = new XML();  
slides\_xml.onLoad = startSlideShow;  
slides\_xml.load(“slides.xml”);  
slides\_xml.ignoreWhite = true;

function startSlideShow(success) {  
if (success == true) {  
rootNode = slides\_xml.firstChild;  
totalSlides = rootNode.childNodes.length;  
firstSlideNode = rootNode.firstChild;  
currentSlideNode = firstSlideNode;  
currentIndex = 1;  
updateSlide(firstSlideNode);  
setInterval(timer,10000);  
}  
}

function timer() {  
nextSlideNode = currentSlideNode.nextSibling;  
if (nextSlideNode == null) {  
currentIndex = 1;  
currentSlideNode = firstSlideNode;  
updateSlide(firstSlideNode);  
} else {  
currentIndex++;  
currentSlideNode = nextSlideNode;  
updateSlide(nextSlideNode);  
}  
}

function updateSlide(newSlideNode) {  
imagePath = newSlideNode.attributes.jpegURL;  
slideText = newSlideNode.firstChild.nodeValue;  
loadMovie(imagePath, targetClip);  
}

next\_btn.onRelease = function() {  
nextSlideNode = currentSlideNode.nextSibling;  
if (nextSlideNode == null) {  
currentIndex = 1;  
currentSlideNode = firstSlideNode;  
updateSlide(firstSlideNode);  
} else {  
currentIndex++;  
currentSlideNode = nextSlideNode;  
updateSlide(nextSlideNode);  
}  
};

## link\_btn.onRelease = function() { getURL(currentSlideNode.attributes.linkURL); };

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [July 10, 2008, 10:03pm UTC](https://forum.kirupa.com/t/xml-value-in-geturl/265634/2 "2008-07-10T22:03:27Z")

</div>

use like this :

> **[Product reviews, how-tos, deals and the latest tech news](https://www.cnet.com/)**
>
> CNET is the world's leader in tech product reviews, news, prices, videos, forums, how-tos and more.

---

<div class="post-metadata">

**Author:** ![A\_User\_of\_Flash](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@A\_User\_of\_Flash](https://forum.kirupa.com/u/A_User_of_Flash)\
**Post date:** [July 11, 2008, 2:30am UTC](https://forum.kirupa.com/t/xml-value-in-geturl/265634/3 "2008-07-11T02:30:54Z")

</div>

XML has been updated with the "http://"  
When I try the quick preview “ctrl+enter” the buttons works.  
When I publish it and try the HTML document, when the button is pressed, it does not load the page.

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [July 11, 2008, 5:42am UTC](https://forum.kirupa.com/t/xml-value-in-geturl/265634/4 "2008-07-11T05:42:03Z")

</div>

What exactly do you mean by " it does not load the page." are you loading images ?
