DisplayObjectContainer
所有容器的父类
1 添加 删除 子对象
2 访问子对象
3 检测子对象
4 设置叠放次序
Sprite 继承自DisplayObjectContainer且只新增了一个graphics功能
删除操作
if( spr.parent ) {
spr.parent.removeChild( spr );
}
对象个数 numChildren
和深度相关的方法
addChild addChildAt removeChild removeChildAt removeChildren
swapChildren() swapChildrenAt()
setChildIndex( o, index ) ;
 
getChildAt() 推荐用深度来找 而不是名字 
getChildByName()

相关文章:

  • 2021-10-04
  • 2021-08-26
  • 2022-02-04
  • 2021-12-21
  • 2021-09-05
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
相关资源
相似解决方案