# Passing attachMovie arguments

**URL:** <https://forum.kirupa.com/t/passing-attachmovie-arguments/178734>\
**Category:** flash\
**Created:** [February 13, 2006, 8:28pm UTC](https://forum.kirupa.com/t/passing-attachmovie-arguments/178734 "2006-02-13T20:28:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prisma](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@prisma](https://forum.kirupa.com/u/prisma)\
**Post date:** [February 13, 2006, 8:28pm UTC](https://forum.kirupa.com/t/passing-attachmovie-arguments/178734/1 "2006-02-13T20:28:39Z")

</div>

Can anyone help me with this:

I can’t get a numeric argument to be passed along with attachMovie.

```auto

for(var i=0;i<someArray.length;i++) {
this.attachMovie("someClip",i,this.getNextHighestDepth(), {n:i});
};

```

and in the someClip class, lets just call it someClass for arguments sake, which extends MovieClip, I just have a constructor like

```auto

public function someClass(n) {
trace(n) // traces undefined
};

```

Any help greatly appreciated!
