Tree defenition: <mx:Tree id="accountTree" height="100%" width="100%" dataProvider="{accountsData}" labelField="@name" iconFunction="treeIcon" itemClick="onItemClicked(event);" > </mx:Tree>
After the user logs in the following function is being called with success: private function handleGetAccounts(result:XML): Boolean { accountsData = new XMLListCollection(result.act); return true; } After the user clicks on one of the tree node the following function is being called and the tree do not get to be rendered correctly: private function handleGetCampaigns(result:XML): Boolean { if (accountTree.selectedItem != null) { accountTree.selectedItem.setChildren(new XMLListCollection(result.act)); accountTree.expandItem(accountTree.selectedItem,true,true); } return true; } NOTE: the methods are beign called by HTTPService (FLEX 3 beta 2)