var McPr = MovieClip.prototype; var transMethod = "easeOutExpo"; if (_global.hasLoaded_Others == undefined) { _global.hasLoaded_Others = true; String.prototype.replace = function (find, replace) { return this.split (find).join (replace); }; String.prototype.cut_str = function (len) { var str = this; var l = 0; for (var i = 0; i < str.length; i++) { l += (str.charCodeAt (i) > 128) ? 2 : 1; if (l > len) { return str.substring (0, i) + ".."; } } return str; }; String.prototype.bytes = function (str) { var str = this; var l = 0; for (var i = 0; i < str.length; i++) { l += (str.charCodeAt (i) > 128) ? 2 : 1; } return l; }; Array.prototype.shuffle = function(){ for(var i=0; i a) { a = tmp.getDepth (); } } return (a + 1); }; } if (_global.hasLoaded_TMATH == undefined) { _global.hasLoaded_TMATH = true; _global.ranNum = function (low, high) { return (Math.round (Math.random () * (high - low)) + low); }; } if (_global.hasLoaded_PENNER == undefined) { _global.hasLoaded_PENNER = true; _global.Penner = new Object(); ASSetPropFlags (_global,"Penner",1,true); Penner.linearTween = function (t, b, c, d) { return (c * t / d + b); }; Penner.easeInQuad = function (t, b, c, d) { t = t / d; return (c * (t) * t + b); }; Penner.easeOutQuad = function (t, b, c, d) { t = t / d; return (-c * (t) * (t - 2) + b); }; Penner.easeInOutQuad = function (t, b, c, d) { t = t / (d / 2); if (t < 1) { return (c / 2 * t * t + b); } return (-c / 2 * (--t * (t - 2) - 1) + b); }; Penner.easeInCubic = function (t, b, c, d) { t = t / d; return (c * (t) * t * t + b); }; Penner.easeOutCubic = function (t, b, c, d) { t = t / d - 1; return (c * ((t) * t * t + 1) + b); }; Penner.easeInOutCubic = function (t, b, c, d) { t = t / (d / 2); if (t < 1) { return (c / 2 * t * t * t + b); } t = t - 2; return (c / 2 * ((t) * t * t + 2) + b); }; Penner.easeInQuart = function (t, b, c, d) { t = t / d; return (c * (t) * t * t * t + b); }; Penner.easeOutQuart = function (t, b, c, d) { t = t / d - 1; return (-c * ((t) * t * t * t - 1) + b); }; Penner.easeInOutQuart = function (t, b, c, d) { t = t / (d / 2); if (t < 1) { return (c / 2 * t * t * t * t + b); } t = t - 2; return (-c / 2 * ((t) * t * t * t - 2) + b); }; Penner.easeInQuint = function (t, b, c, d) { t = t / d; return (c * (t) * t * t * t * t + b); }; Penner.easeOutQuint = function (t, b, c, d) { t = t / d - 1; return (c * ((t) * t * t * t * t + 1) + b); }; Penner.easeInOutQuint = function (t, b, c, d) { t = t / (d / 2); if (t < 1) { return (c / 2 * t * t * t * t * t + b); } t = t - 2; return (c / 2 * ((t) * t * t * t * t + 2) + b); }; Penner.easeInSine = function (t, b, c, d) { return (-c * Math.cos (t / d * 1.570796E+000) + c + b); }; Penner.easeOutSine = function (t, b, c, d) { return (c * Math.sin (t / d * 1.570796E+000) + b); }; Penner.easeInOutSine = function (t, b, c, d) { return (-c / 2 * (Math.cos (3.141593E+000 * t / d) - 1) + b); }; Penner.easeInExpo = function (t, b, c, d) { return (t == 0 ? (b) : (c * Math.pow (2, 10 * (t / d - 1)) + b)); }; Penner.easeOutExpo = function (t, b, c, d) { return (t == d ? (b + c) : (c * (-Math.pow (2, -10 * t / d) + 1) + b)); }; Penner.easeInOutExpo = function (t, b, c, d) { if (t == 0) { return (b); } if (t == d) { return (b + c); } t = t / (d / 2); if (t < 1) { return (c / 2 * Math.pow (2, 10 * (t - 1)) + b); } return (c / 2 * (-Math.pow (2, -10 * --t) + 2) + b); }; Penner.easeInCirc = function (t, b, c, d) { t = t / d; return (-c * (Math.sqrt (1 - t * t) - 1) + b); }; Penner.easeOutCirc = function (t, b, c, d) { t = t / d - 1; return (c * Math.sqrt (1 - (t) * t) + b); }; Penner.easeInOutCirc = function (t, b, c, d) { t = t / (d / 2); if (t < 1) { return (-c / 2 * (Math.sqrt (1 - t * t) - 1) + b); } t = t - 2; return (c / 2 * (Math.sqrt (1 - (t) * t) + 1) + b); }; Penner.easeInElastic = function (t, b, c, d, a, p) { if (t == 0) { return (b); } t = t / d; if (t == 1) { return (b + c); } if (!p) { p = d * 3.000000E-001; } if (!a) { a = 0; } if (a < Math.abs (c)) { a = c; var _loc7 = p / 4; } else { _loc7 = p / 6.283185E+000 * Math.asin (c / a); } t = t - 1; return (-a * Math.pow (2, 10 * (t)) * Math.sin ((t * d - _loc7) * 6.283185E+000 / p) + b); }; Penner.easeOutElastic = function (t, b, c, d, a, p) { if (t == 0) { return (b); } t = t / d; if (t == 1) { return (b + c); } if (!p) { p = d * 3.000000E-001; } if (!a) { a = 0; } if (a < Math.abs (c)) { a = c; var _loc7 = p / 4; } else { _loc7 = p / 6.283185E+000 * Math.asin (c / a); } return (a * Math.pow (2, -10 * t) * Math.sin ((t * d - _loc7) * 6.283185E+000 / p) + c + b); }; Penner.easeInOutElastic = function (t, b, c, d, a, p) { if (t == 0) { return (b); } t = t / (d / 2); if (t == 2) { return (b + c); } if (!p) { p = d * 4.500000E-001; } if (!a) { a = 0; } if (a < Math.abs (c)) { a = c; var _loc7 = p / 4; } else { _loc7 = p / 6.283185E+000 * Math.asin (c / a); } if (t < 1) { t = t - 1; return (-5.000000E-001 * (a * Math.pow (2, 10 * (t)) * Math.sin ((t * d - _loc7) * 6.283185E+000 / p)) + b); } t = t - 1; return (a * Math.pow (2, -10 * (t)) * Math.sin ((t * d - _loc7) * 6.283185E+000 / p) * 5.000000E-001 + c + b); }; Penner.easeInBack = function (t, b, c, d, s) { if (s == undefined) { s = 1.701580E+000; } t = t / d; return (c * (t) * t * ((s + 1) * t - s) + b); }; Penner.easeOutBack = function (t, b, c, d, s) { if (s == undefined) { s = 1.701580E+000; } t = t / d - 1; return (c * ((t) * t * ((s + 1) * t + s) + 1) + b); }; Penner.easeInOutBack = function (t, b, c, d, s) { if (s == undefined) { s = 1.701580E+000; } t = t / (d / 2); if (t < 1) { s = s * 1.525000E+000; return (c / 2 * (t * t * ((s + 1) * t - s)) + b); } t = t - 2; s = s * 1.525000E+000; return (c / 2 * ((t) * t * ((s + 1) * t + s) + 2) + b); }; Penner.easeInBounce = function (t, b, c, d) { return (c - Penner.easeOutBounce (d - t, 0, c, d) + b); }; Penner.easeOutBounce = function (t, b, c, d) { t = t / d; if (t < 3.636364E-001) { return (c * (7.562500E+000 * t * t) + b); } else if (t < 7.272727E-001) { t = t - 5.454545E-001; return (c * (7.562500E+000 * (t) * t + 7.500000E-001) + b); } else if (t < 9.090909E-001) { t = t - 8.181818E-001; return (c * (7.562500E+000 * (t) * t + 9.375000E-001) + b); } else { t = t - 9.545455E-001; return (c * (7.562500E+000 * (t) * t + 9.843750E-001) + b); } }; Penner.easeInOutBounce = function (t, b, c, d) { if (t < d / 2) { return (Penner.easeInBounce (t * 2, 0, c, d) * 5.000000E-001 + b); } return (Penner.easeOutBounce (t * 2 - d, 0, c, d) * 5.000000E-001 + c * 5.000000E-001 + b); }; }