Frame 1
fscommand ("showmenu", false);
vers = getVersion();
if (vers >= 7) {
var my_cm;
my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
var myFirstItem_cmi;
myFirstItem_cmi = new ContextMenuItem("Email Author", myFirstItemHandler);
my_cm.customItems.push(myFirstItem_cmi);
_root.menu = my_cm;
}
Instance of Symbol 19 MovieClip in Frame 1
on (release) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
Instance of Symbol 24 MovieClip in Frame 1
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Instance of Symbol 24 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 24 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 2
tbytes = getBytesTotal();
bloaded = getBytesLoaded();
_root.distsv = Math.ceil((1 / tbytes) * bloaded);
_root.percentage = Math.ceil((100 / tbytes) * bloaded) + "%";
if (tbytes != bloaded) {
gotoAndPlay (1);
} else {
vers = getVersion();
if (vers >= 8) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
function goon() {
gotoAndPlay (8);
}
stop();
Instance of Symbol 113 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this._currentframe == 240) {
_root.goon();
}
}
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Frame 7
function countgo() {
if (n > 1) {
n--;
_root.info = _root.info + (n + "...");
} else {
clearInterval(intervalId3);
gotoAndPlay (9);
}
}
function checcam() {
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vid._height = 480;
vid._width = 640;
vid.attachVideo(cam);
vid._visible = false;
checks++;
if (checks == 5) {
_root.info = _root.info + "<br>Please Ensure Your Camera Is Plugged In And Turned On...";
}
cam.onStatus = function (infoObj) {
switch (infoObj.code) {
case "Camera.Muted" :
detected = false;
_root.info = _root.info + "<br>Authorisation Denied By User...<br>Please Go To Right-Click/Settings And Allow Camera Access...";
trace("Camera access is denied");
break;
case "Camera.Unmuted" :
detected = true;
clearInterval(intervalId);
_root.info = _root.info + "<br>Authorisation Granted...";
p = 1;
intervalId4 = setInterval(_root, "checkonn", 1000);
_root.info = _root.info + "<br>Checking For Camera...";
}
};
}
function checkonn() {
if (cam.currentFps > 0) {
n = 3;
_root.info = _root.info + (("<br>Camera Detected...Proceeding In..." + n) + "...");
intervalId3 = setInterval(_root, "countgo", 1000);
clearInterval(intervalId4);
} else {
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vid._height = 480;
vid._width = 640;
vid.attachVideo(cam);
p++;
if (p == 8) {
_root.info = _root.info + "<br>Camera Not Detected...<br>Please Ensure Your Camera Is Plugged In And Turned On...";
}
}
}
_root.info = "Requesting Authorisation For Camera Use...";
detected = false;
checks = 0;
intervalId = setInterval(this, "checcam", 1000);
stop();
Frame 8
stop();
Frame 9
cam = Camera.get();
cam.setMode(320, 240, cam.fps, false);
vieo.vid._height = 120;
vieo.vid._width = 160;
vieo.vid.attachVideo(cam);
vieo.vid._visible = true;
_root.menfst = true;
stop();
Instance of Symbol 24 MovieClip in Frame 9
on (release) {
_root.gotoAndStop("troubleshoot");
}
Frame 10
function countgo() {
if (xc > 1) {
xc--;
_root.info = _root.info + (xc + "...");
} else {
clearInterval(intervalId3);
_root.info = _root.info + "<br>Beginning Brightness Check";
intervalId5 = setInterval(_root, "bright", 50);
}
}
function bright() {
now2.draw(vieo.vid);
now2.threshold(now2, rect2, pt2, "<", _root.leve, 0, 4294967295, false);
_root.alphacheck();
if ((_root.toplim - _root.bottomlim) < 0.25) {
_root.info = _root.info + "<br>Brightness Check Complete...";
clearInterval(intervalId5);
_root.info = _root.info + "<br>Checking For Ambient Motion";
_root.motions = 0;
_root.als = 0;
intervalId6 = setInterval(_root, "motionchk", 20);
} else {
if (_root.percenb >= 75) {
_root.bottomlim = _root.brightper;
} else {
_root.toplim = _root.brightper;
}
_root.brightper = (_root.toplim + _root.bottomlim) / 2;
_root.info = _root.info + "...";
_root.hexify();
}
}
function motionchk() {
_root.info = _root.info + "...";
hit2 = new flash.display.BitmapData(cam.width, cam.height, true, 4278190080);
empty1.attachBitmap(hit2, 0, "never", false);
now2.draw(vieo.vid);
now2.draw(before2, new flash.geom.Matrix(), new flash.geom.ColorTransform(), "difference");
now2.threshold(now2, rect2, pt2, ">", _root.leve, 4294901760, 4294967295, false);
now2.threshold(now2, rect22, pt22, "<", 4279571733, 3512402);
var _local2 = new flash.geom.Matrix();
hit2.draw(empty, _local2);
hit2.threshold(hit2, rect32, pt32, "<", 4293918719, 0);
if (_root.motions > 1) {
_root.alcheck2();
if (_root.motions == 6) {
avgm = ((((_root.als1 + _root.als2) + _root.als3) + _root.als4) + _root.als5) / 5;
if (avgm < 0.1) {
_root.info = _root.info + "<br>No Significant Motion Detected...";
_root.contin._visible = true;
} else if (avgm < 1) {
_root.info = _root.info + "<br>Some Motion Detected, May Not Affect Gameplay...";
_root.contin._visible = true;
_root.recal._visible = true;
} else {
_root.info = _root.info + "<br>Excessive Motion Detected, May Adversely Affect Gameplay<br>We Recommend Increasing Light Levels And/Or Removing Any Objects Which Move, Then Re-Calibrating...";
_root.recal._visible = true;
_root.contin._visible = true;
}
_root.info = _root.info + "<br>Calibration Complete";
clearInterval(intervalId6);
}
}
before2.draw(vieo.vid);
_root.motions++;
}
function hexify() {
val = 6.25;
val2 = val;
n = 0;
while (_root.brightper > val) {
val = val + val2;
n++;
}
if (n > 9) {
if (n > 10) {
if (n > 11) {
if (n > 12) {
if (n > 13) {
if (n > 14) {
n = "f";
} else {
n = "e";
}
} else {
n = "d";
}
} else {
n = "c";
}
} else {
n = "b";
}
} else {
n = "a";
}
}
val2 = 0.390625;
val = val - 6.25;
m = 0;
while (_root.brightper > val) {
val = val + val2;
m++;
}
if (m > 9) {
if (m > 10) {
if (m > 11) {
if (m > 12) {
if (m > 13) {
if (m > 14) {
m = "f";
} else {
m = "e";
}
} else {
m = "d";
}
} else {
m = "c";
}
} else {
m = "b";
}
} else {
m = "a";
}
}
_root.leve = ((((("0xff" + n) + m) + n) + m) + n) + m;
}
function alphacheck() {
total = 19200;
am = 0;
pol = 0;
n = 0;
while (n <= 160) {
j = n - 1;
t = 1;
while (t <= 120) {
k = t - 1;
var _local2 = ((now2.getPixel32(j, k) >> 24) & 255).toString(16);
pol++;
if (_local2 != 0) {
am++;
}
t++;
}
n++;
}
_root.percenb = (100 / total) * am;
}
function alcheck2() {
_root.als++;
total = 19200;
am = 0;
pol = 0;
n = 0;
while (n <= 160) {
j = n - 1;
t = 1;
while (t <= 120) {
k = t - 1;
var _local2 = ((hit2.getPixel32(j, k) >> 24) & 255).toString(16);
pol++;
if (_local2 != 0) {
am++;
}
t++;
}
n++;
}
plo = (100 / total) * am;
Set("_root.als" + _root.als, plo);
}
function ratec(del) {
clearInterval(intervald);
intervald = setInterval(_root, "detection", del);
}
xc = 2;
_root.firstt = true;
_root.recal._visible = false;
_root.contin._visible = false;
_root.toplim = 100;
_root.bottomlim = 0;
_root.changed = null;
cam = Camera.get();
cam.setMode(320, 240, cam.fps, false);
vieo.vid._height = 120;
vieo.vid._width = 160;
vieo.vid.attachVideo(cam);
vieo.vid._visible = true;
_root.brightper = 50;
_root.info = ("Beginning Calibration In " + xc) + "...";
intervalId3 = setInterval(_root, "countgo", 1000);
hexify();
nos = 0;
now2 = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true);
empty.attachBitmap(now2, 0, "never", false);
before2 = new flash.display.BitmapData(cam.width / 2, cam.height / 2);
hit2 = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true, 570425344);
empty1.attachBitmap(hit2, 0, "never", false);
empty1._width = empty1._width * 4;
empty1._height = empty1._height * 4;
rect2 = new flash.geom.Rectangle(0, 0, cam.width / 2, cam.height / 2);
rect22 = new flash.geom.Rectangle(0, 0, cam.width / 2, cam.height / 2);
rect32 = new flash.geom.Rectangle(0, 0, cam.width, cam.height);
pt2 = new flash.geom.Point(0, 0);
pt12 = new flash.geom.Point(0, 0);
pt22 = new flash.geom.Point(0, 0);
pt32 = new flash.geom.Point(0, 0);
stop();
Frame 11
if (_root.vieo._xscale < 0) {
_root.vieo._xscale = _root.vieo._xscale * -1;
}
_root.vieo._x = 640;
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vieo.vid._height = 480;
vieo.vid._width = 640;
vieo.vid.attachVideo(cam);
if (_root.firstt == true) {
if (_root.menfst == true) {
_root.inverted = false;
_root.soound = true;
var music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 99999);
_root.menfst = false;
}
} else if (_root.inverted == true) {
_root.vieo._x = 0;
_root.vieo._xscale = _root.vieo._xscale * -1;
}
stop();
Instance of Symbol 24 MovieClip in Frame 11
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 198 MovieClip in Frame 11
onClipEvent (load) {
if (_root.soound == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
if (_root.soound == true) {
_root.soound = false;
stopAllSounds();
this.gotoAndStop(2);
} else {
_root.soound = true;
this.gotoAndStop(1);
var music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 99999);
if (_root.playin == true) {
}
}
}
Frame 12
function countdown() {
if (_root.timer > 1) {
_root.timer = _root.timer - 1;
} else if (_root.timer == 1) {
_root.timer = "Go!";
} else {
clearInterval(intervalId);
play();
}
}
function con() {
_root.timer = 5;
intervalId = setInterval(_root, "countdown", 1000);
_root.diffi._alpha = 0;
_root.di1._x = 800;
_root.di2._x = 800;
_root.di3._x = 800;
}
cam5 = Camera.get();
cam5.setMode(640, 480, cam5.fps, false);
vieo2.vid._height = 480;
vieo2.vid._width = 640;
vieo2.vid.attachVideo(cam5);
_root.timed = 50;
_root.score = 0;
_root.infbar.life5._visible = false;
_root.infbar.life4._visible = false;
_root.infbar.life3._visible = true;
_root.infbar.life2._visible = true;
_root.infbar.life1._visible = true;
_root.diffi._alpha = 100;
_root.di1._x = 171;
_root.di2._x = 171;
_root.di3._x = 171;
_root.playin = true;
_root.timer = "";
if (_root.soound == true) {
}
stop();
Instance of Symbol 24 MovieClip "di3" in Frame 12
on (release) {
_root.diff = "Hard";
_root.con();
}
Instance of Symbol 24 MovieClip "di2" in Frame 12
on (release) {
_root.diff = "Medium";
_root.con();
}
Instance of Symbol 24 MovieClip "di1" in Frame 12
on (release) {
_root.diff = "Easy";
_root.con();
}
Instance of Symbol 198 MovieClip in Frame 12
onClipEvent (load) {
if (_root.soound == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
if (_root.soound == true) {
_root.soound = false;
stopAllSounds();
this.gotoAndStop(2);
} else {
_root.soound = true;
this.gotoAndStop(1);
var music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 99999);
if (_root.playin == true) {
}
}
}
Frame 13
function time() {
var _local2 = new Date();
nowt = _local2.getTime();
_root.timed = _root.totaltimeav - Math.floor((nowt - _root.starttime) / 1000);
if (_root.timed == 0) {
_root.reason = "Out Of Energy";
_root.gameover();
}
}
function gameplay() {
if (_root.firstie == true) {
} else {
swapcams();
}
i = 1;
while (i <= 4) {
if (_root.firstie == true) {
} else {
_root["goal" + i]._x = _root["goalx" + i];
_root["goal" + i]._y = _root["goaly" + i];
_root["goal" + i]._width = _root["goalw" + i];
_root["goal" + i]._height = _root["goalh" + i];
_root["goal" + i]._alpha = 100;
}
tiypy = Math.random();
if (tiypy < 0.65) {
_root["goal" + i].gotoAndStop(1);
} else if (tiypy < 0.75) {
_root["goal" + i].gotoAndStop(2);
} else if (tiypy < 0.92) {
_root["goal" + i].gotoAndStop(3);
} else {
_root["goal" + i].gotoAndStop(4);
}
_root["goalx" + i] = _root["goal" + i]._x;
_root["goaly" + i] = _root["goal" + i]._y;
_root["goalw" + i] = _root["goal" + i]._width;
_root["goalh" + i] = _root["goal" + i]._height;
i++;
}
qui = 0;
wie = 0;
i = 1;
while (i <= 4) {
if (_root["goal" + i]._currentframe == 1) {
qui++;
} else {
wie++;
}
i++;
}
if (qui == 4) {
defr = Math.ceil(Math.random() * 4);
i = defr;
tiypy = Math.random();
if (tiypy < 0.5) {
_root["goal" + i].gotoAndStop(2);
} else if (tiypy < 0.8) {
_root["goal" + i].gotoAndStop(3);
} else {
_root["goal" + i].gotoAndStop(4);
}
_root["goalx" + i] = _root["goal" + i]._x;
_root["goaly" + i] = _root["goal" + i]._y;
_root["goalw" + i] = _root["goal" + i]._width;
_root["goalh" + i] = _root["goal" + i]._height;
}
if (wie == 4) {
defr = Math.ceil(Math.random() * 4);
i = defr;
_root["goal" + i].gotoAndStop(1);
_root["goalx" + i] = _root["goal" + i]._x;
_root["goaly" + i] = _root["goal" + i]._y;
_root["goalw" + i] = _root["goal" + i]._width;
_root["goalh" + i] = _root["goal" + i]._height;
}
if (_root.firstie == true) {
obsint = setInterval(_root, "objects", 50);
_root.firstie = false;
}
}
function objects() {
i = 1;
while (i <= 4) {
_root["goal" + i]._xscale = scial;
_root["goal" + i]._yscale = scial;
i++;
}
if (_root.goal4._xscale <= 0.2) {
clearInterval(obsint);
_root.roundend = true;
_root.gameron = true;
interdoor = setInterval(_root, "doors", _root.dint);
}
_root.timmmrr++;
}
function doors() {
if (_root.dopen == true) {
if (_root.dclose > 0) {
_root.dclose = _root.dclose - (320 / (_root.closetime * 30));
if (_root.dclose < 0) {
_root.dclose = 0;
}
_root.doorl._x = -320 + _root.dclose;
_root.doorr._x = 960 - _root.dclose;
} else if (_root.dclose == 0) {
_root.dopen = false;
_root.nfullw = null;
_root.endround = false;
_root.timmmrr = 0;
if (_root.firstie == true) {
_root.gameplay();
} else {
obsint = setInterval(_root, "objects", 50);
}
clearInterval(interdoor);
} else {
if (_root.dclose < 0) {
_root.dclose = 0;
}
_root.doorl._x = -320 + _root.dclose;
_root.doorr._x = 960 - _root.dclose;
}
} else if (_root.dclose < 320) {
_root.dclose = _root.dclose + (320 / (_root.closetime * 30));
if (_root.dclose > 320) {
_root.dclose = 320;
}
_root.doorl._x = -320 + _root.dclose;
_root.doorr._x = 960 - _root.dclose;
} else {
if (_root.nextplace == null) {
}
if (_root.nfullw == null) {
var _local11 = 0.8;
var _local8 = 0;
var _local7 = 0;
var _local9 = 0;
var _local4 = 3;
var _local6 = false;
var _local10 = false;
var _local5 = new flash.filters.GlowFilter(color, _local11, _local8, _local7, _local9, _local4, _local6, _local10);
var _local2 = new Array();
_local2.push(_local5);
i = 1;
while (i <= 4) {
Set(("_root.goal" + n) + ".filters", _local2);
i++;
}
_root.nfullw = 0;
if ((_root.soound == true) && (_root.closeon == true)) {
var _local3 = new Sound();
_local3.attachSound("closed");
_local3.start(0, 1);
}
}
_root.nfullw++;
if (_root.nfullw > 20) {
if (_root.gameron == true) {
_root.gameplay();
_root.gameron = false;
}
_root.dopen = true;
}
}
}
function detection() {
scalle1 = new flash.geom.Matrix(4, 0, 0, 4, -320, 0);
scalle2 = new flash.geom.Matrix(4, 0, 0, 4, 0, 0);
scalle3 = new flash.geom.Matrix(4, 0, 0, 4, -320, -240);
scalle4 = new flash.geom.Matrix(4, 0, 0, 4, 0, -240);
if (_root.dclose == 0) {
hit = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true, 4278190080);
empty1.attachBitmap(hit, 0, "never", true);
hit1 = new flash.display.BitmapData(320, 240, true, 0);
empty11.attachBitmap(hit1, 0, "never", false);
hit2 = new flash.display.BitmapData(320, 240, true, 0);
empty12.attachBitmap(hit2, 0, "never", false);
hit3 = new flash.display.BitmapData(320, 240, true, 0);
empty13.attachBitmap(hit3, 0, "never", false);
hit4 = new flash.display.BitmapData(320, 240, true, 0);
empty14.attachBitmap(hit4, 0, "never", false);
now.draw(vieo.vid);
now.draw(before, new flash.geom.Matrix(), new flash.geom.ColorTransform(), "difference");
now.threshold(now, rect, pt, ">", _root.leve, 4294901760, 4294967295, false);
var landMatrix = (new flash.geom.Matrix());
hit.draw(empty, landMatrix);
hit.threshold(hit, rect3, pt3, "<", 4293918719, 0);
hit1.draw(hit, scalle1, new flash.geom.ColorTransform(), "normal", recra1);
hit2.draw(hit, scalle2, new flash.geom.ColorTransform(), "normal", recra2);
hit3.draw(hit, scalle3, new flash.geom.ColorTransform(), "normal", recra3);
hit4.draw(hit, scalle4, new flash.geom.ColorTransform(), "normal", recra4);
i = 1;
while (i <= 4) {
_root["camat" + _root["campos" + i]] = i;
i++;
}
nml++;
} else {
nml = 0;
}
now1.draw(vieo.vid, scalle1, new flash.geom.ColorTransform(), "normal", recta1);
cam1.attachBitmap(now1, 0, "never", false);
now2.draw(vieo.vid, scalle2, new flash.geom.ColorTransform(), "normal", recta2);
cam2.attachBitmap(now2, 0, "never", false);
now3.draw(vieo.vid, scalle3, new flash.geom.ColorTransform(), "normal", recta3);
cam3.attachBitmap(now3, 0, "never", false);
now4.draw(vieo.vid, scalle4, new flash.geom.ColorTransform(), "normal", recta4);
cam4.attachBitmap(now4, 0, "never", false);
hits = 0;
if (_root.endround == false) {
if (nml > 3) {
n = 1;
while (n <= 4) {
if (CollisionDetection.checkForCollision(eval ("_root.goal" + n), _root["empty1" + eval ("_root.camat" + n)])) {
hits++;
hit1 = n;
}
n++;
}
if (hits == 1) {
n = hit1;
_root.faceshow = false;
if (eval ("_root.goal" + n)._currentframe == 1) {
_root.faceshow = true;
_root.livesc(false);
} else {
_root.totaltimeav = _root.totaltimeav + 4;
xic = 0;
if (eval ("_root.goal" + n)._currentframe == 2) {
xic = xic + 100;
} else if (eval ("_root.goal" + n)._currentframe == 3) {
xic = xic + 50;
} else {
xic = xic + 20;
}
if (_root.diff == "Medium") {
_root.totaltimeav = _root.totaltimeav + 2;
xic = xic * 2;
}
if (_root.diff == "Hard") {
_root.totaltimeav = _root.totaltimeav + 2;
xic = xic * 5;
}
_root.score = _root.score + xic;
}
var color = 13395456;
var alpha = 0.8;
var blurX = 35;
var blurY = 35;
var strength = 6;
var quality = 3;
var inner = false;
var knockout = false;
var filter = (new flash.filters.GlowFilter(color, alpha, blurX, blurY, strength, quality, inner, knockout));
var filterArray = new Array();
filterArray.push(filter);
Set(("_root.goal" + n) + ".filters", filterArray);
_root.endround = true;
_root.gameron = false;
clearInterval(obsint);
if (_root.faceshow == true) {
_root.decdel = 10;
} else {
_root.decdel = 4;
}
_root.dectim = 0;
} else if (hits > 1) {
}
}
} else if (_root.gameron == false) {
if (_root.faceshow == true) {
if (_root.hitface._alpha < 70) {
_root.hitface._alpha = _root.hitface._alpha + 15;
} else {
_root.hitface._alpha = _root.hitface._alpha - 15;
}
if (_root.hitface._alpha > 75) {
_root.hitface._alpha = 75;
}
if (_root.hitface._alpha < 0) {
_root.hitface._alpha = 0;
}
_root.hitface._alpha = (25 - ((_root.dectim - 5) * (_root.dectim - 5))) * 2.5;
if (_root.dectim == 1) {
if (_root.soound == true) {
var music3 = new Sound();
music3.attachSound("laugh");
music3.start(0, 1);
}
}
} else if (_root.dectim == 1) {
if (_root.soound == true) {
var music13 = new Sound();
music13.attachSound("pick");
music13.start(0, 1);
}
}
if (_root.dectim < _root.decdel) {
_root.dectim++;
} else if (_root.dectim == _root.decdel) {
if (_root.gameove == true) {
_root.gameover();
} else {
clearInterval(interdoor);
interdoor = setInterval(_root, "doors", _root.dint);
_root.gameron = true;
}
}
}
before.draw(vieo.vid);
}
function gameover() {
clearInterval(invervald);
clearInterval(invervaltim);
clearInterval(invervaldoor);
clearInterval(obsint);
music9.stop();
_root.gotoAndStop("gameover");
}
function livesc(way) {
if (way == true) {
_root.lives++;
} else if (way == false) {
_root.lives--;
if (_root.lives <= 0) {
_root.gameove = true;
_root.reason = "You Died";
}
}
i = 1;
while (i <= 5) {
if (_root.lives >= i) {
_root.infbar["life" + i]._visible = true;
} else {
_root.infbar["life" + i]._visible = false;
}
i++;
}
}
function swap() {
noml = Math.random();
dir = Math.random();
if (noml < 0.25) {
if (dir > 0.5) {
_root.invertv(1);
} else {
_root.inverth(1);
}
} else if (noml < 0.5) {
if (dir > 0.5) {
_root.invertv(2);
} else {
_root.inverth(2);
}
} else if (noml < 0.75) {
if (dir > 0.5) {
_root.invertv(3);
} else {
_root.inverth(3);
}
} else if (dir > 0.5) {
_root.invertv(4);
} else {
_root.inverth(4);
}
}
function fliphoriz() {
_root.movecamera(1, 2);
_root.movecamera(2, 1);
_root.movecamera(3, 4);
_root.movecamera(4, 3);
_root.inverth(1, true);
_root.inverth(2, true);
_root.inverth(3, true);
_root.inverth(4, true);
_root.invertv(1, false);
_root.invertv(2, false);
_root.invertv(3, false);
_root.invertv(4, false);
}
function flipvert() {
_root.movecamera(1, 3);
_root.movecamera(2, 4);
_root.movecamera(3, 1);
_root.movecamera(4, 2);
_root.inverth(1, false);
_root.inverth(2, false);
_root.inverth(3, false);
_root.inverth(4, false);
_root.invertv(1, true);
_root.invertv(2, true);
_root.invertv(3, true);
_root.invertv(4, true);
}
function flipnone() {
_root.movecamera(1, 1);
_root.movecamera(2, 2);
_root.movecamera(3, 3);
_root.movecamera(4, 4);
_root.inverth(1, false);
_root.inverth(2, false);
_root.inverth(3, false);
_root.inverth(4, false);
_root.invertv(1, false);
_root.invertv(2, false);
_root.invertv(3, false);
_root.invertv(4, false);
}
function flipboth() {
_root.movecamera(1, 4);
_root.movecamera(2, 3);
_root.movecamera(3, 2);
_root.movecamera(4, 1);
_root.inverth(1, true);
_root.inverth(2, true);
_root.inverth(3, true);
_root.inverth(4, true);
_root.invertv(1, true);
_root.invertv(2, true);
_root.invertv(3, true);
_root.invertv(4, true);
}
function fliptopn() {
_root.movecamera(1, 2);
_root.movecamera(2, 1);
_root.movecamera(3, 3);
_root.movecamera(4, 4);
_root.inverth(1, true);
_root.inverth(2, true);
_root.inverth(3, false);
_root.inverth(4, false);
_root.invertv(1, false);
_root.invertv(2, false);
_root.invertv(3, false);
_root.invertv(4, false);
}
function flipbotn() {
_root.movecamera(1, 1);
_root.movecamera(2, 2);
_root.movecamera(3, 4);
_root.movecamera(4, 3);
_root.inverth(1, false);
_root.inverth(2, false);
_root.inverth(3, true);
_root.inverth(4, true);
_root.invertv(1, false);
_root.invertv(2, false);
_root.invertv(3, false);
_root.invertv(4, false);
}
function fliptopd() {
_root.movecamera(1, 4);
_root.movecamera(2, 3);
_root.movecamera(3, 1);
_root.movecamera(4, 2);
_root.inverth(1, true);
_root.inverth(2, true);
_root.inverth(3, false);
_root.inverth(4, false);
_root.invertv(1, true);
_root.invertv(2, true);
_root.invertv(3, true);
_root.invertv(4, true);
}
function flipbotd() {
_root.movecamera(1, 3);
_root.movecamera(2, 4);
_root.movecamera(3, 2);
_root.movecamera(4, 1);
_root.inverth(1, false);
_root.inverth(2, false);
_root.inverth(3, true);
_root.inverth(4, true);
_root.invertv(1, true);
_root.invertv(2, true);
_root.invertv(3, true);
_root.invertv(4, true);
}
function fliplefn() {
_root.movecamera(1, 3);
_root.movecamera(2, 2);
_root.movecamera(3, 1);
_root.movecamera(4, 4);
_root.inverth(1, false);
_root.inverth(2, false);
_root.inverth(3, false);
_root.inverth(4, false);
_root.invertv(1, true);
_root.invertv(2, false);
_root.invertv(3, true);
_root.invertv(4, false);
}
function fliprign() {
_root.movecamera(1, 1);
_root.movecamera(2, 4);
_root.movecamera(3, 3);
_root.movecamera(4, 2);
_root.inverth(1, false);
_root.inverth(2, false);
_root.inverth(3, false);
_root.inverth(4, false);
_root.invertv(1, false);
_root.invertv(2, true);
_root.invertv(3, false);
_root.invertv(4, true);
}
function fliplefd() {
_root.movecamera(1, 4);
_root.movecamera(2, 1);
_root.movecamera(3, 2);
_root.movecamera(4, 3);
_root.inverth(1, true);
_root.inverth(2, true);
_root.inverth(3, true);
_root.inverth(4, true);
_root.invertv(1, true);
_root.invertv(2, false);
_root.invertv(3, true);
_root.invertv(4, false);
}
function fliprigd() {
_root.movecamera(1, 2);
_root.movecamera(2, 3);
_root.movecamera(3, 4);
_root.movecamera(4, 1);
_root.inverth(1, true);
_root.inverth(2, true);
_root.inverth(3, true);
_root.inverth(4, true);
_root.invertv(1, false);
_root.invertv(2, true);
_root.invertv(3, false);
_root.invertv(4, true);
}
function invertv(fram, inv) {
if (fram != null) {
if (inv != null) {
if ((_root["invertedv" + fram] == false) && (inv == true)) {
_root["invertedv" + fram] = true;
_root["cam" + fram]._y = _root["cam" + fram]._y + 240;
_root["empty1" + fram]._y = _root["empty1" + fram]._y + 240;
_root["cam" + fram]._yscale = _root["cam" + fram]._yscale * -1;
_root["empty1" + fram]._yscale = _root["empty1" + fram]._yscale * -1;
} else if ((_root["invertedv" + fram] == true) && (inv == false)) {
_root["invertedv" + fram] = false;
_root["cam" + fram]._y = _root["cam" + fram]._y - 240;
_root["empty1" + fram]._y = _root["empty1" + fram]._y - 240;
_root["cam" + fram]._yscale = _root["cam" + fram]._yscale * -1;
_root["empty1" + fram]._yscale = _root["empty1" + fram]._yscale * -1;
}
} else {
if (_root["invertedv" + fram] == false) {
_root["invertedv" + fram] = true;
_root["cam" + fram]._y = _root["cam" + fram]._y + 240;
_root["empty1" + fram]._y = _root["empty1" + fram]._y + 240;
} else {
_root["invertedv" + fram] = false;
_root["cam" + fram]._y = _root["cam" + fram]._y - 240;
_root["empty1" + fram]._y = _root["empty1" + fram]._y - 240;
}
_root["cam" + fram]._yscale = _root["cam" + fram]._yscale * -1;
_root["empty1" + fram]._yscale = _root["empty1" + fram]._yscale * -1;
}
}
}
function inverth(fram, inv) {
if (fram != null) {
if (inv != null) {
if ((_root["invertedh" + fram] == false) && (inv == true)) {
_root["invertedh" + fram] = true;
_root["cam" + fram]._x = _root["cam" + fram]._x - 320;
_root["empty1" + fram]._x = _root["empty1" + fram]._x - 320;
_root["cam" + fram]._xscale = _root["cam" + fram]._xscale * -1;
_root["empty1" + fram]._xscale = _root["empty1" + fram]._xscale * -1;
} else if ((_root["invertedh" + fram] == true) && (inv == false)) {
_root["invertedh" + fram] = false;
_root["cam" + fram]._x = _root["cam" + fram]._x + 320;
_root["empty1" + fram]._x = _root["empty1" + fram]._x + 320;
_root["cam" + fram]._xscale = _root["cam" + fram]._xscale * -1;
_root["empty1" + fram]._xscale = _root["empty1" + fram]._xscale * -1;
}
} else {
if (_root["invertedh" + fram] == false) {
_root["invertedh" + fram] = true;
_root["cam" + fram]._x = _root["cam" + fram]._x - 320;
_root["empty1" + fram]._x = _root["empty1" + fram]._x - 320;
} else {
_root["invertedh" + fram] = false;
_root["cam" + fram]._x = _root["cam" + fram]._x + 320;
_root["empty1" + fram]._x = _root["empty1" + fram]._x + 320;
}
_root["cam" + fram]._xscale = _root["cam" + fram]._xscale * -1;
_root["empty1" + fram]._xscale = _root["empty1" + fram]._xscale * -1;
}
}
}
function movecamera(cam, posj2) {
if (_root["campos" + cam] > 2) {
ydilk = 240;
} else {
ydilk = 0;
}
if ((_root["campos" + cam] == 1) || (_root["campos" + cam] == 3)) {
xdilk = 320;
} else {
xdilk = 640;
}
if (posj2 > 2) {
ydilk2 = 240;
} else {
ydilk2 = 0;
}
if ((posj2 == 1) || (posj2 == 3)) {
xdilk2 = 320;
} else {
xdilk2 = 640;
}
_root["campos" + cam] = posj2;
_root["cam" + cam]._x = _root["cam" + cam]._x + (xdilk2 - xdilk);
_root["cam" + cam]._y = _root["cam" + cam]._y + (ydilk2 - ydilk);
_root["empty1" + cam]._x = _root["empty1" + cam]._x + (xdilk2 - xdilk);
_root["empty1" + cam]._y = _root["empty1" + cam]._y + (ydilk2 - ydilk);
}
function swapcams() {
if (_root.diff == "Easy") {
kilop = Math.random();
if (kilop < 0.25) {
_root.fliphoriz();
} else if (kilop < 0.5) {
_root.flipnone();
} else if (kilop < 0.75) {
_root.flipboth();
} else {
_root.flipvert();
}
} else if (_root.diff == "Medium") {
kilop = Math.random();
if (kilop < 0.05) {
_root.fliphoriz();
} else if (kilop < 0.1) {
_root.flipvert();
} else if (kilop < 0.15) {
_root.flipnone();
} else if (kilop < 0.2) {
_root.flipboth();
} else if (kilop < 0.28) {
_root.fliptopn();
} else if (kilop < 0.36) {
_root.flipbotn();
} else if (kilop < 0.44) {
_root.fliplefn();
} else if (kilop < 0.52) {
_root.fliprign();
} else if (kilop < 0.64) {
_root.fliptopd();
} else if (kilop < 0.76) {
_root.flipbotd();
} else if (kilop < 0.88) {
_root.fliplefd();
} else {
_root.fliprigd();
}
} else if (_root.diff == "Hard") {
kilop = Math.random();
flph = false;
flpv = false;
if (kilop < 0.05) {
_root.fliphoriz();
flpv = true;
} else if (kilop < 0.1) {
_root.flipvert();
flph = true;
} else if (kilop < 0.15) {
_root.flipnone();
flph = true;
flpv = true;
} else if (kilop < 0.2) {
_root.flipboth();
flph = true;
flpv = true;
} else if (kilop < 0.28) {
_root.fliptopn();
flpv = true;
} else if (kilop < 0.36) {
_root.flipbotn();
flpv = true;
} else if (kilop < 0.44) {
_root.fliplefn();
flph = true;
} else if (kilop < 0.52) {
_root.fliprign();
flph = true;
} else if (kilop < 0.64) {
_root.fliptopd();
flpv = true;
} else if (kilop < 0.76) {
_root.flipbotd();
flpv = true;
} else if (kilop < 0.88) {
flph = true;
_root.fliplefd();
} else {
flph = true;
_root.fliprigd();
}
if (flph == true) {
i = 1;
while (i <= 4) {
_root["camat" + _root["campos" + i]] = i;
i++;
}
advn = Math.random();
if (advn < 0.35) {
_root.movecamera(_root.camat1, 2);
_root.movecamera(_root.camat2, 1);
_root.inverth(_root.camat1);
_root.inverth(_root.camat2);
} else if (advn < 0.7) {
_root.movecamera(_root.camat3, 4);
_root.movecamera(_root.camat4, 3);
_root.inverth(_root.camat3);
_root.inverth(_root.camat4);
}
}
if (flpv == true) {
i = 1;
while (i <= 4) {
_root["camat" + _root["campos" + i]] = i;
i++;
}
advn = Math.random();
if (advn < 0.35) {
_root.movecamera(_root.camat1, 3);
_root.movecamera(_root.camat3, 1);
_root.invertv(_root.camat1);
_root.invertv(_root.camat3);
} else if (advn < 0.7) {
_root.movecamera(_root.camat2, 4);
_root.movecamera(_root.camat4, 2);
_root.invertv(_root.camat2);
_root.invertv(_root.camat4);
}
}
}
}
clearInterval(invervald);
clearInterval(invervaltim);
clearInterval(interdoor);
clearInterval(obsint);
if (_root.firstt == true) {
now1 = new flash.display.BitmapData(320, 240, true);
now2 = new flash.display.BitmapData(320, 240, true);
now3 = new flash.display.BitmapData(320, 240, true);
now4 = new flash.display.BitmapData(320, 240, true);
now = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true);
empty.attachBitmap(now, 0, "never", false);
before = new flash.display.BitmapData(cam.width / 2, cam.height / 2);
before.draw(vieo.vid);
hit = new flash.display.BitmapData(320, 240, true, 570425344);
hit1 = new flash.display.BitmapData(320, 240, true, 570425344);
hit2 = new flash.display.BitmapData(320, 240, true, 570425344);
hit3 = new flash.display.BitmapData(320, 240, true, 570425344);
hit4 = new flash.display.BitmapData(320, 240, true, 570425344);
empty1.attachBitmap(hit, 0, "never", false);
empty1._width = empty1._width * 4;
empty1._height = empty1._height * 4;
rect = new flash.geom.Rectangle(0, 0, cam.width / 2, cam.height / 2);
rect2 = new flash.geom.Rectangle(0, 0, cam.width / 2, cam.height / 2);
rect3 = new flash.geom.Rectangle(0, 0, cam.width, cam.height);
recta1 = new flash.geom.Rectangle(0, 0, 640, 480);
recta2 = new flash.geom.Rectangle(0, 0, 320, 240);
recta3 = new flash.geom.Rectangle(0, 0, 640, 480);
recta4 = new flash.geom.Rectangle(0, 0, 320, 240);
pt = new flash.geom.Point(0, 0);
pt1 = new flash.geom.Point(0, 0);
pt2 = new flash.geom.Point(0, 0);
pt3 = new flash.geom.Point(0, 0);
}
if (_root.firstt == true) {
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vieo.vid.attachVideo(cam);
i = 1;
while (i <= 4) {
_root["invertedh" + i] = false;
_root["invertedv" + i] = false;
_root["campos" + i] = i;
i++;
}
_root.hitface._alpha = 0;
_root.flips = 0;
_root.score = 0;
_root.lives = 3;
_root.livesc();
_root.firstie = true;
_root.closeon = true;
_root.dclose = 320;
_root.closetime = 1.5;
_root.dopen = true;
_root.gameove = false;
_root.nextplace = null;
_root.endround = false;
_root.dint = 15;
nml = 0;
_root.gameron = false;
var my_date = new Date();
_root.starttime = my_date.getTime();
_root.totaltimeav = 50;
_root.xc = 518;
_root.timed = _root.totaltimeav;
intervaltim = setInterval(_root, "time", 1000);
intervald = setInterval(_root, "detection", 100);
_root.gameplay();
_root.doors();
interdoor = setInterval(_root, "doors", _root.dint);
} else {
_root.nextplace = null;
_root.lives = 3;
_root.livesc();
_root.dclose = 320;
_root.dopen = true;
_root.closeon = true;
_root.gameove = false;
_root.hitface._alpha = 0;
_root.score = 0;
intervaltim = setInterval(_root, "time", 1000);
intervald = setInterval(_root, "detection", 100);
_root.gameplay();
_root.doors();
var my_date = new Date();
_root.starttime = my_date.getTime();
_root.totaltimeav = 50;
_root.timed = _root.totaltimeav;
interdoor = setInterval(_root, "doors", _root.dint);
}
stop();
Frame 14
clearInterval(intervald);
clearInterval(intervaltim);
clearInterval(interdoor);
music9.stop();
_root.firstt = false;
_root.closeon = false;
_root.sub = false;
_root.playin = false;
_root.sizes = (_root.score * 5) + 6;
namess = "name";
_root.info = "";
stop();
Instance of Symbol 24 MovieClip in Frame 14
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Instance of Symbol 24 MovieClip in Frame 14
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 15
stop();
Instance of Symbol 257 MovieClip in Frame 15
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Instance of Symbol 24 MovieClip in Frame 15
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1727009&sub=62514", "_blank");
}
Frame 16
_root.qualv = _quality;
stop();
Instance of Symbol 24 MovieClip in Frame 16
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "BEST";
_root.qualv = _quality;
}
Instance of Symbol 24 MovieClip in Frame 16
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "HIGH";
_root.qualv = _quality;
}
Instance of Symbol 24 MovieClip in Frame 16
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "MEDIUM";
_root.qualv = _quality;
}
Instance of Symbol 24 MovieClip in Frame 16
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "LOW";
_root.qualv = _quality;
}
Instance of Symbol 198 MovieClip in Frame 16
onClipEvent (load) {
if (_root.soound == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
if (_root.soound == true) {
_root.soound = false;
stopAllSounds();
this.gotoAndStop(2);
} else {
_root.soound = true;
var music2 = new Sound();
music2.attachSound("music2");
music2.start(0, 99999);
this.gotoAndStop(1);
}
}
Frame 17
stop();
Frame 18
_root.cleans = 1;
_root.perdis.gotoAndStop(58);
stop();
Instance of Symbol 198 MovieClip in Frame 18
onClipEvent (load) {
if (_root.soound == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.soound == true) {
_root.soound = false;
stopAllSounds();
this.gotoAndStop(2);
} else {
_root.soound = true;
this.gotoAndStop(1);
if (_root.playin == true) {
var music2 = new Sound();
music2.attachSound("music2");
music2.start(11, 0);
}
}
}
Symbol 290 MovieClip [__Packages.CollisionDetection] Frame 0
class CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
if (p_scope == undefined) {
p_scope = _root;
}
var _local4 = p_clip1.getBounds(p_scope);
var _local3 = p_clip2.getBounds(p_scope);
if (((_local4.xMax < _local3.xMin) || (_local3.xMax < _local4.xMin)) || ((_local4.yMax < _local3.yMin) || (_local3.yMax < _local4.yMin))) {
return(null);
}
var _local2 = {};
_local2.xMin = Math.max(_local4.xMin, _local3.xMin);
_local2.xMax = Math.min(_local4.xMax, _local3.xMax);
_local2.yMin = Math.max(_local4.yMin, _local3.yMin);
_local2.yMax = Math.min(_local4.yMax, _local3.yMax);
var _local9 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local5 = p_clip1.transform.matrix;
_local5.tx = p_clip1._x - _local2.xMin;
_local5.ty = p_clip1._y - _local2.yMin;
_local9.draw(p_clip1, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local5 = p_clip2.transform.matrix;
_local5.tx = p_clip2._x - _local2.xMin;
_local5.ty = p_clip2._y - _local2.yMin;
_local9.draw(p_clip2, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local9.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local2.xMin;
_local6.y = _local6.y + _local2.yMin;
return(_local6);
}
}
Symbol 58 Button
on (release) {
gotoAndPlay (5);
}
Symbol 63 Button
on (release) {
getURL ("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash", "_blank");
}
Symbol 103 Button
on (release) {
_root.play();
}
Symbol 104 MovieClip Frame 143
_root.play();
stop();
Symbol 113 MovieClip Frame 15
var music5 = new Sound();
music5.attachSound("lgo");
music5.start(0, 1);
Symbol 113 MovieClip Frame 120
_root.goon();
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 125 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
play();
}
Symbol 133 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
play();
}
Symbol 143 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndStop (9);
}
Symbol 144 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
_quality = "LOW";
play();
}
Symbol 153 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("about");
}
Symbol 159 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("troubleshoot");
}
Symbol 165 Button
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Symbol 170 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("countdown");
}
Symbol 175 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("options");
}
Symbol 181 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("instructions");
}
Symbol 188 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 194 Button
on (release) {
if (_root.vieo._x == 640) {
_root.inverted = true;
_root.vieo._x = 0;
_root.empty1._x = 0;
} else {
_root.inverted = false;
_root.vieo._x = 640;
_root.empty1._x = 640;
}
_root.vieo._xscale = _root.vieo._xscale * -1;
_root.empty1._xscale = _root.empty1._xscale * -1;
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Symbol 206 MovieClip Frame 4
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 232 Button
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
if (_root.vieo._x == 640) {
_root.inverted = true;
_root.vieo._x = 0;
_root.empty1._x = 0;
} else {
_root.inverted = false;
_root.vieo._x = 640;
_root.empty1._x = 640;
}
_root.vieo._xscale = _root.vieo._xscale * -1;
_root.empty1._xscale = _root.empty1._xscale * -1;
}
Symbol 243 Button
on (release) {
gameid = 1;
namesse = namess;
var loadedvars;
var keke = new Array();
loadedvars = String(namesse);
keke = loadedvars.split("KERNING=\"0\">");
var loadedvars2;
var keke2 = new Array();
loadedvars2 = String(keke[1]);
keke2 = loadedvars2.split("</FONT></P></TEXTFORMAT>");
namesss = keke2[0];
trace(namess);
trace(namesse);
trace(namesss);
score = _root.score;
checks = (_root.sizes + _root.xc) + _root.score;
trace("siz" + _root.sizes);
trace("xc" + _root.xc);
if (namesse == "name") {
_root.info = "Please Enter A Name Before Submitting";
} else if (_root.sub == false) {
getURL ("http://www.iviewgames.com/submithigh.php", "_blank", "POST");
_root.info = "Thanks For Submitting Your Score";
_root.sub = true;
} else {
_root.info = "You Can Only Submit Your Score Once";
}
}
Symbol 250 Button
on (release) {
gotoAndStop ("countdown");
}
Symbol 262 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndStop ("menu");
}
Symbol 273 Button
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
gotoAndStop (9);
}