添加右键属性

 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" fontSize="12">
 <mx:Script>
  <![CDATA[
   import mx.controls.Alert;
   private function addRight():void{
    var rightMenu:ContextMenu=new ContextMenu();
    rightMenu.hideBuiltInItems();
    var item:ContextMenuItem=new ContextMenuItem("关于作者");
    item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,msg);
    contextMenu.customItems.push(item);
    this.contextMenu=contextMenu;
   }
   private function msg(event:ContextMenuEvent):void{
    Alert.show("http://www.ximi.cn");
   }
  ]]>
 </mx:Script>
 <mx:Button label="点击我,再右击鼠标" click="addRight();"/>
</mx:Application>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
一键添加,实用方便,方便需要的人。 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\AdvSysProp] @=hex(2):fb,7c,df,7e,5e,5c,27,60,2e,00,2e,00,2e,00,00,00 "Icon"="cliconfg.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\AdvSysProp\command] @=hex(2):63,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,20,00,73,00,79,00,73,00,64,\ 00,6d,00,2e,00,63,00,70,00,6c,00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices] @=hex(2):be,8b,07,59,a1,7b,06,74,68,56,2e,00,2e,00,2e,00,00,00 "SuppressionPolicy"=dword:4000003c "Icon"="DeviceProperties.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Devices\command] @=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73,\ 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00,\ 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\ 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\ 32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,00,6d,00,73,00,63,\ 00,20,00,2f,00,73,00,00,00 [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\GoldMode] @=hex(2):0a,4e,1d,5e,21,6a,0f,5f,2e,00,2e,00,2e,00,00,00 "Icon"="control.exe" [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\GoldMode\command] @=hex(2):65,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,20,00,73,00,68,00,65,\ 00,6c,00,6c,00,3a,00,3a,00,3a,00,7b,00,45,00,44,00,37,00,42,00,41,00,34,00,\ 37,00,30,00,2d,00,38,00,45,00,35,00,34,00,2d,00,34,00,36,00,35,00,45,00,2d,\ 00,38,00,32,00,35,00,43,00,2d,00,39,00,39,00,37,00,31,00,32,00,30,00,34,00,\ 33,00,45,00,30,00,31,00,43,00,7d,00,00,00
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值