getChildIndex() usage

Hi all,

I am trying to get the index of an object which is an instance of a class. I need to get the index from within the class.

So I have an instance of a class. When its clicked I need to get the index. I dont really know how to write this. I tried a few things like:


trace(getChildIndex(this._clip));
trace(parent.getChildIndex(this._clip));
trace(this.getChildIndex());

None of the above will give me the index. Anybody knows how to write this?