Changing index values

Hi - I have created a ‘border’ MC on the timeline.
I then add an MC dynamically with as3.

I want the border mc to be ‘on top’.

When I do

this.setChildIndex(border,2);

I get the error ’ supplied index is out of bounds’ …

Why is this? Can I not swap depths of timeline objects?
Thanks