0 Replies Latest reply on Mar 7, 2007 11:40 AM by lli123

    Not all of the items will be hide with hideBuiltInItems()

    lli123 Level 1
      I am use use ActiveScript 3.0 for Flex and try to only show the print in the menu by code as:
      (I am run the Flex application from the Flex builder.)

      Application.application.contextMenu.hideBuiltInItems();
      Application.application.contextMenu.builtInItems.print = true;

      or
      var my_cm:ContextMenu = new ContextMenu();
      my_cm.hideBuiltInItems();
      my_cm.print = true;
      this.contextMenu=my_cm;

      But I always get menu items:
      1. View Source
      2. Zoom In
      3. Zoom out (disabled)
      4. View All
      5. Settings
      6.Show Redraw Regios
      7. Debugger (disabled)
      8. About Adobe Flash Player 9...

      Anybody has idea?

      Thanks,
      lucy