# Fading out preloader!

**URL:** <https://forum.kirupa.com/t/fading-out-preloader/6432>\
**Category:** Uncategorized\
**Created:** [October 7, 2002, 1:02pm UTC](https://forum.kirupa.com/t/fading-out-preloader/6432 "2002-10-07T13:02:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)\
**Post date:** [October 7, 2002, 1:02pm UTC](https://forum.kirupa.com/t/fading-out-preloader/6432/1 "2002-10-07T13:02:24Z")

</div>

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) :

```auto
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;
  }
}

```
