最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
网站flash右键定制
时间:2022-07-02 17:07:27 编辑:袖梨 来源:一聚教程网
问:有的网站flash右键定制是怎么做的?
终极讨厌:看一个小示例。
var expandmenu = new ContextMenu();
function f1_func() {
tab1.enabled = false;
}
function f2_func() {
tab1.enabled = true;
}
expandmenu.hideBuiltInItems();
var tab1 = new ContextMenuItem("把我变成灰色", f1_func);
var tab2 = new ContextMenuItem("把它变回来", f2_func);
expandmenu.customItems.push(tab1, tab2);
_root.menu = expandmenu;
function f1_func() {
tab1.enabled = false;
}
function f2_func() {
tab1.enabled = true;
}
expandmenu.hideBuiltInItems();
var tab1 = new ContextMenuItem("把我变成灰色", f1_func);
var tab2 = new ContextMenuItem("把它变回来", f2_func);
expandmenu.customItems.push(tab1, tab2);
_root.menu = expandmenu;
相关文章
- 《辐射4》q键使用介绍 04-26
- 《辐射4》人物介绍 04-26
- 《下一站江湖2》风卷残云获得方法 04-26
- 《The Star Named EOS未晓星程》配置要求介绍 04-26
- 《辐射4》设置中文方法 04-26
- 《辐射4》88号避难所终端机一直初始化解决办法 04-26