# Loading everything instead of just one thing {MX}

**URL:** <https://forum.kirupa.com/t/loading-everything-instead-of-just-one-thing-mx/31269>\
**Category:** flash\
**Created:** [September 20, 2003, 12:31pm UTC](https://forum.kirupa.com/t/loading-everything-instead-of-just-one-thing-mx/31269 "2003-09-20T12:31:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geedogg](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@geedogg](https://forum.kirupa.com/u/geedogg)\
**Post date:** [September 20, 2003, 12:31pm UTC](https://forum.kirupa.com/t/loading-everything-instead-of-just-one-thing-mx/31269/1 "2003-09-20T12:31:06Z")

</div>

Ok, i asked around in the mx forum, but thougt that the AS forum might be better cus there might be more AS nerds here 😉

Heres the problem:

I have:  
1 Main movie  
2 movie loaded into 1

The problem is that im using a preloader component in 2 witch instead of loading just itself(2) also loads 1. But one is already loaded!

2 is made like this:  
In frame one, i have plased the preloader component, and in frame 2 i have the picture witch is beeing loaded.

Could someone please help me?

Heres the component code:

onClipEvent (load) {  
\_root.stop();  
this.topScale = this.\_width;  
this.\_xscale = 0;  
ft = int(\_root.getBytesTotal()/1024);  
}  
onClipEvent (enterFrame) {  
fl = int(\_root.getBytesLoaded()/1024);  
this.\_xscale = (fl/ft)\*this.topScale;  
\_parent.mytext.text= “LOADING “+fl+” KB OF “+ft+” KB”;  
\_parent.mytext.setTextFormat(\_parent.mtextFormat);  
//\_parent.llt = “LOADING “+fl+” KB OF “+ft+” KB”;  
if (fl == ft) {  
gotoAndPlay(\_currentframe+1);  
play();  
}  
}
