# Segmented Preloader!

**URL:** <https://forum.kirupa.com/t/segmented-preloader/64948>\
**Category:** Uncategorized\
**Created:** [September 21, 2004, 6:08pm UTC](https://forum.kirupa.com/t/segmented-preloader/64948 "2004-09-21T18:08:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chunk](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@chunk](https://forum.kirupa.com/u/chunk)\
**Post date:** [September 21, 2004, 6:08pm UTC](https://forum.kirupa.com/t/segmented-preloader/64948/1 "2004-09-21T18:08:18Z")

</div>

Im sorry if this has been cover somwhere else - i couldnt find anything when i did a search:

How do you make a segmented preloader ?

Like; when 10% is loaded it will tell a movied clip to play and that movie clip just goes to frame 2 wich has a little picture in, so when the preloader reaches 100% there are 10 little pictures (10 little pictures, 10 Movie Clips, All 10 are on frame 2)

Thanks for all your wonderful help in advanced, hope to see a reply soon 😃

---

<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:** [September 21, 2004, 9:07pm UTC](https://forum.kirupa.com/t/segmented-preloader/64948/2 "2004-09-21T21:07:47Z")

</div>

Try something like:

if(\_root.getBytesLoaded() == (0.1\*\_root.getBytesTotal())){  
\_root.mcpicture1.\_visible=true  
}  
if(\_root.getBytesLoaded() == (0.2\*\_root.getBytesTotal())){  
\_root.mcpicture2.\_visible=true  
}

Don’t mind the code grammar…just posting a thought.

---

<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:** [September 22, 2004, 8:23am UTC](https://forum.kirupa.com/t/segmented-preloader/64948/3 "2004-09-22T08:23:31Z")

</div>

It’s a good question.  
Hey… i’ve faced almost a similar problem before that when the movie loaded 95% there come a movieclip. I’ve calculated the loding time using getBytesLoaded() and getBytesTotal(). But in different line speeds the movie acts different way just 'ause the variabel that holds that value often beyond our control. In high speed connection that suddently passed the value and i didn’t get any results.
