AS3.0学习手记(3)Flash CS3的深度控制

1

本文作者:LevinChiu  发布于:2007-4-27  分类:flash AS3.0  点击:


var b:mc = new mc();
var c:mcc = new mcc()
this.addChild(b);
this.addChild(c);
c.x=10;
this.addChildAt(c,0)//可以设置深度
this.setChildIndex(c,0)//调整深度 相当于swapDepth()
trace(this.getChildIndex(c));
// 得到深度,相当于getDepth()

trace(stage.numChildren-1)//获取层深的总数

本文标签: 
本文Url: http://levinchiu.com/blog/post/15.html (出自: LevinChiu Personal Official Blog)
我要引用: 点击这里获取该日志的TrackBack引用地址

相关文章:

1 Comments

小梦
得到

Write a comment ?