Help! actionscript 6 change to 8

helo, anyone can help me to change this actionscript to read on actionscript 2 flash 8?

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);
}
}

the script only run on flash 6.

please give me a hand…i hav no idea… :jail:
thanks