注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

yangzh691216的博客

成功止于信念

 
 
 

日志

 
 

Flash添加右键动作  

2013-06-25 10:43:11|  分类: FLASH技巧 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

火鸟工作室欢迎您

 Flash添加右键动作

 

动作:

function dj_menu0()
{
    getURL("
http://yangzh691216.blog.163.com/", "_blank");
} // End of the function
function dj_menu1()
{
    getURL("
http://yangzh691216.blog.163.com/", "_blank");
} // End of the function
function dj_menu2()
{
    System.setClipboard("
http://yangzh691216.blog.163.com/");
} // End of the function
rightMenu = new ContextMenu();
rightMenu.hideBuiltInItems();
rightMenu.customItems.push(new ContextMenuItem("★火鸟工作室欢迎您光临", dj_menu0, false));
rightMenu.customItems.push(new ContextMenuItem("★火鸟工作室音画制作,谢谢欣赏!", dj_menu1, false));
rightMenu.customItems.push(new ContextMenuItem("★点此处复制网址:
http://yangzh691216.blog.163.com/", dj_menu2, false));
_root.menu = rightMenu;
stop ();
 
 
动作2:
function tab()
{
} // End of the function
function url1()
{
    getURL("http://yangzh691216.blog.163.com/", "_blank");
} // End of the function
function tab()
{
} // End of the function
function url2()
{
    getURL("http://yangzh691216.blog.163.com/", "_blank");
} // End of the function
function tab()
{
} // End of the function
function url3()
{
    getURL("http://yangzh691216.svfree.net/index.htm", "_blank");
} // End of the function
function tab()
{
} // End of the function
function url4()
{
    getURL("http://yangzh691216.blog.163.com/blog/#m=0", "_blank");
} // End of the function
function tab()
{
} // End of the function
function url5()
{
    getURL("http://yangzh691216.blog.163.com/profile/?target=note", "_blank");
} // End of the function
function tab()
{
} // End of the function
function url6()
{
    getURL("tencent://message/?uin=1980958925&Site=网易博客&Menu=yes", "_blank");
} // End of the function
function quit1()
{
    fscommand("", "");
} // End of the function
function tab()
{
} // End of the function
function ddiQ(obj, item)
{
    getURL("http://yangzh691216.blog.163.com/", "_blank");
} // End of the function
function zkrmenuf()
{
    var myTW = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true, {title: "z.k.r", contentPath: "zkr", closeButton: true});
    myTW.setSize(320, 300);
    myTW._x = 130;
    myTW._y = 50;
    windowListener = new Object();
    windowListener.click = function (evt)
    {
        myTW.deletePopUp();
    };
    myTW.addEventListener("click", windowListener);
} // End of the function
var bg_sound = new Sound();
bg_sound.start();
bg_sound.onSoundComplete = function ()
{
    bg_sound.start(0, 1);
};
this.btt.onRelease = function ()
{
    if (music != 0)
    {
        var _loc1 = bg_sound.position / 1000;
        bg_sound.start(_loc1);
        btt.play();
        music = 0;
    }
    else
    {
        bg_sound.stop();
        btt.gotoAndStop(2);
        music = 1;
    } // end else if
};
music = 0;
var expandmenu = new ContextMenu();
expandmenu.hideBuiltInItems();
var $tab1 = new ContextMenuItem("【火鸟工作室欢迎您--谢谢!】", url1, true, true, true);
var $tab2 = new ContextMenuItem("【yangzh691216网易博客 】", url2, true, true, true);
var $tab3 = new ContextMenuItem("【火鸟工作室与您一路同行!】", url3, true, true, true);
var $tab4 = new ContextMenuItem("【yangzh691216网易博客日志!】", url4, true, true, true);
var $tab5 = new ContextMenuItem("【点击这里 给火鸟留言】", url5, true, true, true);
var $tab6 = new ContextMenuItem("【火鸟QQ:1980958925】", url6, true, true, true);
var $url5 = new ContextMenuItem("退出", quit1);
expandmenu.customItems.push($tab1, $tab2, $tab3, $tab4, $tab5, $tab6, $url5);
expandmenu.onSelect = menuHandler;
_root.menu = expandmenu;
var Week_array = new Array("星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
var MYDate = new Date();
var year = MYDate.getFullYear();
var month = MYDate.getMonth() + 1;
var date = MYDate.getDate();
var h = MYDate.getHours();
var m = MYDate.getMinutes();
var s = MYDate.getSeconds();
var day = Week_array[MYDate.getDay()];
var DateStr = year + "-" + month + "-" + date + "┃" + h + ":" + m + ":" + s + "┃" + day;
myMenu = new ContextMenu();
expandmenu.customItems.push(new ContextMenuItem("", tab, true, true, true));
expandmenu.customItems.push(new ContextMenuItem(DateStr, ddiQ));
_root.menu = myMenu;
_root.menu = expandmenu;
_root.deng_mc.onRollOver = function ()
{
    start_mc.gotoAndPlay(2);
    startDrag (start_mc, true);
};
_root.deng_mc.onRollOut = function ()
{
    start_mc.gotoAndStop(1);
    startDrag (start_mc, false);
};
_root.deng_mc.onRelease = function ()
{
    huo_mc.gotoAndPlay(2);
};
_root.deng_mc2.onRollOver = function ()
{
    start_mc2.gotoAndPlay(2);
    startDrag (start_mc2, true);
};
_root.deng_mc2.onRollOut = function ()
{
    start_mc2.gotoAndStop(1);
    startDrag (start_mc2, false);
};
_root.deng_mc2.onRelease = function ()
{
    huo_mc2.gotoAndPlay(2);
};
 
 
1。FLASH10以上版本,可新建一个动作层,用矩形工具画一个与舞台一样大的矩形,转换元件为按钮,属性面板里设为透明。然后在第一帧内输入动作脚本。
2。硕思闪客之锤导入SWF文件,新建一层,在第一帧内输入动作脚本。硕思闪客之锤同样要最新版才支持所有版本SWF文件导入。

 

  

 
  评论这张
 
阅读(50)| 评论(0)
推荐

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017