# Need some preloader help

**URL:** <https://forum.kirupa.com/t/need-some-preloader-help/165680>\
**Category:** Uncategorized\
**Created:** [October 13, 2005, 3:35am UTC](https://forum.kirupa.com/t/need-some-preloader-help/165680 "2005-10-13T03:35:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cameron\_](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cameron\_](https://forum.kirupa.com/u/cameron_)\
**Post date:** [October 13, 2005, 3:35am UTC](https://forum.kirupa.com/t/need-some-preloader-help/165680/1 "2005-10-13T03:35:45Z")

</div>

I am trying to build a preloader that goes to whatever frame of a mc that the movie is loaded (well…that makes no sense). Lets say, the movie is 50% loaded, then the mc will goto and stop on frame 50. If anyone could point me in the right direction, that would be VERY helpful

```auto
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
if (bytes_loaded == bytes_total) {
	mc.gotoAndStop(50);
}

```

So…I have to figure out some way to make it play if the ‘loaded’ is only half of the ‘total’…
