# loadClip drops my attachMovie's initObjects - help!

**URL:** <https://forum.kirupa.com/t/loadclip-drops-my-attachmovies-initobjects-help/213638>\
**Category:** flash\
**Created:** [January 21, 2007, 11:24pm UTC](https://forum.kirupa.com/t/loadclip-drops-my-attachmovies-initobjects-help/213638 "2007-01-21T23:24:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HD600](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HD600](https://forum.kirupa.com/u/HD600)\
**Post date:** [January 21, 2007, 11:24pm UTC](https://forum.kirupa.com/t/loadclip-drops-my-attachmovies-initobjects-help/213638/1 "2007-01-21T23:24:37Z")

</div>

Can anyone please tell me why when I use **attachMovie** with some _initObjects_ and then use **loadClip** to load something into the attached movie, the initObjects get dropped/_undefined_?

```auto

[COLOR="Blue"]var[/COLOR] mclListener:Object = [COLOR="Blue"]new Object()[/COLOR];
mcLoader.[COLOR="Blue"]addListener[/COLOR](mclListener);

mc.[COLOR="Blue"]attachMovie[/COLOR]("emptyMC", "thumb"+i, mc.[COLOR="Blue"]getNextHighestDepth()[/COLOR], {pieceName:thumbName});
trace(mc["thumb"+i].pieceName); [COLOR="Gray"]//outputs the pieceName correctly, even when mc["thumb"+i] is made into a button with a *'trace(this.pieceName)'* on it.[/COLOR]

mcLoader.[COLOR="Blue"]loadClip[/COLOR]("thumb.jpg", mc["thumb"+i]);
mclListener.[COLOR="Blue"]onLoadInit[/COLOR] = [COLOR="Blue"]function[/COLOR](mc:[COLOR="Blue"]MovieClip[/COLOR]) {
    trace(mc); [COLOR="Gray"]//outputs *mc* correctly.[/COLOR]
    trace(mc.pieceName); [COLOR="Gray"]//outputs *'undefined'*.[/COLOR]
}

```

many thanks!
