camcim
12-27-2006, 12:10 AM
Hi,
Can anyone lead me in the right direction when it comes to page navigation via a tree menu?
If I have the following:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" viewSourceURL="src/index.html">
<mx:Tree id="tree1" dataProvider="{MailBox}" labelField="@label" showRoot="true" width="160"/>
<mx:XMLListCollection id="MailBox" source="{Folders}"/>
<mx:XMLList id="Folders">
<folder label="Mail">
<folder label="INBOX"/>
<folder label="Sent" />
<folder label="Trash" />
</folder>
</mx:XMLList>
</mx:Application>
how can i add a viewStack that would change depending on what node was active? Ie. If INBOX was clicked it would display that stack and so on.
Cheers
Can anyone lead me in the right direction when it comes to page navigation via a tree menu?
If I have the following:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" viewSourceURL="src/index.html">
<mx:Tree id="tree1" dataProvider="{MailBox}" labelField="@label" showRoot="true" width="160"/>
<mx:XMLListCollection id="MailBox" source="{Folders}"/>
<mx:XMLList id="Folders">
<folder label="Mail">
<folder label="INBOX"/>
<folder label="Sent" />
<folder label="Trash" />
</folder>
</mx:XMLList>
</mx:Application>
how can i add a viewStack that would change depending on what node was active? Ie. If INBOX was clicked it would display that stack and so on.
Cheers