swapDepths?

Is there anything wrong with this code?


container1.onRelease = function():Void{
    this.swapDepths(_root.getNextHighestDepth());
};

Thanks.