flash新增右鍵選單功能

2021-05-09 16:10:07 字數 431 閱讀 6443

今天操作flash了,要將flash新增乙個右鍵選單在裡面顯示鏈結,從而鏈結到相應的網頁上面:

下面是實現的**。如果使用者想新增多個選單那就push多個物件便可:

rightmenu = new contextmenu();

rightmenu.hidebuiltinitems();

rightmenu.customitems.push(new contextmenuitem('技術支援:天揚網路', dj_menu0, false));

rightmenu.customitems.push(new contextmenuitem('河南昶天投資擔保公司', dj_menu1, false));

function dj_menu0()

function dj_menu1()

_root.menu = rightmenu;

新增右鍵選單

在右鍵選單中新增 壓縮 和 解壓 選單,壓縮和解壓時自動加密。0 準備工作 1 建立.reg檔案 分別建立壓縮和解壓選單登錄檔檔案 compression.reg decompression.reg compression.reg windows registry editor version 5....

右鍵 新增Git Bash Here選單

步驟 1 通過在 執行 中輸入 regedit 開啟登錄檔。2 找到 hkey classes root directory background 3 在 background 下如果沒有 shell 則右鍵 新建項 shell 4 在 shell 下右鍵 新建項 open in git 其值為 g...

右鍵 新增Git Bash Here選單

步驟 1 通過在 執行 中輸入 regedit 開啟登錄檔。2 找到 hkey classes root directory background 3 在 background 下如果沒有 shell 則右鍵 新建項 shell 4 在 shell 下右鍵 新建項 open in git 其值為 g...