as3.0 setChildIndex
setChildIndex常用有以下几种:
置顶:容器.setChildIndex(对象A,容器.numChildren-1);
置底:容器.setChildIndex(对象A,0);
插入对象B的前面:容器.setChildIndex(对象A,容器.getChildIndex(对象B));
插入对象B的后面:容器.setChildIndex(对象A,容器.getChildIndex(对象B)-1);
setChildIndex常用有以下几种:
置顶:容器.setChildIndex(对象A,容器.numChildren-1);
置底:容器.setChildIndex(对象A,0);
插入对象B的前面:容器.setChildIndex(对象A,容器.getChildIndex(对象B));
插入对象B的后面:容器.setChildIndex(对象A,容器.getChildIndex(对象B)-1);