how can i get this to work in Flash 5. Seems to have trouble with the Void part.
[AS]
rectMask_mc._height = 1;
this.onEnterFrame = function():Void {
var loadedData:Number = this.getBytesLoaded();
var allData:Number = this.getBytesTotal();
var percent:Number = Math.round(loadedData/allData*100);
rectMask_mc._yscale = percent;
if (loadedData>=allData) {
gotoAndPlay("SITE");
delete this.onEnterFrame;
}
};