MenuBar relies on a certain structure of objects, not just strings.  So you could do something like this:

 

<mx:Array>

  <mx:Object label=”Alabama” />

  <mx:Object label=”Alaska” />

  …etc

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
Sent: Thursday, April 21, 2005 11:43 PM
To: flexcoders
Subject: [flexcoders] Menubar source-- only XML? Urgent

 

hai!

   I want to know if only a XML file can be a source for a menubar.. Can a list of array be the source for a menu bar like :

 <mx:MenuBar>
   <mx:dataProvider>
      <mx:Array>
         <mx:String>Alabama</mx:String>
         <mx:String>Alaska</mx:String>
         <mx:String>Arkansas</mx:String>
      </mx:Array>
   </mx:dataProvider>
</mx:MenuBar>

The above code doesnt work..

 

regrds,

nithya


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now



Yahoo! Groups Links

Reply via email to