# I cant attach runtime shared MC into the loaded MC.. WHY!

**URL:** <https://forum.kirupa.com/t/i-cant-attach-runtime-shared-mc-into-the-loaded-mc-why/32890>\
**Category:** Uncategorized\
**Created:** [October 12, 2003, 10:08pm UTC](https://forum.kirupa.com/t/i-cant-attach-runtime-shared-mc-into-the-loaded-mc-why/32890 "2003-10-12T22:08:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deril](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/deril/32/63_2.png) [@Deril](https://forum.kirupa.com/u/Deril)\
**Post date:** [October 12, 2003, 10:08pm UTC](https://forum.kirupa.com/t/i-cant-attach-runtime-shared-mc-into-the-loaded-mc-why/32890/1 "2003-10-12T22:08:00Z")

</div>

Hello,

I am creating flash game, and I have a litle problem,

1:I create Empty MC;  
2:load MC in it  
3:wait this MC to load  
4:create enother Empty MC inside  
5:then I am attaching inported for runtime sharing MC

I checked all steps … everythinf is ok, exept 5’th step… ☹

/// this works fine  
\_root.createEmptyMovieClip(“test1”, 1);  
\_root.test1.attachMovie(‘s1’, ‘t1’, 0);

////  
\_root.createEmptyMovieClip(“test2”, 2);  
\_root.test2.loadMovie(‘load.swf’);  
//  
int\_load = setInterval(function () {  
if (\_root.test2.getBytesLoaded() == \_root.test2.getBytesTotal()) {  
\_root.test2.createEmptyMovieClip(“test3”, 0);

//THIS LINE IS NOT WORKING…  
\_root.test2.test3.attachMovie(‘s1’, ‘t1’, 0);

clearInterval(int\_load);  
}  
}, 100);  
//

I attached my test files,  
(flashmx2004)

if someone could explain is it a bug… or what…

thanks for your time.

best regards;  
Deril
