I want to know if I can use a tree and when and i开发者_如何学Pythontem in the tree is clicked the viewstack changes to that certain item?
Yes. Try something like this:
<mx:Tree id="tree" click="viewStack.selectedChild = tree.selectedItem" />
If your dataprovider for the tree does not contain the ViewStack component you're looking for:
- Handle the tree click event
- Match the tree selectedItem to the component you want in the ViewStack
- Set ViewStack.selectedChild to that component
If you still need help, post some code!
精彩评论