# Loader Help!

**URL:** <https://forum.kirupa.com/t/loader-help/61197>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 9:52pm UTC](https://forum.kirupa.com/t/loader-help/61197 "2004-08-16T21:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fourthsword](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fourthsword](https://forum.kirupa.com/u/fourthsword)\
**Post date:** [August 16, 2004, 9:52pm UTC](https://forum.kirupa.com/t/loader-help/61197/1 "2004-08-16T21:52:30Z")

</div>

Hey,

Im trying to make a movie with a preloader that has a movie playing while the load bar is displaying the load progress. What do I need to do?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2004, 4:42am UTC](https://forum.kirupa.com/t/loader-help/61197/2 "2004-08-17T04:42:47Z")

</div>

It’s very easy… Just make a loader bar and put it on the stage… For eg if you have a rectangle on the stage with a height of 10 and width of 100… Just make a mc of it and name it somethin like ‘bar’ for convenience sake… and then… In the actions of the mc… Put the following code…

onClipEvent (enterFrame) {  
this.\_width = int((\_root.getBytesLoaded() / \_root.getBytesTotal()) \* 100);  
if(\_root.getBytesLoaded() == \_root.getBytesTotal()) {  
\_root.nextScene();  
}  
}

And as for the movie that plays while the preloader shows the progress… Just make a mc of the whole animation you wanna show… And then put that mc on the stage… Simple isn’t it?
