Flex2 a MenuBar with toggled menuitems

June 21st, 2006

The MenuBar and Menu components of the Flex2 framework are nice tools in creating standard business applications. As you look through the examples located in the documentation you might find some issues with the <menuitem/> model attributes. You can define the menuitem’s nodes with the ability to show a check mark or radio dot next to the menuitems. This is done through the attribute “type”. If you click on these menuitems they will display the check mark or radio dot next to the menuitem.

Now in most applications you will want to define the defaults of the menuitems. The documentation does not shed a lot of help on this. So I decided to find the name of the attribute of menuitem that defines the state of the check mark or radio dot. “selected” or “checked” did not work but after using some debug script I was able to find the mystery attribute. It was called “toggled”. Check out the source code, it shows the toggled attribute being used and also some debug code to further learn about the menuitem XML node structure.

http://renaun.com/flex2/MenuBarToggleExample/

Toggled is new to me, wonder if it has found it self in the Flex2 framework in other places as well?

Entry Filed under: Adobe Flex, General

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

June 2006
S M T W T F S
« May   Jul »
 123
45678910
11121314151617
18192021222324
252627282930  

Most Recent Posts


Flex.org - The Directory for Flex