Xml gallery…preloader issue

I just made my gallery works, but I still have a little problem.My preloader is not working.

I tried with other kinds of preloaders, but they didn’t work.

Would you mind taking a look at the code?

I inserted the code to the onRelease function, is it valid?
Can I do this?

drawRect = function (w, h) {
	this.beginFill(0x999999, 100);
	this.moveTo(0, 0);
	this.lineTo(0+w, 0);
	this.lineTo(0+w, 0+h);
	this.lineTo(0, 0+h);
	this.lineTo(0, 0);
	this.endFill();
};
bar._visible = false;
bar._xscale = 0;
function GeneratePortfolio(portfolio_xml) {
	var portfolioPictures = portfolio_xml.firstChild.childNodes;
	noclips = portfolioPictures.length;
	for (var i = 0; i<noclips; i++) {
		var currentPicture = portfolioPictures*;
		var mc = this.createEmptyMovieClip("mc5"+i, i);
		col = 5;
		row = 5;
		wi = 20;
		hi = 20;
		cuenta = 0;
		for (x=0; x<col; x++) {
			for (y=0; y<row; y++) {
				this["mc5"+cuenta]._x = 105+wi*x;
				this["mc5"+cuenta]._y = 230+hi*y;
				this["mc5"+cuenta]._alpha = 75;
				cuenta++;
			}
		}
		drawRect.apply(mc, [15, 15]);
		mc.title = currentPicture.attributes.title;
		mc.image = currentPicture.attributes.image;
		mc.thumb = currentPicture.attributes.thumb;
		mc.onRollOver = mc.onDragOver=function () {
			this._alpha = 100;
		};
		mc.onRollOut = mc.onDragOut=function () {
			this._alpha = 75;
		};
		mc.onRelease = function() {
			_root.disappear(_root.images, 0);
			bytes_loaded = Math.round(mc.getBytesLoaded());
			bytes_total = Math.round(mc.getBytesTotal());
			getPercent = bytes_loaded/bytes_total;
			_root.loadText = Math.round(getPercent*100)+"%";
			if (bytes_loaded == bytes_total) {
				_root.pictureit.loadMovie(this.image);
			}
			var colorful = new Color(this);
			colorful.setRGB(0x666666);
		};
	}
}
var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success) {
	if (success) {
		GeneratePortfolio(portfolio_xml);
	} else {
		trace("error");
	}
};
portfolio_xml.load("images.xml");

Thanks in advanced.

please! any ideas?

:d: