Figure 4-16. An example menu
There
is also a handy control called ApplicationControlBar
that gives a nice-looking control set along the top of the win-
dow. Example 4-17 is the code for a sample ApplicationCon
trolBar.
Example 4-17. Appbar.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:ApplicationControlBar dock="true">
<mx:ButtonBar dataProvider="{['People','Places',
'Things']}" />
</mx:ApplicationControlBar>
</mx:Application>
When I launch this example in Flex Builder I see the nice pre-
sentation shown in Figure 4-17.
Menus | 59
Comments to this Manuals