Passing attachMovie arguments

Can anyone help me with this:

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


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


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

Any help greatly appreciated!