Frame 1
mochi.MochiServices.connect("c08e6707d34fa731");
my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.quality = true;
_root.menu = my_cm;
onEnterFrame = function () {
var _local2 = 0;
if (_root.starti == 1) {
delete _root.onEnterFrame;
_root.gotoAndStop(2);
}
};
Instance of Symbol 53 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 3) {
_root.starti = 1;
}
}
Frame 2
stop();
onEnterFrame = function () {
var _local2 = 0;
if (_root.starta == 1) {
delete _root.onEnterFrame;
_root.gotoAndStop(3);
}
};
Instance of Symbol 66 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_currentframe == 75) {
_root.starta = 1;
}
}
Frame 3
stop();
Frame 4
stopAllSounds();
Frame 7
var scor = 1;
var score = 1;
var scorso = 1;
var nam = "";
stop();
var poz = 0;
var poz2 = 0;
var pozy = 0;
var pozy2 = 0;
var ub = 0;
var ub2 = 0;
var POU = 0;
var scor = 1;
var score = 1;
var cpucel = 1;
var gliz = 0;
var gliz2 = 0;
var life = 100;
var life2 = 100;
var endzik = 0;
var sec = 0;
var mina = 3;
if (_root.scor < 0) {
_root.scor = 1;
}
if (_root.score < 0) {
_root.score = 1;
}
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.sec < 0) {
_root.sec = 59;
}
if (((_root.life <= 0) || (_root.life2 <= 0)) || (_root.endzik == 1)) {
_root.gotoAndStop(11);
delete _root.onEnterFrame;
}
if (((_root.as._currentframe == 1) & (_root.gliz == 0)) & (random(1000) > 60)) {
var gli = _root.attachMovie("gli", "gli" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli.onEnterFrame = function () {
if (gli._currentframe == 1) {
_root.gliz = 1;
gli._x = _root.as._x;
gli._y = _root.as._y;
if (((_root.as._x > 0) & (_root.as._x < 550)) & (random(1000) > 994)) {
gli.play();
}
}
if (gli._currentframe == 2) {
_root.gliz = 0;
gli._y = gli._y + 2;
if (gli._y > 370) {
gli._y = 370;
gli.gotoAndStop(3);
}
}
if (gli._currentframe == 3) {
if (gli._x > _root.dona._x) {
gli._x = gli._x - 5;
} else {
gli._x = gli._x + 5;
}
if ((gli._x > 162) & (gli._x < 168)) {
gli._rotation = random(100);
gli._y = _root.dona._y;
_root.life = _root.life - 2;
_root.dona.gotoAndPlay(2);
gli.play();
}
}
if (gli.hitTest(_root.leb) || (_root._currentframe != 7)) {
_root.scor = _root.scor + 10;
gli.gotoAndStop(5);
gli.swapDepths(5);
gli.removeMovieClip();
}
};
if (((_root.ad._currentframe == 1) & (_root.gliz2 == 0)) & (random(1000) > 960)) {
var gli1 = _root.attachMovie("gli1", "gli1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli1.onEnterFrame = function () {
if (gli1._currentframe == 1) {
_root.gliz2 = 1;
gli1._x = _root.ad._x;
gli1._y = _root.ad._y;
if (((_root.ad._x > 0) & (_root.ad._x < 550)) & (random(1000) > 994)) {
gli1.play();
}
}
if (gli1._currentframe == 2) {
_root.gliz2 = 0;
gli1._y = gli1._y + 2;
if (gli1._y > 370) {
gli1._y = 370;
gli1.gotoAndStop(3);
}
}
if (gli1._currentframe == 3) {
if (gli1._x > _root.dona2._x) {
gli1._x = gli1._x - 5;
} else {
gli1._x = gli1._x + 5;
}
if ((gli1._x > 365) & (gli1._x < 420)) {
gli1._rotation = random(100);
gli1._y = _root.dona2._y;
_root.life2 = _root.life2 - 2;
_root.dona2.gotoAndPlay(2);
gli1.play();
}
}
if (gli1.hitTest(_root.leb2) || (_root._currentframe != 7)) {
_root.score = _root.score + 10;
gli1.gotoAndStop(5);
gli1.swapDepths(5);
gli1.removeMovieClip();
}
};
}
};
Instance of Symbol 186 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 200 MovieClip in Frame 7
onClipEvent (enterFrame) {
_x = _root.leb._x;
_y = _root.leb._y;
_root.newx = _root.dona._y;
_root.newy = _root.dona._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
var xspr = (_root.newy - initx);
var yspr = (inity - _root.newx);
var heig = Math.sqrt((xspr * xspr) + (yspr * yspr));
_root.ub = heig;
}
Instance of Symbol 204 MovieClip "dona" in Frame 7
onClipEvent (enterFrame) {
if (hitTest(_root.ax || (_root.az)) & (_currentframe == 1)) {
_root.life = _root.life - 1;
play();
}
}
Instance of Symbol 212 MovieClip "leb" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz = 0;
_x = 171;
_y = 233;
_root.newx = _root.celownik._y;
_root.newy = _root.celownik._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
xSpeed = 20 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 20 * Math.sin(_rotation * (Math.PI/180));
if (Key.isDown(32) & (_root.celownik._y < 230)) {
_root.pozy = getProperty(_root.celownik, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy) {
_root.poz = 1;
}
if (_root.poz == 1) {
play();
}
}
}
}
Instance of Symbol 214 MovieClip "celownik" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (Key.isDown(38)) {
_y = (_y - 5);
}
if (Key.isDown(40)) {
_y = (_y + 5);
}
if (Key.isDown(37)) {
_x = (_x - 5);
}
if (Key.isDown(39)) {
_x = (_x + 5);
}
}
}
Instance of Symbol 216 MovieClip "celownik2" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((random(1000) > 950) & (_root.ad._x < 550)) & (_root.ad._x > 0)) {
_root.newx1 = _root.ad._y;
_root.newy1 = _root.ad._x;
}
if (((random(1000) > 800) & (_root.ak._x < 550)) & (_root.ak._x > 0)) {
_root.newx1 = _root.ak._y;
_root.newy1 = _root.ak._x;
}
if (((random(1000) > 800) & (_root.aj._x < 550)) & (_root.aj._x > 0)) {
_root.newx1 = _root.aj._y;
_root.newy1 = _root.aj._x;
}
if (((random(1000) > 800) & (_root.af._x < 550)) & (_root.af._x > 0)) {
_root.newx1 = _root.af._y;
_root.newy1 = _root.af._x;
}
if (((random(1000) > 800) & (_root.as._x > 0)) & (_root.as._x < 550)) {
_root.newx1 = _root.as._y;
_root.newy1 = _root.as._x;
}
if (((random(1000) > 800) & (_root.ah._x > 0)) & (_root.ah._x < 550)) {
_root.newx1 = _root.ah._y;
_root.newy1 = _root.ah._x;
}
if (((random(1000) > 800) & (_root.al._x > 0)) & (_root.as._x < 550)) {
_root.newx1 = _root.al._y;
_root.newy1 = _root.al._x;
}
if ((_root.cpucel == 1) & (_currentframe == 1)) {
var initx1 = _x;
var inity1 = _y;
goin = Math.atan2(_root.newx1 - inity1, _root.newy1 - initx1) / (Math.PI/180);
xSpeed = 5 * Math.cos(goin * (Math.PI/180));
ySpeed = 5 * Math.sin(goin * (Math.PI/180));
_y = (_y + ySpeed);
_x = (_x + xSpeed);
}
}
}
Instance of Symbol 217 MovieClip "as" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 100) {
if (random(1000) > 850) {
play();
}
}
}
if (_currentframe != 1) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
_x = (_x + 2);
}
if (_x > 650) {
_x = ((-1 * random(800)) - 100);
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (-1 * random(800));
gotoAndStop (1);
}
}
}
Instance of Symbol 220 MovieClip "ak" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 0) {
if (random(1000) > 400) {
play();
}
}
}
if (_currentframe != 1) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
if ((_y <= 200) & (_y >= 10)) {
_y = (_y - (5 - random(11)));
}
_x = (_x - 2);
}
if (_x < -50) {
_x = (random(500) + 600);
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (random(500) + 600);
gotoAndStop (1);
}
}
}
Instance of Symbol 224 MovieClip "ag" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 50) {
if (random(1000) > 750) {
play();
}
}
}
if (_currentframe != 1) {
if (_x < 300) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
if ((_y < 200) & (_y > 10)) {
_y = (_y - (4 - random(8)));
}
_x = (_x + 4);
} else {
_y = (_y - random(3));
_x = (_x + 2);
}
}
if (_x > 650) {
_x = ((-1 * random(400)) - 800);
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (-1 * random(800));
gotoAndStop (1);
}
}
}
Instance of Symbol 125 MovieClip "ax" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 110) {
if (random(1000) > 800) {
play();
}
}
}
if (_currentframe == 2) {
_root.newxx = _root.dona._y;
_root.newyx = _root.dona._x;
var initxx = _x;
var inityx = _y;
_rotation = (Math.atan2(_root.newxx - inityx, _root.newyx - initxx) / (Math.PI/180));
xSpeed = 2 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 2 * Math.sin(_rotation * (Math.PI/180));
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (hitTest(_root.dona)) {
play();
_root.life = _root.life - 15;
}
}
if (_currentframe == 3) {
_rotation = -75;
xxSpeed = 10 * Math.cos(_rotation * (Math.PI/180));
xySpeed = 10 * Math.sin(_rotation * (Math.PI/180));
_y = (_y + xySpeed);
_x = (_x + xxSpeed);
}
if (_x > 650) {
_x = random(550);
_y = (-1 * random(600));
gotoAndStop (1);
}
if (_currentframe == 4) {
_x = random(550);
_y = (-1 * random(600));
gotoAndStop (1);
}
}
}
Instance of Symbol 220 MovieClip "aj" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 40) {
if (random(1000) > 600) {
play();
}
}
}
if (_currentframe != 1) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
if ((_y < 200) & (_y > 10)) {
_y = (_y - (5 - random(11)));
}
_x = (_x - 2);
}
if (_x < -50) {
_x = (random(500) + 600);
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
__y = random(150);
_x = (random(500) + 600);
gotoAndStop (1);
}
}
}
Instance of Symbol 220 MovieClip "al" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 80) {
if (random(1000) > 400) {
play();
}
}
}
if (_currentframe != 1) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
if ((_y < 200) & (_y > 10)) {
_y = (_y - (5 - random(11)));
}
_x = (_x + 2);
}
if (_x > 650) {
_x = (-1 * random(800));
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (-1 * random(800));
gotoAndStop (1);
}
}
}
Instance of Symbol 224 MovieClip "af" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 80) {
if (random(1000) > 400) {
play();
}
}
}
if (_currentframe != 1) {
if (_x > 300) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
if ((_y < 200) & (_y > 10)) {
_y = (_y - (4 - random(8)));
}
_x = (_x - 4);
} else {
_y = (_y - random(4));
_x = (_x - 2);
_x - 2;
}
}
if (_x < -50) {
_x = (random(500) + 600);
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (random(500) + 600);
gotoAndStop (1);
}
}
}
Instance of Symbol 125 MovieClip "az" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 110) {
if (random(1000) > 800) {
play();
}
}
}
if (_currentframe == 2) {
_root.newxx = _root.dona2._y;
_root.newyx = _root.dona2._x;
var initxx = _x;
var inityx = _y;
_rotation = (Math.atan2(_root.newxx - inityx, _root.newyx - initxx) / (Math.PI/180));
xSpeed = 2 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 2 * Math.sin(_rotation * (Math.PI/180));
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (hitTest(_root.dona2)) {
play();
_root.dona2.play();
_root.life2 = _root.life2 - 15;
}
}
if (_currentframe == 3) {
_rotation = -75;
xxSpeed = 10 * Math.cos(_rotation * (Math.PI/180));
xySpeed = 10 * Math.sin(_rotation * (Math.PI/180));
_y = (_y + xySpeed);
_x = (_x + xxSpeed);
}
if (_x > 650) {
_x = random(550);
_y = (-1 * random(600));
gotoAndStop (1);
}
if (_currentframe == 4) {
_x = random(550);
_y = (-1 * random(600));
gotoAndStop (1);
}
}
}
Instance of Symbol 217 MovieClip "ad" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 120) {
if (random(1000) > 750) {
play();
}
}
}
if (_currentframe != 1) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
_x = (_x - 2);
}
if (_x < -50) {
_x = (random(500) + 600);
_y = random(150);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (random(500) + 600);
gotoAndStop (1);
}
}
}
Instance of Symbol 220 MovieClip "ah" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
if (_root.scor > 0) {
if (random(1000) > 400) {
play();
}
}
}
if (_currentframe != 1) {
if (_y > 200) {
_y = (_y - 10);
}
if (_y < 10) {
_y = (_y + 10);
}
if ((_y < 200) & (_y > 10)) {
_y = (_y - (5 - random(11)));
}
_x = (_x + 2);
}
if (_x > 650) {
_x = (-1 * random(800));
_y = random(200);
gotoAndStop (1);
}
if (_currentframe == 3) {
_y = random(150);
_x = (-1 * random(800));
gotoAndStop (1);
}
}
}
Instance of Symbol 225 MovieClip "szyja2" in Frame 7
onClipEvent (enterFrame) {
_x = _root.leb2._x;
_y = _root.leb2._y;
_root.newx = _root.dona2._y;
_root.newy = _root.dona2._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
var xspr = (_root.newy - initx);
var yspr = (inity - _root.newx);
var heig = Math.sqrt((xspr * xspr) + (yspr * yspr));
_root.ub2 = heig;
}
Instance of Symbol 229 MovieClip "dona2" in Frame 7
onClipEvent (enterFrame) {
if (hitTest(_root.ax || (_root.az)) & (_currentframe == 1)) {
_root.life2 = _root.life2 - 1;
play();
}
}
Instance of Symbol 236 MovieClip "leb2" in Frame 7
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz2 = 0;
_x = 404;
_y = 233;
_root.newx = _root.celownik2._y;
_root.newy = _root.celownik2._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
xSpeed = 18 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 18 * Math.sin(_rotation * (Math.PI/180));
if (random(1000) > 965) {
_root.pozy2 = getProperty(_root.celownik2, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy2) {
_root.poz2 = 1;
}
if (_root.poz2 == 1) {
play();
}
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.al._x;
_y = _root.al._y;
if (_root.al._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.ah._x;
_y = _root.ah._y;
if (_root.ah._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.ag._x;
_y = _root.ag._y;
if (_root.ag._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.ax._x;
_y = _root.ax._y;
if (_root.ax._currentframe == 4) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.as._x;
_y = _root.as._y;
if (_root.as._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.ad._x;
_y = _root.ad._y;
if (_root.ad._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.az._x;
_y = _root.az._y;
if (_root.az._currentframe == 4) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.aj._x;
_y = _root.aj._y;
if (_root.aj._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.ak._x;
_y = _root.ak._y;
if (_root.ak._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 15 MovieClip [krew] in Frame 7
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_x = _root.af._x;
_y = _root.af._y;
if (_root.af._currentframe == 3) {
play();
}
}
if (_currentframe == 5) {
_y = (_y + 15);
if (_y > 365) {
_y = 365;
play();
}
}
}
Instance of Symbol 248 MovieClip "pause" in Frame 7
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
_root.POU = 1;
}
if (_root.POU == 1) {
gotoAndStop (2);
_visible = true;
}
if (_root.POU == 0) {
gotoAndStop (1);
_visible = false;
}
}
Frame 8
stop();
var poz = 0;
var poz2 = 0;
var pozy = 0;
var pozy2 = 0;
var ub = 0;
var ub2 = 0;
var POU = 0;
var scor = 1;
var score = 1;
var cpucel = 1;
var gliz = 0;
var gliz2 = 0;
var life = 100;
var life2 = 100;
var endzik = 0;
var sec = 0;
var mina = 3;
if (_root.scor < 0) {
_root.scor = 1;
}
if (_root.score < 0) {
_root.score = 1;
}
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.sec < 0) {
_root.sec = 59;
}
if (((_root.life <= 0) || (_root.life2 <= 0)) || (_root.endzik == 1)) {
_root.gotoAndStop(15);
delete _root.onEnterFrame;
}
if (((_root.as._currentframe == 1) & (_root.gliz == 0)) & (random(1000) > 60)) {
var gli = _root.attachMovie("gli", "gli" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli.onEnterFrame = function () {
if (gli._currentframe == 1) {
_root.gliz = 1;
gli._x = _root.as._x;
gli._y = _root.as._y;
if (((_root.as._x > 0) & (_root.as._x < 550)) & (random(1000) > 994)) {
gli.play();
}
}
if (gli._currentframe == 2) {
_root.gliz = 0;
gli._y = gli._y + 2;
if (gli._y > 370) {
gli._y = 370;
gli.gotoAndStop(3);
}
}
if (gli._currentframe == 3) {
if (gli._x > _root.dona._x) {
gli._x = gli._x - 5;
} else {
gli._x = gli._x + 5;
}
if ((gli._x > 162) & (gli._x < 168)) {
gli._rotation = random(100);
gli._y = _root.dona._y;
_root.life = _root.life - 10;
_root.dona.gotoAndPlay(2);
gli.play();
}
}
if (gli.hitTest(_root.leb) || (_root._currentframe != 8)) {
_root.scor = _root.scor + 10;
gli.gotoAndStop(5);
gli.swapDepths(5);
gli.removeMovieClip();
}
};
if (((_root.ad._currentframe == 1) & (_root.gliz2 == 0)) & (random(1000) > 960)) {
var gli1 = _root.attachMovie("gli1", "gli1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli1.onEnterFrame = function () {
if (gli1._currentframe == 1) {
_root.gliz2 = 1;
gli1._x = _root.ad._x;
gli1._y = _root.ad._y;
if (((_root.ad._x > 0) & (_root.ad._x < 550)) & (random(1000) > 994)) {
gli1.play();
}
}
if (gli1._currentframe == 2) {
_root.gliz2 = 0;
gli1._y = gli1._y + 2;
if (gli1._y > 370) {
gli1._y = 370;
gli1.gotoAndStop(3);
}
}
if (gli1._currentframe == 3) {
if (gli1._x > _root.dona2._x) {
gli1._x = gli1._x - 5;
} else {
gli1._x = gli1._x + 5;
}
if ((gli1._x > 365) & (gli1._x < 420)) {
gli1._rotation = random(100);
gli1._y = _root.dona2._y;
_root.life2 = _root.life2 - 2;
_root.dona2.gotoAndPlay(2);
gli1.play();
}
}
if (gli1.hitTest(_root.leb2) || (_root._currentframe != 8)) {
_root.score = _root.score + 10;
gli1.gotoAndStop(5);
gli1.swapDepths(5);
gli1.removeMovieClip();
}
};
}
};
Instance of Symbol 212 MovieClip "leb" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz = 0;
_x = 171;
_y = 233;
_root.newx = _root.celownik._y;
_root.newy = _root.celownik._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
xSpeed = 20 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 20 * Math.sin(_rotation * (Math.PI/180));
if (Key.isDown(32) & (_root.celownik._y < 230)) {
_root.pozy = getProperty(_root.celownik, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy) {
_root.poz = 1;
}
if (_root.poz == 1) {
play();
}
}
}
}
Instance of Symbol 214 MovieClip "celownik" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_y == _root.leb._y) & (_x > 160)) & (_x < 180)) {
_y = (_y - 8);
}
if (Key.isDown(38)) {
_y = (_y - 5);
}
if (Key.isDown(40)) {
_y = (_y + 5);
}
if (Key.isDown(37)) {
_x = (_x - 5);
}
if (Key.isDown(39)) {
_x = (_x + 5);
}
}
}
Instance of Symbol 216 MovieClip "celownik2" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((random(1000) > 950) & (_root.ad._x < 550)) & (_root.ad._x > 0)) {
_root.newx1 = _root.ad._y;
_root.newy1 = _root.ad._x;
}
if (((random(1000) > 800) & (_root.ak._x < 550)) & (_root.ak._x > 0)) {
_root.newx1 = _root.ak._y;
_root.newy1 = _root.ak._x;
}
if (((random(1000) > 800) & (_root.aj._x < 550)) & (_root.aj._x > 0)) {
_root.newx1 = _root.aj._y;
_root.newy1 = _root.aj._x;
}
if (((random(1000) > 800) & (_root.af._x < 550)) & (_root.af._x > 0)) {
_root.newx1 = _root.af._y;
_root.newy1 = _root.af._x;
}
if (((random(1000) > 800) & (_root.as._x > 0)) & (_root.as._x < 550)) {
_root.newx1 = _root.as._y;
_root.newy1 = _root.as._x;
}
if (((random(1000) > 800) & (_root.ah._x > 0)) & (_root.ah._x < 550)) {
_root.newx1 = _root.ah._y;
_root.newy1 = _root.ah._x;
}
if (((random(1000) > 800) & (_root.al._x > 0)) & (_root.as._x < 550)) {
_root.newx1 = _root.al._y;
_root.newy1 = _root.al._x;
}
if ((_root.cpucel == 1) & (_currentframe == 1)) {
var initx1 = _x;
var inity1 = _y;
goin = Math.atan2(_root.newx1 - inity1, _root.newy1 - initx1) / (Math.PI/180);
xSpeed = 5 * Math.cos(goin * (Math.PI/180));
ySpeed = 5 * Math.sin(goin * (Math.PI/180));
_y = (_y + ySpeed);
_x = (_x + xSpeed);
}
}
}
Instance of Symbol 236 MovieClip "leb2" in Frame 8
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz2 = 0;
_x = 404;
_y = 233;
_root.newx = _root.celownik2._y;
_root.newy = _root.celownik2._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
xSpeed = 18 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 18 * Math.sin(_rotation * (Math.PI/180));
if (random(1000) > 965) {
_root.pozy2 = getProperty(_root.celownik2, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy2) {
_root.poz2 = 1;
}
if (_root.poz2 == 1) {
play();
}
}
}
}
Frame 9
stop();
var poz = 0;
var poz2 = 0;
var pozy = 0;
var pozy2 = 0;
var ub = 0;
var ub2 = 0;
var POU = 0;
var scor = 1;
var score = 1;
var cpucel = 1;
var gliz = 0;
var gliz2 = 0;
var life = 100;
var life2 = 100;
var endzik = 0;
var sec = 0;
var mina = 3;
if (_root.scor < 0) {
_root.scor = 1;
}
if (_root.score < 0) {
_root.score = 1;
}
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.sec < 0) {
_root.sec = 59;
}
if (((_root.life <= 0) || (_root.life2 <= 0)) || (_root.endzik == 1)) {
_root.gotoAndStop(16);
delete _root.onEnterFrame;
}
if (((_root.as._currentframe == 1) & (_root.gliz == 0)) & (random(1000) > 60)) {
var gli = _root.attachMovie("gli", "gli" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli.onEnterFrame = function () {
if (gli._currentframe == 1) {
_root.gliz = 1;
gli._x = _root.as._x;
gli._y = _root.as._y;
if (((_root.as._x > 0) & (_root.as._x < 550)) & (random(1000) > 994)) {
gli.play();
}
}
if (gli._currentframe == 2) {
_root.gliz = 0;
gli._y = gli._y + 2;
if (gli._y > 370) {
gli._y = 370;
gli.gotoAndStop(3);
}
}
if (gli._currentframe == 3) {
if (gli._x > _root.dona._x) {
gli._x = gli._x - 5;
} else {
gli._x = gli._x + 5;
}
if ((gli._x > 162) & (gli._x < 168)) {
gli._rotation = random(100);
gli._y = _root.dona._y;
_root.life = _root.life - 10;
_root.dona.gotoAndPlay(2);
gli.play();
}
}
if (gli.hitTest(_root.leb) || (_root._currentframe != 9)) {
_root.scor = _root.scor + 10;
gli.gotoAndStop(5);
gli.swapDepths(5);
gli.removeMovieClip();
}
};
if (((_root.ad._currentframe == 1) & (_root.gliz2 == 0)) & (random(1000) > 960)) {
var gli1 = _root.attachMovie("gli1", "gli1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli1.onEnterFrame = function () {
if (gli1._currentframe == 1) {
_root.gliz2 = 1;
gli1._x = _root.ad._x;
gli1._y = _root.ad._y;
if (((_root.ad._x > 0) & (_root.ad._x < 550)) & (random(1000) > 994)) {
gli1.play();
}
}
if (gli1._currentframe == 2) {
_root.gliz2 = 0;
gli1._y = gli1._y + 2;
if (gli1._y > 370) {
gli1._y = 370;
gli1.gotoAndStop(3);
}
}
if (gli1._currentframe == 3) {
if (gli1._x > _root.dona2._x) {
gli1._x = gli1._x - 5;
} else {
gli1._x = gli1._x + 5;
}
if ((gli1._x > 365) & (gli1._x < 420)) {
gli1._rotation = random(100);
gli1._y = _root.dona2._y;
_root.life2 = _root.life2 - 10;
_root.dona2.gotoAndPlay(2);
gli1.play();
}
}
if (gli1.hitTest(_root.leb3) || (_root._currentframe != 9)) {
_root.score = _root.score + 10;
gli1.gotoAndStop(5);
gli1.swapDepths(5);
gli1.removeMovieClip();
}
};
}
};
Instance of Symbol 186 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.POU == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 216 MovieClip "celownik2" in Frame 9
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_y == _root.leb3._y) & (_x > 380)) & (_x < 400)) {
_y = (_y - 8);
}
if (Key.isDown(38)) {
_y = (_y - 5);
}
if (Key.isDown(40)) {
_y = (_y + 5);
}
if (Key.isDown(37)) {
_x = (_x - 5);
}
if (Key.isDown(39)) {
_x = (_x + 5);
}
}
}
Instance of Symbol 225 MovieClip "szyja2" in Frame 9
onClipEvent (enterFrame) {
_x = _root.lep3._x;
_y = _root.lep3._y;
_root.newx85 = _root.dona2._y;
_root.newy85 = _root.dona2._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx85 - inity, _root.newy85 - initx) / (Math.PI/180));
var xspr = (_root.newy85 - initx);
var yspr = (inity - _root.newx85);
var heigz = Math.sqrt((xspr * xspr) + (yspr * yspr));
_root.ub2 = heigz;
}
Instance of Symbol 259 MovieClip "lep3" in Frame 9
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz2 = 0;
_x = 396;
_y = 233;
_root.newx33 = _root.celownik2._y;
_root.newy33 = _root.celownik2._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx33 - inity, _root.newy33 - initx) / (Math.PI/180));
xSpeed = 20 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 20 * Math.sin(_rotation * (Math.PI/180));
if (Key.isDown(96) & (_root.celownik2._y < 230)) {
_root.pozy2 = getProperty(_root.celownik2, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy2) {
_root.poz2 = 1;
}
if (_root.poz2 == 1) {
play();
}
}
}
}
Instance of Symbol 212 MovieClip "leb" in Frame 9
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz = 0;
_x = 171;
_y = 233;
_root.newx = _root.celownik._y;
_root.newy = _root.celownik._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
xSpeed = 20 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 20 * Math.sin(_rotation * (Math.PI/180));
if (Key.isDown(32) & (_root.celownik._y < 230)) {
_root.pozy = getProperty(_root.celownik, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy) {
_root.poz = 1;
}
if (_root.poz == 1) {
play();
}
}
}
}
Instance of Symbol 214 MovieClip "celownik" in Frame 9
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (((_y == _root.leb._y) & (_x > 160)) & (_x < 180)) {
_y = (_y - 8);
}
if (Key.isDown(87)) {
_y = (_y - 5);
}
if (Key.isDown(83)) {
_y = (_y + 5);
}
if (Key.isDown(65)) {
_x = (_x - 5);
}
if (Key.isDown(68)) {
_x = (_x + 5);
}
}
}
Frame 10
stop();
var poz = 0;
var poz2 = 0;
var pozy = 0;
var pozy2 = 0;
var ub = 0;
var ub2 = 0;
var POU = 0;
var scor = 1;
var score = 1;
var cpucel = 1;
var gliz = 0;
var gliz2 = 0;
var life = 100;
var life2 = 100;
var endzik = 0;
var sec = 0;
var mina = 3;
if (_root.scor < 0) {
_root.scor = 1;
}
if (_root.score < 0) {
_root.score = 1;
}
onEnterFrame = function () {
if (_root.POU == 0) {
if (_root.sec < 0) {
_root.sec = 59;
}
if (((_root.life <= 0) || (_root.life2 <= 0)) || (_root.endzik == 1)) {
_root.gotoAndStop(17);
delete _root.onEnterFrame;
}
if (((_root.as._currentframe == 1) & (_root.gliz == 0)) & (random(1000) > 60)) {
var gli = _root.attachMovie("gli", "gli" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli.onEnterFrame = function () {
if (gli._currentframe == 1) {
_root.gliz = 1;
gli._x = _root.as._x;
gli._y = _root.as._y;
if (((_root.as._x > 0) & (_root.as._x < 550)) & (random(1000) > 994)) {
gli.play();
}
}
if (gli._currentframe == 2) {
_root.gliz = 0;
gli._y = gli._y + 2;
if (gli._y > 370) {
gli._y = 370;
gli.gotoAndStop(3);
}
}
if (gli._currentframe == 3) {
if (gli._x > _root.dona._x) {
gli._x = gli._x - 5;
} else {
gli._x = gli._x + 5;
}
if ((gli._x > 162) & (gli._x < 168)) {
gli._rotation = random(100);
gli._y = _root.dona._y;
_root.life = _root.life - 10;
_root.dona.gotoAndPlay(2);
gli.play();
}
}
if (gli.hitTest(_root.leb) || (_root._currentframe != 10)) {
_root.scor = _root.scor + 10;
gli.gotoAndStop(5);
gli.swapDepths(5);
gli.removeMovieClip();
}
};
if (((_root.ad._currentframe == 1) & (_root.gliz2 == 0)) & (random(1000) > 960)) {
var gli1 = _root.attachMovie("gli1", "gli1" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
gli1.onEnterFrame = function () {
if (gli1._currentframe == 1) {
_root.gliz2 = 1;
gli1._x = _root.ad._x;
gli1._y = _root.ad._y;
if (((_root.ad._x > 0) & (_root.ad._x < 550)) & (random(1000) > 994)) {
gli1.play();
}
}
if (gli1._currentframe == 2) {
_root.gliz2 = 0;
gli1._y = gli1._y + 2;
if (gli1._y > 370) {
gli1._y = 370;
gli1.gotoAndStop(3);
}
}
if (gli1._currentframe == 3) {
if (gli1._x > _root.dona2._x) {
gli1._x = gli1._x - 5;
} else {
gli1._x = gli1._x + 5;
}
if ((gli1._x > 365) & (gli1._x < 420)) {
gli1._rotation = random(100);
gli1._y = _root.dona2._y;
_root.life2 = _root.life2 - 10;
_root.dona2.gotoAndPlay(2);
gli1.play();
}
}
if (gli1.hitTest(_root.leb3) || (_root._currentframe != 10)) {
_root.score = _root.score + 10;
gli1.gotoAndStop(5);
gli1.swapDepths(5);
gli1.removeMovieClip();
}
};
}
};
Instance of Symbol 212 MovieClip "leb" in Frame 10
onClipEvent (enterFrame) {
if (_root.POU == 0) {
if (_currentframe == 1) {
_root.poz = 0;
_x = 171;
_y = 233;
_root.newx = _root.celownik._y;
_root.newy = _root.celownik._x;
var initx = _x;
var inity = _y;
_rotation = (Math.atan2(_root.newx - inity, _root.newy - initx) / (Math.PI/180));
xSpeed = 20 * Math.cos(_rotation * (Math.PI/180));
ySpeed = 20 * Math.sin(_rotation * (Math.PI/180));
if (Key.isDown(32) & (_root.celownik._y < 230)) {
_root.pozy = getProperty(_root.celownik, _y);
play();
}
}
if (_currentframe == 2) {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_y < _root.pozy) {
_root.poz = 1;
}
if (_root.poz == 1) {
play();
}
}
}
}
Instance of Symbol 214 MovieClip "celownik" in Frame 10
onClipEvent (enterFrame) {
if ((_root.POU == 0) & (_y < 232)) {
if (Key.isDown(87)) {
_y = (_y - 5);
}
if (Key.isDown(83)) {
_y = (_y + 5);
}
if (Key.isDown(65)) {
_x = (_x - 5);
}
if (Key.isDown(68)) {
_x = (_x + 5);
}
}
}
Frame 11
stopAllSounds();
Frame 13
stopAllSounds();
Frame 14
stopAllSounds();
Frame 15
stopAllSounds();
Frame 16
stopAllSounds();
Symbol 7 MovieClip [gli1] Frame 1
stop();
Symbol 7 MovieClip [gli1] Frame 2
stop();
Symbol 7 MovieClip [gli1] Frame 3
Symbol 7 MovieClip [gli1] Frame 4
stop();
Symbol 7 MovieClip [gli1] Frame 5
stop();
Symbol 15 MovieClip [krew] Frame 1
stop();
Symbol 15 MovieClip [krew] Frame 5
stop();
Symbol 19 MovieClip [gli] Frame 1
stop();
Symbol 19 MovieClip [gli] Frame 2
stop();
Symbol 19 MovieClip [gli] Frame 3
Symbol 19 MovieClip [gli] Frame 4
stop();
Symbol 19 MovieClip [gli] Frame 5
stop();
Symbol 52 Button
on (press) {
getURL ("http://www.games.fratu.pl", "_self");
}
Symbol 53 MovieClip Frame 1
Percentloaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (Percentloaded != 100) {
bar._xscale = Percentloaded;
} else {
gotoAndStop (3);
}
Symbol 53 MovieClip Frame 2
gotoAndPlay (1);
Symbol 53 MovieClip Frame 3
stop();
Symbol 303 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.32");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 304 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 66 MovieClip Frame 75
stop();
_root.starta = 1;
Symbol 73 Button
on (release) {
_root.gotoAndStop(5);
stopAllSounds();
}
Symbol 75 Button
on (release) {
_root.gotoAndStop(6);
stopAllSounds();
}
Symbol 77 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 79 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"5bc4d444d0574fce"});
}
Symbol 81 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 86 Button
on (release) {
getURL ("http://www.dedegames.com/", "_blank");
}
Symbol 91 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 96 Button
on (release) {
_root.gotoAndStop(13);
}
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
stop();
Symbol 125 MovieClip Frame 4
stop();
Symbol 130 Button
on (release) {
_root.gotoAndStop(14);
}
Symbol 176 MovieClip Frame 163
stop();
Symbol 179 MovieClip Frame 30
_root.sec = _root.sec - 1;
Symbol 186 MovieClip Frame 5400
stop();
_root.endzik = 1;
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = (0.4 * _root.life);
}
Instance of Symbol 196 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
_height = (0.4 * _root.life2);
}
Instance of Symbol 199 MovieClip in Symbol 200 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = _root.ub;
}
Symbol 204 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Instance of Symbol 210 MovieClip in Symbol 212 MovieClip Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root.ak)) {
_root.ak.play();
_root.scor = _root.scor + 10;
}
if (hitTest(_root.ad)) {
_root.ad.play();
_root.scor = _root.scor - 10;
_root.life = _root.life - 10;
_root.dona.gotoAndPlay(2);
}
if (hitTest(_root.aj)) {
_root.aj.play();
_root.scor = _root.scor + 10;
}
if (hitTest(_root.af)) {
_root.af.play();
_root.scor = _root.scor + 10;
}
if (hitTest(_root.az)) {
_root.az.gotoAndStop(4);
_root.scor = _root.scor + 10;
}
if (hitTest(_root.as)) {
_root.as.play();
_root.scor = _root.scor - 10;
_root.dona.gotoAndPlay(2);
_root.life = _root.life - 10;
}
if (hitTest(_root.al)) {
_root.al.play();
_root.scor = _root.scor + 10;
}
if (hitTest(_root.ah)) {
_root.ah.play();
_root.scor = _root.scor + 10;
}
if (hitTest(_root.ag)) {
_root.ag.play();
_root.scor = _root.scor + 10;
}
if (hitTest(_root.ax)) {
_root.ax.gotoAndStop(4);
_root.scor = _root.scor + 10;
}
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 3
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
Symbol 220 MovieClip Frame 3
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 224 MovieClip Frame 3
stop();
Instance of Symbol 199 MovieClip in Symbol 225 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = _root.ub2;
}
Symbol 229 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Instance of Symbol 233 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (enterFrame) {
if (hitTest(_root.ak)) {
_root.ak.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ad)) {
_root.ad.play();
_root.score = _root.score - 10;
_root.dona2.gotoAndPlay(2);
_root.life2 = _root.life2 - 10;
}
if (hitTest(_root.aj)) {
_root.aj.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.af)) {
_root.af.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.az)) {
_root.az.gotoAndStop(4);
_root.score = _root.score + 10;
}
if (hitTest(_root.as)) {
_root.as.play();
_root.score = _root.score - 10;
_root.life2 = _root.life2 - 10;
_root.dona2.gotoAndPlay(2);
}
if (hitTest(_root.al)) {
_root.al.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ah)) {
_root.ah.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ag)) {
_root.ag.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ax)) {
_root.ax.gotoAndStop(4);
_root.score = _root.score + 10;
}
}
Instance of Symbol 210 MovieClip in Symbol 236 MovieClip Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root.ak)) {
_root.ak.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ad)) {
_root.ad.play();
_root.score = _root.score - 10;
_root.dona2.gotoAndPlay(2);
_root.life2 = _root.life2 - 10;
}
if (hitTest(_root.aj)) {
_root.aj.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.af)) {
_root.af.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.az)) {
_root.az.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.as)) {
_root.as.play();
_root.score = _root.score - 10;
_root.dona2.gotoAndPlay(2);
_root.life2 = _root.life2 - 10;
}
if (hitTest(_root.al)) {
_root.al.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ah)) {
_root.ah.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ag)) {
_root.ag.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ax)) {
_root.ax.gotoAndStop(4);
_root.score = _root.score + 10;
}
}
Symbol 238 Button
on (release) {
my_sound = new Sound();
my_sound.setVolume(0);
gotoAndStop (2);
}
Symbol 240 Button
on (release) {
my_sound = new Sound();
my_sound.setVolume(100);
gotoAndStop (1);
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 244 Button
on (release) {
_root.POU = 0;
}
Symbol 247 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 249 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(3);
}
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Instance of Symbol 210 MovieClip in Symbol 259 MovieClip Frame 3
onClipEvent (enterFrame) {
if (hitTest(_root.ak)) {
_root.ak.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ad)) {
_root.ad.play();
_root.score = _root.score - 10;
_root.dona2.gotoAndPlay(2);
_root.life2 = _root.life2 - 10;
}
if (hitTest(_root.aj)) {
_root.aj.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.af)) {
_root.af.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.az)) {
_root.az.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.as)) {
_root.as.play();
_root.score = _root.score - 10;
_root.dona2.gotoAndPlay(2);
_root.life2 = _root.life2 - 10;
}
if (hitTest(_root.al)) {
_root.al.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ah)) {
_root.ah.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ag)) {
_root.ag.play();
_root.score = _root.score + 10;
}
if (hitTest(_root.ax)) {
_root.ax.gotoAndStop(4);
_root.score = _root.score + 10;
}
}
Symbol 266 Button
on (release) {
_root.gotoAndStop(12);
}
Symbol 268 Button
on (release) {
gotoAndStop (3);
}
Symbol 270 Button
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"5bc4d444d0574fce", score:_root.scor, name:_root.nam});
}
Symbol 277 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 281 Button
on (release) {
_root.gotoAndStop(9);
}