Similar thread?

hello everyone,
first let me tell you that [color=blue]Introduction to XML and Flash[/color] is the Sh**, well done for those who wrote it. i am working on a game engine and i’m stuck on the preloader because i’ve search your forums but there are too many and most have been ‘close but no cigar’.

so far i have:
[list]
[]an xml file that declares all the swf files i’ll need to develop this game.
[
]flash creating a movieclip libraryBank that will hold all my swf and eventually mp3 files so i can call them when i need them.
[*]a for loop creating a new movieclip, inside libraryBank, for each nodeValue it finds in the xml file and names it by ID.
[/list]here’s my [color=darkred]roadblock[/color] (yes! amazing race)
i need my preloader to load all my files, i’ve taken a look at a few threads but the ones i like, are for a slideshow and i’m not sure what i need to change to work with what i have?

preloader.xml

<?xml version="1.0" encoding="UTF-8"?>
<preloader>
	<swfiles>
		<swfile ID="icon0">swf/icon0.swf</swfile>
		<swfile ID="icon1">swf/icon1.swf</swfile>
		<swfile ID="icon2">swf/icon2.swf</swfile>
		<swfile ID="icon3">swf/icon3.swf</swfile>
		<swfile ID="icon4">swf/icon4.swf</swfile>
		<swfile ID="icon5">swf/icon5.swf</swfile>
		<swfile ID="icon6">swf/icon6.swf</swfile>
		<swfile ID="icon7">swf/icon7.swf</swfile>
		<swfile ID="icon8">swf/icon8.swf</swfile>
		<swfile ID="icon9">swf/icon9.swf</swfile>
	</swfiles>
</preloader>

frame 1 in game.fla

stop();
#include "preload.as"

preload.as

stop();
var libraryBank = createEmptyMovieClip("libraryBank", 0);
var preloader = new XML();
preloader.ignoreWhite = true;
preloader.load("preload.xml");
preloader.onLoad = function(success) {
var swfile = preloader.firstChild.firstChild.childNodes;
// load each value into a movieclip with it's ID
for (var i = 0; i<swfile.length; i++) {
var swfMovies = libraryBank.createEmptyMovieClip(swfile*.attributes.ID, i);
swfMovies.loadMovie(swfile*.firstChild.nodeValue);
}
};

output

Movie Clip: Target="_level0.libraryBank"
Movie Clip: Target="_level0.libraryBank.icon0"
Movie Clip: Target="_level0.libraryBank.icon1"
Movie Clip: Target="_level0.libraryBank.icon2"
Movie Clip: Target="_level0.libraryBank.icon3"
Movie Clip: Target="_level0.libraryBank.icon4"
Movie Clip: Target="_level0.libraryBank.icon5"
Movie Clip: Target="_level0.libraryBank.icon6"
Movie Clip: Target="_level0.libraryBank.icon7"
Movie Clip: Target="_level0.libraryBank.icon8"
Movie Clip: Target="_level0.libraryBank.icon9"

what preloader should i use?