loadMovie nightmare; button inside MC loading problems

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 :stuck_out_tongue:

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

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:

Nice one. Just what I wanted. Works now.

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

Thanks again