# Preloading then showing mcs independently

**URL:** <https://forum.kirupa.com/t/preloading-then-showing-mcs-independently/232459>\
**Category:** Uncategorized\
**Created:** [July 13, 2007, 10:30pm UTC](https://forum.kirupa.com/t/preloading-then-showing-mcs-independently/232459 "2007-07-13T22:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hausnfranz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hausnfranz/32/2427_2.png) [@Hausnfranz](https://forum.kirupa.com/u/Hausnfranz)\
**Post date:** [July 13, 2007, 10:30pm UTC](https://forum.kirupa.com/t/preloading-then-showing-mcs-independently/232459/1 "2007-07-13T22:30:05Z")

</div>

hi all,

I have 5 or so mcs on the same layer. I would like each one to preload, and then show when they have loaded - so you might see each mc appearing in cannon, or staggered. All five will not show at once.

However, it doesnt seem like the preload code is working for each mc, everything just appears. I have simulated download when I view the mc. Is my problem with the code or how I am testing the movie?

Within each mc i have this code on frame one :

```auto

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
    this.gotoAndPlay(3);
}

```

on frame two :

```auto

this.gotoAndPlay(1);

```

thanks!
