Preloader for my xml file

Hi there,

Is there anybody that can help me how to make a preloader for this xml gallery.I can’t seem to find the answer to preload the multiple pic’s at once.

note:
main is the (empty)mc on stage. project is an mc that’s attached form the library. In the project mc there’s an mc called holder where the pic’s are loaded.

here’s the code:

my_xml.ignoreWhite = true;
my_xml.load(“slides.xml”);
my_xml.onLoad = function(succes) {
if (succes) {
data_xml = this.firstChild.childNodes;
rootNode = my_xml.firstChild;
totalSlides = rootNode.childNodes.length;
w = 0;
for (i=0; i<_root.totalSlides; i++) {
_root.main.attachMovie(“project”, [“project”+i], i, 0, 0, 0);
_root.main[“project”+i]._x = w;
_root.main[“project”+i]._y = 0;
w += _root.main[“project”+i]._width
_root.main[“project”+i].i = i;
loadMovie(data_xml*.attributes.thumb, _root.main[“project”+i].holder);
};
w2 = 0;
for (j=0; j<_root.totalSlides; j++) {
_root.main.attachMovie(“btn”, [“btn”+j], j+i, 0, 0, 0);
_root.main[“btn”+j]._x = w2;
_root.main[“btn”+j]._y = 0;
w2 += _root.main[“btn”+j]._width+144; h += _root.main[“project”+i]._height+15; _root.main[“btn”+j].j = j; }

Big thx in advance. Grtz