0 Replies Latest reply on Mar 13, 2009 2:09 PM by xfer_rdy

    Get the width icons and text of a tree item

    xfer_rdy Level 1
      Hi,

      I'm trying to get the width of the icons and text of a tree item. Hob, gave me the detail on getting the displayobject for the selected item (thx), but the resultant rectangle was not what I expected. It looks more like the rectangle for the tree.

      Tree flash.geom.Rectangle (@a3a3661)
      bottom 306 [0x132]
      bottomRight flash.geom.Point (@69a3c91)
      length 827.6454554940781
      x 769 [0x301]
      y 306 [0x132]
      height 457 [0x1c9]
      left -6 [0xfffffffa]
      right 769 [0x301]
      size flash.geom.Point (@69a3c69)
      length 899.7077303213528
      x 775 [0x307]
      y 457 [0x1c9]
      top -151 [0xffffff69]
      topLeft flash.geom.Point (@7125179)
      length 151.11915828246265
      x -6 [0xfffffffa]
      y -151 [0xffffff69]
      width 775 [0x307]
      x -6 [0xfffffffa]
      y -151 [0xffffff69]


      Item flash.geom.Rectangle (@a3a3191)
      bottom 354 [0x162]
      bottomRight flash.geom.Point (@69a3d09)
      length 850.2029169557112
      x 773 [0x305]
      y 354 [0x162]
      height 457 [0x1c9]
      left -2 [0xfffffffe]
      right 773 [0x305]
      size flash.geom.Point (@69a3ce1)
      length 899.7077303213528
      x 775 [0x307]
      y 457 [0x1c9]
      top -103 [0xffffff99]
      topLeft flash.geom.Point (@69a3cb9)
      length 103.01941564578979
      x -2 [0xfffffffe]
      y -103 [0xffffff99]
      width 775 [0x307]
      x -2 [0xfffffffe]
      y -103 [0xffffff99]