# Preloader 4 external images

**URL:** <https://forum.kirupa.com/t/preloader-4-external-images/74808>\
**Category:** flash\
**Created:** [January 2, 2005, 9:10pm UTC](https://forum.kirupa.com/t/preloader-4-external-images/74808 "2005-01-02T21:10:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![2005](https://avatars.discourse-cdn.com/v4/letter/2/e480ec/32.png) [@2005](https://forum.kirupa.com/u/2005)\
**Post date:** [January 2, 2005, 9:10pm UTC](https://forum.kirupa.com/t/preloader-4-external-images/74808/1 "2005-01-02T21:10:39Z")

</div>

Hi folks  
I wrote this AS for my preloader which schould be able to load a movie clip after pressing a specif button in the main sceene:  
onClipEvent (enterFrame) {  
tb = math.round(this.getBytesTotal()/1024);  
lb = math.round(this.getBytesLoaded()/1024);  
perc = math.round((lb/tb)\*100);  
if (lb\>=tb) {  
\_parent.loadBar.\_visible = 0;  
} else {  
\_parent.perc = perc;  
\_parent.loadBar.\_width = perc;  
\_parent.loadBar.\_visible = 1;  
}  
}

1. The problem is that to be able to target a movieclip I will need to give it a instance name. Where can i find this function in MX ?
2. I cannot understant how I schoul put a loadBar being a small movieclip on the main timeline, I think( the same timeline the container clip is at ) or maybe not ? well I am bit confused now…  
Well I have done already a sceene preloader for my site and it works perfectly and i did not experience any problems as I´m having now with this new kind of preloader… Could you please point me out all these questions, I will apreciate it much.  
And dont forget I am new to flash,so please go easy.🙂  
thank you
