home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 165 / XENIATGM165.ISO / cddata / upframe.cxt / 00003_topMenu3.swf / scripts / DefineSprite_98 / frame_21 / DoAction.as
Encoding:
Text File  |  2003-03-06  |  877 b   |  41 lines

  1. stop();
  2. sottomenu.onEnterFrame = function()
  3. {
  4.    voceSelOld = _root.voceSel;
  5.    if(this._ymouse > -40)
  6.    {
  7.       if(this._ymouse < -12)
  8.       {
  9.          _root.voceSel = 1;
  10.          this.b_1.play();
  11.          this.b_2.gotoAndStop(1);
  12.          _root.calldesc(5);
  13.       }
  14.       else if(this._ymouse < 4)
  15.       {
  16.          _root.voceSel = 2;
  17.          this.b_1.gotoAndStop(1);
  18.          this.b_2.play();
  19.          _root.calldesc(6);
  20.       }
  21.       else
  22.       {
  23.          _root.voceSel = null;
  24.          this.b_1.gotoAndStop(1);
  25.          this.b_2.gotoAndStop(1);
  26.          _root.calldesc(0);
  27.       }
  28.       if(voceSelOld != _root.voceSel && _root.voceSel != null)
  29.       {
  30.          _root.s2.start(0,0);
  31.       }
  32.    }
  33.    else
  34.    {
  35.       _root.voceSel = null;
  36.       _root.calldesc(0);
  37.       this.b_1.gotoAndStop(1);
  38.       this.b_2.gotoAndStop(1);
  39.    }
  40. };
  41.