# Finicky attachMovie script

**URL:** https://forum.kirupa.com/t/finicky-attachmovie-script/132853
**Category:** Uncategorized
**Created:** [January 2, 2005, 10:34pm UTC](https://forum.kirupa.com/t/finicky-attachmovie-script/132853 "2005-01-02T22:34:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ellare](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@ellare](https://forum.kirupa.com/u/ellare)
#### Post date: [January 2, 2005, 10:34pm UTC](https://forum.kirupa.com/t/finicky-attachmovie-script/132853/1 "2005-01-02T22:34:21Z")

</div>

this script does not work:  
\_root.hover\_mc.attachMovie(“BJ\_name\_text\_mc”, “hover\_mc”, 0);

this script works:  
\_root.hover\_mc.attachMovie(“BJ\_companion\_text\_mc”, “hover\_mc”, 0);

why ???

i have hover\_mc on the main timeline - \_root.

when user clicks a button, i want “BJ\_companion\_text\_mc”, an internal MC, to appear inside hover\_mc blank box.

it was working fine. now its not and the only text\_mc that is working is “BJ\_companion\_text\_mc” now

**can someone please explain how attachMovie works?**

i know that it will attach a movie to a desired location without that movie clip having to be placed on the stage. thats what i want. but why does one work and one does not ?

i have set the linkage on ALL of my \_text\_mc’s. their linkage names are the same as thier movieclip names. (companion\_text\_mc is this way as well and it works fine). they are not placed anywhere except in the libary so therefore do not have instance names. besides, doesnt attachMovie give it an instance name?

i would attach my FLA but its too big. i tried zipping it - still too big

any help greatly appreciated  
must be something to do with settings on my \_text\_mc’s

could this also maybe have something to do with the layers of the main time line ? i have hover\_mc as the top most layer

thank you so so much…  
ellare
