Frame 1
Stage.scaleMode = "noScale";
Stage.align = "TL";
_focusrect = false;
fscommand ("trapallkeys", "true");
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
this.menu = new ContextMenu();
this.menu.hideBuiltInItems();
if (!keyboard_url.length) {
keyboard_url = "keyboard.swf";
}
var preloader = (new org.noregret.optimus.Preloader(this, vector, title, logo, keyboard_url));
Symbol 145 MovieClip [__Packages.org.noregret.optimus.Preloader] Frame 0
class org.noregret.optimus.Preloader
{
var rootClip, container, title, logo, loadTarget, loader, clipList, maxPreloadItems, currentPreloadItem, showHandler, speedFactor, titleMask, logoMask, mainTween, isComplete, isInited, isError, waitId, isAnimationFinished, isReady;
function Preloader (rootClip, container, title, logo, url) {
this.rootClip = rootClip;
this.container = container;
this.title = title;
this.logo = logo;
var _local7 = container._parent.getNextHighestDepth();
loadTarget = container._parent.createEmptyMovieClip("loadTarget" + _local7, _local7);
loader = new MovieClipLoader();
loader.addListener(this);
loader.loadClip(url, loadTarget);
var _local2;
clipList = [];
for (var _local6 in container) {
_local2 = MovieClip(container[_local6]);
_local2._visible = false;
if ((((_local2 != null) && (_local2 != loadTarget)) && (_local2 != title)) && (_local2 != logo)) {
clipList.push(_local2);
}
}
clipList.sort(org.noregret.utils.Sort.clipsBySizeAndDepth);
maxPreloadItems = clipList.length;
currentPreloadItem = 0;
showHandler = org.noregret.utils.Delegate.create(this, onTileShow);
speedFactor = 0;
titleMask = new org.noregret.optimus.MaskRectangle(title, "L", true, title._width / 3);
titleMask.showObject(12, "Quad.easeIn");
logoMask = new org.noregret.optimus.MaskRectangle(logo, "L", true, logo._width / 3);
logoMask.showObjectTimeout(10, 12, "Quad.easeIn");
logoMask.addEventListener("onShow", org.noregret.utils.Delegate.create(this, onLogoShow));
mainTween = new org.noregret.tween.NTween(container);
}
function onLoadComplete() {
_global.echo(("Preloader.onLoadComplete(" + arguments) + ")");
isComplete = true;
onLoad();
}
function onLoadInit() {
_global.echo(("Preloader.onLoadInit(" + arguments) + ")");
isInited = true;
onLoad();
}
function onLoadError() {
_global.echo(("Preloader.onLoadError(" + arguments) + ")", 1);
speedFactor = 1;
isError = true;
}
function onLoadProgress() {
speedFactor = loadTarget.getBytesLoaded() / loadTarget.getBytesTotal();
}
function onLogoShow() {
if (isComplete || (isInited)) {
var _local3;
var _local2 = 0;
while (_local2 < clipList.length) {
_local3 = MovieClip(clipList[_local2]);
_local3._visible = true;
_local2++;
}
var _local4 = new org.noregret.optimus.MaskRectangle(container, "T", true, container._height / 3);
_local4.addEventListener("onShow", org.noregret.utils.Delegate.create(this, onPreloadFinished));
_local4.showObject(18, "Quad.easeIn");
} else {
onTileShow();
}
}
function onTileShow(eventObject) {
var _local9 = org.noregret.optimus.MaskRectangle(eventObject.target);
_local9.removeEventListener("onShow", showHandler);
clearInterval(waitId);
if (currentPreloadItem >= maxPreloadItems) {
isAnimationFinished = true;
if (isReady) {
onPreloadFinished();
}
return(undefined);
}
var _local8 = Math.round(maxPreloadItems * speedFactor);
_global.echo([_local8, currentPreloadItem, maxPreloadItems]);
if (_local8 <= currentPreloadItem) {
clearInterval(waitId);
waitId = setInterval(this, "onTileShow", 300);
_global.echo("- interval");
return(undefined);
}
var _local3;
var _local11;
var _local6;
var _local7 = ["L", "T", "R", "B"];
var _local5 = currentPreloadItem;
var _local4 = 0;
while (((_local5 < _local8) && (clipList.length)) && (_local4 < 12)) {
_local3 = MovieClip(clipList[_local5]);
if ((_local3 == null) || (_local3._visible)) {
_global.echo("\t- visible skipped");
} else {
_local3._visible = true;
_local6 = new org.noregret.optimus.MaskRectangle(_local3, _local7[random(_local7.length)], true, _local3._width / 2);
_local6.showObjectTimeout(_local4 * 4, 10, "Quad.easeIn");
}
_local5++;
_local4++;
}
currentPreloadItem = currentPreloadItem + _local4;
if (_local6) {
_local6.addEventListener("onShow", showHandler);
} else {
onTileShow();
}
}
function onPreloadFinished() {
var _local2 = Function(loadTarget.onStart);
_local2.call(loadTarget);
mainTween.alphaTo(0, 20);
mainTween.addEventListener("onMotionComplete", org.noregret.utils.Delegate.create(this, suicide));
}
function onLoad() {
if ((!isComplete) || (!isInited)) {
return(undefined);
}
speedFactor = 1;
isReady = true;
if (isAnimationFinished) {
onPreloadFinished();
}
}
function suicide() {
mainTween.stop();
mainTween.clearAllTimeouts();
container.swapDepths(container._parent.getNextHighestDepth());
container.removeMovieClip();
}
}
Symbol 146 MovieClip [__Packages.org.noregret.optimus.MaskRectangle] Frame 0
class org.noregret.optimus.MaskRectangle
{
var softWidth, targetTween, targetAlpha, target, side, isShowing, maskTween, delayFrames, maskTargetX, maskTargetY, maskStartX, maskStartY, mask, maskInner, relativeX, relativeY, _allowSoftEdge, dispatchEvent;
function MaskRectangle (target, side, allowSoftEdge, softWidth) {
mx.events.EventDispatcher.initialize(this);
var _local3 = String(System.capabilities.version.split(" ").pop());
isPlayerValid = Boolean(Number(_local3.charAt(0)) > 7);
this.softWidth = softWidth || (MASK_MARGIN);
this.allowSoftEdge = (allowSoftEdge);
setTarget(target, side);
targetTween = new org.noregret.tween.NTween(target);
targetAlpha = 100;
target._alpha = 0;
Stage.addListener(this);
}
function setTarget(target, side) {
this.target = target;
setSide(side);
}
function getTarget() {
return(target);
}
function getRandomSide() {
return(SIDE_LIST[random(SIDE_LIST.length)]);
}
function setSide(side) {
side = side.toUpperCase();
if ((side.length == 1) || (side.length == 2)) {
if ((side.length == 2) && ("RL".indexOf(side.charAt(0)) != -1)) {
side = side.charAt(1) + side.charAt(0);
}
if (SIDE_HASH[side]) {
this.side = side;
} else {
this.side = getRandomSide();
}
} else {
this.side = getRandomSide();
}
redrawMask();
}
function getSide() {
return(side);
}
function showObject(durationFrames, easingFunction, amplitude, period) {
if (isShowing) {
return(undefined);
}
targetTween.alphaTo(targetAlpha, (durationFrames / 3) * 2, easingFunction);
target._visible = true;
isShowing = true;
maskTween.clearAllTimeouts();
delayFrames = 0;
maskTween.slideTo(maskTargetX, maskTargetY, durationFrames || (DEFAULT_DURATION), easingFunction || (DEFAULT_EASING), amplitude, period);
}
function showObjectTimeout(delay, durationFrames, easingFunction, amplitude, period) {
if (isShowing) {
return(undefined);
}
targetTween.tweenTimeout(delay, "_alpha", 100, (durationFrames / 3) * 2, easingFunction);
target._visible = true;
isShowing = true;
maskTween.clearAllTimeouts();
delayFrames = 0;
maskTween.tweenTimeout(delay, ["_x", "_y"], [maskTargetX, maskTargetY], durationFrames || (DEFAULT_DURATION), easingFunction || (DEFAULT_EASING), amplitude, period);
}
function hideObject(durationFrames, easingFunction, amplitude, period) {
if (!isShowing) {
return(undefined);
}
isShowing = false;
maskTween.clearAllTimeouts();
delayFrames = 0;
maskTween.slideTo(maskStartX, maskStartY, durationFrames || (DEFAULT_DURATION), easingFunction || (DEFAULT_EASING), amplitude, period);
}
function redrawMask() {
removeMask();
target.cacheAsBitmap = false;
var _local4 = new org.noregret.utils.BoundsObject();
_local4.setClip(target, target._parent);
createMask();
mask.cacheAsBitmap = allowSoftEdge;
mask._visible = false;
target.cacheAsBitmap = allowSoftEdge;
if (side.length == 1) {
mask._rotation = 0;
var _local10 = 0;
var _local9 = 0;
var _local6 = _local4.__get__width() + softWidth;
var _local5 = _local4.__get__height() + softWidth;
var _local8 = _local6;
var _local7 = _local5;
if (!allowSoftEdge) {
_local8 = _local6 + softWidth;
_local7 = _local5 + softWidth;
} else if ((side == "R") || (side == "L")) {
_local7 = _local5 + softWidth;
if (side == "R") {
_local10 = softWidth;
drawGradientBox(maskInner, 0, 0, softWidth, _local5 + softWidth, 0);
} else {
drawGradientBox(maskInner, _local6, 0, softWidth, _local5 + softWidth, Math.PI);
}
} else {
_local8 = _local6 + softWidth;
if (side == "T") {
drawGradientBox(maskInner, 0, _local5, _local6 + softWidth, softWidth, -1.5707963267949);
} else {
_local9 = softWidth;
drawGradientBox(maskInner, 0, 0, _local6 + softWidth, softWidth, (Math.PI/2));
}
}
drawFullBox(maskInner, _local10, _local9, _local8, _local7);
_local8 = _local4.__get__width() + (softWidth * 2);
_local7 = _local4.__get__height() + (softWidth * 2);
switch (side) {
case "R" :
maskStartX = (mask._x = _local4.xMax + 1);
maskStartY = (mask._y = (_local4.yMin - softWidth) - 1);
maskTargetX = _local4.xMin - softWidth;
maskTargetY = mask._y;
break;
case "L" :
maskStartX = (mask._x = (_local4.xMin - _local8) - 1);
maskStartY = (mask._y = (_local4.yMin - softWidth) - 1);
maskTargetX = _local4.xMin - softWidth;
maskTargetY = mask._y;
break;
case "T" :
maskStartX = (mask._x = (_local4.xMin - softWidth) - 1);
maskStartY = (mask._y = (_local4.yMin - _local7) - 1);
maskTargetX = mask._x;
maskTargetY = _local4.yMin - softWidth;
break;
case "B" :
maskStartX = (mask._x = (_local4.xMin - softWidth) - 1);
maskStartY = (mask._y = _local4.yMax + 1);
maskTargetX = mask._x;
maskTargetY = _local4.yMin - softWidth;
}
relativeX = maskStartX - target._x;
relativeY = maskStartY - target._x;
} else {
_global.echo(("MaskRectangle.redrawMask(" + arguments) + ") : DISABLED FOR NOW!", 1);
trace(("MaskRectangle.redrawMask(" + arguments) + ") : DISABLED FOR NOW!");
}
}
function get allowSoftEdge() {
return(_allowSoftEdge);
}
function set allowSoftEdge(value) {
if (!isPlayerValid) {
trace(WARNING_SOFT_EDGE);
return;
}
if (value == _allowSoftEdge) {
return;
}
_allowSoftEdge = Boolean(value);
if (mask) {
redrawMask();
}
//return(allowSoftEdge);
}
function drawFullBox(target, x, y, width, height) {
target.lineStyle(0, 255, 0);
target.beginFill(0, 100);
drawBox(target, x, y, width, height);
target.endFill();
}
function drawGradientBox(target, x, y, width, height, rotation) {
target.lineStyle(0, 16711680, 0);
var _local3 = {matrixType:"box", x:x, y:y, w:width, h:height, r:rotation};
target.beginGradientFill("linear", [0, 0], [0, 100], [0, 255], _local3);
drawBox(target, x, y, width, height);
target.endFill();
}
function drawBox(target, x, y, width, height, rotation) {
target.moveTo(x, y);
target.lineTo(x + width, y);
target.lineTo(x + width, y + height);
target.lineTo(x, y + height);
target.lineTo(x, y);
}
function drawSkewedGradientBox(target, width, height, rotation, x1, y1, x2, y2, x3, y3, x4, y4) {
target.lineStyle(0, 16711680, 0);
var _local4 = {matrixType:"box", x:x1, y:y1, w:width, h:height, r:rotation};
target.beginGradientFill("linear", [0, 0], [0, 100], [0, 255], _local4);
target.moveTo(x1, y1);
target.lineTo(x2, y2);
target.lineTo(x3, y3);
target.lineTo(x4, y4);
target.lineTo(x1, y1);
target.endFill();
}
function removeMask() {
target._alpha = targetAlpha;
target.setMask(null);
targetTween.stop();
targetTween.clearAllTimeouts();
maskTween.stop();
maskTween.clearAllTimeouts();
maskTween.setTarget(null);
mask.removeMovieClip();
target.cacheAsBitmap = false;
delete mask;
}
function remove() {
removeMask();
}
function createMask() {
var _local2 = target._parent.getNextHighestDepth();
mask = target._parent.createEmptyMovieClip((("__mask_transition" + getTimer()) + "_") + _local2, _local2);
maskInner = mask.createEmptyMovieClip("inner", 0);
if (!maskTween) {
maskTween = new org.noregret.tween.NTween(mask);
maskTween.addEventListener("onMotionComplete", org.noregret.utils.Delegate.create(this, onMaskComplete));
maskTween.addEventListener("onMotionChanged", org.noregret.utils.Delegate.create(this, onMaskChanged));
} else {
maskTween.setTarget(mask);
}
target.setMask(mask);
}
function onMaskComplete() {
if (isShowing) {
removeMask();
dispatchEvent({type:EVENT_SHOW});
} else {
dispatchEvent({type:EVENT_HIDE});
}
}
function onResize() {
}
function onMaskChanged() {
relativeX = mask._x - target._x;
relativeY = mask._y - target._y;
}
function stop() {
maskTween.stop();
maskTween.clearAllTimeouts();
}
static var SIDE_LIST = ["L", "T", "R", "B", "TL", "TR", "BL", "BR"];
static var SIDE_HASH = {L:1, T:1, R:1, B:1, TL:1, TR:1, BL:1, BR:1};
static var MASK_MARGIN = 30;
static var DEFAULT_DURATION = 30;
static var DEFAULT_EASING = "Expo.easeOut";
static var EVENT_SHOW = "onShow";
static var EVENT_HIDE = "onHide";
static var WARNING_SOFT_EDGE = "MaskRectangle warning: soft edges are available on Flash Player 8 and higher.";
var isPlayerValid = false;
}
Symbol 147 MovieClip [__Packages.com.robertpenner.easing.Linear] Frame 0
class com.robertpenner.easing.Linear
{
function Linear () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOutIn(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 148 MovieClip [__Packages.com.robertpenner.easing.Back] Frame 0
class com.robertpenner.easing.Back
{
function Back () {
}
static function easeIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOut(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutIn(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
}
Symbol 149 MovieClip [__Packages.com.robertpenner.easing.Bounce] Frame 0
class com.robertpenner.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutIn(t, b, c, d) {
if (t < (d / 2)) {
return((easeOut(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeIn((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
}
Symbol 150 MovieClip [__Packages.com.robertpenner.easing.Circ] Frame 0
class com.robertpenner.easing.Circ
{
function Circ () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOut(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);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
}
Symbol 151 MovieClip [__Packages.com.robertpenner.easing.Cubic] Frame 0
class com.robertpenner.easing.Cubic
{
function Cubic () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOut(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);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
}
Symbol 152 MovieClip [__Packages.com.robertpenner.easing.Elastic] Frame 0
class com.robertpenner.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(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 * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutIn(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 * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)))) + b);
}
}
Symbol 153 MovieClip [__Packages.com.robertpenner.easing.Expo] Frame 0
class com.robertpenner.easing.Expo
{
function Expo () {
}
static function easeIn(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOut(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOut(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);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutIn(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)) + 1)) + b);
}
}
Symbol 154 MovieClip [__Packages.com.robertpenner.easing.Quad] Frame 0
class com.robertpenner.easing.Quad
{
function Quad () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((t * t) - 1)) + b);
}
t--;
return(((c / 2) * ((t * t) + 1)) + b);
}
}
Symbol 155 MovieClip [__Packages.com.robertpenner.easing.Quart] Frame 0
class com.robertpenner.easing.Quart
{
function Quart () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOut(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);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
}
Symbol 156 MovieClip [__Packages.com.robertpenner.easing.Quint] Frame 0
class com.robertpenner.easing.Quint
{
function Quint () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(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);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
}
Symbol 157 MovieClip [__Packages.com.robertpenner.easing.Sine] Frame 0
class com.robertpenner.easing.Sine
{
function Sine () {
}
static function easeIn(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOut(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOut(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutIn(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
}
Symbol 158 MovieClip [__Packages.org.noregret.tween.NTween] Frame 0
class org.noregret.tween.NTween
{
var tweenTimeouts, currentTweenHash, roundHash, targetObject, dispatchEvent;
function NTween (objectToTween, isSelfBeacon) {
mx.events.EventDispatcher.initialize(this);
setTarget(objectToTween, isSelfBeacon);
var _local3 = Function(_global.ASSetPropFlags);
_local3(this, "onEnterFrame", 7, 8);
tweenTimeouts = new org.noregret.tween.NTweenTimeoutHolder(this);
tweenTimeouts.addListener(this);
currentTweenHash = {};
roundHash = {};
com.robertpenner.easing.Back;
com.robertpenner.easing.Bounce;
com.robertpenner.easing.Circ;
com.robertpenner.easing.Cubic;
com.robertpenner.easing.Elastic;
com.robertpenner.easing.Expo;
com.robertpenner.easing.Linear;
com.robertpenner.easing.Quad;
com.robertpenner.easing.Quart;
com.robertpenner.easing.Quint;
com.robertpenner.easing.Sine;
}
function setTarget(objectToTween, isSelfBeacon) {
targetObject = objectToTween;
if ((targetObject === null) || (targetObject === undefined)) {
if (WARNINGS_ENABLED) {
trace("Tween Warning: no target object specified");
}
return(undefined);
}
if (isSelfBeacon) {
org.noregret.tween.NTweenBeacon.initializeSingle(targetObject);
frameEventProvider = targetObject;
}
}
function getTarget() {
return(targetObject);
}
function isTweening() {
for (var _local2 in currentTweenHash) {
return(true);
}
return(false);
}
function isPropertyTweening(propertyName) {
return(Boolean(currentTweenHash[propertyName]));
}
function finish(propertyNameOrList) {
var _local3 = convertToList(propertyNameOrList);
var _local2 = {};
if (!_local3.length) {
for (var _local5 in currentTweenHash) {
_local2[_local5] = currentTweenHash[_local5];
}
} else {
var _local5 = 0;
while (_local5 < _local3.length) {
_local2[_local3[_local5]] = currentTweenHash[_local3[_local5]];
_local5++;
}
}
stop(propertyNameOrList);
for (var _local5 in _local2) {
var _local4 = _local2[_local5];
targetObject[_local5] = _local4.valueTo;
}
}
function stop(propertyNameOrList) {
var _local3 = convertToList(propertyNameOrList);
if (!_local3.length) {
clearAllTimeouts();
} else {
var _local4;
var _local2 = 0;
while (_local2 < _local3.length) {
_local4 = _local3[_local2];
stopTweening(_local4);
_local2++;
}
}
}
function alphaTo(finish, totalFrames, easingFunction, amplitude, period) {
return(tween("_alpha", finish, totalFrames, easingFunction, amplitude, period));
}
function slideTo(x, y, totalFrames, easingFunction, amplitude, period) {
var _local2 = tween("_x", x, totalFrames, easingFunction, amplitude, period);
var _local3 = tween("_y", y, totalFrames, easingFunction, amplitude, period);
return(_local2 || (_local3));
}
function scaleTo(scaleX, scaleY, totalFrames, easingFunction, amplitude, period) {
var _local2 = tween("_xscale", scaleX, totalFrames, easingFunction, amplitude, period);
var _local3 = tween("_yscale", scaleY, totalFrames, easingFunction, amplitude, period);
return(_local2 || (_local3));
}
function rotateTo(finish, totalFrames, easingFunction, amplitude, period) {
return(tween("_rotation", finish, totalFrames, easingFunction, amplitude, period));
}
function slideToRounded(x, y, totalFrames, easingFunction, amplitude, period) {
roundHash._x = true;
roundHash._y = true;
return(slideTo(Math.round(x), Math.round(y), totalFrames, easingFunction, amplitude, period));
}
function sizeTo(width, height, totalFrames, easingFunction, amplitude, period) {
var _local3 = tween("_width", width, totalFrames, easingFunction, amplitude, period);
var _local2 = tween("_height", height, totalFrames, easingFunction, amplitude, period);
return(_local3 || (_local2));
}
function sizeToRounded(width, height, totalFrames, easingFunction, amplitude, period) {
roundHash._width = true;
roundHash._height = true;
return(sizeTo(Math.round(width), Math.round(height), totalFrames, easingFunction, amplitude, period));
}
function tween(propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period) {
var _local4;
var _local13;
var _local7 = convertToList(propertyNameOrList);
if (finishValueOrList instanceof Array) {
_local4 = Array(finishValueOrList);
_local4 = _local4[0];
} else {
_local13 = Number(finishValueOrList);
}
if ((totalFrames == null) || (isNaN(totalFrames))) {
totalFrames = DEFAULT_TOTAL_FRAMES;
}
var _local10 = false;
var _local5;
var _local3;
var _local9;
var _local8 = getEasingMethods(easingFunction);
var _local11 = [];
var _local12 = [];
var _local2 = 0;
while (_local2 < _local7.length) {
_local5 = (((_local4 == null) || (isNaN(_local4[_local2]))) ? (_local13) : (_local4[_local2]));
_local3 = _local7[_local2];
if (!validateTween(_local3, _local5, totalFrames)) {
} else {
_local11.push(_local3);
_local12.push(targetObject[_local3]);
_local10 = true;
_local9 = new org.noregret.tween.NTweenItem(targetObject, _local3, null, _local5, totalFrames, _local8[0], _local8[1], amplitude, period);
currentTweenHash[_local3] = _local9;
}
_local2++;
}
if (_local10) {
play();
onTweenStarted(_local11, _local12);
}
return(_local10);
}
function tweenTimeout(delayFrames, propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period) {
var _local2 = org.noregret.utils.Delegate.create(this, tween, propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period);
return(Boolean(addTimeout(delayFrames, convertToList(propertyNameOrList), _local2)));
}
function tweenDelay(delayFrames, propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period) {
return(Boolean(tweenTimeout.apply(this, arguments)));
}
function tweenRounded(propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period) {
if (propertyNameOrList instanceof Array) {
var _local3;
for (var _local5 in propertyNameOrList) {
_local3 = String(propertyNameOrList[_local5]);
if ((_local3.length && (targetObject[_local3] != null)) && (!isNaN(targetObject[_local3]))) {
roundHash[_local3] = true;
}
}
} else {
roundHash[String(propertyNameOrList)] = true;
}
return(Boolean(tween.apply(this, arguments)));
}
function tweenRoundedTimeout(delayFrames, propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period) {
var _local2 = org.noregret.utils.Delegate.create(this, tweenRounded, propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period);
return(Boolean(addTimeout(delayFrames, convertToList(propertyNameOrList), _local2)));
}
function tweenRoundedDelay(delayFrames, propertyNameOrList, finishValueOrList, totalFrames, easingFunction, amplitude, period) {
return(Boolean(tweenRoundedTimeout.apply(this, arguments)));
}
function clearTimeout(propertyNameOrList) {
if (propertyNameOrList instanceof Array) {
for (var _local3 in Array) {
tweenTimeouts.removeTimeout(String(propertyNameOrList[_local3]));
}
} else {
tweenTimeouts.removeTimeout(String(propertyNameOrList));
}
}
function clearAllTimeouts() {
tweenTimeouts.clearAll();
}
function reverseTween(propertyNameOrList, isMethodReversed, reverseMethod) {
var _local3 = convertToList(propertyNameOrList);
var _local2;
var _local4;
var _local5 = getEasingMethods(reverseMethod);
for (var _local7 in _local3) {
_local2 = _local3[_local7];
if (!isPropertyTweening(_local2)) {
continue;
}
_local4 = currentTweenHash[_local2];
_local4.reverse(true, isMethodReversed, _local5[0]);
}
}
function loopTween(propertyNameOrList, loopCountOrList, isDirectionReversed, isMethodReversed, reverseMethod) {
var _local5 = convertToList(propertyNameOrList);
var _local6 = convertToList(loopCountOrList);
var _local4;
var _local2;
var _local3;
var _local7 = Number(_local6[0]);
var _local8;
if (reverseMethod) {
_local8 = getEasingMethods(reverseMethod);
}
for (var _local10 in _local5) {
_local4 = _local5[_local10];
if (!isPropertyTweening(_local4)) {
continue;
}
_local2 = currentTweenHash[_local4];
_local3 = Number(_local6[_local10]) || (_local7);
if (((_local3 == null) || (isNaN(_local3))) || (_local3 <= 0)) {
_local2.loopCount = null;
} else {
_local2.loopCount = _local3;
}
_local2.isLooped = true;
_local2.isDirectionReversed = isDirectionReversed;
_local2.isMethodReversed = isMethodReversed;
_local2.reverseMethod = _local8[0];
}
}
function stopLooping(propertyNameOrList) {
var _local2;
var _local3;
if (propertyNameOrList != null) {
var _local4 = convertToList(propertyNameOrList);
for (var _local5 in _local4) {
_local3 = _local4[_local5];
if (!isPropertyTweening(_local3)) {
continue;
}
_local2 = currentTweenHash[_local3];
_local2.isLooped = false;
}
} else {
for (var _local5 in currentTweenHash) {
_local2 = currentTweenHash[_local5];
_local2.isLooped = false;
}
}
}
function addEventListener(eventName, functionOrObject) {
}
function removeEventListener(eventName, functionOrObject) {
}
function addListener(functionOrObject) {
for (var _local2 in EVENT_LIST) {
addEventListener(EVENT_LIST[_local2], functionOrObject);
}
}
function removeListener(functionOrObject) {
for (var _local2 in EVENT_LIST) {
removeEventListener(EVENT_LIST[_local2], functionOrObject);
}
}
function onEnterFrame() {
nextFrame();
}
function nextFrame() {
var _local2;
for (var _local3 in currentTweenHash) {
_local2 = org.noregret.tween.NTweenItem(currentTweenHash[_local3]);
if (_local2.isPaused) {
continue;
}
if (_local2.__get__isFinished()) {
if (_local2.isLooped && ((_local2.loopCount == null) || (_local2.loopCount > 0))) {
if (_local2.loopCount != null) {
_local2.loopCount--;
}
if (_local2.isDirectionReversed || (_local2.isMethodReversed)) {
_local2.reverse(_local2.isDirectionReversed, _local2.isMethodReversed, _local2.reverseMethod);
} else {
_local2.__set___currentframe(0);
}
onTweenLooped(_local3, targetObject[_local3], _local2.loopCount);
} else {
delete currentTweenHash[_local3];
delete roundHash[_local3];
onTweenFinished(_local3, targetObject[_local3]);
}
} else {
_local2.__set___currentframe((_local2.__get___currentframe()+1));
targetObject[_local3] = (roundHash[_local3] ? (round(_local2.valueNow)) : (_local2.valueNow));
onTweenChanged(_local3, targetObject[_local3]);
}
}
if (isTweening()) {
return(undefined);
}
stopTweening();
roundHash = {};
onTweenComplete();
}
function onTweenStarted(propertyNameList, propertyValueList) {
dispatchEvent({type:EVENT_STARTED, propertyNameList:propertyNameList, propertyValueList:propertyValueList});
}
function onTweenChanged(propertyName, value) {
dispatchEvent({type:EVENT_CHANGED, propertyName:propertyName, propertyValue:value});
}
function onTweenLooped(propertyName, value, loopCount) {
dispatchEvent({type:EVENT_LOOPED, propertyName:propertyName, loopCount:loopCount, propertyValue:value});
}
function onTweenFinished(propertyName, value) {
dispatchEvent({type:EVENT_FINISHED, propertyName:propertyName, propertyValue:value});
}
function onTweenComplete() {
dispatchEvent({type:EVENT_COMPLETE});
}
function gotoFrame(frame, propertyName) {
if ((frame == null) || (isNaN(frame))) {
return(undefined);
}
var _local2;
if (propertyName.length) {
_local2 = org.noregret.tween.NTweenItem(currentTweenHash[propertyName]);
_local2.__set___currentframe(frame);
} else {
for (var _local4 in currentTweenHash) {
_local2 = org.noregret.tween.NTweenItem(currentTweenHash[_local4]);
_local2.__set___currentframe(frame);
}
}
}
function play() {
addProviderListener(this);
}
function stopTweening(propertyName) {
if (propertyName.length) {
clearTimeout(propertyName);
var _local3 = currentTweenHash[propertyName];
if (_local3 != null) {
delete currentTweenHash[propertyName];
targetObject[propertyName] = _local3.update();
} else {
return(undefined);
}
if (isTweening()) {
return(undefined);
}
}
currentTweenHash = {};
removeProviderListener(this);
update();
}
function update() {
var _local2;
for (var _local3 in currentTweenHash) {
_local2 = currentTweenHash[_local3];
targetObject[_local3] = _local2.update();
}
}
function validateTween(propertyName, finish, totalFrames) {
if (targetObject == null) {
if (WARNINGS_ENABLED) {
trace("NTween Warning! No target object for tween()");
}
}
if (((((!propertyName.length) || (finish == null)) || (isNaN(finish))) || (isNaN(totalFrames))) || (isNaN(targetObject[propertyName]))) {
if (WARNINGS_ENABLED) {
trace(("NTween Error! Invalid arguments for tween(): [" + arguments) + "]");
}
return(false);
}
return(true);
}
function addTimeout(delayFrames, propertyList, delegatedTrigger) {
var _local3 = null;
if (delayFrames == 0) {
delegatedTrigger();
} else if (delayFrames > 0) {
_local3 = tweenTimeouts.addTimeout(delayFrames, propertyList, delegatedTrigger);
} else if (WARNINGS_ENABLED) {
trace("NTween Error! Delay is invalid: " + delayFrames);
}
return(_local3);
}
function onTimerActive() {
addProviderListener(tweenTimeouts);
}
function onTimerPassive() {
removeProviderListener(tweenTimeouts);
}
function convertToList(stringOrList) {
var _local1;
if (stringOrList instanceof Array) {
_local1 = [stringOrList];
} else {
_local1 = [[stringOrList]];
}
return(_local1[0]);
}
function getEasingMethods(func) {
var _local3;
var _local4;
var _local7 = Function(com.robertpenner.easing[DEFAULT_EASE_CLASS]);
if ((func == null) || (func === "")) {
_local3 = _local7[DEFAULT_EASE_METHOD];
_local4 = _local7[MODE_ANTONYMS[DEFAULT_EASE_METHOD]];
} else if (func === "none") {
_local3 = com.robertpenner.easing.Linear.easeOut;
_local4 = _local3;
} else if (typeof(func) == "function") {
_local3 = Function(func);
_local4 = null;
var _local1;
for (var _local8 in MODE_REFERENCE_ANTONYMS) {
_local1 = MODE_REFERENCE_ANTONYMS[_local8];
if (_local1[0] == _local3) {
_local4 = _local1[1];
}
}
} else if (typeof(func) == "string") {
var _local11 = String(func).toLowerCase().split(".").join("");
var _local10 = _local11.split("ease");
var _local9 = String(_local10[0]);
_local9 = _local9.charAt(0).toUpperCase() + _local9.substr(1);
var _local2 = String(_local10[1]);
_local2 = _local2.split("out").join("Out").split("in").join("In");
var _local5 = com.robertpenner.easing[_local9];
if (_local2.length) {
_local2 = "ease" + _local2;
}
if (typeof(_local5[_local2]) != "function") {
if (typeof(_local5) == "function") {
_local2 = DEFAULT_EASE_METHOD;
} else if (_local2.length) {
_local5 = _local7;
}
}
_local5 = _local5 || (_local7);
_local2 = _local2 || (DEFAULT_EASE_METHOD);
_local3 = _local5[_local2];
_local4 = _local5[MODE_ANTONYMS[_local2]];
}
return([_local3, _local4]);
}
function addProviderListener(listener) {
var _local2 = getProvider();
var _local3 = Function(_local2.addListener);
_local3.call(_local2, listener);
}
function getProvider() {
if (frameEventProvider != undefined) {
return(frameEventProvider);
}
return(org.noregret.tween.NTweenBeacon.getBeacon());
}
function removeProviderListener(listener) {
var _local2 = getProvider();
var _local3 = Function(_local2.removeListener);
_local3.call(_local2, listener);
}
function toString() {
return((("{NTween instance} target:" + getTarget()) + ", isTweening:") + isTweening());
}
static var WARNINGS_ENABLED = false;
static var DEFAULT_TOTAL_FRAMES = 30;
static var DEFAULT_EASE_CLASS = "Expo";
static var DEFAULT_EASE_METHOD = "easeOut";
static var EVENT_STARTED = "onMotionStarted";
static var EVENT_CHANGED = "onMotionChanged";
static var EVENT_LOOPED = "onMotionLooped";
static var EVENT_FINISHED = "onMotionFinished";
static var EVENT_COMPLETE = "onMotionComplete";
static var EVENT_LIST = [EVENT_STARTED, EVENT_CHANGED, EVENT_FINISHED, EVENT_COMPLETE];
static var MODE_ANTONYMS = {easeIn:"easeOut", easeOut:"easeIn", easeInOut:"easeOutIn", easeOutIn:"easeInOut"};
static var MODE_REFERENCE_ANTONYMS = [[com.robertpenner.easing.Linear.easeIn, com.robertpenner.easing.Linear.easeOut], [com.robertpenner.easing.Linear.easeOut, com.robertpenner.easing.Linear.easeOut], [com.robertpenner.easing.Linear.easeInOut, com.robertpenner.easing.Linear.easeOut], [com.robertpenner.easing.Linear.easeOutIn, com.robertpenner.easing.Linear.easeOut], [com.robertpenner.easing.Back.easeIn, com.robertpenner.easing.Back.easeOut], [com.robertpenner.easing.Back.easeOut, com.robertpenner.easing.Back.easeIn], [com.robertpenner.easing.Back.easeInOut, com.robertpenner.easing.Back.easeOutIn], [com.robertpenner.easing.Back.easeOutIn, com.robertpenner.easing.Back.easeInOut], [com.robertpenner.easing.Bounce.easeIn, com.robertpenner.easing.Bounce.easeOut], [com.robertpenner.easing.Bounce.easeOut, com.robertpenner.easing.Bounce.easeIn], [com.robertpenner.easing.Bounce.easeInOut, com.robertpenner.easing.Bounce.easeOutIn], [com.robertpenner.easing.Bounce.easeOutIn, com.robertpenner.easing.Bounce.easeInOut], [com.robertpenner.easing.Circ.easeIn, com.robertpenner.easing.Circ.easeOut], [com.robertpenner.easing.Circ.easeOut, com.robertpenner.easing.Circ.easeIn], [com.robertpenner.easing.Circ.easeInOut, com.robertpenner.easing.Circ.easeOutIn], [com.robertpenner.easing.Circ.easeOutIn, com.robertpenner.easing.Circ.easeInOut], [com.robertpenner.easing.Cubic.easeIn, com.robertpenner.easing.Cubic.easeOut], [com.robertpenner.easing.Cubic.easeOut, com.robertpenner.easing.Cubic.easeIn], [com.robertpenner.easing.Cubic.easeInOut, com.robertpenner.easing.Cubic.easeOutIn], [com.robertpenner.easing.Cubic.easeOutIn, com.robertpenner.easing.Cubic.easeInOut], [com.robertpenner.easing.Elastic.easeIn, com.robertpenner.easing.Elastic.easeOut], [com.robertpenner.easing.Elastic.easeOut, com.robertpenner.easing.Elastic.easeIn], [com.robertpenner.easing.Elastic.easeInOut, com.robertpenner.easing.Elastic.easeOutIn], [com.robertpenner.easing.Elastic.easeOutIn, com.robertpenner.easing.Elastic.easeInOut], [com.robertpenner.easing.Expo.easeIn, com.robertpenner.easing.Expo.easeOut], [com.robertpenner.easing.Expo.easeOut, com.robertpenner.easing.Expo.easeIn], [com.robertpenner.easing.Expo.easeInOut, com.robertpenner.easing.Expo.easeOutIn], [com.robertpenner.easing.Expo.easeOutIn, com.robertpenner.easing.Expo.easeInOut], [com.robertpenner.easing.Quad.easeIn, com.robertpenner.easing.Quad.easeOut], [com.robertpenner.easing.Quad.easeOut, com.robertpenner.easing.Quad.easeIn], [com.robertpenner.easing.Quad.easeInOut, com.robertpenner.easing.Quad.easeOutIn], [com.robertpenner.easing.Quad.easeOutIn, com.robertpenner.easing.Quad.easeInOut], [com.robertpenner.easing.Quart.easeIn, com.robertpenner.easing.Quart.easeOut], [com.robertpenner.easing.Quart.easeOut, com.robertpenner.easing.Quart.easeIn], [com.robertpenner.easing.Quart.easeInOut, com.robertpenner.easing.Quart.easeOutIn], [com.robertpenner.easing.Quart.easeOutIn, com.robertpenner.easing.Quart.easeInOut], [com.robertpenner.easing.Quint.easeIn, com.robertpenner.easing.Quint.easeOut], [com.robertpenner.easing.Quint.easeOut, com.robertpenner.easing.Quint.easeIn], [com.robertpenner.easing.Quint.easeInOut, com.robertpenner.easing.Quint.easeOutIn], [com.robertpenner.easing.Quint.easeOutIn, com.robertpenner.easing.Quint.easeInOut], [com.robertpenner.easing.Sine.easeIn, com.robertpenner.easing.Sine.easeOut], [com.robertpenner.easing.Sine.easeOut, com.robertpenner.easing.Sine.easeIn], [com.robertpenner.easing.Sine.easeInOut, com.robertpenner.easing.Sine.easeOutIn], [com.robertpenner.easing.Sine.easeOutIn, com.robertpenner.easing.Sine.easeInOut]];
static var round = Math.round;
var frameEventProvider = null;
}
Symbol 159 MovieClip [__Packages.org.noregret.tween.NTweenTimeoutHolder] Frame 0
class org.noregret.tween.NTweenTimeoutHolder
{
var timerList, dispatchEvent, addEventListener, removeEventListener;
function NTweenTimeoutHolder () {
mx.events.EventDispatcher.initialize(this);
timerList = [];
}
function addTimeout(delayFrames, propertyList, delegatedTrigger) {
if (isNaN(delayFrames)) {
return(null);
}
var _local2 = new org.noregret.tween.NTweenTimeout(delayFrames, propertyList, delegatedTrigger);
timerList.push(_local2);
if (!isActive) {
isActive = true;
dispatchEvent({type:EVENT_START});
}
return(_local2);
}
function removeTimeout(propertyName) {
var _local2;
for (var _local5 in timerList) {
_local2 = org.noregret.tween.NTweenTimeout(timerList[_local5]);
for (var _local4 in _local2.propertyList) {
if (_local2.propertyList[_local4] == propertyName) {
_local2.propertyList.splice(Number(_local4), 1);
}
}
if (!_local2.propertyList.length) {
timerList.splice(Number(_local5), 1);
}
}
if (!timerList.length) {
clearAll();
}
}
function clearAll() {
timerList = [];
isActive = false;
}
function addListener(listener) {
addEventListener(EVENT_START, listener);
addEventListener(EVENT_STOP, listener);
}
function removeListener(listener) {
removeEventListener(EVENT_START, listener);
removeEventListener(EVENT_STOP, listener);
}
function onEnterFrame() {
var _local2;
for (var _local3 in timerList) {
_local2 = org.noregret.tween.NTweenTimeout(timerList[_local3]);
_local2.delayFrames--;
if (_local2.delayFrames <= 0) {
timerList.splice(Number(_local3), 1);
launchTimeout(_local2);
}
}
}
function launchTimeout(timerObject) {
timerObject.delegatedTrigger();
if (!timerList.length) {
clearAll();
dispatchEvent({type:EVENT_STOP});
}
}
static var EVENT_START = "onTimerActive";
static var EVENT_STOP = "onTimerPassive";
var isActive = false;
}
Symbol 160 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 161 MovieClip [__Packages.org.noregret.tween.NTweenTimeout] Frame 0
class org.noregret.tween.NTweenTimeout
{
var delayFrames, propertyList, delegatedTrigger;
function NTweenTimeout (delayFrames, propertyList, delegatedTrigger) {
this.delayFrames = delayFrames;
this.propertyList = propertyList;
this.delegatedTrigger = delegatedTrigger;
}
}
Symbol 162 MovieClip [__Packages.org.noregret.tween.NTweenBeacon] Frame 0
class org.noregret.tween.NTweenBeacon
{
function NTweenBeacon () {
}
static function addListener(listener) {
var _local1 = Function(getBeacon().addListener);
return(Boolean(_local1.call(getBeacon(), listener)));
}
static function removeListener(listener) {
var _local1 = Function(getBeacon().removeListener);
return(Boolean(_local1.call(getBeacon(), listener)));
}
static function getBeacon() {
if (beacon == null) {
initialize();
}
return(beacon);
}
static function initialize(targetObject) {
var _local2 = [];
if (targetObject == null) {
if (beacon instanceof MovieClip) {
return(undefined);
}
targetObject = CONTAINER.createEmptyMovieClip(BEACON_CLIP_NAME, DEPTH);
beacon = targetObject;
} else {
beacon = targetObject;
if (_root[BEACON_CLIP_NAME]) {
var _local6 = MovieClip(_root[BEACON_CLIP_NAME]);
var _local8 = _local6._listeners;
_local2 = _local8.concat();
var _local7 = CONTAINER.getNextHighestDepth();
MovieClip(CONTAINER[BEACON_CLIP_NAME]).swapDepths(_local7);
MovieClip(CONTAINER[BEACON_CLIP_NAME]).removeMovieClip();
}
}
setUpBeacon(targetObject);
var _local4 = Function(targetObject.addListener);
for (var _local5 in _local2) {
_local4.call(targetObject, _local2[_local5]);
}
}
static function initializeSingle(targetObject) {
setUpBeacon(targetObject);
}
static function setUpBeacon(targetObject) {
if (((targetObject.addListener == undefined) || (targetObject.removeListener == undefined)) || (targetObject._listeners == undefined)) {
AsBroadcaster.initialize(targetObject);
}
var thisObject = targetObject;
var customOnenterframe = targetObject.onEnterFrame;
var broadcastMessage = targetObject.broadcastMessage;
var _local3 = function () {
var _local1 = function () {
broadcastMessage.call(thisObject, "onEnterFrame");
if (customOnenterframe) {
customOnenterframe.call(thisObject);
}
};
return(_local1);
};
var _local6 = function (value) {
customOnenterframe = value;
};
targetObject.addProperty("onEnterFrame", _local3, _local6);
var _local5 = _global.ASSetPropFlags;
_local5.call(_global, targetObject, ["onEnterFrame"], parseInt("010", 2), 0);
}
static var CONTAINER = _root;
static var DEPTH = -2;
static var BEACON_CLIP_NAME = "__NTween_OnEnterFrameBeacon__";
static var MX_BEACON_CLIP_NAME = "__OnEnterFrameBeacon";
static var beacon = null;
}
Symbol 163 MovieClip [__Packages.org.noregret.tween.NTweenItem] Frame 0
class org.noregret.tween.NTweenItem
{
var valueFrom, valueTo, valueNow, _totalframes, amplitude, period, propertyName, easeFunction, easeAntonym, currentFrame, reverseMethod;
function NTweenItem (target_object, prop, begin, finish, totalframes, func, funcAntonym, a, p) {
valueFrom = ((begin == null) ? (target_object[prop]) : (begin));
valueTo = finish;
valueNow = valueFrom;
_totalframes = Math.round(totalframes);
_currentframe = (0);
amplitude = a;
period = p;
propertyName = prop;
easeFunction = func;
easeAntonym = funcAntonym;
}
function update() {
valueNow = easeFunction(currentFrame, valueFrom, valueTo - valueFrom, _totalframes, amplitude, period);
return(valueNow);
}
function set _currentframe(value) {
if (isNaN(value)) {
return;
}
if (value < 0) {
value = 0;
} else if (value > _totalframes) {
value = _totalframes;
}
currentFrame = value;
update();
//return(_currentframe);
}
function get _currentframe() {
return(currentFrame);
}
function set isFinished(value) {
//return(isFinished);
}
function get isFinished() {
return(currentFrame >= _totalframes);
}
function reverse(isDirectionReversed, isMethodReversed, reverseMethod) {
_currentframe = (_totalframes - _currentframe);
if (isDirectionReversed) {
var _local2 = valueFrom;
valueFrom = valueTo;
valueTo = _local2;
}
if (isMethodReversed) {
var _local3 = easeFunction;
easeFunction = reverseMethod || (easeAntonym);
this.reverseMethod = _local3;
}
}
var isDirectionReversed = false;
}
Symbol 164 MovieClip [__Packages.org.noregret.utils.Delegate] Frame 0
class org.noregret.utils.Delegate
{
var func;
function Delegate (f) {
func = f;
}
static function create(target, func) {
var _local3 = function () {
var _local2 = args.concat(arguments);
return(func.apply(target, _local2));
};
var args = arguments.splice(2);
return(_local3);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 165 MovieClip [__Packages.org.noregret.utils.BoundsObject] Frame 0
class org.noregret.utils.BoundsObject
{
function BoundsObject (xMin, xMax, yMin, yMax) {
this.xMin = xMin || 0;
this.xMax = xMax || 0;
this.yMin = yMin || 0;
this.yMax = yMax || 0;
}
function get width() {
return(xMax - xMin);
}
function get height() {
return(yMax - yMin);
}
function toString() {
return(((((((("BoundsObject:{xMin=" + xMin) + ",xMax=") + xMax) + ",yMin=") + yMin) + ",yMax=") + yMax) + "}");
}
function clone() {
return(new org.noregret.utils.BoundsObject(xMin, xMax, yMin, yMax));
}
function setClip(clip, scope) {
var _local2 = clip.getBounds(scope || (clip._parent));
xMin = Number(_local2.xMin);
xMax = Number(_local2.xMax);
yMin = Number(_local2.yMin);
yMax = Number(_local2.yMax);
return(this);
}
function getLocalTo(fromClip, toClip, createClone) {
var _local3 = {x:xMin, y:yMin};
var _local2 = {x:xMax, y:yMax};
fromClip.localToGlobal(_local3);
fromClip.localToGlobal(_local2);
toClip.globalToLocal(_local3);
toClip.globalToLocal(_local2);
if (createClone) {
return(new org.noregret.utils.BoundsObject(_local3.x, _local2.x, _local3.y, _local2.y));
}
xMin = _local3.x;
yMin = _local3.y;
xMax = _local2.x;
yMax = _local2.y;
return(this);
}
function getDiagAngle() {
return(ATAN2(yMax - yMin, xMax - xMin));
}
function getDiag() {
return(SQRT(((yMax - yMin) * (yMax - yMin)) + ((xMax - xMin) * (xMax - xMin))));
}
static var SQRT = Math.sqrt;
static var ATAN2 = Math.atan2;
var yMax = 0;
var yMin = 0;
var xMax = 0;
var xMin = 0;
}
Symbol 166 MovieClip [__Packages.org.noregret.utils.Sort] Frame 0
class org.noregret.utils.Sort
{
function Sort () {
}
static function clipsByDepth(a, b) {
var _local2 = a.getDepth();
var _local1 = b.getDepth();
return(Number((_local2 > _local1) || (-1 * (_local2 < _local1))));
}
static function clipsByYascending(a, b) {
return(Number((a._y > b._y) || (-1 * (a._y < b._y))));
}
static function clipsByYdescending(a, b) {
return(Number((a._y < b._y) || (-1 * (a._y > b._y))));
}
static function clipsByXascending(a, b) {
return(Number((a._x > b._x) || (-1 * (a._x < b._x))));
}
static function clipsByXdescending(a, b) {
return(Number((a._x < b._x) || (-1 * (a._x > b._x))));
}
static function clipsByYXascending(a, b) {
var _local3 = Number((a._y > b._y) || (-1 * (a._y < b._y)));
if (_local3) {
return(_local3);
}
return(Number((a._x > b._x) || (-1 * (a._x < b._x))));
}
static function clipsByYXdescending(a, b) {
var _local3 = Number((a._y < b._y) || (-1 * (a._y > b._y)));
if (_local3) {
return(_local3);
}
return(Number((a._x < b._x) || (-1 * (a._x > b._x))));
}
static function clipsByName(a, b) {
var _local2 = Number(a._name.substr(1));
var _local1 = Number(b._name.substr(1));
return(Number((_local2 > _local1) || (-1 * (_local2 < _local1))));
}
static function nodesByDate(a, b) {
var _local2 = a.attributes.date;
var _local1 = b.attributes.date;
return(Number((_local2 < _local1) || (-1 * (_local2 > _local1))));
}
static function shuffle(list) {
var _local3;
var _local4;
var _local2 = 0;
while (_local2 < list.length) {
_local3 = random(list.length);
_local4 = Object(list[_local2]);
list[_local2] = list[_local3];
list[_local3] = _local4;
_local2++;
}
}
static function clipsBySizeAndDepth(a, b) {
var _local3 = a._width + a._height;
var _local1 = b._width + b._height;
var _local4 = Number((_local3 < _local1) || (-1 * (_local3 > _local1)));
if (_local4) {
return(_local4);
}
return(Number((a._x > b._x) || (-1 * (a._x < b._x))));
}
}