Code:
stop();

this.onEnterFrame = function() {
        var amount= this.getBytesLoaded() / this.getBytesTotal()*100;
        _root.preLoader.preLoaderFill._xscale = amount;
        _root.preLoader.bytesPercent.text = Math.round(amount)+"%";
        if(amount == 100) {
                this.gotoAndStop(2);
                delete this.onEnterFrame;
        }
}