Stage.scaleMode = "noScale"; MovieClip.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback) { if (timeSeconds < 1.000000E-003) { timeSeconds = 2; } // end if if (animType == undefined || animType == "") { animType = "easeoutquad"; } // end if if (delay == undefined) { delay = 0; } // end if var _loc7 = []; var _loc13 = []; var _loc11 = []; for (var _loc28 in prop) { _loc13.push(this[prop[_loc28]]); } // end of for...in for (var _loc28 in prop) { _loc7.push(prop[_loc28]); } // end of for...in for (var _loc28 in propDest) { _loc11.push(propDest[_loc28]); } // end of for...in var _loc14 = false; if (_root.__tC__ == undefined) { var _loc29 = _root.createEmptyMovieClip("__tC__", 123432); _loc29.$__tpl = []; _loc29.onEnterFrame = function () { var _loc6 = getTimer(); for (var _loc4 = 0; _loc4 < this.$__tpl.length; ++_loc4) { var _loc3 = this.$__tpl[_loc4]; if (_loc3._timeStart + _loc3._delay * 1000 <= _loc6) { if (_loc3._timeDest + _loc3._delay * 1000 <= _loc6) { _loc3._targ[_loc3._prop] = _loc3._propDest; this.$__tpl.splice(_loc4, 1); --_loc4; --_loc3._targ.$_tweenCount; if (_loc3._targ.$_tweenCount == 0) { delete _loc3._targ.$_tweenCount; } // end if if (_loc3._callback != undefined) { if (_global.backwardCallbackTweening) { var _loc5 = _loc3._targ.createEmptyMovieClip("__child__", 122344); _loc3._callback.apply(_loc5, null); _loc5.removeMovieClip(); } else { _loc3._callback.apply(_loc3._targ, null); } // end if } // end else if if (this.$__tpl.length == 0) { this.removeMovieClip(); } // end if continue; } // end if if (_loc3._propStart == undefined) { _loc3._propStart = _loc3._targ[_loc3._prop]; } // end if _loc3._targ[_loc3._prop] = _global.fVal(_loc3._propStart, _loc3._propDest, _loc3._timeStart, _loc6 - _loc3._delay * 1000, _loc3._timeDest, _loc3._animType); if (typeof(_loc3._targ) != "movieclip" && _loc3._prop == "__special_text_b__") { _loc3._targ.textColor = (_loc3._targ.__special_text_r__ << 16) + (_loc3._targ.__special_text_g__ << 8) + _loc3._targ.__special_text_b__; } // end if } // end if } // end of for }; } // end if var _loc6 = _root.__tC__.$__tpl; var _loc8 = getTimer(); for (var _loc28 in _loc13) { if (_loc11[_loc28] != undefined && !this.$_iTL) { if (this.$_tweenCount > 0) { for (var _loc5 = 0; _loc5 < _loc6.length; ++_loc5) { if (_loc6[_loc5]._targ == this && _loc6[_loc5]._prop == _loc7[_loc28]) { if (_loc8 + delay * 1000 < _loc6[_loc5]._timeDest) { _loc6.splice(_loc5, 1); --_loc5; --this.$_tweenCount; } // end if } // end if } // end of for } // end if _loc6.push({_prop: _loc7[_loc28], _targ: this, _propStart: undefined, _propDest: _loc11[_loc28], _timeStart: _loc8, _timeDest: _loc8 + timeSeconds * 1000, _animType: animType, _delay: delay, _callback: _loc14 ? (undefined) : (callback)}); this.$_tweenCount = this.$_tweenCount > 0 ? (this.$_tweenCount + 1) : (1); _loc14 = true; } // end if } // end of for...in }; MovieClip.prototype.stopTween = TextField.prototype.stopTween = function () { var _loc3 = _root.__tC__.$__tpl; for (var _loc4 in _loc3) { if (_loc3[_loc4]._targ == this) { _loc3.splice(_loc4, 1); } // end if } // end of for...in delete this.$_tweenCount; if (_loc3.length == 0) { _root.__tC__.removeMovieClip(); this.__tweenController_ADVhelper__.removeMovieClip(); } // end if }; _global.fVal = function (_ps, _pd, _ts, _tn, _td, _at) { var _loc1 = _tn - _ts; var _loc3 = _ps; var _loc2 = _pd - _ps; var _loc4 = _td - _ts; switch (_at.toLowerCase()) { case "linear": { return (_loc2 * _loc1 / _loc4 + _loc3); } case "easeinquad": { _loc1 = _loc1 / _loc4; return (_loc2 * (_loc1) * _loc1 + _loc3); } case "easeoutquad": { _loc1 = _loc1 / _loc4; return (-_loc2 * (_loc1) * (_loc1 - 2) + _loc3); } case "easeinoutquad": { _loc1 = _loc1 / (_loc4 / 2); if (_loc1 < 1) { return (_loc2 / 2 * _loc1 * _loc1 + _loc3); } // end if return (-_loc2 / 2 * (--_loc1 * (_loc1 - 2) - 1) + _loc3); } } // End of switch };