img_delay = 0; //----------------------- function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; image = []; description = []; url = []; delay = []; total = xmlNode.childNodes.length; for (i=0; i0) { p--; picture._alpha = 0; picture.loadMovie(image[p], 1); desc_txt.text = description[p]; url_txt.text = url[p]; img_delay = delay[p]; picture_num(); } } function firstImage() { if (loaded == filesize) { //picture._width = 200; //picture._height = 200; picture._alpha = 0; picture.loadMovie(image[0], 1); desc_txt.text = description[0]; url_txt.text = url[0]; img_delay = delay[0]; picture_num(); slideshow(); } } function picture_num() { current_pos = p+1; pos_txt.text = current_pos+" / "+total; } function slideshow() { myInterval = setInterval(pause_slideshow, img_delay); function pause_slideshow() { clearInterval(myInterval); if (p == (total-1)) { p = 0; firstImage(); } else { nextImage(); } } }