# Auto click tree component

**URL:** <https://forum.kirupa.com/t/auto-click-tree-component/257585>\
**Category:** flash\
**Created:** [April 15, 2008, 2:11pm UTC](https://forum.kirupa.com/t/auto-click-tree-component/257585 "2008-04-15T14:11:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brendz](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@Brendz](https://forum.kirupa.com/u/Brendz)\
**Post date:** [April 15, 2008, 2:11pm UTC](https://forum.kirupa.com/t/auto-click-tree-component/257585/1 "2008-04-15T14:11:26Z")

</div>

I have a tree component which I have menu of links on. I want on load to auto click the first item (As on change event loads up the content). I have used \_root.myTree.setSelectedIndex(0); which highlights the first one but it don’t click it. There is a on change eventlistener but I can’t use this to trigger the click. Any help would be great!
