Frame 1
_root.kongregateServices.connect();
_global.mute = false;
stop();
mochi.as2.MochiAd.showPreGameAd({id:"55db878bd1269d6b", res:"700x500"});
_level0.onEnterFrame = function () {
if (_level0.getBytesLoaded() == _level0.getBytesTotal()) {
delete _level0.onEnterFrame;
}
};
Frame 2
function trackCamera(clip, framestyle) {
if (framestyle == undefined) {
framestyle = false;
}
if (framestyle == false) {
mute_bttn._x = clip._x + mute_bttn.xdist;
mute_bttn._y = clip._y + mute_bttn.ydist;
_level0._x = _level0._x - (clip._x - clip.lastx);
_level0._y = _level0._y - (clip._y - clip.lasty);
} else {
if (clip._x < -2100) {
_level0._x = 2100;
_level0.mute_bttn._x = -1422;
}
if (clip._x > -2100) {
_level0._x = 2100;
_level0.mute_bttn._x = -1422;
}
if (clip._x > -1400) {
_level0._x = 1400;
_level0.mute_bttn._x = -722;
}
if (clip._x > -700) {
_level0._x = 700;
_level0.mute_bttn._x = -22;
}
if (clip._x > 0) {
_level0._x = 0;
_level0.mute_bttn._x = 678;
}
if (clip._x > 700) {
_level0._x = -700;
_level0.mute_bttn._x = 1378;
}
if (clip._x > 1400) {
_level0._x = -1400;
_level0.mute_bttn._x = 2078;
}
}
}
function centerCamera(clip) {
_level0._x = clip._x + 1350;
_level0._y = clip._y - 200;
}
function createWarp(clip, dot) {
if (!clip.starscollected) {
clip.starscollected = 1;
}
bill = clip.attachMovie("billboard", String(Math.random()), this.getNextHighestDepth(), {_y:-60});
bill.gotoAndStop(clip.starscollected);
clip.onEnterFrame = function () {
if ((this.hitTest(dot) && (dot.dead == false)) && (!_level0.rcartoon_mc)) {
_level0.sfx.stop();
_level0.sfx.attachSound("cartoonhole.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
_level0.attachMovie("reverse-cartoon", "rcartoon_mc", _level0.getNextHighestDepth(), {_x:clip._x, _y:clip._y});
_level0.rcartoon_mc.onEnterFrame = function () {
if (this._currentframe == 30) {
_level0.gotoAndStop(clip.nextLevel);
this.removeMovieClip();
}
};
}
};
}
function findAndRemove(array, target) {
i = 0;
while (i < array.length) {
if (array[i] == target) {
return(array.splice(i, 1));
}
i++;
}
}
function findInArray(array, target) {
i = 0;
while (i < array.length) {
if (array[i] === target) {
return(true);
}
i++;
}
return(false);
}
function makeMeAStar(clip) {
trace(clip + " was made into a star.");
clip.onEnterFrame = function () {
if (clip.hitTest(_level0.p1)) {
sfx.attachSound("star.mp3");
if (_global.mute == false) {
sfx.start();
}
_level0.cspecial++;
_level0.scounter.txt.text = String((_level0.cspecial + " / ") + _level0.tspecial);
_global.levelStars[_level0.levelNumber].push(String(clip));
trace(String(clip) + " was added to collected stars array for this level.");
so.data.levelStars = _global.levelStars;
clip.gotoAndPlay(2);
delete clip.onEnterFrame;
}
};
}
function allActionBox(clip) {
clip.onEnterFrame = function () {
if (clip.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true) && (_level0.p1.dead == false)) {
clip.gotoAndPlay("action");
_level0.p1.jump = true;
_level0.gravity = _global.gravity;
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
delete clip.onEnterFrame;
_level0.sfx.attachSound("sand.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
}
if (clip.hitTest(_level0.p1._x, (_level0.p1._y - (_level0.p1._height / 2)) - 1, true) && (_level0.p1.dead == false)) {
clip.gotoAndPlay("action");
_level0.gravity = _global.gravity;
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
delete clip.onEnterFrame;
_level0.sfx.attachSound("sand.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
}
if (clip.hitTest((_level0.p1._x + (_level0.p1._width / 2)) + 1, _level0.p1._y, true) && (_level0.p1.dead == false)) {
clip.gotoAndPlay("action");
_level0.gravity = _global.gravity;
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
delete clip.onEnterFrame;
_level0.sfx.attachSound("sand.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
}
if (clip.hitTest((_level0.p1._x - (_level0.p1._width / 2)) - 1, _level0.p1._y, true) && (_level0.p1.dead == false)) {
clip.gotoAndPlay("action");
_level0.gravity = _global.gravity;
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
delete clip.onEnterFrame;
_level0.sfx.attachSound("sand.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
}
};
}
function setUpLevel(clip, framestyle) {
if (_level0.findInArray(_global.levelStars[_level0.levelNumber], String(_level0.star1))) {
_level0.cspecial++;
_level0.star1.gotoAndStop(48);
delete _level0.star1.onEnterFrame;
trace("STAR 1 was found and removed");
}
if (_level0.findInArray(_global.levelStars[_level0.levelNumber], String(_level0.star2))) {
_level0.cspecial++;
_level0.star2.gotoAndStop(48);
delete _level0.star2.onEnterFrame;
trace("STAR 2 was found and removed");
}
if (_level0.findInArray(_global.levelStars[_level0.levelNumber], String(_level0.star3))) {
_level0.cspecial++;
_level0.star3.gotoAndStop(48);
delete _level0.star3.onEnterFrame;
trace("STAR 3 was found and removed");
}
if (_level0.findInArray(_global.levelStars[_level0.levelNumber], String(_level0.star4))) {
_level0.cspecial++;
_level0.star4.gotoAndStop(48);
delete _level0.star4.onEnterFrame;
trace("STAR 4 was found and removed");
}
if (_level0.findInArray(_global.levelStars[_level0.levelNumber], String(_level0.star5))) {
_level0.cspecial++;
_level0.star5.gotoAndStop(48);
delete _level0.star5.onEnterFrame;
trace("STAR 5 was found and removed");
}
_level0.scounter.txt.text = String((_level0.cspecial + " / ") + _level0.tspecial);
sfx = new Sound(_level0.createEmptyMovieClip("temp", this.getNextHighestDepth()));
_level0.mute_bttn.removeMovieClip();
_level0.attachMovie("mute", "mute_bttn", this.getNextHighestDepth());
_level0.mute_bttn._x = 678;
_level0.mute_bttn._y = 25;
_level0.mute_bttn._width = 11;
_level0.mute_bttn._height = 19;
if (_global.mute == true) {
_level0.mute_bttn.gotoAndStop(3);
}
if (framestyle == undefined) {
framestyle = false;
}
_level0._x = 0;
_level0._y = 0;
checkpoint = xx;
xx._visible = false;
clip._x = checkpoint._x;
clip._y = checkpoint._y;
clip.normscale = clip._xscale;
clip.dead = false;
clip.camfollow = true;
clip.jumpStamina = 2;
clip.power = _global.power;
clip.runpower = _global.runpower;
clip.xspeed = 0;
clip.yspeed = 0;
clip.floatspeed = 0.3;
clip.floatStamina = 0;
clip.staminaRecharge = _global.staminaRecharge;
clip.jump = false;
clip.upKeyReleased = true;
clip.jumpspeed = _global.jumpspeed;
clip.superjump = true;
clip.superjumpspeed = _global.superjumpspeed;
clip.floating = false;
clip.gravity = _global.gravity;
clip.wind = 0;
clip.friction = _global.friction;
clip.lastx = 350;
clip.lasty = 200;
scounter.xdist = -350;
scounter.ydist = 300;
mute_bttn.xdist = 328;
mute_bttn.ydist = -175;
_level0.onEnterFrame = function () {
if (clip.dead == true) {
return(undefined);
}
clip.yspeed = clip.yspeed + clip.gravity;
clip.xspeed = clip.xspeed + clip.wind;
if (clip.yspeed > 20) {
clip.yspeed = 20;
}
clip.xspeed = clip.xspeed * clip.friction;
clip._x = clip._x + clip.xspeed;
clip._y = clip._y + clip.yspeed;
if (!Key.isDown(40)) {
if (clip.floating == true) {
clip.gotoAndPlay("earsin");
}
clip.floating = false;
clip.gravity = _global.gravity;
}
if (Key.isDown(192)) {
}
if (Key.isDown(40)) {
clip.power = clip.runpower;
} else {
clip.power = _global.power;
}
if (Key.isDown(40)) {
if (clip.floating == true) {
clip.floatStamina = clip.floatStamina - 1;
if (clip.floatStamina <= 0) {
clip.floating = false;
clip.gotoAndPlay("earsin");
clip.gravity = _global.gravity;
}
}
}
if (Key.isDown(39)) {
clip.xspeed = clip.xspeed + clip.power;
clip._xscale = clip.normscale;
}
if (Key.isDown(37)) {
clip.xspeed = clip.xspeed - clip.power;
clip._xscale = -clip.normscale;
}
while (nogo.hitTest(clip._x, clip._y - (clip._height / 2.4), true)) {
clip._y = clip._y + 1;
if (clip.yspeed < 0) {
clip.yspeed = 0;
}
if (clip.floating == true) {
clip.yspeed = clip.floatspeed;
}
}
if (clip.yspeed >= 0) {
while (nogo.hitTest(clip._x, clip._y + (clip._height / 2.4), true)) {
clip.floatStamina = clip.staminaRecharge;
clip._y = clip._y - 1;
clip.yspeed = 0;
if (!Key.isDown(38)) {
clip.jump = true;
clip.jumpStamina = 2;
}
if (clip.floating == true) {
clip.yspeed = clip.floatspeed;
}
}
}
while (nogo.hitTest(clip._x + (clip._width / 1.75), clip._y, true) && (!nogo.hitTest(clip._x, clip._y - (clip._height / 2), true))) {
clip._x = clip._x - 1;
if (clip.xspeed > 0) {
clip.xspeed = 0;
}
}
while (nogo.hitTest(clip._x - (clip._width / 1.75), clip._y, true) && (!nogo.hitTest(clip._x, clip._y - (clip._height / 2), true))) {
clip._x = clip._x + 1;
if (clip.xspeed < 0) {
clip.xspeed = 0;
}
}
if (e1.hitTest(clip._x, clip._y - (clip._height / 2), true) && (clip.dead == false)) {
clip.gotoAndPlay("die");
clip.dead = true;
}
if (e1.hitTest(clip._x, clip._y + (clip._height / 2), true) && (clip.dead == false)) {
clip.gotoAndPlay("die");
trace("IM DEAD");
clip.dead = true;
}
if (e1.hitTest(clip._x + (clip._width / 2), clip._y, true) && (clip.dead == false)) {
clip.gotoAndPlay("die");
clip.dead = true;
}
if (e1.hitTest(clip._x - (clip._width / 2), clip._y, true) && (clip.dead == false)) {
clip.gotoAndPlay("die");
clip.dead = true;
}
if (pit.hitTest(clip._x, clip._y, true) && (clip.dead == false)) {
sfx.attachSound("death.mp3");
if (_global.mute == false) {
sfx.start();
}
clip._x = checkpoint._x;
clip._y = checkpoint._y;
for (var _local2 in _level0.nogo) {
if (_level0._currentframe == 4) {
return(undefined);
}
if (typeof(_level0.nogo[_local2]) == "movieclip") {
_level0.nogo[_local2].gotoAndStop(1);
}
}
}
if (framestyle) {
_level0.trackCamera(clip, true);
} else {
_level0.trackCamera(clip, false);
}
if (scounter) {
scounter._x = clip._x + scounter.xdist;
scounter._y = clip._y + scounter.ydist;
}
clip.lastx = clip._x;
clip.lasty = clip._y;
};
Key.removeListener(Listener);
delete Listener;
var Listener = new Object();
Listener.lastReleaseOnUp = 0;
Listener.onKeyDown = function () {
if (clip.dead == true) {
return(undefined);
}
if ((Key.getCode() == 38) && (clip.jump == true)) {
if (!clip.upKeyReleased) {
return(undefined);
}
clip.upKeyReleased = false;
if (clip.jumpStamina == 2) {
sfx.attachSound("jump.mp3");
clip.yspeed = clip.jumpspeed * -1.1;
}
if (!(clip.jumpStamina === 2)) {
sfx.attachSound("superjump.mp3");
clip.yspeed = clip.jumpspeed * -1;
}
if (_global.mute == false) {
sfx.start();
}
clip.gravity = _global.gravity;
clip.jumpStamina--;
if (clip.jumpStamina <= 0) {
clip.jump = false;
}
if (clip.floating == true) {
clip.gotoAndPlay("earsin");
}
clip.floating = false;
}
if (((Key.getCode() == 40) && (clip.floating == false)) && (clip.floatStamina > 0)) {
if (nogo.hitTest(clip._x, clip._y - (clip._height / 2), true) || (nogo.hitTest(clip._x, clip._y + (clip._height / 2), true))) {
return(undefined);
}
clip.gravity = 0;
clip.yspeed = clip.floatspeed;
clip.floating = true;
clip.gotoAndPlay("earsout");
}
};
Listener.onKeyUp = function () {
if (Key.getCode() == 36) {
_level0.cspecial++;
}
if (Key.getCode() == 38) {
clip.upKeyReleased = true;
}
if (Key.getCode() == 81) {
_level0.cartoon_mc.removeMovieClip();
_level0.gotoAndStop("Menu");
}
};
Key.addListener(Listener);
}
stop();
trace("2nd frame");
_level0._x = 0;
_level0._y = 0;
_level0.createEmptyMovieClip("empty_movieclip", this.getNextHighestDepth());
music = new Sound(_level0.empty_movieclip);
music.attachSound("happyboy.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
trace("2nd frame pat 2");
_global.superjumpspeed = 5;
_global.jumpspeed = 18;
_global.staminaRecharge = 90;
_global.runpower = 2.5;
_global.power = 1.5;
_global.gravity = 1;
_global.friction = 0.8;
_global.special = new Array();
_global.heights = new Array();
_global.heights.push(_global.superjumpspeed + _global.jumpspeed);
_global.levelStars = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
var i = 0;
while (i < 10) {
_global.special[i] = new Number(0);
i++;
}
var so = SharedObject.getLocal("gr33n");
ng.onMouseDown = function () {
if (ng.hitTest(_xmouse, _ymouse, true)) {
_level0.gotoAndStop(3);
}
};
ng.onRollOver = function () {
ng.useHandCursor = true;
};
ng.onEnterFrame = function () {
if (ng.hitTest(_xmouse, _ymouse, true)) {
ng.gotoAndStop(2);
} else {
ng.gotoAndStop(1);
}
};
if (so.data.superjumpspeed != undefined) {
cont.onMouseDown = function () {
if (!cont.hitTest(_xmouse, _ymouse, true)) {
return(undefined);
}
_global.superjumpspeed = so.data.superjumpspeed;
_global.staminaRecharge = so.data.staminaRecharge;
_global.runpower = so.data.runpower;
_global.special = so.data.special;
_global.heights = so.data.heights;
_global.levelStars = so.data.levelStars;
gotoAndStop ("Menu");
var _local2 = 0;
while (_local2 < 10) {
if (_global.special[_local2] == undefined) {
_global.special[_local2] = new Number(0);
}
_local2++;
}
};
cont.onRollOver = function () {
cont.useHandCursor = true;
};
cont.onEnterFrame = function () {
if (cont.hitTest(_xmouse, _ymouse, true)) {
cont.gotoAndStop(2);
} else {
cont.gotoAndStop(1);
}
};
} else {
cont.gotoAndStop(3);
}
Frame 3
var tspecial = 3;
var cspecial = 0;
tutorial_mc.nextLevel = "tutorial";
createWarp(tutorial_mc, p1);
stop();
_level0.cacheAsBitmap = true;
setUpLevel(p1, true);
Frame 4
function unlockLevels() {
var _local3 = 0;
i = 0;
while (i < 10) {
_local3 = _local3 + _global.special[i];
i++;
}
if (_local3 < 15) {
_level0.nogo.checkerleveltrail.gotoAndStop(2);
}
if (_local3 < 20) {
_level0.nogo.desertleveltrail.gotoAndStop(2);
_level0.desertleveldecor.gotoAndStop(2);
_level0.nogo.invisiwall.gotoAndStop(1);
}
if (_local3 < 25) {
_level0.nogo.bouncyleveltrail.gotoAndStop(2);
}
if (_local3 < 35) {
_level0.nogo.bosstrail.gotoAndStop(2);
_level0.cloudlandwarp.gotoAndStop(2);
_level0.fog.gotoAndStop(2);
}
if (_local3 >= 7) {
cloud_txt.text = String(("You just need " + String(15 - _local3)) + " more stars to unlock a new level!");
}
if (_local3 >= 15) {
cloud_txt.text = "Great, you've unlocked a level! Keep collecting stars!";
}
if (_local3 >= 20) {
cloud_txt.text = "A desert came up out of nowhere just west of here...";
}
if (_local3 >= 25) {
cloud_txt.text = "Things keep appearing out of thin air!";
}
if (_local3 >= 30) {
cloud_txt.text = "Today's a perfect day for collecting stars.";
}
if (_local3 >= 35) {
cloud_txt.text = "There's something strange about the fog in the east.";
}
if (_local3 >= 45) {
cloud_txt.text = "Wow! You've almost collected every star!";
}
if (_local3 >= 50) {
cloud_txt.text = String(("You've found " + _local3) + "/60 stars!");
}
if (_local3 >= 55) {
cloud_txt.text = String(("Less than " + (60 - _local3)) + "stars to go!");
}
if (_local3 >= 60) {
cloud_txt.text = "Congrats! You found all the stars! You might have OCD... ;)";
}
_root.kongregateStats.submit("Stars", _local3);
}
stop();
music.stop();
music.attachSound("radio.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
stopSnow();
so.data.superjumpspeed = _global.superjumpspeed;
so.data.staminaRecharge = _global.staminaRecharge;
so.data.runpower = _global.runpower;
so.data.special = _global.special;
so.data.heights = _global.heights;
level0.starscollected = Math.floor(_global.special[0]) + 1;
level1.starscollected = Math.floor(_global.special[1]) + 1;
level2.starscollected = Math.floor(_global.special[2]) + 1;
level3.starscollected = Math.floor(_global.special[3]) + 1;
level4.starscollected = Math.floor(_global.special[4]) + 1;
level5.starscollected = Math.floor(_global.special[5]) + 1;
level6.starscollected = Math.floor(_global.special[6]) + 1;
level7.starscollected = Math.floor(_global.special[7]) + 1;
level8.starscollected = Math.floor(_global.special[8]) + 1;
level9.starscollected = Math.floor(_global.special[9]) + 1;
i = 0;
while (i < 10) {
if (_global.special[i] <= 0) {
var clip = eval ("_level0.level" + i);
clip.frame = 1;
}
i++;
}
level0.nextLevel = "Level0";
level1.nextLevel = "Level1";
level2.nextLevel = "Level2";
level3.nextLevel = "Level3";
level4.nextLevel = "Level4";
level5.nextLevel = "Level5";
level6.nextLevel = "Level6";
level7.nextLevel = "Level7";
level8.nextLevel = "Level8";
level9.nextLevel = "Level9";
createWarp(level0, guy);
createWarp(level1, guy);
createWarp(level2, guy);
createWarp(level3, guy);
createWarp(level4, guy);
createWarp(level5, guy);
createWarp(level6, guy);
createWarp(level7, guy);
createWarp(level8, guy);
createWarp(level9, guy);
setUpLevel(guy, true);
unlockLevels();
trace("MENU");
trace((("COLLECTED STARS THUS FAR: " + readyforBoss) + ": ") + _global.levelStars);
Instance of Symbol 65 MovieClip "level1" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level2" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level3" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level6" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level5" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level7" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level8" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level9" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level4" in Frame 4
/* no clip actions */
Instance of Symbol 65 MovieClip "level0" in Frame 4
/* no clip actions */
Frame 5
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
music.stop();
music.attachSound("osaka.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
wind1.overrideSpeed = -0.25;
wind2.overrideSpeed = 0.5;
var levelNumber = 1;
var tspecial = 5;
var cspecial = 0;
setUpLevel(p1, false);
Instance of Symbol 197 MovieClip "scounter" in Frame 5
/* no clip actions */
Frame 6
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
cannon.barrel.startrotation = 45;
music.stop();
music.attachSound("osaka.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
var levelNumber = 2;
var tspecial = 5;
var cspecial = 0;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
Instance of Symbol 241 MovieClip "nogo" in Frame 6
/* no clip actions */
Instance of Symbol 80 MovieClip "star1" in Frame 6
/* no clip actions */
Frame 7
function stopSnow() {
i = 0;
while (i < _level0.flakeIndex.length) {
_level0.flakeIndex[i].removeMovieClip();
i++;
}
}
music.stop();
music.attachSound("jinglebells.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
var levelNumber = 3;
var tspecial = 5;
var cspecial = 0;
c2.barrel.gunpowder = 65;
c2.barrel.startrotation = 45;
c1.barrel.gunpowder = 180;
c1.barrel.endgame = 1;
c1.barrel.startrotation = 80;
c1.barrel.minrotation = 75;
c1.barrel.maxrotation = 95;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
letitsnow = function (origin) {
twidth = 700;
theight = 500;
max_snowsize = 10;
snowflakes = 50;
_level0.flakeIndex = new Array();
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
_level0.flakeIndex.push(t);
t._alpha = 20 + (Math.random() * 60);
t._x = ((-(twidth / 2)) + origin._x) + (Math.random() * twidth);
t._y = ((-(theight / 2)) + origin._y) + (Math.random() * theight);
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (((theight / 2) + _level0.p1._y) + 10)) {
this._y = (_level0.p1._y - (theight / 2)) - 20;
}
if (this._y < (((-(theight / 2)) + _level0.p1._y) - 50)) {
this._y = (_level0.p1._y - (theight / 2)) - 20;
}
if (this._x > (((twidth / 2) + _level0.p1._x) + 20)) {
this._x = ((twidth / 2) + _level0.p1._x) - (Math.random() * twidth);
}
if (this._x < (((-(twidth / 2)) + _level0.p1._x) - 20)) {
this._x = ((twidth / 2) + _level0.p1._x) - (Math.random() * twidth);
}
};
letitsnow(_level0.p1);
Frame 8
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
music.stop();
music.attachSound("bama.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
var levelNumber = 4;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 0;
c1.barrel.minrotation = -130;
c1.barrel.maxrotation = 130;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
Instance of Symbol 197 MovieClip "scounter" in Frame 8
/* no clip actions */
Frame 9
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
music.stop();
music.attachSound("dispersion.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
var levelNumber = 5;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 0;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
Instance of Symbol 309 MovieClip "e1" in Frame 9
/* no clip actions */
Instance of Symbol 197 MovieClip "scounter" in Frame 9
/* no clip actions */
Frame 10
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
c1.barrel.gunpowder = 25;
c1.barrel.startrotation = 0;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
p1.lasty = 350;
scounter.ydist = 150;
mute_bttn.ydist = 328;
Frame 11
music.stop();
music.attachSound("bama.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
var levelNumber = 6;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 0;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
Frame 12
music.stop();
music.attachSound("osaka.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
var levelNumber = 7;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 80;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
_level0.p1.lasty = 300;
_level0.scounter.ydist = 200;
_level0.mute_bttn.ydist = -275;
Instance of Symbol 197 MovieClip "scounter" in Frame 12
/* no clip actions */
Frame 13
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
music.stop();
music.attachSound("dispersion.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
var levelNumber = 8;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 80;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
Frame 14
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
music.stop();
music.attachSound("osaka.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
var levelNumber = 9;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 80;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
setUpLevel(p1, false);
Frame 15
stop();
target.nextLevel = 2;
_level0._x = 0;
_level0._y = 0;
music.stop();
music.attachSound("dispersion.mp3");
if (_global.mute == false) {
music.start(0, 9999);
}
var levelNumber = 0;
var tspecial = 5;
var cspecial = 0;
c1.barrel.gunpowder = 50;
c1.barrel.startrotation = 80;
c1.barrel.minrotation = -90;
c1.barrel.maxrotation = 80;
nogo.m1.pointrefs = new Array();
nogo.m1.pointrefs.push(nogo.m1a);
nogo.m1.actreq = true;
nogo.m2.pointrefs = new Array();
nogo.m2.pointrefs.push(nogo.m2a);
nogo.m2.speed = 3;
nogo.m3.pointrefs = new Array();
nogo.m3.pointrefs.push(nogo.m3a);
nogo.m3.speed = 1.5;
setUpLevel(p1, false);
p1.lastx = 350;
p1.lasty = 300;
scounter.xdist = -350;
scounter.ydist = 200;
mute_bttn.ydist = -275;
mute_bttn.xdist = 328;
Frame 16
stop();
trace("SPECIAL MENU");
_level0._x = 0;
_level0._y = 0;
checkpoint = xx;
setUpLevel(p1, false);
Frame 17
_level0.stop();
trace("HERE");
Symbol 6 MovieClip Frame 1
this.onEnterFrame = function () {
loader_txt.text = Math.round((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100) + "%";
sunny._y = 640 - Math.round((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 450);
};
var points = new Number(0);
bar_mc.onPress = function () {
bar_mc.gotoAndStop(2);
bar_mc._x = 650 - (600 * Math.random());
bar_mc._y = 450 - (400 * Math.random());
bar_mc._xscale = (Math.random() * 200) + 100;
bar_mc._yscale = bar_mc._xscale;
points++;
points_txt.text = String(points);
};
Symbol 452 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local28 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
_global.mute = true;
}, ad_finished:function () {
_level0.gotoAndStop(17);
_global.mute = false;
if (_global.mute == false) {
this.clip.music.start(0, 9999);
}
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local28);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local25 = 11000;
var _local20 = options.ad_timeout;
if (options.skip) {
_local20 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local16 = _getRes(options);
var _local6 = _local16[0];
var _local15 = _local16[1];
mc._x = _local6 * 0.5;
mc._y = _local15 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local6 * -0.5;
chk._y = _local15 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local8._visible = false;
delete options.no_progress_bar;
} else {
_local8._x = 10;
_local8._y = _local15 - 20;
}
var _local24 = options.color;
delete options.color;
var _local22 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local7 = _local8.createEmptyMovieClip("_outline", 1);
_local7.beginFill(_local22);
_local7.moveTo(0, 0);
_local7.lineTo(_local6 - 20, 0);
_local7.lineTo(_local6 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
_local7.endFill();
var _local5 = _local8.createEmptyMovieClip("_inside", 2);
_local5.beginFill(_local24);
_local5.moveTo(0, 0);
_local5.lineTo(_local6 - 20, 0);
_local5.lineTo(_local6 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
_local5._xscale = 0;
var _local9 = _local8.createEmptyMovieClip("_outline", 3);
_local9.lineStyle(0, _local26, 100);
_local9.moveTo(0, 0);
_local9.lineTo(_local6 - 20, 0);
_local9.lineTo(_local6 - 20, 10);
_local9.lineTo(0, 10);
_local9.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local20;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 453 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 454 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.1 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 455 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 456 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 457 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 458 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 459 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 460 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 461 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
this.cacheAsBitmap = true;
Symbol 47 MovieClip Frame 2
_level0.sfx.attachSound("woosh.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
Symbol 47 MovieClip Frame 21
stop();
Symbol 47 MovieClip Frame 26
gotoAndStop (1);
Symbol 47 MovieClip Frame 27
trace("WENT TO AND PLAYED DIE");
this.cacheAsBitmap = false;
_level0.sfx.attachSound("death.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
Symbol 47 MovieClip Frame 91
this.cacheAsBitmap = true;
this.gotoAndStop(1);
this.dead = false;
this._x = _level0.checkpoint._x;
this._y = _level0.checkpoint._y;
this.xspeed = 0;
this.yspeed = 0;
for (var name in _level0.nogo) {
if (_level0._currentframe == 4) {
return(undefined);
}
if (typeof(_level0.nogo[name]) == "movieclip") {
_level0.nogo[name].gotoAndStop(1);
}
}
_level.unlockLevels();
Symbol 47 MovieClip Frame 156
this._x = _level0.checkpoint._x;
this._y = _level0.checkpoint._y;
this.xspeed = 0;
this.yspeed = 0;
this.dead = false;
this.gotoAndStop(1);
for (var name in _level0.nogo) {
if (_level0._currentframe == 4) {
return(undefined);
}
if (typeof(_level0.nogo[name]) == "movieclip") {
_level0.nogo[name].gotoAndStop(1);
trace(_level0.nogo[name]._currentframe);
}
}
_level.unlockLevels();
Symbol 47 MovieClip Frame 201
this._x = _level0.checkpoint._x;
this._y = _level0.checkpoint._y;
this.xspeed = 0;
this.yspeed = 0;
this.dead = false;
this.gotoAndStop(1);
_level.unlockLevels();
Symbol 51 MovieClip [mute] Frame 1
this.onPress = function () {
if (_global.mute == false) {
_global.mute = true;
_level0.music.stop();
this.gotoAndStop(3);
music.stop();
sfx.stop();
} else {
_global.mute = false;
_level0.music.start(0, 9999);
this.gotoAndStop(2);
}
};
Symbol 51 MovieClip [mute] Frame 2
stop();
Symbol 51 MovieClip [mute] Frame 3
stop();
Symbol 63 MovieClip Frame 1
stop();
_level0.makeMeAStar(this);
Symbol 63 MovieClip Frame 48
stop();
Symbol 71 MovieClip Frame 1
this._visible = false;
Symbol 76 MovieClip Frame 1
stop();
_level0.makeMeAStar(this);
Symbol 76 MovieClip Frame 48
stop();
Symbol 80 MovieClip Frame 1
stop();
_level0.makeMeAStar(this);
Symbol 80 MovieClip Frame 48
stop();
Symbol 82 MovieClip Frame 1
this.dead = false;
this.power = 0.1;
this.xspeed = 0;
this.yspeed = 0;
this.jump = true;
this.gravity = 0.75;
this.wind = 0;
this.friction = 0.95;
this.lastx = 350;
this.lasty = 200;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (Math.abs(_level0.p1._x - this._x) < 150) {
if (((this.jump == true) && ((_level0.p1._y - this._y) < -40)) && ((_level0.p1._y - this._y) > -250)) {
this.yspeed = -10;
this.jump = false;
}
if ((this.xspeed > 0) && ((_level0.p1._x - this._x) > 0)) {
this.xspeed = this.xspeed + this.power;
}
if ((this.xspeed < 0) && ((_level0.p1._x - this._x) < 0)) {
this.xspeed = this.xspeed + this.power;
}
if (this.yspeed <= 0) {
while (_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true)) {
this._y = this._y + 1;
this.yspeed = 0;
}
}
}
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.xspeed = 0;
}
this.power = this.power * -1;
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.xspeed = 0;
}
this.power = this.power * -1;
}
};
Symbol 87 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
if (!this.extraboost) {
this.extraboost = 20;
}
this.onEnterFrame = function () {
if (this.hitTest(_level0.guy._x, (_level0.guy._y + (_level0.guy._height / 2)) + 1, true)) {
_level0.sfx.attachSound("bouncybox.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
this.gotoAndPlay(2);
_level0.guy.floating = false;
_level0.guy.jump = false;
_level0.guy.gravity = _global.gravity;
_level0.guy.yspeed = this.extraboost * -1;
_level0.guy.floatStamina = _level0.guy.staminaRecharge;
if (Key.isDown(38)) {
_level0.guy.floatStamina = 0;
}
}
};
Symbol 99 MovieClip Frame 2
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true)) {
_level0.p1.floating = false;
_level0.p1.jump = false;
_level0.p1.gravity = _global.gravity;
_level0.p1.yspeed = this.extraboost * -1;
}
};
Symbol 99 MovieClip Frame 10
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
Symbol 100 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_level0.guy) && (_level0.guy.dead == false)) {
_level0.music.stop();
_level0.gotoAndStop(16);
}
};
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
this.holdtesting = 0;
this.hitArea = this.ha;
this.hitArea._visible = false;
this.active = false;
if (!this.endgame) {
this.endgame = 2;
}
if (!this.gunpowder) {
this.gunpowder = 35;
}
if (!this.minrotation) {
this.minrotation = -70;
}
if (!this.maxrotation) {
this.maxrotation = 110;
}
if (!this.startrotation) {
this.startrotation = -20;
}
this._rotation = this.startrotation;
if (this.endgame == 1) {
this.arrow_mc._visible = true;
} else {
this.arrow_mc._visible = false;
}
this.const = (75 * this._parent._xscale) / 100;
this.onEnterFrame = function () {
if ((this.hitArea.hitTest(_level0.p1._x, _level0.p1._y, true) && (_level0.p1.dead == false)) && (this.holdtesting <= 0)) {
_level0.p1._visible = false;
_level0.p1.dead = true;
var _local3 = (this._parent._x + this._x) + (const * Math.cos(((this._rotation - 118) / 180) * Math.PI));
var _local5 = (this._parent._y + this._y) + (const * Math.sin(((this._rotation - 118) / 180) * Math.PI));
var _local7 = _level0.p1._x - _local3;
var _local6 = _level0.p1._y - _local5;
var holder = this;
this.myTweenx = new mx.transitions.Tween(_level0.p1, "_x", mx.transitions.easing.None.easeNone, _level0.p1._x, _local3, 0.5, true);
this.myTweenx.onMotionFinished = function () {
holder.active = true;
};
this.myTweeny = new mx.transitions.Tween(_level0.p1, "_y", mx.transitions.easing.None.easeNone, _level0.p1._y, _local5, 0.5, true);
this.myTweeny.onMotionFinished = function () {
};
this.myTweenx2 = new mx.transitions.Tween(_level0.scounter, "_x", mx.transitions.easing.None.easeNone, _level0.scounter._x, _level0.scounter._x - _local7, 0.5, true);
this.myTweenx2.onMotionFinished = function () {
};
this.myTweeny2 = new mx.transitions.Tween(_level0.scounter, "_y", mx.transitions.easing.None.easeNone, _level0.scounter._y, _level0.scounter._y - _local6, 0.5, true);
this.myTweeny2.onMotionFinished = function () {
};
} else {
this.holdtesting--;
}
if (this.active == true) {
if (Key.isDown(39)) {
if ((this._rotation + 3) > this.maxrotation) {
} else {
this._rotation = this._rotation + 3;
_level0.p1._x = (this._parent._x + this._x) + (const * Math.cos(((this._rotation - 118) / 180) * Math.PI));
_level0.p1._y = (this._parent._y + this._y) + (const * Math.sin(((this._rotation - 118) / 180) * Math.PI));
}
}
if (Key.isDown(40)) {
}
if (Key.isDown(37)) {
if ((this._rotation - 3) < this.minrotation) {
} else {
this._rotation = this._rotation + -3;
_level0.p1._x = (this._parent._x + this._x) + (const * Math.cos(((this._rotation - 118) / 180) * Math.PI));
_level0.p1._y = (this._parent._y + this._y) + (const * Math.sin(((this._rotation - 118) / 180) * Math.PI));
}
}
if (Key.isDown(32)) {
this.active = false;
_level0.sfx.attachSound("endlevel.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
_level0.music.stop();
_level0.music.attachSound("cannon.mp3");
if (_global.mute == false) {
_level0.music.start();
}
_level0.p1._visible = true;
_level0.p1.dead = false;
_level0.p1.xspeed = Math.cos(((this._rotation - 118) / 180) * Math.PI) * this.gunpowder;
_level0.p1.yspeed = Math.sin(((this._rotation - 118) / 180) * Math.PI) * this.gunpowder;
var _local4 = (90 * this._parent._xscale) / 100;
_level0.p1._x = _level0.p1._x + (Math.cos(((this._rotation - 118) / 180) * Math.PI) * _local4);
_level0.p1._y = _level0.p1._y + (Math.sin(((this._rotation - 118) / 180) * Math.PI) * _local4);
this.holdtesting = 30;
if (this.endgame == 2) {
trace("GAME OVER");
_level0.p1.dead = true;
var holder = this;
this.textAppeared = false;
_level0.counter = 75;
_level0.onEnterFrame = function () {
_level0.p1.yspeed = _level0.p1.yspeed + 1;
_level0.p1._x = _level0.p1._x + _level0.p1.xspeed;
_level0.p1._y = _level0.p1._y + _level0.p1.yspeed;
_level0.counter--;
if (_level0.counter < 0) {
_level0.cartoon_mc.removeMovieClip();
_level0.mc.removeMovieClip();
_level0.gotoAndStop("Menu");
_level0._x = 0;
_level0._y = 0;
}
if ((_level0.counter <= 50) && (holder.textAppeared == false)) {
_level0.attachMovie("cartoon", "cartoon_mc", _level0.getNextHighestDepth());
_level0.cartoon_mc.onEnterFrame = function () {
this._x = _level0.p1._x;
this._y = _level0.p1._y;
};
if (_global.special[_level0.levelNumber] < (_level0.cspecial + 1)) {
_global.special[_level0.levelNumber] = _level0.cspecial + 1;
}
holder.textAppeared = true;
_level0.mc.onEnterFrame = function () {
this._x = _level0.p1._x;
this._y = _level0.p1._y;
};
}
};
}
}
}
if (_level0.p1.dead == true) {
_level0._x = _level0._x - (_level0.p1._x - _level0.p1.lastx);
_level0._y = _level0._y - (_level0.p1._y - _level0.p1.lasty);
_level0.p1.lastx = _level0.p1._x;
_level0.p1.lasty = _level0.p1._y;
}
};
Symbol 130 MovieClip Frame 1
this._visible = false;
Symbol 147 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1)) {
_level0.sfx.attachSound("checkpoint.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
this.gotoAndPlay(2);
_level0.checkpoint.gotoAndStop(1);
_level0.checkpoint = this;
}
};
Symbol 147 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 147 MovieClip Frame 16
stop();
Symbol 156 MovieClip Frame 6
this.gotoAndPlay(Math.ceil(Math.random() * 109) + 6);
Symbol 163 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true)) {
this.gotoAndPlay(2);
}
};
Symbol 163 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 173 MovieClip Frame 1
this.speed = (Math.random() * 1.5) + 1.25;
if (this.overrideSpeed) {
this.speed = this.overrideSpeed;
}
this.initial_y = this._y;
this.goingup = false;
if (!this.amplitude) {
this.amplitude = 100;
}
this.onEnterFrame = function () {
if (this.goingup == true) {
this._y = this._y - this.speed;
if (this._y < (initial_y - amplitude)) {
this.goingup = false;
}
} else {
this._y = this._y + this.speed;
if (this._y > initial_y) {
this.goingup = true;
}
}
};
Symbol 174 MovieClip Frame 1
a1.amplitude = 250;
a2.amplitude = 75;
a3.amplitude = 50;
a4.overrideSpeed = 2;
r1.overrideSpeed = -4;
b1.amplitude = 50;
b2.amplitude = 50;
b3.amplitude = 50;
b4.amplitude = 50;
b5.amplitude = 50;
var i = 1;
while (i < 6) {
var clip = eval ("this.b" + i);
clip.overrideSpeed = (Math.random() * 1) + 1.25;
i++;
}
this.onEnterFrame = function () {
if (((_level0.p1.dead == false) && (this.hitTest(_level0.p1._x, _level0.p1._y + (_level0.p1._height / 2), true))) && (_level0.nogo.hitTest(_level0.p1._x, _level0.p1._y - (_level0.p1._height / 2), true))) {
_level0.p1.gotoAndPlay("squish");
_level0.p1.dead = true;
}
if (((_level0.p1.dead == false) && (this.hitTest(_level0.p1._x, _level0.p1._y - (_level0.p1._height / 2), true))) && (_level0.nogo.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 6, true))) {
_level0.p1.gotoAndPlay("squish");
_level0.p1.dead = true;
}
if (((_level0.p1.dead == false) && (this.hitTest(_level0.p1._x, _level0.p1._y + (_level0.p1._height / 2), true))) && (this.hitTest(_level0.p1._x, _level0.p1._y - (_level0.p1._height / 2), true))) {
_level0.p1.gotoAndPlay("squish");
_level0.p1.dead = true;
}
};
Symbol 179 MovieClip Frame 1
stop();
if (!this.extraboost) {
this.extraboost = 20;
}
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true)) {
_level0.sfx.attachSound("bouncybox.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
this.gotoAndPlay(2);
_level0.p1.floating = false;
_level0.p1.jump = false;
_level0.p1.gravity = _global.gravity;
_level0.p1.yspeed = this.extraboost * -1;
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
if (Key.isDown(38)) {
_level0.p1.floatStamina = 0;
}
}
};
Symbol 179 MovieClip Frame 2
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true)) {
_level0.p1.floating = false;
_level0.p1.jump = false;
_level0.p1.gravity = _global.gravity;
_level0.p1.yspeed = this.extraboost * -1;
}
};
Symbol 179 MovieClip Frame 10
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
Symbol 185 MovieClip Frame 1
Symbol 186 MovieClip Frame 1
if (!this.speed) {
this.speed = -0.3;
}
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true)) {
_level0.p1.xspeed = _level0.p1.xspeed + this.speed;
}
};
Symbol 191 MovieClip Frame 1
j2.extraboost = 35;
j3.extraboost = 30;
j4.extraboost = 36;
j5.extraboost = 40;
j6.extraboost = 15;
s1.speed = 0.15;
s2.speed = -0.2;
s3.speed = 0.1;
s4.speed = 0.15;
Symbol 195 MovieClip Frame 1
var holder = this;
trace(this);
var myListener = new Object();
myListener.onMouseDown = function () {
if ((Math.abs(holder._xmouse) < 55) && (Math.abs(holder._ymouse) < 15)) {
Mouse.removeListener(this);
_level0.gotoAndStop("Menu");
}
};
Mouse.addListener(myListener);
this.onRollOver = function () {
this.useHandCursor = true;
};
Symbol 200 MovieClip Frame 1
this._visible = false;
Symbol 205 MovieClip Frame 1
this.pointrefs[0]._visible = false;
if (!this.speed) {
this.speed = 1.5;
}
if (!this.speedinseconds) {
this.speedinseconds = true;
}
if (!this.actreq) {
this.actreq = false;
}
if (this.distancespeed) {
}
if ((this.pointrefs.length == 1) && (this.actreq == false)) {
this.pointrefs[0]._visible = false;
var myTweenx = (new mx.transitions.Tween(this, "_x", mx.transitions.easing.None.easeNone, this._x, this.pointrefs[0]._x, this.speed, this.speedinseconds));
myTweenx.onMotionFinished = function () {
myTweenx.yoyo();
};
var myTweeny = (new mx.transitions.Tween(this, "_y", mx.transitions.easing.None.easeNone, this._y, this.pointrefs[0]._y, this.speed, this.speedinseconds));
myTweeny.onMotionFinished = function () {
myTweeny.yoyo();
};
}
this.p1hit = false;
this.preventHit = 0;
this.tweening = false;
this.onEnterFrame = function () {
if ((((this.actreq == true) && (this.tweening == false)) && (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true))) && (!Key.isDown(38))) {
var thisMovieClip = this;
var myTweenx = (new mx.transitions.Tween(this, "_x", mx.transitions.easing.None.easeNone, this._x, this.pointrefs[0]._x, this.speed, this.speedinseconds));
myTweenx.onMotionFinished = function () {
myTweenx.yoyo();
myTweenx.onMotionFinished = function () {
thisMovieClip.tweening = false;
};
};
this.tweening = true;
var myTweeny = (new mx.transitions.Tween(this, "_y", mx.transitions.easing.None.easeNone, this._y, this.pointrefs[0]._y, this.speed, this.speedinseconds));
myTweeny.onMotionFinished = function () {
myTweeny.yoyo();
myTweeny.onMotionFinished = function () {
};
};
}
if (this.p1hit == false) {
if (this.preventHit > 0) {
this.preventHit--;
return(undefined);
}
if (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true) && (!Key.isDown(38))) {
while (this.hitTest(_level0.p1._x, (_level0.p1._y + (_level0.p1._height / 2)) + 1, true)) {
_level0.p1._y--;
}
this.p1hitlocx = this._x - _level0.p1._x;
this.p1hitlocy = this._y - _level0.p1._y;
this.p1hit = true;
_level0.p1.xspeed = _level0.p1.xspeed * 0.5;
}
} else {
myTweenx.stop();
myTweenx.nextFrame();
myTweeny.stop();
myTweeny.nextFrame();
this.xspeed = (this._x - _level0.p1._x) - this.p1hitlocx;
this.yspeed = (this._y - _level0.p1._y) - this.p1hitlocy;
_level0.p1._x = _level0.p1._x + this.xspeed;
_level0.p1._y = _level0.p1._y + this.yspeed;
myTweenx.prevFrame();
myTweenx.resume();
myTweeny.prevFrame();
myTweeny.resume();
_level0.gravity = 0;
this.p1hitlocx = this.p1hitlocx - _level0.p1.xspeed;
if (Key.isDown(38)) {
this.p1hit = false;
_level0.p1.yspeed = _level0.p1.jumpspeed * -1;
_level0.gravity = _global.gravity;
}
if (Math.abs(this.p1hitlocx) > ((this._width / 2) + 5)) {
_level0.gravity = _global.gravity;
this.p1hit = false;
this.preventHit = 15;
_level0.p1.superjump = true;
if (_level0.p1.xspeed > 0) {
_level0.p1._x = _level0.p1._x + (_level0.p1.power * 25);
_level0.p1.xspeed = _level0.p1.xspeed + this.xspeed;
_level0.p1.yspeed = _level0.p1.yspeed + this.yspeed;
} else {
_level0.p1._x = _level0.p1._x - (_level0.p1.power * 25);
_level0.p1.xspeed = _level0.p1.xspeed + this.xspeed;
_level0.p1.yspeed = _level0.p1.yspeed + this.yspeed;
}
}
}
};
Symbol 209 MovieClip Frame 1
if (!this.speed) {
this.speed = (Math.random() * 2) + 2;
}
this.onEnterFrame = function () {
this._rotation = this._rotation + this.speed;
};
Symbol 240 MovieClip Frame 1
stop();
_level0.allActionBox(this);
Symbol 240 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 240 MovieClip Frame 24
stop();
Symbol 241 MovieClip Frame 1
s1.speed = 0.5;
Symbol 243 MovieClip Frame 1
this.dead = false;
this.power = 0.1;
this.xspeed = 0;
this.yspeed = 0;
this.jump = true;
this.gravity = 0.75;
this.wind = 0;
this.friction = 0.95;
this.lastx = 350;
this.lasty = 200;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (Math.abs(_level0.p1._x - this._x) < 200) {
if ((this.jump == true) && ((_level0.p1._y - this._y) < -40)) {
this.yspeed = -10;
this.jump = false;
}
if ((this.xspeed > 0) && ((_level0.p1._x - this._x) > 0)) {
this.xspeed = this.xspeed + this.power;
}
if ((this.xspeed < 0) && ((_level0.p1._x - this._x) < 0)) {
this.xspeed = this.xspeed + this.power;
}
if (this.yspeed <= 0) {
while (_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true)) {
this._y = this._y + 1;
this.yspeed = 0;
}
}
}
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.xspeed = 0;
}
this.power = this.power * -1;
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.xspeed = 0;
}
this.power = this.power * -1;
}
};
Symbol 248 MovieClip Frame 1
this.count = 0;
this.onEnterFrame = function () {
this.count--;
if (this.count <= 0) {
this.badguycount++;
var _local2 = 45;
_level0.e1.attachMovie("slider_bad_guy", String(getTimer()), _level0.e1.getNextHighestDepth(), {_x:this._x, _y:this._y, _xscale:_local2, _yscale:_local2});
this.count = 250;
}
};
Symbol 256 MovieClip Frame 1
this._visible = false;
Symbol 259 MovieClip Frame 1
j1.extraboost = 35;
j2.extraboost = 35;
j4.extraboost = 25;
j6.extraboost = 35;
j7.extraboost = 25;
Symbol 276 MovieClip Frame 91
_level0.sfx.attachSound("snowball.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
Symbol 284 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1._x, (_level0.p1._y - (_level0.p1._height / 2)) - 1, true)) {
this.gotoAndPlay(2);
_level0.p1.jump = true;
_level0.gravity = _global.gravity;
_level0.p1.floatStamina = _level0.p1.staminaRecharge;
_level0.sfx.attachSound("breakbox.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
}
};
Symbol 284 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 284 MovieClip Frame 25
delete this.onEnterFrame;
Symbol 284 MovieClip Frame 26
stop();
Symbol 287 MovieClip Frame 1
j1.extraboost = 40;
j2.extraboost = 50;
Symbol 291 MovieClip Frame 1
this.dead = false;
if (!this.power) {
this.power = -0.25;
}
this.xspeed = 0;
this.yspeed = 0;
this.jump = true;
this.gravity = 0.75;
this.wind = 0;
this.friction = 0.95;
this.originalx = this._x;
this.originaly = this._y;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (Math.abs(_level0.p1._x - this._x) < 50) {
if (((this.jump == true) && ((_level0.p1._y - this._y) < -40)) && (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this.yspeed = -10;
this.jump = false;
}
}
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.power = this.power * -1;
}
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.power = this.power * -1;
}
}
if ((_level0.pit.hitTest(this._x, this._y, true) || (Math.abs(this._x - _level0.p1._x) > 500)) || (Math.abs(this._y - _level0.p1._y) > 250)) {
if (Math.abs(this.originalx - _level0.p1._x) > 500) {
if (Math.abs(this.originalx - _level0.p1._x) < 600) {
this._x = this.originalx;
this._y = this.originaly;
}
}
}
this.count--;
};
Symbol 293 MovieClip Frame 1
this.goingup = true;
if (Math.random() > 0.5) {
this.goingup = false;
}
this.count = 0;
this.speed = (Math.random() * 5) + 5;
this.onEnterFrame = function () {
if (this.count > 0) {
this.count--;
return(undefined);
}
if (this.goingup == true) {
this._y = this._y - this.speed;
if (this._y < -80) {
this.count = 100;
this.goingup = false;
}
} else {
this._y = this._y + this.speed;
if (this._y > 80) {
this.count = 100;
this.goingup = true;
}
}
};
Symbol 295 MovieClip Frame 1
badguy1.power = 0.3;
badguy2.power = 0.3;
badguy3.power = -0.2;
badguy4.power = -0.2;
Symbol 301 MovieClip Frame 1
j1.extraboost = 43;
j2.extraboost = 1;
j3.extraboost = 1;
j4.extraboost = 1;
j5.extraboost = 1;
j6.extraboost = 42;
j7.extraboost = 35;
Symbol 304 MovieClip Frame 1
this.dead = false;
this.power = -0.25;
this.xspeed = 0;
this.yspeed = 0;
this.jump = true;
this.gravity = 0.75;
this.wind = 0;
this.friction = 0.95;
this.originalx = this._x;
this.originaly = this._y;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.power = this.power * -1;
}
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.power = this.power * -1;
}
}
if (_level0.pit.hitTest(this._x, this._y, true) || (Math.abs(this._x - _level0.p1._x) > 500)) {
if (Math.abs(this.originalx - _level0.p1._x) > 500) {
if (Math.abs(this.originalx - _level0.p1._x) < 600) {
this._x = this.originalx;
this._y = this.originaly;
this.power = -0.25;
}
}
}
this.count--;
};
Symbol 306 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 308 MovieClip [level8_enemies] Frame 1
this.dead = false;
if (!this.ipower) {
this.ipower = -0.25;
}
this.power = this.ipower;
this.xspeed = 0;
this.yspeed = 0;
this.jump = true;
if (!this.jumpspeed) {
this.jumpspeed = (Math.random() * -10) - 10;
}
if (!this.jumppause) {
this.jumppause = (Math.random() * 100) + 100;
}
this.gravity = 0.75;
this.wind = 0;
this.friction = 0.95;
this.originalx = this._x;
this.originaly = this._y;
this.count = 100;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this.count--;
if (this.count <= 0) {
this.yspeed = this.jumpspeed;
this.jump = false;
this.count = this.jumppause;
}
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
if (this.yspeed <= 0) {
while (_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true)) {
this._y = this._y + 1;
this.yspeed = 0;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.power = this.power * -1;
}
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.power = this.power * -1;
}
}
if (_level0.pit.hitTest(this._x, this._y, true) || (Math.abs(this._x - _level0.p1._x) > 500)) {
if (Math.abs(this.originalx - _level0.p1._x) > 500) {
if (Math.abs(this.originalx - _level0.p1._x) < 600) {
this._x = this.originalx;
this._y = this.originaly;
this.power = this.ipower;
}
}
}
this.count--;
};
Symbol 309 MovieClip Frame 1
bady1.ipower = 1E-5;
bady1.jumpspeed = -15;
bady1.jumppause = 150;
Symbol 312 MovieClip Frame 1
this._visible = false;
Symbol 318 MovieClip Frame 1
this.hitbox._visible = false;
this.onEnterFrame = function () {
if (this.hitbox.hitTest(_level0.p1._x, _level0.p1._y, false)) {
this.comment_txt.text = "Yes, you'll fit...";
}
};
Symbol 321 MovieClip Frame 1
stop();
this._rotation = Math.random() * 360;
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1)) {
this.gotoAndPlay(2);
delete this.onEnterFrame;
_level0.sfx.attachSound("star.mp3");
if (_global.mute == false) {
_level0.sfx.start();
}
}
};
Symbol 321 MovieClip Frame 48
stop();
Symbol 332 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 337 MovieClip [slider_bad_guy] Frame 1
this.dead = false;
this.power = 0.25;
this.xspeed = 0;
this.yspeed = 0;
this.jump = true;
this.gravity = 0.75;
this.wind = 0;
this.friction = 0.95;
this.originalx = this._x;
this.originaly = this._y;
this.count = 1000;
this.onEnterFrame = function () {
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
if (Math.abs(_level0.p1._x - this._x) < 200) {
if (((this.jump == true) && ((_level0.p1._y - this._y) < -40)) && (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this.yspeed = -10;
this.jump = false;
}
}
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.power = this.power * -1;
}
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.power = this.power * -1;
}
}
if (_level0.pit.hitTest(this._x, this._y, true) || (this.count < 1)) {
this.removeMovieClip();
trace("REMOVED");
}
this.count--;
};
Symbol 338 MovieClip Frame 1
bg1.power = -0.25;
bg2.power = -0.25;
bad1.ipower = 1E-6;
bad1.jumpspeed = -1 * ((Math.random() * 10) + 17);
bad1.jumppause = (Math.random() * 25) + 150;
bad2.ipower = 1E-6;
bad2.jumpspeed = -1 * ((Math.random() * 10) + 17);
bad2.jumppause = (Math.random() * 25) + 150;
bad3.ipower = 1E-6;
bad3.jumpspeed = -1 * ((Math.random() * 10) + 17);
bad3.jumppause = (Math.random() * 25) + 150;
bad4.ipower = 1E-6;
bad4.jumpspeed = -1 * ((Math.random() * 10) + 17);
bad4.jumppause = (Math.random() * 25) + 150;
bad5.ipower = 1E-6;
bad5.jumpspeed = -1 * ((Math.random() * 10) + 17);
bad5.jumppause = (Math.random() * 25) + 150;
Symbol 341 MovieClip Frame 1
if (this.rotspeed == undefined) {
this.rotspeed = 4;
}
this.onEnterFrame = function () {
this._rotation = this._rotation + this.rotspeed;
};
Symbol 342 MovieClip Frame 1
j1.extraboost = 65;
block1.rotspeed = 3;
block2.rotspeed = 4;
block3.rotspeed = 5;
block4.rotspeed = 3;
block5.rotspeed = -4;
block6.rotspeed = 6;
block7.rotspeed = -2;
block8.rotspeed = -5;
block9.rotspeed = 7;
Symbol 347 MovieClip Frame 1
j1.extraboost = 40;
j2.extraboost = 40;
j3.extraboost = 35;
j7.extraboost = 30;
Symbol 350 MovieClip Frame 1
this.dead = false;
if (!this.ipower) {
this.ipower = 1E-7;
}
this.power = this.ipower;
this.xspeed = 0;
this.yspeed = 0;
this.jump = false;
this.fallen = false;
if (!this.jumpspeed) {
this.jumpspeed = (Math.random() * -10) - 10;
}
if (!this.jumppause) {
this.jumppause = (Math.random() * 100) + 100;
}
this.gravity = 1E-7;
this.wind = 0;
this.friction = 0.95;
this.originalx = this._x;
this.originaly = this._y;
this.realx = this._x;
this.realy = this._y;
this.waiting = false;
this.count = 100;
this.onEnterFrame = function () {
if (((Math.abs(this._x - _level0.p1._x) < 150) && (Math.abs(this._y - _level0.p1._y) < 200)) && (this.fallen == false)) {
this.gravity = 1;
this.jump = true;
this.count = 200;
this.fallen = true;
}
if (_level0.p1.dead == true) {
this.fallen = false;
this.waiting = true;
this.count = 10;
}
if ((_level0.p1.dead == false) && (this.waiting == true)) {
this.waiting = false;
this._x = this.realx;
this._y = this.realy;
}
if (this.fallen == false) {
return(undefined);
}
this.yspeed = this.yspeed + this.gravity;
this.xspeed = this.xspeed + this.wind;
this.xspeed = this.xspeed + this.power;
if (this.yspeed > 10) {
this.yspeed = 10;
}
this.xspeed = this.xspeed * friction;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
this.count--;
if ((this.count <= 0) && (this.jump == true)) {
this.yspeed = this.jumpspeed;
this.jump = false;
this.count = this.jumppause;
}
if (this.yspeed > 0) {
while (_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true)) {
this._y = this._y - 1;
this.yspeed = 0;
this.jump = true;
this.float = false;
this.gravity = 1;
}
}
if (this.yspeed <= 0) {
while (_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true)) {
this._y = this._y + 1;
this.yspeed = 0;
}
}
while ((_level0.nogo.hitTest(this._x + (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x - 1;
if (this.xspeed > 0) {
this.power = this.power * -1;
}
}
while ((_level0.nogo.hitTest(this._x - (this._width / 2), this._y, true) && (!_level0.nogo.hitTest(this._x, this._y - (this._height / 2), true))) && (!_level0.nogo.hitTest(this._x, this._y + (this._height / 2), true))) {
this._x = this._x + 1;
if (this.xspeed < 0) {
this.power = this.power * -1;
}
}
if (_level0.pit.hitTest(this._x, this._y, true) || (Math.abs(this._x - _level0.p1._x) > 500)) {
if (Math.abs(this.originalx - _level0.p1._x) > 500) {
if (Math.abs(this.originalx - _level0.p1._x) < 600) {
this._x = this.originalx;
this._y = this.originaly;
this.power = this.ipower;
}
}
}
this.count--;
};
Symbol 351 MovieClip Frame 1
for (var name in this) {
if ((typeof(this[name]) == "movieclip") && (name.length < 3)) {
this[name].ipower = 1E-6;
}
if ((typeof(this[name]) == "movieclip") && (name.length == 3)) {
this[name].ipower = 1E-6;
this[name].jumpspeed = -1 * ((Math.random() * 6) + 18);
this[name].jumppause = (Math.random() * 25) + 125;
trace(this[name]);
}
if ((typeof(this[name]) == "movieclip") && (name.length == 4)) {
this[name].ipower = 1E-6;
this[name].jumpspeed = -1 * ((Math.random() * 10) + 17);
this[name].jumppause = (Math.random() * 25) + 150;
trace(this[name]);
}
}
joeys.ipower = 0.0001;
Symbol 353 MovieClip Frame 1
for (var name in this) {
if ((typeof(this[name]) == "movieclip") && (name.length < 3)) {
this[name].ipower = 1E-6;
}
}
Symbol 360 MovieClip Frame 1
play();
Symbol 364 MovieClip Frame 1
this.speed = (Math.random() * 1.5) + 1.25;
if (this.overrideSpeed) {
this.speed = this.overrideSpeed;
}
this.initial_y = this._y;
this.goingup = false;
if (!this.amplitude) {
this.amplitude = 100;
}
this.onEnterFrame = function () {
if (this.goingup == true) {
this._y = this._y - this.speed;
if (this._y < (initial_y - amplitude)) {
this.goingup = false;
}
} else {
this._y = this._y + this.speed;
if (this._y > initial_y) {
this.goingup = true;
}
}
};
Symbol 365 MovieClip Frame 1
a1.amplitude = 250;
a2.amplitude = 75;
a3.amplitude = 50;
a4.overrideSpeed = 2;
r1.overrideSpeed = -4;
b1.amplitude = 50;
b2.amplitude = 50;
b3.amplitude = 50;
b4.amplitude = 50;
b5.amplitude = 50;
var i = 1;
while (i < 6) {
var clip = eval ("this.b" + i);
clip.overrideSpeed = (Math.random() * 1) + 1.25;
i++;
}
this.onEnterFrame = function () {
if (((_level0.p1.dead == false) && (this.hitTest(_level0.p1._x, _level0.p1._y + (_level0.p1._height / 2), true))) && (this.hitTest(_level0.p1._x, _level0.p1._y - (_level0.p1._height / 2), true))) {
_level0.p1.gotoAndPlay("squish");
_level0.p1.dead = true;
}
if (((_level0.p1.dead == false) && (this.hitTest(_level0.p1._x, _level0.p1._y + (_level0.p1._height / 2), true))) && (_level0.nogo.hitTest(_level0.p1._x, _level0.p1._y - (_level0.p1._height / 2), true))) {
_level0.p1.gotoAndPlay("squish");
_level0.p1.dead = true;
}
};
Symbol 372 MovieClip Frame 1
play();
Symbol 374 MovieClip Frame 1
j1.extraboost = 25;
j2.extraboost = 20;
j3.extraboost = 20;
Symbol 379 MovieClip Frame 1
j1.extraboost = 45;
j2.extraboost = 35;
j3.extraboost = 25;
s1.speed = -0.3;
s2.speed = 0.3;
s3.speed = -0.25;
Symbol 382 MovieClip Frame 1
a1.power = 0.3;
a2.power = 0.275;
a3.power = 0.325;
Symbol 396 MovieClip Frame 1
this._visible = false;
Symbol 398 MovieClip Frame 1
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_level0.p1) && (_level0.p1.dead == false)) {
_level0.p1.dead = true;
_level0.music.stop();
_level0.attachMovie("credits", "credits_mc", _level0.getNextHighestDepth());
_level0.credits_mc._x = _level0.p1._x;
_level0.credits_mc._y = _level0.p1._y;
}
};
Symbol 403 MovieClip [cartoon] Frame 31
stop();
Symbol 421 MovieClip [credits] Frame 1
_level0.music.stop();
_level0.music.attachSound("credits.mp3");
if (_global.mute == false) {
_level0.music.start();
}
Symbol 421 MovieClip [credits] Frame 1557
_level0.gotoAndStop(2);
_level0.mute_bttn.removeMovieClip();
this.removeMovieClip();
Symbol 429 MovieClip [reverse-cartoon] Frame 30
stop();
Symbol 451 MovieClip Frame 3
_level0.gotoAndStop(2);