Question
Problem controlling Tree properties in the Model...
I am trying to control a few properties of a Tree component using properties in the Model.<br /><br />For instance, I have the following properties:<br /><br />public var hierarchyTreeOpenItems:Array /* of Object */ = [];<br />public var hierarchyTreeSelectedItems:Array /* of Object */ = [];<br />public var hierarchyTreeFirstVisibleItem:Object;<br /><br />And I reference them like so:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Tree xmlns:mx="http://www.adobe.com/2006/mxml" <br /> width="100%" height="100%" borderStyle="solid" <br /> dataProvider="{__model.hierarchyData}" <br /> firstVisibleItem="{__model.hierarchyTreeFirstVisibleItem}" <br /> openItems="{__model.hierarchyTreeOpenItems}" <br /> selectedItems="{__model.hierarchyTreeSelectedItems}" /><br /><br />I am setting these properties in a Command triggered by the initialize Event of my Application. The openItems works, but I cannot get the Tree to select the specified items, nor can I get it to scroll to the position of the firstVisibleItem.<br /><br />Any thoughts on why this is happening and how I can get it to work?<br /><br />Thanks.
