Flex 4(Hero)对应Flex 3 容器方法
Spark容器 Halo容器 说明
numElements numChildern 容器的子元素数量。
addElement( ) addChild( ) 为容器添加自元素作为其最后一个子元素。
addElementAt( ) addChildAt( ) 在容器的指定索引上添加子元素。
getChildren( ) 得到所有包含的子元素的数组。
getElementAt( ) getChildAt( ) 得到指定索引上的子元素。
getChildByName( ) 得到带有指定id的子元素。
getElementIndex( ) 得到子元素的索引。
removeAllElements( ) removeAllChildren( ) 删除容器的所有子元素。
removeElement( ) removeChild( ) 删除第一个子元素。
removeElementAt( ) removeChildAt( ) 删除指定索引的子元素。
setElementIndex( ) setChildIndex( ) 是这子元素的索引。
swapElements( ) swapChildren( ) 交换两个子元素的索引。
swapElementsAt( )
猜你喜欢
转载自ylr34ylr.iteye.com/blog/1574421
今日推荐
周排行