# Flash 6 vs 7

**URL:** https://forum.kirupa.com/t/flash-6-vs-7/151405
**Category:** flash
**Created:** [June 15, 2005, 9:33am UTC](https://forum.kirupa.com/t/flash-6-vs-7/151405 "2005-06-15T09:33:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imported\_mucho](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@imported\_mucho](https://forum.kirupa.com/u/imported_mucho)
#### Post date: [June 15, 2005, 9:33am UTC](https://forum.kirupa.com/t/flash-6-vs-7/151405/1 "2005-06-15T09:33:55Z")

</div>

Hi All,

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

```auto
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.
