代码如下:
var topPosition:uint = this.numChildren - 1; this.setChildIndex(mytt, topPosition);//mytt,是要置顶的元件