AS3 setChildIndex置于最前面 [英] AS3 setChildIndex to front

查看:113
本文介绍了AS3 setChildIndex置于最前面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将特定的movieClip发送到舞台上所有其他movieClip的前面?

Is there a way to send a specific movieClip to the front of all other movieClips on stage?

我了解setChildIndex,但是我想不出一种动态计算顶部位置的方法.

I know about setChildIndex, but I can't figure out a way to to calculate the top position dynamically.

推荐答案

您可以将setChildIndex()numChildren一起使用.

setChildIndex(childClip, numChildren - 1);

这篇关于AS3 setChildIndex置于最前面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆