Frame 1
var soundsonoff = 1;
onLoad = function () {
_root.loader.loadingbar._xscale = 0;
};
Frame 2
var total = _root.getBytesTotal();
var loaded = _root.getBytesLoaded();
_root.loader.loadingbar._xscale = (loaded / total) * 100;
if (loaded >= total) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (1);
Frame 4
stop();
stopAllSounds();
sWindSound = new Sound();
sWind1Sound = new Sound();
sLoopSound = new Sound();
if (_root.soundsonoff == 1) {
sWindSound.attachSound("Wind");
sWindSound.start(0, 99);
sWind1Sound.attachSound("Cloth");
sWind1Sound.start(0, 99);
sLoopSound.attachSound("loop");
sLoopSound.start(0, 99);
}
Instance of Symbol 29 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this._y < -100) {
this._y = 700;
this._x = random(400);
scaleme = random(100);
scaleme = 100;
this._xscale = scaleme;
this._yscale = scaleme;
}
this._y = this._y - 15;
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this._y < -100) {
this._y = 700;
this._x = random(400);
scaleme = random(100);
scaleme = 100;
this._xscale = scaleme;
this._yscale = scaleme;
}
this._y = this._y - 20;
}
Instance of Symbol 37 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this._y < -100) {
this._y = 700;
this._x = random(400);
scaleme = random(100);
scaleme = 100;
this._xscale = scaleme;
this._yscale = scaleme;
}
this._y = this._y - 17;
}
Frame 5
function CheckExit() {
if (player._y > 620) {
if (_root.dead == 0) {
gotoAndStop (7);
} else {
gotoAndStop (6);
}
}
}
function MovePlayerIntoView() {
player._y = player._y + 3;
}
function checkmeters() {
if (credit >= debit) {
difference_m = credit - debit;
lowhi = "hi";
} else {
difference_m = debit - credit;
lowhi = "low";
}
if (lowhi == "low") {
_root.creditm.gotoAndStop(1);
_root.debitm.gotoAndStop(Math.floor(difference_m / 100) + 2);
}
if (lowhi == "hi") {
_root.debitm.gotoAndStop(1);
_root.creditm.gotoAndStop(Math.floor(difference_m / 100) + 2);
}
}
function progressclock() {
if (gameon == 1) {
if (timer != 0) {
clock.rotator._rotation = clock.rotator._rotation - ClockSpeed;
if (clock.rotator._rotation == 0) {
timer = timer - 1;
if (TickTock == 1) {
sTick.start();
TickTock = 0;
} else {
sTock.start();
TickTock = 1;
}
}
} else {
dead = 0;
gameon = 0;
}
}
}
function checkinput() {
keyright = 0;
keyleft = 0;
keyup = 0;
keydown = 0;
if (Key.isDown(39)) {
keyright = 1;
xVelocity = xVelocity + acceleration;
}
if (Key.isDown(37)) {
keyleft = 1;
xVelocity = xVelocity - acceleration;
}
if (Key.isDown(38)) {
keyup = 1;
yVelocity = yVelocity - acceleration;
}
if (Key.isDown(40)) {
keydown = 1;
yVelocity = yVelocity + acceleration;
}
}
function checkvelocity() {
if (xVelocity > maxVelocity) {
xVelocity = maxVelocity;
}
if (xVelocity < (-maxVelocity)) {
xVelocity = -maxVelocity;
}
if (yVelocity > maxVelocity) {
yVelocity = maxVelocity;
}
if (yVelocity < (-maxVelocity)) {
yVelocity = -maxVelocity;
}
}
function addinertia() {
if ((xVelocity > 0) && (keyright != 1)) {
xVelocity = xVelocity - inertia;
}
if ((xVelocity < 0) && (keyleft != 1)) {
xVelocity = xVelocity + inertia;
}
if ((yVelocity > 0) && (keydown != 1)) {
yVelocity = yVelocity - inertia;
}
if ((yVelocity < 0) && (keyup != 1)) {
yVelocity = yVelocity + inertia;
}
}
function checkboundaries() {
if (player._x >= (moviewidth - boundary)) {
player._x = moviewidth - boundary;
}
if (player._x <= (0 + boundary)) {
player._x = 0 + boundary;
}
if (player._y >= (movieheight - boundary)) {
player._y = movieheight - boundary;
}
if (player._y <= (0 + topboundary)) {
player._y = 0 + topboundary;
}
}
function SetupSounds() {
Coin1 = new Sound();
Coin2 = new Sound();
Coin3 = new Sound();
sTick = new Sound();
sTock = new Sound();
if (_root.soundsonoff == 1) {
Coin1.attachSound("Coin1");
Coin2.attachSound("Coin2");
Coin3.attachSound("Coin3");
sTick.attachSound("Tick");
sTock.attachSound("Tock");
}
}
stop();
SetupSounds();
var timer = 60;
player._y = -330;
var dead = 0;
var gameon = 0;
var xVelocity = 0;
var yVelocity = 0;
var maxVelocity = 5;
var acceleration = 0.5;
var inertia = 0.25;
var keyleft = 0;
var keyright = 0;
var keyup = 0;
var keydown = 0;
var moviewidth = 400;
var movieheight = 550;
var cloudspeed = 12;
var ClockSpeed = 5;
var topboundary = 80;
var boundary = 50;
var credit = 0;
var debit = 0;
var difference_m = 0;
var lowhi = "";
_root.creditm.gotoAndStop(0);
_root.debit.gotoAndStop(0);
var WarningPlaying = 0;
var TickTock = 1;
onEnterFrame = function () {
if (Key.isDown(27)) {
gotoAndStop (4);
}
if (gameon == 1) {
checkinput();
checkvelocity();
addinertia();
checkboundaries();
progressclock();
checkmeters();
player._rotation = xVelocity * 5;
player._x = player._x + xVelocity;
player._y = player._y + yVelocity;
} else {
MovePlayerIntoView();
CheckExit();
}
};
Instance of Symbol 70 MovieClip in Frame 5
onClipEvent (load) {
this._alpha = 30;
}
onClipEvent (enterFrame) {
if (this._y < -40) {
this._y = 700;
this._x = random(400);
}
this._y = this._y - (_root.cloudspeed * 0.3);
}
Instance of Symbol 71 MovieClip in Frame 5
onClipEvent (load) {
this._alpha = 50;
}
onClipEvent (enterFrame) {
if (this._y < -100) {
this._y = 700;
this._x = random(400);
}
this._y = this._y - (_root.cloudspeed * 0.6);
}
Instance of Symbol 72 MovieClip in Frame 5
onClipEvent (load) {
this._alpha = 40;
}
onClipEvent (enterFrame) {
if (this._y < -100) {
this._y = 700;
this._x = random(400);
}
this._y = this._y - (_root.cloudspeed * 0.4);
}
Instance of Symbol 91 MovieClip in Frame 5
onClipEvent (load) {
mespeed = 5 + random(8);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
}
onClipEvent (enterFrame) {
if (this._y < -40) {
if (_root.gameon == 1) {
mespeed = 5 + random(5);
this._y = 600;
this._x = random(400);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
} else {
mespeed = 0;
}
}
this._y = this._y - (_root.cloudspeed * (mespeed / 10));
if (_root.gameon == 1) {
if (_root.player.hitTest(this._x, this._y, true)) {
if (this._currentframe != 10) {
if (meicon == 1) {
_root.credit = _root.credit + 10;
}
if (meicon == 2) {
_root.credit = _root.credit + 10;
}
if (meicon == 3) {
_root.credit = _root.credit + 50;
}
if (meicon == 4) {
_root.credit = _root.credit + 50;
}
if (meicon == 5) {
_root.credit = _root.credit + 100;
}
if (meicon == 6) {
_root.credit = _root.credit + 100;
}
if (meicon == 7) {
_root.debit = _root.debit + 10;
}
if (meicon == 8) {
_root.debit = _root.debit + 50;
}
if (meicon == 9) {
_root.debit = _root.debit + 100;
}
this.gotoAndStop(10);
}
}
}
}
Instance of Symbol 91 MovieClip in Frame 5
onClipEvent (load) {
mespeed = 5 + random(8);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
}
onClipEvent (enterFrame) {
if (this._y < -40) {
if (_root.gameon == 1) {
mespeed = 5 + random(5);
this._y = 600;
this._x = random(400);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
} else {
mespeed = 0;
}
}
this._y = this._y - (_root.cloudspeed * (mespeed / 10));
if (_root.gameon == 1) {
if (_root.player.hitTest(this._x, this._y, true)) {
if (this._currentframe != 10) {
if (meicon == 1) {
_root.credit = _root.credit + 10;
}
if (meicon == 2) {
_root.credit = _root.credit + 10;
}
if (meicon == 3) {
_root.credit = _root.credit + 50;
}
if (meicon == 4) {
_root.credit = _root.credit + 50;
}
if (meicon == 5) {
_root.credit = _root.credit + 100;
}
if (meicon == 6) {
_root.credit = _root.credit + 100;
}
if (meicon == 7) {
_root.debit = _root.debit + 10;
}
if (meicon == 8) {
_root.debit = _root.debit + 50;
}
if (meicon == 9) {
_root.debit = _root.debit + 100;
}
this.gotoAndStop(10);
}
}
}
}
Instance of Symbol 91 MovieClip in Frame 5
onClipEvent (load) {
mespeed = 5 + random(8);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
}
onClipEvent (enterFrame) {
if (this._y < -40) {
if (_root.gameon == 1) {
mespeed = 5 + random(5);
this._y = 600;
this._x = random(400);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
} else {
mespeed = 0;
}
}
this._y = this._y - (_root.cloudspeed * (mespeed / 10));
if (_root.gameon == 1) {
if (_root.player.hitTest(this._x, this._y, true)) {
if (this._currentframe != 10) {
if (meicon == 1) {
_root.credit = _root.credit + 10;
}
if (meicon == 2) {
_root.credit = _root.credit + 10;
}
if (meicon == 3) {
_root.credit = _root.credit + 50;
}
if (meicon == 4) {
_root.credit = _root.credit + 50;
}
if (meicon == 5) {
_root.credit = _root.credit + 100;
}
if (meicon == 6) {
_root.credit = _root.credit + 100;
}
if (meicon == 7) {
_root.debit = _root.debit + 10;
}
if (meicon == 8) {
_root.debit = _root.debit + 50;
}
if (meicon == 9) {
_root.debit = _root.debit + 100;
}
this.gotoAndStop(10);
}
}
}
}
Instance of Symbol 91 MovieClip in Frame 5
onClipEvent (load) {
mespeed = 5 + random(8);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
}
onClipEvent (enterFrame) {
if (this._y < -40) {
if (_root.gameon == 1) {
mespeed = 5 + random(5);
this._y = 600;
this._x = random(400);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
} else {
mespeed = 0;
}
}
this._y = this._y - (_root.cloudspeed * (mespeed / 10));
if (_root.gameon == 1) {
if (_root.player.hitTest(this._x, this._y, true)) {
if (this._currentframe != 10) {
if (meicon == 1) {
_root.credit = _root.credit + 10;
}
if (meicon == 2) {
_root.credit = _root.credit + 10;
}
if (meicon == 3) {
_root.credit = _root.credit + 50;
}
if (meicon == 4) {
_root.credit = _root.credit + 50;
}
if (meicon == 5) {
_root.credit = _root.credit + 100;
}
if (meicon == 6) {
_root.credit = _root.credit + 100;
}
if (meicon == 7) {
_root.debit = _root.debit + 10;
}
if (meicon == 8) {
_root.debit = _root.debit + 50;
}
if (meicon == 9) {
_root.debit = _root.debit + 100;
}
this.gotoAndStop(10);
}
}
}
}
Instance of Symbol 91 MovieClip in Frame 5
onClipEvent (load) {
mespeed = 5 + random(8);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
}
onClipEvent (enterFrame) {
if (this._y < -40) {
if (_root.gameon == 1) {
mespeed = 5 + random(5);
this._y = 600;
this._x = random(400);
meicon = random(9) + 1;
this.gotoAndStop(meicon);
} else {
mespeed = 0;
}
}
this._y = this._y - (_root.cloudspeed * (mespeed / 10));
if (_root.gameon == 1) {
if (_root.player.hitTest(this._x, this._y, true)) {
if (this._currentframe != 10) {
if (meicon == 1) {
_root.credit = _root.credit + 10;
}
if (meicon == 2) {
_root.credit = _root.credit + 10;
}
if (meicon == 3) {
_root.credit = _root.credit + 50;
}
if (meicon == 4) {
_root.credit = _root.credit + 50;
}
if (meicon == 5) {
_root.credit = _root.credit + 100;
}
if (meicon == 6) {
_root.credit = _root.credit + 100;
}
if (meicon == 7) {
_root.debit = _root.debit + 10;
}
if (meicon == 8) {
_root.debit = _root.debit + 50;
}
if (meicon == 9) {
_root.debit = _root.debit + 100;
}
this.gotoAndStop(10);
}
}
}
}
Instance of Symbol 96 MovieClip in Frame 5
onClipEvent (load) {
this._alpha = 60;
}
onClipEvent (enterFrame) {
if (this._y < -150) {
this._y = 700;
this._x = random(400);
}
this._y = this._y - _root.cloudspeed;
}
Frame 6
stop();
sFailure = new Sound();
if (_root.soundsonoff == 1) {
sFailure.attachSound("Failure");
sFailure.start();
}
Frame 7
var FinalBalance = (_root.credit - _root.debit);
var FinalBonus = 0;
if (((_root.difference_m == 0) && (_root.credit > 0)) and (_root.debit > 0)) {
FinalBonus = 15000;
} else {
FinalBonus = 100000 / _root.difference_m;
}
FinalBonus = Math.floor(FinalBonus);
var FinalTotal = (_root.credit + _root.debit);
FinalTotal = FinalTotal + FinalBonus;
stop();
sSuccess = new Sound();
if (_root.soundsonoff == 1) {
sSuccess.attachSound("Success");
sSuccess.start();
}
Frame 8
stop();
Symbol 25 MovieClip Frame 20
stop();
Symbol 41 Button
on (release) {
getURL ("http://www.extreme-accounting.com", "_blank");
}
Symbol 42 MovieClip Frame 90
stop();
Symbol 48 MovieClip Frame 80
stop();
_root.logo.play();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 85
stop();
_root.codalogo.play();
Symbol 56 Button
on (release) {
getURL ("http://www.coda.com", "_blank");
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 35
stop();
Symbol 60 Button
on (release) {
gotoAndPlay (5);
}
Symbol 61 Button
on (release) {
gotoAndPlay (8);
}
Symbol 62 Button
on (release) {
if (_root.soundsonoff == 1) {
_root.soundsonoff = 0;
_root.soundsonoffdisplay = "OFF";
stopAllSounds();
} else {
_root.soundsonoff = 1;
stopAllSounds();
_root.soundsonoffdisplay = "ON";
sWindSound = new Sound();
sWindSound.attachSound("Wind");
sWindSound.start(0, 99);
sWind1Sound = new Sound();
sWind1Sound.attachSound("Cloth");
sWind1Sound.start(0, 99);
sLoopSound = new Sound();
sLoopSound.attachSound("loop");
sLoopSound.start(0, 99);
}
}
Symbol 89 MovieClip Frame 32
stop();
Symbol 91 MovieClip Frame 10
var RandomSoundx = (random(3) + 1);
var soundx = ("_root.Coin" add RandomSoundx);
eval (soundx).start();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 122 MovieClip Frame 6
stop();
Symbol 122 MovieClip Frame 7
stop();
Symbol 122 MovieClip Frame 8
stop();
Symbol 122 MovieClip Frame 9
stop();
Symbol 122 MovieClip Frame 10
stop();
Symbol 122 MovieClip Frame 11
stop();
Symbol 122 MovieClip Frame 12
_root.dead = 1;
_root.gameon = 0;
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 3
stop();
Symbol 133 MovieClip Frame 4
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 133 MovieClip Frame 6
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 133 MovieClip Frame 8
stop();
Symbol 133 MovieClip Frame 9
stop();
Symbol 133 MovieClip Frame 10
stop();
Symbol 133 MovieClip Frame 11
stop();
Symbol 133 MovieClip Frame 12
_root.dead = 1;
_root.gameon = 0;
stop();
Symbol 138 MovieClip Frame 39
_root.sClockSound.start();
Symbol 138 MovieClip Frame 79
_root.sClockSound.start();
Symbol 138 MovieClip Frame 119
_root.sClockSound.start();
Symbol 138 MovieClip Frame 159
_root.sClockSound.start();
Symbol 138 MovieClip Frame 189
stop();
_root.gameon = 1;
Symbol 139 MovieClip Frame 2
_root.logo.play();
stop();
Symbol 142 Button
on (release) {
gotoAndPlay (4);
}