Link to home
Start Free TrialLog in
Avatar of yarek
yarekFlag for France

asked on

flex : @ symbol: what's that ?

what is the @ symbol isgnification is FLEX ?

For instance :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
   <mx:XML id="menus">
      <menus>
         <menu label="Fichier">
            <menu label="Ouvrir" />
            <menu label="Sauvegarder" />
            <menu label="Fermer" />
            <menu type="separator" />
            <menu label="Quitter" />
         </menu>
         <menu label="Edition">
            <menu label="Couper" />
            <menu label="Copier" />
            <menu label="Coller" />
         </menu>
      </menus>
   </mx:XML>
   
   <mx:MenuBar dataProvider="{menus.menu}" labelField="@label" right="10" top="10" left="10"/>
   
</mx:Application>
Avatar of LordOfPorts
LordOfPorts
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of julianopolito
julianopolito
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another example:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
   <mx:XML id="menus">
      <menus>
         <menu label="Fichier" name="John">
            <menu label="Ouvrir" name="Mac" />
            <menu label="Sauvegarder"  name="Mary" />
            <menu label="Fermer"  name="Zak"/>
            <menu type="separator" />
            <menu label="Quitter"  name="Peter" />
         </menu>
         <menu label="Edition" name="Orson">
            <menu label="Couper" name="Jack" />
            <menu label="Copier" name="Gabriel" />
            <menu label="Coller" name="Sam" />
         </menu>
      </menus>
   </mx:XML>
   
   <mx:MenuBar dataProvider="{menus.menu}" labelField="@name" right="10" top="10" left="10"/>
   
</mx:Application>


In this case instead of menu items named with label, they will be labeled with names. Try it.