1 Reply Latest reply on Oct 13, 2006 3:04 AM by comicfish

    AS2.0 FLASH ContextMenu V0.7

    comicfish
      //some sample styles
      //windows98 style
      var style_1:Object={
      RoundCorner:0,
      BackColor:[0xD4D0C8],
      BackAlpha:[100],
      BackRatios:[0,255],
      BackColorRadius:1.57,
      OutLineColor:0xD4D0C8,
      lineWidth:2,
      ItemRadius:0,
      ItemLabeColor:0x000000,
      ItemLabelSelectedColor:0xffffffff,
      ItemLabelBackColor:0x000066,
      OpenBevel:true,
      BevelLightColor:0xffffff,
      BevelDarkColor:0x666666,
      OpenShadow:true,
      arealineColor:0x666666,
      arealineShadow:0xffffff,
      EffectID:0
      }
      //windows2000 style
      var style_2:Object={
      RoundCorner:0,
      BackColor:[0xD4D0C8,0x999999],
      BackAlpha:[100,100],
      BackRatios:[0,255],
      BackColorRadius:1.57,
      OutLineColor:0xD4D0C8,
      lineWidth:2,
      ItemRadius:0,
      ItemLabeColor:0x000000,
      ItemLabelSelectedColor:0xffffffff,
      ItemLabelBackColor:0x000066,
      OpenBevel:true,
      BevelLightColor:0xffffff,
      BevelDarkColor:0x666666,
      OpenShadow:true,
      arealineColor:0x666666,
      arealineShadow:0xffffff,
      EffectID:0
      }
      //digibook2006 style( http://www.download-digibook.cn/download/soft/DigiBook_10.2.1.1.exe)
      var style_3:Object={
      RoundCorner:10,
      BackColor:[0x2B73B4,0x5091CD],
      BackAlpha:[100,100],
      BackRatios:[230,255],
      BackColorRadius:1.57,
      OutLineColor:0xD4D0C8,
      lineWidth:0,
      ItemRadius:10,
      ItemLabeColor:0xffffff,
      ItemLabelSelectedColor:0xffffffff,
      ItemLabelBackColor:0x730000,
      OpenBevel:false,
      BevelLightColor:0xffffff,
      BevelDarkColor:0x666666,
      OpenShadow:true,
      arealineColor:0x666666,
      arealineShadow:0xffffff,
      EffectID:0
      };
      //none style
      var style_4:Object={
      RoundCorner:0,
      BackColor:[0xD4D0C8],
      BackAlpha:[100],
      BackRatios:[0,255],
      BackColorRadius:1.57,
      OutLineColor:0x666666,
      lineWidth:1,
      ItemRadius:0,
      ItemLabeColor:0x000000,
      ItemLabelSelectedColor:0xffffffff,
      ItemLabelBackColor:0x333399,
      OpenBevel:false,
      BevelLightColor:0xffffff,
      BevelDarkColor:0x666666,
      OpenShadow:false,
      arealineColor:0x666666,
      arealineShadow:0xffffff,
      EffectID:0
      }

      /*BuildMenu(menuItem_xml,true,style,this);
      "true" can open the openMenu Effect
      "style"=style_1//or style_2 or style_3.....
      "this" is Menu onClick Message send to target mc
      */
      Sample is here
        • 1. Re: AS2.0 FLASH ContextMenu V0.7
          comicfish Level 1
          //XML's format
          <Menu>
          <item labeltext="放大" checked="false" />
          <item labeltext="缩小" checked="false" />
          <item labeltext="" checked="true" />
          <item labeltext="品质" checked="false">
          <childMenu>
          <item labeltext="低" checked="false" />
          <item labeltext="中等" checked="false" />
          <item labeltext="高" checked="true" />
          </childMenu>
          </item>
          </Menu>