Frame 1
stop();
var CPMStarContentSpotID = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=2798QD7E6B21D");
if (_url.substring(0, 4) != "file") {
x = new LoadVars();
x.id = "dwarftoss";
x.ui = _url;
x.sendAndLoad("http://track.g-bot.net/track.php", x, "POST");
}
Frame 2
onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if (domain != "flashgamelicense.com") {
_root.cam._x = 50000;
_root.cam._y = 40000;
}
};
function achievement_time(number) {
if (ful[number][1] == 0) {
_root.achnum++;
_root.achnumb++;
var _local3 = _root.attachMovie("achievement", "achievement" + _root.achnum, _root.getNextHighestDepth());
_local3.achievement.text = ful[number][0];
_local3.num = _root.achnumb;
_local3._alpha = 0;
_local3.time = 0;
_local3.onEnterFrame = function () {
this._alpha = this._alpha + 5;
this.time++;
if (this.time > 150) {
this._alpha = this._alpha - 5;
if (this.time == 170) {
_root.achmin++;
_root.achnumb--;
this.removeMovieClip();
}
}
this._x = this._x + ((((_root.cam._x + (_root.cam._width / 2)) - (this._width / 2)) - this._x) / 8);
};
ful[number][1] = 1;
}
}
function camshake() {
time = 0;
onEnterFrame = function () {
time++;
if (time < 7) {
_root.camb._x = _root.camb._x + ((Math.random() * 6) - 3);
_root.camb._y = _root.camb._y + ((Math.random() * 6) - 3);
} else {
_root.camb._x = camx;
_root.camb._y = camy;
delete camshake;
}
};
}
stopAllSounds();
_root.scalevol = false;
_root.splash._visible = false;
_root.numero = 1;
_root.trolol = new Sound(this);
_root.trolol.attachSound("idea");
_root.trolol.start(0, 99);
_root.shopframe = 5;
_root.gameframe = 4;
_root.soundon = true;
stop();
_root.shopstall = false;
_root.bonus = 1;
_root.pmultiplier = 0;
_root.rheight = 0;
_root.rdistance = 0;
_root.day = 0;
extras = new Array();
hotta.gotoAndStop(1);
hotta.swapDepths(_root.getNextHighestDepth());
hotta.removeMovieClip();
extras.push("no");
extras.push("no");
extras.push("no");
extras.push("no");
extras.push("no");
hastower = 0;
hasthrower = 1;
bouncelvl = 0;
resistancelvl = 0;
aidlvl = 0;
strengthlvl = 0;
fuellvl = 0;
ful = new Array();
ful = [["Welcome to the stratosphere!", 0], ["Attack of the birds", 0], ["Not in kansas anymore", 0], ["Thanks for the oil spill", 0], ["Springing into action", 0], ["Welcome to the thermosphere", 0], ["The official astronaut", 0], ["Welcome to the void", 0], ["Welcome to the 10th dimension", 0], ["Baby steps", 0], ["It's over 9,000!!", 0], ["He's a rocketman", 0], ["No longer a noob", 0], ["What a pro!", 0], ["Major tom to ground control", 0], ["Blinded by the light!", 0], ["Head in the clouds", 0], ["Domo Arigato Mr.Roboto", 0], ["Lay off the steroids!", 0], ["Yay for flippy!", 0], ["Perfect strength", 0], ["Perfect bounce", 0], ["Perfect aid", 0], ["Max speed achieved", 0], ["x3 Perfect Combo", 0], ["x6 Perfect Combo", 0], ["You're a legend", 0], ["Pro bouncer", 0]];
_root.achnum = 0;
_root.achnumb = 0;
_root.achmin = 1;
camx = camb._x;
camy = camb._y;
var urlString = _root._url;
if (urlString.indexOf("http://flashgamelicense.com") == -1) {
this._alpha = 0;
}
_root.coolbtn._visible = false;
Instance of Symbol 437 MovieClip "splash" in Frame 2
on (rollOver) {
}
on (release) {
getURL ("http://www.gamesfree.com", "_blank");
}
Instance of Symbol 439 MovieClip "camb" in Frame 2
onClipEvent (enterFrame) {
if (!_root.shopstall) {
if (_root.started2) {
this._y = this._y + ((_root.dwarf._y - this._y) + 40);
if ((this._y >= 175) or _root.dolphinuse) {
this._y = 175;
}
this._x = _root.dwarf._x;
} else {
this._y = this._y + (((_root.thrower._y - this._y) + 90) / 15);
}
}
}
Frame 3
stop();
Frame 4
function thrower_type(number) {
_root.thrower.shoulder.gotoAndStop(number);
_root.thrower.forearm.gotoAndStop(number);
_root.thrower.type = number;
_root.thrower.man.gotoAndStop(number);
if (number == 1) {
_root.thrower.dmg = 0.4;
} else if (number == 2) {
_root.thrower.dmg = 0.7;
} else if (number == 3) {
_root.achievement_time(18);
_root.thrower.dmg = 0.95;
} else if (number == 4) {
_root.achievement_time(18);
_root.achievement_time(17);
_root.thrower.dmg = 1.1;
}
_root.thrower.dmg = _root.thrower.dmg + (_root.strengthlvl / 7);
}
function tower_type(number) {
_root.tower.gotoAndStop(number);
if (number == 0) {
_root.tower._visible = false;
_root.thrower._y = -30.6;
} else if (number == 1) {
_root.thrower._y = -246.6;
} else if (number == 2) {
_root.achievement_time(16);
_root.thrower._y = -438.6;
} else if (number == 3) {
_root.achievement_time(16);
_root.achievement_time(15);
_root.thrower._y = -646.6;
} else if (number == 4) {
_root.achievement_time(16);
_root.achievement_time(15);
_root.achievement_time(14);
_root.thrower._y = -1396.7;
_root.thrower._x = 216;
}
}
function wcam(obj, num) {
i = 1;
while (i <= extras.length) {
if (num == i) {
obj._x = ((_root.cam._x - (_root.cam._width / 2)) + (((obj._width / 2) + 20) * num)) - 10;
obj._y = ((_root.cam._y - (_root.cam._height / 2)) + (obj._height / 2)) + 8;
}
i++;
}
logobtn._x = rbtn._x + 1.8;
logobtn._y = rbtn._y + 25.8;
_root.mute_btn._x = ((_root.cam._x - (_root.cam._width / 2)) + (_root.mute_btn._width / 2)) + 10;
_root.mute_btn._y = ((_root.cam._y + (_root.cam._height / 2)) - (_root.mute_btn._height / 2)) - 10;
distancetexter._x = ((_root.cam._x + (_root.cam._width / 2)) - (distancetexter._width / 2)) - 5;
distancetexter._y = (_root.cam._y - (_root.cam._height / 2)) + distancetexter._height;
holdizzle._y = ((_root.cam._y + (_root.cam._height / 2)) - holdizzle._height) - 5;
holdizzle._x = _root.cam._x;
_root.dolphinfin._x = _root.dwarf._x;
_root.shadow._x = _root.dwarf._x;
_root.shadow._y = 309;
i = _root.achmin;
while (i <= _root.achnum) {
_root["achievement" + i]._x = (dbtn._x + 520) - _root["achievement" + i]._width;
_root["achievement" + i]._y = holdizzle._y - ((_root["achievement" + i]._height - 10) * (_root["achievement" + i].num - 1));
i++;
}
}
function alphameter(obj, num) {
if (num != extras[num - 1]) {
obj._alpha = 30;
}
if ((num == 3) or (num == 4)) {
if (num == extras[num - 1]) {
_root.achievement_time(11);
}
}
}
function depth(number) {
if (number == 1) {
_root.shadow.swapDepths(_root.getNextHighestDepth());
_root.dwarf.swapDepths(_root.getNextHighestDepth());
_root.wcover.swapDepths(_root.getNextHighestDepth());
_root.wcover2.swapDepths(_root.getNextHighestDepth());
}
_root.dolphinfin.swapDepths(_root.getNextHighestDepth());
_root.distancetexter.swapDepths(_root.getNextHighestDepth());
_root.mute_btn.swapDepths(_root.getNextHighestDepth());
q = _root.achmin;
while (q <= _root.achnum) {
_root["achievement" + q].swapDepths(_root.getNextHighestDepth());
q++;
}
}
function spawnbad(number, yval, movex, xbuffer, downfall, blasty, blastx) {
var _local3 = _root.attachMovie("trampoline", "tramp" + (tname++), _root.getNextHighestDepth());
_local3._x = (((_root.dwarf._x + (Math.random() * 400)) + (Stage.width / 2)) + (_local3._width / 2)) + xbuffer;
_local3.gotoAndStop(number);
_local3._y = yval;
_local3.hits = false;
_local3.onEnterFrame = function () {
if (_root._currentframe == _root.shopframe) {
this.removeMovieClip();
}
this._x = this._x + movex;
if (((_root.dwarf.hitTest(this.hit) && (!this.hits)) && (!_root.extrause)) && (!_root.dolphinuse)) {
if (number != 4) {
if (_root.dwarf.speedy >= 0) {
_root.dwarf.dwarfhit();
if (number == 2) {
this.eagle.gotoAndStop("dead");
this._y = this._y - 20;
}
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.timenow = getTimer();
_root.dwarf.timenow = _root.dwarf.timenow / 100;
_root.dwarf.speedy = _root.dwarf.speedy * (-blasty);
_root.dwarf.speedx = _root.dwarf.speedx * blastx;
_root.dwarf.speedy = _root.dwarf.speedy - 45;
_root.dwarf.speedystart = _root.dwarf.speedy;
_root.begtime = 0;
_root.dwarf.dwarfhit();
this.hits = true;
}
if (number == 3) {
_root.dwarf.speedy = _root.dwarf.speedy - 100;
_root.dwarf.speedystart = _root.dwarf.speedy;
_root.dwarf.speedx = _root.dwarf.speedx + 100;
_root.achievement_time(3);
_root.begtime = 0;
addExplosion(this._x, this._y - 90, 40, 220, 380, 75);
sa = new Sound(this);
sa.attachSound("boom");
sa.start(0, 1);
this.removeMovieClip();
}
if (number == 1) {
_root.achievement_time(4);
}
} else {
if (_root.dwarf.speedx < 300) {
this.current = true;
_root.juju = true;
_root.tout = false;
var _local3 = _root.attachMovie("tarrow", "tarrow", _root.getNextHighestDepth());
_local3._x = this._x + 80;
_local3._y = (this._y + 20) - (this._height / 2);
_local3.d = false;
_root.achievement_time(2);
_root.sa = new Sound(this);
_root.sa.attachSound("tornado");
_root.sa.start(0, 5);
_local3.onEnterFrame = function () {
if (!this.d) {
this._rotation = this._rotation - 5;
if (this._rotation <= -60) {
this._rotation = -60;
this.d = true;
}
} else if (this.d) {
this._rotation = this._rotation + 5;
if (this._rotation > 0) {
this._rotation = 0;
this.d = false;
}
}
if (Key.isDown(32)) {
_root.sa.stop();
_root.sa.removeMovieClip();
_root.dwarf.gravity = 7;
this.powerx = (Math.random() * 0.4) + 1;
this.powery = (Math.random() * 0.4) + 1;
this.rot = Math.abs(this._rotation) * (Math.PI/180);
_root.dwarf.speedystart = (230 * Math.sin(this.rot * -1)) * this.powery;
_root.dwarf.speedy = _root.dwarf.speedystart;
_root.dwarf.speedx = (230 * Math.cos(this.rot)) * this.powerx;
_root.dwarf._width = owidth;
_root.dwarf._height = oheight;
_root.dwarf._xscale = 120;
_root.dwarf._yscale = 120;
_root.dwarf._alpha = 100;
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.timenow = getTimer();
_root.dwarf.timenow = _root.dwarf.timenow / 100;
_root.begtime = 0;
_root.juju = false;
_root.tout = true;
this.removeMovieClip();
}
};
}
this.onEnterFrame = function () {
if (_root.dwarf.speedx < 300) {
if (this._x < (_root.dwarf._x - 350)) {
this.removeMovieClip();
}
if (this.current) {
if (Key.isDown(32)) {
_root.dwarf._width = owidth;
_root.dwarf._height = oheight;
_root.dwarf._xscale = 120;
_root.dwarf._yscale = 120;
_root.dwarf._alpha = 100;
this.current = false;
}
if (_root.tout == false) {
var _local3 = ((this._y + 60) - (this._height / 2)) - _root.dwarf._y;
var _local4 = this._x - _root.dwarf._x;
_root.dwarf._y = _root.dwarf._y + (_local3 / 2);
_root.dwarf._x = _root.dwarf._x + (_local4 / 2);
_root.dwarf.ball._rotation = _root.dwarf.ball._rotation + 15;
_root.dwarf._xscale = ((Math.abs(_root.dwarf._rotation) - 1) / 4.4) + 65;
_root.dwarf._yscale = ((Math.abs(_root.dwarf._rotation) - 1) / 4.4) + 65;
_root.dwarf._alpha = 20;
_root.dwarf.gravity = _root.dwarf.gravity * 0.84;
_root.dwarf.speedystart = _root.dwarf.speedystart * 0.84;
_root.dwarf.speedy = _root.dwarf.speedy * 0.84;
_root.dwarf.speedx = _root.dwarf.speedx * 0.84;
}
} else {
this._alpha = this._alpha - 7;
this._x = this._x - 8;
}
}
};
}
}
if (this._x < (_root.dwarf._x - Stage.width)) {
this.removeMovieClip();
}
if (this.hits) {
this._y = this._y + downfall;
if (this._y > 450) {
this.removeMovieClip();
}
}
};
}
function addExplosion(_targetX, _targetY, _explosionParticleAmount, _distance, _explosionSize, _explosionAlpha) {
var _local7 = 0;
while (_local7 < _explosionParticleAmount) {
var _local3 = _root.attachMovie("explosion2", "explosion2_" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local4 = _root.attachMovie("explosion", "explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = (_targetX + random(_distance)) - (_distance / 2);
_local4._y = (_targetY + random(_distance)) - (_distance / 2);
_local3._x = (_targetX + random(_distance)) - (_distance / 2);
_local3._y = (_targetY + random(_distance)) - (_distance / 2);
var _local6 = random(_explosionSize) + (_explosionSize / 2);
_local4._xscale = _local6;
_local4._yscale = _local6;
_local6 = random(_explosionSize) + (_explosionSize / 2);
_local3._xscale = _local6;
_local3._yscale = _local6;
_local3._rotation = random(359);
_local4._alpha = random(explosionAlpha) + (explosionAlpha / 4);
_local3._alpha = random(explosionAlpha) + (explosionAlpha / 4);
_local7++;
}
}
function addBubbles() {
var _local5 = 0;
while (_local5 < 1) {
if (Math.round(Math.random() * 1) == 1) {
var _local3 = _root.attachMovie("bubbles", "bubbles_" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_root.dwarf._x - 20) + (Math.random() * 40);
_local3._y = _root.dwarf._y - (Math.random() * 10);
var _local4 = random(50) + 20;
_local3._alpha = 40;
_local3._xscale = _local4;
_local3._yscale = _local4;
_local3.onEnterFrame = function () {
if ((this._y < (_root.dwarf.floor + 45)) or (_root._currentframe != _root.gameframe)) {
this.removeMovieClip();
}
};
}
_local5++;
}
}
function specialgen() {
if (_root.dwarf.tempheight > 12000) {
if ((travel - sdrop) > ((Math.random() * 40) + 30)) {
h = 0;
while (h <= 8) {
var _local3 = _root.attachMovie("blobs", "blobs" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (((_root.dwarf._x - _root.dwarf.speedx) + (_root.cam._width / 2)) + 30) + ((Math.random() * _root.cam._width) * 2);
_local3._alpha = (Math.random() * 50) + 50;
_local3._xscale = (Math.random() * 50) + 70;
_local3._yscale = (Math.random() * 50) + 70;
_local3.gotoAndStop(Math.round((Math.random() * 5) + 1));
_local3._y = ((_root.dwarf._y + _root.dwarf.speedy) - (_root.cam._height / 2)) + ((Math.random() * _root.cam._width) * 2);
_local3.onEnterFrame = function () {
if (this._x < (_root.dwarf._x - 800)) {
this.removeMovieClip();
}
};
h++;
}
sdrop = travel;
}
}
}
function msholder() {
var _local2 = _root.attachMovie("sholder", "sholder", _root.getNextHighestDepth());
_local2._y = 1000;
}
thingy.removeMovieClip();
bdrop = 0;
sdrop = 0;
kdrop = 0;
cdrop = 0;
tname = 0;
tbuffer = 0;
_root.begtime = 0;
_root.juju = false;
_root.day++;
stop();
dy = 290;
power._alpha = 0;
_root.touchdown = false;
_root.pmultiplier = 0;
_root.pmultiplierb = 0;
_root.bonus = 1;
_root.bgreat = false;
started = false;
started2 = false;
angletime = 1;
_root.dolphinuse = false;
acount = 1;
_root.heighta = 0;
_root.thrower.power.stop();
press_space = false;
_root.shadow._alpha = 0;
travel = 0;
if (_root.day != 1) {
_root.iset1._visible = false;
} else {
_root.trolol = new Sound(this);
_root.trolol.attachSound("happy");
_root.trolol.start(0, 99);
}
owidth = _root.dwarf._width;
oheight = _root.dwarf._height;
_root.dwarf.ball.jetpack._visible = false;
_root.dwarf.ball.rocket._visible = false;
_root.dwarf.ball.doublerocket._visible = false;
_root.thrower.fake.ball.jetpack._visible = false;
_root.thrower.fake.ball.rocket._visible = false;
_root.thrower.fake.ball.doublerocket._visible = false;
_root.extrause = false;
_root.jp = false;
_root.r = false;
_root.dr = false;
_root.hg = false;
_root.fd = false;
var hulk = _root.attachMovie("distancetexter", "distancetexter", _root.getNextHighestDepth());
distancetexter.distance_text = "0 ft";
var hulkb = _root.attachMovie("mute_btn", "mute_btn", _root.getNextHighestDepth());
_root.trolol.setVolume(100);
if (_root.soundon) {
hulkb.gotoAndStop(1);
_root.trolol.setVolume(100);
}
if (_root.soundon == false) {
_root.trolol.setVolume(0);
}
hulkb.onRelease = function () {
if (this._currentframe == 2) {
this.gotoAndStop(1);
_root.trolol = new Sound(this);
_root.trolol.attachSound("happy");
_root.trolol.start(0, 99);
} else if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.trolol.stop();
}
};
thrower_type(hasthrower);
tower_type(hastower);
holdizzle._visible = false;
alphameter(_root.hgbtn, 1);
alphameter(_root.drbtn, 4);
alphameter(_root.rbtn, 3);
alphameter(_root.jpbtn, 2);
alphameter(_root.dbtn, 5);
_root.dwarf._y = _root.thrower._y - 10;
onEnterFrame = function () {
if (_root._currentframe == _root.gameframe) {
var _local3 = 270 - _root.dwarf._y;
if ((_local3 < 400) && (_root.dwarf._y <= 272)) {
_root.shadow._alpha = 23 - (_local3 / 15);
_root.shadow._xscale = 20 + (_local3 / 20);
_root.shadow._yscale = 0 + (_local3 / 4);
if (_local3 < 5) {
_root.shadow._alpha = 0;
}
}
if (_root.strengthlvl == 7) {
_root.achievement_time(20);
}
if (_root.bouncelvl == 7) {
_root.achievement_time(21);
}
if (_root.aidlvl == 7) {
_root.achievement_time(22);
}
if (_root.resistancelvl == 7) {
_root.achievement_time(23);
}
}
if (_root.travel > 50) {
_root.achievement_time(9);
}
if (_root.travel > 9000) {
_root.achievement_time(10);
}
if (_root.travel > 1500) {
_root.achievement_time(12);
}
if (_root.travel > 30000) {
_root.achievement_time(13);
}
if (_root.travel > 45000) {
_root.achievement_time(26);
}
distancetexter.distance_text = Math.round(_root.travel) + " ft";
specialgen();
wcam(_root.hgbtn, 1);
wcam(_root.drbtn, 2);
wcam(_root.rbtn, 3);
wcam(_root.jpbtn, 4);
wcam(_root.dbtn, 5);
jpbtn.onRelease = function () {
if (((((!_root.jp) && (started2)) && (started)) && (!extrause)) && (_root.dwarf._y < 270)) {
if (this._alpha == 100) {
_root.extrause = true;
_root.etimer = 0;
_root.dwarf.speedy = 0;
_root.dwarf.speedystart = 0;
_root.dwarf.ball._rotation = 83;
_root.dwarf.ball.jetpack._visible = true;
_root.dwarf.ball.gotoAndStop(7);
msholder();
this._alpha = 30;
jp = true;
}
}
};
if (jp) {
addExplosion((_root.dwarf._x - (_root.dwarf._width / 2)) + 10, _root.dwarf._y + 60, 2, 25, 90, 70);
_root.dwarf.gravity = 0;
_root.dwarf.speedx = _root.dwarf.speedx + 1.5;
_root.dwarf.speedy = _root.dwarf.speedy - 0.3;
_root.dwarf.speedystart = _root.dwarf.speedystart - 0.3;
_root.etimer++;
if (etimer >= (35 + (_root.fuellvl * 10))) {
_root.dwarf.gravity = 7;
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.timenow = getTimer();
_root.dwarf.timenow = _root.dwarf.timenow / 100;
_root.dwarf.ball.jetpack._visible = false;
_root.extrause = false;
_root.sholder.gotoAndStop(2);
_root.sholder.removeMovieClip();
_root.etimer = 0;
jp = false;
}
}
rbtn.onRelease = function () {
if (((((!_root.r) && (started2)) && (started)) && (!extrause)) && (_root.dwarf._y < 270)) {
if (this._alpha == 100) {
_root.extrause = true;
_root.etimer = 0;
_root.dwarf.speedy = 0;
_root.dwarf.speedystart = 0;
_root.dwarf.ball._rotation = 80;
msholder();
_root.dwarf.ball.rocket._visible = true;
_root.dwarf.ball.gotoAndStop(7);
this._alpha = 30;
r = true;
}
}
};
if (r) {
addExplosion((_root.dwarf._x - (_root.dwarf._width / 2)) + 10, _root.dwarf._y + 60, 2, 25, 90, 70);
_root.dwarf.gravity = 0;
_root.dwarf.speedx = _root.dwarf.speedx + 2;
_root.dwarf.speedy = _root.dwarf.speedy - 0.3;
_root.dwarf.speedystart = _root.dwarf.speedystart - 0.3;
_root.etimer++;
if (etimer >= (90 + (_root.fuellvl * 10))) {
_root.dwarf.gravity = 7;
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.timenow = getTimer();
_root.dwarf.timenow = _root.dwarf.timenow / 100;
_root.sholder.gotoAndStop(2);
_root.sholder.removeMovieClip();
_root.dwarf.ball.rocket._visible = false;
_root.extrause = false;
_root.etimer = 0;
r = false;
}
}
drbtn.onRelease = function () {
if (((((!_root.dr) && (started2)) && (started)) && (!extrause)) && (_root.dwarf._y < 270)) {
if (this._alpha == 100) {
_root.extrause = true;
_root.etimer = 0;
_root.dwarf.speedy = 0;
_root.dwarf.speedystart = 0;
msholder();
_root.dwarf.ball._rotation = 78;
_root.dwarf.ball.doublerocket._visible = true;
_root.dwarf.ball.gotoAndStop(7);
this._alpha = 30;
dr = true;
}
}
};
if (dr) {
addExplosion((_root.dwarf._x - (_root.dwarf._width / 2)) + 10, _root.dwarf._y + 60, 2, 25, 90, 70);
_root.dwarf.gravity = 0;
_root.dwarf.speedx = _root.dwarf.speedx + 2.3;
_root.dwarf.speedy = _root.dwarf.speedy - 0.32;
_root.dwarf.speedystart = _root.dwarf.speedystart - 0.32;
_root.etimer++;
if (etimer >= (180 + (_root.fuellvl * 10))) {
_root.dwarf.gravity = 7;
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.timenow = getTimer();
_root.dwarf.timenow = _root.dwarf.timenow / 100;
_root.sholder.gotoAndStop(2);
_root.sholder.removeMovieClip();
_root.dwarf.ball.doublerocket._visible = false;
_root.extrause = false;
_root.etimer = 0;
dr = false;
}
}
hgbtn.onRelease = function () {
if (((((!_root.hg) && (started2)) && (started)) && (!extrause)) && (_root.dwarf._y < 270)) {
if (this._alpha == 100) {
_root.extrause = true;
_root.etimer = 0;
_root.dix = _root.dwarf.speedx;
_root.dwarf.ball._rotation = 0;
_root.dwarf.ball.gotoAndStop("hangglider");
this._alpha = 30;
hg = true;
}
}
};
if (_root.hg) {
if (_root.dwarf.speedx < (_root.dix + 40)) {
_root.dwarf.speedx = _root.dwarf.speedx * 1.015;
}
_root.dwarf.speedy = _root.dwarf.speedy + 1;
_root.dwarf.speedystart = _root.dwarf.speedystart + 1;
if (_root.dwarf.speedy >= 30) {
_root.dwarf.gravity = 0;
_root.dwarf.speedy = 30;
_root.dwarf.speedystart = 30;
}
}
dbtn.onRelease = function () {
if ((((!_root.fd) && (started2)) && (started)) && (!extrause)) {
if (this._alpha == 100) {
_root.extrause = true;
_root.etimer = 0;
this._alpha = 30;
_root.dstart = false;
fd = true;
}
}
};
if (_root.fd) {
_root.achievement_time(19);
_root.dolphinuse = true;
if (dstart == false) {
var _local4 = _root.attachMovie("dolphinfin", "dolphinfin", _root.getNextHighestDepth());
_local4._x = _root.dwarf._x;
_local4._y = dy;
_local4.onEnterFrame = function () {
if (this._x < ((_root.cam._x - (_root.cam._width / 2)) - 30)) {
this._x = (_root.cam._x - (_root.cam._width / 2)) - 30;
}
if (_root.dwarf.hitTest(this.hit) && (_root.extrause)) {
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.timenow = getTimer();
_root.dwarf.timenow = _root.dwarf.timenow / 100;
_root.dwarf.speedy = _root.dwarf.speedy * -1.2;
_root.dwarf.speedx = _root.dwarf.speedx * 1.15;
_root.dwarf.speedy = _root.dwarf.speedy - 45;
_root.dwarf.speedystart = _root.dwarf.speedy;
_root.dwarf.dwarfhit();
this.play();
_root.extrause = false;
_root.hg = false;
_root.r = false;
_root.dr = false;
_root.jp = false;
_root.fd = false;
_root.dolphinuse = false;
}
if (!_root.extrause) {
this._rotation = this._rotation + 0.5;
this._x = this._x + (_root.dwarf.speedx * 1.5);
this._y = this._y + 7;
_root.dolphinuse = false;
}
};
_root.dstart = true;
}
}
if (iset1._y > (_root.thrower._y - (_root.cam._height / 8))) {
if (!_root.shopstall) {
iset1._y = iset1._y + (((_root.thrower._y - _root.iset1._y) - (_root.cam._height / 8)) / 5);
}
}
if (angletime >= 28) {
acount = -1;
}
if ((!Key.isDown(32)) && (started)) {
press_space = true;
}
if (!started) {
angletime = angletime + acount;
if ((_root.thrower._currentframe >= 28) or (angletime >= 28)) {
acount = -1;
}
if (_root.thrower._currentframe < 28) {
acount = 1;
}
if (Key.isDown(32)) {
acount = 0;
if (angletime > 28) {
angletime = Math.abs(_root.thrower._currentframe - 55);
} else {
angletime = _root.thrower._currentframe;
}
_root.dwarf.yangle = angletime * 3.03;
_root.thrower.stop();
_root.thrower.power.play();
started = true;
}
}
if ((started && (!started2)) && (press_space)) {
if (Key.isDown(32)) {
formula = _root.thrower.power._currentframe / 12;
if (formula > 1) {
formula = 2 - formula;
}
if (formula == 0) {
formula = 0.05;
}
_root.dwarf.time = getTimer();
_root.dwarf.time = _root.dwarf.time / 100;
_root.dwarf.yanglerad = _root.dwarf.yangle * (Math.PI/180);
_root.dwarf.speedx = Math.abs(((230 * Math.cos(_root.dwarf.yanglerad)) * formula) * _root.thrower.dmg);
_root.dwarf.speedystart = (((230 * Math.sin(_root.dwarf.yanglerad)) * -1) * formula) * _root.thrower.dmg;
_root.dwarf.gravity = 7;
_root.dwarf._alpha = 100;
_root.thrower.gotoAndStop(56);
_root.thrower.nappa.gotoAndStop(_root.thrower.type);
started2 = true;
}
}
if ((travel - bdrop) > (((Math.random() * 200) + 140) - (_root.aidlvl * 11))) {
rndnum = Math.round(Math.random() * 9);
if ((rndnum == 0) or (rndnum == 1)) {
spawnbad(1, dy, 0, 10, 7, 1.1, 1.04);
depth(1);
}
if ((rndnum == 2) or (rndnum == 3)) {
spawnbad(2, (-425 + (Math.random() * 100)) - 50, 9, 10, 20, 1.1, 1.1);
depth(1);
}
if ((rndnum == 4) or (rndnum == 5)) {
spawnbad(3, dy, 0, 10, 0, 1.2, 1.2);
depth(1);
}
if (rndnum == 6) {
spawnbad(4, dy - 10, 0, 10, 0, 1.2, 1.4);
}
if (((rndnum == 7) or (rndnum == 8)) or (rndnum == 9)) {
spawnbad(5, -5800 + (Math.random() * 2500), 10, 40, 20, 1.1, 1.1);
}
bdrop = travel;
}
};
var explosionParticleAmount = 15;
var explosionDistance = 30;
var explosionSize = 100;
var explosionAlpha = 75;
Instance of Symbol 513 MovieClip "dwarf" in Frame 4
onClipEvent (load) {
function dwarfhit() {
rnd = Math.round((Math.random() * 4) + 2);
while (rnd == rndtemp) {
rnd = Math.round((Math.random() * 4) + 2);
}
rndtemp = rnd;
this.ball.gotoAndStop(rnd);
var _local3 = Math.round(Math.random() * 1);
var _local4 = this.createEmptyMovieClip("musicHolder", _root.getNextHighestDepth());
kirupaSoundl = new Sound(_local4);
kirupaSoundl.setVolume(20);
if (_local3 == 1) {
kirupaSoundl.attachSound("sound1");
}
if (_local3 == 0) {
kirupaSoundl.attachSound("sound2");
}
kirupaSoundl.start(0, 1);
}
function messages(bouncer, thing) {
if ((_root.started && (_root.started2)) && (_root.travel > 3)) {
if (_root.dwarf.speedy < 0) {
speedx = speedx * 2.1;
speedy = speedy * 2;
bounce = bo;
time = getTimer();
time = time / 100;
speedystart = speedy;
}
bounce = (bouncer + (_root.bouncelvl / 71)) - 0.0666666666666667;
if (_root.dwarf.speedy < 0) {
speedx = speedx * (bounce / 1.05);
speedy = speedy * bounce;
bounce = bo;
time = getTimer();
time = time / 100;
speedystart = speedy;
}
randomm = Math.random() * 999;
if (thing == 5) {
_root.pmultiplier++;
if (_root.pmultiplier > _root.pmultiplierb) {
_root.pmultiplierb = _root.pmultiplier;
}
} else {
_root.pmultiplier = 0;
}
var bmes = _root.attachMovie("utext", "utext" + randomm, _root.getNextHighestDepth());
_root["utext" + randomm]._y = (_root.cam._y - (_root.cam._height / 2)) - 50;
_root["utext" + randomm]._x = _root.cam._x + 50;
_root["utext" + randomm].gotoAndStop(thing);
_root["utext" + randomm].start = true;
_root["utext" + randomm].time = 0;
_root["utext" + randomm]._alpha = 0;
_root.newest = _root["utext" + randomm];
if (thing == 5) {
_root["utext" + randomm].multiplier = "x " + _root.pmultiplier;
if (_root.pmultiplier == 3) {
_root.achievement_time(24);
}
if (_root.pmultiplier == 6) {
_root.achievement_time(25);
}
}
_root["utext" + randomm].onEnterFrame = function () {
if ((this != _root.newest) && (this.time < 60)) {
this._visible = false;
}
this.time++;
bmes._x = _root.cam._x + (speedx / 5);
if (this.start) {
this._alpha = this._alpha + 5;
this._y = _root.cam._y - (_root.cam._height / 3);
if (this.time > 50) {
this.start = false;
}
} else {
this._y = _root.cam._y - (_root.cam._height / 3);
this._alpha = this._alpha - 9;
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
clickdone = true;
}
}
_root.mout = 0;
speedx = 0;
newest = null;
drown = false;
speedystart = 0;
speedystart = 0;
gravity = 0;
_alpha = 0;
time = getTimer();
time = time / 100;
bo = 0.5;
floor = 270;
_root.ground._x = _root.dwarf._x - (_root.cam._width / 2);
_root.groundb._x = _root.ground._x + _root.ground._width;
_root.groundb.gotoAndStop(2);
_root.seam._x = _root.ground._x + (_root.ground._width / 2);
bounce = bo;
clickdone = false;
down = false;
hit_time = 0;
wdcount = 0;
switches = 0;
}
onClipEvent (enterFrame) {
var tempheight = (floor - this._y);
if (tempheight > _root.heighta) {
_root.heighta = tempheight;
}
if (tempheight > 1000) {
_root.achievement_time(0);
}
if (tempheight > 2000) {
_root.achievement_time(5);
}
if (tempheight > 3000) {
_root.achievement_time(6);
}
if (tempheight > 7000) {
_root.achievement_time(7);
}
if (tempheight > 12000) {
_root.achievement_time(8);
}
hit_time++;
bratio = Math.abs(speedy / 50);
_root.wcover2._x = _root.groundb._x;
_root.wcover._x = _root.ground._x;
if (_root.ground._x < ((_root.dwarf._x - (_root.cam._width / 2)) - _root.ground._width)) {
_root.ground._x = (_root.groundb._x + _root.ground._width) - 0.5;
_root.seam._x = _root.groundb._x + (_root.groundb._width / 2);
_root.ground.gotoAndStop(2);
if (switches == 3) {
_root.wcover._alpha = 0;
_root.wcover2._alpha = 0;
_root.ground.gotoAndStop("beach");
_root.groundb.gotoAndStop("beach2");
_root.seam.gotoAndStop("beach2");
}
if (switches == 4) {
_root.ground.gotoAndStop("desert");
_root.seam.gotoAndStop("desert");
}
if (switches == 5) {
_root.groundb.gotoAndStop("desert");
}
}
if (_root.groundb._x < ((_root.dwarf._x - (_root.cam._width / 2)) - _root.groundb._width)) {
_root.groundb._x = (_root.ground._x + _root.groundb._width) - 0.5;
_root.seam._x = _root.ground._x + (_root.ground._width / 2);
_root.ground.gotoAndStop(2);
if (switches == 3) {
_root.wcover._alpha = 0;
_root.wcover2._alpha = 0;
_root.ground.gotoAndStop("beach");
_root.groundb.gotoAndStop("beach2");
_root.seam.gotoAndStop("beach2");
}
if (switches == 4) {
_root.ground.gotoAndStop("desert");
_root.seam.gotoAndStop("desert");
}
if (switches == 5) {
_root.groundb.gotoAndStop("desert");
}
}
if (!down) {
if (_root.extrause == false) {
this.ball._rotation = this.ball._rotation + (speedx / 35);
}
} else {
this.ball._rotation = 0;
}
timenow = getTimer();
timenow = timenow / 100;
speedy = (gravity * (timenow - time)) + speedystart;
if (speedx > (560 + (_root.resistancelvl * 70))) {
speedx = 560 + (_root.resistancelvl * 70);
}
this._x = this._x + (speedx / 5);
_root.travel = _root.travel + (speedx / 100);
this._y = this._y + (speedy / 5);
sdist = Math.abs(speedy / 5);
if (this._y <= (floor - (sdist * 15))) {
clickdone = false;
}
if (((Key.isDown(32) && (this._y > (floor - (sdist * 15)))) && (!clickdone)) && (_root.begtime >= 10)) {
if ((this._y > (floor - (sdist * 15))) && (this._y <= (floor - (sdist * 10)))) {
messages(0.6, 1);
_root.bgreat = true;
} else if ((this._y > (floor - (sdist * 10))) && (this._y <= (floor - (sdist * 6)))) {
messages(0.7, 2);
_root.bgreat = true;
} else if ((this._y > (floor - (sdist * 6))) && (this._y <= (floor - (sdist * 3)))) {
messages(0.79, 3);
_root.bgreat = true;
} else if ((this._y > (floor - (sdist * 3))) && (this._y <= (floor - (sdist * 1)))) {
messages(0.85, 4);
} else if ((this._y > (floor - (sdist * 1))) && (this._y <= (floor - (sdist * 0)))) {
messages(1, 5);
}
}
if (this._y > floor) {
if (_root.hg) {
speedy = speedy + 11;
speedystart = speedystart + 11;
speedy = speedy * 3;
speedystart = speedystart * 3;
}
_root.hg = false;
_root.r = false;
_root.dr = false;
_root.jp = false;
_root.fd = false;
_root.extrause = false;
gravity = 7;
if (hit_time < 8) {
if (_root.travel >= 5000) {
if (_root.bgreat == false) {
_root.achievement_time(27);
}
}
_root.addBubbles();
curx = this._x;
down = true;
this.ball.gotoAndStop(7);
this.ball._rotation = 0;
this._y = this._y + 3;
if (this._y > 420) {
if (!drown) {
_root.hg = false;
_root.r = false;
_root.dr = false;
_root.jp = false;
_root.fd = false;
_root.extrause = false;
_root.distancetexter.removeMovieClip();
_root.mute_btn.removeMovieClip();
_root.dolphinfin.removeMovieClip();
_root.shadow.removeMovieClip();
delete _root.onEnterFrame;
var ce = _root.attachMovie("covereffect", "cover", _root.getNextHighestDepth());
ce._x = _root.dwarf._x;
ce._y = _root.cam._y;
_root.cover.play();
drown = true;
}
}
}
hit_time = 0;
if (!down) {
dwarfhit();
this._y = floor;
var wd = _root.attachMovie("waterdrop", "waterdrop" + (wdcount++), _root.getNextHighestDepth());
wd._x = this._x;
wd._y = this._y + wd._height;
wd._yscale = 60;
wd._alpha = 70;
wd.play();
if (speedy > 20) {
var ws = _root.attachMovie("splash", "splash" + (wdcount++), _root.getNextHighestDepth());
ws._x = this._x;
ws._y = this._y + wd._height;
ws._xscale = ws._xscale * (speedy / 90);
ws._yscale = ws._yscale * (speedy / 80);
wd.play();
}
}
_root.fstart.removeMovieClip();
speedx = speedx * (bounce / 1.05);
speedy = speedy * (-bounce);
bounce = bo;
time = getTimer();
time = time / 100;
speedystart = speedy;
}
}
Instance of Symbol 569 MovieClip "cam" in Frame 4
onClipEvent (enterFrame) {
if (!_root.shopstall) {
if (_root.started2) {
if (_root.begtime < 40) {
_root.begtime++;
}
this._y = this._y + ((_root.dwarf._y - this._y) + 40);
if ((this._y >= 175) or _root.dolphinuse) {
this._y = 175;
}
this._x = _root.dwarf._x;
} else {
this._y = this._y + (((_root.thrower._y - this._y) + 90) / 15);
}
}
}
Frame 5
trace(4);
stop();
cam.removeMovieClip();
dwarf.removeMovieClip();
wcover.removeMovieClip();
wcover2.removeMovieClip();
cover._x = 274.2;
cover._y = 189.6;
cover.play();
Symbol 24 MovieClip [utext] Frame 1
stop();
Symbol 24 MovieClip [utext] Frame 2
stop();
Symbol 26 MovieClip [sholder] Frame 1
stop();
Symbol 36 MovieClip [eagle] Frame 36
gotoAndPlay (1);
Symbol 36 MovieClip [eagle] Frame 37
stop();
_root.achievement_time(1);
Symbol 53 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (bar._width < 102.4) {
if (PercentLoaded > (bar._width / 1.024)) {
bar._width = bar._width + 0.3;
}
} else {
gotoAndPlay ("loaded");
}
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);
Symbol 53 MovieClip Frame 46
removeMovieClip(_root.adBox);
Symbol 53 MovieClip Frame 83
_parent.removeMovieClip();
_root.menu.play();
_root.gotoAndStop(2);
Symbol 81 MovieClip [waterdrop] Frame 95
this.removeMovieClip();
Symbol 88 MovieClip Frame 1
stop();
Symbol 89 MovieClip [achievement] Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
if (_root.hasthrower >= 1) {
check._visible = true;
} else {
check._visible = false;
}
Symbol 150 MovieClip Frame 2
if (_root.hasthrower >= 2) {
check._visible = true;
} else {
check._visible = false;
}
price = 300;
Symbol 150 MovieClip Frame 3
if (_root.hasthrower >= 3) {
check._visible = true;
} else {
check._visible = false;
}
price = 1000;
Symbol 150 MovieClip Frame 4
if (_root.hasthrower >= 4) {
check._visible = true;
} else {
check._visible = false;
}
price = 6500;
Symbol 150 MovieClip Frame 5
if (_root.hastower >= 1) {
check._visible = true;
} else {
check._visible = false;
}
price = 100;
Symbol 150 MovieClip Frame 6
if (_root.hastower >= 2) {
check._visible = true;
} else {
check._visible = false;
}
price = 400;
Symbol 150 MovieClip Frame 7
if (_root.hastower >= 3) {
check._visible = true;
} else {
check._visible = false;
}
price = 1000;
Symbol 150 MovieClip Frame 8
if (_root.hastower >= 4) {
check._visible = true;
} else {
check._visible = false;
}
price = 2400;
Symbol 150 MovieClip Frame 13
if (_root.extras[0] == 1) {
check._visible = true;
} else {
check._visible = false;
}
price = 125;
Symbol 150 MovieClip Frame 14
if (_root.extras[1] == 2) {
check._visible = true;
} else {
check._visible = false;
}
price = 300;
Symbol 150 MovieClip Frame 15
if (_root.extras[2] == 3) {
check._visible = true;
} else {
check._visible = false;
}
price = 1200;
Symbol 150 MovieClip Frame 16
if (_root.extras[3] == 4) {
check._visible = true;
} else {
check._visible = false;
}
price = 3200;
Symbol 150 MovieClip Frame 18
if (_root.extras[4] == 5) {
check._visible = true;
} else {
check._visible = false;
}
price = 200;
Symbol 154 MovieClip [descriptor] Frame 1
stop();
Symbol 154 MovieClip [descriptor] Frame 2
stop();
Symbol 160 MovieClip [mute_btn] Frame 1
stop();
_root.soundon = true;
Symbol 160 MovieClip [mute_btn] Frame 2
_root.soundon = false;
Symbol 167 MovieClip [explosion] Frame 19
removeMovieClip(this);
Symbol 170 MovieClip [explosion2] Frame 16
this.removeMovieClip();
Symbol 183 MovieClip [dolphinfin] Frame 1
stop();
Symbol 183 MovieClip [dolphinfin] Frame 23
this.removeMovieClip();
Symbol 185 MovieClip [bubbles] Frame 13
this.removeMovieClip();
Symbol 192 MovieClip [blobs] Frame 1
stop();
Symbol 205 Button
on (release) {
_parent.play();
this.button._visible = false;
}
Symbol 210 MovieClip Frame 1
distance_txt = Math.round(_root.travel);
height_txt = Math.round(_root.heighta / 10);
if (Math.round(_root.heighta / 10) > _root.rheight) {
_root.rheight = Math.round(_root.heighta / 10);
}
if (Math.round(_root.travel) > _root.rdistance) {
_root.rdistance = Math.round(_root.travel);
}
rdistance_txt = Math.round(_root.rdistance);
rheight_txt = Math.round(_root.rheight);
bonus_txt = "X " + (((_root.pmultiplierb / 10) * 2) + _root.bonus);
cash_txt = Math.round((_root.travel + ((_root.heighta / 10) * (((_root.pmultiplierb / 10) * 2) + _root.bonus))) / 7) + 4;
_root.money = _root.money + cash_txt;
Symbol 249 Button
on (release) {
_parent.play();
w = 1;
while (w <= 35) {
_root["star" + w].removeMovieClip();
str.removeMovieClip();
des.removeMovieClip();
w++;
}
}
Symbol 254 Button
on (release) {
nextFrame();
}
Symbol 257 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hasthrower < 2) {
_root.hasthrower = 2;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 258 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hasthrower < 4) {
_root.hasthrower = 4;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 259 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hasthrower < 3) {
_root.hasthrower = 3;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 260 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hastower < 1) {
_root.hastower = 1;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 261 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hastower < 2) {
_root.hastower = 2;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 262 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hastower < 4) {
_root.hastower = 4;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 263 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
if (_root.hastower < 3) {
_root.hastower = 3;
}
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 264 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.extras[0] = 1;
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 265 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.extras[1] = 2;
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 266 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
var rndnumber = Math.round((Math.random() * 1) + 1);
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.extras[3] = 4;
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 267 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.extras[2] = 3;
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 269 Button
on (release) {
if (des.text.check._visible == false) {
if (_root.money >= des.text.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.extras[4] = 5;
_root.money = _root.money - des.text.price;
moola = _root.money;
des.text.check._visible = true;
}
}
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 1
i = 1;
while (i <= 28) {
_root.cover.shop.hilder["achievement" + i].num = i;
if (_root.ful[i - 1][1] == 0) {
_root.cover.shop.hilder["achievement" + i].gotoAndStop(2);
}
_root.cover.shop.hilder["achievement" + i].onRollOver = function () {
descr.gotoAndStop(this.num + 1);
};
i++;
}
Symbol 337 Button
on (release) {
gotoAndStop (1);
}
Symbol 338 MovieClip Frame 1
moola = _root.money;
stop();
day_txt = _root.day;
w = 1;
while (w <= 18) {
_parent.shop["c" + w].num = w;
_parent.shop["c" + w]._alpha = 0;
w++;
}
timezilla = 0;
onEnterFrame = function () {
if (timezilla < 20) {
timezilla++;
}
if (timezilla == 16) {
s = 1;
while (s <= 35) {
if (s <= 7) {
var _local4 = _root.attachMovie("star", "star" + s, _root.getNextHighestDepth());
_local4._x = (c9._x + 217.5) + (s * 15);
_local4._y = c9._y + 15.1;
_local4.num = s;
if (s > _root.aidlvl) {
_local4._alpha = 30;
}
_local4.onRollOver = function () {
this.price = Math.round(((3.5 * (1 - Math.pow(2.7, this.num))) / -1) - ((3.5 * (1 - Math.pow(2.7, _root.aidlvl))) / -1));
des.removeMovieClip();
des = _root.attachMovie("descriptor", "descriptor", _root.getNextHighestDepth());
des._y = this._y;
des._x = (this._x + (this._width / 2)) + 10;
des.text.gotoAndStop(9);
if (this.num <= _root.aidlvl) {
des.text.atxt = "Purchased";
} else {
des.text.atxt = "$ " + this.price;
}
j = 1;
while (j <= this.num) {
_root["star" + j]._alpha = 100;
j++;
}
};
_local4.onRollOut = function () {
des.removeMovieClip();
j = 7;
while (j > _root.aidlvl) {
_root["star" + j]._alpha = 30;
j--;
}
};
_local4.onRelease = function () {
if (this.num > _root.aidlvl) {
if (_root.money >= this.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.aidlvl = this.num;
des.text.atxt = "Purchased";
_root.money = _root.money - this.price;
moola = _root.money;
}
}
};
} else if ((s > 7) && (s <= 14)) {
var _local4 = _root.attachMovie("star", "star" + s, _root.getNextHighestDepth());
_local4._x = (c10._x + 132.9) + (s * 15);
_local4._y = c10._y + 14.4;
_local4.num = s;
j = 14;
while (j > (_root.strengthlvl + 7)) {
_root["star" + j]._alpha = 30;
j--;
}
_local4.onRollOver = function () {
this.price = Math.round(((3.5 * (1 - Math.pow(2.7, this.num - 7))) / -1) - ((3.5 * (1 - Math.pow(2.7, _root.strengthlvl))) / -1));
des.removeMovieClip();
des = _root.attachMovie("descriptor", "descriptor", _root.getNextHighestDepth());
des._y = this._y;
des._x = (this._x + (this._width / 2)) + 10;
des.text.gotoAndStop(10);
if ((this.num - 7) <= _root.strengthlvl) {
des.text.stxt = "Purchased";
} else {
des.text.stxt = "$ " + this.price;
}
j = 8;
while (j <= this.num) {
_root["star" + j]._alpha = 100;
j++;
}
};
_local4.onRollOut = function () {
des.removeMovieClip();
j = 14;
while (j > (_root.strengthlvl + 7)) {
_root["star" + j]._alpha = 30;
j--;
}
};
_local4.onRelease = function () {
if ((this.num - 7) > _root.strengthlvl) {
if (_root.money >= this.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.strengthlvl = this.num - 7;
des.text.stxt = "Purchased";
_root.money = _root.money - this.price;
moola = _root.money;
}
}
};
} else if ((s > 14) && (s <= 21)) {
var _local4 = _root.attachMovie("star", "star" + s, _root.getNextHighestDepth());
_local4._x = (c11._x + 11) + (s * 15);
_local4._y = c11._y + 14.4;
_local4.num = s;
j = 21;
while (j > (_root.bouncelvl + 14)) {
_root["star" + j]._alpha = 30;
j--;
}
_local4.onRollOver = function () {
this.price = Math.round(((3.5 * (1 - Math.pow(2.7, this.num - 14))) / -1) - ((3.5 * (1 - Math.pow(2.7, _root.bouncelvl))) / -1));
des.removeMovieClip();
des = _root.attachMovie("descriptor", "descriptor", _root.getNextHighestDepth());
des._y = this._y;
des._x = (this._x + (this._width / 2)) + 10;
des.text.gotoAndStop(11);
if ((this.num - 14) <= _root.bouncelvl) {
des.text.btxt = "Purchased";
} else {
des.text.btxt = "$ " + this.price;
}
j = 15;
while (j <= this.num) {
_root["star" + j]._alpha = 100;
j++;
}
};
_local4.onRollOut = function () {
des.removeMovieClip();
j = 21;
while (j > (_root.bouncelvl + 14)) {
_root["star" + j]._alpha = 30;
j--;
}
};
_local4.onRelease = function () {
if ((this.num - 14) > _root.bouncelvl) {
if (_root.money >= this.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.bouncelvl = this.num - 14;
des.text.btxt = "Purchased";
_root.money = _root.money - this.price;
moola = _root.money;
}
}
};
} else if ((s > 21) && (s <= 28)) {
var _local4 = _root.attachMovie("star", "star" + s, _root.getNextHighestDepth());
_local4._x = (c12._x + -83) + (s * 15);
_local4._y = c12._y + 14.5;
_local4.num = s;
j = 28;
while (j > (_root.resistancelvl + 21)) {
_root["star" + j]._alpha = 30;
j--;
}
_local4.onRollOver = function () {
this.price = Math.round(((3.5 * (1 - Math.pow(2.7, this.num - 21))) / -1) - ((3.5 * (1 - Math.pow(2.7, _root.resistancelvl))) / -1));
des.removeMovieClip();
des = _root.attachMovie("descriptor", "descriptor", _root.getNextHighestDepth());
des._y = this._y;
des._x = (this._x + (this._width / 2)) + 10;
des.text.gotoAndStop(12);
if ((this.num - 21) <= _root.resistancelvl) {
des.text.wtxt = "Purchased";
} else {
des.text.wtxt = "$ " + this.price;
}
j = 22;
while (j <= this.num) {
_root["star" + j]._alpha = 100;
j++;
}
};
_local4.onRollOut = function () {
des.removeMovieClip();
j = 28;
while (j > (_root.resistancelvl + 21)) {
_root["star" + j]._alpha = 30;
j--;
}
};
_local4.onRelease = function () {
if ((this.num - 21) > _root.resistancelvl) {
if (_root.money >= this.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.resistancelvl = this.num - 21;
des.text.wtxt = "Purchased";
_root.money = _root.money - this.price;
moola = _root.money;
}
}
};
} else if ((s > 28) && (s <= 35)) {
var _local4 = _root.attachMovie("star", "star" + s, _root.getNextHighestDepth());
_local4._x = (c17._x - 203) + (s * 15);
_local4._y = c17._y + 15.1;
_local4.num = s;
j = 35;
while (j > (_root.fuellvl + 28)) {
_root["star" + j]._alpha = 30;
j--;
}
_local4.onRollOver = function () {
this.price = Math.round(((3.5 * (1 - Math.pow(2.7, this.num - 28))) / -1) - ((3.5 * (1 - Math.pow(2.7, _root.fuellvl))) / -1));
des.removeMovieClip();
des = _root.attachMovie("descriptor", "descriptor", _root.getNextHighestDepth());
des._y = this._y - 15;
des._x = this._x;
des.gotoAndStop(2);
if ((this.num - 28) <= _root.fuellvl) {
des.ftxt = "Purchased";
} else {
des.ftxt = "$ " + this.price;
}
j = 29;
while (j <= this.num) {
_root["star" + j]._alpha = 100;
j++;
}
};
_local4.onRollOut = function () {
des.removeMovieClip();
j = 35;
while (j > (_root.fuellvl + 28)) {
_root["star" + j]._alpha = 30;
j--;
}
};
_local4.onRelease = function () {
if ((this.num - 28) > _root.fuellvl) {
if (_root.money >= this.price) {
kirupaSound = new Sound(this);
kirupaSound.attachSound("ching");
kirupaSound.start(0, 1);
_root.fuellvl = this.num - 28;
des.ftxt = "Purchased";
_root.money = _root.money - this.price;
moola = _root.money;
}
}
};
}
s++;
}
}
w = 1;
while (w <= 18) {
if (((w < 9) or (w > 12)) or (w != 17)) {
_parent.shop["c" + w].onRollOver = function () {
if (this._x > 50) {
des.removeMovieClip();
des.removeMovieClip();
des.removeMovieClip();
des = _root.attachMovie("descriptorb", "descriptor", _root.getNextHighestDepth());
des._y = this._y + 10;
des._x = (this._x + _parent._x) - (this._width / 2);
des._xscale = -100;
des.text.gotoAndStop(this.num);
} else {
des = _root.attachMovie("descriptor", "descriptor", _root.getNextHighestDepth());
des._y = this._y + 10;
des._x = (this._x + (this._width / 2)) + _parent._x;
des.text.gotoAndStop(this.num);
}
};
}
_parent.shop["c" + w].onRollOut = function () {
des.removeMovieClip();
};
w++;
}
};
Symbol 338 MovieClip Frame 2
w = 1;
while (w <= 35) {
_root["star" + w].removeMovieClip();
str.removeMovieClip();
des.removeMovieClip();
w++;
}
Symbol 339 MovieClip [covereffect] Frame 2
if (_root._currentframe <= 2) {
gotoAndStop (1);
}
trace(_root.money);
Symbol 339 MovieClip [covereffect] Frame 30
_root.nextFrame();
this.play();
Symbol 339 MovieClip [covereffect] Frame 43
stop();
_root.shopstall = true;
trace(_root.money);
Symbol 339 MovieClip [covereffect] Frame 63
stop();
trace(_root.money);
Symbol 339 MovieClip [covereffect] Frame 73
_root.gotoAndStop(_root.gameframe);
_root.thrower.stop();
_root.angletime = 1;
_root.acount = 1;
this._y = this._y - 50;
this._x = this._x + 130;
Symbol 339 MovieClip [covereffect] Frame 87
_root.shopstall = false;
_root.thrower.play();
Symbol 339 MovieClip [covereffect] Frame 101
this.removeMovieClip();
stop();
Symbol 369 Button
on (release) {
fade.framee = 4;
fade.play();
}
Symbol 374 MovieClip Frame 1
framee = 3;
stop();
Symbol 374 MovieClip Frame 19
stopAllSounds();
_root.gotoAndStop(framee);
Symbol 374 MovieClip Frame 20
this.swapDepths(_root.getNextHighestDepth());
stopAllSounds();
Symbol 374 MovieClip Frame 30
this.removeMovieClip();
Symbol 408 MovieClip Frame 6
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
_root.numero = 2;
Symbol 437 MovieClip Frame 18
_root.trolol.setVolume(0);
Symbol 437 MovieClip Frame 172
_root.fadeb.play();
Symbol 437 MovieClip Frame 185
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
Symbol 439 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 450 Button
on (release) {
_root.scalevol = true;
_root.money = 0;
_root.numbaro = 100;
_root.onEnterFrame = function () {
trace(_root.scalevol);
if (_root.scalevol) {
if (_root.numbaro <= 0) {
_root.trolol.setVolume(0);
_root.scalevol = false;
}
trace("num" + _root.numbaro);
_root.numbaro = _root.numbaro - 4;
_root.trolol.setVolume(_root.numbaro);
}
};
_root.fadeb.play();
_root.splash._visible = true;
}
Symbol 451 MovieClip Frame 1
this.swapDepths(_root.getNextHighestDepth());
Symbol 451 MovieClip Frame 10
_root.camshake();
Symbol 451 MovieClip Frame 73
_root.camshake();
Symbol 451 MovieClip Frame 94
stop();
Symbol 455 MovieClip Frame 1
framee = 3;
this.swapDepths(_root.getNextHighestDepth());
stop();
Symbol 455 MovieClip Frame 24
if (_root.numero == 1) {
_root.menu.removeMovieClip();
_root.camb.swapDepths(_root.getNextHighestDepth());
_root.camb.removeMovieClip();
_root.coolbtn._visible = true;
_root.splash.play();
} else {
_root.splash.removeMovieClip();
_root.camb.swapDepths(_root.getNextHighestDepth());
_root.camb.removeMovieClip();
_root.coolbtn._visible = true;
}
Symbol 455 MovieClip Frame 39
if (_root.numero != 1) {
this.removeMovieClip();
}
Symbol 483 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 2
stop();
Symbol 512 MovieClip Frame 3
stop();
Symbol 512 MovieClip Frame 4
stop();
Symbol 512 MovieClip Frame 5
stop();
Symbol 512 MovieClip Frame 7
stop();
Symbol 512 MovieClip Frame 8
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 2
stop();
Symbol 518 MovieClip Frame 3
stop();
Symbol 518 MovieClip Frame 4
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 2
stop();
Symbol 525 MovieClip Frame 3
stop();
Symbol 525 MovieClip Frame 4
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 3
stop();
Symbol 539 MovieClip Frame 4
stop();
Symbol 546 MovieClip Frame 2
stop();
Symbol 546 MovieClip Frame 3
stop();
Symbol 546 MovieClip Frame 4
stop();
Symbol 547 MovieClip Frame 1
_root.acount = 1;
_root.angletime = 1;
Symbol 547 MovieClip Frame 28
_root.acount = -1;
_root.angletime = 28;
Symbol 547 MovieClip Frame 55
gotoAndPlay (1);
Symbol 547 MovieClip Frame 56
stop();
sa = new Sound(this);
sa.attachSound("swoosh");
sa.start(0, 1);
Symbol 550 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 572 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 289
stop();
Symbol 595 Button
on (release) {
getURL ("http://www.gamesfree.com", "_blank");
}