[flash]如何设置显示对象放到最上层

如何设置显示对象放到最上层

function clicked(event:MouseEvent):void{
	var circle:Sprite = Sprite(event.target);
	var topPosition:uint = container.numChildren - 1;
	container.setChildIndex(circle, topPosition);
}

你可能感兴趣的:(Flash)