# Preloader using a movie?

**URL:** <https://forum.kirupa.com/t/preloader-using-a-movie/108656>\
**Category:** Uncategorized\
**Created:** [April 27, 2004, 3:46pm UTC](https://forum.kirupa.com/t/preloader-using-a-movie/108656 "2004-04-27T15:46:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kev](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kev](https://forum.kirupa.com/u/kev)\
**Post date:** [April 27, 2004, 3:46pm UTC](https://forum.kirupa.com/t/preloader-using-a-movie/108656/1 "2004-04-27T15:46:20Z")

</div>

Can’t fine any info on this, sorry.

How do you use a movie on a timeline as a preloader?

So a movie is placed on the stage and is played 1 - 100 frames like a preloader does.

Here’s the code I have now:

[AS]  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBarFill.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(7);  
}

[/AS]

Thanks
