PDA

View Full Version : Drop Down Menu from Navigation Bar


developer-ny
05-01-2009, 07:18 PM
Hello All,

I am very new to flex and would like to create drop down bar from the main navigation panel.
i.e About US has drop down bar People, History, Research etc.

I am using view stack to stack all the items of Navigation Bar. I would appreciate if you could let me know how could I make drop down.

Thanks in advance.

Code is:
<mx:ViewStack id="storeViews" width="100%" height="950" creationPolicy="all">
<HomeView id="homeView" label="Home"
showEffect="WipeDown" hideEffect="WipeUp"
height="549"/>

<AboutUs id="csView" label="About Lab"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<Publications id="eoView1" label="Publications"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<Projects id="eoView2" label="Projects"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<Research id="saView" label="Research News"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<Collaborators id="caView" label="Collaborators"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<main id="ImageView" label="Image Gallary"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<Feedback id="FBView" label="Feedback"
showEffect="WipeDown" hideEffect="WipeUp"
/>

<Peoplecontact id="eoView3" label="PeopleContact"
showEffect="WipeDown" hideEffect="WipeUp"
/>

JeTSpice
05-02-2009, 04:23 AM
you can use a combo box <mx:ComboBox/>.

in this forum, you can wrap your code with [ A S ] and [ / A S ] (without the spaces) and your code will be formatted like this:

like this