(Flex SDK4)关于BorderContainer 的addChild/addElement 问题
mySprite.x=0;
mySprite.y=0;
mySprite.graphics.beginFill(0xFFCC00);
mySprite.graphics.drawCircle( 40, 40, 40 );
ui.addChild(mySprite);
bc.addChild(ui);
|
Spark container |
MX container |
Description |
|---|---|---|
|
numElements |
numChildren |
Number of children the container. |
|
addElement() |
addChild() |
Adds a child to the container as the last child. |
|
addElementAt() |
addChildAt() |
Add a child at a specific index in the container. |
|
getChildren() |
Returns an Array containing all children. |
|
|
getElementAt() |
getChildAt() |
Return a child at the specified index. |
|
getChildByName() |
Return a child with the specified id. |
|
|
getElementIndex() |
Returns the index of a child. |
|
|
removeAllElements() |
removeAllChildren() |
Removes all container children. |
|
removeElement() |
removeChild() |
Remove the first child. |
|
removeElementAt() |
removeChildAt() |
Remove the child at the specified index |
|
setElementIndex() |
setChildIndex() |
Set the index of a child. |
|
swapElements() |
swapChildren() |
Swap the indexes of two children |
|
swapElementsAt() |
swapChildrenAt() |
Swap the indexes of two children. |
浙公网安备 33010602011771号