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

  1. stop();
  2. sottomenu.onEnterFrame = function()
  3. {
  4.    voceSelOld = _root.voceSel;
  5.    if(this._ymouse > -40)
  6.    {
  7.       if(this._ymouse < -23)
  8.       {
  9.          _root.voceSel = 1;
  10.          this.b_1.play();
  11.          this.b_2.gotoAndStop(1);
  12.          this.b_3.gotoAndStop(1);
  13.          this.b_4.gotoAndStop(1);
  14.          _root.calldesc(11);
  15.       }
  16.       else if(this._ymouse < -6.5)
  17.       {
  18.          _root.voceSel = 2;
  19.          this.b_1.gotoAndStop(1);
  20.          this.b_2.play();
  21.          this.b_3.gotoAndStop(1);
  22.          this.b_4.gotoAndStop(1);
  23.          _root.calldesc(12);
  24.       }
  25.       else if(this._ymouse < 10.5)
  26.       {
  27.          _root.voceSel = 3;
  28.          this.b_1.gotoAndStop(1);
  29.          this.b_2.gotoAndStop(1);
  30.          this.b_3.play();
  31.          this.b_4.gotoAndStop(1);
  32.          _root.calldesc(13);
  33.       }
  34.       else
  35.       {
  36.          _root.voceSel = null;
  37.          this.b_1.gotoAndStop(1);
  38.          this.b_2.gotoAndStop(1);
  39.          this.b_3.gotoAndStop(1);
  40.          this.b_4.gotoAndStop(1);
  41.          _root.calldesc(0);
  42.       }
  43.       if(voceSelOld != _root.voceSel && _root.voceSel != null)
  44.       {
  45.          _root.s2.start(0,0);
  46.       }
  47.    }
  48.    else
  49.    {
  50.       _root.calldesc(0);
  51.       this.b_1.gotoAndStop(1);
  52.       this.b_2.gotoAndStop(1);
  53.       this.b_3.gotoAndStop(1);
  54.       this.b_4.gotoAndStop(1);
  55.    }
  56. };
  57.