RSS
热门关键字:     lash教程   lash  as教程   lash
当前位置 :| 主页>AS教程>AS技巧>

Flash中的鼠标右键

来源:fans8.com 作者: 时间:2008-06-27 点击:

1. 采用ASnative函数检测右键点击。

if (ASnative(800, 2)(2)) {
    // code to execute when the player tries to cheat
}

关于ASnative,是官方未公开放到帮助里的。可以看看这里:http://osflash.org/flashcoders/undocumented/asnative

2. Uza’s Blog里提供了一个JAVASCRIPT与FLASH结合,捕获鼠标右键并且做到屏蔽菜单,响应事件的解决方案(适用Flash/Flex as3)。

此项目的google code地址:http://code.google.com/p/custom-context-menu/

演示地址:http://www.uza.lt/rightclick/


文章来自: 闪客居(www.flashas.net) 详文参考:http://www.flashas.net/html/flashas/ASxiaojiqiao/20080617/3284.html


最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册