0 Replies Latest reply on Feb 1, 2011 5:18 PM by Seglespaan

    getting children of tile list

    Seglespaan Level 1

      Hi,

       

      I have a tile list as follows, if i want to hide the third item in the tile list how can i do so? I can't seem to target the children of the list.

       

      <mx:TileList x="1" y="1" height="568" width="98"

      id="palette_list"

      dataProvider="{Application.application.dataModel.shapes}"

      dragEnabled="true"

              dropEnabled="true"

              dragMoveEnabled="true"

              dragDrop="reorderShapes(event)"

              columnWidth="95"

              rowHeight="45"

              horizontalScrollPolicy="off"

              themeColor="0xcccccc"

              liveScrolling="true">

      <mx:itemRenderer>

      <mx:Component>

      <mx:HBox width="100%" height="45" horizontalScrollPolicy="off" verticalScrollPolicy="off" useHandCursor="true" buttonMode="true" mouseChildren="false">

      <mx:Image height="36" width="36" source="{data.imageSource}"/>

      <mx:Text height="36" leading="-1" fontSize="8.7" width="50" textAlign="left" text="{data.text}"/>

      </mx:HBox>

      </mx:Component>

      </mx:itemRenderer>

      </mx:TileList>