remove all context menu of input html textfield?


hello,

i'm using adobe flash cs6 build small application.

i created input html textfield named "tf" , added 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 want hide context menu in textfield, menu "open link" , "copy link" still displayed:

 

tf.jpg

 

how can remove or hide, disable these context menu when right click on string contains link?

thanks replies !

sorry english. it's bad

may impossible this? can something? :-s

 

i see adobe "in air, there no built-in items" mean?

 

and how use these functions:

 



systemclearmenuitem():contextmenuitem

[static]

contextmenuitem


systemcopylinkmenuitem():contextmenuitem

[static]

contextmenuitem


systemcopymenuitem():contextmenuitem

[static]

contextmenuitem


systemcutmenuitem():contextmenuitem

[static]

contextmenuitem


systemopenlinkmenuitem():contextmenuitem

[static]

contextmenuitem


systempastemenuitem():contextmenuitem

[static]

contextmenuitem


systemselectallmenuitem():contextmenuitem

[static]

contextmenuitem

 

anyone can me ?



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support