# Dynamic percentage based preloade possible?

**URL:** <https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267>\
**Category:** Uncategorized\
**Created:** [February 7, 2004, 12:33am UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267 "2004-02-07T00:33:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [February 7, 2004, 12:33am UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/1 "2004-02-07T00:33:37Z")

</div>

Is it possible to have a preloader (external) which displays percentage loaded etc for dynamically loaded MCs?

I know about all the tutes for transitions etc, but they just use a flashing “loading” bit of text.

Please forgive me, as I am posting this while attempting it in Flash muself, so I may find the solution, just thought two ways are better than one.

🙂

---

<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:** [February 7, 2004, 7:52am UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/2 "2004-02-07T07:52:11Z")

</div>

Yes, it is. You can just place the preloader inside the external swf. When it is then being loaded into the main movie, it will start preloading itself.

You can also preload it through the main movie, but it’s easier to do it from the external swf itself, for example with Lost’s famous preloader 🙂

---

<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:** [February 8, 2004, 6:03am UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/3 "2004-02-08T06:03:53Z")

</div>

what about for jpegs? forgot to mention that part sorry

🙂

---

<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:** [February 8, 2004, 12:54pm UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/4 "2004-02-08T12:54:02Z")

</div>

Yeah, it’s also possible for jpgs. Those have to be preloaded from the main movie though, but yes 🙂

---

<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:** [February 8, 2004, 1:21pm UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/5 "2004-02-08T13:21:02Z")

</div>

any more clues?

---

<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:** [February 8, 2004, 1:34pm UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/6 "2004-02-08T13:34:32Z")

</div>

Oh, you also wanted to know how ?

---

<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:** [February 8, 2004, 1:51pm UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/7 "2004-02-08T13:51:06Z")

</div>

sure, if it’s not too much.

I think I’ve got it sussed, but I am curious to see how others do it.

---

<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:** [February 8, 2004, 2:12pm UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/8 "2004-02-08T14:12:28Z")

</div>

I mostly use something like this:

```auto

loader.loadMovie("image.jpg");
this.onEnterFrame = function(){
	var loaded = loader.getBytesLoaded();
	var total = loader.getBytesTotal();
	var percent = (loaded/total)*100;
//loadbar._width = ....
	if(loaded == total && total > 0){
		delete this.onEnterFrame
		trace("Loaded.")
	}
}

```

---

<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:** [February 8, 2004, 2:44pm UTC](https://forum.kirupa.com/t/dynamic-percentage-based-preloade-possible/42267/9 "2004-02-08T14:44:56Z")

</div>

cheers big ears
