# Attached mc doesn't work

**URL:** <https://forum.kirupa.com/t/attached-mc-doesnt-work/320682>\
**Category:** flash\
**Created:** [March 30, 2011, 7:55am UTC](https://forum.kirupa.com/t/attached-mc-doesnt-work/320682 "2011-03-30T07:55:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![12abhi12](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@12abhi12](https://forum.kirupa.com/u/12abhi12)\
**Post date:** [March 30, 2011, 7:55am UTC](https://forum.kirupa.com/t/attached-mc-doesnt-work/320682/1 "2011-03-30T07:55:46Z")

</div>

I attached an mc to the main timeline using the code _\_root.attachMovie(loader,loader,depth + 5,{\_x:(Stage.width / 2), \_y:(Stage.height / 2)});_ where loader is a variable which contains the name of the movie. The mc is successfully attached but whenever I try to code something to it it doesn’t work. (For Example, In mc.onRollOver = function the function doesn’t get executed) I don’t know why this isn’t working. Can somebody help me?
