3 Replies Latest reply on Nov 24, 2010 1:45 AM by patrickmfp-d3plSg

    Is it possible to have a skinned Menu ?

    patrickmfp-d3plSg

      Hi all,

       

      I must add a Menu with a sub Menu like the Flex4 Component Menu Sample in "Tour de Flex" :

       

      http://tourdeflex.adobe.com/flex4.0/Menu/sample.html :

      <fx:Script>

              <![CDATA[
                  import mx.controls.Menu;
                  import mx.events.FlexEvent;
                  import mx.events.MenuEvent;
                  
                  import skins.TDFPanelSkin;
                  
                  protected var myMenu:Menu; 
                  
                  protected function showHandler(event:MouseEvent):void
                  {
                      myMenu = Menu.createMenu(null, myMenuData, false);
                      myMenu.labelField="@label";
                      myMenu.show(90, 35);
                      myMenu.addEventListener(MenuEvent.CHANGE,onMenuChange);
                  }
      ...

       

      But I must added to it a Skin & a ItemRenderer ... But that works only with spark component isn'it ?

      How can I do that ? Are there an equivalent of this Menu with spark component ?

       

      Regards,

      Sky