flash游戏右键功能

来源:互联网 发布:我的世界服务器端编程 编辑:程序博客网 时间:2024/06/06 15:03

Theidea is fairly simple:

这个想法是相当简单的:

1-Use Javascript in the HTML container page todisable the right-click on top of the SWF.

1使用Javascript的HTML容器页面来禁用右键单击顶部的SWF。

2-Capture the event and pass it to a functionthat communicates with Flash via the ExternalInterface

2捕获事件并将其传递给一个函数,与Flash通过外部接口

3-In Actionscript the function called fromJavascript does whatever you need to display your own customcontext-menu.

3在Actionscript调用的函数从Javascript做任何你需要显示自己的自定义右键菜单。

Check out the download sectionfor source code and working demo.

检查下载部分获得源代码和工作演示。

Flash右键解决方案

google code上找到的一个开源项目:http://code.google.com/p/custom-context-menu/

看看效果: http://www.as4game.com/example/rightclick

 

flash 控件(支持右键菜单隐藏 以及右键事件,注意 如使用右键功能 则不支持Opera浏览器不适用右键功能时符合所有浏览器) 版本 1.0

=====================下面自己网盘的下载地址=========================

http://pan.baidu.com/share/link?shareid=128031&uk=3171813163

0 0
原创粉丝点击