MACROMEDIA FLEX-GETTING STARTED WITH FLEX Manuel d'utilisateur Page 74

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 148
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 73
Menus
Flex also has support for menus, including those that appear
at the top of the window as well as pop-up menus. Exam-
ple 4-16 shows how to create a menu bar along the top of the
window.
Example 4-16. Menu.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:MenuBar labelField="@label">
<mx:XMLList>
<menuitem label="File">
<menuitem label="New" />
<menuitem label="Open"/>
</menuitem>
<menuitem label="Edit"/>
<menuitem label="Source"/>
</mx:XMLList>
</mx:MenuBar>
</mx:Application>
When I run this in Flex Builder I see something similar to
Figure 4-16.
58 | Chapter 4:Flex Controls and Layout
Vue de la page 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 147 148

Commentaires sur ces manuels

Pas de commentaire