# If this is loaded dont load is again!

**URL:** https://forum.kirupa.com/t/if-this-is-loaded-dont-load-is-again/165834
**Category:** Uncategorized
**Created:** [October 14, 2005, 7:58am UTC](https://forum.kirupa.com/t/if-this-is-loaded-dont-load-is-again/165834 "2005-10-14T07:58:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ibenschop](https://avatars.discourse-cdn.com/v4/letter/i/c57346/32.png) [@ibenschop](https://forum.kirupa.com/u/ibenschop)
#### Post date: [October 14, 2005, 7:58am UTC](https://forum.kirupa.com/t/if-this-is-loaded-dont-load-is-again/165834/1 "2005-10-14T07:58:56Z")

</div>

Hi fellow Kirupians!

So i’m using xml and flash. After the images have been defined.  
I use this code to load them:

MovieClip.prototype.buildFunctions = function() {  
this.onPress = function() {  
mcIcontainer.\_alpha = 0;  
mcPreloader.gotoAndPlay(2);  
mcIcontainer.loadMovie(this.image);  
this.mcContainer.xmlThumb.btItem.gotoAndStop(20);  
txtDesc.text = this.desc;  
this.onRollOver = false;  
};  
this.onRollOver = function() {  
frameNumber = this.mcContainer.xmlThumb.btItem.\_currentframe;  
if (frameNumber\>=20) {  
this.mcContainer.xmlThumb.btItem.gotoAndStop(20);  
info.text = this.cname;  
} else {  
this.mcContainer.xmlThumb.btItem.gotoAndPlay(2);  
txtInfo.text = this.cname;  
}  
};  
};

So my problem is how can i stop it from loading what has already been loaded in the container.
