Frame 1
function moveLoaded() {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
myInfo = ("Loaded " + percent) + "%";
if (loaded == total) {
_root.onEnterFrame = undefined;
gotoAndStop (2);
}
}
stop();
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
total = _root.getBytesTotal();
_root.onEnterFrame = moveLoaded;
Frame 2
function Mut() {
fon.setVolume(myMut);
}
function myControl() {
i = 10;
while (i < (puli + 1)) {
if ((myCyan["pulia" + i]._x - myRed["pulia" + i]._x) > -17) {
myCyan["pulia" + i]._xscale = myCyan["pulia" + i]._xscale - 2;
myCyan["pulia" + i]._yscale = myCyan["pulia" + i]._yscale - 2;
myRed["pulia" + i]._xscale = myRed["pulia" + i]._xscale - 2;
myRed["pulia" + i]._yscale = myRed["pulia" + i]._yscale - 2;
myCyan["pulia" + i]._x = myCyan["pulia" + i]._x - 1;
s = 0;
while (s < urovni.length) {
vybor = urovni[s].split("|");
if ((myCyan["pulia" + i]._x - myRed["pulia" + i]._x) == vybor[0]) {
myCyan["pulia" + i].swapDepths(myCyan[vybor[1]]);
myRed["pulia" + i].swapDepths(myRed[vybor[1]]);
if ((((vybor[1].indexOf("utka") != -1) && (myRed[vybor[1]]._currentframe == 1)) && (myRed["pulia" + i]._currentframe == 1)) && (myRed[vybor[1]].hitTest(myRed["pulia" + i]._x, myRed["pulia" + i]._y, false))) {
popadanie.start(0, 1);
myRed["pulia" + i].nextFrame();
myCyan["pulia" + i].nextFrame();
hits++;
score = score + Number(vybor[2]);
myRed[vybor[1]].nextFrame();
myCyan[vybor[1]].nextFrame();
}
}
if (((myCyan["pulia" + i]._x - myRed["pulia" + i]._x) <= -17) && (i == 40)) {
game = "over";
clearInterval(idControl);
Mouse.show();
myRed.pricel._visible = 0;
myCyan.pricel._visible = 0;
myInfo = ((((("<p align='center'><br><br><b><font size ='25'>GAME OVER</font><br><br>score: " + score) + "<br>hits: ") + hits) + "<br>misses: ") + (30 - hits)) + "<br><br><u><a href='asfunction:_root.myStart'>NEW GAME</a></u>";
myRed.ramka.gotoAndStop(1);
myCyan.ramka.gotoAndStop(1);
cymbale.onSoundComplete = function () {
};
cymbale.start(0, 1);
}
s++;
}
}
tablo = (("<p align='center'><b>bullets: " + (40 - puli)) + " | score: ") + score;
i++;
}
if (myCyan.utka1._x > 510) {
myRed.utka1._x = 49;
myCyan.utka1._x = 43;
myRed.utka1.gotoAndStop(1);
myCyan.utka1.gotoAndStop(1);
} else {
myRed.utka1._x = myRed.utka1._x + (3 + (hits / 5));
myCyan.utka1._x = myCyan.utka1._x + (3 + (hits / 5));
}
if (myCyan.utka2._x < 42) {
myRed.utka2._x = 520;
myCyan.utka2._x = 510;
myRed.utka2.gotoAndStop(1);
myCyan.utka2.gotoAndStop(1);
} else {
myRed.utka2._x = myRed.utka2._x - (2 + (hits / 5));
myCyan.utka2._x = myCyan.utka2._x - (2 + (hits / 5));
}
if (myCyan.utka3._x > 514) {
myRed.utka3._x = 40;
myCyan.utka3._x = 26;
myRed.utka3.gotoAndStop(1);
myCyan.utka3.gotoAndStop(1);
} else {
myRed.utka3._x = myRed.utka3._x + (1 + (hits / 5));
myCyan.utka3._x = myCyan.utka3._x + (1 + (hits / 5));
}
}
function myStart() {
fon.stop();
puli = 10;
score = 0;
bonus = 0;
myMut = 100;
hits = 0;
game = "";
myInfo = "";
r = 0;
while (r < 41) {
myCyan["pulia" + r].removeMovieClip();
myRed["pulia" + r].removeMovieClip();
vybor = urovni[r].split("|");
myRed[vybor[1]].swapDepths(Number(vybor[3]));
myCyan[vybor[1]].swapDepths(Number(vybor[3]));
if (vybor[1].indexOf("utka") != -1) {
myRed[vybor[1]].gotoAndStop(1);
myCyan[vybor[1]].gotoAndStop(1);
}
r++;
}
myRed.ramka.gotoAndStop(2);
myCyan.ramka.gotoAndStop(2);
idControl = setInterval(myControl, 50);
fon.start(0, 1);
}
myInfo = "<p align='center'><br><br><br><b>Use red/cyan glasses to view in 3D.<br><br>Description: Use the mouse to aim and click to shoot.<br><br><p align='center'><u><a href='asfunction:myStart'>START</a></b></u><br>";
tablo = "<p align='center'><b>anaglyph game";
game = "over";
onMouseMove = function () {
if (((((_root._ymouse > 50) && (_root._ymouse < 380)) && (_root._xmouse > 50)) && (_root._xmouse < 500)) && (game != "over")) {
Mouse.hide();
myRed.pricel._visible = 1;
myCyan.pricel._visible = 1;
myRed.pricel._x = _xmouse;
myRed.pricel._y = _ymouse;
myCyan.pricel._x = _xmouse + 5;
myCyan.pricel._y = _ymouse;
} else {
Mouse.show();
myRed.pricel._visible = 0;
myCyan.pricel._visible = 0;
}
updateAfterEvent();
};
vystrel = new Sound("myCyan");
vystrel.attachSound("fire");
popadanie = new Sound("myCyan");
popadanie.attachSound("clank");
cymbale = new Sound("myCyan");
cymbale.attachSound("cymbale");
fon = new Sound("myCyan");
fon.attachSound("fon");
fon.onSoundComplete = function () {
fon.start(0, 1);
};
onMouseDown = function () {
if ((myCyan.pricel._visible == 1) && (puli < 40)) {
vystrel.start(0, 1);
puli++;
myCyan.attachMovie("pulia", "pulia" + puli, puli);
clip1 = myCyan["pulia" + puli];
clip1._x = myCyan.pricel._x;
clip1._y = myCyan.pricel._y;
myRed.attachMovie("pulia", "pulia" + puli, puli);
clip2 = myRed["pulia" + puli];
clip2._x = myRed.pricel._x;
clip2._y = myRed.pricel._y;
myCyan.pricel.swapDepths(puli);
myRed.pricel.swapDepths(puli);
}
};
urovni = ["5|pricel||9", "0|ramka||8", "-2|shtora||7", "-5|volny||6", "-6|utka1|1|5", "-8|pole||4", "-10|utka2|2|3", "-12|zabor||2", "-13|utka3|3|1", "-17|solnce||0"];
_root.Nemo = "\u0413\u043E\u0441\u043F\u043E\u0434\u044C \u043C\u0438\u043B\u043E\u0441\u0435\u0440\u0434\u043D\u044B\u0439, \u0441\u043F\u0430\u0441\u0438\u0431\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F\u0448\u043D\u0438\u0439 \u0434\u0435\u043D\u044C\r\u0410\u043D\u0433\u0435\u043B \u043C\u043E\u0439, \u0441\u043F\u0430\u0441\u0438\u0431\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F\u0448\u043D\u0438\u0439 \u0434\u0435\u043D\u044C\r\u0413\u043E\u0441\u043F\u043E\u0434\u044C \u043C\u0438\u043B\u043E\u0441\u0435\u0440\u0434\u043D\u044B\u0439, \u0441\u043F\u0430\u0441\u0438 \u043C\u0435\u043D\u044F\r\u0410\u043D\u0433\u0435\u043B \u043C\u043E\u0439, \u043F\u043E\u043C\u043E\u0433\u0438 \u043C\u043D\u0435\r\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430\r\u0412\u0435\u0434\u0438\u0442\u0435 \u043C\u0435\u043D\u044F \u0442\u0443\u0434\u0430, \u043A\u0443\u0434\u0430 \u044F \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u0434\u0442\u0438\r\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u043C\u043D\u0435 \u043D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0442\u043E, \u0447\u0442\u043E \u044F \u0434\u043E\u043B\u0436\u0435\u043D \u043D\u0430\u043F\u0438\u0441\u0430\u0442\u044C";
_root.Nemo = _root.Nemo + "\u0413\u043E\u0441\u043F\u043E\u0434\u044C \u043C\u0438\u043B\u043E\u0441\u0435\u0440\u0434\u043D\u044B\u0439, \u0441\u0434\u0435\u043B\u0430\u0439 \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0442\u0430\u043A, \u0447\u0442\u043E \u0431\u044B \u0443\u043C\u0435\u0440\u0448\u0438\u0435 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u043B\u044E\u0434\u0438 \u0438 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0435 \u043F\u043E\u043F\u0430\u043B\u0438 \u0432 \u0441\u0432\u043E\u0439 \u0440\u0430\u0439.";
Symbol 11 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 67 Button
on (release) {
_root.myMut = 0;
_root.Mut();
nextFrame();
}
Symbol 70 Button
on (release) {
_root.myMut = 100;
_root.Mut();
prevFrame();
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 74 Button
on (release) {
getURL ("http://shtukoviny.ru", "_blank");
}
Symbol 78 MovieClip [pulia] Frame 1
stop();