# Preloading linked MC from library

**URL:** <https://forum.kirupa.com/t/preloading-linked-mc-from-library/119372>\
**Category:** Uncategorized\
**Created:** [August 13, 2004, 11:39pm UTC](https://forum.kirupa.com/t/preloading-linked-mc-from-library/119372 "2004-08-13T23:39:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ken\_harper](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ken_harper/32/691_2.png) [@ken\_harper](https://forum.kirupa.com/u/ken_harper)\
**Post date:** [August 13, 2004, 11:39pm UTC](https://forum.kirupa.com/t/preloading-linked-mc-from-library/119372/1 "2004-08-13T23:39:13Z")

</div>

I am using a panel slider that calls MC’s in the library to create separate panels. I have been attempting a pre-loader in each MC in the library that the slider calls.

Inside each MC I am loading an external JPG into another MC holing clip and the following code is attached to that MC(to watch the loading):

onClipEvent (enterFrame) {  
if (!loaded && this.\_url != \_root.\_url) {  
if (this.getBytesLoaded() == this.getBytesTotal()) {  
loaded = true;  
\_root.slider.panel2.gotoAndPlay(“rollback”);  
}  
}  
}

I understand that “.slider.panel2” may not be the full address to control that clip. What would work?

I have been able to make it work if upon loading it targets the “\_root” and not the individual MC’s.

Whew! Can you help?

In short I am trying to make a old site easily up-dateable for the photographer while keeping the same general look:

[http://chrisstanford.com](http://chrisstanford.com)

Thankful for any help you can offer.

ken

[http://ironcladimages.com](http://ironcladimages.com)
