Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgPrel - 2;
if (tgPrel <= 9) {
procent = "0" + tg;
trace(procent);
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 175
_root.greenCountAAA = 0;
_root.redCountAAA = 0;
fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
i = 0;
while (i < 105) {
_root["bullet" + i].removeMovieClip();
i++;
}
_root.stagenum = 1;
stop();
Instance of Symbol 114 MovieClip in Frame 175
//component parameters
onClipEvent (construct) {
wynume = "MicroTanks";
wyculoare = 4796178 /* 0x492F12 */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Sus";
wyinstructions = true;
}
Frame 176
function compareArrays(arr1, arr2) {
if (arr1.length != arr2.length) {
return(false);
}
arrsame = true;
icnt = 0;
while (icnt < arr1.length) {
if (arr1[icnt] != arr2[icnt]) {
arrsame = false;
break;
}
icnt++;
}
if (arrsame) {
return(true);
}
return(false);
}
function bombhit(who) {
_root.tankhit = who;
if (who eq "e") {
_root.greenCountAAA = _root.greenCountAAA + 10;
trace(_root.greenCountAAA + "green");
_root.rscore = _root.rscore - 10;
} else if (who eq "u") {
_root.redCountAAA = _root.redCountAAA + 10;
trace(_root.redCountAAA + "red");
_root.gscore = _root.gscore - 10;
}
if (_root.rscore == 0) {
if (_root.gameplayers == 2) {
if (_root.hitbg._currentframe == 15) {
if (_root.greenCountAAA > _root.redCountAAA) {
_root.greencomp._x = _root.greencomp.x;
}
} else {
_root.greenwonmc._x = _root.greenwonmc.x;
}
} else if (_root.hitbg._currentframe == 15) {
_root.stagecomp._x = _root.stagecomp.x;
} else {
_root.stagewonmc._x = _root.stagewonmc.x;
}
_root.gameover = true;
} else if (_root.gscore == 0) {
if (_root.gameplayers == 2) {
if (_root.hitbg._currentframe == 15) {
if (_root.redCountAAA > _root.greenCountAAA) {
_root.redcomp._x = _root.redcomp.x;
} else if (_root.redCountAAA == _root.greenCountAAA) {
_root.tieComp._x = 382.3;
}
} else {
_root.redwonmc._x = _root.redwonmc.x;
}
} else {
_root.gameovermc._x = _root.gameovermc.x;
}
_root.gameover = true;
}
}
function decide_angle(flag) {
if (flag == 2) {
dx = _root.enemy_tank._x - _root.user_tank._x;
dy = _root.enemy_tank._y - _root.user_tank._y;
rad = Math.atan2(dy, dx);
_root.tempmc._rotation = (rad * 57.2957795130823) - 180;
_root.tarang = _root.tempmc._rotation;
} else if (flag == 1) {
dx = _root.enemy_tank._x - _root.user_tank._x;
dy = _root.enemy_tank._y - _root.user_tank._y;
rad = Math.atan2(dy, dx);
_root.tempmc._rotation = ((rad * 57.2957795130823) - 180) + random(360);
_root.tarang = _root.tempmc._rotation;
}
}
function updflag() {
if (_root.flagg == 2) {
_root.flagg = 0;
}
_root.flagg++;
return(_root.flagg);
}
_root.bcount = 1;
_root.hitbg.gotoAndStop(_root.stagenum);
_root.gbcount = 1;
_root.rbcount = 1;
_root.gscore = 100;
_root.rscore = 100;
_root.flagg = 0;
_root.user_leftkey = 37;
_root.user_rightkey = 39;
_root.user_upkey = 38;
_root.user_downkey = 40;
_root.user_shootkey = 32;
_root.enemy_leftkey = 65;
_root.enemy_rightkey = 68;
_root.enemy_upkey = 87;
_root.enemy_downkey = 83;
_root.enemy_shootkey = 17;
_root.pausekey = 80;
_root.gameover = false;
_root.paused = false;
stop();
Instance of Symbol 185 MovieClip "hitbg" in Frame 176
onClipEvent (load) {
if (_root.gameplayers == 1) {
_root.cheatingenabled = true;
} else {
_root.cheatingenabled = false;
_root.cheatsenabled = false;
_root.nobomblimit = false;
_root.avoidenemy = false;
}
_root.hitkey = 1;
}
onClipEvent (keyDown) {
if (Key.getCode() == 66) {
_root.hkpressed = "b";
} else if ((Key.getCode() == 76) and (_root.hkpressed eq "b")) {
_root.hkpressed = "l";
} else if ((Key.getCode() == 65) and (_root.hkpressed eq "l")) {
_root.hkpressed = "a";
} else if ((Key.getCode() == 83) and (_root.hkpressed eq "a")) {
_root.hkpressed = "s";
} else if ((Key.getCode() == 84) and (_root.hkpressed eq "s")) {
_root.hkpressed = "t";
_root.cheatsenabled = true;
_root.cheatmark._alpha = 100;
} else {
_root.hkpressed = "w";
}
}
onClipEvent (enterFrame) {
if (_root.cheatsenabled) {
if ((Key.isDown(17) and Key.isDown(75)) and (!_root.ctrlpressed)) {
_root.rscore = 10;
_root.bombhit("e");
_root.ctrlpressed = true;
}
if (((Key.isDown(17) and Key.isDown(66)) and (!_root.nobomblimit)) and (!_root.ctrlpressed)) {
_root.nobomblimit = true;
_root.nolimitmc._alpha = 100;
_root.ctrlpressed = true;
} else if (((Key.isDown(17) and Key.isDown(66)) and _root.nobomblimit) and (!_root.ctrlpressed)) {
_root.nobomblimit = false;
_root.nolimitmc._alpha = 0;
_root.ctrlpressed = true;
}
if (((Key.isDown(17) and Key.isDown(65)) and (!_root.avoidenemy)) and (!_root.ctrlpressed)) {
_root.avoidenemy = true;
_root.avoidenemymc._alpha = 100;
_root.ctrlpressed = true;
} else if (((Key.isDown(17) and Key.isDown(65)) and _root.avoidenemy) and (!_root.ctrlpressed)) {
_root.avoidenemy = false;
_root.avoidenemymc._alpha = 0;
_root.ctrlpressed = true;
}
if (((Key.isDown(17) and Key.isDown(68)) and (!_root.noobs)) and (!_root.ctrlpressed)) {
_root.noobs = true;
_root.noobsmc._alpha = 100;
_root.ctrlpressed = true;
} else if (((Key.isDown(17) and Key.isDown(68)) and _root.noobs) and (!_root.ctrlpressed)) {
_root.noobs = false;
_root.noobsmc._alpha = 0;
_root.ctrlpressed = true;
}
}
if (!Key.isDown(17)) {
_root.ctrlpressed = false;
}
}
Instance of Symbol 189 MovieClip "mainbullet" in Frame 176
onClipEvent (enterFrame) {
if ((!_root.paused) and (!_root.gameover)) {
if (_name eq "mainbullet") {
if (_root.bcount == 100) {
_root.bcount = 1;
}
}
if (_name ne "mainbullet") {
_alpha = 100;
r = _rotation + 90;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxx = (r / 90) * speed;
}
r = _rotation;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxy = (r / 90) * speed;
}
_x = (_x + (maxx * ease));
_y = (_y + (maxy * ease));
if ((_root.hitbg.hitTest(_x, _y, true) and (!_root.noobs)) or (_root.hitbg2.hitTest(_x, _y, true) and _root.noobs)) {
if (nowhit) {
this.removeMovieClip();
}
nowhit = true;
_rotation = (_rotation * -1);
xM = _x;
yM = _y;
r = _rotation + 90;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxx = (r / 90) * speed;
}
r = _rotation;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxy = (r / 90) * speed;
}
_x = (_x + (maxx * ease));
_y = (_y + (maxy * ease));
if ((_root.hitbg.hitTest(_x, _y, true) and (!_root.noobs)) or (_root.hitbg2.hitTest(_x, _y, true) and _root.noobs)) {
_x = xM;
_y = yM;
_rotation = (_rotation + 180);
} else {
_x = xM;
_y = yM;
}
} else {
nowhit = false;
}
life++;
_root.bombhit("");
if (_root.enemy_top.hitTest(_x, _y, true)) {
_root.bombhit("e");
o = new Object();
o.x = _x;
o.y = _y;
_root.enemy_top.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.enemy_top.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.enemy_tank.createReflection(1, rotval, 6, rotvar, 0);
} else if (_root.enemy_bot.hitTest(_x, _y, true)) {
_root.bombhit("e");
o = new Object();
o.x = _x;
o.y = _y;
_root.enemy_bot.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.enemy_bot.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.enemy_tank.createReflection(1, rotval, 6, rotvar, 0);
} else if (_root.enemy_left.hitTest(_x, _y, true)) {
_root.bombhit("e");
o = new Object();
o.x = _x;
o.y = _y;
_root.enemy_left.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.enemy_left.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.enemy_tank.createReflection(1, rotval, 6, rotvar, 0);
} else if (_root.enemy_right.hitTest(_x, _y, true)) {
_root.bombhit("e");
o = new Object();
o.x = _x;
o.y = _y;
_root.enemy_right.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.enemy_right.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.enemy_tank.createReflection(1, rotval, 6, rotvar, 0);
}
if (_root.user_top.hitTest(_x, _y, true) and (!_root.avoidenemy)) {
_root.bombhit("u");
o = new Object();
o.x = _x;
o.y = _y;
_root.user_top.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.user_top.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.user_tank.createReflection(1, rotval, 6, rotvar);
} else if (_root.user_bot.hitTest(_x, _y, true) and (!_root.avoidenemy)) {
_root.bombhit("u");
o = new Object();
o.x = _x;
o.y = _y;
_root.user_bot.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.user_bot.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.user_tank.createReflection(1, rotval, 6, rotvar);
} else if (_root.user_left.hitTest(_x, _y, true) and (!_root.avoidenemy)) {
_root.bombhit("u");
o = new Object();
o.x = _x;
o.y = _y;
_root.user_left.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.user_left.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.user_tank.createReflection(1, rotval, 6, rotvar);
} else if (_root.user_right.hitTest(_x, _y, true) and (!_root.avoidenemy)) {
_root.bombhit("u");
o = new Object();
o.x = _x;
o.y = _y;
_root.user_right.mc.globalToLocal(o);
actr = o.x + 15;
per = (actr / 30) * 100;
rotval = (per / 100) * 130;
rotval = rotval + _root.user_right.minVal;
rotvar = (per / 100) * 10;
rotvar = rotvar - 5;
_root.user_tank.createReflection(1, rotval, 6, rotvar);
}
if ((_root.tankhit eq "e") or (_root.tankhit eq "u")) {
_root.attachMovie("Blast", "blast" + _root.blcnt, _root.blcnt);
_root["blast" + _root.blcnt]._x = _x;
_root["blast" + _root.blcnt]._y = _y;
_root.blcnt++;
this.removeMovieClip();
}
if (life == 140) {
this.removeMovieClip();
}
}
}
}
onClipEvent (load) {
if (_name ne "mainbullet") {
ease = 1;
speed = 8;
_alpha = 0;
life = 1;
r1d = false;
} else {
_root.blcnt = 1000;
}
}
onClipEvent (unload) {
if (_root[fr + "bcount"] > 1) {
_root[fr + "bcount"]--;
}
}
Instance of Symbol 198 MovieClip "user_tank" in Frame 176
onClipEvent (load) {
function createReflection(re_otype, re_rot, re_speed, re_rotm) {
keyingstopped = true;
rotary._rotation = re_rot;
mymaxx = maxx;
mymaxy = maxy;
if (!re_otype) {
if (ease < 0.5) {
ease = 0.5;
}
} else {
ease = 1;
maxx = maxx * 2;
maxy = maxy * 2;
}
speed = re_speed;
ref_speed = re_rotm;
}
function moveforward() {
body.wheel1.anim.nextFrame();
body.wheel2.anim.nextFrame();
if (body.wheel1.anim._currentframe == 10) {
body.wheel1.anim.gotoAndStop(1);
}
if (body.wheel2.anim._currentframe == 10) {
body.wheel2.anim.gotoAndStop(1);
}
}
function movebackward() {
body.wheel1.anim.prevFrame();
body.wheel2.anim.prevFrame();
if (body.wheel1.anim._currentframe == 1) {
body.wheel1.anim.gotoAndStop(10);
}
if (body.wheel2.anim._currentframe == 1) {
body.wheel2.anim.gotoAndStop(10);
}
}
function moverotbackward() {
body.wheel1.anim.nextFrame();
body.wheel2.anim.prevFrame();
if (body.wheel1.anim._currentframe == 10) {
body.wheel1.anim.gotoAndStop(1);
}
if (body.wheel2.anim._currentframe == 1) {
body.wheel2.anim.gotoAndStop(10);
}
}
function moverotforward() {
body.wheel1.anim.prevFrame();
body.wheel2.anim.nextFrame();
if (body.wheel1.anim._currentframe == 1) {
body.wheel1.anim.gotoAndStop(10);
}
if (body.wheel2.anim._currentframe == 10) {
body.wheel2.anim.gotoAndStop(1);
}
}
function updateHorHitMCsPos(xP, yP) {
_root.user_top._x = _root.user_top._x + xP;
_root.user_top._y = _root.user_top._y + yP;
_root.user_bot._x = _root.user_bot._x + xP;
_root.user_bot._y = _root.user_bot._y + yP;
_root.user_left._x = _root.user_left._x + xP;
_root.user_left._y = _root.user_left._y + yP;
_root.user_right._x = _root.user_right._x + xP;
_root.user_right._y = _root.user_right._y + yP;
}
function updateHorHitMCsRot(xR) {
myxR = xR;
if (xR < 0) {
xR = xR * -1;
}
if (myxR > 0) {
xC = 1;
while (xC <= xR) {
_root.user_top.prevFrame();
_root.user_bot.prevFrame();
_root.user_left.prevFrame();
_root.user_right.prevFrame();
if (_root.user_top._currentframe == 1) {
_root.user_top.gotoAndStop(90);
_root.user_bot.gotoAndStop(90);
_root.user_left.gotoAndStop(90);
_root.user_right.gotoAndStop(90);
}
xC++;
}
} else {
xC = 1;
while (xC <= xR) {
_root.user_top.nextFrame();
_root.user_bot.nextFrame();
_root.user_left.nextFrame();
_root.user_right.nextFrame();
if (_root.user_top._currentframe == 90) {
_root.user_top.gotoAndStop(1);
_root.user_bot.gotoAndStop(1);
_root.user_left.gotoAndStop(1);
_root.user_right.gotoAndStop(1);
}
xC++;
}
}
}
function updateHaltHorHitMCsRot(xR) {
myxR = xR;
if (xR < 0) {
xR = xR * -1;
}
if (myxR > 0) {
xC = 1;
while (xC <= xR) {
_root.user_top.prevFrame();
_root.user_bot.prevFrame();
_root.user_left.prevFrame();
_root.user_right.prevFrame();
if (_root.user_top._currentframe == 1) {
_root.user_top.gotoAndStop(90);
_root.user_bot.gotoAndStop(90);
_root.user_left.gotoAndStop(90);
_root.user_right.gotoAndStop(90);
}
xC++;
}
} else {
xC = 1;
while (xC <= xR) {
_root.user_top.nextFrame();
_root.user_bot.nextFrame();
_root.user_left.nextFrame();
_root.user_right.nextFrame();
if (_root.user_top._currentframe == 90) {
_root.user_top.gotoAndStop(1);
_root.user_bot.gotoAndStop(1);
_root.user_left.gotoAndStop(1);
_root.user_right.gotoAndStop(1);
}
xC++;
}
}
}
Rx = _x;
Ry = _y;
Rr = _rotation;
speed = 6;
mainspeed = 6;
ease = 0;
lastbombtime = 0;
moveRot = 2;
stayRot = 6;
}
onClipEvent (enterFrame) {
if (_root.hitbg.tren.hitTest(this._x, this._y, true)) {
valRandom = random(2) + 3;
valPM = random(1);
if (valPM == 0) {
valPM = -1;
valX = this._x;
valY = this._y;
}
_root.trenBoom._x = valX;
_root.trenBoom._y = valY;
_root.trenBoom.gotoAndPlay(1);
this._x = this._x + ((valRandom * valPM) * 3);
this._y = this._y + 10;
}
if ((!_root.paused) and (!_root.gameover)) {
if (keyingstopped) {
_rotation = (_rotation + int(ref_speed));
updateHorHitMCsRot(int(ref_speed));
}
if (ease == 0) {
if (keyingstopped) {
hitcheck = false;
ic = 1;
while (ic <= 8) {
o = new Object();
o.x = this["hit0" + ic]._x;
o.y = this["hit0" + ic]._y;
this.localToGlobal(o);
if (_root.hitbg.hitTest(o.x, o.y, true)) {
hitcheck = true;
break;
}
ic++;
}
if (!hitcheck) {
keyingstopped = false;
rotary._rotation = _rotation;
maxx = mymaxx;
maxy = mymaxy;
speed = mainspeed;
} else {
ease = 1;
}
}
}
if (ease > 0) {
moveforward();
} else if (ease < 0) {
movebackward();
}
r = rotary._rotation + 90;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxx = (r / 90) * speed;
}
r = rotary._rotation;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxy = (r / 90) * speed;
}
if (Key.isDown(_root.user_leftkey) && (!Key.isDown(_root.user_downkey))) {
if (ease == 0) {
moverotbackward();
}
if (ease > 0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHaltHorHitMCsRot(-rotationC);
}
}
if (Key.isDown(_root.user_leftkey) && (Key.isDown(_root.user_downkey))) {
if (ease == 0) {
moverotforward();
}
if (ease > 0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(rotationC);
} else {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHaltHorHitMCsRot(-rotationC);
}
}
if (Key.isDown(_root.user_rightkey) && (!Key.isDown(_root.user_downkey))) {
if (ease == 0) {
moverotforward();
}
if (ease > 0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHaltHorHitMCsRot(rotationC);
}
}
if (Key.isDown(_root.user_rightkey) && (Key.isDown(_root.user_downkey))) {
if (ease == 0) {
moverotforward();
}
if (ease > 0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(-rotationC);
} else {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHaltHorHitMCsRot(rotationC);
}
}
if (Key.isDown(_root.user_upkey) and (!keyingstopped)) {
if (ease < 1) {
ease = ease + 0.09;
}
} else if (Key.isDown(_root.user_downkey) and (!keyingstopped)) {
trace(ease);
if (ease > -1) {
ease = ease - 0.09;
}
} else {
if (ease < 0) {
ease = ease + 0.09;
if (ease > 0) {
ease = 0;
}
}
if (ease > 0) {
ease = ease - 0.09;
if (ease < 0) {
ease = 0;
}
}
}
if (ease < 0.4) {
rotationC = stayRot;
} else {
rotationC = moveRot;
}
_x = (_x + (maxx * ease));
_y = (_y + (maxy * ease));
updateHorHitMCsPos(maxx * ease, maxy * ease);
if (Key.isDown(_root.user_shootkey) and ((_root.gbcount <= 5) or _root.nobomblimit)) {
if ((getTimer() - lastbombtime) >= 500) {
chkar = new Array();
chkar[0] = 0.2;
chkar[1] = -0.2;
chkar[2] = 0.3;
chkar[3] = -0.3;
if (ease < 0.3) {
createReflection(0, this["hit0" + (random(3) + 3)].rot, 2, chkar[random(4)]);
}
lastbombtime = getTimer();
_root.mainbullet.duplicateMovieClip("bullet" + _root.bcount, _root.bcount);
ns = new Sound();
ns.attachSound("Bomb");
ns.start();
o = new Object();
o.x = body.gun._x - 28;
o.y = body.gun._y;
this.body.gun.localToGlobal(o);
_root["bullet" + _root.bcount]._x = o.x;
_root["bullet" + _root.bcount]._y = o.y;
_root["bullet" + _root.bcount]._rotation = _rotation;
_root["bullet" + _root.bcount].fr = "g";
_root.bcount++;
_root.gbcount++;
}
}
if (muralihit) {
nowhitmcs = new Array();
ic = 1;
while (ic <= 8) {
o = new Object();
o.x = this["hit0" + ic]._x;
o.y = this["hit0" + ic]._y;
this.localToGlobal(o);
if (_root.hitbg.hitTest(o.x, o.y, true)) {
nowhitmcs.push("hit0" + ic);
}
ic++;
}
if (!_root.compareArrays(allhitmcs, nowhitmcs)) {
muralihit = false;
}
}
if (!muralihit) {
allhitmcs = new Array();
ic = 1;
while (ic <= 8) {
o = new Object();
o.x = this["hit0" + ic]._x;
o.y = this["hit0" + ic]._y;
this.localToGlobal(o);
if (_root.hitbg.hitTest(o.x, o.y, true)) {
createReflection(0, this["hit0" + ic].rot, mainspeed / 5);
muralihit = true;
allhitmcs.push("hit0" + ic);
}
ic++;
}
}
ic = 1;
while (ic <= 10) {
o = new Object();
o.x = this["ehit" + ic]._x;
o.y = this["ehit" + ic]._y;
this.localToGlobal(o);
if (_root.enemy_tank.hitTest(o.x, o.y, true)) {
nowspd = Math.max(speed, _root.enemy_tank.speed);
nowease = Math.max(ease, _root.enemy_tank.ease);
ease = nowease;
_root.enemy_tank.ease = nowease;
createReflection(0, this["ehit" + ic].rot, nowspd);
_root.enemy_tank.createReflection(0, this["ehit" + ic].rot + 180, nowspd);
}
ic++;
}
}
}
Instance of Symbol 203 MovieClip "enemy_tank" in Frame 176
onClipEvent (load) {
function createReflection(re_otype, re_rot, re_speed, re_rotm, re_flag) {
keyingstopped = true;
rotary._rotation = re_rot;
mymaxx = maxx;
mymaxy = maxy;
if (!re_otype) {
if (ease < 0.5) {
ease = 0.5;
}
} else {
ease = 1;
maxx = maxx * 2;
maxy = maxy * 2;
}
speed = re_speed;
ref_speed = re_rotm;
if ((_root.gameplayers == 1) and re_flag) {
if (!re_otype) {
_root.decide_angle(_root.updflag());
}
}
}
function moveforward() {
body.wheel1.anim.nextFrame();
body.wheel2.anim.nextFrame();
if (body.wheel1.anim._currentframe == 10) {
body.wheel1.anim.gotoAndStop(1);
}
if (body.wheel2.anim._currentframe == 10) {
body.wheel2.anim.gotoAndStop(1);
}
}
function movebackward() {
body.wheel1.anim.prevFrame();
body.wheel2.anim.prevFrame();
if (body.wheel1.anim._currentframe == 1) {
body.wheel1.anim.gotoAndStop(10);
}
if (body.wheel2.anim._currentframe == 1) {
body.wheel2.anim.gotoAndStop(10);
}
}
function moverotbackward() {
body.wheel1.anim.nextFrame();
body.wheel2.anim.prevFrame();
if (body.wheel1.anim._currentframe == 10) {
body.wheel1.anim.gotoAndStop(1);
}
if (body.wheel2.anim._currentframe == 1) {
body.wheel2.anim.gotoAndStop(10);
}
}
function moverotforward() {
body.wheel1.anim.prevFrame();
body.wheel2.anim.nextFrame();
if (body.wheel1.anim._currentframe == 1) {
body.wheel1.anim.gotoAndStop(10);
}
if (body.wheel2.anim._currentframe == 10) {
body.wheel2.anim.gotoAndStop(1);
}
}
function updateHorHitMCsPos(xP, yP) {
_root.enemy_top._x = _root.enemy_top._x + xP;
_root.enemy_top._y = _root.enemy_top._y + yP;
_root.enemy_bot._x = _root.enemy_bot._x + xP;
_root.enemy_bot._y = _root.enemy_bot._y + yP;
_root.enemy_left._x = _root.enemy_left._x + xP;
_root.enemy_left._y = _root.enemy_left._y + yP;
_root.enemy_right._x = _root.enemy_right._x + xP;
_root.enemy_right._y = _root.enemy_right._y + yP;
}
function updateHorHitMCsRot(xR) {
myxR = xR;
if (xR < 0) {
xR = xR * -1;
}
if (myxR > 0) {
xC = 1;
while (xC <= xR) {
_root.enemy_top.prevFrame();
_root.enemy_bot.prevFrame();
_root.enemy_left.prevFrame();
_root.enemy_right.prevFrame();
if (_root.enemy_top._currentframe == 1) {
_root.enemy_top.gotoAndStop(90);
_root.enemy_bot.gotoAndStop(90);
_root.enemy_left.gotoAndStop(90);
_root.enemy_right.gotoAndStop(90);
}
xC++;
}
} else {
xC = 1;
while (xC <= xR) {
_root.enemy_top.nextFrame();
_root.enemy_bot.nextFrame();
_root.enemy_left.nextFrame();
_root.enemy_right.nextFrame();
if (_root.enemy_top._currentframe == 90) {
_root.enemy_top.gotoAndStop(1);
_root.enemy_bot.gotoAndStop(1);
_root.enemy_left.gotoAndStop(1);
_root.enemy_right.gotoAndStop(1);
}
xC++;
}
}
}
Rx = _x;
Ry = _y;
Rr = _rotation;
speed = 6;
mainspeed = 6;
ease = 0;
lastbombtime = 0;
moveRot = 2;
stayRot = 6;
}
onClipEvent (enterFrame) {
if (_root.hitbg.tren.hitTest(this._x, this._y, true)) {
valRandomA = random(2) + 3;
valPMA = random(1);
if (valPMA == 0) {
valPMA = -1;
valXA = this._x;
valYA = this._y;
}
_root.trenBoom._x = valXA;
_root.trenBoom._y = valYA;
this._x = this._x + ((valRandomA * valPMA) * 3);
this._y = this._y + 10;
}
if ((!_root.paused) and (!_root.gameover)) {
if (keyingstopped) {
_rotation = (_rotation + int(ref_speed));
updateHorHitMCsRot(int(ref_speed));
}
if (ease == 0) {
if (keyingstopped) {
hitcheck = false;
ic = 1;
while (ic <= 8) {
o = new Object();
o.x = this["hit0" + ic]._x;
o.y = this["hit0" + ic]._y;
this.localToGlobal(o);
if (_root.hitbg.hitTest(o.x, o.y, true)) {
hitcheck = true;
break;
}
ic++;
}
if (!hitcheck) {
keyingstopped = false;
rotary._rotation = _rotation;
maxx = mymaxx;
maxy = mymaxy;
speed = mainspeed;
} else {
ease = 1;
}
}
}
if (ease > 0) {
moveforward();
} else if (ease < 0) {
movebackward();
}
r = rotary._rotation + 90;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxx = (r / 90) * speed;
}
r = rotary._rotation;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxy = (r / 90) * speed;
}
if (_root.gameplayers == 2) {
if (_root.gameover) {
trace("fdslkjfkdlsjklfjdskl");
}
if (Key.isDown(_root.enemy_leftkey) && (!Key.isDown(_root.enemy_downkey))) {
if (ease == 0) {
moverotbackward();
}
if (ease > 0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
}
}
if (Key.isDown(_root.enemy_leftkey) && (Key.isDown(_root.enemy_downkey))) {
if (ease == 0) {
moverotforward();
}
if (ease > 0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(rotationC);
} else {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHaltHorHitMCsRot(-rotationC);
}
}
if (Key.isDown(_root.enemy_rightkey) && (!Key.isDown(_root.enemy_downkey))) {
if (ease == 0) {
moverotforward();
}
if (ease > 0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
}
}
if (Key.isDown(_root.enemy_rightkey) && (Key.isDown(_root.enemy_downkey))) {
if (ease == 0) {
moverotforward();
}
if (ease > 0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(-rotationC);
} else {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHaltHorHitMCsRot(rotationC);
}
}
if (Key.isDown(_root.enemy_upkey) and (!keyingstopped)) {
if (ease < 1) {
ease = ease + 0.09;
}
} else if (Key.isDown(_root.enemy_downkey) and (!keyingstopped)) {
if (ease > -1) {
ease = ease - 0.09;
}
} else {
if (ease < 0) {
ease = ease + 0.09;
if (ease > 0) {
ease = 0;
}
}
if (ease > 0) {
ease = ease - 0.09;
if (ease < 0) {
ease = 0;
}
}
}
} else {
if (_root.cleftpressed) {
if (ease == 0) {
movebackward();
}
if (ease > 0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
}
}
if (_root.crightpressed) {
if (ease == 0) {
moveforward();
}
if (ease > 0.4) {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
} else if (ease < -0.4) {
_rotation = (_rotation - rotationC);
rotary._rotation = rotary._rotation - rotationC;
updateHorHitMCsRot(-rotationC);
} else {
_rotation = (_rotation + rotationC);
rotary._rotation = rotary._rotation + rotationC;
updateHorHitMCsRot(rotationC);
}
}
if (_root.cuppressed and (!keyingstopped)) {
if (ease < 1) {
ease = ease + 0.05;
}
} else if (_root.cdownpressed and (!keyingstopped)) {
if (ease > -1) {
ease = ease - 0.04;
}
} else {
if (ease < 0) {
ease = ease + 0.04;
if (ease > 0) {
ease = 0;
}
}
if (ease > 0) {
ease = ease - 0.04;
if (ease < 0) {
ease = 0;
}
}
}
}
if (ease < 0.4) {
rotationC = stayRot;
} else {
rotationC = moveRot;
}
_x = (_x + (maxx * ease));
_y = (_y + (maxy * ease));
updateHorHitMCsPos(maxx * ease, maxy * ease);
if (_root.gameplayers == 1) {
_root.checkbullet.duplicateMovieClip("bulletchk", 10000);
o = new Object();
o.x = body.gun._x - 28;
o.y = body.gun._y;
this.body.gun.localToGlobal(o);
_root.bulletchk._x = o.x;
_root.bulletchk._y = o.y;
_root.bulletchk._rotation = _rotation;
}
if (_root.gameplayers == 2) {
if (Key.isDown(_root.enemy_shootkey) and (_root.rbcount <= 5)) {
if ((getTimer() - lastbombtime) >= 500) {
chkar = new Array();
chkar[0] = 0.2;
chkar[1] = -0.2;
chkar[2] = 0.3;
chkar[3] = -0.3;
if (ease < 0.3) {
createReflection(0, this["hit0" + (random(3) + 3)].rot, 2, chkar[random(4)], 0);
}
lastbombtime = getTimer();
_root.mainbullet.duplicateMovieClip("bullet" + _root.bcount, _root.bcount);
ns = new Sound();
ns.attachSound("Bomb");
ns.start();
o = new Object();
o.x = body.gun._x - 28;
o.y = body.gun._y;
this.body.gun.localToGlobal(o);
_root["bullet" + _root.bcount]._x = o.x;
_root["bullet" + _root.bcount]._y = o.y;
_root["bullet" + _root.bcount]._rotation = _rotation;
_root["bullet" + _root.bcount].fr = "r";
_root.bcount++;
_root.rbcount++;
}
}
} else if (_root.cshootpressed and (_root.rbcount <= 5)) {
if ((getTimer() - lastbombtime) >= 500) {
chkar = new Array();
chkar[0] = 0.2;
chkar[1] = -0.2;
chkar[2] = 0.3;
chkar[3] = -0.3;
if (ease < 0.3) {
createReflection(0, this["hit0" + (random(3) + 3)].rot, 2, chkar[random(4)], 0);
}
lastbombtime = getTimer();
_root.mainbullet.duplicateMovieClip("bullet" + _root.bcount, _root.bcount);
ns = new Sound();
ns.attachSound("Bomb");
ns.start();
o = new Object();
o.x = body.gun._x - 28;
o.y = body.gun._y;
this.body.gun.localToGlobal(o);
_root["bullet" + _root.bcount]._x = o.x;
_root["bullet" + _root.bcount]._y = o.y;
_root["bullet" + _root.bcount]._rotation = _rotation;
_root["bullet" + _root.bcount].fr = "r";
_root.bcount++;
_root.rbcount++;
}
}
if (muralihit) {
nowhitmcs = new Array();
ic = 1;
while (ic <= 8) {
o = new Object();
o.x = this["hit0" + ic]._x + 100;
o.y = this["hit0" + ic]._y + 100;
this.localToGlobal(o);
if (_root.hitbg.hitTest(o.x, o.y, true)) {
nowhitmcs.push("hit0" + ic);
}
ic++;
}
if (!_root.compareArrays(allhitmcs, nowhitmcs)) {
muralihit = false;
}
}
if (!muralihit) {
allhitmcs = new Array();
ic = 1;
while (ic <= 8) {
o = new Object();
o.x = this["hit0" + ic]._x;
o.y = this["hit0" + ic]._y;
this.localToGlobal(o);
if (_root.hitbg.hitTest(o.x, o.y, true)) {
createReflection(0, this["hit0" + ic].rot, mainspeed / 5, 0, 1);
muralihit = true;
allhitmcs.push("hit0" + ic);
}
ic++;
}
}
}
}
Instance of Symbol 208 MovieClip "enemy_left" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 295;
amaxVal = 425;
minVal = 295;
maxVal = 425;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "enemy_bot" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 205;
amaxVal = 335;
minVal = 205;
maxVal = 335;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "enemy_right" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 115;
amaxVal = 245;
minVal = 115;
maxVal = 245;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "enemy_top" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 25;
amaxVal = 155;
minVal = 25;
maxVal = 155;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "user_left" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 295;
amaxVal = 425;
minVal = 295;
maxVal = 425;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "user_bot" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 205;
amaxVal = 335;
minVal = 205;
maxVal = 335;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "user_right" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 115;
amaxVal = 245;
minVal = 115;
maxVal = 245;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 208 MovieClip "user_top" in Frame 176
onClipEvent (load) {
Rx = _x;
Ry = _y;
Rr = _rotation;
aminVal = 25;
amaxVal = 155;
minVal = 25;
maxVal = 155;
}
onClipEvent (enterFrame) {
if (_currentframe <= 45) {
minVal = aminVal - _currentframe;
maxVal = aminVal - _currentframe;
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
} else {
minVal = amaxVal - _currentframe;
maxVal = amaxVal + (90 - _currentframe);
if (minVal <= 0) {
minVal = 360 - minVal;
}
if (maxVal <= 0) {
maxVal = 360 - maxVal;
}
}
}
Instance of Symbol 213 MovieClip in Frame 176
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gbcount);
}
Instance of Symbol 213 MovieClip in Frame 176
onClipEvent (enterFrame) {
this.gotoAndStop(_root.rbcount);
}
Instance of Symbol 225 MovieClip "redwonmc" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 227 MovieClip "greenwonmc" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 229 MovieClip "pausedmc" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 233 MovieClip "gameovermc" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 235 MovieClip "stagewonmc" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 242 MovieClip "greencomp" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 246 MovieClip "redcomp" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 250 MovieClip "stagecomp" in Frame 176
onClipEvent (load) {
x = _x;
_x = 50000;
}
Instance of Symbol 256 MovieClip in Frame 176
onClipEvent (enterFrame) {
if ((!_root.paused) and (!_root.gameover)) {
if (_root.gameplayers == 1) {
_root.crightpressed = false;
_root.cleftpressed = false;
if ((cnt % 3) != 0) {
_root.cuppressed = true;
} else {
_root.cuppressed = false;
}
px1 = _root.user_tank._x;
py1 = _root.user_tank._y;
px2 = _root.enemy_tank._x;
py2 = _root.enemy_tank._y;
dis = Math.sqrt(((px1 - px2) * (px1 - px2)) + ((py1 - py2) * (py1 - py2)));
if (dis < 250) {
_root.decide_angle(2);
}
if (cnt > 1) {
if (_root.enemy_tank._rotation < _root.tarang) {
if ((_root.tarang - _root.enemy_tank._rotation) < _root.enemy_tank.rotationC) {
_root.enemy_tank._rotation = _root.tarang;
} else {
_root.crightpressed = true;
}
} else if (_root.enemy_tank._rotation > _root.tarang) {
if ((_root.enemy_tank._rotation - _root.tarang) < _root.enemy_tank.rotationC) {
_root.enemy_tank._rotation = _root.tarang;
} else {
_root.cleftpressed = true;
}
}
}
cnt++;
}
}
}
onClipEvent (load) {
if (_root.gameplayers == 1) {
_root.decide_angle(_root.updflag());
}
cnt = 1;
}
Instance of Symbol 189 MovieClip "checkbullet" in Frame 176
onClipEvent (load) {
if ((!_root.gameover) and (!_root.paused)) {
if (_name ne "checkbullet") {
ease = 1;
speed = 8;
_alpha = 0;
life = 1;
r1d = false;
_alpha = 100;
while (true) {
r = _rotation + 90;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxx = (r / 90) * speed;
}
r = _rotation;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxy = (r / 90) * speed;
}
_x = (_x + (maxx * ease));
_y = (_y + (maxy * ease));
if (_root.hitbg.hitTest(_x, _y, true)) {
if (nowhit) {
this.removeMovieClip();
}
nowhit = true;
_rotation = (_rotation * -1);
xM = _x;
yM = _y;
r = _rotation + 90;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxx = (r / 90) * speed;
}
r = _rotation;
if (r < -90) {
r = -180 - r;
}
if (r > 90) {
r = 180 - r;
}
if ((r <= 90) && (r >= -90)) {
maxy = (r / 90) * speed;
}
_x = (_x + (maxx * ease));
_y = (_y + (maxy * ease));
if (_root.hitbg.hitTest(_x, _y, true)) {
_x = xM;
_y = yM;
_rotation = (_rotation + 180);
} else {
_x = xM;
_y = yM;
}
} else {
nowhit = false;
}
life++;
if (((_root.user_top.hitTest(_x, _y, true) or _root.user_bot.hitTest(_x, _y, true)) or _root.user_left.hitTest(_x, _y, true)) or _root.user_right.hitTest(_x, _y, true)) {
_root.cshootpressed = true;
this.removeMovieClip();
}
if (life == 100) {
_root.cshootpressed = false;
this.removeMovieClip();
}
}
}
}
}
Instance of Symbol 259 MovieClip "cheatmark" in Frame 176
onClipEvent (load) {
if (!_root.cheatsenabled) {
_alpha = 0;
}
}
Instance of Symbol 261 MovieClip "nolimitmc" in Frame 176
onClipEvent (load) {
if (!_root.nobomblimit) {
_alpha = 0;
}
}
Instance of Symbol 263 MovieClip "avoidenemymc" in Frame 176
onClipEvent (load) {
if (!_root.avoidenemy) {
_alpha = 0;
}
}
Instance of Symbol 265 MovieClip "noobsmc" in Frame 176
onClipEvent (load) {
if (!_root.noobs) {
_alpha = 0;
}
}
Instance of Symbol 315 MovieClip in Frame 176
//component parameters
onClipEvent (construct) {
wxnume = "MicroTanks";
wxaliniere = "Stanga-Sus";
wxculoare = 4796178 /* 0x492F12 */;
wxdownload = true;
wxpause = true;
wxsound = false;
}
Frame 177
i = 0;
while (i < 105) {
_root["bullet" + i].removeMovieClip();
i++;
}
_root.stagenum++;
gotoAndStop (176);
Symbol 5 MovieClip [Blast] Frame 17
this.removeMovieClip();
Symbol 8 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MicroTanks", "_blank");
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 50
stop();
_parent.play();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 64 Button
on (release) {
_root.gameplayers = 1;
gotoAndStop (176);
}
Symbol 68 Button
on (release) {
_root.gameplayers = 2;
gotoAndStop (176);
}
Symbol 71 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 79 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 79 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 79 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 80 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 83 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2);
}
Symbol 88 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 88 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 88 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 89 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 92 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3);
}
Symbol 93 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 93 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 93 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 98 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 102 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 104 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 111 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 111 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 111 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 112 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
function instructionsFunction() {
_root.gigel._x = 497.1;
_root.gigel._y = 233.4;
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 114 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 114 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 114 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 114 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 114 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 124 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 143 Button
on (release) {
_root.gigel._x = -266;
}
Instance of Symbol 135 MovieClip in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
fscommand ("allowscale", "false");
}
Symbol 149 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MicroTanks", "_blank");
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 1
Instance of Symbol 196 MovieClip "hit01" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 45;
}
Instance of Symbol 196 MovieClip "hit02" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 90;
}
Instance of Symbol 196 MovieClip "hit03" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 135;
}
Instance of Symbol 196 MovieClip "hit04" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 180;
}
Instance of Symbol 196 MovieClip "hit07" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 45;
}
Instance of Symbol 196 MovieClip "hit06" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 90;
}
Instance of Symbol 196 MovieClip "hit05" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 135;
}
Instance of Symbol 196 MovieClip "hit08" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation;
}
Instance of Symbol 196 MovieClip "ehit1" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 45;
}
Instance of Symbol 196 MovieClip "ehit2" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 90;
}
Instance of Symbol 196 MovieClip "ehit3" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 135;
}
Instance of Symbol 196 MovieClip "ehit4" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 180;
}
Instance of Symbol 196 MovieClip "ehit7" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 45;
}
Instance of Symbol 196 MovieClip "ehit6" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 90;
}
Instance of Symbol 196 MovieClip "ehit5" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 135;
}
Instance of Symbol 196 MovieClip "ehit8" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation;
}
Instance of Symbol 196 MovieClip "ehit9" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 135;
}
Instance of Symbol 196 MovieClip "ehit10" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 135;
}
Instance of Symbol 197 MovieClip "rotary" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
_rotation = _parent._rotation;
}
Symbol 202 MovieClip Frame 1
Instance of Symbol 196 MovieClip "hit01" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 45;
}
Instance of Symbol 196 MovieClip "hit02" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 90;
}
Instance of Symbol 196 MovieClip "hit03" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 135;
}
Instance of Symbol 196 MovieClip "hit04" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation + 180;
}
Instance of Symbol 196 MovieClip "hit07" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 45;
}
Instance of Symbol 196 MovieClip "hit06" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 90;
}
Instance of Symbol 196 MovieClip "hit05" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation - 135;
}
Instance of Symbol 196 MovieClip "hit08" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
rot = _parent._rotation;
}
Instance of Symbol 197 MovieClip "rotary" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
_rotation = _parent._rotation;
}
Symbol 205 MovieClip Frame 16
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 218 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MicroTanks", "_blank");
}
Symbol 224 Button
on (release) {
_root.nextFrame();
}
Symbol 232 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 248 Button
on (release) {
trace("aaa");
_root.gotoAndStop("coperta");
}
Symbol 269 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 270 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 271 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 272 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 273 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 274 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 285 Button
on (release, keyPress "p") {
_parent.soundFunction();
}
Symbol 286 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 286 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 286 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 286 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 286 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 286 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 286 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 286 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 291 Button
on (press) {
_parent.play();
}
Symbol 294 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 294 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 294 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 294 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 294 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 294 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 294 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 294 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 294 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 294 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 313 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 314 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 315 MovieClip Frame 1
function pauseFunction() {
if ((!pressed) and (!_root.paused)) {
pressed = true;
_root.paused = true;
_root.pausedmc._x = _root.pausedmc.x;
} else if ((!pressed) and _root.paused) {
pressed = true;
_root.paused = false;
_root.pausedmc._x = 50000;
}
}
function soundFunction() {
}
function mainMenuFunction() {
_root.gotoAndPlay("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 315 MovieClip Frame 10
stop();