# Preloading movie clips separately

**URL:** <https://forum.kirupa.com/t/preloading-movie-clips-separately/127632>\
**Category:** Uncategorized\
**Created:** [November 4, 2004, 7:00pm UTC](https://forum.kirupa.com/t/preloading-movie-clips-separately/127632 "2004-11-04T19:00:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Post date:** [November 4, 2004, 7:00pm UTC](https://forum.kirupa.com/t/preloading-movie-clips-separately/127632/1 "2004-11-04T19:00:55Z")

</div>

i was wondering if this was possible, so that i would just have a movie load with a plain bg color and then have movie clips placed on the stage which start to show based on the percentage that they are loaded. here is the code i was messing with which didn’t seem to do the trick:

```auto
// set the alpha of the mc to the amount of it loaded so far
photo_mc.onEnterFrame = function() {
	var loaded:Number = this.getBytesLoaded();
	var total:Number = this.getBytesTotal();
	var showMe:Number = (Math.ceil((loaded / total) * 100));
	this._alpha = showMe;
};

```

any help is greatly appreciated. thanks in advance.
