title: Flex - How to get Tree itemClick event to mimic itemOpen event?
body: <p>I am using a Tree control with an XMLListContainer dataProvider.... I use an itemOpen event with the following code to update another data provider when a tree folder is opened (using small triangle) - the data provider contains all the <code>&lt;slide /&gt;</code> elements in that particular tree folder...</p>
  
  <pre><code>private function itemOpenEvent(event:TreeEvent):void {          
   slideDP = new XMLListCollection(event.item.elements("slide"));  
   slideDP.refresh();                     
  }
  </code></pre>
  
  <p>If a second folder is opened thumbDP updates fine but when the first folder (or another closed folder) is clicked I want the same behaviour to happen (currently you have to close and reopen the first folder)</p>
  
  <p>So I use a itemClick event - but this fires a ListEvent and I can't work out how to get the child elements from the XMLListContainer as easy... The code below throws an out of bounds exception</p>
  
  <pre><code>private function itemClickEvent(event:ListEvent):void {         
   treeFeed.getItemAt(event.rowIndex);                        
  }
  </code></pre>
  
  <p>Can anyone help? Thanks :)</p>