你好,我在基本游戏中有一个视线,我正在尝试开发,我有视线电影剪辑层在图层的顶部,视线出现在其他物体的前面,但是我有气球进入我需要拍摄的舞台,视线出现在气球后面,有谁有这个问题并知道如何解决它吗??我有我的气球在其他swf中,我加载它,当我在actionscript中加载气球时,可以告诉气球去后面的其他电影剪辑??
发布于 2014-01-18 05:07:14
如果要使用addChild(...)将子项添加到舞台在运行时,这些将位于父对象中的所有内容之上。您可以通过以下方法再次将您的视力添加到顶部:
var mySight:MovieClip;
addChild(mySight);//adds the sight on top of other elements inside this parent
//if you still have items on top that means the parent DisplayObjectContainer might have elements on top of it
https://stackoverflow.com/questions/21194411
复制相似问题