# Help with preloading mc with flv in it

**URL:** <https://forum.kirupa.com/t/help-with-preloading-mc-with-flv-in-it/296928>\
**Category:** Uncategorized\
**Created:** [September 22, 2009, 9:02pm UTC](https://forum.kirupa.com/t/help-with-preloading-mc-with-flv-in-it/296928 "2009-09-22T21:02:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crash41](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@crash41](https://forum.kirupa.com/u/crash41)\
**Post date:** [September 22, 2009, 9:02pm UTC](https://forum.kirupa.com/t/help-with-preloading-mc-with-flv-in-it/296928/1 "2009-09-22T21:02:43Z")

</div>

I have a main swf file that is simply a container to load in other swfs.

These other swf files are movies that contain embedded flv files. Each are about 300 frames long.

I want to include a preloader in the flv swf files and when i do and view them individually - they work fine.

When i view the main loader movie - none of the preloaders show up - it’s just blank until the movies are loaded.

For the preloader - i added a scene and used the following code:

loaded\_bytes = \_root.getBytesLoaded();  
total\_bytes = \_root.getBytesTotal();  
loadpercent = (loaded\_bytes/total\_bytes)\*100;

// Lets check if it reached 100…  
if (loadpercent != 100) {

```
bar.gotoAndStop(int(loadpercent));

```

} else {

```
gotoAndPlay("main", 1);

```

}

Any ideas what i need to do to see the individual pre loaders?

thanks!
