home *** CD-ROM | disk | FTP | other *** search
- function §\x01\x02§()
- {
- return 796 % 511 * 5;
- }
- var §\x01§ = -1063 + "\x01\x02"();
- while(true)
- {
- if(eval("\x01") == 362)
- {
- set("\x01",eval("\x01") + 406);
- §§push(true);
- }
- else if(eval("\x01") == 436)
- {
- set("\x01",eval("\x01") - 200);
- var §§pop() = function §\x01\x02§()
- {
- return 796 % 511 * 5;
- };
- }
- else if(eval("\x01") == 756)
- {
- set("\x01",eval("\x01") - 667);
- }
- else if(eval("\x01") == 553)
- {
- set("\x01",eval("\x01") - 464);
- }
- else if(eval("\x01") == 154)
- {
- set("\x01",eval("\x01") + 330);
- §§push(eval(function §\x01\x02§()
- {
- return 796 % 511 * 5;
- }));
- }
- else if(eval("\x01") == 857)
- {
- set("\x01",eval("\x01") - 117);
- if(function §\x01\x02§()
- {
- return 796 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") - 161);
- }
- }
- else if(eval("\x01") == 89)
- {
- set("\x01",eval("\x01") + 347);
- §§push("\x0f");
- §§push(1);
- }
- else if(eval("\x01") == 236)
- {
- set("\x01",eval("\x01") - 82);
- §§push("\x0f");
- }
- else
- {
- if(eval("\x01") == 262)
- {
- set("\x01",eval("\x01") + 291);
- §§constant(46)(eval("]#")[§§constant(3)][§§constant(4)][§§constant(5)][§§constant(7)],null,1);
- §§push(_loc2_[§§constant(44)](§§constant(45),_loc2_[§§constant(15)],_loc2_[§§constant(13)]));
- §§push(_loc2_[§§constant(44)](§§constant(37),_loc2_[§§constant(21)],_loc2_[§§constant(19)]));
- §§push(_loc2_[§§constant(44)](§§constant(38),_loc2_[§§constant(24)],_loc2_[§§constant(22)]));
- §§push(_loc2_[§§constant(44)](§§constant(39),_loc2_[§§constant(27)],_loc2_[§§constant(25)]));
- §§push(_loc2_[§§constant(44)](§§constant(40),_loc2_[§§constant(30)],_loc2_[§§constant(28)]));
- §§push(_loc2_[§§constant(44)](§§constant(41),_loc2_[§§constant(33)],_loc2_[§§constant(31)]));
- break;
- }
- if(eval("\x01") == 484)
- {
- set("\x01",eval("\x01") + 373);
- §§push(!function §\x01\x02§()
- {
- return 796 % 511 * 5;
- });
- }
- else if(eval("\x01") == 768)
- {
- set("\x01",eval("\x01") - 506);
- if(function §\x01\x02§()
- {
- return 796 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") + 291);
- }
- }
- else
- {
- if(eval("\x01") != 740)
- {
- if(eval("\x01") == 579)
- {
- set("\x01",eval("\x01") + 125);
- if(!_global.com)
- {
- _global.com = new Object();
- }
- function §\x01\x02§()
- {
- return 796 % 511 * 5;
- }
- if(!_global.com.bjc)
- {
- _global.com.bjc = new Object();
- }
- §§pop();
- if(!_global.com.bjc.controls)
- {
- _global.com.bjc.controls = new Object();
- }
- §§pop();
- if(!_global.com.bjc.controls.NumericStepper)
- {
- com.bjc.controls.NumericStepper extends com.bjc.core.LabelWrapper;
- var _loc2_ = com.bjc.controls.NumericStepper = function(Void)
- {
- super();
- }.prototype;
- _loc2_.init = function(Void)
- {
- super.init();
- mx.events.EventDispatcher.initialize(this);
- Mouse.addListener(this);
- this.focusEnabled = true;
- this.__btnUp.clickHandler = mx.utils.Delegate.create(this,this.clickUp);
- this.__btnDown.clickHandler = mx.utils.Delegate.create(this,this.clickDown);
- this.__btnUp.killFocusHandler = mx.utils.Delegate.create(this,this.onClickKillFocus);
- this.__btnDown.killFocusHandler = mx.utils.Delegate.create(this,this.onClickKillFocus);
- this.__btnUp.rollOverHandler = mx.utils.Delegate.create(this,this.onRollOverFocus);
- this.__btnUp.rollOutHandler = mx.utils.Delegate.create(this,this.onRollOutFocus);
- this.__btnUp.releaseOutsideHandler = mx.utils.Delegate.create(this,this.onRollOutFocus);
- this.__btnDown.rollOverHandler = mx.utils.Delegate.create(this,this.onRollOverFocus);
- this.__btnDown.rollOutHandler = mx.utils.Delegate.create(this,this.onRollOutFocus);
- this.__btnDown.releaseOutsideHandler = mx.utils.Delegate.create(this,this.onRollOutFocus);
- this.__btnUp.disabledAlpha = 100;
- this.__btnDown.disabledAlpha = 100;
- this.__tf.type = "input";
- this.__tf.onSetFocus = mx.utils.Delegate.create(this,this.onTFFocus);
- this.__tf.onKillFocus = mx.utils.Delegate.create(this,this.onTFKillFocus);
- if(this.__maximum == undefined)
- {
- this.__maximum = 10;
- }
- if(this.__maximum <= this.__minimum)
- {
- this.__maximum = this.__minimum;
- this.__value = this.__minimum;
- }
- this.draw();
- };
- _loc2_.createChildren = function(Void)
- {
- this.attachMovie("Resizer","__background",0);
- this.__background.skin = "numericStepperSkin";
- this.__background.margin = 2;
- this.attachMovie("IconButton","__btnUp",1);
- this.__btnUp.downIcon = "numericStepperUpDownSkin";
- this.__btnUp.overIcon = "numericStepperUpOverSkin";
- this.__btnUp.upIcon = "numericStepperUpUpSkin";
- this.attachMovie("IconButton","__btnDown",2);
- this.__btnDown.downIcon = "numericStepperDownDownSkin";
- this.__btnDown.overIcon = "numericStepperDownOverSkin";
- this.__btnDown.upIcon = "numericStepperDownUpSkin";
- this.createTextField("__tf",3,2,1,98,20);
- this.attachMovie("Resizer","__focus",4);
- this.__focus.skin = "focusSkin";
- this.__focus.margin = 5;
- this.__focus._visible = false;
- };
- _loc2_.draw = function(Void)
- {
- this.__btnUp.enabled = this.__enabled;
- this.__btnDown.enabled = this.__enabled;
- this.__format = new TextFormat(this.__fontFace,this.__fontSize,this.__fontColor);
- this.__format.align = this.__align;
- if(!this.__enabled)
- {
- this._alpha = this.__alphaDisabled;
- this.__format.color = this.__disabledColor;
- this.__tf.type = "dynamic";
- this.__tf.selectable = false;
- }
- else
- {
- this._alpha = 100;
- this.__tf.type = "input";
- this.__tf.selectable = true;
- }
- if(!_global.isLivePreview)
- {
- this.__tf.embedFont = this.__embedFont;
- }
- this.__tf.restrict = "0-9.\\-";
- this.__tf.html = false;
- if(!this.__disableStyles)
- {
- this.__tf.setTextFormat(this.__format);
- this.__tf.setNewTextFormat(this.__format);
- }
- this.__tf.text = this.setDecimals(this.__value);
- this.size();
- };
- _loc2_.size = function(Void)
- {
- this.__focus.setSize(this.__width,this.__height);
- this.__background.setSize(this.__width,this.__height);
- this.__btnDown._x = this.__width - this.__btnDown.width - 1;
- this.__btnDown._y = Math.round(this.__height - this.__btnDown.height);
- this.__btnUp._x = this.__width - this.__btnUp.width - 1;
- this.__tf._width = this.__width - this.__btnUp.width - 2;
- this.__tf._height = this.__tf.textHeight + 4;
- this.__tf._y = Math.round(this.__height / 2 - this.__tf._height / 2);
- };
- com.bjc.controls.NumericStepper = function(Void)
- {
- super();
- }.create = function(target, id, depth, initObj)
- {
- return com.bjc.controls.NumericStepper(target.attachMovie("NumericStepper",id,depth,initObj));
- };
- _loc2_.setDecimals = function(val)
- {
- if(this.__decimals > 0)
- {
- var _loc2_ = val.toString();
- var _loc4_ = _loc2_.split(".");
- _loc2_ = _loc4_[1];
- if(_loc2_ != undefined)
- {
- var _loc3_ = _loc2_.length;
- while(_loc3_ < this.__decimals)
- {
- _loc2_ += "0";
- _loc3_ = _loc3_ + 1;
- }
- }
- else
- {
- _loc2_ = "";
- _loc3_ = 0;
- while(_loc3_ < this.__decimals)
- {
- _loc2_ += "0";
- _loc3_ = _loc3_ + 1;
- }
- }
- return _loc4_[0] + "." + _loc2_;
- }
- return val.toString();
- };
- _loc2_.clickDown = function(Void)
- {
- clearInterval(this.__pressInterval);
- this.__value -= this.__stepSize;
- this.__value = Math.max(this.__value,this.__minimum);
- this.__value = this.validateValue(this.__value);
- this.__tf.text = this.setDecimals(this.__value);
- if(Selection.getFocus() != "" + this)
- {
- Selection.setFocus(this);
- }
- this.dispatchEvent({type:"change",target:this});
- };
- _loc2_.clickUp = function(Void)
- {
- clearInterval(this.__pressInterval);
- this.__value += this.__stepSize;
- this.__value = Math.min(this.__value,this.__maximum);
- this.__value = this.validateValue(this.__value);
- this.__tf.text = this.setDecimals(this.__value);
- if(Selection.getFocus() != "" + this)
- {
- Selection.setFocus(this);
- }
- this.dispatchEvent({type:"change",target:this});
- };
- _loc2_.onMouseDown = function(Void)
- {
- if(this.__enabled && this._xmouse > this.__btnUp._x && this._xmouse < this.__btnUp._x + this.__btnUp.width && this._ymouse > this.__btnUp._y && this._ymouse < this.__btnUp._y + this.__btnUp.height)
- {
- clearInterval(this.__pressInterval);
- this.__pressInterval = setInterval(this,"valUp",this.__speed);
- }
- else if(this.__enabled && this._xmouse > this.__btnDown._x && this._xmouse < this.__btnDown._x + this.__btnDown.width && this._ymouse > this.__btnDown._y && this._ymouse < this.__btnDown._y + this.__btnDown.height)
- {
- clearInterval(this.__pressInterval);
- this.__pressInterval = setInterval(this,"valDown",this.__speed);
- }
- };
- _loc2_.onMouseUp = function(Void)
- {
- clearInterval(this.__pressInterval);
- };
- _loc2_.onMouseWheel = function(delta)
- {
- if((Selection.getFocus() == "" + this || Selection.getFocus() eq "" + this.__tf || Selection.getFocus() eq "" + this.__btnUp || Selection.getFocus() eq "" + this.__btnDown) && this.__enabled && this._xmouse > 0 && this._xmouse < this.__width && this._ymouse > 0 && this._ymouse < this.__height)
- {
- if(delta > 0)
- {
- this.valUp();
- }
- else
- {
- this.valDown();
- }
- }
- };
- _loc2_.onClickKillFocus = function(obj)
- {
- this.onKillFocus(obj.newfocus);
- };
- _loc2_.onRollOverFocus = function(obj)
- {
- this.__onButton = true;
- };
- _loc2_.onRollOutFocus = function(obj)
- {
- this.__onButton = false;
- };
- _loc2_.onTFKillFocus = function(newFocus)
- {
- this.update();
- if(newFocus != this && newFocus != this.__btnUp && newFocus != this.__btnDown && !this.__onButton || Key.isDown(9))
- {
- this.__onTF = false;
- Key.removeListener(this.__keyListener);
- this.__keyListener = null;
- this.hideFocus();
- this.dispatchEvent({type:"killFocus",target:this,newfocus:newFocus});
- }
- };
- _loc2_.onKillFocus = function(newFocus)
- {
- if(newFocus != this.__tf && newFocus != this.__btnUp && newFocus != this.__btnDown && newFocus != this)
- {
- this.__onTF = false;
- Key.removeListener(this.__keyListener);
- this.__keyListener = null;
- this.hideFocus();
- this.dispatchEvent({type:"killFocus",target:this,newfocus:newFocus});
- }
- };
- _loc2_.onKeyPressed = function(Void)
- {
- if((Selection.getFocus() == "" + this || Selection.getFocus() eq "" + this.__tf || Selection.getFocus() eq "" + this.__btnUp || Selection.getFocus() eq "" + this.__btnDown) && this.__enabled && this.__keyEnabled)
- {
- if(Key.getCode() == 13)
- {
- this.update();
- }
- else if(Key.getCode() == 38)
- {
- this.valUp();
- }
- else if(Key.getCode() == 40)
- {
- this.valDown();
- }
- }
- };
- _loc2_.onTFFocus = function(oldFocus)
- {
- this.__onTF = true;
- if(oldFocus != this && oldFocus != this.__btnUp && oldFocus != this.__btnDown)
- {
- if(this.__keyListener == null || this.__keyListener == undefined)
- {
- this.__keyListener = new Object();
- this.__keyListener.onKeyDown = mx.utils.Delegate.create(this,this.onKeyPressed);
- Key.addListener(this.__keyListener);
- }
- this.dispatchEvent({type:"focus",target:this,oldfocus:oldFocus});
- if(Key.isDown(9))
- {
- this.showFocus();
- this.dispatchEvent({type:"tabFocus",target:this,oldfocus:oldFocus});
- }
- }
- };
- _loc2_.onSetFocus = function(oldFocus)
- {
- if(oldFocus != this.__tf && oldFocus != this.__btnUp && oldFocus != this.__btnDown && !this.__onTF)
- {
- if(this.__keyListener == null || this.__keyListener == undefined)
- {
- this.__keyListener = new Object();
- this.__keyListener.onKeyDown = mx.utils.Delegate.create(this,this.onKeyPressed);
- Key.addListener(this.__keyListener);
- }
- this.dispatchEvent({type:"focus",target:this,oldfocus:oldFocus});
- if(Key.isDown(9))
- {
- this.showFocus();
- this.dispatchEvent({type:"tabFocus",target:this,oldfocus:oldFocus});
- }
- }
- };
- _loc2_.update = function()
- {
- if(this.__tf.text != "" && !isNaN(Number(this.__tf.text)))
- {
- this.value = Number(this.__tf.text);
- this.invalidate();
- this.dispatchEvent({type:"change",target:this});
- }
- else
- {
- this.__tf.text = this.setDecimals(this.__value);
- }
- };
- _loc2_.valDown = function(Void)
- {
- this.__value -= this.__stepSize;
- this.__value = this.validateValue(this.__value);
- this.__value = Math.max(this.__value,this.__minimum);
- this.__tf.text = this.setDecimals(this.__value);
- this.dispatchEvent({type:"change",target:this});
- };
- _loc2_.valUp = function(Void)
- {
- this.__value += this.__stepSize;
- this.__value = this.validateValue(this.__value);
- this.__value = Math.min(this.__value,this.__maximum);
- this.__tf.text = this.setDecimals(this.__value);
- this.dispatchEvent({type:"change",target:this});
- };
- _loc2_.validateValue = function(val)
- {
- var _loc4_ = val / this.__stepSize;
- var _loc5_ = Math.floor(_loc4_);
- if(val > this.__minimum && val < this.__maximum)
- {
- if(_loc4_ - _loc5_ == 0)
- {
- return val;
- }
- var _loc6_ = Math.floor(val / this.__stepSize);
- var _loc3_ = _loc6_ * this.__stepSize;
- if(val - _loc3_ >= this.__stepSize / 2 && this.__maximum >= _loc3_ + this.__stepSize && this.__minimum <= _loc3_ - this.__stepSize || val + this.__stepSize == this.__maximum && this.__maximum - _loc3_ - this.__stepSize > 1e-14)
- {
- _loc3_ += this.__stepSize;
- }
- return _loc3_;
- }
- if(val >= this.__maximum)
- {
- return this.__maximum;
- }
- return this.__minimum;
- };
- _loc2_.__set__decimals = function(s)
- {
- this.__decimals = s;
- this.invalidate();
- return this.decimals;
- };
- _loc2_.__get__decimals = function()
- {
- return this.__decimals;
- };
- _loc2_.__set__maximum = function(max)
- {
- this.__maximum = max;
- this.invalidate();
- return this.maximum;
- };
- _loc2_.__get__maximum = function()
- {
- return this.__maximum;
- };
- _loc2_.__set__minimum = function(min)
- {
- this.__minimum = min;
- this.invalidate();
- return this.minimum;
- };
- _loc2_.__get__minimum = function()
- {
- return this.__minimum;
- };
- _loc2_.__set__speed = function(s)
- {
- this.__speed = s;
- return this.speed;
- };
- _loc2_.__get__speed = function()
- {
- return this.__speed;
- };
- _loc2_.__set__stepSize = function(s)
- {
- this.__stepSize = s;
- this.invalidate();
- return this.stepSize;
- };
- _loc2_.__get__stepSize = function()
- {
- return this.__stepSize;
- };
- _loc2_.__set__value = function(val)
- {
- this.__value = this.validateValue(val);
- this.__value = Math.max(this.__value,this.__minimum);
- this.__value = Math.min(this.__value,this.__maximum);
- this.__tf.text = this.setDecimals(this.__value);
- this.invalidate();
- return this.value;
- };
- _loc2_.__get__value = function()
- {
- return this.__value;
- };
- _loc2_.__set__tabIndex = function(index)
- {
- this.__tf.tabIndex = index;
- return this.tabIndex;
- };
- _loc2_.__get__tabIndex = function()
- {
- return this.__tf.tabIndex;
- };
- _loc2_.clipParameters = {decimals:1,maximum:1,minimum:1,stepSize:1,value:1};
- com.bjc.controls.NumericStepper = function(Void)
- {
- super();
- }.mergedClipParameters = com.bjc.core.BJCComponent.mergeClipParameters(com.bjc.controls.NumericStepper.prototype.clipParameters,com.bjc.core.LabelWrapper.prototype.clipParameters);
- _loc2_.__decimals = 0;
- _loc2_.__maximum = 10;
- _loc2_.__minimum = 0;
- _loc2_.__speed = 100;
- _loc2_.__stepSize = 1;
- _loc2_.__value = 0;
- _loc2_.__onButton = false;
- _loc2_.__onTF = false;
- §§push(_loc2_.addProperty("decimals",_loc2_.__get__decimals,_loc2_.__set__decimals));
- §§push(_loc2_.addProperty("maximum",_loc2_.__get__maximum,_loc2_.__set__maximum));
- §§push(_loc2_.addProperty("minimum",_loc2_.__get__minimum,_loc2_.__set__minimum));
- §§push(_loc2_.addProperty("speed",_loc2_.__get__speed,_loc2_.__set__speed));
- §§push(_loc2_.addProperty("stepSize",_loc2_.__get__stepSize,_loc2_.__set__stepSize));
- §§push(_loc2_.addProperty("tabIndex",_loc2_.__get__tabIndex,_loc2_.__set__tabIndex));
- §§push(_loc2_.addProperty("value",_loc2_.__get__value,_loc2_.__set__value));
- §§push(ASSetPropFlags(com.bjc.controls.NumericStepper.prototype,null,1));
- }
- §§pop();
- break;
- }
- if(eval("\x01") == 704)
- {
- set("\x01",eval("\x01") - 704);
- }
- break;
- }
- set("\x01",eval("\x01") - 161);
- }
- }
- }
-