# Problem with preloader

**URL:** <https://forum.kirupa.com/t/problem-with-preloader/70153>\
**Category:** Uncategorized\
**Created:** [November 11, 2004, 2:09am UTC](https://forum.kirupa.com/t/problem-with-preloader/70153 "2004-11-11T02:09:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![async](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@async](https://forum.kirupa.com/u/async)\
**Post date:** [November 11, 2004, 2:09am UTC](https://forum.kirupa.com/t/problem-with-preloader/70153/1 "2004-11-11T02:09:12Z")

</div>

Hi everyone,

I’m having a problem with my preloader.

The preloader contains 2 keyframes and looks like this.

KEYFRAME 1

total\_bytes = \_root.getBytesTotal();  
loaded\_bytes = \_root.getBytesLoaded();  
remaining\_bytes = total\_bytes-loaded\_bytes;  
percent\_done = int((loaded\_bytes/total\_bytes)\*100)add “% loaded”;  
ifFrameLoaded (“content”, 92) {  
gotoAndPlay(“content”, 1);  
}

KEYFRAME 2

## gotoAndPlay(1);

This works without problems as long as the preloader stays on KEYFRAME1 and KEYFRAME 2.

I have an animation first and will be putting my preloader into a movieclip.  
When I try to do this, The preloader doesn’t show at all, and it doesn’t go to the next scene either.

Maybe someone can help me? I would appreciate it.

Thank you,

Filip
