Movieclip undefined

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.

Try:


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.

try this:


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

oops, guess we were typing the same time :slight_smile:

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.

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.