# Attaching MC to \_level1

**URL:** <https://forum.kirupa.com/t/attaching-mc-to--level1/245589>\
**Category:** flash\
**Created:** [December 1, 2007, 10:53am UTC](https://forum.kirupa.com/t/attaching-mc-to--level1/245589 "2007-12-01T10:53:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [December 1, 2007, 10:53am UTC](https://forum.kirupa.com/t/attaching-mc-to--level1/245589/1 "2007-12-01T10:53:27Z")

</div>

Hi Guys,

I want to attach my movie clip to \_level1  
my code is as follows:

var a:Number = Stage.width/2;  
var b:Number = Stage.height/2;

function attach (){  
this.attachMovie(“hitarea”,“hitarea\_mc”,10,{\_x:a,\_y:b});

}

hit\_mc.onRelease = function(){  
attach();  
}

I thought \_level1.attachMovie(etc,etc); would work … but it doesnt. Can anyone point me in the right way? Thanks!!:pirate3:
