# \[FMX2004\] help with XML slideshow

**URL:** <https://forum.kirupa.com/t/fmx2004-help-with-xml-slideshow/80686>\
**Category:** flash\
**Created:** [February 23, 2005, 10:53pm UTC](https://forum.kirupa.com/t/fmx2004-help-with-xml-slideshow/80686 "2005-02-23T22:53:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Candyman3d](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@Candyman3d](https://forum.kirupa.com/u/Candyman3d)\
**Post date:** [February 23, 2005, 10:53pm UTC](https://forum.kirupa.com/t/fmx2004-help-with-xml-slideshow/80686/1 "2005-02-23T22:53:18Z")

</div>

Hi! I’m very newbie in Flash so I’m asking to have patience:)  
I’m trying to make my own slideshow **WITHOUT** buttons and **WITHOUT** preloaders. The idea is to preload all images from outside then to convert them to MovieClips and then using transitions between them run the slideshow.  
My question is: How to convert preloaded images to clips in order to avoid reloading images each time in every frame and make the slideshow without blinking? GIVE ME SOME ADVICE, PLEASE!!!  
**[HERE](http://cicplata.org/fla-project.zip)** you can download whole project without images (you can use yours instead to see how it work).

This is slightly modifyed code of [color=Navy]**[THIS](http://www.kirupa.com/developer/mx2004/xml_slideshow.htm)**[/color] tutorial that I’m using in my project:

[font=Courier New][size=2][color=Green]this.onLoad = function() {  
function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
image = [];  
total = xmlNode.childNodes.length;  
for (i=0; i\<total; i++) {  
image\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
}  
backimage.loadMovie(image[0], 1);  
firstImage();  
} else {  
content = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“config.xml”);  
};

p = 0;  
this.onEnterFrame = function() {  
picture.\_alpha -= 7;  
if (picture.\_alpha\<10) {  
nextImage();  
}  
};  
function nextImage() {  
if (p\<(total-1)) {  
p++;  
picture.\_alpha = 100;  
//trace(image[p]);  
picture.loadMovie(image[p], 1);  
//loading background  
if ((p+1)\<total) {  
backimage.loadMovie(image[p+1], 1);  
} else {  
backimage.loadMovie(image[p], 1);  
}  
} else {  
p = 0;  
}  
}  
function firstImage() {  
picture.loadMovie(image[0], 1);  
backimage.loadMovie(image[1], 1);  
}  
[color=Red]**[font=Arial][size=3]  
[color=Black]Any help would be greatly appreciated. Thank you![/color][/size][/font]**[/color]  
[/color][/size][/font]
