重设对象的深度:setChildIndex

作者: 2010-05-18,05:07 下午 周二

setChildIndex的方法格式为:

1
2
3
4
5
6
7
8
9
容器对象.setChildIndex(显示对象, 指定深度);
//置顶的用法
容器对象.setChildIndex(显示对象, (容器对象.numChildren-1));
//置底的用户
容器对象.setChildIndex(显示对象, 0);
//插入到其他显示对象的前面
容器对象.setChildIndex(显示对象,  (容器对象.getChildIndex(其他显示对象)));
//插入到其他显示对象的后面
容器对象.setChildIndex(显示对象,  (容器对象.getChildIndex(其他显示对象) - 1));

相关文章

分类 : FLASH (阅览:) Tags :

评论
2011年7月29日

|:mad:| |:mad:| |:mad:|

Posted by 匿名
留下评论


|:victory:| |:tongue:| |:titter:| |:time:| |:sweat:| |:smile:| |:shy:| |:shocked:| |:sad:| |:mad:| |:lol:| |:kiss:| |:hug:| |:huffy:| |:handshake:| |:cry:| |:call:| |:biggrin:|