# Preloader with Percentage

**URL:** https://forum.kirupa.com/t/preloader-with-percentage/10290
**Category:** flash
**Created:** [December 28, 2002, 8:33pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290 "2002-12-28T20:33:16Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anwiya](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anwiya](https://forum.kirupa.com/u/anwiya)
#### Post date: [December 28, 2002, 8:33pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290/1 "2002-12-28T20:33:16Z")

</div>

I’m having trouble creating a preloader bar with percentage for my flash movie. I used the tutorial found on [http://www.kirupa.com/developer/mx/percentagepreloader.asp](http://www.kirupa.com/developer/mx/percentagepreloader.asp). However, the tutorial shows how to create the preloader for a movie without multiple scenes. However, my movie has multiple scenes.:hat:

---

<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: [December 28, 2002, 8:36pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290/2 "2002-12-28T20:36:23Z")

</div>

Well that tutorial uses the getBytesLoaded() and getBytesTotal() method of preloading (which is the way to do it), so it preloads your entire movie, scenes and all.

Although you should use loadMovie instead of scenes, you will have much quicker and efficient files.

---

<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: [December 29, 2002, 9:16pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290/3 "2002-12-29T21:16:20Z")

</div>

How do you use the loadMovie command and preloaders together? Where should the preloader script be? In the movie that’s loaded or in the mainmovie it’s loaded into?

---

<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: [December 29, 2002, 9:22pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290/4 "2002-12-29T21:22:43Z")

</div>

Well you put the preloader on the movie you are loading, but since the \_root is no longer the \_root in this case you will need to change \_root to \_parent and it should work.

---

<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: [December 29, 2002, 9:35pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290/5 "2002-12-29T21:35:23Z")

</div>

Hmm maybe I’m stupid, but where am I supposed to write this?

Edit: I think I got it to work. But I haven’t used \_parent anywhere…

---

<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: [December 29, 2002, 11:52pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/10290/6 "2002-12-29T23:52:23Z")

</div>

The tutorial tells you where to write everything.

If you got it working, then who cares how you did it, you just did it :crazy:…lol.
