Currently I am working on this little try out project where we use a Tree with XML as a dataprovider. Currently everything is working, but we are trying to create a feature where a user can select which nodes are opend.
<root> <PagesController label="Pages" type="controllers"> <Home label="Home" type="editables" id="1" controllers="pages"/> </PagesController> <UsersController label="Users" type="controllers"> <addAction label="Add" type="actions" controllers="users"/> </UsersController> </root>
The following line of code is working correctly. The only problem is that I want to generate a loop where as3 fills in the PagesController value.
var results:XMLList = XMLList(event.result); FlexGlobals.topLevelApplication.cms.openItems = results..PagesController;
I tried to create a object to replace the PagesController value, but for some reason the openItems property isnt working propper.
Hopefully someone can be helpfull to solve my problem.
OpenItems has to contain exact references to the items, not clones or other
objects with the same properties.
So you maybe have any idea how to do it?
Use e4x queries to get an XMLList of the nodes and set them on openItems.