将剪辑移动到最高深度

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将剪辑移动到最高深度相关的知识,希望对你有一定的参考价值。

Add this to your Utilities class and use it like Utilities.moveToTop(your_clip);
  1. public static function moveToTop(child:DisplayObject):void{
  2. (child.parent != null) ? child.parent.setChildIndex(child, child.parent.numChildren-1) : null;
  3. }

以上是关于将剪辑移动到最高深度的主要内容,如果未能解决你的问题,请参考以下文章