Flash 6 vs 7

Hi All,

although Im not getting any script erros with this preloader, it wont work when I export in Flash 7. Any ideas of how to re-write the follwoing so that it`ll work for Flash 7?

onClipEvent (enterFrame) {
	loading = _parent.getBytesLoaded();
	total = _parent.getBytesTotal();
	percent -= (percent-((loading/total)*100))*.25;
	per = int(percent);
	percentage = per+"%";
	loadBar._width = per;
	if (percent>99) {
		_parent.gotoAndStop(2);
	}
}

gracias in advance,
m.