# MX // Attachmovie, Keystrokes

**URL:** <https://forum.kirupa.com/t/mx-attachmovie-keystrokes/24990>\
**Category:** flash\
**Created:** [July 8, 2003, 4:13am UTC](https://forum.kirupa.com/t/mx-attachmovie-keystrokes/24990 "2003-07-08T04:13:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yonip](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yonip](https://forum.kirupa.com/u/yonip)\
**Post date:** [July 8, 2003, 4:13am UTC](https://forum.kirupa.com/t/mx-attachmovie-keystrokes/24990/1 "2003-07-08T04:13:34Z")

</div>

## Hi, iam having some troubles on using this attachmovie command: This is just the start just for example: \_root.attachMovie(“movie”,“movie1”,1, My question is on how to auto increment the depth of the command everytime it is played.

anwsered my other question searching forums 😃

Thanks alot in advance… :tb:

---

<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:** [July 8, 2003, 5:43am UTC](https://forum.kirupa.com/t/mx-attachmovie-keystrokes/24990/2 "2003-07-08T05:43:20Z")

</div>

```auto
_root.attachMovie("movie","movie1",_root.depth++);

```
