I have done a search on XML getURL, but I still cannot get my code to work.
"XML document"
--------------------
<Links>
<linkNode linkURL=" <linkNode linkURL=" <linkNode linkURL=" <linkNode linkURL="</Links>
---------------------
"ActionScript"
---------------------
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides.xml");
slides_xml.ignoreWhite = true;
links_xml = new XML();
links_xml.onLoad - startsSlideShow;
links_xml.load("links.xml");
links_xml.ignoreWhite = true;
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
rtLnkNode = links_xml.firstChild;
firstLinkNode = rtLnkNode.firstChild;
currentLinkNode - firstLinkNode;
updateSlide(firstSlideNode);
setInterval(timer,10000);
}
}
function timer() {
nextSlideNode = currentSlideNode.nextSibling;
nextLinkNode = currentLinkNode.nextSibling;
if (nextSlideNode == null) {
currentIndex = 1;
currentSlideNode = firstSlideNode;
currentLinkNode = firstLinkNode;
updateSlide(firstSlideNode);
} else {
currentIndex++;
currentSlideNode = nextSlideNode;
currentLinkNode = nextLinkNode;
updateSlide(nextSlideNode);
}
}
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
slideText = newSlideNode.firstChild.nodeValue;
loadMovie(imagePath, targetClip);
}
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
nextLinkNode = currentLinkNode.nextSibling;
if (nextSlideNode == null) {
currentIndex = 1;
currentSlideNode = firstSlideNode;
currentLinkNode = firstLinkNode;
updateSlide(firstSlideNode);
} else {
currentIndex++;
currentSlideNode = nextSlideNode;
currentLinkNode = nextLinkNode;
updateSlide(nextSlideNode);
}
};
link_btn.onRelease = function() {
getURL(currentLinkNode.attributes.linkURL);
};
-------------
"XML document"
--------------------
<Links>
<linkNode linkURL=" <linkNode linkURL=" <linkNode linkURL=" <linkNode linkURL="</Links>
---------------------
"ActionScript"
---------------------
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides.xml");
slides_xml.ignoreWhite = true;
links_xml = new XML();
links_xml.onLoad - startsSlideShow;
links_xml.load("links.xml");
links_xml.ignoreWhite = true;
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
rtLnkNode = links_xml.firstChild;
firstLinkNode = rtLnkNode.firstChild;
currentLinkNode - firstLinkNode;
updateSlide(firstSlideNode);
setInterval(timer,10000);
}
}
function timer() {
nextSlideNode = currentSlideNode.nextSibling;
nextLinkNode = currentLinkNode.nextSibling;
if (nextSlideNode == null) {
currentIndex = 1;
currentSlideNode = firstSlideNode;
currentLinkNode = firstLinkNode;
updateSlide(firstSlideNode);
} else {
currentIndex++;
currentSlideNode = nextSlideNode;
currentLinkNode = nextLinkNode;
updateSlide(nextSlideNode);
}
}
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
slideText = newSlideNode.firstChild.nodeValue;
loadMovie(imagePath, targetClip);
}
next_btn.onRelease = function() {
nextSlideNode = currentSlideNode.nextSibling;
nextLinkNode = currentLinkNode.nextSibling;
if (nextSlideNode == null) {
currentIndex = 1;
currentSlideNode = firstSlideNode;
currentLinkNode = firstLinkNode;
updateSlide(firstSlideNode);
} else {
currentIndex++;
currentSlideNode = nextSlideNode;
currentLinkNode = nextLinkNode;
updateSlide(nextSlideNode);
}
};
link_btn.onRelease = function() {
getURL(currentLinkNode.attributes.linkURL);
};
-------------