Prayer to the God of AS

Out of context: Reply #50

  • Started
  • Last post
  • 62 Responses
  • k9kuma0

    photosXML = new XML();
    photosXML.load("path_to_xml/data...

    photosXML.onLoad = photosLoadHandler;
    photosLoadHandler = function(loaded) {
    if (loaded == true) {
    // The XML document loaded without error, continue processing.
    } else {
    // The XML document could not be loaded, stop processing.
    }
    }

    photos_xml = new XML();
    photos_xml.load("photos.xml");
    photos_xml.onLoad = startSlideShow;
    function startSlideShow(success) {
    if (success == true) {
    rootNode = slides_xml.firstChild;
    totalSlides = rootNode.childNodes.length;
    firstSlideNode = rootNode.firstChild;
    currentSlideNode = firstSlideNode;
    currentIndex = 1;
    updateSlide(firstSlideNode);

    }
    }

View thread