This is my preleader script, It's pretty simple but I cannot get it to work on an AS2 published swf. Any ideas?
Code:
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.gotoAndPlay(2);
}
}