Sunday, 05 September 2010
 
  Home arrow Tech Articles arrow Web Dev arrow Flex 3 MenuBar and MenuItem style
template designed by Joomla-templates.com
 
Main Menu
Home
Links
Tech Articles
Blog
Server Information
Flex 3 MenuBar and MenuItem style PDF Print E-mail
Written by Chad   
Saturday, 08 May 2010

This one has plagued me for a while. I'm not quite sure why Adobe chose to do this. The background color never impacted the actual MenuBar previously and it doesn't now as far as I can tell. Anyway, the solution is posted on Adobe's forum someplace, but it is sort of obscure. 

The answer is to define your MenuBar in the MXML like such:

<mx:MenuBar id="myMenuBar" labelField="@label" menuStyleName="menuStyleName" styleName="menuStyleName">

Notice that BOTH the menuStyleName and the styleName are set.

Then your CSS file needs:

.menuStyleName {
   backgroundColor: #ff0000;
}

Hope that helps!

Last Updated ( Friday, 21 May 2010 )
 
< Prev   Next >
Server Uptime

© 2010 Chad Jorgenson
Joomla! is Free Software released under the GNU/GPL License.

Get The Best Free Joomla Templates at www.joomla-templates.com