Preloader AS from MX to Flash8

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 = getPercent100;
this.loadText = Math.round(getPercent
100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

How can I fix this :wink: