0 Replies Latest reply on Jun 23, 2011 4:38 AM by Sarfraz07

    Context Menu is not working in flash player 10.1

    Sarfraz07

      I write a flex application. I added some custom menu items in context menu. when I compiled this code using flashplayer 10.0, it works fine and my added context menu items are shown when I Right-Click. But when I compile same code for flashPlayer 10.1, menu items that I added in context menu are not shown when I Right-Click. What should I do to resolve this issue? I am using sdk 3.5.

      Any help or suggestion will be appreciated.

      I am doing this;

       

       

          private var cm:ContextMenu = new ContextMenu();        
         
      var versionMenu:ContextMenuItem = null;
         
      var dateMenu:ContextMenuItem = null;
         
      if(model.appVersion.length > 0)
         
      {
            versionMenu
      = new ContextMenuItem(model.appVersion);
         
      }
         
      if(model.releaseDate.length > 0)
         
      {
            dateMenu
      = new ContextMenuItem(model.releaseDate);
         
      }

           cm
      .hideBuiltInItems();
          
      var cmArray:Array = new Array();
          
      if(versionMenu != null)
             cmArray
      .push(versionMenu);
          
      if(dateMenu != null)
             cmArray
      .push(dateMenu);
           cm
      .customItems = cmArray;

      Thanks.