I am using AIR HTML Component. The HTML component using an html file. The html file contains just a single image.
When I click on the image and drag it to the desktop , the image background color is changing it dim.
Also when I right click on the image "Copy Image" button is coming.
How to avoid both?
you mean copy as button click?
CopiedTxt = document.selection.createRange(); CopiedTxt.execCommand("Copy");
I hope I help you. and that you use html with ajax in dreamweaver?
To prevent the image from bing selectable or draggable, set the CSS properties: -webkit-user-drag and/or -webkit-user-select.
To stop the default context menu from appearing, you have to listen for the contextmenu event and call preventDefault(). (See http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7de2.html).
This has solved the problem.