Fading out preloader!

Hey!

I’ve made a percentage preloader, but when done loading I want it to fade out before playing the next scene! This could be done using a “box” MC with alpha fade, but I’m having problems with the code, it wont play the MC (fader) :

onClipEvent (enterFrame) {
  bytes =_root.getBytesTotal();
  bytes_loaded = Math.round((_root.getBytesLoaded()/bytes)* 100);
  if (bytes_loaded >= 100) {
    _root.fader.gotoAndPlay("next");
  } else {
    _root.gotoAndPlay(1);
    this.loadingtxt = bytes_loaded;
  }
}