# Attaching Movies

**URL:** <https://forum.kirupa.com/t/attaching-movies/227711>\
**Category:** flash\
**Created:** [June 1, 2007, 1:06pm UTC](https://forum.kirupa.com/t/attaching-movies/227711 "2007-06-01T13:06:41Z")\
**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:** [June 1, 2007, 1:06pm UTC](https://forum.kirupa.com/t/attaching-movies/227711/1 "2007-06-01T13:06:41Z")

</div>

I am having problems accessing a button after I have attached it to the stage from the library…

My code is as such:

map\_mc.onRelease = function(){  
empty\_mc.attachMovie(“map\_functions”,“map\_close”,this.getNextHighestDepth());  
}  
empty\_mc.map\_close.close\_mc.onRollOver = function(){  
this.colorTo(0x20AEAE,1.5);  
}

On the rollover - the movie recognises nothing as executable.

OK \>\> Yes - I have linked in the properties, an identifier for AS Export … for the original map\_functions, inside it is an MC called close\_mc - This MC is linked for AS Export as close\_mc

…Why is this not working?

PS. the function calls are from Lacos Tween engine.

Any Advice would be great …
