Frame 1
showRules = function () {
new mx.transitions.Tween(cont, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 0, 0.5, true);
var _local1 = new mx.transitions.Tween(f1, "_xscale", mx.transitions.easing.Regular.easeOut, 100, 0, 0.5, true);
_local1.onMotionFinished = function () {
cont._visible = 0;
f1.gotoAndStop(2);
f1.duplicateMovieClip("f2", 0, {_xscale:100});
f2.gotoAndStop(2);
f1.attachMovie("r1", "r", 0);
f2.attachMovie("r2", "r", 0, {_xscale:-100});
new mx.transitions.Tween(f1, "_xscale", mx.transitions.easing.Regular.easeOut, 0, -100, 0.5, true);
new mx.transitions.Tween(f1, "_x", mx.transitions.easing.Regular.easeOut, 350, 175, 0.5, true);
new mx.transitions.Tween(f2, "_xscale", mx.transitions.easing.Regular.easeOut, 0, -100, 0.5, true);
new mx.transitions.Tween(f2, "_x", mx.transitions.easing.Regular.easeOut, 350, 520, 0.5, true);
};
};
hideRules = function () {
new mx.transitions.Tween(f1, "_xscale", mx.transitions.easing.Regular.easeOut, -100, 0, 0.5, true);
new mx.transitions.Tween(f1, "_x", mx.transitions.easing.Regular.easeOut, 175, 350, 0.5, true);
new mx.transitions.Tween(f2, "_xscale", mx.transitions.easing.Regular.easeOut, -100, 0, 0.5, true);
var _local1 = new mx.transitions.Tween(f2, "_x", mx.transitions.easing.Regular.easeOut, 520, 350, 0.5, true);
_local1.onMotionFinished = function () {
f2.removeMovieClip();
f1.r.removeMovieClip();
f1.gotoAndStop(1);
cont._visible = 1;
new mx.transitions.Tween(cont, "_xscale", mx.transitions.easing.Regular.easeOut, 0, 100, 0.5, true);
new mx.transitions.Tween(f1, "_xscale", mx.transitions.easing.Regular.easeOut, 0, 100, 0.5, true);
};
};
Symbol 36 Button
on (release) {
this._parent.newGame();
this.removeMovieClip();
}
Symbol 41 Button
on (release) {
this._parent.newGame(1);
this.removeMovieClip();
}
Symbol 46 Button
on (release) {
this._parent.newGame(0, -1);
this.removeMovieClip();
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
var parent = this._parent._parent;
p._xscale = (parent.fool ? -100 : 100);
MovieClip.prototype.enh = function () {
var _local1 = this;
var age = 8;
var clr = new Color(_local1);
_local1.onEnterFrame = function () {
var _local1 = -16 * (age--);
clr.setTransform({rb:_local1, gb:0, bb:0});
if (!age) {
delete this.onEnterFrame;
}
};
};
changeLevel = function () {
var f = ((parent.fool = !parent.fool));
parent.sc.start();
var _local1 = new mx.transitions.Tween(this.p, "_xscale", mx.transitions.easing.Bounce.easeIn, (f ? 100 : -100), (f ? -100 : 100), 14);
_local1.onMotionFinished = function () {
e.gotoAndStop((f ? 2 : 1));
h.gotoAndStop((f ? 1 : 2));
};
};
p.onRollOver = (l.onRollOver = enh);
p.onRelease = (l.onRelease = function () {
changeLevel();
});
e.onRelease = function () {
if (!parent.fool) {
changeLevel();
}
};
h.onRelease = function () {
if (parent.fool) {
changeLevel();
}
};
e.onRollOver = function () {
if (!parent.fool) {
this.enh();
}
};
h.onRollOver = function () {
if (parent.fool) {
this.enh();
}
};
Symbol 106 MovieClip [stone] Frame 1
stop();
Symbol 168 MovieClip Frame 1
off._visible = 0;
this.onRelease = function () {
off._visible = !off._visible;
this._parent.sa.setVolume((this.off._visible ? 0 : 50));
};
Symbol 175 Button
on (release) {
this._parent.newGame();
this.swapDepths(999);
this.removeMovieClip();
}
Symbol 176 Button
on (release) {
this._parent.newGame(1);
this.swapDepths(999);
this.removeMovieClip();
}
Symbol 177 Button
on (release) {
this._parent.newGame(0, -1);
this.swapDepths(999);
this.removeMovieClip();
}
Symbol 181 Button
on (release) {
this._parent.hlp.onRelease();
}
Symbol 186 MovieClip [cont] Frame 1
dr = 39;
var i = 0;
while (i < 32) {
var fi = ((Math.PI * (i % 8)) / 4);
var r = (((i < 8) ? (1.05 * dr) : (dr)) * (1 + Math.floor(i / 8)));
this.attachMovie("p", i, i, {_x:r * Math.cos(fi), _y:r * Math.sin(fi), q:[], s:null});
i++;
}
var i = 0;
while (i < 32) {
var p = this[i];
var a = [];
var a0 = Math.floor(i / 8);
var l0 = (i % 8);
var j = 0;
while (j < 4) {
(a = []);
(a.b = 20);
var k = 0;
while (k < 4) {
a.push(this[(8 * a0) + ((((8 + i) - j) + k) % 8)]);
k++;
}
p.q.push(a);
j++;
}
(a = []);
(a.b = 10);
var k = 0;
while (k < 4) {
a.push(this[l0 + (8 * k)]);
k++;
}
p.q.push(a);
var s0 = (((8 + l0) - a0) % 8);
var s1 = ((l0 + a0) % 8);
(a = []);
(a.b = 30);
var k = 0;
while (k < 4) {
a.push(this[(k * 8) + ((s0 + k) % 8)]);
k++;
}
p.q.push(a);
(a = []);
(a.b = 30);
var k = 0;
while (k < 4) {
a.push(this[(k * 8) + (((8 + s1) - k) % 8)]);
k++;
}
p.q.push(a);
i++;
}
MovieClip.prototype.blink = function (n) {
var _local2 = this;
var age = (n || 7);
var clr = new Color(_local2);
_local2.onEnterFrame = function () {
var _local1 = 128 * (age % 2);
if (age--) {
clr.setTransform({rb:_local1, gb:_local1, bb:_local1});
} else {
clr.setTransform({rb:0, gb:0, bb:0});
delete this.onEnterFrame;
}
};
};
MovieClip.prototype.getBonus = function () {
var _local3 = this;
var b;
var s = _local3.h.s;
var _local2 = 0;
while (_local2 < _local3.q.length) {
var _local1 = _local3.q[_local2];
var k = 0;
while (k < 4) {
if ((_local1[k].h.s != s) && (_local1[k] != _local3)) {
break;
}
k++;
}
if (k == 4) {
for (var k in _local1) {
_local1[k].h.blink();
}
sd.start();
b = b + _local1.b;
}
_local2++;
}
var fmt = root[s + "_txt"].getTextFormat();
root[s] = (1 * root[s]) + b;
root[s + "_txt"].setTextFormat(fmt);
var x = (root[s] ? (pos[(root[s] % 100) / 10]) : -172);
new mx.transitions.Tween(root.bg[s], "_x", mx.transitions.easing.Elastic.easeOut, root.bg[s]._x, x, 20);
};
MovieClip.prototype.getChance = function (s) {
var b;
var sum = 0;
var _local3;
var o = ((s == "b") ? "g" : "b");
var j = 0;
while (j < this.q.length) {
var _local2 = this.q[j];
_local3 = 0;
var _local1 = 0;
while (_local1 < 4) {
if (_local2 != this) {
if (_local2[_local1].h.s == o) {
break;
}
_local3 = _local3 + (_local2[_local1].h.s == s);
}
_local1++;
}
if ((_local1 == 4) && (_local3)) {
sum = sum + (fool ? (_local3) : ((_local3 * _local3) * _local2.b));
}
j++;
}
return(sum);
};
getMaxComp = function () {
var _local3 = list[random(list.length)];
var pu = list[random(list.length)];
while (_local3.h == "b") {
_local3 = list[random(list.length)];
}
while (pu.h == "b") {
pu = list[random(list.length)];
}
var mc = _local3.getChance("b");
var mu = pu.getChance("g");
var _local2 = 0;
while (_local2 < list.length) {
if (list[_local2].h != "b") {
list[_local2].tc = list[_local2].getChance("b");
if (list[_local2].tc > mc) {
mc = list[_local2].tc;
_local3 = list[_local2];
}
list[_local2].tu = list[_local2].getChance("g");
if (list[_local2].tu > mu) {
mu = list[_local2].tu;
pu = list[_local2];
}
}
_local2++;
}
_local2 = 0;
var _local1 = [];
while (_local2 < list.length) {
if (list[_local2].h != "b") {
if (list[_local2].tc == mc) {
_local1.push(list[_local2]);
}
} else {
list[_local2].h = null;
}
_local2++;
}
_local3 = _local1[random(_local1.length)];
if (fool) {
return(_local3);
}
var maxu = _local3.tu;
_local2 = 0;
while (_local2 < _local1.length) {
if (_local1[_local2].tu > maxu) {
_local3 = _local1[_local2];
maxu = _local1[_local2].tu;
}
_local2++;
}
if (mc <= mu) {
return(pu);
}
return(_local3);
};
compTurn = function () {
if (two) {
} else {
comp = true;
if (cb) {
var f = cbank.pop();
cb--;
var p = getMaxComp();
var _local1 = 0;
while (_local1 < list.length) {
if (list[_local1] == p) {
break;
}
_local1++;
}
list.splice(_local1, 1);
p.h = f;
new mx.transitions.Tween(f, "_x", mx.transitions.easing.Bounce.easeOut, f._x, p._x, 10);
var t = (new mx.transitions.Tween(f, "_y", mx.transitions.easing.Bounce.easeIn, f._y, p._y, 10));
t.onMotionFinished = function () {
comp = false;
p.getBonus("b");
sb.start();
if (!list.length) {
nextGame();
}
};
} else {
cb--;
var _local1 = 0;
var _local2 = [];
var _local3 = [];
while (_local1 < 32) {
if (root[_local1].h && (root[_local1].h.s == "b")) {
_local3.push(root[_local1]);
root[_local1].h.s = "g";
if (!root[_local1].getChance("g")) {
_local2.push(root[_local1]);
}
root[_local1].h.s = "b";
}
_local1++;
}
var r = _local2[random(_local2.length)];
if ((!_local2.length) || (fool)) {
r = _local3[random(_local3.length)];
}
cbank.push(r.h);
list.push(r);
new mx.transitions.Tween(r.h, "_x", mx.transitions.easing.Bounce.easeIn, r._x, r.h.x, 10);
new mx.transitions.Tween(r.h, "_y", mx.transitions.easing.Bounce.easeOut, r._y, r.h.y, 10);
comp = false;
r.h = "b";
}
}
};
nextGame = function () {
var _local1 = 4;
if (!two) {
_local1 = (1 + (b >= g)) + (b == g);
tg++;
switch (_local1) {
case 1 :
tw++;
break;
case 2 :
tl++;
break;
case 3 :
td++;
}
}
term._visible = false;
root.attachMovie("nxt", "nxt", 400, {w:tw, g:tg, l:tl, d:td}).gotoAndStop(_local1);
root[((b > g) ? "sl" : "sw")].start();
};
MovieClip.prototype.sRel = function () {
var _local2 = this;
if (two && (who != _local2.s)) {
} else {
stopDrag();
var i = 0;
var _local1 = 100000 /* 0x0186A0 */;
var p = list[random(list.length)];
while (i < list.length) {
var dx = (_local2._x - list[i]._x);
var dy = (_local2._y - list[i]._y);
var dr = ((dx * dx) + (dy * dy));
if (dr < _local1) {
p = list[i];
_local1 = dr;
}
i++;
}
if ((_local1 > 1800) || (p == _local2.lck)) {
_local2.goHome();
} else {
_local2._x = p._x;
_local2._y = p._y;
sg.start();
_local2.lck.onEnterFrame = null;
var i = 0;
while (i < 16) {
root[_local2.s + i].lck = null;
i++;
}
if ((who == "g") || (!two)) {
ub--;
} else {
cb--;
}
var _local3 = 0;
while (_local3 < list.length) {
if (list[_local3] == p) {
break;
}
_local3++;
}
list.splice(_local3, 1);
p.h = _local2;
p.getBonus();
if (((!ub) && (_local2.s == "g")) || ((!cb) && (_local2.s == "b"))) {
var i = 0;
while (i < 16) {
_local1 = root[_local2.s + i];
if (_local1.hitTest(ring)) {
_local1.onPress = sPress;
_local1.onRelease = (_local1.onReleaseOutside = rRel);
} else {
_local1.delOn();
_local1.onPress = nPress;
}
i++;
}
} else {
_local2.delOn();
}
if (two) {
who = ((who == "b") ? "g" : "b");
}
if (list.length) {
compTurn();
} else {
nextGame();
}
}
}
};
MovieClip.prototype.rRel = function () {
var _local2 = this;
if (two && (who != _local2.s)) {
} else {
stopDrag();
so.start();
_local2.goHome();
var _local3 = 0;
while (_local3 < 32) {
if (root[_local3].h == _local2) {
break;
}
_local3++;
}
var l = root[_local3];
_local3 = 0;
while (_local3 < 16) {
root[_local2.s + _local3].lck = l;
_local3++;
}
l.h = _local2.s;
l.onEnterFrame = function () {
var _local1 = this;
if (d.hitTest(_local1) && (_local1.h == d.s)) {
sa.start();
_local1.notify(3);
}
};
list.push(l);
_local3 = 0;
while (_local3 < 16) {
var _local1 = root[_local2.s + _local3];
if ((!_local1.hitTest(ring)) || (_local1 == _local2)) {
_local1.onPress = sPress;
_local1.onRelease = (_local1.onReleaseOutside = sRel);
} else {
_local1.delOn();
}
_local3++;
}
who = (((who == "b") || (!two)) ? "g" : "b");
compTurn();
}
};
MovieClip.prototype.sPress = function () {
var _local1 = this;
if (comp) {
} else if ((who != _local1.s) && (two)) {
_local1.notify(((_local1.s == "g") ? 2 : 8));
} else {
d = _local1;
_local1.swapDepths(250);
_local1.startDrag(((_local1.s == "g") ? 1 : 9));
}
};
MovieClip.prototype.nPress = function () {
var _local1 = this;
if (comp) {
} else if ((who != _local1.s) && (two)) {
_local1.notify(((_local1.s == "g") ? 2 : 8));
} else {
_local1.notify(((_local1.s == "g") ? 1 : 9));
sa.start();
}
};
MovieClip.prototype.delOn = function () {
var _local1 = this;
delete _local1.onPress;
delete _local1.onRelease;
delete _local1.onReleaseOutside;
};
MovieClip.prototype.notify = function (n) {
var _local1 = _root;
var _local2 = this;
_local2.onMouseMove = function () {
var _local1 = _root;
if (this.hitTest(_local1._xmouse, _local1._ymouse, 0)) {
_local1.attachMovie("n", "n", 300, {_x:_local1._xmouse, _y:_local1._ymouse}).gotoAndStop(n);
} else {
_local1.n.removeMovieClip();
}
};
_local2.onMouseUp = function () {
_root.n.removeMovieClip();
delete this.onMouseMove;
delete this.onMouseUp;
};
};
MovieClip.prototype.goHome = function () {
var _local1 = this;
new mx.transitions.Tween(_local1, "_x", mx.transitions.easing.Elastic.easeOut, _local1._x, _local1.x, 10);
new mx.transitions.Tween(_local1, "_y", mx.transitions.easing.Elastic.easeOut, _local1._y, _local1.y, 10);
};
var comp;
var cbank = [];
var ub;
var cb;
var list = [];
var root = this;
var d;
var fool = false;
var two;
var who;
bg.b.gotoAndStop(2);
var pos = [144, -143, -105, -70, -41, -10, 20, 49, 80, 111];
var b_fmt = new TextFormat();
var g_fmt = new TextFormat();
b_fmt.color = 1538784 /* 0x177AE0 */;
g_fmt.color = 16770331 /* 0xFFE51B */;
term._visible = false;
newGame = function (fcomp, twop) {
var _local2 = this;
term._visible = true;
who = "g";
two = twop;
cb = (ub = 15);
bg.g._x = (bg.b._x = -172);
bg.b.gotoAndStop((fcomp ? 1 : 2));
bg.g.gotoAndStop((fcomp ? 2 : 1));
b = (g = 0);
b_txt.setTextFormat((fcomp ? (g_fmt) : (b_fmt)));
g_txt.setTextFormat((fcomp ? (b_fmt) : (g_fmt)));
var _local1 = 0;
while (_local1 < 32) {
list[_local1] = _local2[_local1];
list[_local1].h = null;
_local1++;
}
var up = (fcomp ? "g" : "b");
var down = (fcomp ? "b" : "g");
d.removeMovieClip();
_local1 = 0;
while (_local1 < 16) {
var x = (260 + (60 * (_local1 % 2)));
var y = (-140 + (40 * Math.floor(_local1 / 2)));
cbank[_local1] = _local2.attachMovie(up, "b" + _local1, 100 + _local1, {id:_local1, _x:x, _y:y, s:"b", x:x, y:y, onPress:sPress, onRelease:sRel, onReleaseOutside:sRel});
if (!two) {
delete cbank[_local1].onPress;
delete cbank[_local1].onRelease;
delete cbank[_local1].onReleaseOutside;
}
x = -310 + (60 * (_local1 % 2));
_local2.attachMovie(down, "g" + _local1, 200 + _local1, {id:_local1, _x:x, _y:y, s:"g", x:x, y:y, onPress:sPress, onRelease:sRel, onReleaseOutside:sRel});
_local1++;
}
if (fcomp) {
compTurn();
}
};
Key.addListener((k = {}));
k.onKeyUp = function () {
if (root.onMouseUp) {
root.onMouseUp();
return(undefined);
}
if (Key.getCode() == 112) {
hlp.onRelease();
}
};
var sb = new Sound();
var sg = new Sound();
var sd = new Sound();
var sw = new Sound();
var sl = new Sound();
var sc = new Sound();
var sa = new Sound();
var so = new Sound();
sb.attachSound("s_b");
sg.attachSound("s_y");
sd.attachSound("s_d");
sw.attachSound("s_w");
sl.attachSound("s_l");
sc.attachSound("s_c");
sa.attachSound("s_a");
so.attachSound("s_o");
sa.setVolume(50);
var tg = 0;
var tw = 0;
var tl = 0;
var td = 0;
MovieClip.prototype.hint = function (n) {
var _local1 = this;
var num = n;
_local1.onRollOver = function () {
var _local1 = this;
_local1.blink();
_local1.onMouseMove = function () {
var _local1 = this;
_local1.attachMovie("n", "n", 1, {_x:_local1._xmouse, _y:_local1._ymouse}).gotoAndStop(num);
};
};
_local1.onRollOut = function () {
delete this.onMouseMove;
this.n.removeMovieClip();
};
};
snd.hint(4);
hlp.hint(5);
term.hint(6);
quit.hint(7);
snd.swapDepths(800);
hlp.swapDepths(801);
term.swapDepths(803);
quit.swapDepths(804);
hlp.onRelease = function () {
root._parent.showRules();
root.onMouseUp = function () {
root._parent.hideRules();
delete this.onMouseUp;
};
};
term.onRelease = function () {
two = true;
bg.g._x = (bg.b._x = -172);
var _local1 = 0;
while (_local1 < 16) {
root["b" + _local1]._visible = (root["g" + _local1]._visible = 0);
_local1++;
}
if (start) {
start.swapDepths(999);
start.removeMovieClip();
}
root.nextGame();
};
quit.onRelease = function () {
fscommand ("quit");
};
Symbol 195 MovieClip Frame 1
stop();
Symbol 198 Button
on (release) {
getURL ("http://gamemilitary.com");
}
Symbol 199 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local2 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local2);
var _local1 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local1.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 200 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
var _local1 = o;
if (_local1.broadcastMessage != undefined) {
delete _local1.broadcastMessage;
}
_local1.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
_local1.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
_local1._listeners = new Array();
}
}
function addListener(o) {
var _local1 = this;
_local1.removeListener(o);
if (_local1.broadcastMessage == undefined) {
_local1.broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_local1._listeners.push(o));
}
function removeListener(o) {
var _local3 = this;
var _local1 = _local3._listeners;
var _local2 = _local1.length;
while (_local2--) {
if (_local1[_local2] == o) {
_local1.splice(_local2, 1);
if (!_local1.length) {
_local3.broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local3 = String(arguments.shift());
var _local2 = _listeners.concat();
var l = _local2.length;
var _local1 = 0;
while (_local1 < l) {
_local2[_local1][_local3].apply(_local2[_local1], arguments);
_local1++;
}
}
static var version = "1.1.0.52";
}
Symbol 201 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var _time, _duration, _fps, change, begin;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
var _local1 = this;
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
} else {
_local1.obj = obj;
_local1.prop = prop;
_local1.begin = begin;
_local1.__set__position(begin);
_local1.__set__duration(duration);
_local1.useSeconds = useSeconds;
if (func) {
_local1.func = func;
}
_local1.__set__finish(finish);
_local1._listeners = [];
_local1.addListener(_local1);
_local1.start();
}
}
function set time(t) {
var _local1 = this;
var _local2 = t;
_local1.prevTime = _local1._time;
if (_local2 > _local1.__get__duration()) {
if (_local1.looping) {
_local1.rewind(_local2 - _local1._duration);
_local1.update();
_local1.broadcastMessage("onMotionLooped", _local1);
} else {
if (_local1.useSeconds) {
_local1._time = _local1._duration;
_local1.update();
}
_local1.stop();
_local1.broadcastMessage("onMotionFinished", _local1);
}
} else if (_local2 < 0) {
_local1.rewind();
_local1.update();
} else {
_local1._time = _local2;
_local1.update();
}
//return(_local1.__get__time());
}
function get time() {
return(_time);
}
function set duration(d) {
var _local1 = d;
_duration = (((_local1 == null) || (_local1 <= 0)) ? (_global.Infinity) : (_local1));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local1 = this;
var _local2 = _local1.isPlaying;
_local1.stopEnterFrame();
_local1._fps = fps;
if (_local2) {
_local1.startEnterFrame();
}
//return(_local1.__get__FPS());
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
var _local1 = this;
_local1.prevPos = _local1._pos;
_local1.obj[_local1.prop] = (_local1._pos = p);
_local1.broadcastMessage("onMotionChanged", _local1, _local1._pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
var _local1 = this;
var _local2 = t;
if (_local2 == undefined) {
_local2 = _local1._time;
}
return(_local1.func(_local2, _local1.begin, _local1.change, _local1._duration));
}
function set finish(f) {
var _local1 = this;
_local1.change = f - _local1.begin;
//return(_local1.__get__finish());
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
var _local1 = this;
_local1.begin = _local1.position;
_local1.__set__finish(finish);
if (duration != undefined) {
_local1.__set__duration(duration);
}
_local1.start();
}
function yoyo() {
var _local1 = this;
_local1.continueTo(_local1.begin, _local1.__get__time());
}
function startEnterFrame() {
var _local1 = this;
if (_local1._fps == undefined) {
_global.MovieClip.addListener(_local1);
} else {
_local1._intervalID = setInterval(_local1, "onEnterFrame", 1000 / _local1._fps);
}
_local1.isPlaying = true;
}
function stopEnterFrame() {
var _local1 = this;
if (_local1._fps == undefined) {
_global.MovieClip.removeListener(_local1);
} else {
clearInterval(_local1._intervalID);
}
_local1.isPlaying = false;
}
function start() {
var _local1 = this;
_local1.rewind();
_local1.startEnterFrame();
_local1.broadcastMessage("onMotionStarted", _local1);
}
function stop() {
var _local1 = this;
_local1.stopEnterFrame();
_local1.broadcastMessage("onMotionStopped", _local1);
}
function resume() {
var _local1 = this;
_local1.fixTime();
_local1.startEnterFrame();
_local1.broadcastMessage("onMotionResumed", _local1);
}
function rewind(t) {
var _local1 = this;
_local1._time = ((t == undefined) ? 0 : (t));
_local1.fixTime();
_local1.update();
}
function fforward() {
var _local1 = this;
_local1.__set__time(_local1._duration);
_local1.fixTime();
}
function nextFrame() {
var _local1 = this;
if (_local1.useSeconds) {
_local1.__set__time((getTimer() - _local1._startTime) / 1000);
} else {
_local1.__set__time(_local1._time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
var _local1 = this;
if (!_local1.useSeconds) {
_local1.__set__time(_local1._time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
var _local1 = this;
if (_local1.useSeconds) {
_local1._startTime = getTimer() - (_local1._time * 1000);
}
}
function update() {
var _local1 = this;
_local1.__set__position(_local1.getPosition(_local1._time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 202 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
var _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((easeIn(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((easeOut((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 203 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
var _local1 = a;
var _local2 = p;
var _local3 = t;
if (_local3 == 0) {
return(b);
}
_local3 = _local3 / d;
if (_local3 == 1) {
return(b + c);
}
if (!_local2) {
_local2 = d * 0.3;
}
if ((!_local1) || (_local1 < Math.abs(c))) {
_local1 = c;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(c / _local1));
}
_local3 = _local3 - 1;
return((-((_local1 * Math.pow(2, 10 * _local3)) * Math.sin((((_local3 * d) - s) * (Math.PI*2)) / _local2))) + b);
}
static function easeOut(t, b, c, d, a, p) {
var _local1 = c;
var _local2 = a;
var _local3 = p;
if (t == 0) {
return(b);
}
if (((t = t / d)) == 1) {
return(b + _local1);
}
if (!_local3) {
_local3 = d * 0.3;
}
if ((!_local2) || (_local2 < Math.abs(_local1))) {
_local2 = _local1;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(_local1 / _local2));
}
return((((_local2 * Math.pow(2, -10 * t)) * Math.sin((((t * d) - s) * (Math.PI*2)) / _local3)) + _local1) + b);
}
static function easeInOut(t, b, c, d, a, p) {
var _local1 = t;
var _local2 = a;
var _local3 = p;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + c);
}
if (!_local3) {
_local3 = d * 0.45;
}
if ((!_local2) || (_local2 < Math.abs(c))) {
_local2 = c;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(c / _local2));
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((_local2 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3))) + b);
}
_local1 = _local1 - 1;
return(((((_local2 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 204 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
}
static function easeOut(t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}