home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / sky-chopper.swf / scripts / __Packages / mx / controls / ProgressBar.as < prev    next >
Encoding:
Text File  |  2005-09-29  |  19.8 KB  |  650 lines

  1. class mx.controls.ProgressBar extends mx.core.UIObject
  2. {
  3.    var boundingBox_mc;
  4.    var progTrackLeft_mc;
  5.    var progTrackMiddle_mc;
  6.    var progTrackRight_mc;
  7.    var progBarLeft_mc;
  8.    var progBarMiddle_mc;
  9.    var progBarRight_mc;
  10.    var progIndBar_mc;
  11.    var mask_mc;
  12.    var labelPath;
  13.    var __width;
  14.    var __height;
  15.    var __source;
  16.    var __stringSource;
  17.    var si;
  18.    var dispatchEvent;
  19.    static var symbolName = "ProgressBar";
  20.    static var symbolOwner = Object(mx.controls.ProgressBar);
  21.    var className = "ProgressBar";
  22.    static var version = "2.0.0.360";
  23.    var __mode = "event";
  24.    var __direction = "right";
  25.    var __labelPlacement = "bottom";
  26.    var __label = "LOADING %3%% ";
  27.    var __conversion = 1;
  28.    var __maximum = 0;
  29.    var __minimum = 0;
  30.    var __value = 0;
  31.    var __indeterminate = false;
  32.    var progTrackLeftName = "ProgTrackLeft";
  33.    var progTrackMiddleName = "ProgTrackMiddle";
  34.    var progTrackRightName = "ProgTrackRight";
  35.    var progBarLeftName = "ProgBarLeft";
  36.    var progBarMiddleName = "ProgBarMiddle";
  37.    var progBarRightName = "ProgBarRight";
  38.    var progIndBarName = "ProgIndBar";
  39.    var idNames = new Array("progTrackLeft_mc","progTrackMiddle_mc","progTrackRight_mc","progBarLeft_mc","progBarMiddle_mc","progBarRight_mc","progIndBar_mc");
  40.    var skinIDProgTrackLeft = 0;
  41.    var skinIDProgTrackMiddle = 1;
  42.    var skinIDProgTrackRight = 2;
  43.    var skinIDProgBarLeft = 3;
  44.    var skinIDProgBarMiddle = 4;
  45.    var skinIDProgBarRight = 5;
  46.    var skinIDProgIndBar = 6;
  47.    var skinIDMask = 100;
  48.    var skinIDLabel = 200;
  49.    var __interval = 30;
  50.    var __leave = 2;
  51.    var clipParameters = {mode:1,source:1,direction:1,label:1,labelPlacement:1,conversion:1};
  52.    static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ProgressBar.prototype.clipParameters,mx.core.UIObject.prototype.clipParameters);
  53.    function ProgressBar()
  54.    {
  55.       super();
  56.    }
  57.    function init(Void)
  58.    {
  59.       super.init();
  60.       this.tabEnabled = false;
  61.       this.boundingBox_mc._visible = false;
  62.       this.boundingBox_mc._width = this.boundingBox_mc._height = 0;
  63.    }
  64.    function createChildren(Void)
  65.    {
  66.       if(this.progTrackLeft_mc == undefined)
  67.       {
  68.          this.setSkin(this.skinIDProgTrackLeft,this.progTrackLeftName);
  69.       }
  70.       if(this.progTrackMiddle_mc == undefined)
  71.       {
  72.          this.setSkin(this.skinIDProgTrackMiddle,this.progTrackMiddleName);
  73.       }
  74.       if(this.progTrackRight_mc == undefined)
  75.       {
  76.          this.setSkin(this.skinIDProgTrackRight,this.progTrackRightName);
  77.       }
  78.       if(this.progBarLeft_mc == undefined)
  79.       {
  80.          this.setSkin(this.skinIDProgBarLeft,this.progBarLeftName);
  81.       }
  82.       if(this.progBarMiddle_mc == undefined)
  83.       {
  84.          this.setSkin(this.skinIDProgBarMiddle,this.progBarMiddleName);
  85.       }
  86.       if(this.progBarRight_mc == undefined)
  87.       {
  88.          this.setSkin(this.skinIDProgBarRight,this.progBarRightName);
  89.       }
  90.       if(this.progIndBar_mc == undefined)
  91.       {
  92.          this.setSkin(this.skinIDProgIndBar,this.progIndBarName);
  93.          this.progIndBar_mc._visible = false;
  94.       }
  95.       if(this.mask_mc == undefined)
  96.       {
  97.          this.mask_mc = this.createObject("BoundingBox","mask_mc",this.skinIDMask);
  98.          this.mask_mc._visible = false;
  99.          this.progIndBar_mc.setMask(this.mask_mc);
  100.       }
  101.       if(this.labelPath == undefined)
  102.       {
  103.          this.labelPath = this.createLabel("labelPath",this.skinIDLabel);
  104.          this.labelPath.tabEnabled = false;
  105.          this.labelPath.selectable = false;
  106.          this.labelPath.styleName = this;
  107.       }
  108.       this.setSize(this.__width,this.__height);
  109.    }
  110.    function size(Void)
  111.    {
  112.       this.invalidate();
  113.    }
  114.    function draw(Void)
  115.    {
  116.       if(this.__source == undefined && this.__stringSource != undefined)
  117.       {
  118.          this.setSource(this.__stringSource);
  119.          this.__stringSource = undefined;
  120.       }
  121.       var _loc14_ = this.__width;
  122.       var _loc22_ = this.__height;
  123.       var _loc5_ = this.progBarLeft_mc._width <= this.progTrackLeft_mc._width ? this.progTrackLeft_mc._width : this.progBarLeft_mc._width;
  124.       var _loc6_ = this.progBarLeft_mc._height <= this.progTrackLeft_mc._height ? this.progTrackLeft_mc._height : this.progBarLeft_mc._height;
  125.       var _loc15_ = this.progBarRight_mc._width <= this.progTrackRight_mc._width ? this.progTrackRight_mc._width : this.progBarRight_mc._width;
  126.       var _loc7_ = _loc14_;
  127.       var _loc8_ = 0;
  128.       var _loc9_ = 0;
  129.       if(this.__labelPlacement == "top")
  130.       {
  131.          _loc8_ = _loc22_ - _loc6_;
  132.       }
  133.       if(this.__label != undefined && this.__label != "")
  134.       {
  135.          this.labelPath._visible = false;
  136.          var _loc11_ = 1;
  137.          var _loc20_ = 1;
  138.          var _loc18_ = 5;
  139.          var _loc26_ = 4;
  140.          var _loc12_ = this.__value - this.__minimum;
  141.          if(_loc12_ < 0)
  142.          {
  143.             _loc12_ = 0;
  144.          }
  145.          var _loc13_ = this.__maximum - this.__minimum;
  146.          if(_loc13_ < 0)
  147.          {
  148.             _loc13_ = 0;
  149.          }
  150.          if(this.__labelPlacement == "left" || this.__labelPlacement == "right")
  151.          {
  152.             var _loc4_ = this.__label;
  153.             if(!this.__indeterminate)
  154.             {
  155.                _loc4_ = this.replace(_loc4_,"%1",String(Math.floor(_loc13_ / this.__conversion)));
  156.                _loc4_ = this.replace(_loc4_,"%2",String(Math.floor(_loc13_ / this.__conversion)));
  157.                _loc4_ = this.replace(_loc4_,"%3",String(100));
  158.                _loc4_ = this.replace(_loc4_,"%%","%");
  159.             }
  160.             else
  161.             {
  162.                _loc4_ = this.replace(_loc4_,"%1",String(Math.floor(_loc12_ / this.__conversion)));
  163.                _loc4_ = this.replace(_loc4_,"%2","??");
  164.                _loc4_ = this.replace(_loc4_,"%3","");
  165.                _loc4_ = this.replace(_loc4_,"%%","");
  166.             }
  167.             this.labelPath.text = _loc4_;
  168.             _loc7_ = _loc14_ - (this.labelPath.textWidth + _loc18_ + _loc11_);
  169.             if(_loc7_ < _loc5_ + _loc15_)
  170.             {
  171.                _loc7_ = 0;
  172.             }
  173.             if(this.__labelPlacement == "left")
  174.             {
  175.                _loc9_ = _loc14_ - _loc7_;
  176.             }
  177.          }
  178.          var _loc3_ = this.__label;
  179.          if(!this.__indeterminate)
  180.          {
  181.             _loc3_ = this.replace(_loc3_,"%1",String(Math.floor(_loc12_ / this.__conversion)));
  182.             _loc3_ = this.replace(_loc3_,"%2",String(Math.floor(_loc13_ / this.__conversion)));
  183.             _loc3_ = this.replace(_loc3_,"%3",String(Math.floor(this.percentComplete)));
  184.             _loc3_ = this.replace(_loc3_,"%%","%");
  185.          }
  186.          else
  187.          {
  188.             _loc3_ = this.replace(_loc3_,"%1",String(Math.floor(_loc12_ / this.__conversion)));
  189.             _loc3_ = this.replace(_loc3_,"%2","??");
  190.             _loc3_ = this.replace(_loc3_,"%3","");
  191.             _loc3_ = this.replace(_loc3_,"%%","");
  192.          }
  193.          this.labelPath.text = _loc3_;
  194.          var _loc10_ = 0;
  195.          if(this.__labelPlacement == "left" || this.__labelPlacement == "right")
  196.          {
  197.             _loc10_ = _loc14_ - _loc7_ - _loc11_;
  198.          }
  199.          else
  200.          {
  201.             _loc10_ = _loc14_ - _loc11_;
  202.          }
  203.          if(_loc10_ < this.labelPath.textWidth + _loc18_)
  204.          {
  205.             this.labelPath._width = _loc10_;
  206.          }
  207.          else
  208.          {
  209.             this.labelPath._width = this.labelPath.textWidth + _loc18_;
  210.          }
  211.          if(this.__labelPlacement == "left" || this.__labelPlacement == "right" || this.__labelPlacement == "center")
  212.          {
  213.             _loc10_ = _loc22_;
  214.          }
  215.          else
  216.          {
  217.             _loc10_ = _loc22_ - _loc20_ - _loc6_;
  218.          }
  219.          if(_loc10_ < this.labelPath.textHeight + _loc26_)
  220.          {
  221.             this.labelPath._height = _loc10_;
  222.          }
  223.          else
  224.          {
  225.             this.labelPath._height = this.labelPath.textHeight + _loc26_;
  226.          }
  227.          if(this.__labelPlacement == "left")
  228.          {
  229.             this.labelPath._x = _loc11_;
  230.          }
  231.          else if(this.__labelPlacement == "right")
  232.          {
  233.             this.labelPath._x = _loc7_ + _loc11_;
  234.          }
  235.          else
  236.          {
  237.             this.labelPath._x = _loc11_;
  238.          }
  239.          if(this.__labelPlacement == "center" || this.__labelPlacement == "left" || this.__labelPlacement == "right")
  240.          {
  241.             this.labelPath._y = _loc6_ / 2 - this.labelPath.height / 2;
  242.          }
  243.          else if(this.__labelPlacement == "top")
  244.          {
  245.             this.labelPath._y = _loc8_ - _loc20_ - this.labelPath.height;
  246.          }
  247.          else
  248.          {
  249.             this.labelPath._y = _loc6_ + _loc20_;
  250.          }
  251.          this.labelPath._visible = true;
  252.       }
  253.       else
  254.       {
  255.          this.labelPath.text = "";
  256.          this.labelPath._visible = false;
  257.       }
  258.       if(_loc7_ >= _loc5_ + _loc15_)
  259.       {
  260.          var _loc2_ = this.progTrackLeft_mc.getBounds(this.progTrackLeft_mc);
  261.          var _loc42_ = - _loc2_.xMin;
  262.          var _loc41_ = - _loc2_.yMin;
  263.          this.progTrackLeft_mc.move(_loc9_ + _loc5_ - this.progTrackLeft_mc._width + _loc42_,_loc8_ + (_loc6_ - this.progTrackLeft_mc._height) / 2 + _loc41_);
  264.          _loc2_ = this.progTrackMiddle_mc.getBounds(this.progTrackMiddle_mc);
  265.          var _loc38_ = - _loc2_.xMin;
  266.          var _loc35_ = - _loc2_.yMin;
  267.          this.progTrackMiddle_mc.setSize(_loc7_ - _loc5_ - _loc15_,this.progTrackMiddle_mc._height);
  268.          this.progTrackMiddle_mc.move(_loc9_ + _loc5_ + _loc38_,_loc8_ + (_loc6_ - this.progTrackLeft_mc._height) / 2 + _loc35_);
  269.          _loc2_ = this.progTrackRight_mc.getBounds(this.progTrackRight_mc);
  270.          var _loc31_ = - _loc2_.xMin;
  271.          var _loc32_ = - _loc2_.yMin;
  272.          this.progTrackRight_mc.move(_loc9_ + _loc5_ + this.progTrackMiddle_mc._width + _loc31_,_loc8_ + (_loc6_ - this.progTrackRight_mc._height) / 2 + _loc32_);
  273.          var _loc21_ = _loc7_ - _loc5_ - _loc15_;
  274.          var _loc16_ = _loc21_ * this.percentComplete / 100;
  275.          var _loc17_ = 0;
  276.          if(this.__indeterminate == true)
  277.          {
  278.             _loc16_ = _loc21_;
  279.             this.mask_mc._width = _loc16_;
  280.             this.mask_mc._height = this.progIndBar_mc._height;
  281.             this.mask_mc._x = _loc9_ + _loc5_;
  282.             this.mask_mc._y = _loc8_ + (_loc6_ - this.progIndBar_mc._height) / 2;
  283.             this.progIndBar_mc._width = _loc7_ * 200 / 150;
  284.             var _loc28_ = this.progIndBar_mc._x;
  285.             _loc2_ = this.progIndBar_mc.getBounds(this.progIndBar_mc);
  286.             var _loc30_ = - _loc2_.xMin;
  287.             var _loc29_ = - _loc2_.yMin;
  288.             var _loc19_ = _loc9_ + _loc5_ + _loc30_;
  289.             var _loc23_ = this.progIndBar_mc._width * 50 / 200;
  290.             var _loc25_ = this.progIndBar_mc._width * 20 / 200;
  291.             var _loc24_ = 3;
  292.             var _loc27_ = _loc23_;
  293.             if(this.__direction == "left")
  294.             {
  295.                _loc23_ = this.progIndBar_mc._width * 30 / 200;
  296.                _loc25_ = 0;
  297.                _loc24_ = -3;
  298.                _loc27_ = _loc25_;
  299.             }
  300.             if(_loc28_ <= _loc19_ - _loc23_ || _loc28_ >= _loc19_ - _loc25_)
  301.             {
  302.                this.progIndBar_mc._x = _loc19_ - _loc27_ + _loc24_;
  303.             }
  304.             else
  305.             {
  306.                this.progIndBar_mc._x += _loc24_;
  307.             }
  308.             this.progIndBar_mc._y = _loc8_ + (_loc6_ - this.progIndBar_mc._height) / 2 + _loc29_;
  309.             this.progIndBar_mc._visible = true;
  310.             this.invalidate();
  311.          }
  312.          else
  313.          {
  314.             this.progIndBar_mc._visible = false;
  315.             if(this.__direction == "left")
  316.             {
  317.                _loc17_ = _loc21_ - _loc16_;
  318.             }
  319.          }
  320.          _loc2_ = this.progBarMiddle_mc.getBounds(this.progBarMiddle_mc);
  321.          var _loc40_ = - _loc2_.xMin;
  322.          var _loc39_ = - _loc2_.yMin;
  323.          this.progBarMiddle_mc.setSize(_loc16_,this.progBarMiddle_mc._height);
  324.          this.progBarMiddle_mc.move(_loc17_ + _loc9_ + _loc5_ + _loc40_,_loc8_ + (_loc6_ - this.progBarLeft_mc._height) / 2 + _loc39_);
  325.          _loc2_ = this.progBarLeft_mc.getBounds(this.progBarLeft_mc);
  326.          var _loc36_ = - _loc2_.xMin;
  327.          var _loc33_ = - _loc2_.yMin;
  328.          this.progBarLeft_mc.move(_loc17_ + _loc9_ + _loc5_ - this.progBarLeft_mc._width + _loc36_,_loc8_ + (_loc6_ - this.progBarLeft_mc._height) / 2 + _loc33_);
  329.          _loc2_ = this.progBarRight_mc.getBounds(this.progBarRight_mc);
  330.          var _loc34_ = - _loc2_.xMin;
  331.          var _loc37_ = - _loc2_.yMin;
  332.          this.progBarRight_mc.move(_loc17_ + _loc9_ + _loc5_ + this.progBarMiddle_mc._width + _loc34_,_loc8_ + (_loc6_ - this.progBarRight_mc._height) / 2 + _loc37_);
  333.          this.progTrackLeft_mc._visible = true;
  334.          this.progTrackMiddle_mc._visible = true;
  335.          this.progTrackRight_mc._visible = true;
  336.          this.progBarLeft_mc._visible = true;
  337.          this.progBarMiddle_mc._visible = true;
  338.          this.progBarRight_mc._visible = true;
  339.       }
  340.       else
  341.       {
  342.          this.progTrackLeft_mc._visible = false;
  343.          this.progTrackMiddle_mc._visible = false;
  344.          this.progTrackRight_mc._visible = false;
  345.          this.progBarLeft_mc._visible = false;
  346.          this.progBarMiddle_mc._visible = false;
  347.          this.progBarRight_mc._visible = false;
  348.       }
  349.    }
  350.    function replace(str, from, to)
  351.    {
  352.       var _loc1_ = str.split(from);
  353.       var _loc2_ = _loc1_.join(to);
  354.       return _loc2_;
  355.    }
  356.    function getMode(Void)
  357.    {
  358.       return this.__mode;
  359.    }
  360.    function setMode(val)
  361.    {
  362.       if(val == "polled" || val == "manual")
  363.       {
  364.          this.__mode = val;
  365.       }
  366.       else
  367.       {
  368.          delete this.__mode;
  369.       }
  370.       this.invalidate();
  371.    }
  372.    function getDirection(Void)
  373.    {
  374.       return this.__direction;
  375.    }
  376.    function setDirection(val)
  377.    {
  378.       if(val == "left")
  379.       {
  380.          this.__direction = val;
  381.       }
  382.       else
  383.       {
  384.          delete this.__direction;
  385.       }
  386.       this.invalidate();
  387.    }
  388.    function getLabelPlacement(Void)
  389.    {
  390.       return this.__labelPlacement;
  391.    }
  392.    function setLabelPlacement(val)
  393.    {
  394.       if(val == "top" || val == "center" || val == "left" || val == "right")
  395.       {
  396.          this.__labelPlacement = val;
  397.       }
  398.       else
  399.       {
  400.          delete this.__labelPlacement;
  401.       }
  402.       this.invalidate();
  403.    }
  404.    function getIndeterminate(Void)
  405.    {
  406.       return this.__indeterminate;
  407.    }
  408.    function setIndeterminate(val)
  409.    {
  410.       if(val == true)
  411.       {
  412.          this.__indeterminate = true;
  413.       }
  414.       else
  415.       {
  416.          delete this.__indeterminate;
  417.       }
  418.       this.invalidate();
  419.    }
  420.    function getLabel(Void)
  421.    {
  422.       return this.__label;
  423.    }
  424.    function setLabel(val)
  425.    {
  426.       this.__label = val;
  427.       this.invalidate();
  428.    }
  429.    function getConversion(Void)
  430.    {
  431.       return this.__conversion;
  432.    }
  433.    function setConversion(val)
  434.    {
  435.       if(!_global.isNaN(val) && Number(val) > 0)
  436.       {
  437.          this.__conversion = Number(val);
  438.          this.invalidate();
  439.       }
  440.    }
  441.    function getSource(Void)
  442.    {
  443.       return this.__source;
  444.    }
  445.    function setSource(val)
  446.    {
  447.       if(typeof val == "string")
  448.       {
  449.          this.__stringSource = val;
  450.          val = eval(val);
  451.       }
  452.       if(val != null && val != undefined && val != "")
  453.       {
  454.          this.__source = val;
  455.          if(this.__mode == "event")
  456.          {
  457.             if(this.__source.addEventListener)
  458.             {
  459.                this.__source.addEventListener("progress",this);
  460.                this.__source.addEventListener("complete",this);
  461.             }
  462.             else
  463.             {
  464.                this.__source = undefined;
  465.             }
  466.          }
  467.          if(this.__mode == "polled")
  468.          {
  469.             this.si = setInterval(this,"update",this.__interval);
  470.          }
  471.       }
  472.       else if(this.__source != null)
  473.       {
  474.          delete this.__source;
  475.          clearInterval(this.si);
  476.          delete this.si;
  477.       }
  478.    }
  479.    function update(Void)
  480.    {
  481.       var _loc2_ = this.__source;
  482.       var _loc3_ = _loc2_.getBytesLoaded();
  483.       var _loc4_ = _loc2_.getBytesTotal();
  484.       this._setProgress(_loc3_,_loc4_);
  485.       if(this.percentComplete >= 100 && this.__value > 0)
  486.       {
  487.          clearInterval(this.si);
  488.       }
  489.    }
  490.    function progress(pEvent)
  491.    {
  492.       var _loc2_ = pEvent.target;
  493.       var _loc3_ = _loc2_.bytesLoaded;
  494.       var _loc4_ = _loc2_.bytesTotal;
  495.       this._setProgress(_loc3_,_loc4_);
  496.    }
  497.    function complete(pEvent)
  498.    {
  499.    }
  500.    function _setProgress(completed, total)
  501.    {
  502.       if(!_global.isNaN(completed) && !_global.isNaN(total))
  503.       {
  504.          this.__value = Number(completed);
  505.          this.__maximum = Number(total);
  506.          if(this.__mode != "event")
  507.          {
  508.             this.dispatchEvent({type:"progress",current:completed,total:total});
  509.             if(this.__value == this.__maximum && this.__value > 0)
  510.             {
  511.                this.dispatchEvent({type:"complete",current:completed,total:total});
  512.             }
  513.          }
  514.          this.invalidate();
  515.       }
  516.    }
  517.    function setProgress(completed, total)
  518.    {
  519.       if(this.__mode == "manual")
  520.       {
  521.          this._setProgress(completed,total);
  522.       }
  523.    }
  524.    function getPercentComplete(Void)
  525.    {
  526.       if(this.__value < this.__minimum || this.__maximum < this.__minimum)
  527.       {
  528.          return 0;
  529.       }
  530.       var _loc3_ = 100 * (this.__value - this.__minimum) / (this.__maximum - this.__minimum);
  531.       if(_global.isNaN(_loc3_) || _loc3_ < 0)
  532.       {
  533.          return 0;
  534.       }
  535.       if(_loc3_ > 100)
  536.       {
  537.          return 100;
  538.       }
  539.       return _loc3_;
  540.    }
  541.    function getMaximum(Void)
  542.    {
  543.       return this.__maximum;
  544.    }
  545.    function setMaximum(val)
  546.    {
  547.       if(!_global.isNaN(val) && this.__mode == "manual")
  548.       {
  549.          this.__maximum = Number(val);
  550.          this.invalidate();
  551.       }
  552.    }
  553.    function getMinimum(Void)
  554.    {
  555.       return this.__minimum;
  556.    }
  557.    function setMinimum(val)
  558.    {
  559.       if(!_global.isNaN(val) && this.__mode == "manual")
  560.       {
  561.          this.__minimum = Number(val);
  562.          this.invalidate();
  563.       }
  564.    }
  565.    function getVal(Void)
  566.    {
  567.       return this.__value;
  568.    }
  569.    function get mode()
  570.    {
  571.       return this.getMode();
  572.    }
  573.    function set mode(x)
  574.    {
  575.       this.setMode(x);
  576.    }
  577.    function get source()
  578.    {
  579.       return this.getSource();
  580.    }
  581.    function set source(x)
  582.    {
  583.       this.setSource(x);
  584.    }
  585.    function get direction()
  586.    {
  587.       return this.getDirection();
  588.    }
  589.    function set direction(x)
  590.    {
  591.       this.setDirection(x);
  592.    }
  593.    function get label()
  594.    {
  595.       return this.getLabel();
  596.    }
  597.    function set label(x)
  598.    {
  599.       this.setLabel(x);
  600.    }
  601.    function get labelPlacement()
  602.    {
  603.       return this.getLabelPlacement();
  604.    }
  605.    function set labelPlacement(x)
  606.    {
  607.       this.setLabelPlacement(x);
  608.    }
  609.    function get indeterminate()
  610.    {
  611.       return this.getIndeterminate();
  612.    }
  613.    function set indeterminate(x)
  614.    {
  615.       this.setIndeterminate(x);
  616.    }
  617.    function get conversion()
  618.    {
  619.       return this.getConversion();
  620.    }
  621.    function set conversion(x)
  622.    {
  623.       this.setConversion(x);
  624.    }
  625.    function get percentComplete()
  626.    {
  627.       return this.getPercentComplete();
  628.    }
  629.    function get maximum()
  630.    {
  631.       return this.getMaximum();
  632.    }
  633.    function set maximum(x)
  634.    {
  635.       this.setMaximum(x);
  636.    }
  637.    function get minimum()
  638.    {
  639.       return this.getMinimum();
  640.    }
  641.    function set minimum(x)
  642.    {
  643.       this.setMinimum(x);
  644.    }
  645.    function get value()
  646.    {
  647.       return this.getVal();
  648.    }
  649. }
  650.