# Animated preloader?

**URL:** <https://forum.kirupa.com/t/animated-preloader/51148>\
**Category:** Uncategorized\
**Created:** [May 10, 2004, 1:28pm UTC](https://forum.kirupa.com/t/animated-preloader/51148 "2004-05-10T13:28:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iloveitaly](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@iloveitaly](https://forum.kirupa.com/u/iloveitaly)\
**Post date:** [May 10, 2004, 1:28pm UTC](https://forum.kirupa.com/t/animated-preloader/51148/1 "2004-05-10T13:28:02Z")

</div>

is it possible to make a animated preloader. I know how to make one with a loading bar, and a percentage thing. But i was wondering if you could make one that played a movieClip poportionally to the amount of frames loaded.  
I fooled around with it for a while but couldn’t get it right. for a 50 frame animation i came up with this:

```auto

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loader._currentframe = getPercent*50
if (bytes_loaded == bytes_total) {
	this.gotoAndPlay(3);
}

```

It didn’t work. any ideas/tut’s on this?
