Frame 1
MochiAd.showPreloaderAd({id:"475099c96f32ce1f", res:"640x520"});
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = 18 + (_root.distsv * 500);
}
Instance of Symbol 18 MovieClip in Frame 1
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Frame 2
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;
}
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);
}
}
Instance of Symbol 13 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._x = 18 + (_root.distsv * 500);
}
Instance of Symbol 18 MovieClip in Frame 2
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Frame 3
stop();
Frame 4
stop();
Frame 5
function goon() {
gotoAndPlay (7);
}
stop();
Instance of Symbol 55 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this._currentframe == 240) {
_root.goon();
}
}
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Frame 7
cam = Camera.get();
cam.setMode(320, 240, cam.fps, false);
vieo.vid._height = 120;
vieo.vid._width = 160;
vieo.vid.attachVideo(cam);
stop();
Frame 8
function detection() {
hit = new flash.display.BitmapData(cam.width * 2, cam.height * 2, true, 4278190080);
empty1.attachBitmap(hit, 0, "always", true);
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 _local2 = new flash.geom.Matrix();
_local2.scale(1, 1);
hit.draw(empty, _local2);
hit.threshold(hit, rect1, pt1, "<", 4293918719, 0);
before.draw(vieo.vid);
}
_root.firstt = true;
cam = Camera.get();
cam.setMode(320, 240, cam.fps, false);
vieo.vid._height = 120;
vieo.vid._width = 160;
vieo.vid.attachVideo(cam);
intervald = setInterval(_root, "detection", 50);
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);
hit = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true, 570425344);
empty1.attachBitmap(hit, 0, "never", true);
rect = new flash.geom.Rectangle(0, 0, cam.width / 2, cam.height / 2);
rect1 = new flash.geom.Rectangle(0, 0, cam.width * 2, cam.height * 2);
pt = new flash.geom.Point(0, 0);
pt1 = new flash.geom.Point(0, 0);
stop();
Instance of Symbol 94 MovieClip "detectl" in Frame 8
onClipEvent (load) {
function leveer() {
dist2 = this._x - startx;
if (dist2 > 400) {
dist2 = dist;
}
dist2 = dist2 * 0.5;
if (dist2 < 0) {
dist2 = 0;
}
val = dist / 16;
val2 = val;
n = 0;
while (dist2 > 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 = dist / 256;
val = val - (dist / 16);
m = 0;
while (dist2 > 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;
}
startx = this._x;
dist = 400;
this._x = this._x + (dist / 2);
leveer();
}
on (press) {
startDrag (this, false, startx, this._y, startx + dist, this._y);
}
on (release, releaseOutside) {
leveer();
stopDrag();
}
Instance of Symbol 18 MovieClip in Frame 8
on (release) {
_root.gotoAndStop("troubleshoot");
}
Frame 9
cam = Camera.get();
cam.setMode(320, 240, cam.fps, false);
vieo.vid._height = 120;
vieo.vid._width = 160;
vieo.vid.attachVideo(cam);
_root.inverted = false;
_root.soound = true;
_root.qualv = _quality;
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);
hit = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true, 570425344);
empty1.attachBitmap(hit, 0, "never", false);
rect = new flash.geom.Rectangle(0, 0, cam.width / 2, cam.height / 2);
rect1 = new flash.geom.Rectangle(0, 0, cam.width * 2, cam.height * 2);
pt = new flash.geom.Point(0, 0);
pt1 = new flash.geom.Point(0, 0);
stop();
_root.menfst = true;
_root.inverted = false;
_root.soound = true;
stop();
Instance of Symbol 113 MovieClip in Frame 9
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) {
}
}
}
Instance of Symbol 18 MovieClip in Frame 9
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "BEST";
_root.qualv = _quality;
}
Instance of Symbol 18 MovieClip in Frame 9
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "HIGH";
_root.qualv = _quality;
}
Instance of Symbol 18 MovieClip in Frame 9
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "MEDIUM";
_root.qualv = _quality;
}
Instance of Symbol 18 MovieClip in Frame 9
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "LOW";
_root.qualv = _quality;
}
Frame 10
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vieo.vid._height = 480;
vieo.vid._width = 640;
vieo.vid.attachVideo(cam);
if (_root.vieo._xscale < 0) {
_root.vieo._xscale = _root.vieo._xscale * -1;
}
_root.repeat = false;
_root.vieo._x = 640;
_root.health = 100;
if ((_root.firstt == true) && (_root.menfst == true)) {
var music = new Sound();
music.attachSound("music2");
music.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 113 MovieClip in Frame 10
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 11
function countdown() {
if (_root.timer > 1) {
_root.timer = _root.timer - 1;
} else if (_root.timer == 1) {
_root.timer = "Go!";
} else {
clearInterval(intervalId);
play();
}
}
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vieo.vid._height = 480;
vieo.vid._width = 640;
vieo.vid.attachVideo(cam);
_root.hits = 0;
_root.timed = 0;
_root.timer = 3;
intervalId = setInterval(_root, "countdown", 1000);
if ((_root.soound == true) && (_root.repeat == true)) {
var music = new Sound();
music.attachSound("music2");
music.start(0, 99999);
}
stop();
Frame 12
function ratec(del) {
trace("changed rate to" + del);
clearInterval(intervald);
intervald = setInterval(_root, "detection", del);
}
function punched() {
typ = Math.random();
if (typ < 0.33) {
punch.start(0, 1);
} else if (typ < 0.66) {
punch1.start(0, 1);
} else {
punch2.start(0, 1);
}
}
function tim() {
var _local2 = new Date();
nowt = _local2.getTime();
_root.timed = Math.floor((nowt - _root.starttime) / 1000);
}
function ninjamake() {
if (_root.ninjas < _root.maxninja) {
ninjat = Math.random();
dif = 1 / _root.types;
dif2 = dif;
ninjai = 1;
while (ninjat > dif) {
ninjai++;
dif = dif + dif2;
}
duplicateMovieClip (_root["ninj" + ninjai], "ninja" + _root.nextninja, _root.nextninja + 10000);
if (((ninjai == 1) || (ninjai == 3)) || (ninjai == 5)) {
setProperty("_root.ninja" + _root.nextninja, _x , -60);
} else {
setProperty("_root.ninja" + _root.nextninja, _x , 700);
}
rand2 = Math.random(8);
rand2 = rand2 - 0.5;
rand2 = rand2 * 160;
if ((ninjai == 1) || (ninjai == 2)) {
yy = 140 + rand2;
} else if ((ninjai == 3) || (ninjai == 4)) {
yy = -20 + rand2;
} else {
yy = 340 + rand2;
}
setProperty("_root.ninja" + _root.nextninja, _y , yy);
Set(("_root.ninja" + _root.nextninja) + ".walk", true);
_root.ninjas++;
_root.nextninja++;
}
}
function gameover() {
i = 1;
while (i <= _root.nextninja) {
removeMovieClip("_root.ninja" + i);
i++;
}
_root.gotoAndStop("gameover");
}
function detection() {
hit = new flash.display.BitmapData(cam.width, cam.height, true, 4278190080);
empty1.attachBitmap(hit, 0, "never", false);
now.draw(vieo.vid);
now.draw(before, new flash.geom.Matrix(), new flash.geom.ColorTransform(), "difference");
now.threshold(now, rect, pt, ">", 4280422673, 4294901760, 4294967295, false);
var landMatrix = (new flash.geom.Matrix());
landMatrix.scale(4, 4);
hit.draw(empty, landMatrix);
hit.threshold(hit, rect3, pt3, "<", 4293918719, 0);
n = _root.bottomn;
while (n <= _root.nextninja) {
if (CollisionDetection.checkForCollision(eval ("_root.ninja" + n), empty1)) {
if (eval ("_root.ninja" + n)._currentframe == 1) {
Set(("_root.ninja" + n) + ".hitme", true);
if (_root.soound == true) {
punched();
}
_root.hits++;
if (_root.nextninja == 0) {
}
}
}
n++;
}
before.draw(vieo.vid);
}
cam = Camera.get();
cam.setMode(640, 480, cam.fps, false);
vieo.vid._height = 480;
vieo.vid._width = 640;
vieo.vid.attachVideo(cam);
stop();
trace(_root.leve);
intervald = setInterval(_root, "detection", 100);
interninja = setInterval(_root, "ninjamake", 1500);
intervaltim = setInterval(_root, "tim", 1000);
var my_date = new Date();
_root.starttime = my_date.getTime();
nos = 0;
var punch = new Sound();
punch.attachSound("punch");
var punch1 = new Sound();
punch1.attachSound("punch1");
var punch2 = new Sound();
punch2.attachSound("punch2");
if (_root.firstt == 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);
hit = new flash.display.BitmapData(cam.width / 2, cam.height / 2, true, 570425344);
empty1.attachBitmap(hit, 0, "never", false);
rect = new flash.geom.Rectangle(0, 0, cam.width, cam.height);
rect2 = new flash.geom.Rectangle(0, 0, cam.width, cam.height);
rect3 = new flash.geom.Rectangle(0, 0, cam.width, cam.height);
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);
}
_root.ninjas = 0;
_root.maxninja = 4;
_root.nextninja = 1;
_root.bottomn = 1;
_root.hits = 0;
_root.health = 100;
_root.level = 1;
_root.types = 6;
_root.hitso = 0;
_root.wid = 640;
_root.hei = 480;
Instance of Symbol 173 MovieClip "ninj1" in Frame 12
onClipEvent (load) {
if (this._name != "ninj1") {
alive = true;
force = 4;
g = 0.5;
flying = false;
walking = false;
multi = 5;
hiited = false;
attack = 0;
}
}
onClipEvent (enterFrame) {
if (this._name != "ninj1") {
if (walk == true) {
if (walking == true) {
if (flying == false) {
this._x = this._x + xsp;
}
} else {
walking = true;
xsp = (force / 2) + (_root.hits / multi);
}
}
if ((this._x > 705) || (this._x < -80)) {
_root.ninjas--;
alive = false;
if (this._name == ("ninja" + _root.bottomn)) {
_root.bottomn++;
}
while ((eval (("_root.ninja" + _root.bottomn) + ".alive") != true) && (_root.bottomn < (_root.nextninja - 1))) {
_root.bottomn++;
}
removeMovieClip(this);
}
if (attack > 0) {
attack--;
if (attack == 0) {
this.gotoAndStop(1);
}
}
if (this._x > 275) {
if ((flying == false) && (hiited == false)) {
duplicateMovieClip ("_root.hitt", "hitt" + _root.hitso, 51000 + _root.hitso);
var myPoint = {x:this.hitto._x, y:this.hitto._y};
this.localToGlobal(myPoint);
setProperty("_root.hitt" + _root.hitso, _x , myPoint.x);
setProperty("_root.hitt" + _root.hitso, _y , myPoint.y);
_root.hitso++;
attack = 10;
if (_root.soound == true) {
var hitie = new Sound();
hitie.attachSound("hitie");
hitie.start(0, 1);
}
this.gotoAndStop("attack");
if ((_root.health - 20) > 0) {
_root.health = _root.health - 20;
_root.health.healthbar._x = -(_root.health.healthbar._width * ((100 - _root.health) / 100));
positionn();
health.positionn();
_root.health.positionn();
} else {
_root.health = 0;
_root.health.healthbar._x = -(_root.health.healthbar._width * ((100 - _root.health) / 100));
trace(_root.health.healthbar._x);
trace(_root.health._x);
_root.gameover();
}
hiited = true;
}
}
if (hitme == true) {
if (flying == true) {
this._x = this._x + xm;
this._y = this._y - ym;
ym = ym - g;
} else {
flying = true;
if (this._x > 180) {
this.gotoAndStop("dier");
xm = force + (_root.hits / multi);
} else {
this.gotoAndStop("diel");
xm = (-force) - (_root.hits / multi);
}
ym = force;
walking = false;
}
}
}
}
Instance of Symbol 174 MovieClip "ninj5" in Frame 12
onClipEvent (load) {
if (this._name != "ninj5") {
force = 4;
multi = 5;
targx = (_root.wid / 2) - (this._width / 2);
targy = (_root.hei / 2) - (this._height / 2);
dx = targx - this._x;
dy = targy - this._y;
grad = dy / dx;
xsp = (force / 2) + (_root.hits / multi);
ysp = xsp * grad;
alive = true;
g = 0.5;
flying = false;
walking = false;
hiited = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "ninj5") {
if (walk == true) {
if (walking == true) {
if (flying == false) {
this._x = this._x + xsp;
this._y = this._y + ysp;
}
} else {
walking = true;
}
}
if ((this._x > 705) || (this._x < -80)) {
_root.ninjas--;
alive = false;
if (this._name == ("ninja" + _root.bottomn)) {
_root.bottomn++;
}
while ((eval (("_root.ninja" + _root.bottomn) + ".alive") != true) && (_root.bottomn < (_root.nextninja - 1))) {
_root.bottomn++;
}
removeMovieClip(this);
}
if (this._x > 275) {
if ((flying == false) && (hiited == false)) {
duplicateMovieClip ("_root.hitt", "hitt" + _root.hitso, 51000 + _root.hitso);
var myPoint = {x:this.hitto._x, y:this.hitto._y};
this.localToGlobal(myPoint);
setProperty("_root.hitt" + _root.hitso, _x , myPoint.x);
setProperty("_root.hitt" + _root.hitso, _y , myPoint.y);
_root.hitso++;
attack = 10;
if (_root.soound == true) {
var hitie = new Sound();
hitie.attachSound("hitie");
hitie.start(0, 1);
}
this.gotoAndStop("attack");
if ((_root.health - 20) > 0) {
_root.health = _root.health - 20;
_root.health.healthbar._x = -(_root.health.healthbar._width * ((100 - _root.health) / 100));
} else {
_root.health = 0;
_root.health.healthbar._x = -(_root.health.healthbar._width * ((100 - _root.health) / 100));
_root.gameover();
}
hiited = true;
}
}
if (attack > 0) {
attack--;
if (attack == 0) {
this.gotoAndStop(1);
}
}
if (hitme == true) {
if (flying == true) {
this._x = this._x + xm;
this._y = this._y - ym;
ym = ym - g;
} else {
flying = true;
if (this._x > 180) {
this.gotoAndStop("dier");
xm = force + (_root.hits / multi);
} else {
this.gotoAndStop("diel");
xm = (-force) - (_root.hits / multi);
}
ym = force * 1.5;
walking = false;
}
}
}
}
Instance of Symbol 175 MovieClip "ninj3" in Frame 12
onClipEvent (load) {
if (this._name != "ninj3") {
force = 4;
multi = 5;
targx = (_root.wid / 2) - (this._width / 2);
targy = (_root.hei / 2) - (this._height / 2);
dx = targx - this._x;
dy = targy - this._y;
grad = dy / dx;
xsp = (force / 2) + (_root.hits / multi);
ysp = xsp * grad;
alive = true;
g = 0.5;
flying = false;
walking = false;
hiited = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "ninj3") {
if (walk == true) {
if (walking == true) {
if (flying == false) {
this._x = this._x + xsp;
this._y = this._y + ysp;
}
} else {
walking = true;
}
}
if ((this._x > 705) || (this._x < -80)) {
_root.ninjas--;
alive = false;
if (this._name == ("ninja" + _root.bottomn)) {
_root.bottomn++;
}
while ((eval (("_root.ninja" + _root.bottomn) + ".alive") != true) && (_root.bottomn < (_root.nextninja - 1))) {
_root.bottomn++;
}
removeMovieClip(this);
}
if (attack > 0) {
attack--;
if (attack == 0) {
this.gotoAndStop(1);
}
}
if (this._x > 275) {
if ((flying == false) && (hiited == false)) {
duplicateMovieClip ("_root.hitt", "hitt" + _root.hitso, 51000 + _root.hitso);
var myPoint = {x:this.hitto._x, y:this.hitto._y};
this.localToGlobal(myPoint);
setProperty("_root.hitt" + _root.hitso, _x , myPoint.x);
setProperty("_root.hitt" + _root.hitso, _y , myPoint.y);
_root.hitso++;
attack = 10;
if (_root.soound == true) {
var hitie = new Sound();
hitie.attachSound("hitie");
hitie.start(0, 1);
}
this.gotoAndStop("attack");
if ((_root.health - 20) > 0) {
_root.health = _root.health - 20;
_root.health.healthbar._x = -(_root.health.healthbar._width * ((100 - _root.health) / 100));
} else {
_root.health = 0;
_root.health.healthbar._x = -(_root.health.healthbar._width * ((100 - _root.health) / 100));
_root.gameover();
}
hiited = true;
}
}
if (hitme == true) {
if (flying == true) {
this._x = this._x + xm;
this._y = this._y - ym;
ym = ym - g;
} else {
flying = true;
if (this._x > 180) {
this.gotoAndStop("dier");
xm = force + (_root.hits / multi);
} else {
this.gotoAndStop("diel");
xm = (-force) - (_root.hits / multi);
}
ym = force * 1.5;
walking = false;
}
}
}
}
Instance of Symbol 173 MovieClip "ninj2" in Frame 12
onClipEvent (load) {
if (this._name != "ninj2") {
alive = true;
force = 4;
g = 0.5;
flying = false;
walking = false;
multi = 5;
hiited = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "ninj2") {
if (walk == true) {
walk = false;
walking = true;
xsp = (force / 2) + (_root.hits / multi);
}
if (walking == true) {
if (flying == false) {
this._x = this._x - xsp;
}
}
if ((this._x > 705) || (this._x < -80)) {
_root.ninjas--;
alive = false;
if (this._name == ("ninja" + _root.bottomn)) {
_root.bottomn++;
}
while ((eval (("_root.ninja" + _root.bottomn) + ".alive") != true) && (_root.bottomn < (_root.nextninja - 1))) {
_root.bottomn++;
}
removeMovieClip(this);
}
if (attack > 0) {
attack--;
if (attack == 0) {
this.gotoAndStop(1);
}
}
if (this._x < 345) {
if ((flying == false) && (hiited == false)) {
duplicateMovieClip ("_root.hitt", "hitt" + _root.hitso, 51000 + _root.hitso);
var myPoint = {x:this.hitto._x, y:this.hitto._y};
this.localToGlobal(myPoint);
setProperty("_root.hitt" + _root.hitso, _x , myPoint.x);
setProperty("_root.hitt" + _root.hitso, _y , myPoint.y);
_root.hitso++;
attack = 10;
if (_root.soound == true) {
var hitie = new Sound();
hitie.attachSound("hitie");
hitie.start(0, 1);
}
this.gotoAndStop("attack");
if ((_root.health - 20) > 0) {
_root.health = _root.health - 20;
_root.healthset();
} else {
_root.health = 0;
_root.healthset();
_root.gameover();
}
hiited = true;
}
}
if (hitme == true) {
if (flying == true) {
this._x = this._x + xm;
this._y = this._y - ym;
ym = ym - g;
} else {
flying = true;
if (this._x > 180) {
this.gotoAndStop("dier");
xm = force + (_root.hits / multi);
} else {
this.gotoAndStop("diel");
xm = (-force) - (_root.hits / multi);
}
ym = force;
walking = false;
}
}
}
}
Instance of Symbol 174 MovieClip "ninj6" in Frame 12
onClipEvent (load) {
if (this._name != "ninj6") {
force = 4;
multi = 5;
targx = (_root.wid / 2) - (this._width / 2);
targy = (_root.hei / 2) - (this._height / 2);
dx = targx - this._x;
dy = targy - this._y;
grad = dy / dx;
xsp = (-(force / 2)) - (_root.hits / multi);
ysp = xsp * grad;
alive = true;
g = 0.5;
flying = false;
walking = false;
hiited = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "ninj6") {
if (walk == true) {
if (walking == true) {
if (flying == false) {
this._x = this._x + xsp;
this._y = this._y + ysp;
}
} else {
walking = true;
}
}
if ((this._x > 705) || (this._x < -80)) {
_root.ninjas--;
alive = false;
if (this._name == ("ninja" + _root.bottomn)) {
_root.bottomn++;
}
while ((eval (("_root.ninja" + _root.bottomn) + ".alive") != true) && (_root.bottomn < (_root.nextninja - 1))) {
_root.bottomn++;
}
removeMovieClip(this);
}
if (attack > 0) {
attack--;
if (attack == 0) {
this.gotoAndStop(1);
}
}
if (this._x < 345) {
if ((flying == false) && (hiited == false)) {
duplicateMovieClip ("_root.hitt", "hitt" + _root.hitso, 51000 + _root.hitso);
var myPoint = {x:this.hitto._x, y:this.hitto._y};
this.localToGlobal(myPoint);
setProperty("_root.hitt" + _root.hitso, _x , myPoint.x);
setProperty("_root.hitt" + _root.hitso, _y , myPoint.y);
_root.hitso++;
attack = 10;
if (_root.soound == true) {
var hitie = new Sound();
hitie.attachSound("hitie");
hitie.start(0, 1);
}
this.gotoAndStop("attack");
if ((_root.health - 20) > 0) {
_root.health = _root.health - 20;
_root.healthset();
} else {
_root.health = 0;
_root.healthset();
_root.gameover();
}
hiited = true;
}
}
if (hitme == true) {
if (flying == true) {
this._x = this._x + xm;
this._y = this._y - ym;
ym = ym - g;
} else {
flying = true;
if (this._x > 180) {
this.gotoAndStop("dier");
xm = force + (_root.hits / multi);
} else {
this.gotoAndStop("diel");
xm = (-force) - (_root.hits / multi);
}
ym = force * 1.5;
walking = false;
}
}
}
}
Instance of Symbol 175 MovieClip "ninj4" in Frame 12
onClipEvent (load) {
if (this._name != "ninj4") {
force = 4;
multi = 5;
targx = (_root.wid / 2) - (this._width / 2);
targy = (_root.hei / 2) - (this._height / 2);
dx = targx - this._x;
dy = targy - this._y;
grad = dy / dx;
xsp = (-(force / 2)) - (_root.hits / multi);
ysp = xsp * grad;
alive = true;
g = 0.5;
flying = false;
walking = false;
hiited = false;
}
}
onClipEvent (enterFrame) {
if (this._name != "ninj4") {
if (walk == true) {
if (walking == true) {
if (flying == false) {
this._x = this._x + xsp;
this._y = this._y + ysp;
}
} else {
walking = true;
}
}
if (attack > 0) {
attack--;
if (attack == 0) {
this.gotoAndStop(1);
}
}
if ((this._x > 705) || (this._x < -80)) {
_root.ninjas--;
alive = false;
if (this._name == ("ninja" + _root.bottomn)) {
_root.bottomn++;
}
while ((eval (("_root.ninja" + _root.bottomn) + ".alive") != true) && (_root.bottomn < (_root.nextninja - 1))) {
_root.bottomn++;
}
removeMovieClip(this);
}
if (this._x < 345) {
if ((flying == false) && (hiited == false)) {
duplicateMovieClip ("_root.hitt", "hitt" + _root.hitso, 51000 + _root.hitso);
var myPoint = {x:this.hitto._x, y:this.hitto._y};
this.localToGlobal(myPoint);
setProperty("_root.hitt" + _root.hitso, _x , myPoint.x);
setProperty("_root.hitt" + _root.hitso, _y , myPoint.y);
_root.hitso++;
attack = 10;
if (_root.soound == true) {
var hitie = new Sound();
hitie.attachSound("hitie");
hitie.start(0, 1);
}
this.gotoAndStop("attack");
if ((_root.health - 20) > 0) {
_root.health = _root.health - 20;
_root.healthset();
} else {
_root.health = 0;
_root.healthset();
_root.gameover();
}
hiited = true;
}
}
if (hitme == true) {
if (flying == true) {
this._x = this._x + xm;
this._y = this._y - ym;
ym = ym - g;
} else {
flying = true;
if (this._x > 180) {
this.gotoAndStop("dier");
xm = force + (_root.hits / multi);
} else {
this.gotoAndStop("diel");
xm = (-force) - (_root.hits / multi);
}
ym = force * 1.5;
walking = false;
}
}
}
}
Instance of Symbol 177 MovieClip "hitt" in Frame 12
onClipEvent (load) {
if (this._name == "hitt") {
this.stop();
}
}
Frame 13
clearInterval(intervald);
clearInterval(interninja);
clearInterval(intervaltim);
_root.firstt = false;
_root.notice = ("Your Managed To Survive For " + _root.timed) + " seconds";
_root.notice = _root.notice + "<BR><BR> Your Ranks Is: ";
if (_root.timed < 25) {
_root.notice = _root.notice + "Child Ninja";
} else if (_root.timed < 50) {
_root.notice = _root.notice + "Trainee Ninja";
} else if (_root.timed < 75) {
_root.notice = _root.notice + "Shadow Ninja";
} else if (_root.timed < 90) {
_root.notice = _root.notice + "Assassin Ninja";
} else if (_root.timed < 105) {
_root.notice = _root.notice + "Elite Ninja";
} else if (_root.timed < 120) {
_root.notice = _root.notice + "Master Ninja";
} else if (_root.timed < 160) {
_root.notice = _root.notice + "Warlord Ninja";
} else {
_root.notice = _root.notice + "Legendary Ninja";
}
stop();
Instance of Symbol 18 MovieClip in Frame 13
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Frame 14
stop();
Instance of Symbol 18 MovieClip in Frame 14
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1427741&sub=39804", "_blank");
}
Frame 15
_root.qualv = _quality;
stop();
Instance of Symbol 18 MovieClip in Frame 15
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "BEST";
_root.qualv = _quality;
}
Instance of Symbol 18 MovieClip in Frame 15
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "HIGH";
_root.qualv = _quality;
}
Instance of Symbol 18 MovieClip in Frame 15
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "MEDIUM";
_root.qualv = _quality;
}
Instance of Symbol 18 MovieClip in Frame 15
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
_quality = "LOW";
_root.qualv = _quality;
}
Instance of Symbol 113 MovieClip in Frame 15
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 16
stop();
Frame 17
_root.cleans = 1;
_root.perdis.gotoAndStop(58);
stop();
Symbol 13 MovieClip Frame 11
gotoAndPlay (1);
Symbol 217 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = 11000;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 218 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 41 Button
on (release) {
gotoAndStop (5);
}
Symbol 46 Button
on (release) {
getURL ("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash", "_blank");
}
Symbol 55 MovieClip Frame 15
var music5 = new Sound();
music5.attachSound("lgo");
music5.start(0, 1);
Symbol 55 MovieClip Frame 120
_root.goon();
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 73 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
play();
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 45
this.play();
Symbol 82 MovieClip Frame 46
this.play();
Symbol 82 MovieClip Frame 47
this.play();
Symbol 82 MovieClip Frame 48
if (_root.soound == true) {
var my_sound41 = new Sound();
my_sound41.attachSound("magbut");
my_sound41.start();
}
this.play();
Symbol 82 MovieClip Frame 56
_root.bhit(this._name);
Symbol 82 MovieClip Frame 61
gotoAndStop (1);
Symbol 109 Button
on (release) {
if (_root.inverted == false) {
_root.inverted = true;
_root.vieo._x = 392;
_root.empty1._x = 392;
} else {
_root.inverted = false;
_root.vieo._x = 552;
_root.empty1._x = 552;
}
_root.vieo._xscale = _root.vieo._xscale * -1;
_root.empty1._xscale = _root.empty1._xscale * -1;
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 130 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("about");
}
Symbol 135 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("troubleshoot");
}
Symbol 138 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("countdown");
}
Symbol 142 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("options");
}
Symbol 148 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndPlay ("instructions");
}
Symbol 154 Button
on (release) {
getURL ("http://www.iviewgames.com", "_blank");
}
Symbol 155 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;
}
Instance of Symbol 168 MovieClip "healths" in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
positionn = function () {
trace(this.healthbar._x);
};
}
onClipEvent (enterFrame) {
hbs = 101 - this._currentframe;
if (_root.health < hbs) {
this.gotoAndStop(this._currentframe + 1);
}
if (_root.health > hbs) {
this.gotoAndStop(this._currentframe - 2);
}
}
Instance of Symbol 113 MovieClip in Symbol 170 MovieClip Frame 1
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) {
}
}
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 173 MovieClip Frame 3
stop();
Symbol 173 MovieClip Frame 4
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 174 MovieClip Frame 3
stop();
Symbol 174 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 175 MovieClip Frame 3
stop();
Symbol 175 MovieClip Frame 4
stop();
Symbol 177 MovieClip Frame 20
removeMovieClip(this);
Symbol 179 Button
on (release) {
gotoAndStop (11);
}
Symbol 189 Button
on (release) {
if (_root.soound == true) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
}
gotoAndStop ("menu");
}
Symbol 204 Button
on (release) {
var music4 = new Sound();
music4.attachSound("click");
music4.start(0, 1);
gotoAndStop (9);
}