zoukankan      html  css  js  c++  java
  • Flex 4 不同主题下容器子元素的管理方法

    Flex 下,容器主要分两类:Spark容器, Halo容器。

    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( )

    swapChildrenAt( )

    交换连个子节点的索引。

  • 相关阅读:
    字串变换
    重建道路
    poj3278 Catch That Cow
    机器人搬重物
    [HNOI2004]打鼹鼠
    曼哈顿距离
    邮票面值设计
    poj1101 The Game
    解决了一个堆破坏问题
    模型资源从无到有一条龙式体验
  • 原文地址:https://www.cnblogs.com/huixun/p/3187545.html
Copyright © 2011-2022 走看看