1 Reply Latest reply on Sep 3, 2012 12:25 AM by aconma

    remove all context menu of input html textfield?

    aconma Level 1

      Hello,

      I'm using adobe flash cs6 to build a small application.

      I created an input html textfield named "tf" and added the following code:

       

      import flash.ui.ContextMenu;

      var blankMenu:ContextMenu = new ContextMenu();

           blankMenu.removeAllItems();

           blankMenu.hideBuiltInItems();

           blankMenu.clipboardMenu = false;

       

      tf.htmlText = '<a href="hello">hello</a>';

      tf.contextMenu = blankMenu;

       

      I just want to hide all context menu in the textfield, but the menu "open link" and "copy link" still displayed:

       

      tf.jpg

       

      How can I remove or hide, disable these context menu when right click on a string that contains link?

      Thanks for all replies !

      Sorry for my English. It's really bad