# Preloader Q

**URL:** <https://forum.kirupa.com/t/preloader-q/10225>\
**Category:** flash\
**Created:** [December 27, 2002, 11:38am UTC](https://forum.kirupa.com/t/preloader-q/10225 "2002-12-27T11:38:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalimqvka](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@kalimqvka](https://forum.kirupa.com/u/kalimqvka)\
**Post date:** [December 27, 2002, 11:38am UTC](https://forum.kirupa.com/t/preloader-q/10225/1 "2002-12-27T11:38:24Z")

</div>

I want to load an external MC into a target. I have an external preloader.  
Can I use getBytesLoaded using the name of the target to check what ratio of the external MC is loaded?  
The problem is that when I choose to load the external MC the preloader never starts and I have to wait until the whole MC is downloaded in order to see it. It’s a big one so the time for dl is pretty big itself. (  
Is the script correct?  
\_root.movie is a variable with a value the name of the external MC… I only use one preloader for several external MCs and thet’s why I assign the name dinamicaly.  
\_root. loader is the target.  
My script is:  
first frame of the preloader:  
[COLOR=blue]loadMovie (\_root.movie, \_root.loader);[/COLOR]

Second frame:

[COLOR=blue]if (\_root.loader.getBytesTotal()\>0) {  
loaded = \_root.loader.getBytesLoaded();  
total = \_root.loader.getBytesTotal();  
percent = Math.round((loaded/total)\*100)+" %";  
bites = Math.round(loaded) + " from “+ Math.round(total) +” bytes loaded";  
bar.gotoAndStop(percent);  
}  
if (loaded==total) {  
gotoAndStop (4);  
\_root.loader.play();  
}  
[/COLOR]

On the third frame there’s a gotoAnd Play(1) action

PLS HELP!!!
