Frame 1
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
stop();
gamename = "just_john";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Frame 2
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(5);
}
Frame 3
gotoAndPlay (2);
Frame 5
logo.onPress = function () {
getURL ("http://www.xdgames.co.uk", "_blank");
};
Frame 6
stop();
gamename = "just_john";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
cam._x = hack._x;
cam._y = hack._y;
stop();
Frame 7
function removeall() {
stopAllSounds();
princesss.removeMovieClip();
hud.removeMovieClip();
shopkeep.removeMovieClip();
i = pickUps.length - 1;
while (i >= 0) {
pickUps.removeMovieClip();
pickUps.splice(i, 1);
i--;
}
i = pickUpType.length - 1;
while (i >= 0) {
pickUpType.splice(i, 1);
i--;
}
i = traps.length - 1;
while (i >= 0) {
traps.removeMovieClip();
traps.splice(i, 1);
i--;
}
i = trapType.length - 1;
while (i >= 0) {
trapType.splice(i, 1);
i--;
}
i = checkPoint.length - 1;
while (i >= 0) {
checkPoint.removeMovieClip();
checkPoint.splice(i, 1);
i--;
}
i = checkPointOn.length - 1;
while (i >= 0) {
checkPointOn.splice(i, 1);
i--;
}
i = monster.length - 1;
while (i >= 0) {
monster.removeMovieClip();
monster.splice(i, 1);
i--;
}
i = monsterType.length - 1;
while (i >= 0) {
monsterType.splice(i, 1);
i--;
}
i = monsterHealth.length - 1;
while (i >= 0) {
monsterHealth.splice(i, 1);
i--;
}
i = monsterAttacking.length - 1;
while (i >= 0) {
monsterAttacking.splice(i, 1);
i--;
}
i = monsterAlive.length - 1;
while (i >= 0) {
monsterAlive.splice(i, 1);
i--;
}
i = monsterAttackingTimer.length - 1;
while (i >= 0) {
monsterAttackingTimer.splice(i, 1);
i--;
}
i = monsterMovement.length - 1;
while (i >= 0) {
monsterMovement.splice(i, 1);
i--;
}
i = removeMonster.length - 1;
while (i >= 0) {
removeMonster.splice(i, 1);
i--;
}
i = monsterHit.length - 1;
while (i >= 0) {
monsterHit.splice(i, 1);
i--;
}
i = monsterHitTimer.length - 1;
while (i >= 0) {
monsterHitTimer.splice(i, 1);
i--;
}
}
function canAddPoint() {
if (clicks == 0) {
canAddComboPoint = true;
} else {
canAddComboPoint = false;
}
}
function runAttackTimer() {
if (attacking) {
if (jump) {
maxaccel = 0.5;
}
is_attacking++;
} else {
maxaccel = 5;
}
}
function confirmAttacking() {
if (clicks > 0) {
attacking = true;
}
}
function comboOne() {
if (!addSecondCombo) {
if (!addThirdCombo) {
if (addFirstCombo) {
if (attacking) {
player.gotoAndStop("melee1");
if (is_attacking == 11) {
addFirstCombo = false;
if (clicks == 1) {
clicks = 0;
is_attacking = 0;
attacking = false;
}
if (clicks > 1) {
addSecondCombo = true;
}
}
}
}
}
}
}
function comboTwo() {
if (!addFirstCombo) {
if (!addThirdCombo) {
if (addSecondCombo) {
if (attacking) {
player.gotoAndStop("melee2");
if (is_attacking == 24) {
addSecondCombo = false;
if (clicks == 2) {
clicks = 0;
is_attacking = 0;
attacking = false;
}
if (clicks > 2) {
addThirdCombo = true;
}
}
}
}
}
}
}
function comboThree() {
if (!addFirstCombo) {
if (!addSecondCombo) {
if (addThirdCombo) {
if (attacking) {
player.gotoAndStop("melee3");
if (is_attacking == 35) {
addThirdCombo = false;
if (clicks == 3) {
clicks = 0;
is_attacking = 0;
attacking = false;
}
if (clicks > 3) {
clicks = 1;
is_attacking = 0;
addFirstCombo = true;
}
}
}
}
}
}
}
function setToFalse() {
i = checkPoint.length - 1;
while (i >= 0) {
checkPointOn[i] = false;
i--;
}
}
stop();
playerSeenShop = false;
princessTouchedHouse = false;
inGame = true;
punch_sound = new Sound();
punch_sound.attachSound("punch");
pickUp_sound = new Sound();
pickUp_sound.attachSound("pick");
jump_sound = new Sound();
jump_sound.attachSound("jump");
hud.congrats._alpha = 0;
hud.collect._alpha = 0;
hud.over._alpha = 0;
cam._xscale = 100;
cam._yscale = 100;
showcol = false;
showcolt = 0;
youLost = 0;
lookCar = 0;
lookDog = 0;
lookRing = 0;
lookSky = 0;
oneTime = 0;
inControl = true;
princessSaved = false;
addPrincess = false;
shownHouse = false;
addPrincessTimer = 0;
_global.coins = 0;
_global.ownCar = false;
_global.ownDog = false;
_global.ownRing = false;
_global.ownSky = false;
poolTooMuch = false;
showDogOption = false;
showRingOption = false;
showSkyOption = false;
showPoolOption = false;
_global.gems = 0;
punched = 0;
task = 0;
happy = false;
happyTimer = 0;
showMeHouse = false;
showMeHouseTimer = 0;
follow = false;
atYard = false;
running = false;
getCar = false;
getDog = false;
getRing = false;
getSky = false;
noPool = 0;
pissed = false;
once = 0;
onceTimer = 0;
playerHealth = 3;
gravity = 0;
gravityaccel = 0.2;
xaccel = 0;
runaccelamt = 0.3;
friction = 0.5;
airrisist = 0.05;
maxaccel = 5;
maxjump = 3;
flashing = 0;
gotAcheckPoint = false;
safe = false;
safeTimer = 0;
shotTimer = 0;
shooting = false;
doubleJump = false;
doubleJumping = false;
jump = true;
pressOnce = 0;
cam.lens._xscale = 50;
cam.lens._yscale = 50;
pressHack = 0;
clicks = 0;
playerPower = 1;
attacking = false;
is_attacking = 0;
hitPlayer = 0;
hitTimer = 0;
randomNumber = 0;
addFirstCombo = false;
addSecondCombo = false;
addThirdCombo = false;
var pickUps = new Array();
pickUps.push(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40, c41, c42, c43, c44, c45, c46, c47, c48, c49, c50, c51, c52, c53, c54, c55, c56, c57, c58, c59, c60, c61, c62, c63, c64, c65, c66, c67, c68, c69, c70, c71, c72, c73, c74, c75, c76, c77, c78, c79, c80, c81, c82, c83, c84, c85, c86, c87, c88, c89, c90, c91, c92, c93, c94, c95, c96, c97, c98, c99, c100, c101, c102, c103, c104, c105, c106, c107, c108, c109, c110, c111, c112, c113, c114, c115, c116, c117, c118, c119, c120, c121, c122, c123, c124, c125, c126, c127, c128, c129, c130, c131, c132, c133, c134, c135, c136, c137, c138, c139, c140, c141, c142, c143, c144, c145, c146, c147, c148, c149, c150, c151, c152, c153, c154, c155, c156, c157, c158, c159, c160, c161, c162, c163, c164, c165, c166, c167, c168, c169, c170, c171, c172, c173, c174, c175, c176, c177, c178, c179, c180, c181, c182, c183, c184, c185, c186, c187, c188, c189, c190, c191, c192, c193, c194, c195, c196, c197, c198, c199, c200, c201, c202, c203, c204, c205, c206, c207, c208, c209, c210, c211, c212, c213, c214, c215, c216, c217, c218, c219, c220, c221, c222, c223, c224, c225, c226, c227, c228, c229, c230, c231, c232, c233, c234, c235, c236, c237, c238, c239, c240, c241, c242, c243, c244, c245, c246, c247, c248, c249, c250, c251, c252, c253, c254, c255, c256, c257, c258, c259, c260, c261, c262, c263, c264, c265, c266, c267, c268, c269, c270, c271, c272, c273, c274, c275, c276, c277, c278, c279, c280, c281, c282, c283, c284, c285, c286, c287, c288, c289, c290, c291, c292, c293, c294, c295, c296, c297, c298, c299, c300, g1, g2, g3, g4, g5, g6, g7, g8, g9, g10);
var pickUpType = new Array();
pickUpType.push("standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "standard", "special", "special", "special", "special", "special", "special", "special", "special", "special", "special");
var traps = new Array();
traps.push(spikes1, spikes2, spikes3, spikes4, spikes5, spikes6, spikes7, spikes8, spikes9, spikes10, spikes11, spikes12, spikes13, spikes14, spikes14, spikes16, spikes17, spikes18, spikes19, spikes20, spikes21, spikes22, spikes23);
var trapType = new Array();
trapType.push("minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth", "minusOneHealth");
var checkPoint = new Array();
checkPoint.push(one, two, three);
var checkPointOn = new Array();
checkPointOn.push(false, false, false);
var monster = new Array();
monster.push(enemy_mc, enemy_mc1, enemy_mc3, enemy_mc4, enemy_mc5, enemy_mc6);
var monsterType = new Array();
monsterType.push(1, 0, 1, 1, 1, 1);
var monsterHealth = new Array();
monsterHealth.push(3, 3, 3, 3, 3, 3);
var monsterAttacking = new Array();
monsterAttacking.push(false, false, false, false, false, false);
var monsterAlive = new Array();
monsterAlive.push(true, true, true, true, true, true);
var monsterAttackingTimer = new Array();
monsterAttackingTimer.push(0, 0, 0, 0, 0, 0);
var monsterMovement = new Array();
monsterMovement.push(0, 0, 0, 0, 0, 0);
var removeMonster = new Array();
removeMonster.push(0, 0, 0, 0, 0, 0);
var monsterHit = new Array();
monsterHit.push(false, false, false, false, false, false);
var monsterHitTimer = new Array();
monsterHitTimer.push(0, 0, 0, 0, 0, 0);
player.onEnterFrame = function () {
i = monster.length - 1;
while (i >= 0) {
if (monsterHit[i]) {
if (monster[i]._xscale == 50) {
monster[i]._x = monster[i]._x + 1;
} else {
monster[i]._x = monster[i]._x - 1;
}
monster[i].gotoAndStop("hit");
monsterHitTimer[i]++;
if (monsterHitTimer[i] == 8) {
monsterHit[i] = false;
monsterHitTimer[i] = 0;
}
}
if (!monsterAlive[i]) {
removeMonster[i]++;
monster[i].gotoAndStop("death");
if (removeMonster[i] < 2) {
monster[i]._y = monster[i]._y - 10;
}
if (removeMonster[i] > 10) {
monster[i]._y = monster[i]._y + 12;
}
if (removeMonster[i] > 50) {
if (monsterType[i] == 0) {
addPrincess = true;
ground.plat._y = ground.plat._y - 221;
releasePrincess = true;
princess.gotoAndStop("free");
}
monster.splice(i, 1);
monsterType.splice(i, 1);
monsterHealth.splice(i, 1);
monsterAttacking.splice(i, 1);
monsterAlive.splice(i, 1);
monsterAttackingTimer.splice(i, 1);
monsterMovement.splice(i, 1);
removeMonster.splice(i, 1);
monsterHit.splice(i, 1);
monsterHitTimer.splice(i, 1);
}
}
if (monsterAlive[i] && (!monsterHit[i])) {
if (!monsterAttacking[i]) {
monsterMovement[i]++;
monster[i].gotoAndStop("idle");
if (monsterMovement[i] == 60) {
monsterMovement[i] = 0;
}
if ((monsterMovement[i] > 0) && (monsterMovement[i] < 30)) {
monster[i]._xscale = 50;
monster[i]._x = monster[i]._x - 3;
}
if (monsterMovement[i] > 30) {
monster[i]._xscale = -50;
monster[i]._x = monster[i]._x + 3;
}
}
if (player.hitTest(monster[i])) {
if ((((is_attacking == 4) || (is_attacking == 15)) || (is_attacking == 28)) || (flyKick)) {
punch_sound.start();
monsterHit[i] = true;
monsterHealth[i]--;
randomNumber++;
_root.attachMovie("hit", "hit" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 10});
if (monsterHealth[i] < 1) {
monsterAlive[i] = false;
}
}
if (monsterAttackingTimer[i] > 20) {
monsterAttacking[i] = true;
monster[i].gotoAndStop("attack");
}
if (monsterAttackingTimer[i] == 60) {
monsterAttackingTimer[i] = 0;
monsterAttacking[i] = false;
}
if (monsterAttacking[i]) {
}
} else {
monsterAttacking[i] = 0;
monsterAttacking[i] = false;
}
}
i--;
}
if (hitPlayer == 0) {
var _local4 = player.transform.colorTransform;
player.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
if (hitPlayer == 1) {
var _local4 = player.transform.colorTransform;
_local4.rgb = 4294967000;
player.transform.colorTransform = _local4;
hitTimer++;
if (hitTimer == 1) {
hitPlayer = 0;
hitTimer = 0;
}
}
if (!Key.isDown(65)) {
pressHack = 0;
}
if (inControl && (Key.isDown(65))) {
if (!jump) {
flyKick = true;
}
if (jump) {
if (pressHack == 0) {
swing_sound.start();
pressHack = 1;
if (canAddComboPoint) {
addFirstCombo = true;
}
clicks++;
}
}
}
if (cam.lens._xscale > 100) {
cam.lens._xscale = 100;
hud._xscale = 100;
}
if (cam.lens._yscale > 100) {
cam.lens._yscale = 100;
hud._yscale = 100;
}
if (cam.lens._xscale < 50) {
cam.lens._xscale = 50;
hud._xscale = 50;
}
if (cam.lens._yscale < 50) {
cam.lens._yscale = 50;
hud._yscale = 50;
}
if (player._y < 220) {
cam.lens._xscale = cam.lens._xscale + 1;
cam.lens._yscale = cam.lens._yscale + 1;
hud._xscale = hud._xscale + 1;
hud._yscale = hud._yscale + 1;
} else {
cam.lens._xscale = cam.lens._xscale - 1;
cam.lens._yscale = cam.lens._yscale - 1;
hud._xscale = hud._xscale - 1;
hud._yscale = hud._yscale - 1;
}
if (punched == 0) {
if (shooting && (!flyKick)) {
if (running) {
player.gotoAndStop("runShoot");
} else {
player.gotoAndStop("idleShoot");
}
}
if (flyKick && (!shooting)) {
player.gotoAndStop("flykick");
}
if ((!flyKick) && (!shooting)) {
if (doubleJumping) {
player.gotoAndStop("double");
}
if (!attacking) {
if (jump && (!doubleJumping)) {
if (running) {
player.gotoAndStop("run");
} else {
player.gotoAndStop("idle");
}
} else if (!doubleJumping) {
player.gotoAndStop("jump");
}
}
}
}
if (inControl) {
if (Key.isDown(39) || (Key.isDown(37))) {
running = true;
} else {
running = false;
}
}
if (!ground.hitTest(player._x, player._y + 10, true)) {
falling = true;
grounded = false;
}
if (ground.hitTest(player._x, player._y + 11, true)) {
flyKick = false;
doubleJumping = false;
doubleJump = false;
jump = true;
grounded = true;
falling = false;
while (ground.hitTest(player._x, player._y + 9, true)) {
player._y--;
}
}
if (falling == true) {
gravity = gravity + gravityaccel;
} else {
gravity = 0;
}
if (((inControl && (Key.isDown(39))) && (xaccel < maxaccel)) && (falling == true)) {
xaccel = xaccel + (runaccelamt - airrisist);
} else if (((inControl && (Key.isDown(37))) && (xaccel > (-maxaccel))) && (falling == true)) {
xaccel = xaccel - (runaccelamt - airrisist);
} else if (((inControl && (Key.isDown(37))) && (xaccel > (-maxaccel))) && (falling == false)) {
xaccel = xaccel - runaccelamt;
} else if (((inControl && (Key.isDown(39))) && (xaccel < maxaccel)) && (falling == false)) {
xaccel = xaccel + runaccelamt;
} else if (grounded == true) {
if (xaccel > 0) {
xaccel = xaccel - friction;
}
if (xaccel < 0) {
xaccel = xaccel + friction;
}
if ((xaccel < 0) && (xaccel > friction)) {
xaccel = 0;
}
if ((xaccel > 0) && (xaccel < friction)) {
xaccel = 0;
}
} else {
if (xaccel > 0) {
xaccel = xaccel - airrisist;
}
if (xaccel < 0) {
xaccel = xaccel + airrisist;
}
if ((xaccel < 0) && (xaccel > airrisist)) {
xaccel = 0;
}
if ((xaccel > 0) && (xaccel < airrisist)) {
xaccel = 0;
}
}
if (_root.ground.hitTest(this._x, this._y - 11, true)) {
gravity = 1;
while (_root.ground.hitTest(this._x, this._y - 10, true)) {
this._y++;
}
}
if (xaccel > 0) {
player._xscale = 100;
}
if (xaccel < 0) {
player._xscale = -100;
}
if (!Key.isDown(38)) {
pressOnce = 0;
}
if (inControl) {
if (Key.isDown(38) && (jump == true)) {
jump_sound.start();
gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump);
jump = false;
doubleJump = true;
pressOnce = 1;
}
if ((Key.isDown(38) && (doubleJump == true)) && (pressOnce == 0)) {
jump_sound.start();
gravity = 0;
gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * maxjump);
doubleJump = false;
doubleJumping = true;
}
}
leftx = player._x + (Math.cos(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7);
lefty = player._y - (Math.sin(3.141593 * (((player._rotation * -1) + 180) / 180)) * 7);
rightx = player._x + (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 7);
righty = player._y - (Math.sin(3.141593 * ((player._rotation * -1) / 180)) * 7);
if (ground.hitTest(leftx, lefty, true)) {
xaccel = 0;
player._x++;
}
if (ground.hitTest(rightx, righty, true)) {
xaccel = 0;
player._x--;
}
if (inGame) {
endX = player._x;
endY = player._y;
cam._x = cam._x + ((endX - cam._x) / 5);
cam._y = cam._y + ((endY - cam._y) / 5);
cam.camControl();
}
player._y = player._y + gravity;
player._x = player._x + xaccel;
comboOne();
comboTwo();
comboThree();
runAttackTimer();
canAddPoint();
confirmAttacking();
if (safe) {
player._alpha = 60;
flashing++;
safeTimer++;
if ((flashing > 0) && (flashing < 5)) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:100, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
if ((flashing > 5) && (flashing < 10)) {
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
if (flashing == 10) {
flashing = 0;
}
if (safeTimer == 75) {
player._alpha = 100;
flashing = 0;
safe = false;
safeTimer = 0;
myColor = new Color(player);
myColorTransform = new Object();
myColorTransform = {rb:0, gb:0, bb:0};
myColor.setTransform(myColorTransform);
}
}
if (playerHealth == 3) {
hud.health.gotoAndStop("full");
}
if (playerHealth == 2) {
hud.health.gotoAndStop("two");
}
if (playerHealth == 1) {
hud.health.gotoAndStop("one");
}
if (playerHealth == 0) {
hud.health.gotoAndStop("zero");
}
if (playerHealth > 3) {
playerHealth = 3;
}
if (playerHealth < 0) {
if (!gotAcheckPoint) {
player._x = startHere._x;
player._y = startHere._y;
}
i = checkPoint.length - 1;
while (i >= 0) {
j = checkPoint.length - 1;
while (j >= 0) {
if (!(checkPoint[i] === checkPoint[j])) {
if (checkPointOn[i]) {
player._x = checkPoint[i]._x;
player._y = checkPoint[i]._y;
}
}
j--;
}
i--;
}
playerHealth = 3;
}
i = traps.length - 1;
while (i >= 0) {
if ((!safe) && (player.hitTest(traps[i]))) {
if (trapType[i] == "minusOneHealth") {
playerHealth--;
gravity = gravity - (Math.cos(3.141593 * ((player._rotation * -1) / 180)) * 4);
jump = false;
doubleJump = true;
pressOnce = 1;
safe = true;
player._y = player._y + gravity;
}
}
i--;
}
i = pickUps.length - 1;
while (i >= 0) {
if (player.hitTest(pickUps[i])) {
if (pickUps[i]._alpha == 100) {
pickUp_sound.start();
if (pickUpType[i] == "standard") {
pickUps[i]._alpha = 0;
_global.coins++;
}
if (pickUpType[i] == "special") {
pickUps[i]._alpha = 0;
_global.gems++;
}
}
}
i--;
}
i = checkPoint.length - 1;
while (i >= 0) {
if (checkPointOn[i]) {
checkPoint[i].gotoAndStop("on");
} else {
checkPoint[i].gotoAndStop("off");
}
if (player.hitTest(checkPoint[i])) {
gotAcheckPoint = true;
if (!checkPointOn[i]) {
if (once == 0) {
setToFalse();
once = 1;
}
checkPointOn[i] = true;
}
}
i--;
}
if (once == 1) {
onceTimer++;
if (onceTimer == 5) {
once = 0;
onceTimer = 0;
}
}
hud.coin = _global.coins;
hud.gem = _global.gems;
hud._x = cam._x;
hud._y = cam._y;
if (addPrincess) {
addPrincessTimer++;
if (addPrincessTimer == 30) {
princessSaved = true;
_root.attachMovie("princesss", "princesss", _root.getNextHighestDepth(), {_x:castle._x, _y:282});
happy = true;
addPrincess = false;
addPrincessTimer = 0;
}
}
if (princesss._x > -6230) {
princesss._x = -6230;
}
if (happy) {
hud.congrats._alpha = 100;
princesss.gotoAndStop("pleased");
princesss.thinks.gotoAndStop("love");
happyTimer++;
if (happyTimer == 50) {
hud.congrats._alpha = 0;
happy = false;
happyTimer = 0;
if ((((!getCar) && (!getDog)) && (!getRing)) && (!getSky)) {
princesss.gotoAndStop("idle");
princesss.thinks.gotoAndStop("car");
}
if (((getCar && (!getDog)) && (!getRing)) && (!getSky)) {
princesss.gotoAndStop("idle");
princesss.thinks.gotoAndStop("dog");
}
if (((getCar && (getDog)) && (!getRing)) && (!getSky)) {
princesss.gotoAndStop("idle");
princesss.thinks.gotoAndStop("ring");
}
if (((getCar && (getDog)) && (getRing)) && (!getSky)) {
princesss.gotoAndStop("idle");
princesss.thinks.gotoAndStop("sky");
}
if (((getCar && (getDog)) && (getRing)) && (getSky)) {
princesss.gotoAndStop("idle");
princesss.thinks.gotoAndStop("pool");
}
if (!shownHouse) {
showMeHouse = true;
}
}
}
if (showMeHouse) {
princesss.thinks.gotoAndStop("house");
princesss.gotoAndStop("idle");
showMeHouseTimer++;
if (showMeHouseTimer == 50) {
showMeHouse = false;
showMeHouseTimer = 0;
follow = true;
}
}
if (follow) {
if (player._x > princesss._x) {
princesss._xscale = -100;
} else {
princesss._xscale = 100;
}
princesss.gotoAndStop("run");
endX = player._x;
princesss._x = princesss._x + ((endX - princesss._x) / 25);
}
if (princesss.hitTest(house)) {
princessTouchedHouse = true;
if (task == 0) {
task = 1;
princesss.gotoAndStop("pleased");
happy = true;
}
shownHouse = true;
follow = false;
atYard = true;
if (oneTime == 0) {
oneTime = 1;
princesss._xscale = 100;
}
}
if (princessSaved && (player.hitTest(shopDoor))) {
if (princessTouchedHouse) {
playerSeenShop = true;
}
if (showPoolOption) {
poolTooMuch = true;
}
shop.gotoAndStop("in");
} else {
shop.gotoAndStop("out");
}
if ((player.hitTest(house) && (_global.ownCar)) && (!poolTooMuch)) {
if (lookCar == 0) {
showDogOption = true;
getCar = true;
lookCar = 1;
happy = true;
}
}
if ((player.hitTest(house) && (_global.ownDog)) && (!poolTooMuch)) {
if (lookDog == 0) {
showRingOption = true;
getDog = true;
lookDog = 1;
happy = true;
}
}
if ((player.hitTest(house) && (_global.ownRing)) && (!poolTooMuch)) {
if (lookRing == 0) {
showSkyOption = true;
getRing = true;
lookRing = 1;
happy = true;
}
}
if ((player.hitTest(house) && (_global.ownSky)) && (!poolTooMuch)) {
if (lookSky == 0) {
showPoolOption = true;
getSky = true;
lookSky = 1;
happy = true;
}
}
if (player.hitTest(house) && (poolTooMuch)) {
if (noPool == 0) {
_root.attachMovie("shopkeep", "shopkeep", _root.getNextHighestDepth(), {_x:startHere._x, _y:282});
running = false;
inControl = false;
princesss.thinks.gotoAndStop("broken");
princesss.gotoAndStop("talking");
noPool = 1;
pissed = true;
}
}
shopkeep.onEnterFrame = function () {
shopkeep._x = shopkeep._x + 3;
if (this._x > -6900) {
hud.over._alpha = 100;
}
if (this._x > -7000) {
princesss.gotoAndStop("run");
princesss._xscale = -100;
princesss._x = princesss._x + 3;
}
if (!this.hitTest(player)) {
this.gotoAndStop("run");
} else {
if (punched == 0) {
punch_sound.start();
punched = 1;
randomNumber++;
_root.attachMovie("hit", "hit" + randomNumber, _root.getNextHighestDepth(), {_x:player._x, _y:player._y - 10});
player.gotoAndStop("down");
princesss.gotoAndStop("pleased");
princesss.thinks.gotoAndStop("love");
}
this.gotoAndStop("melee1");
}
};
if (punched == 1) {
youLost++;
if (youLost == 140) {
hud.black.gotoAndStop("go");
}
if (youLost == 190) {
inGame = false;
removeall();
gotoAndStop ("title");
}
}
if (((_global.ownCar && (!_global.ownDog)) && (!_global.ownRing)) && (!_global.ownSky)) {
house.gotoAndStop("withCar");
}
if (((_global.ownCar && (_global.ownDog)) && (!_global.ownRing)) && (!_global.ownSky)) {
house.gotoAndStop("withDog");
}
if (((_global.ownCar && (_global.ownDog)) && (_global.ownRing)) && (!_global.ownSky)) {
house.gotoAndStop("withRing");
}
if (((_global.ownCar && (_global.ownDog)) && (_global.ownRing)) && (_global.ownSky)) {
house.gotoAndStop("withSky");
}
if (((showDogOption && (!showRingOption)) && (!showSkyOption)) && (!showPoolOption)) {
shop.buy.gotoAndStop("dog");
}
if (((showDogOption && (showRingOption)) && (!showSkyOption)) && (!showPoolOption)) {
shop.buy.gotoAndStop("ring");
}
if (((showDogOption && (showRingOption)) && (showSkyOption)) && (!showPoolOption)) {
shop.buy.gotoAndStop("sky");
}
if (((showDogOption && (showRingOption)) && (showSkyOption)) && (showPoolOption)) {
shop.buy.gotoAndStop("pool");
}
if (playerSeenShop && (princessTouchedHouse)) {
ground.bit._y = ground.bit._y - 999999999;
if (showcolt == 0) {
showcol = true;
}
}
if (showcol) {
hud.congrats._alpha = 0;
hud.collect._alpha = 100;
showcolt++;
if (showcolt == 80) {
hud.collect._alpha = 0;
showcol = false;
}
}
hud.swapDepths(_root.getNextHighestDepth());
};
Symbol 13 MovieClip [splash] Frame 29
removeMovieClip(this);
Symbol 15 MovieClip [bubble] Frame 1
onEnterFrame = function () {
if (!_root.water.hitTest(_x, _y, true)) {
removeMovieClip(this);
}
if (_root.ground.hitTest(_x + (_width / 2), _y + (_width / 2), true)) {
_x = (_x-1);
_x = (_x-1);
_x = (_x-1);
_x = (_x-1);
}
if (_root.ground.hitTest(_x - (_width / 2), _y + (_width / 2), true)) {
_x = (_x+1);
_x = (_x+1);
_x = (_x+1);
_x = (_x+1);
}
_y = (_y - 0.5);
_x = (_x + (Math.round(Math.random()) - Math.round(Math.random())));
};
Symbol 17 MovieClip Frame 2
stop();
Symbol 18 MovieClip [bullet] Frame 1
function hitsomeone(person) {
if (_root[person].died != true) {
hydif = Math.abs(_root[person + "head"]._y - looky);
bydif = Math.abs(_root[person + "body"]._y - looky);
nydif = Math.abs(_root[person + "neck"]._y - looky);
xdif = _root[person]._x - _x;
if (hydif < nydif) {
hitarea = "head";
} else if (nydif < bydif) {
hitarea = "neck";
} else {
hitarea = "body";
}
if (hitarea == "head") {
_root[person].dead = hitarea;
_root[person].deathway = xdif;
_root[person].hitx = lookx;
_root[person].hity = looky;
_root[person].hp = _root[person].hp - damage;
removeMovieClip(this);
}
if (hitarea == "neck") {
_root[person].dead = hitarea;
_root[person].deathway = xdif;
_root[person].hitx = lookx;
_root[person].hity = looky;
removeMovieClip(this);
}
if (hitarea == "body") {
_root[person].dead = hitarea;
_root[person].deathway = xdif;
_root[person].hitx = lookx;
_root[person].hity = looky;
_root[person].hp = _root[person].hp - (damage / 4);
removeMovieClip(this);
}
}
}
spd = _root.bulletspd;
left = false;
if (typelol == "shot") {
damage = 50;
} else {
damage = 100;
}
if (_root.water.hitTest(_x, _y, true)) {
water = true;
} else {
water = false;
}
if (_root[shooter]._xscale == 100) {
left = true;
}
bcount = 0;
onEnterFrame = function () {
if (spd < 0.1) {
removeMovieClip(this);
}
if ((spd < 3) && (!_root.water.hitTest(_x, _y, true))) {
removeMovieClip(this);
}
if (left == true) {
this._x = this._x + (Math.cos((_rotation * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin((_rotation * 3.141593) / 180) * spd);
} else {
this._x = this._x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * spd);
}
j = 0;
while (j < spd) {
if (left == true) {
lookx = _x + (Math.cos((_rotation * 3.141593) / 180) * j);
looky = _y + (Math.sin((_rotation * 3.141593) / 180) * j);
} else {
lookx = _x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * j);
looky = _y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * j);
}
if (shooter == "guy") {
if (_root.enemy.hitTest(lookx, looky, true)) {
_root.crosshair.n.gotoAndPlay(2);
hitsomeone("enemy");
}
} else if (_root.guy.hitTest(lookx, looky, true)) {
hitsomeone("guy");
}
if (_root.ground.hitTest(lookx, looky, true)) {
_x = lookx;
_y = looky;
spd = 0;
}
j = j + (spd / 5);
}
if (_root.water.hitTest(_x, _y, true)) {
spd = spd / 1.3;
if (water == false) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:_y - _root.water._y, _xscale:50});
water = true;
}
} else if (water == true) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:(_y - _root.water._y) + 2, _xscale:50});
water = false;
}
};
Symbol 20 MovieClip [blood] Frame 1
gravity = 0;
onEnterFrame = function () {
_y = (_y + yspd);
_x = (_x + xspd);
if (_root.ground.hitTest(_x, _y + 1, true)) {
_alpha = (_alpha - 5);
xspd = 0;
yspd = 0;
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
_y = (_y-1);
_y = (_y-1);
_y = (_y-1);
}
} else {
gravity = gravity + 0.2;
_y = (_y + gravity);
}
if (_alpha <= 0) {
removeMovieClip(this);
}
};
Symbol 22 MovieClip [shotgun] Frame 1
type = "shotgun";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
pressed = true;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 24 MovieClip Frame 2
this._parent.spd = 130;
Symbol 24 MovieClip Frame 3
this._parent.spd = _root.bulletspd;
stop();
Symbol 25 MovieClip [tankshell] Frame 1
if (_root.water.hitTest(_x, _y, true)) {
water = true;
} else {
water = false;
}
if (_root.tank._xscale == 100) {
left = true;
}
onEnterFrame = function () {
if (left == true) {
this._x = this._x + (Math.cos((_rotation * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin((_rotation * 3.141593) / 180) * spd);
} else {
this._x = this._x + (Math.cos(((_rotation - 180) * 3.141593) / 180) * spd);
this._y = this._y + (Math.sin(((_rotation - 180) * 3.141593) / 180) * spd);
}
if (_root.ground.hitTest(_x, _y, true)) {
removeMovieClip(this);
}
if (_root.water.hitTest(_x, _y, true)) {
spd = spd / 1.2;
if (water == false) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:_y - _root.water._y, _xscale:50});
water = true;
}
} else if (water == true) {
_root.water.attachMovie("splash", _name + "splash", _root.water.getNextHighestDepth(), {_x:_x - _root.water._x, _y:(_y - _root.water._y) + 2, _xscale:50});
water = false;
}
if (spd < 0.1) {
removeMovieClip(this);
}
if ((spd < 3) && (!_root.water.hitTest(_x, _y, true))) {
removeMovieClip(this);
}
};
Symbol 27 MovieClip [assault] Frame 1
type = "assault";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
pressed = true;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 29 MovieClip [pistol] Frame 1
type = "pistol";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
pressed = true;
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 31 MovieClip [sniper] Frame 1
type = "sniper";
if (!Key.isDown(70)) {
pressed = false;
}
onEnterFrame = function () {
if (!(_parent._name === "gun")) {
if (_root.guy.hitTest(this) && (_root.intank == false)) {
_root.cam["hitgun" + type] = true;
if (Key.isDown(70) && (pressed == false)) {
_root.cam["hitgun" + type] = false;
_root.arm.gun.attachMovie(type, "dwa", 1);
dgun = _root.arm.cgun;
_root.arm.cgun = type;
_root.attachMovie(dgun, dgun + this.getDepth(), this.getDepth(), {_x:_x, _y:_y});
pressed = true;
}
if (!Key.isDown(70)) {
pressed = false;
}
} else {
_root.cam["hitgun" + type] = false;
}
}
};
Symbol 162 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 167 MovieClip Frame 1
_root.stop();
Symbol 167 MovieClip Frame 91
_root.play();
Symbol 170 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 170 MovieClip Frame 90
stop();
Symbol 176 MovieClip Frame 1
_root.stop();
Symbol 176 MovieClip Frame 90
_root.play();
Symbol 184 MovieClip Frame 1
_root.stop();
Symbol 184 MovieClip Frame 89
_root.play();
Symbol 187 MovieClip Frame 1
_root.stop();
Symbol 187 MovieClip Frame 89
_root.play();
Symbol 188 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
Symbol 236 MovieClip [shopkeep] Frame 1
stop();
Symbol 236 MovieClip [shopkeep] Frame 2
stop();
Symbol 236 MovieClip [shopkeep] Frame 3
stop();
Symbol 236 MovieClip [shopkeep] Frame 4
stop();
Symbol 236 MovieClip [shopkeep] Frame 5
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 3
stop();
Symbol 252 MovieClip Frame 4
stop();
Symbol 252 MovieClip Frame 5
stop();
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 255 MovieClip in Symbol 275 MovieClip Frame 1
on (release) {
if ((_global.coins > 99) && (!_global.ownCar)) {
_global.coins = _global.coins - 100;
this._alpha = 50;
_global.ownCar = true;
}
}
Instance of Symbol 264 MovieClip in Symbol 275 MovieClip Frame 2
on (release) {
if ((_global.coins > 99) && (!_global.ownDog)) {
_global.coins = _global.coins - 100;
this._alpha = 50;
_global.ownDog = true;
}
}
Instance of Symbol 266 MovieClip in Symbol 275 MovieClip Frame 3
on (release) {
if ((_global.coins > 99) && (!_global.ownRing)) {
_global.coins = _global.coins - 100;
this._alpha = 50;
_global.ownRing = true;
}
}
Instance of Symbol 269 MovieClip in Symbol 275 MovieClip Frame 4
on (release) {
if ((_global.gems > 9) && (!_global.ownSky)) {
_global.gems = _global.gems - 10;
this._alpha = 50;
_global.ownSky = true;
}
}
Instance of Symbol 274 MovieClip "pool" in Symbol 275 MovieClip Frame 5
on (release) {
if ((_global.gems > 9) && (!_global.ownSky)) {
_global.gems = _global.gems - 10;
this._alpha = 50;
_global.ownSky = true;
}
}
Symbol 279 MovieClip Frame 30
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 299 MovieClip [princesss] Frame 1
stop();
Symbol 299 MovieClip [princesss] Frame 2
stop();
Symbol 299 MovieClip [princesss] Frame 3
stop();
Symbol 299 MovieClip [princesss] Frame 4
stop();
Symbol 328 MovieClip Frame 5
stop();
Symbol 333 MovieClip Frame 10
stop();
Symbol 336 MovieClip Frame 5
stop();
Symbol 345 MovieClip Frame 30
stop();
Symbol 346 MovieClip Frame 1
_root.stop();
Symbol 346 MovieClip Frame 175
_root.play();
stopAllSounds();
Symbol 350 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;
}
stop();
this._visible = true;
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;
camControl();
Symbol 355 MovieClip Frame 25
stop();
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 25
on (release) {
_root.nextFrame();
}
Symbol 375 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 394 MovieClip Frame 14
stop();
Symbol 395 MovieClip Frame 80
gotoAndPlay (1);
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 3
stop();
Symbol 398 MovieClip Frame 4
stop();
Symbol 398 MovieClip Frame 5
stop();
Symbol 416 MovieClip [hit] Frame 7
this.removeMovieClip();
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 3
stop();
Symbol 462 MovieClip Frame 4
stop();
Symbol 462 MovieClip Frame 5
stop();
Symbol 462 MovieClip Frame 6
stop();
Symbol 462 MovieClip Frame 7
stop();
Symbol 462 MovieClip Frame 8
stop();
Symbol 462 MovieClip Frame 9
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 4
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 3
stop();
Symbol 472 MovieClip Frame 4
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 2
stop();
Symbol 478 MovieClip Frame 3
stop();
Symbol 478 MovieClip Frame 4
stop();
Symbol 483 MovieClip Frame 45
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 1
gamename = "just_john";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Symbol 486 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;
}
stop();
this._visible = true;
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;
camControl();