# AttachMovieClip not transfering code?

**URL:** <https://forum.kirupa.com/t/attachmovieclip-not-transfering-code/84132>\
**Category:** flash\
**Created:** [March 24, 2005, 9:23pm UTC](https://forum.kirupa.com/t/attachmovieclip-not-transfering-code/84132 "2005-03-24T21:23:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirisian](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Sirisian](https://forum.kirupa.com/u/Sirisian)\
**Post date:** [March 24, 2005, 9:23pm UTC](https://forum.kirupa.com/t/attachmovieclip-not-transfering-code/84132/1 "2005-03-24T21:23:57Z")

</div>

i made a movie clip and made it so when i clikc on it another movie lip is created inside. That movieclip should move forward but is doesn’t. look at the 10 lines of code and try and find a problem. Heres the code if u don’t want to look at the .fla

on the box:

```auto

on (press) {
++i
_root.box.attachMovie(_root.bullet,"bullet"+i,i)
}

```

on the bullet:

```auto

onClipEvent (load) {
this._x = _root.box._x;
this._y = _root.box._y;
}
onClipEvent (enterFrame) {
if (this._name != "bullet") {
this._y -= 5;
}

```

}
