home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / WINDOWS / DIALOGS / _tq266.as < prev   
Encoding:
Text File  |  2008-09-26  |  5.4 KB  |  158 lines

  1. package Code.WINDOWS.DIALOGS
  2. {
  3.    import Code.LIB.SOUND._wj196;
  4.    import Code.LIB._ei76;
  5.    import Code.LIB._hu299;
  6.    import Code.LIB._nd174;
  7.    import Code.LIB._nx518;
  8.    import Code.LIB._pw224;
  9.    import Code.OPTIONS._dx111;
  10.    import Code._vy402;
  11.    import flash.events.Event;
  12.    import flash.events.MouseEvent;
  13.    
  14.    public class _tq266 extends _ei76
  15.    {
  16.        
  17.       
  18.       public var iASLButton:_nx518;
  19.       
  20.       public var iOk:_nx518;
  21.       
  22.       public var iAMRButton:_nx518;
  23.       
  24.       private var iMVolume:int;
  25.       
  26.       public var iCancel:_nx518;
  27.       
  28.       private var iSVBckup:int;
  29.       
  30.       public var iASRButton:_nx518;
  31.       
  32.       public var iMVLabel:_pw224;
  33.       
  34.       private var iMVBckup:int;
  35.       
  36.       public var iAMLButton:_nx518;
  37.       
  38.       public var iSVLabel:_pw224;
  39.       
  40.       private var iSVolume:int;
  41.       
  42.       public function _tq266()
  43.       {
  44.          var _loc1_:Array = null;
  45.          this.iSVolume = _nd174._ai238[1].prSVolume * 100;
  46.          this.iMVolume = _nd174._ai238[1].prMVolume * 100;
  47.          this.iSVBckup = this.iSVolume;
  48.          this.iMVBckup = this.iMVolume;
  49.          _loc1_ = [[_vy402._sv520,_dx111.cAqua,490,390,false,0.5,_dx111.TTV2Frame,-8,-15,null,true],[_vy402._ps359,_dx111.iLanguage.strOptions,_dx111.cOrange,40,_hu299.SmallText,130,5,null,true],[_vy402._ps359,_dx111.iLanguage.strSVolume,_dx111.cAqua,24,_hu299.SmallText,20,101,null,true],[_vy402._ps359,this.iSVolume <= 0 ? "off" : this.iSVolume.toString(),_dx111.cOrange,24,_hu299.BigText,335,100,"iSVLabel",true],[_vy402._ai205,40,40,"<",_dx111.cOrange,40,280,100,"iASLButton",true],[_vy402._ai205,40,40,">",_dx111.cOrange,40,400,100,"iASRButton",true],[_vy402._ps359,_dx111.iLanguage.strMVolume,_dx111.cAqua,24,_hu299.SmallText,20,191,null,true],[_vy402._ps359,this.iMVolume <= 0 ? "off" : this.iMVolume.toString(),_dx111.cOrange,24,_hu299.BigText,335,180,"iMVLabel",true],[_vy402._ai205,40,40,"<",_dx111.cOrange,40,280,180,"iAMLButton",true],[_vy402._ai205,40,40,">",_dx111.cOrange,40,400,180,"iAMRButton",true],[_vy402._jk562,_dx111.iLanguage.strOk,_dx111.cGellAqua,180,60,20,_dx111.cWhite,45,260,"iOk",true],[_vy402._jk562,_dx111.iLanguage.strCancel,_dx111.cGellRed,180,60,20,_dx111.cWhite,260,260,"iCancel",true]];
  50.          super(_loc1_);
  51.          this._gm53(150,105);
  52.       }
  53.       
  54.       override public function onEnterFrame(param1:Event) : void
  55.       {
  56.          super.onEnterFrame(param1);
  57.          if(int(_wj196._ao83 * 100) != iMVolume)
  58.          {
  59.             this.iMVolume = _wj196._ao83 * 100;
  60.             if(this.iMVolume <= 0)
  61.             {
  62.                this.iMVLabel.Text = "off";
  63.             }
  64.             else
  65.             {
  66.                this.iMVLabel.Text = this.iMVolume.toString();
  67.             }
  68.          }
  69.          if(int(_wj196._qt85 * 100) != iSVolume)
  70.          {
  71.             this.iSVolume = _wj196._qt85 * 100;
  72.             if(this.iSVolume <= 0)
  73.             {
  74.                this.iSVLabel.Text = "off";
  75.             }
  76.             else
  77.             {
  78.                this.iSVLabel.Text = this.iSVolume.toString();
  79.             }
  80.          }
  81.       }
  82.       
  83.       override public function _lf305(param1:MouseEvent) : void
  84.       {
  85.          if(param1.target == this.iAMRButton._ol346)
  86.          {
  87.             this.iMVolume += 10;
  88.             if(this.iMVolume > 100)
  89.             {
  90.                this.iMVolume = 100;
  91.             }
  92.             this.iMVLabel.Text = this.iMVolume.toString();
  93.             _wj196._ao83 = this.iMVolume / 100;
  94.          }
  95.          if(param1.target == this.iAMLButton._ol346)
  96.          {
  97.             this.iMVolume -= 10;
  98.             if(this.iMVolume <= 0)
  99.             {
  100.                this.iMVolume = 0;
  101.             }
  102.             if(this.iMVolume <= 0)
  103.             {
  104.                this.iMVLabel.Text = "off";
  105.             }
  106.             else
  107.             {
  108.                this.iMVLabel.Text = this.iMVolume.toString();
  109.             }
  110.             _wj196._ao83 = this.iMVolume / 100;
  111.          }
  112.          if(param1.target == this.iASRButton._ol346)
  113.          {
  114.             this.iSVolume += 10;
  115.             if(this.iSVolume > 100)
  116.             {
  117.                this.iSVolume = 100;
  118.             }
  119.             this.iSVLabel.Text = this.iSVolume.toString();
  120.             _wj196._qt85 = this.iSVolume / 100;
  121.          }
  122.          if(param1.target == this.iASLButton._ol346)
  123.          {
  124.             this.iSVolume -= 10;
  125.             if(this.iSVolume < 0)
  126.             {
  127.                this.iSVolume = 0;
  128.             }
  129.             if(this.iSVolume <= 0)
  130.             {
  131.                this.iSVLabel.Text = "off";
  132.             }
  133.             else
  134.             {
  135.                this.iSVLabel.Text = this.iSVolume.toString();
  136.             }
  137.             _wj196._qt85 = this.iSVolume / 100;
  138.             _wj196._va384("newbug");
  139.          }
  140.          if(param1.target == this.iOk._ol346)
  141.          {
  142.             _nd174._ai238[1].prMVolume = this.iMVolume / 100;
  143.             _nd174._ai238[1].prSVolume = this.iSVolume / 100;
  144.             _nd174._tp546();
  145.             _wj196._ao83 = this.iMVolume / 100;
  146.             _wj196._qt85 = this.iSVolume / 100;
  147.             this.hide();
  148.          }
  149.          if(param1.target == this.iCancel._ol346)
  150.          {
  151.             _wj196._ao83 = this.iMVBckup / 100;
  152.             _wj196._qt85 = this.iSVBckup / 100;
  153.             this.hide();
  154.          }
  155.       }
  156.    }
  157. }
  158.