Frame 1
stop();
stopAllSounds();
Instance of Symbol 16 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= 327528) {
_root.play();
}
}
Frame 2
stop();
Frame 4
_root._x = 0;
_root._y = 0;
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 55 MovieClip in Frame 4
onClipEvent (enterFrame) {
_yscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.onRelease = function () {
_root.nextFrame();
};
}
}
Instance of Symbol 58 MovieClip in Frame 4
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if ((_root.getBytesLoaded() == _root.getBytesTotal()) && (_alpha < 100)) {
_alpha = (_alpha + 5);
_root.dlText.play();
}
}
Instance of Symbol 65 MovieClip in Frame 4
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=awalkinthepark", "_blank");
}
Instance of Symbol 55 MovieClip in Frame 4
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=awalkinthepark", "_blank");
}
Instance of Symbol 65 MovieClip in Frame 4
on (release) {
getURL ("http://www.arcadetown.com/partner/download.asp?gameid=awalkinthepark", "_blank");
}
Instance of Symbol 69 MovieClip in Frame 4
on (release) {
getURL ("http://www.arcadetown.com/free_content/index.asp", "_blank");
}
Instance of Symbol 73 MovieClip in Frame 4
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=awalkinthepark", "_blank");
}
Instance of Symbol 80 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_y = (_y + ((120 - _y) * 0.2));
} else {
_y = (_y + ((-_y) * 0.2));
}
}
Frame 5
function dog(obj) {
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
if (obj.xSpeed2 == undefined) {
obj.xSpeed2 = 0;
}
_root.platform(obj);
_root.platformRotation(obj);
_root.topStopper(obj);
if (_root.level.hitTest(obj._x, obj._y + obj.height, true) == false) {
obj.a = obj.a * 0.9;
obj.b = obj.b * 0.9;
obj._rotation = obj._rotation * 0.9;
}
_root.physics(obj, 0.3);
obj.xSpeed2 = obj.xSpeed2 + ((obj.xSpeed - obj.xSpeed2) * 0.1);
obj._x = obj._x + obj.xSpeed2;
if (Key.isDown(39)) {
obj.xSpeed = 4;
obj.gotoAndStop(2);
} else if (Key.isDown(37)) {
obj.xSpeed = -4;
obj.gotoAndStop(1);
} else {
obj.xSpeed = 0;
}
if (Key.isDown(38)) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) + 2, true)) {
obj.fallspeed = -10;
obj._y = obj._y - 1;
}
}
if ((obj._y - obj._height) > (_root.levelLimit._y + _root.levelLimit._height)) {
_root.gotoAndStop(_root._currentframe - 1);
obj._x = _root.dogStartX;
obj._y = _root.dogStartY;
_root.man._x = _root.manStartX;
_root.man._y = _root.manStartY;
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = _root.levelLimit._x + _root.levelLimit._width;
}
}
function wheelMan(obj) {
_root.topStopper(obj);
_root.platform(obj);
_root.platformRotation(obj);
if (_root.level.hitTest(obj._x, obj._y + (obj.height / 2), true) == false) {
obj.a = obj.a * 0.9;
obj.b = obj.b * 0.9;
obj._rotation = obj._rotation * 0.9;
}
_root.physics(obj, 0.5);
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
if (obj.xSpeed2 == undefined) {
obj.xSpeed2 = 0;
}
if (obj.ySpeed == undefined) {
obj.ySpeed = 0;
}
if (obj.ySpeed2 == undefined) {
obj.ySpeed2 = 0;
}
dogAngle = (Math.atan2(obj._y - _root.doggie._y, obj._x - _root.doggie._x) * 180) / Math.PI;
if (_root.dragArea.hitTest(obj._x, obj._y, true) == false) {
obj.xSpeed = (_root.doggie._x - obj._x) * 0.2;
obj.ySpeed = (_root.doggie._y - obj._y) * 0.05;
obj.fallspeed = obj.fallspeed * 0.5;
_root.doggie.xSpeed2 = _root.doggie.xSpeed2 - ((_root.doggie._x - obj._x) * 0.003);
_root.doggie.fallspeed = _root.doggie.fallspeed - ((_root.doggie._y - obj._y) * 0.002);
} else {
obj.xSpeed = 0;
obj.ySpeed = 0;
}
obj.ySpeed2 = obj.ySpeed2 + ((obj.ySpeed - obj.ySpeed2) * 0.1);
obj.xSpeed2 = obj.xSpeed2 + ((obj.xSpeed - obj.xSpeed2) * 0.1);
obj._x = obj._x + obj.xSpeed2;
obj._y = obj._y + obj.ySpeed2;
obj._x = obj._x + (obj._rotation * 0.1);
if (_root.level.hitTest(obj._x, obj._y + (obj.height * 2), true) == false) {
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y + (obj.height / 2), true)) {
obj._x = obj._x - x;
}
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y + (obj.height / 2), true)) {
obj._x = obj._x + x;
}
x++;
}
}
if (obj.xSpeed2 > 1) {
obj.gotoAndStop(2);
}
if (obj.xSpeed2 < -1) {
obj.gotoAndStop(1);
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = _root.levelLimit._x + _root.levelLimit._width;
}
}
function physics(obj, weight) {
if (obj.fallspeed == undefined) {
obj.fallspeed = 0;
}
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (_root.level.hitTest(obj._x, obj._y + obj.height, true)) {
obj.fallspeed = 0;
obj.ySpeed2 = 0;
obj.ySpeed = 0;
} else {
obj.fallspeed = obj.fallspeed + weight;
}
obj._y = obj._y + obj.fallspeed;
}
function platform(obj) {
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
if (obj.fallspeed >= 0) {
x = 0;
while (x < obj.height) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) - x, true)) {
obj._y = obj._y - x;
obj.ySpeed = 0;
obj.ySpeed2 = 0;
obj.fallspeed = 0;
}
x++;
}
}
if (_root.level.hitTest(obj._x, obj._y - (obj.height / 2), true) == false) {
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y - (obj.height / 2), true)) {
obj._x = obj._x - x;
obj.xSpeed2 = 0;
}
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y - (obj.height / 2), true)) {
obj._x = obj._x + x;
obj.xSpeed2 = 0;
}
x++;
}
}
}
function platformRotation(obj) {
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
x = 0;
while (x < (obj.height * 2)) {
if (_root.level.hitTest(obj._x - (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.a = x;
}
if (_root.level.hitTest(obj._x + (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.b = x;
}
obj.rotation = (Math.atan2(obj.a - obj.b, (obj._x + obj.width) - (obj._x - obj.width)) * 180) / Math.PI;
obj._rotation = obj._rotation + (((obj.rotation * 2) - obj._rotation) * 0.01);
x++;
}
}
function leach(obj) {
obj._x = _root.man._x;
obj._y = _root.man._y;
obj.clear();
obj.lineStyle(3, 0, 100);
obj.moveTo(0, 0);
obj.lineTo(_root.doggie._x - _root.man._x, _root.doggie._y - _root.man._y);
}
function drag(obj) {
obj._x = _root.doggie._x;
obj._y = _root.doggie._y;
}
function leachPowerUp(obj, length) {
if (((((obj._visible == true) && (obj._x > _root.cam._x)) && (obj._x < (_root.cam._x + _root.cam._width))) && (obj._y < (_root.cam._y + _root.cam._height))) && (obj._y > _root.cam._y)) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if (obj._alpha >= 100) {
if (obj.hitTest(_root.doggie._x, _root.doggie._y, false)) {
_root.leachSize = _root.leachSize + length;
playSound("pickUpSound");
obj.alpha = -10;
_root.doggie.fallspeed = _root.doggie.fallspeed - 3;
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.1);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
}
if (obj._alpha <= 0) {
obj._visible = false;
}
}
}
function camera(obj) {
_root._x = _root._x + (((-obj._x) - _root._x) * 0.1);
_root._y = _root._y + (((-obj._y) - _root._y) * 0.1);
if (_root.restartScreen._alpha < 0) {
obj._x = _root.doggie._x - (obj._width / 2);
obj._y = _root.doggie._y - (obj._height / 2);
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
}
if ((obj._x + obj._width) > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = (_root.levelLimit._x + _root.levelLimit._width) - obj._width;
}
if (obj._y < _root.levelLimit._y) {
obj._y = _root.levelLimit._y;
}
if ((obj._y + obj._height) > (_root.levelLimit._y + _root.levelLimit._height)) {
obj._y = (_root.levelLimit._y + _root.levelLimit._height) - obj._height;
}
}
function point(obj) {
if (((((obj._visible == true) && (obj._x > _root.cam._x)) && (obj._x < (_root.cam._x + _root.cam._width))) && (obj._y < (_root.cam._y + _root.cam._height))) && (obj._y > _root.cam._y)) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if (obj._alpha >= 100) {
if (obj.hitTest(_root.doggie)) {
_root.crackers = _root.crackers + 1;
playSound("crackerSound");
obj.alpha = -10;
obj.stop();
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.1);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
}
if (obj._alpha <= 0) {
obj._visible = false;
}
}
}
function flyhat(obj, power) {
if (((((obj._visible == true) && (obj._x > _root.cam._x)) && (obj._x < (_root.cam._x + _root.cam._width))) && (obj._y < (_root.cam._y + _root.cam._height))) && (obj._y > _root.cam._y)) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if (obj._alpha >= 100) {
if (obj.hitTest(_root.doggie)) {
_root.fly = _root.fly + power;
playSound("pickUpSound");
obj.alpha = -10;
obj.stop();
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.1);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
}
if (obj._alpha <= 0) {
obj._visible = false;
}
}
}
function ball(obj) {
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
if (obj.fallspeed == undefined) {
obj.fallspeed = 0;
}
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
x = 0;
while (x < obj.height) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) - x, true)) {
obj._y = obj._y - x;
obj.fallspeed = obj.fallspeed - (obj.fallspeed * 1.9);
obj.xSpeed = obj.xSpeed * 0.95;
}
if (_root.level.hitTest(obj._x, (obj._y - obj.height) + x, true)) {
obj._y = obj._y + x;
obj.fallspeed = 0;
obj.xSpeed = obj.xSpeed * 0.95;
}
x++;
}
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y, true)) {
obj._x = obj._x - x;
obj._x = obj._x - obj.xSpeed;
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
}
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y, true)) {
obj._x = obj._x + x;
obj._x = obj._x - obj.xSpeed;
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
}
x = x + 2;
}
if (_root.level.hitTest(obj._x - (obj.width * 2), obj._y, true) && (_root.level.hitTest(obj._x + (obj.width * 2), obj._y, true))) {
obj._x = obj._x - obj.xSpeed;
}
if (_root.level.hitTest(obj._x, obj._y + obj.height, true) == false) {
obj.fallspeed = obj.fallspeed + 0.2;
}
obj._y = obj._y + obj.fallspeed;
obj._x = obj._x + obj.xSpeed;
obj._rotation = obj._rotation + obj.xSpeed;
obj.xSpeed = obj.xSpeed * 0.99;
if (_root.doggie.dog.head.hitBox.hitTest(obj._x, obj._y, true)) {
obj.xSpeed = obj.xSpeed + ((obj._x - _root.doggie._x) / 2);
obj.fallspeed = -Math.abs((obj._x - _root.doggie._x) / 5);
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
obj._x = _root.levelLimit._x + _root.levelLimit._width;
}
if (obj._x < _root.levelLimit._x) {
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
obj._x = root.leveLimit._x;
}
}
function bunny(obj) {
_root.topStopper(obj);
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
if (obj.xSpeed2 == undefined) {
obj.xSpeed2 = 0;
}
if (obj.fallspeed == undefined) {
obj.fallspeed = 0;
}
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
if (_root.level.hitTest(obj._x, obj._y + obj.height, true) == false) {
obj.fallspeed = obj.fallspeed + 0.4;
} else {
obj.fallspeed = 0;
x = 0;
while (x < (obj.height * 2)) {
if (_root.level.hitTest(obj._x - (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.a = x;
}
if (_root.level.hitTest(obj._x + (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.b = x;
}
obj.rotation = (Math.atan2(obj.a - obj.b, (obj._x + obj.width) - (obj._x - obj.width)) * 180) / Math.PI;
obj._rotation = obj._rotation + (((obj.rotation * 6) - obj._rotation) * 0.01);
x++;
}
}
if (_root.level.hitTest(obj._x + 100, obj._y, true) || (_root.level.hitTest(obj._x - 100, obj._y, true))) {
obj.xSpeed = 0;
}
x = 0;
while (x < obj.height) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) - x, true)) {
obj._y = obj._y - x;
fallspeed = 0;
}
x++;
}
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y, true)) {
obj._x = obj._x + x;
}
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y, true)) {
obj._x = obj._x - x;
}
x++;
}
obj.xSpeed2 = obj.xSpeed2 + ((obj.xSpeed - obj.xSpeed2) * 0.1);
obj._x = obj._x + obj.xSpeed2;
if (Math.round(obj.xSpeed2) != 0) {
obj.bunny.play();
} else {
obj.bunny.gotoAndStop(1);
}
if (obj.xSpeed2 > 1) {
obj.gotoAndStop(2);
}
if (obj.xSpeed2 < -1) {
obj.gotoAndStop(1);
}
obj._y = obj._y + obj.fallspeed;
if (obj.hitTest(_root.doggie.dog.head.hitBox)) {
if (obj._x > _root.doggie._x) {
obj.xSpeed = 5;
obj.xSpeed2 = 5;
}
if (obj._x < _root.doggie._x) {
obj.xSpeed = -5;
obj.xSpeed2 = -5;
}
obj.fallspeed = obj.fallspeed - 0.4;
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
obj.xSpeed = 5;
obj.xSpeed2 = 5;
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = _root.levelLimit._x + _root.levelLimit._width;
obj.xSpeed = -5;
obj.xSpeed2 = -5;
}
}
function topStopper(obj) {
x = 0;
while (x < obj.height) {
if (_root.topStop.hitTest(obj._x, (obj._y - obj.height) + x, true)) {
obj._y = obj._y + x;
obj.fallspeed = 0;
obj.ySpeed = 0;
obj.ySpeed2 = 0;
}
x++;
}
}
function cageCode(obj) {
if (go == undefined) {
go = false;
}
if (obj.go == false) {
x = 0;
while (x < _root.doggie.width) {
if (obj.hitTest((_root.doggie._x + _root.doggie.width) - x, _root.doggie._y, true)) {
_root.doggie._x = _root.doggie._x - x;
_root.doggie.xSpeed2 = 0;
}
if (obj.hitTest((_root.doggie._x - _root.doggie.width) + x, _root.doggie._y, true)) {
_root.doggie._x = _root.doggie._x + x;
_root.doggie.xSpeed2 = 0;
}
x++;
}
x = 0;
while (x < _root.doggie.height) {
if (obj.hitTest(_root.doggie._x, (_root.doggie._y + _root.doggie.height) - x, true)) {
_root.doggie._y = _root.doggie._y - x;
_root.doggie.ySpeed = 0;
_root.doggie.ySpeed2 = 0;
_root.doggie.fallspeed = 0;
}
if (obj.hitTest(_root.doggie._x, (_root.doggie._y - _root.doggie.height) + x, true)) {
_root.doggie._y = _root.doggie._y - x;
_root.doggie.ySpeed = 0;
_root.doggie.ySpeed2 = 0;
_root.doggie.fallspeed = 0;
}
x++;
}
x = 0;
while (x < _root.man.width) {
if (obj.hitTest((_root.man._x + _root.man.width) - x, _root.man._y, true)) {
_root.man._x = _root.man._x - x;
}
if (obj.hitTest((_root.man._x - _root.man.width) + x, _root.man._y, true)) {
_root.man._x = _root.man._x + x;
}
x++;
}
x = 0;
while (x < _root.man.height) {
if (obj.hitTest(_root.man._x, (_root.man._y + _root.man.height) - x, true)) {
_root.man._y = _root.man._y - x;
_root.man.fallspeed = 0;
_root.man.ySpeed = 0;
_root.man.ySpeed2 = 0;
}
if (obj.hitTest(_root.man._x, (_root.man._y - _root.man.height) + x, true)) {
_root.man._y = _root.man._y + x;
_root.man.fallspeed = 0;
_root.man.ySpeed = 0;
_root.man.ySpeed2 = 0;
}
x++;
}
}
if (_root.buttons == 1) {
if (_root.b1.active == true) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 2) {
if ((_root.b1.active == true) && (_root.b2.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 3) {
if (((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 4) {
if ((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 5) {
if (((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 6) {
if ((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 7) {
if (((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 8) {
if ((((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) && (_root.b8.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 9) {
if (((((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) && (_root.b8.active == true)) && (_root.b9.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 10) {
if ((((((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) && (_root.b8.active == true)) && (_root.b9.active == true)) && (_root.b10.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
}
if (obj.go == true) {
obj._y = obj._y - 0.5;
}
}
function goal(obj) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if ((obj._alpha >= 100) && (_root.crackers >= _root.maxCrackers)) {
if (obj.hitTest(_root.doggie) || (obj.hitTest(_root.man))) {
obj.alpha = -30;
obj.stop();
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.05);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
_root.doggie._alpha = obj._alpha;
_root.man._alpha = obj._alpha;
_root.theLeach._alpha = obj._alpha;
_root.man._xscale = obj._alpha;
_root.man._yscale = obj._alpha;
_root.doggie._xscale = obj._alpha;
_root.doggie._yscale = obj._alpha;
_root.leachSize = _root.leachSize * 0.1;
_root.man._x = _root.man._x + ((obj._x - _root.man._x) * 0.1);
_root.man._y = _root.man._y + ((obj._y - _root.man._y) * 0.1);
_root.doggie._x = _root.doggie._x + ((obj._x - _root.doggie._x) * 0.2);
_root.doggie._y = _root.doggie._y + ((obj._y - _root.doggie._y) * 0.2);
_root.doggie.fallspeed = -1;
_root.man.fallspeed = -1;
_root.man.xSpeed = 0;
_root.man.xSpeed2 = 0;
_root.doggie.xSpeed = 0;
_root.doggie.xSpeed2 = 0;
_root.man.ySpeed = 0;
_root.man.ySpeed2 = 0;
} else if (_root.crackers >= _root.maxCrackers) {
obj._alpha = 100;
} else {
obj._alpha = 50;
}
if (obj._alpha <= -10) {
obj._visible = false;
_root.gotoAndStop(_root._currentframe + 1);
}
}
function button(obj) {
if (((((((((((obj.hitTest(_root.bunny1) || (obj.hitTest(_root.bunny2))) || (obj.hitTest(_root.bunny3))) || (obj.hitTest(_root.bunny4))) || (obj.hitTest(_root.bunny5))) || (obj.hitTest(_root.bunny6))) || (obj.hitTest(_root.bunny7))) || (obj.hitTest(_root.bunny8))) || (obj.hitTest(_root.bunny9))) || (obj.hitTest(_root.bunny10))) || (obj.hitTest(_root.doggie))) || (obj.hitTest(_root.man))) {
obj.gotoAndStop(2);
obj.active = true;
trace((obj._name + " ") + obj.active);
} else {
obj.gotoAndStop(1);
obj.active = false;
}
}
function playSound(sName, ranNr) {
_root.soundFX["sound" + sName] = new Sound(soundFX);
if ((ranNr != undefined) && (ranNr != 0)) {
_root.soundFX["sound" + sName].attachSound(sName + (1 + random(ranNr)));
} else {
_root.soundFX["sound" + sName].attachSound(sName);
}
_root.soundFX["sound" + sName].setVolume(SFXVolume * 100);
_root.soundFX["sound" + sName].start();
}
crackers = 0;
fly = 0;
leachSize = 100;
dogStartX = _root.doggie._x;
dogStartY = _root.doggie._y;
manStartX = _root.man._x;
manStartY = _root.man._y;
SFXVolume = 0.75;
onEnterFrame = function () {
HUD._x = -_x;
HUD._y = -_y;
};
_root.createEmptyMovieClip("soundFX", _root.getNextHighestDepth());
stopAllSounds();
soundFX.music = new Sound(soundFX);
soundFX.music.attachSound("music");
soundFX.music.setVolume(100);
soundFX.music.start(0, 99999999999999);
_root._x = 0;
_root._y = 0;
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5c7f0e14", this, 10301, true);
Instance of Symbol 83 MovieClip in Frame 5
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 85 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 6
_root.currentLevel = 1;
_root.maxCrackers = 0;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 6
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 6
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 6
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 6
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 6
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 6
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 6
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 7
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 7
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 85 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 8
_root.currentLevel = 2;
_root.maxCrackers = 0;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 8
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 8
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 8
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 8
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 8
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 8
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 176 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 20);
}
Instance of Symbol 178 MovieClip in Frame 8
onClipEvent (enterFrame) {
_root.leachPowerUp(this, -40);
}
Instance of Symbol 148 MovieClip "level" in Frame 8
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 8
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 8
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 8
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 9
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 9
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 85 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 10
_root.currentLevel = 3;
_root.maxCrackers = 0;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 10
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 10
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 10
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 10
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 10
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 183 MovieClip in Frame 10
onClipEvent (enterFrame) {
_root.flyhat(this, 100);
}
Instance of Symbol 148 MovieClip "level" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 10
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 10
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 11
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 11
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 85 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 12
_root.currentLevel = 4;
_root.maxCrackers = 0;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 12
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 12
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 12
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 12
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 12
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 12
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 12
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 188 MovieClip in Frame 12
onClipEvent (enterFrame) {
_root.ball(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 12
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 12
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 12
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 12
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 13
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 13
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 85 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 14
_root.currentLevel = 5;
_root.maxCrackers = 5;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 14
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 14
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 14
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 14
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 14
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 14
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 14
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 14
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 15
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 15
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 85 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 16
_root.currentLevel = 6;
_root.maxCrackers = 0;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 16
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 16
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 16
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 16
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 16
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 16
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 199 MovieClip "b1" in Frame 16
onClipEvent (load) {
_root.buttons = _root.buttons + 1;
}
onClipEvent (enterFrame) {
_root.button(this);
}
Instance of Symbol 210 MovieClip "bunny1" in Frame 16
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 212 MovieClip in Frame 16
onClipEvent (enterFrame) {
_root.cageCode(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 16
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 16
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 16
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 16
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 17
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 17
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 17
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 18
_root.currentLevel = 7;
_root.maxCrackers = 5;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 18
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 18
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 18
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 18
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 18
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 18
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 176 MovieClip in Frame 18
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 40);
}
Instance of Symbol 148 MovieClip "level" in Frame 18
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 18
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 18
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 18
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 19
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 19
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 19
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 20
_root.currentLevel = 8;
_root.maxCrackers = 5;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 20
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 20
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 20
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 20
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 20
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 20
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 20
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 20
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 20
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 20
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 20
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 21
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 21
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 21
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 22
_root.currentLevel = 9;
_root.maxCrackers = 2;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 22
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 22
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 22
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 22
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 22
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 22
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 22
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 22
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 22
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 176 MovieClip in Frame 22
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 20);
}
Instance of Symbol 148 MovieClip "level" in Frame 22
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 22
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 22
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 22
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 23
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 23
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 23
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 24
_root.currentLevel = 10;
_root.maxCrackers = 4;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 24
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 24
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 24
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 24
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 24
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 24
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 176 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 120);
}
Instance of Symbol 193 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 178 MovieClip in Frame 24
onClipEvent (enterFrame) {
_root.leachPowerUp(this, -80);
}
Instance of Symbol 148 MovieClip "level" in Frame 24
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 24
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 24
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 24
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 25
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 25
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 25
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 26
_root.currentLevel = 11;
_root.maxCrackers = 4;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 26
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 26
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 26
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 26
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 26
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 26
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 183 MovieClip in Frame 26
onClipEvent (enterFrame) {
_root.flyhat(this, 200);
}
Instance of Symbol 148 MovieClip "level" in Frame 26
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 26
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 26
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 26
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 27
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 27
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 27
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 28
_root.currentLevel = 12;
_root.maxCrackers = 4;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 28
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 28
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 28
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 28
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 28
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 28
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 183 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.flyhat(this, 110);
}
Instance of Symbol 176 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 1000);
}
Instance of Symbol 199 MovieClip "b1" in Frame 28
onClipEvent (load) {
_root.buttons = _root.buttons + 1;
}
onClipEvent (enterFrame) {
_root.button(this);
}
Instance of Symbol 210 MovieClip "bunny1" in Frame 28
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 212 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.cageCode(this);
}
Instance of Symbol 178 MovieClip in Frame 28
onClipEvent (enterFrame) {
_root.leachPowerUp(this, (-_root.leachSize) + 100);
}
Instance of Symbol 148 MovieClip "level" in Frame 28
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 28
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 28
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 28
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 29
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 29
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 29
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 30
_root.currentLevel = 13;
_root.maxCrackers = 4;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 30
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 30
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 30
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 30
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 30
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 178 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.leachPowerUp(this, -30);
}
Instance of Symbol 193 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 30
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 30
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 30
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 30
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 30
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 31
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 83 MovieClip in Frame 31
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Instance of Symbol 220 MovieClip in Frame 31
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Frame 32
_root.currentLevel = 14;
_root.maxCrackers = 4;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 32
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 32
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 32
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 32
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 32
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 32
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 131 MovieClip in Frame 32
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 193 MovieClip in Frame 32
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 32
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 32
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 193 MovieClip in Frame 32
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 32
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 32
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 32
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 32
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 33
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 220 MovieClip in Frame 33
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 83 MovieClip in Frame 33
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Frame 34
_root.currentLevel = 15;
_root.maxCrackers = 1;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 34
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 34
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 199 MovieClip "b2" in Frame 34
onClipEvent (load) {
_root.buttons = _root.buttons + 1;
}
onClipEvent (enterFrame) {
_root.button(this);
}
Instance of Symbol 199 MovieClip "b1" in Frame 34
onClipEvent (load) {
_root.buttons = _root.buttons + 1;
}
onClipEvent (enterFrame) {
_root.button(this);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 34
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 34
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 34
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 34
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 176 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 20);
}
Instance of Symbol 210 MovieClip "bunny2" in Frame 34
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 210 MovieClip "bunny1" in Frame 34
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 176 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 80);
}
Instance of Symbol 176 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 130);
}
Instance of Symbol 178 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.leachPowerUp(this, (-_root.leachSize) + 100);
}
Instance of Symbol 131 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.goal(this);
}
Instance of Symbol 212 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.cageCode(this);
}
Instance of Symbol 193 MovieClip in Frame 34
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 34
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 34
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 34
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 34
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Frame 35
stop();
_root._x = 0;
_root._y = 0;
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 248 MovieClip in Frame 35
on (release) {
_root.gotoAndPlay(1);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 35
onClipEvent (load) {
_alpha = 0;
}
on (release) {
_root.nextFrame();
}
Instance of Symbol 65 MovieClip in Frame 35
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=awalkinthepark", "_blank");
}
Instance of Symbol 65 MovieClip in Frame 35
on (release) {
getURL ("http://www.arcadetown.com/partner/download.asp?gameid=awalkinthepark", "_blank");
}
Instance of Symbol 69 MovieClip in Frame 35
on (release) {
getURL ("http://www.arcadetown.com/free_content/index.asp", "_blank");
}
Frame 36
function dog(obj) {
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
if (obj.xSpeed2 == undefined) {
obj.xSpeed2 = 0;
}
_root.platform(obj);
_root.platformRotation(obj);
_root.topStopper(obj);
if (_root.level.hitTest(obj._x, obj._y + obj.height, true) == false) {
obj.a = obj.a * 0.9;
obj.b = obj.b * 0.9;
obj._rotation = obj._rotation * 0.9;
}
_root.physics(obj, 0.3);
obj.xSpeed2 = obj.xSpeed2 + ((obj.xSpeed - obj.xSpeed2) * 0.1);
obj._x = obj._x + obj.xSpeed2;
if (Key.isDown(39)) {
obj.xSpeed = 4;
obj.gotoAndStop(2);
} else if (Key.isDown(37)) {
obj.xSpeed = -4;
obj.gotoAndStop(1);
} else {
obj.xSpeed = 0;
}
if (Key.isDown(38)) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) + 2, true)) {
obj.fallspeed = -10;
obj._y = obj._y - 1;
}
}
if ((obj._y - obj._height) > (_root.levelLimit._y + _root.levelLimit._height)) {
_root.gotoAndStop(_root._currentframe - 1);
obj._x = _root.dogStartX;
obj._y = _root.dogStartY;
_root.man._x = _root.manStartX;
_root.man._y = _root.manStartY;
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = _root.levelLimit._x + _root.levelLimit._width;
}
}
function wheelMan(obj) {
_root.topStopper(obj);
_root.platform(obj);
_root.platformRotation(obj);
if (_root.level.hitTest(obj._x, obj._y + (obj.height / 2), true) == false) {
obj.a = obj.a * 0.9;
obj.b = obj.b * 0.9;
obj._rotation = obj._rotation * 0.9;
}
_root.physics(obj, 0.5);
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
if (obj.xSpeed2 == undefined) {
obj.xSpeed2 = 0;
}
if (obj.ySpeed == undefined) {
obj.ySpeed = 0;
}
if (obj.ySpeed2 == undefined) {
obj.ySpeed2 = 0;
}
dogAngle = (Math.atan2(obj._y - _root.doggie._y, obj._x - _root.doggie._x) * 180) / Math.PI;
if (_root.dragArea.hitTest(obj._x, obj._y, true) == false) {
obj.xSpeed = (_root.doggie._x - obj._x) * 0.2;
obj.ySpeed = (_root.doggie._y - obj._y) * 0.05;
obj.fallspeed = obj.fallspeed * 0.5;
_root.doggie.xSpeed2 = _root.doggie.xSpeed2 - ((_root.doggie._x - obj._x) * 0.003);
_root.doggie.fallspeed = _root.doggie.fallspeed - ((_root.doggie._y - obj._y) * 0.002);
} else {
obj.xSpeed = 0;
obj.ySpeed = 0;
}
obj.ySpeed2 = obj.ySpeed2 + ((obj.ySpeed - obj.ySpeed2) * 0.1);
obj.xSpeed2 = obj.xSpeed2 + ((obj.xSpeed - obj.xSpeed2) * 0.1);
obj._x = obj._x + obj.xSpeed2;
obj._y = obj._y + obj.ySpeed2;
obj._x = obj._x + (obj._rotation * 0.1);
if (_root.level.hitTest(obj._x, obj._y + (obj.height * 2), true) == false) {
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y + (obj.height / 2), true)) {
obj._x = obj._x - x;
}
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y + (obj.height / 2), true)) {
obj._x = obj._x + x;
}
x++;
}
}
if (obj.xSpeed2 > 1) {
obj.gotoAndStop(2);
}
if (obj.xSpeed2 < -1) {
obj.gotoAndStop(1);
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = _root.levelLimit._x + _root.levelLimit._width;
}
}
function physics(obj, weight) {
if (obj.fallspeed == undefined) {
obj.fallspeed = 0;
}
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (_root.level.hitTest(obj._x, obj._y + obj.height, true)) {
obj.fallspeed = 0;
obj.ySpeed2 = 0;
obj.ySpeed = 0;
} else {
obj.fallspeed = obj.fallspeed + weight;
}
obj._y = obj._y + obj.fallspeed;
}
function platform(obj) {
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
if (obj.fallspeed >= 0) {
x = 0;
while (x < obj.height) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) - x, true)) {
obj._y = obj._y - x;
obj.ySpeed = 0;
obj.ySpeed2 = 0;
obj.fallspeed = 0;
}
x++;
}
}
if (_root.level.hitTest(obj._x, obj._y - (obj.height / 2), true) == false) {
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y - (obj.height / 2), true)) {
obj._x = obj._x - x;
obj.xSpeed2 = 0;
}
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y - (obj.height / 2), true)) {
obj._x = obj._x + x;
obj.xSpeed2 = 0;
}
x++;
}
}
}
function platformRotation(obj) {
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
x = 0;
while (x < (obj.height * 2)) {
if (_root.level.hitTest(obj._x - (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.a = x;
}
if (_root.level.hitTest(obj._x + (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.b = x;
}
obj.rotation = (Math.atan2(obj.a - obj.b, (obj._x + obj.width) - (obj._x - obj.width)) * 180) / Math.PI;
obj._rotation = obj._rotation + (((obj.rotation * 2) - obj._rotation) * 0.01);
x++;
}
}
function leach(obj) {
obj._x = _root.man._x;
obj._y = _root.man._y;
obj.clear();
obj.lineStyle(3, 0, 100);
obj.moveTo(0, 0);
obj.lineTo(_root.doggie._x - _root.man._x, _root.doggie._y - _root.man._y);
}
function drag(obj) {
obj._x = _root.doggie._x;
obj._y = _root.doggie._y;
}
function leachPowerUp(obj, length) {
if (((((obj._visible == true) && (obj._x > _root.cam._x)) && (obj._x < (_root.cam._x + _root.cam._width))) && (obj._y < (_root.cam._y + _root.cam._height))) && (obj._y > _root.cam._y)) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if (obj._alpha >= 100) {
if (obj.hitTest(_root.doggie._x, _root.doggie._y, false)) {
_root.leachSize = _root.leachSize + length;
obj.alpha = -10;
_root.doggie.fallspeed = _root.doggie.fallspeed - 3;
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.1);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
}
if (obj._alpha <= 0) {
obj._visible = false;
}
}
}
function camera(obj) {
_root._x = _root._x + (((-obj._x) - _root._x) * 0.1);
_root._y = _root._y + (((-obj._y) - _root._y) * 0.1);
if (_root.restartScreen._alpha < 0) {
obj._x = _root.doggie._x - (obj._width / 2);
obj._y = _root.doggie._y - (obj._height / 2);
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
}
if ((obj._x + obj._width) > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = (_root.levelLimit._x + _root.levelLimit._width) - obj._width;
}
if (obj._y < _root.levelLimit._y) {
obj._y = _root.levelLimit._y;
}
if ((obj._y + obj._height) > (_root.levelLimit._y + _root.levelLimit._height)) {
obj._y = (_root.levelLimit._y + _root.levelLimit._height) - obj._height;
}
}
function point(obj) {
if (((((obj._visible == true) && (obj._x > _root.cam._x)) && (obj._x < (_root.cam._x + _root.cam._width))) && (obj._y < (_root.cam._y + _root.cam._height))) && (obj._y > _root.cam._y)) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if (obj._alpha >= 100) {
if (obj.hitTest(_root.doggie)) {
_root.crackers = _root.crackers + 1;
obj.alpha = -10;
obj.stop();
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.1);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
}
if (obj._alpha <= 0) {
obj._visible = false;
}
}
}
function flyhat(obj, power) {
if (((((obj._visible == true) && (obj._x > _root.cam._x)) && (obj._x < (_root.cam._x + _root.cam._width))) && (obj._y < (_root.cam._y + _root.cam._height))) && (obj._y > _root.cam._y)) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if (obj._alpha >= 100) {
if (obj.hitTest(_root.doggie)) {
_root.fly = _root.fly + power;
obj.alpha = -10;
obj.stop();
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.1);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
}
if (obj._alpha <= 0) {
obj._visible = false;
}
}
}
function ball(obj) {
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
if (obj.fallspeed == undefined) {
obj.fallspeed = 0;
}
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
x = 0;
while (x < obj.height) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) - x, true)) {
obj._y = obj._y - x;
obj.fallspeed = obj.fallspeed - (obj.fallspeed * 1.9);
obj.xSpeed = obj.xSpeed * 0.95;
}
if (_root.level.hitTest(obj._x, (obj._y - obj.height) + x, true)) {
obj._y = obj._y + x;
obj.fallspeed = 0;
obj.xSpeed = obj.xSpeed * 0.95;
}
x++;
}
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y, true)) {
obj._x = obj._x - x;
obj._x = obj._x - obj.xSpeed;
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
}
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y, true)) {
obj._x = obj._x + x;
obj._x = obj._x - obj.xSpeed;
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
}
x = x + 2;
}
if (_root.level.hitTest(obj._x - (obj.width * 2), obj._y, true) && (_root.level.hitTest(obj._x + (obj.width * 2), obj._y, true))) {
obj._x = obj._x - obj.xSpeed;
}
if (_root.level.hitTest(obj._x, obj._y + obj.height, true) == false) {
obj.fallspeed = obj.fallspeed + 0.2;
}
obj._y = obj._y + obj.fallspeed;
obj._x = obj._x + obj.xSpeed;
obj._rotation = obj._rotation + obj.xSpeed;
obj.xSpeed = obj.xSpeed * 0.99;
if (_root.doggie.dog.head.hitBox.hitTest(obj._x, obj._y, true)) {
obj.xSpeed = obj.xSpeed + ((obj._x - _root.doggie._x) / 2);
obj.fallspeed = -Math.abs((obj._x - _root.doggie._x) / 5);
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
obj._x = _root.levelLimit._x + _root.levelLimit._width;
}
if (obj._x < _root.levelLimit._x) {
obj.xSpeed = obj.xSpeed - (obj.xSpeed * 1.9);
obj._x = root.leveLimit._x;
}
}
function bunny(obj) {
_root.topStopper(obj);
if (obj.xSpeed == undefined) {
obj.xSpeed = 0;
}
if (obj.xSpeed2 == undefined) {
obj.xSpeed2 = 0;
}
if (obj.fallspeed == undefined) {
obj.fallspeed = 0;
}
if (obj.height == undefined) {
obj.height = obj._height / 3;
}
if (obj.width == undefined) {
obj.width = obj._width / 3;
}
if (_root.level.hitTest(obj._x, obj._y + obj.height, true) == false) {
obj.fallspeed = obj.fallspeed + 0.4;
} else {
obj.fallspeed = 0;
x = 0;
while (x < (obj.height * 2)) {
if (_root.level.hitTest(obj._x - (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.a = x;
}
if (_root.level.hitTest(obj._x + (obj.width / 2), (obj._y + (obj.height * 2)) - x, true)) {
obj.b = x;
}
obj.rotation = (Math.atan2(obj.a - obj.b, (obj._x + obj.width) - (obj._x - obj.width)) * 180) / Math.PI;
obj._rotation = obj._rotation + (((obj.rotation * 6) - obj._rotation) * 0.01);
x++;
}
}
if (_root.level.hitTest(obj._x + 100, obj._y, true) || (_root.level.hitTest(obj._x - 100, obj._y, true))) {
obj.xSpeed = 0;
}
x = 0;
while (x < obj.height) {
if (_root.level.hitTest(obj._x, (obj._y + obj.height) - x, true)) {
obj._y = obj._y - x;
fallspeed = 0;
}
x++;
}
x = 0;
while (x < obj.width) {
if (_root.level.hitTest((obj._x - obj.width) + x, obj._y, true)) {
obj._x = obj._x + x;
}
if (_root.level.hitTest((obj._x + obj.width) - x, obj._y, true)) {
obj._x = obj._x - x;
}
x++;
}
obj.xSpeed2 = obj.xSpeed2 + ((obj.xSpeed - obj.xSpeed2) * 0.1);
obj._x = obj._x + obj.xSpeed2;
if (Math.round(obj.xSpeed2) != 0) {
obj.bunny.play();
} else {
obj.bunny.gotoAndStop(1);
}
if (obj.xSpeed2 > 1) {
obj.gotoAndStop(2);
}
if (obj.xSpeed2 < -1) {
obj.gotoAndStop(1);
}
obj._y = obj._y + obj.fallspeed;
if (obj.hitTest(_root.doggie.dog.head.hitBox)) {
if (obj._x > _root.doggie._x) {
obj.xSpeed = 5;
obj.xSpeed2 = 5;
}
if (obj._x < _root.doggie._x) {
obj.xSpeed = -5;
obj.xSpeed2 = -5;
}
obj.fallspeed = obj.fallspeed - 0.4;
}
if (obj._x < _root.levelLimit._x) {
obj._x = _root.levelLimit._x;
obj.xSpeed = 5;
obj.xSpeed2 = 5;
}
if (obj._x > (_root.levelLimit._x + _root.levelLimit._width)) {
obj._x = _root.levelLimit._x + _root.levelLimit._width;
obj.xSpeed = -5;
obj.xSpeed2 = -5;
}
}
function topStopper(obj) {
x = 0;
while (x < obj.height) {
if (_root.topStop.hitTest(obj._x, (obj._y - obj.height) + x, true)) {
obj._y = obj._y + x;
obj.fallspeed = 0;
obj.ySpeed = 0;
obj.ySpeed2 = 0;
}
x++;
}
}
function cageCode(obj) {
if (go == undefined) {
go = false;
}
if (obj.go == false) {
x = 0;
while (x < _root.doggie.width) {
if (obj.hitTest((_root.doggie._x + _root.doggie.width) - x, _root.doggie._y, true)) {
_root.doggie._x = _root.doggie._x - x;
_root.doggie.xSpeed2 = 0;
}
if (obj.hitTest((_root.doggie._x - _root.doggie.width) + x, _root.doggie._y, true)) {
_root.doggie._x = _root.doggie._x + x;
_root.doggie.xSpeed2 = 0;
}
x++;
}
x = 0;
while (x < _root.doggie.height) {
if (obj.hitTest(_root.doggie._x, (_root.doggie._y + _root.doggie.height) - x, true)) {
_root.doggie._y = _root.doggie._y - x;
_root.doggie.ySpeed = 0;
_root.doggie.ySpeed2 = 0;
_root.doggie.fallspeed = 0;
}
if (obj.hitTest(_root.doggie._x, (_root.doggie._y - _root.doggie.height) + x, true)) {
_root.doggie._y = _root.doggie._y - x;
_root.doggie.ySpeed = 0;
_root.doggie.ySpeed2 = 0;
_root.doggie.fallspeed = 0;
}
x++;
}
x = 0;
while (x < _root.man.width) {
if (obj.hitTest((_root.man._x + _root.man.width) - x, _root.man._y, true)) {
_root.man._x = _root.man._x - x;
}
if (obj.hitTest((_root.man._x - _root.man.width) + x, _root.man._y, true)) {
_root.man._x = _root.man._x + x;
}
x++;
}
x = 0;
while (x < _root.man.height) {
if (obj.hitTest(_root.man._x, (_root.man._y + _root.man.height) - x, true)) {
_root.man._y = _root.man._y - x;
_root.man.fallspeed = 0;
_root.man.ySpeed = 0;
_root.man.ySpeed2 = 0;
}
if (obj.hitTest(_root.man._x, (_root.man._y - _root.man.height) + x, true)) {
_root.man._y = _root.man._y + x;
_root.man.fallspeed = 0;
_root.man.ySpeed = 0;
_root.man.ySpeed2 = 0;
}
x++;
}
}
if (_root.buttons == 1) {
if (_root.b1.active == true) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 2) {
if ((_root.b1.active == true) && (_root.b2.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 3) {
if (((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 4) {
if ((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 5) {
if (((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 6) {
if ((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 7) {
if (((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 8) {
if ((((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) && (_root.b8.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 9) {
if (((((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) && (_root.b8.active == true)) && (_root.b9.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
} else if (_root.buttons == 10) {
if ((((((((((_root.b1.active == true) && (_root.b2.active == true)) && (_root.b3.active == true)) && (_root.b4.active == true)) && (_root.b5.active == true)) && (_root.b6.active == true)) && (_root.b7.active == true)) && (_root.b8.active == true)) && (_root.b9.active == true)) && (_root.b10.active == true)) {
obj.go = true;
} else {
obj.go = false;
}
}
if (obj.go == true) {
obj._y = obj._y - 0.5;
}
}
function goal(obj) {
if (obj.alpha == undefined) {
obj.alpha = 100;
}
if ((obj._alpha >= 100) && (_root.crackers >= _root.maxCrackers)) {
if (obj.hitTest(_root.doggie) || (obj.hitTest(_root.man))) {
obj.alpha = -30;
obj.stop();
}
}
if (obj.alpha != 100) {
obj._alpha = obj._alpha + ((obj.alpha - obj._alpha) * 0.05);
obj._xscale = obj._alpha;
obj._yscale = obj._alpha;
obj._rotation = 100 - obj._alpha;
obj._y = obj._y - (obj._alpha / 6);
_root.doggie._alpha = obj._alpha;
_root.man._alpha = obj._alpha;
_root.theLeach._alpha = obj._alpha;
_root.man._xscale = obj._alpha;
_root.man._yscale = obj._alpha;
_root.doggie._xscale = obj._alpha;
_root.doggie._yscale = obj._alpha;
_root.leachSize = _root.leachSize * 0.1;
_root.man._x = _root.man._x + ((obj._x - _root.man._x) * 0.1);
_root.man._y = _root.man._y + ((obj._y - _root.man._y) * 0.1);
_root.doggie._x = _root.doggie._x + ((obj._x - _root.doggie._x) * 0.2);
_root.doggie._y = _root.doggie._y + ((obj._y - _root.doggie._y) * 0.2);
_root.doggie.fallspeed = -1;
_root.man.fallspeed = -1;
_root.man.xSpeed = 0;
_root.man.xSpeed2 = 0;
_root.doggie.xSpeed = 0;
_root.doggie.xSpeed2 = 0;
_root.man.ySpeed = 0;
_root.man.ySpeed2 = 0;
} else if (_root.crackers >= _root.maxCrackers) {
obj._alpha = 100;
} else {
obj._alpha = 50;
}
if (obj._alpha <= -10) {
obj._visible = false;
_root.gotoAndStop(_root._currentframe + 1);
}
}
function button(obj) {
if (((((((((((obj.hitTest(_root.bunny1) || (obj.hitTest(_root.bunny2))) || (obj.hitTest(_root.bunny3))) || (obj.hitTest(_root.bunny4))) || (obj.hitTest(_root.bunny5))) || (obj.hitTest(_root.bunny6))) || (obj.hitTest(_root.bunny7))) || (obj.hitTest(_root.bunny8))) || (obj.hitTest(_root.bunny9))) || (obj.hitTest(_root.bunny10))) || (obj.hitTest(_root.doggie))) || (obj.hitTest(_root.man))) {
obj.gotoAndStop(2);
obj.active = true;
trace((obj._name + " ") + obj.active);
} else {
obj.gotoAndStop(1);
obj.active = false;
}
}
crackers = 0;
fly = 0;
leachSize = 100;
dogStartX = _root.doggie._x;
dogStartY = _root.doggie._y;
manStartX = _root.man._x;
manStartY = _root.man._y;
_root._x = 0;
_root._y = 0;
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
menu.customItems.push(visitDeadToast);
Instance of Symbol 220 MovieClip in Frame 36
onClipEvent (load) {
gotoAndStop(random(5));
}
onClipEvent (enterFrame) {
if (Key.isDown(13) || (Key.isDown(32))) {
_root.gotoAndStop(_root._currentframe + 1);
}
}
Instance of Symbol 83 MovieClip in Frame 36
onClipEvent (load) {
alpha = 5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + alpha);
if (_alpha < -20) {
alpha = 5;
}
if (_alpha > 150) {
alpha = -5;
}
}
Frame 37
_root.currentLevel = 16;
_root.maxCrackers = 2;
_root.buttons = 0;
_root.bunnies = 0;
_root.fly = 0;
_root.crackers = 0;
_root.leachSize = 100;
_root.level.gotoAndStop(_root.currentLevel);
_root.topStop.gotoAndStop(_root.currentLevel);
_root.stop();
menu = new ContextMenu();
menu.hideBuiltInItems();
visitDeadToast = new ContextMenuItem("Visit DeadToast.com", function () {
getURL ("http://www.deadtoast.com", "_blank");
});
restartLevel = new ContextMenuItem("Restart level", function () {
_root.restartScreen.alpha = 100;
});
menu.customItems.push(restartLevel);
menu.customItems.push(visitDeadToast);
Instance of Symbol 99 MovieClip "cam" in Frame 37
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.camera(this);
}
Instance of Symbol 51 MovieClip in Frame 37
onClipEvent (enterFrame) {
_x = (-_root._x);
_y = ((-_root._y) * 0.5);
}
Instance of Symbol 102 MovieClip "dragArea" in Frame 37
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.drag(this);
_xscale = _root.leachSize;
_yscale = _root.leachSize;
}
Instance of Symbol 85 MovieClip "theLeach" in Frame 37
onClipEvent (enterFrame) {
_root.leach(this);
}
Instance of Symbol 112 MovieClip "man" in Frame 37
onClipEvent (enterFrame) {
_root.wheelMan(this);
}
Instance of Symbol 129 MovieClip "doggie" in Frame 37
onClipEvent (load) {
height = _height / 4;
}
onClipEvent (enterFrame) {
_root.dog(this);
}
Instance of Symbol 176 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.leachPowerUp(this, 20);
}
Instance of Symbol 178 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.leachPowerUp(this, -20);
}
Instance of Symbol 183 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.flyhat(this);
}
Instance of Symbol 188 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.ball(this);
}
Instance of Symbol 210 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 210 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 210 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.bunny(this);
}
Instance of Symbol 193 MovieClip in Frame 37
onClipEvent (enterFrame) {
_root.point(this);
}
Instance of Symbol 148 MovieClip "level" in Frame 37
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "levelLimit" in Frame 37
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 160 MovieClip "topStop" in Frame 37
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 171 MovieClip "restartScreen" in Frame 37
onClipEvent (load) {
alpha = -10;
_alpha = -10;
}
onClipEvent (enterFrame) {
if (this.alpha > 0) {
_x = (-_root._x);
_y = (-_root._y);
}
if (this._alpha < 0) {
_x = -5000;
_y = -5000;
}
if (this.alpha == 100) {
if (Key.isDown(89)) {
this._alpha = -10;
this.alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
if (Key.isDown(78)) {
this.alpha = -10;
}
}
if (Key.isDown(82)) {
this.alpha = 100;
}
_alpha = (_alpha + ((alpha - _alpha) * 0.1));
if (Math.round(_alpha) == -10) {
_alpha = -10;
}
}
Symbol 37 MovieClip Frame 60
stop();
_root.play();
Symbol 42 MovieClip Frame 1
_root.stop();
Symbol 42 MovieClip Frame 88
stop();
_root.nextFrame();
Instance of Symbol 46 MovieClip in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
sameRandom = 40 + random(60);
_xscale = sameRandom;
_yscale = sameRandom;
_y = (150 - sameRandom);
_x = random(600);
_alpha = sameRandom;
}
onClipEvent (enterFrame) {
_x = (_x - (sameRandom / 100));
if (_x < -20) {
sameRandom = 40 + random(60);
_xscale = sameRandom;
_yscale = sameRandom;
_alpha = sameRandom;
_x = (600 + _width);
_y = (150 - sameRandom);
}
}
Instance of Symbol 48 MovieClip in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
sameRandom = 40 + random(60);
_xscale = sameRandom;
_yscale = sameRandom;
_y = (150 - sameRandom);
_x = random(600);
_alpha = sameRandom;
}
onClipEvent (enterFrame) {
_x = (_x - (sameRandom / 100));
if (_x < -20) {
sameRandom = 40 + random(60);
_xscale = sameRandom;
_yscale = sameRandom;
_alpha = sameRandom;
_x = (600 + _width);
_y = (150 - sameRandom);
}
}
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
sameRandom = 40 + random(60);
_xscale = sameRandom;
_yscale = sameRandom;
_y = (150 - sameRandom);
_x = random(600);
_alpha = sameRandom;
}
onClipEvent (enterFrame) {
_x = (_x - (sameRandom / 100));
if (_x < -20) {
sameRandom = 40 + random(60);
_xscale = sameRandom;
_yscale = sameRandom;
_alpha = sameRandom;
_x = (600 + _width);
_y = (150 - sameRandom);
}
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 25
stop();
Instance of Symbol 76 MovieClip in Symbol 80 MovieClip Frame 1
on (release) {
getURL ("mailto:veres.sam@gmail.com", "_blank");
}
Instance of Symbol 78 MovieClip in Symbol 80 MovieClip Frame 1
on (release) {
getURL ("http://www.deadtoast.com/", "_blank");
}
Instance of Symbol 92 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
_x = (_parent.vLine._x + (_root.SFXVolume * _parent.vLine._width));
}
on (press) {
this.onEnterFrame = function () {
_x = _parent._xmouse;
if (this._x < _parent.vLine._x) {
this._x = _parent.vLine._x;
}
if (this._x > (_parent.vLine._x + _parent.vLine._width)) {
this._x = _parent.vLine._x + _parent.vLine._width;
}
_root.SFXVolume = (_x - _parent.vLine._x) / _parent.vLine._width;
_root.soundFX.music.setVolume(_root.SFXVolume * 100);
};
}
on (release) {
delete this.onEnterFrame;
}
on (releaseOutside) {
delete this.onEnterFrame;
}
Instance of Symbol 104 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (Math.abs(_parent._parent.xSpeed2 * 2) - Math.abs(_parent._parent._rotation * 0.3)));
}
Instance of Symbol 107 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
timer = 10;
}
onClipEvent (enterFrame) {
timer--;
if (timer <= 0) {
rotTarget = -50 + random(120);
timer = 10 + random(5);
}
_rotation = (_rotation + ((rotTarget - _rotation) * 0.1));
}
Instance of Symbol 104 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (Math.abs(_parent._parent.xSpeed2 * 2) - Math.abs(_parent._parent._rotation * 0.3)));
}
Instance of Symbol 110 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (((-_parent._parent._rotation) - _rotation) * 0.1));
if (_rotation > 30) {
_rotation = 30;
}
if (_rotation < -30) {
_rotation = -30;
}
}
Instance of Symbol 107 MovieClip in Symbol 111 MovieClip Frame 1
onClipEvent (load) {
startX = _x;
startY = _y;
timer = 10;
}
onClipEvent (enterFrame) {
_x = (_x + (((startX + moveAmount) - _x) * 0.2));
_y = (_y + (((startY - moveAmount) - _y) * 0.2));
timer--;
if (timer <= 0) {
moveAmount = random(20);
timer = 10 + random(5);
}
}
Symbol 112 MovieClip Frame 1
stop();
Instance of Symbol 120 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._rotation);
}
Instance of Symbol 120 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._parent._rotation);
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
}
onClipEvent (enterFrame) {
if (_parent._visible == true) {
if (Key.isDown(38)) {
if (speed < 50) {
speed = speed + 1;
}
_root.doggie.fallspeed = _root.doggie.fallspeed + ((((-speed) / 8) - _root.doggie.fallspeed) * 0.1);
if (Key.isDown(39)) {
_root.doggie._rotation = _root.doggie._rotation + ((90 - _root.doggie._rotation) * 0.1);
}
if (Key.isDown(37)) {
_root.doggie._rotation = _root.doggie._rotation + ((-90 - _root.doggie._rotation) * 0.1);
}
_root.fly = _root.fly - 0.25;
} else {
speed = speed * 0.9;
}
if (_xscale <= -100) {
_xscale = 100;
}
_xscale = (_xscale - speed);
}
}
Symbol 125 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fly > 0) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 125 MovieClip Frame 2
_root.playSound("bark", 3);
Instance of Symbol 114 MovieClip "l4" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_y < startY) {
fallspeed = fallspeed + 0.3;
} else {
fallspeed = 0;
_y = startY;
if (Key.isDown(39) || (Key.isDown(37))) {
if (_parent.l3._y < (_parent.l3.startY - 7)) {
fallspeed = -2;
}
}
if (Key.isDown(38)) {
if (_root.level.hitTest(_root.doggie._x, _root.doggie._y + _root.doggie.height, true)) {
fallspeed = -2;
}
}
}
_y = (_y + fallspeed);
}
Instance of Symbol 114 MovieClip "l2" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_y < startY) {
fallspeed = fallspeed + 0.3;
} else {
fallspeed = 0;
_y = startY;
if (Key.isDown(39) || (Key.isDown(37))) {
if (_parent.l1._y < (_parent.l1.startY - 7)) {
fallspeed = -2;
}
}
if (Key.isDown(38)) {
if (_root.level.hitTest(_root.doggie._x, _root.doggie._y + _root.doggie.height, true)) {
fallspeed = -2;
}
}
}
_y = (_y + fallspeed);
}
Instance of Symbol 114 MovieClip "l1" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_y < startY) {
fallspeed = fallspeed + 0.3;
} else {
fallspeed = 0;
_y = startY;
if (Key.isDown(39) || (Key.isDown(37))) {
fallspeed = -2;
}
if (Key.isDown(38)) {
if (_root.level.hitTest(_root.doggie._x, _root.doggie._y + _root.doggie.height, true)) {
fallspeed = -2;
}
}
}
_y = (_y + fallspeed);
}
Instance of Symbol 114 MovieClip "l3" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_y < startY) {
fallspeed = fallspeed + 0.3;
} else {
fallspeed = 0;
_y = startY;
if (Key.isDown(39) || (Key.isDown(37))) {
if (_parent.l2._y < (_parent.l2.startY - 7)) {
fallspeed = -2;
}
}
if (Key.isDown(38)) {
if (_root.level.hitTest(_root.doggie._x, _root.doggie._y + _root.doggie.height, true)) {
fallspeed = -2;
}
}
}
_y = (_y + fallspeed);
}
Instance of Symbol 125 MovieClip "head" in Symbol 126 MovieClip Frame 1
onClipEvent (enterFrame) {
rotation = Math.abs((_root.man._x - _root.doggie._x) / 3);
_rotation = (_rotation + ((rotation - _rotation) * 0.05));
if (_rotation > 30) {
_rotation = 30;
}
if (_rotation < -30) {
_rotation = -30;
}
if (Key.isDown(40)) {
this.play();
}
}
Symbol 129 MovieClip Frame 1
stop();
Instance of Symbol 128 MovieClip in Symbol 129 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _root.fly;
_rotation = (-_parent._rotation);
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
stop();
Instance of Symbol 164 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
this.gotoAndStop(2);
}
on (release) {
this.gotoAndStop(1);
_parent.alpha = -10;
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 164 MovieClip in Symbol 171 MovieClip Frame 1
on (press) {
this.gotoAndStop(2);
}
on (release) {
this.gotoAndStop(1);
_parent.alpha = -10;
_parent._alpha = -10;
_root.gotoAndStop(_root._currentframe - 1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 193 MovieClip Frame 1
this.gotoAndPlay(2 + random(39));
Symbol 193 MovieClip Frame 41
gotoAndPlay (2);
Symbol 210 MovieClip Frame 1
gotoAndStop(1 + random(2));
Symbol 220 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
addAlpha = -4;
this.onEnterFrame = function () {
_alpha = (_alpha + addAlpha);
if (_alpha < -10) {
addAlpha = 4;
} else if (_alpha > 110) {
addAlpha = -4;
}
};