# loadMovie nightmare; button inside MC loading problems

**URL:** <https://forum.kirupa.com/t/loadmovie-nightmare-button-inside-mc-loading-problems/7739>\
**Category:** flash\
**Created:** [November 6, 2002, 7:24pm UTC](https://forum.kirupa.com/t/loadmovie-nightmare-button-inside-mc-loading-problems/7739 "2002-11-06T19:24:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://forum.kirupa.com/u/Marc)\
**Post date:** [November 6, 2002, 7:24pm UTC](https://forum.kirupa.com/t/loadmovie-nightmare-button-inside-mc-loading-problems/7739/1 "2002-11-06T19:24:50Z")

</div>

Hello,

I’ve been having a right nightmare with this one. Someone please save me.

So here goes:

I’ve created a dragable MC with a button assigned the following AS:

on (release) {  
container.loadMovie(“test.swf”, 2);  
container.\_y = 45;  
container.\_x = 184;  
}

When I publish, the button does not load test.swf. I have created a blank MC ‘container’ for test.swf to load to but I need the button to be inside of the dragable MC. The .swf loads when the ‘container’ is cut and pasted into the dragable MC but to my novice suprise the .swf and the MC would be now both dragable 😛

My question is how do I load the .swf with this button inside of the MC and the ‘container’ outside?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 8:32pm UTC](https://forum.kirupa.com/t/loadmovie-nightmare-button-inside-mc-loading-problems/7739/2 "2002-11-06T20:32:08Z")

</div>

Use this

\<hr\>

on (release) {  
\_level0.container.loadMovie(“test.swf”, 2);  
\_level0.container.\_y = 45;  
\_level0.container.\_x = 184;  
}

\<hr\>

it was looking for a mc called container on the same level it think so this references it to the right level?? Please tell me if my logic is wrong peeps.

Anyway tested and tried:cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 6, 2002, 8:41pm UTC](https://forum.kirupa.com/t/loadmovie-nightmare-button-inside-mc-loading-problems/7739/3 "2002-11-06T20:41:28Z")

</div>

Nice one. Just what I wanted. Works now.

This levels thing is new to me. I must buy a book on AS.

Thanks again
