Frame 1
Frame 2
Stage.showMenu = false;
_x = 0;
_y = 0;
if (main > 0) {
} else {
__com_mochibot__("38837ffb", this, 10301, true);
_root.kongregateServices.connect();
}
_root.te.sound = 0;
main = 1;
stop();
Instance of Symbol 25 MovieClip "telapa" in Frame 2
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
}
Instance of Symbol 28 MovieClip "trail" in Frame 2
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.removeMovieClip();
}
if (_root.fader._alpha > 50) {
if (_root.fader.hitTest(this)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 30 MovieClip "fader" in Frame 2
onClipEvent (load) {
this.ac = 0;
_x = (0 + (_height / 2));
_y = (0 + (_height / 2));
}
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = _root.hero._y;
if (this.ac == 0) {
if (this._alpha > 0) {
this._alpha = this._alpha - 16;
}
}
if (this.ac == 1) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(2);
}
}
if (this.ac == 2) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(4);
}
}
if (this.ac == 3) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(5);
}
}
if (this.ac == 4) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(3);
}
}
if (this.ac == 5) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(6);
}
}
if (this.ac == 6) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(8);
}
}
if (this.ac == 7) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(9);
}
}
if (this.ac == 8) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(10);
}
}
if (this.ac == 9) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(11);
}
}
if (this.ac == 10) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(12);
}
}
if (this.ac == 11) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(13);
}
}
if (this.ac == 12) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(14);
}
}
if (this.ac == 13) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(15);
}
}
if (this.ac == 14) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(16);
}
}
if (this.ac == 15) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(17);
}
}
if (this.ac == 16) {
if (this._alpha < 80) {
this._alpha = this._alpha + 5;
} else {
ac = 0;
_root.te.hit++;
_root.gotoAndStop(16);
}
}
if (this.ac == 17) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(18);
}
}
if (this.ac == 18) {
if (this._alpha < 80) {
this._alpha = this._alpha + 8;
} else {
ac = 0;
_root.gotoAndStop(19);
}
}
if (this.ac == 19) {
if (this._alpha < 80) {
this._alpha = this._alpha + 25;
} else {
ac = 0;
_root.te.hit++;
_root.gotoAndStop(18);
}
}
if (this.ac == 20) {
if (this._alpha < 80) {
this._alpha = this._alpha + 25;
} else {
ac = 0;
_root.te.hit++;
_root.gotoAndStop(20);
}
}
}
Instance of Symbol 32 MovieClip "te" in Frame 2
onClipEvent (load) {
tempo = 0;
temp = 0;
hit = 0;
stage = 1;
sound = 0;
sound2 = 100;
obj = 0;
teclam = 1;
c = new Sound();
c.attachSound("c");
c.start(0, 999);
c.setVolume(_root.te.sound);
}
onClipEvent (enterFrame) {
if (_root.hero.vivo == 1) {
temp = temp + 0.05;
tempo = Math.round(temp * 1);
}
if (Key.isDown(77)) {
if (teclam == 1) {
if (sound == 100) {
sound = 0;
} else {
sound = 100;
}
c.setVolume(sound);
d.setVolume(sound2);
}
}
if (Key.isDown(77)) {
teclam = 0;
} else {
teclam = 1;
}
c.setVolume(sound);
d.setVolume(sound2);
}
Frame 3
stop();
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.te.sound = 100;
stopAllSounds();
c = new Sound();
c.attachSound("c");
c.start(0, 999);
c.setVolume(_root.te.sound);
Instance of Symbol 36 MovieClip "a" in Frame 3
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 45 MovieClip "z" in Frame 3
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 62 MovieClip "hero" in Frame 3
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 5;
var delay2 = 7;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
if (pa == 1) {
_root.telapa._alpha = 100;
_root.telapa._x = _x;
_root.telapa._y = _y;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
this.gotoAndStop(5);
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z._x - this._x);
var dist_y = (_root.z._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Frame 4
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
Frame 5
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
Frame 6
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 1);
Instance of Symbol 45 MovieClip "z" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 81 MovieClip "a" in Frame 6
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 62 MovieClip "hero" in Frame 6
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 5;
var delay2 = 7;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
_root.telapa._x = _x;
_root.telapa._y = _y;
if (pa == 1) {
_root.telapa._alpha = 100;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
this.gotoAndStop(5);
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z._x - this._x);
var dist_y = (_root.z._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Instance of Symbol 83 MovieClip "e" in Frame 6
onClipEvent (load) {
dir = -4;
}
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_y = (_y + dir);
if (_y > 71) {
dir = -4;
}
if (_y < -70) {
dir = 4;
}
}
}
Frame 7
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
Frame 8
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 2);
Instance of Symbol 92 MovieClip "e" in Frame 8
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_rotation = (_rotation - 3.5);
}
}
Instance of Symbol 62 MovieClip "hero" in Frame 8
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 2;
var delay2 = 3;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
if (pa == 1) {
_root.telapa._alpha = 100;
_root.telapa._x = _x;
_root.telapa._y = _y;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
this.gotoAndStop(5);
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z._x - this._x);
var dist_y = (_root.z._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Instance of Symbol 28 MovieClip "trail" in Frame 8
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.removeMovieClip();
}
if (_root.fader._alpha > 50) {
if (_root.fader.hitTest(this)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 32 MovieClip "te" in Frame 8
onClipEvent (load) {
tempo = 0;
temp = 0;
hit = 0;
stage = 1;
sound = 100;
obj = 0;
b = new Sound();
b.attachSound("b");
b.start(0, 999);
b.setVolume(sound);
teclam = 1;
}
onClipEvent (enterFrame) {
if (_root.hero.vivo == 1) {
temp = temp + 0.05;
tempo = Math.round(temp * 1);
}
if (Key.isDown(77)) {
if (teclam == 1) {
if (sound == 100) {
sound = 0;
} else {
sound = 100;
}
b.setVolume(sound);
}
}
if (Key.isDown(77)) {
teclam = 0;
} else {
teclam = 1;
}
b.setVolume(sound);
}
Frame 9
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 3);
Instance of Symbol 97 MovieClip "e" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_rotation = (_rotation + 2);
}
}
Frame 10
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 4);
Instance of Symbol 104 MovieClip "e" in Frame 10
onClipEvent (load) {
this.dir = 4.5;
}
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
this._y = this._y + this.dir;
if (this._y <= -358) {
this.dir = dir * -1;
}
if (this._y >= -4) {
this.dir = dir * -1;
}
}
}
Instance of Symbol 107 MovieClip "a" in Frame 10
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Frame 11
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 5);
Instance of Symbol 111 MovieClip "e" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 45 MovieClip "z" in Frame 11
onClipEvent (load) {
gotoAndPlay (1);
}
Frame 12
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 6);
Instance of Symbol 118 MovieClip "e" in Frame 12
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Frame 13
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 7);
Instance of Symbol 45 MovieClip "z" in Frame 13
onClipEvent (load) {
this.gotoAndPlay(1);
}
Instance of Symbol 130 MovieClip "e" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_rotation = (_rotation - 3);
}
}
Instance of Symbol 130 MovieClip "r" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_rotation = (_rotation + 3);
}
}
Frame 14
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 8);
Instance of Symbol 137 MovieClip "e" in Frame 14
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Instance of Symbol 138 MovieClip "r" in Frame 14
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
}
Frame 15
hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 9);
Instance of Symbol 143 MovieClip "e" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_rotation = (_rotation + 3);
}
}
Instance of Symbol 148 MovieClip "r" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.pa == 0) {
_rotation = (_rotation - 4);
}
}
Frame 16
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 10);
Instance of Symbol 62 MovieClip "hero" in Frame 16
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 2;
var delay2 = 5;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
if (pa == 1) {
_root.telapa._alpha = 100;
_root.telapa._x = _x;
_root.telapa._y = _y;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
this.gotoAndStop(5);
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z._x - this._x);
var dist_y = (_root.z._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Frame 17
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
Instance of Symbol 62 MovieClip "hero" in Frame 17
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 1;
var delay2 = 1;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
if (pa == 1) {
_root.telapa._alpha = 100;
_root.telapa._x = _x;
_root.telapa._y = _y;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
_root.fader.ac = 16;
this.gotoAndStop(5);
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z2._x - this._x);
var dist_y = (_root.z2._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Instance of Symbol 45 MovieClip "z2" in Frame 17
onClipEvent (load) {
this.gotoAndPlay(1);
}
Instance of Symbol 166 MovieClip "e" in Frame 17
onClipEvent (load) {
delay = 27;
}
onClipEvent (enterFrame) {
dist_x = _root.hero._x - this._x;
dist_y = _root.hero._y - this._y;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
speed = distance / delay;
angle = Math.atan2(dist_y, dist_x);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
if (_root.hero.vivo == 1) {
this._x = this._x + xdis;
this._y = this._y + ydis;
this._rotation = (angle * 180) / 3.141593;
} else {
this._rotation = (angle * 180) / 3.141593;
if (_root.hero.vivo == -1) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
}
}
}
}
Frame 18
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
Instance of Symbol 62 MovieClip "hero" in Frame 18
onClipEvent (load) {
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 5;
var delay2 = 7;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
if (pa == 1) {
_root.telapa._alpha = 100;
_root.telapa._x = _x;
_root.telapa._y = _y;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
this.gotoAndStop(5);
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z._x - this._x);
var dist_y = (_root.z._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Frame 19
stop();
_root.hero.vivo = -6;
_root.hero._x = _root.z._x;
_root.hero._y = _root.z._y;
_root.kongregateStats.submit("Stage", 11);
Instance of Symbol 28 MovieClip "trail" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.pa == 1) {
stop();
} else {
play();
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.removeMovieClip();
}
if (_root.fader._alpha > 50) {
if (_root.fader.hitTest(this)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 174 MovieClip "fim" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this)) {
_root.fader.ac = 20;
}
}
Instance of Symbol 62 MovieClip "hero" in Frame 19
onClipEvent (load) {
Nonoba.api.NonobaAPI.AwardAchievement("moon", function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The achievement was successfully awarded.");
trace(("It has been awarded " + count) + " times.");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in.");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
Nonoba.api.NonobaAPI.SubmitScore("Hits", _root.te.hit, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS :
trace("The score was submitted successfully");
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN :
trace("The user is not logged in");
break;
case Nonoba.api.NonobaAPI.ERROR :
trace("An error occurred.");
}
});
_root.kongregateStats.submit("Hits", _root.te.hit);
var yspeed = 0;
var xspeed = 0;
var power = 1;
var vivo = -6;
var cont2 = 0;
var passou = 0;
var level = 1;
var dist = 0;
var delay = 2;
var delay2 = 3;
_height = 0;
_width = 0;
_alpha = 0;
_root.a.agora = 0;
traile = 0;
_x = _root.z._x;
_y = _root.z._y;
this.gotoAndStop(5);
max = 10;
velo = 0;
pa = 0;
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
if (Key.isDown(80)) {
p = 0;
if (pa == 0) {
pa = 1;
} else {
pa = 0;
}
}
}
if (Key.isDown(80)) {
p = 0;
} else {
p = 1;
}
if (pa == 1) {
_root.telapa._alpha = 100;
_root.telapa._x = _x;
_root.telapa._y = _y;
} else {
_root.telapa._alpha = 0;
}
if (pa == 0) {
if (this.vivo == 1) {
_width = 25;
_height = 25;
_rotation = 0;
velo = 0;
if (Key.isDown(37)) {
this.gotoAndStop(3);
var xspeed = (xspeed - power);
}
if (Key.isDown(39)) {
this.gotoAndStop(1);
var xspeed = (xspeed + power);
}
if (Key.isDown(38)) {
this.gotoAndStop(4);
var yspeed = (yspeed - power);
}
if (Key.isDown(40)) {
this.gotoAndStop(2);
var yspeed = (yspeed + power);
}
var speed = Math.sqrt((yspeed * yspeed) + ((xspeed * xspeed) * 2));
var xspeed = (xspeed * 0.97);
var yspeed = (yspeed * 0.97);
this._x = this._x + xspeed;
this._y = this._y + yspeed;
_root._x = _root._x - xspeed;
_root._y = _root._y - yspeed;
if (xspeed > max) {
xspeed = max;
}
if (xspeed < (-max)) {
xspeed = -max;
}
if (yspeed > max) {
yspeed = max;
}
if (yspeed < (-max)) {
yspeed = -max;
}
if (speed > 10) {
this.a.gotoAndStop(2);
} else {
this.a.gotoAndStop(1);
}
if (speed > 5) {
traile = traile + 2;
if (traile >= 8) {
if (cont2 < 100) {
cont2++;
} else {
cont2 = 0;
}
_root.trail.duplicateMovieClip("trail" + cont2, cont2, cont2);
_root["trail" + cont2]._y = this._y;
_root["trail" + cont2]._x = this._x;
_root["trail" + cont2]._height = this._height;
_root["trail" + cont2]._width = this._width;
traile = 0;
}
if (speed > 10) {
traile = traile + 4;
}
}
if (((((((((((((((_root.w.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.w.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.w.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.w.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.e.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.e.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.e.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.e.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.r.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.r.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.r.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.r.hitTest(this._x - 12.5, 12.5 + this._y, true))) || (_root.t.hitTest(this._x - 12.5, this._y - 12.5, true))) || (_root.t.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.t.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.t.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
var vivo = 0;
this.gotoAndStop(5);
}
if (_root.fim.hitTest(this)) {
_root.fader.ac = 20;
}
if (((_root.a.hitTest(this._x - 12.5, this._y - 12.5, true) || (_root.a.hitTest(12.5 + this._x, 12.5 + this._y, true))) || (_root.a.hitTest(12.5 + this._x, this._y - 12.5, true))) || (_root.a.hitTest(this._x - 12.5, 12.5 + this._y, true))) {
this.gotoAndStop(5);
var vivo = -1;
}
} else {
if (this.vivo == -2) {
if (this._alpha > -1) {
this._alpha = this._alpha - 7.5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == -1) {
var dist_x = (_root.a._x - this._x);
var dist_y = (_root.a._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
if (distance < 1) {
_root.a.agora = 1;
velo = velo + 2;
_rotation = (_rotation + velo);
}
}
if (this.vivo == 0) {
if (this._height > 5) {
this._alpha = this._alpha - 5;
this._height = this._height - 1.5;
this._width = this._width - 1.5;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
var dist_x = (_root.z._x - this._x);
var dist_y = (_root.z._y - this._y);
var distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
var speed = (distance / delay2);
var angle = Math.atan2(dist_y, dist_x);
var xdis = (speed * Math.cos(angle));
var ydis = (speed * Math.sin(angle));
this._x = this._x + xdis;
this._y = this._y + ydis;
_root._x = _root._x - xdis;
_root._y = _root._y - ydis;
velo = velo + 2;
_rotation = (_rotation + velo);
if (distance < 1) {
_root.te.hit++;
this.vivo = 2;
}
}
}
if (this.vivo == 2) {
if (this._height < 25) {
this._height = this._height + 1.5;
this._width = this._width + 1.5;
this._alpha = this._alpha + 30;
velo = velo + 2;
_rotation = (_rotation + velo);
} else {
_rotation = 0;
if (this._alpha < 100) {
this._alpha = this._alpha + 22;
} else if (((Key.isDown(37) || (Key.isDown(39))) || (Key.isDown(38))) || (Key.isDown(40))) {
var xspeed = 0;
var yspeed = 0;
var vivo = 1;
}
}
}
}
}
}
Frame 20
_x = 0;
_y = 0;
Instance of Symbol 178 MovieClip "p3" in Frame 20
onClipEvent (enterFrame) {
if (_root.fader._alpha < 5) {
_root.play();
} else {
_root.stop();
}
}
Frame 125
_root.te.sound = 0;
_root.kongregateStats.submit("Stage", 12);
_root.tries.text = "Hits: " + _root.te.hit;
stop();
Symbol 4 MovieClip [cannonball] Frame 1
stop();
Symbol 4 MovieClip [cannonball] Frame 25
this.removeMovieClip();
Symbol 192 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.2");
}
static function showPreGameAd(options) {
var _local19 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
clip.stop();
}, ad_finished:function () {
clip.gotoAndStop(7);
}};
options = _parseOptions(options, _local19);
var clip = options.clip;
var _local12 = 11000;
var _local20 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local8 = _getRes(options);
var _local6 = _local8[0];
var _local4 = _local8[1];
mc._x = _local6 * 0.5;
mc._y = _local4 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local6 * -0.5;
chk._y = _local4 * -0.5;
var _local10 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local10._x = 10;
_local10._y = _local4 - 20;
var _local13 = options.color;
delete options.color;
var _local18 = options.background;
delete options.background;
var _local21 = options.outline;
delete options.outline;
var _local5 = _local10.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local18);
_local5.moveTo(0, 0);
_local5.lineTo(_local6 - 20, 0);
_local5.lineTo(_local6 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local7 = _local10.createEmptyMovieClip("_inside", 2);
_local7.beginFill(_local13);
_local7.moveTo(0, 0);
_local7.lineTo(_local6 - 20, 0);
_local7.lineTo(_local6 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
_local7.endFill();
_local7._xscale = 0;
var _local11 = _local10.createEmptyMovieClip("_outline", 3);
_local11.lineStyle(0, _local21, 100);
_local11.moveTo(0, 0);
_local11.lineTo(_local6 - 20, 0);
_local11.lineTo(_local6 - 20, 10);
_local11.lineTo(0, 10);
_local11.lineTo(0, 0);
chk.ad_msec = _local12;
chk.ad_timeout = _local20;
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) / fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local8 = this._parent._parent;
var _local9 = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local5 = false;
var _local4 = _local8.getBytesTotal();
var _local6 = _local8.getBytesLoaded();
var _local11 = (100 * _local6) / _local4;
var _local10 = (100 * _local3) / chk.ad_msec;
var _local12 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local11 || 0, _local10));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local12._xscale = _local2;
if (!chk.showing) {
var _local7 = _local9.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
_local5 = true;
}
}
if (_local3 > chk.ad_msec) {
_local5 = true;
}
if (((_local4 > 0) && (_local6 >= _local4)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local7 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
clip.stop();
}, ad_finished:function () {
clip.stop();
}};
options = _parseOptions(options, _local7);
var clip = options.clip;
var _local10 = 11000;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local11 = _getRes(options);
var _local6 = _local11[0];
var _local9 = _local11[1];
mc._x = _local6 * 0.5;
mc._y = _local9 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local4 = _local5.getBytesTotal();
if ((_local4 > 0) || (typeof(_local4) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local3 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
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 _local19 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local19);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local12 = options.clip;
var _local11 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local12[_local11]) {
return(_local12[_local11].lc);
}
var _local15 = options.com_server + options.id;
_allowDomains(_local15);
delete options.id;
delete options.com_server;
var _local20 = options.depth;
delete options.depth;
var _local13 = _local12.createEmptyMovieClip(_local11, _local20);
var _local8 = _local13.createEmptyMovieClip("_mochiad_com", 1);
for (var _local10 in options) {
_local8[_local10] = options[_local10];
}
var _local7 = new LocalConnection();
var _local14 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local7.mc = _local13;
_local7.name = _local14;
_local7.allowDomain = function (d) {
return(true);
};
_local7.allowInsecureDomain = _local7.allowDomain;
_local7.connect(_local14);
_local13.lc = _local7;
_local8.lc = _local14;
_local7._id = 0;
_local7._queue = [];
_local7.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
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);
}
};
_local7._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++;
}
};
_local7.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 _local8 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local7._callbacks = {};
_local7._callbacks[0] = [_local7, "_didConnect"];
_local8.st = getTimer();
_local8.loadMovie(_local15 + ".swf", "POST");
return(_local7);
}
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 = getVersion();
var _local8 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local8._mochiad_loaded) {
return(null);
}
var _local14 = options.depth;
delete options.depth;
var _local6 = _local8.createEmptyMovieClip("_mochiad", _local14);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local8._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local11 = _local4.server;
delete _local4.server;
var _local12 = _allowDomains(_local11);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local12;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".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 _local1 = 0;
var _local2 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local1 = parseFloat(_local4[0]);
_local2 = parseFloat(_local4[1]);
} else {
_local1 = _local3.xMax - _local3.xMin;
_local2 = _local3.yMax - _local3.yMin;
}
if ((_local1 == 0) || (_local2 == 0)) {
_local1 = Stage.width;
_local2 = Stage.height;
}
return([_local1, _local2]);
}
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 193 MovieClip [__Packages.Nonoba.api.NonobaAPI] Frame 0
class Nonoba.api.NonobaAPI
{
static var api;
function NonobaAPI () {
throw new Error("ERROR!: You cannot create an instance of the NonobaAPI class!");
}
static function SubmitScore(key, score, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SubmitScore)) {
api.SubmitScore(key, score, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SubmitScore(key, score, callback);
});
}
}
static function AwardAchievement(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, 0);
}
return(undefined);
}
if (api && (api.AwardAchievement)) {
api.AwardAchievement(key, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.AwardAchievement(key, callback);
});
}
}
static function SetUserData(key, value, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SetUserData)) {
api.SetUserData(key, value, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SetUserData(key, value, callback);
});
}
}
static function GetUserData(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUserData)) {
api.GetUserData(key, callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUserData(key, callback);
});
}
}
static function GetUsername(callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUsername)) {
api.GetUsername(callback);
} else {
cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUsername(callback);
});
}
}
static function Init(container) {
function emptyCache() {
var _local1 = 0;
while (_local1 < Nonoba.api.NonobaAPI.cachedRequests.length) {
Nonoba.api.NonobaAPI.cachedRequests[_local1]();
_local1++;
}
Nonoba.api.NonobaAPI.cachedRequests = [];
}
if (isInited) {
throw new Error("NonobaAPI can not be re-initialized!");
}
isInited = true;
var _local4 = _root.nonoba$apicodeas2;
if (!_local4) {
failed = true;
emptyCache();
}
System.security.allowDomain("*");
container = container || _root;
api = container.createEmptyMovieClip("___NonobaAPI__loader", container.getNextHighestDepth());
var _local3 = new MovieClipLoader();
_local3.addListener({onLoadComplete:function () {
var loadTimer = setInterval(mx.utils.Delegate.create(Nonoba.api.NonobaAPI, function () {
if (!(Nonoba.api.NonobaAPI.api.SubmitScore === undefined)) {
clearInterval(loadTimer);
emptyCache();
}
}), 500);
}, onLoadError:function () {
Nonoba.api.NonobaAPI.failed = true;
emptyCache();
}});
_local3.loadClip(_local4, api);
}
static var SUCCESS = "SUCCESS";
static var NOT_LOGGED_IN = "user not logged in";
static var ERROR = "error";
static var isInited = false;
static var loading = false;
static var cachedRequests = [];
static var failed = false;
}
Symbol 194 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 7 Button
on (release) {
_root.fader.ac = 1;
}
Symbol 12 Button
on (release) {
_root.fader.ac = 2;
}
Symbol 15 Button
on (release) {
_root.fader.ac = 3;
}
Symbol 18 Button
on (release) {
_root.fader.ac = 4;
}
Symbol 22 MovieClip Frame 20
stop();
Symbol 28 MovieClip Frame 30
this.removeMovieClip();
Symbol 36 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 36 MovieClip Frame 53
_root.fader.ac = 5;
_root.te.stage++;
stop();
Symbol 45 MovieClip Frame 1
play();
Symbol 45 MovieClip Frame 12
_root.hero.vivo = 2;
Symbol 45 MovieClip Frame 75
if (_root.hero.vivo == -6) {
gotoAndPlay (1);
} else {
gotoAndPlay (37);
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 3
stop();
Symbol 62 MovieClip Frame 4
stop();
Symbol 62 MovieClip Frame 5
stop();
Symbol 76 Button
on (release) {
_root.fader.ac = 1;
}
Symbol 81 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 81 MovieClip Frame 53
_root.fader.ac = 6;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 89 MovieClip Frame 70
_root.fader.ac = 1;
stop();
Symbol 95 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 95 MovieClip Frame 53
_root.fader.ac = 7;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 98 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 98 MovieClip Frame 53
_root.fader.ac = 8;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 107 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 107 MovieClip Frame 53
_root.fader.ac = 9;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 114 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 114 MovieClip Frame 53
_root.fader.ac = 10;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 121 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 121 MovieClip Frame 53
_root.fader.ac = 11;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 131 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 131 MovieClip Frame 53
_root.fader.ac = 12;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 139 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 139 MovieClip Frame 53
_root.fader.ac = 13;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 149 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 149 MovieClip Frame 53
_root.fader.ac = 14;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 157 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 157 MovieClip Frame 53
_root.fader.ac = 15;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 160 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 160 MovieClip Frame 53
_root.fader.ac = 18;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();
Symbol 168 MovieClip Frame 42
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
if (this.agora == 1) {
_root.hero.vivo = -2;
} else {
this.gotoAndPlay(1);
}
Symbol 168 MovieClip Frame 53
_root.fader.ac = 19;
_root.hero.removeMovieClip();
this.removeMovieClip();
_root.te.stage++;
stop();