# Movieclip undefined

**URL:** <https://forum.kirupa.com/t/movieclip-undefined/42426>\
**Category:** Uncategorized\
**Created:** [February 9, 2004, 4:21am UTC](https://forum.kirupa.com/t/movieclip-undefined/42426 "2004-02-09T04:21:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipspeak](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@pipspeak](https://forum.kirupa.com/u/pipspeak)\
**Post date:** [February 9, 2004, 4:21am UTC](https://forum.kirupa.com/t/movieclip-undefined/42426/1 "2004-02-09T04:21:30Z")

</div>

I’m trying to attach a movie clip to the main stage using:

[AS]  
this.attachMovie(“movieObj”, mc1, 1);  
[/AS]

However, it ain’t showing up. Trace said the movieclip of that name is undefined, despite having the correct linkage and instance name. Anyone know why a movieclip might be MIA? I must be missing something obvious.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 4:26am UTC](https://forum.kirupa.com/t/movieclip-undefined/42426/2 "2004-02-09T04:26:25Z")

</div>

Try:

```auto

this.attachMovie("movieObj", "mc1", 1);

```

You need the instance name of it in quotes too. Refer to your Flash manuel, should be a good explanation there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 4:26am UTC](https://forum.kirupa.com/t/movieclip-undefined/42426/3 "2004-02-09T04:26:49Z")

</div>

try this:

```auto

this.attachMovie("movieObj", "mc1", 1);

```

oops, guess we were typing the same time 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 5:26pm UTC](https://forum.kirupa.com/t/movieclip-undefined/42426/4 "2004-02-09T17:26:29Z")

</div>

tried all possible permutations of name, indentifier, and attachMovie, including creating an empty movie clip and attaching to that etc. In all cases it’s as though the movie clip simply doesn’t exist. The only way I can get it to show up is to drag it onto the main stage.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 5:31pm UTC](https://forum.kirupa.com/t/movieclip-undefined/42426/5 "2004-02-09T17:31:18Z")

</div>

Oops… yes I was missing something obvious… I was trying to attach the movieclip over other clips with multiple depths. I attached the new clip to the root and adjusted the depth to 1000. It now shows up.
