# Preloader AS from MX to Flash8

**URL:** https://forum.kirupa.com/t/preloader-as-from-mx-to-flash8/190870
**Category:** flash
**Created:** [June 15, 2006, 7:44am UTC](https://forum.kirupa.com/t/preloader-as-from-mx-to-flash8/190870 "2006-06-15T07:44:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ipaste](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Ipaste](https://forum.kirupa.com/u/Ipaste)
#### Post date: [June 15, 2006, 7:44am UTC](https://forum.kirupa.com/t/preloader-as-from-mx-to-flash8/190870/1 "2006-06-15T07:44:50Z")

</div>

HI

Im copying a preloader script from MX into flash 8 and gettin this error

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Syntax error.  
bytes\_loaded = Math.round(this.getBytesLoaded());

HERE’S THE SCRIPT IM USING

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}

How can I fix this 😉
