Frame 1
function tracking() {
myURL = "http://www.gamegarage.co.uk/scripts/";
url = myURL + "tracking.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.sendAndLoad(url, lv, "POST");
}
function scoring() {
myURL = "http://www.gamegarage.co.uk/scripts/";
url = myURL + "score.php";
lv = new LoadVars();
lv.game_id = _root.game_id;
lv.user_id = _root.user_id;
lv.score = _root.sist.finalscore2;
lv.alg = ((_root.game_id + _root.user_id) + _root.sist.finalscore2) + "a83l9xj";
lv.sendAndLoad(url, lv, "POST");
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root.gotoAndStop(2);
}
}
stop();
__com_mochibot__("e8650b83", this, 10301, true);
_root.kongregateServices.connect();
_lockroot = true;
urls_allowed = ["chat.kongregate.com", "www.chat.kongregate.com", "www.kongregate.com"];
sitelock(urls_allowed);
Instance of Symbol 18 MovieClip "lo" in Frame 1
onClipEvent (load) {
time = 60;
}
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
carregado = _root.getBytesLoaded();
porcentagem = Math.floor((carregado / total) * 100);
if (porcentagem < 100) {
trace(porcentagem + " Loaded");
}
if (time > 0) {
trace(Math.floor((time = time - 2.5)) + "Time");
}
if (porcentagem == 100) {
if (time <= 0) {
_root.lolo._alpha = 0;
_root.loading.gotoAndStop(65);
}
}
}
Instance of Symbol 79 MovieClip "MJ" in Frame 1
on (release) {
getURL ("http://www.minijuegos.com", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
Frame 2
function sitelock(url_to_lock) {
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
if (real_domain[0] == url_to_lock) {
_root.gotoAndStop(1);
}
}
var CPMStarContentSpotID = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=338QAFCE9FFE");
sitelock("www.chat.kongregate.com");
Instance of Symbol 18 MovieClip "lo" in Frame 2
onClipEvent (load) {
time = 600;
}
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
carregado = _root.getBytesLoaded();
porcentagem = Math.floor((carregado / total) * 100);
if (porcentagem < 100) {
trace(porcentagem + " Loaded");
}
if (time > 0) {
trace(Math.floor((time = time - 2.5)) + "Time");
}
time2 = 600 - time;
porcentagem2 = Math.floor((porcentagem + (time2 / 10)) / 1.6);
_root.lolo.lolo.text = porcentagem2 + "% LOADING...";
if (porcentagem == 100) {
if (time <= 0) {
_root.lolo._alpha = 0;
_root.loading.gotoAndStop(65);
}
}
}
Frame 164
Stage.showMenu = false;
mochi.MochiServices.connect("9988996a2ef6bef8");
Instance of Symbol 145 MovieClip "box" in Frame 164
onClipEvent (load) {
score = 0;
matou = 0;
bateu = 0;
highcombo = 0;
volume = 80;
pacdanos = 0;
gameover = SharedObject.getLocal("gameover");
if (gameover.data.counter == undefined) {
gameover.data.counter = 0;
}
skipe = SharedObject.getLocal("skipe");
if (skipe.data.counter == undefined) {
skipe.data.counter = 0;
}
bestcombo = SharedObject.getLocal("bestcombo");
if (bestcombo.data.counter == undefined) {
bestcombo.data.counter = 0;
}
bestcrash = SharedObject.getLocal("bestcrash");
if (bestcrash.data.counter == undefined) {
bestcrash.data.counter = 0;
}
bestkills = SharedObject.getLocal("bestkills");
if (bestkills.data.counter == undefined) {
bestkills.data.counter = 0;
}
bestpacdanos = SharedObject.getLocal("bestpacdanos");
if (bestpacdanos.data.counter == undefined) {
bestpacdanos.data.counter = 0;
}
bestmedia = SharedObject.getLocal("bestmedia");
if (bestmedia.data.counter == undefined) {
bestmedia.data.counter = 0;
}
easter = SharedObject.getLocal("easter");
if (easter.data.counter == undefined) {
easter.data.counter = 0;
}
sponsor = SharedObject.getLocal("sponsor");
if (sponsor.data.counter == undefined) {
sponsor.data.counter = 0;
}
track = SharedObject.getLocal("track");
if (track.data.counter == undefined) {
track.data.counter = 0;
}
triqui = SharedObject.getLocal("triqui");
if (triqui.data.counter == undefined) {
triqui.data.counter = 0;
}
beat = SharedObject.getLocal("beat");
if (beat.data.counter == undefined) {
beat.data.counter = 0;
}
novidade = SharedObject.getLocal("novidade");
if (novidade.data.counter == undefined) {
novidade.data.counter = 0;
}
bestscore = SharedObject.getLocal("bestscore");
if (bestscore.data.counter == undefined) {
bestscore.data.counter = 0;
}
teclam = 1;
teclaq = 1;
tiros = SharedObject.getLocal("tiros");
if (tiros.data.counter == undefined) {
tiros.data.counter = 0;
}
levelmax = SharedObject.getLocal("levelmax");
if (levelmax.data.counter == undefined) {
levelmax.data.counter = 0;
}
inimigoa = SharedObject.getLocal("inimigoa");
if (inimigoa.data.counter == undefined) {
inimigoa.data.counter = 0;
}
inimigob = SharedObject.getLocal("inimigob");
if (inimigob.data.counter == undefined) {
inimigob.data.counter = 0;
}
inimigoc = SharedObject.getLocal("inimigoc");
if (inimigoc.data.counter == undefined) {
inimigoc.data.counter = 0;
}
inimigod = SharedObject.getLocal("inimigod");
if (inimigod.data.counter == undefined) {
inimigod.data.counter = 0;
}
tocando = 0;
}
onClipEvent (enterFrame) {
omg.setVolume(volume);
hero.setVolume(volume);
game.setVolume(volume);
end.setVolume(volume);
nokkian = bestscore.data.counter * 6;
if (Key.isDown(77)) {
if (teclam == 1) {
if (volume == 50) {
volume = 0;
} else {
volume = 50;
}
}
}
if (Key.isDown(77)) {
teclam = 0;
} else {
teclam = 1;
}
if (Key.isDown(81)) {
if (teclaq == 1) {
if (_root.q.click == 1) {
if (_root._quality == "HIGH") {
_root._quality = "LOW";
_root.q.click = 0;
}
if (_root._quality == "LOW") {
_root._quality = "HIGH";
_root.q.click = 0;
}
}
}
}
if (Key.isDown(81)) {
teclaq = 0;
} else {
teclaq = 1;
}
}
Instance of Symbol 147 MovieClip "fader" in Frame 164
onClipEvent (load) {
ac = 0;
_x = 0;
_y = 0;
f = 0;
}
onClipEvent (enterFrame) {
if (ac == 0) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
if (ac == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
ac = 0;
_root.gotoAndStop(f);
}
}
if (ac == 2) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
ac = 0;
_root.gotoAndStop(8);
}
}
}
Instance of Symbol 145 MovieClip "box" in Frame 165
onClipEvent (load) {
score = 0;
matou = 0;
bateu = 0;
highcombo = 0;
volume = 80;
pacdanos = 0;
gameover = SharedObject.getLocal("gameover");
if (gameover.data.counter == undefined) {
gameover.data.counter = 0;
}
skipe = SharedObject.getLocal("skipe");
if (skipe.data.counter == undefined) {
skipe.data.counter = 0;
}
bestcombo = SharedObject.getLocal("bestcombo");
if (bestcombo.data.counter == undefined) {
bestcombo.data.counter = 0;
}
bestcrash = SharedObject.getLocal("bestcrash");
if (bestcrash.data.counter == undefined) {
bestcrash.data.counter = 0;
}
bestkills = SharedObject.getLocal("bestkills");
if (bestkills.data.counter == undefined) {
bestkills.data.counter = 0;
}
bestcombo2 = SharedObject.getLocal("bestcombo");
if (bestcombo2.data.counter == undefined) {
bestcombo2.data.counter = 0;
}
bestcrash2 = SharedObject.getLocal("bestcrash");
if (bestcrash2.data.counter == undefined) {
bestcrash2.data.counter = 0;
}
bestkills2 = SharedObject.getLocal("bestkills");
if (bestkills2.data.counter == undefined) {
bestkills2.data.counter = 0;
}
bestpacdanos = SharedObject.getLocal("bestpacdanos");
if (bestpacdanos.data.counter == undefined) {
bestpacdanos.data.counter = 0;
}
bestmedia = SharedObject.getLocal("bestmedia");
if (bestmedia.data.counter == undefined) {
bestmedia.data.counter = 0;
}
easter = SharedObject.getLocal("easter");
if (easter.data.counter == undefined) {
easter.data.counter = 0;
}
sponsor = SharedObject.getLocal("sponsor");
if (sponsor.data.counter == undefined) {
sponsor.data.counter = 0;
}
track = SharedObject.getLocal("track");
if (track.data.counter == undefined) {
track.data.counter = 0;
}
triqui = SharedObject.getLocal("triqui");
if (triqui.data.counter == undefined) {
triqui.data.counter = 0;
}
beat = SharedObject.getLocal("beat");
if (beat.data.counter == undefined) {
beat.data.counter = 0;
}
novidade = SharedObject.getLocal("novidade");
if (novidade.data.counter == undefined) {
novidade.data.counter = 0;
}
bestscore = SharedObject.getLocal("bestscore");
if (bestscore.data.counter == undefined) {
bestscore.data.counter = 0;
}
teclam = 1;
teclaq = 1;
tiros = SharedObject.getLocal("tiros");
if (tiros.data.counter == undefined) {
tiros.data.counter = 0;
}
levelmax = SharedObject.getLocal("levelmax");
if (levelmax.data.counter == undefined) {
levelmax.data.counter = 0;
}
inimigoa = SharedObject.getLocal("inimigoa");
if (inimigoa.data.counter == undefined) {
inimigoa.data.counter = 0;
}
inimigob = SharedObject.getLocal("inimigob");
if (inimigob.data.counter == undefined) {
inimigob.data.counter = 0;
}
inimigoc = SharedObject.getLocal("inimigoc");
if (inimigoc.data.counter == undefined) {
inimigoc.data.counter = 0;
}
inimigod = SharedObject.getLocal("inimigod");
if (inimigod.data.counter == undefined) {
inimigod.data.counter = 0;
}
award1 = SharedObject.getLocal("a22");
if (award1.data.counter == undefined) {
award1.data.counter = 0;
}
award2 = SharedObject.getLocal("a23");
if (award2.data.counter == undefined) {
award2.data.counter = 0;
}
award3 = SharedObject.getLocal("a24");
if (award3.data.counter == undefined) {
award3.data.counter = 0;
}
award4 = SharedObject.getLocal("a25");
if (award4.data.counter == undefined) {
award4.data.counter = 0;
}
award5 = SharedObject.getLocal("a26");
if (award5.data.counter == undefined) {
award5.data.counter = 0;
}
award6 = SharedObject.getLocal("a27");
if (award6.data.counter == undefined) {
award6.data.counter = 0;
}
award7 = SharedObject.getLocal("a28");
if (award7.data.counter == undefined) {
award7.data.counter = 0;
}
award8 = SharedObject.getLocal("a29");
if (award8.data.counter == undefined) {
award8.data.counter = 0;
}
award9 = SharedObject.getLocal("a30");
if (award9.data.counter == undefined) {
award9.data.counter = 0;
}
award10 = SharedObject.getLocal("a31");
if (award10.data.counter == undefined) {
award10.data.counter = 0;
}
award11 = SharedObject.getLocal("a32");
if (award11.data.counter == undefined) {
award11.data.counter = 0;
}
award12 = SharedObject.getLocal("a33");
if (award12.data.counter == undefined) {
award12.data.counter = 0;
}
award13 = SharedObject.getLocal("a34");
if (award13.data.counter == undefined) {
award13.data.counter = 0;
}
award14 = SharedObject.getLocal("a35");
if (award14.data.counter == undefined) {
award14.data.counter = 0;
}
award15 = SharedObject.getLocal("a36");
if (award15.data.counter == undefined) {
award15.data.counter = 0;
}
award16 = SharedObject.getLocal("a37");
if (award16.data.counter == undefined) {
award16.data.counter = 0;
}
award17 = SharedObject.getLocal("a38");
if (award17.data.counter == undefined) {
award17.data.counter = 0;
}
award18 = SharedObject.getLocal("a39");
if (award18.data.counter == undefined) {
award18.data.counter = 0;
}
award19 = SharedObject.getLocal("a40");
if (award19.data.counter == undefined) {
award19.data.counter = 0;
}
award20 = SharedObject.getLocal("a41");
if (award20.data.counter == undefined) {
award20.data.counter = 0;
}
tocando = 0;
}
onClipEvent (enterFrame) {
totalawards = ((((((((((((((award1.data.counter + award2.data.counter) + award3.data.counter) + award4.data.counter) + award5.data.counter) + award6.data.counter) + award7.data.counter) + award8.data.counter) + award9.data.counter) + award10.data.counter) + award11.data.counter) + award12.data.counter) + award13.data.counter) + award14.data.counter) + award15.data.counter) + award16.data.counter;
totalsubawards = ((award17.data.counter + award18.data.counter) + award19.data.counter) + award20.data.counter;
omg.setVolume(volume);
hero.setVolume(volume);
game.setVolume(volume);
end.setVolume(volume);
nokkian = bestscore.data.counter * 6;
if (Key.isDown(77)) {
if (teclam == 1) {
if (volume == 80) {
volume = 0;
} else {
volume = 80;
}
}
}
if (Key.isDown(77)) {
teclam = 0;
} else {
teclam = 1;
}
if (Key.isDown(81)) {
if (teclaq == 1) {
if (_root.q.click == 1) {
if (_root._quality == "BEST") {
_root._quality = "MEDIUM";
_root.q.click = 0;
}
if (_root._quality == "BEST") {
_root._quality = "MEDIUM";
_root.q.click = 0;
}
}
}
}
if (Key.isDown(81)) {
teclaq = 0;
} else {
teclaq = 1;
}
}
Instance of Symbol 148 MovieClip "fader" in Frame 165
onClipEvent (load) {
ac = 0;
_x = 0;
_y = 0;
f = 3;
}
onClipEvent (enterFrame) {
if (ac == 0) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
}
}
if (ac == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
ac = 0;
f2 = f + 163;
_root.gotoAndStop(f2);
}
}
if (ac == 2) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
ac = 0;
_root.gotoAndStop(8);
}
}
}
Frame 166
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("55c22e61", this, 10301, true);
stop();
if (_root.box.bestcombo.data.counter > 0) {
_root.kongregateStats.submit("Highest Combo", _root.box.bestcombo.data.counter);
}
if (_root.box.bestcrash.data.counter > 0) {
_root.kongregateStats.submit("Remaining Energy", _root.box.bestcrash.data.counter);
}
if (_root.box.bestkills.data.counter > 0) {
_root.kongregateStats.submit("Amount of Kills", _root.box.bestkills.data.counter);
}
if (_root.box.bestmedia.data.counter > 0) {
_root.kongregateStats.submit("Final Grade", _root.box.bestmedia.data.counter);
}
if (_root.box.beat.data.counter > 0) {
_root.kongregateStats.submit("You Saved The Earth", _root.box.beat.data.counter);
}
if (_root.box.bestscore.data.counter > 0) {
_root.kongregateStats.submit("Final Score", _root.box.bestscore.data.counter);
}
if (_root.box.totalawards.data.counter > 0) {
_root.kongregateStats.submit("Awards", _root.box.totalawards);
}
if (_root.box.totalsubawards.data.counter > 0) {
_root.kongregateStats.submit("Sub-Awards", _root.box.totalsubawards);
}
Instance of Symbol 166 MovieClip in Frame 166
on (release) {
if (_root.box.sponsor.data.counter == 0) {
_root.box.sponsor.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("http://www.minijuegos.com", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
}
Instance of Symbol 170 MovieClip "award" in Frame 166
onClipEvent (enterFrame) {
_alpha = 100;
}
Instance of Symbol 180 MovieClip in Frame 166
on (release) {
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
_root.fader.ac = 1;
_root.fader.f = 9;
tracking();
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
}
Instance of Symbol 183 MovieClip in Frame 166
on (release) {
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
_root.fader.ac = 1;
_root.fader.f = 10;
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
}
Instance of Symbol 186 MovieClip in Frame 166
on (release) {
_root.fader.ac = 1;
_root.fader.f = 8;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
}
Instance of Symbol 189 MovieClip in Frame 166
on (release) {
if (_root.box.sponsor.data.counter == 0) {
_root.box.sponsor.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("www.minijuegos.com", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
}
Instance of Symbol 191 MovieClip in Frame 166
onClipEvent (enterFrame) {
omg.setVolume(_root.box.volume);
if (_root.box.tocando != 1) {
stopAllSounds();
omg = new Sound();
omg.attachSound("omg");
omg.setVolume(_root.box.volume);
omg.start(0, 999);
_root.box.tocando = 1;
}
}
Frame 167
stop();
Instance of Symbol 308 MovieClip in Frame 167
on (release) {
if (_root.box.skipe.data.counter == 1) {
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
_root.fader.ac = 1;
_root.fader.f = 6;
stopAllSounds();
}
}
onClipEvent (enterFrame) {
if (_root.box.skipe.data.counter == 1) {
_alpha = 100;
}
if (_root.box.skipe.data.counter == 0) {
_alpha = 0;
}
}
Instance of Symbol 191 MovieClip in Frame 167
onClipEvent (enterFrame) {
omg.setVolume(_root.box.volume);
if (_root.box.tocando != 1) {
stopAllSounds();
omg = new Sound();
omg.attachSound("omg");
omg.setVolume(_root.box.volume);
omg.start(0, 999);
_root.box.tocando = 1;
}
}
Instance of Symbol 191 MovieClip in Frame 168
onClipEvent (enterFrame) {
if (_root.box.tocando != 3) {
stopAllSounds();
end = new Sound();
end.attachSound("end");
end.setVolume(_root.box.volume);
end.start(0, 999);
_root.box.tocando = 3;
}
}
Frame 169
stop();
_root.createEmptyMovieClip("movFrameRate", 100);
_root.movFrameRate.onEnterFrame = function () {
this.t = getTimer();
this.frameRate = Math.round(1000 / (this.t - this.o));
((this.frameRate > 24) ? ((this.frameRate = 24)) : false);
_root.fps.text = this.frameRate + " fps";
this.o = this.t;
};
Instance of Symbol 432 MovieClip "a" in Frame 169
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
play();
} else {
stop();
}
}
Instance of Symbol 191 MovieClip in Frame 169
onClipEvent (enterFrame) {
game.setVolume(_root.box.volume);
if (_root.box.tocando != 4) {
stopAllSounds();
game = new Sound();
game.attachSound("game");
game.start(0, 999);
game.setVolume(_root.box.volume);
_root.box.tocando = 4;
}
if (_root.a.a.portal.pausegame == 1) {
game.setVolume(0);
}
if (_root.a.a.portal.pausegame == 0) {
game.setVolume(_root.box.volume);
}
}
Frame 170
_root._quality = "HIGH";
onEnterFrame = function () {
if (_root.mindjolt == 1) {
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.sist.finalscore);
}
};
Instance of Symbol 170 MovieClip "award" in Frame 170
onClipEvent (enterFrame) {
_alpha = 100;
}
Instance of Symbol 448 MovieClip "sist" in Frame 170
onClipEvent (load) {
feito = 0;
tempo = 120;
combo = 0;
combo2 = 1;
batidas = 0;
batidas2 = 1;
kills = 0;
kills2 = 1;
danos = 0;
danos2 = 1;
media = 0;
media2 = 100;
media3 = 1;
finalscore = 0;
finalscore2 = 0;
_root.media.medidor._yscale = 0;
_root.media._alpha = 0;
_root.award._alpha = 0;
_root.box.beat.data.counter = 1;
_root.kongregateStats.submit("You Saved The Earth", 1);
}
onClipEvent (enterFrame) {
if (feito == 0) {
total = _root.box.highcombo;
up = total / 120;
if (tempo > 0) {
combo = combo + up;
tempo--;
}
if (tempo == 0) {
_root.kongregateStats.submit("Highest Combo", combo);
st = new Sound();
st.attachSound("st");
st.setVolume(50);
st.start(0, 1);
tempo = 120;
feito++;
combo = total;
if (combo > _root.box.bestcombo.data.counter) {
_root.box.bestcombo.data.counter = combo;
}
}
if (((combo >= 0) && (combo < 200)) && (combo2 == 0)) {
combo2 = 1;
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
}
if (((combo >= 200) && (combo < 400)) && (combo2 == 1)) {
combo2 = 2;
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
}
if (((combo >= 400) && (combo < 550)) && (combo2 == 2)) {
combo2 = 3;
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
}
if (((combo >= 550) && (combo < 800)) && (combo2 == 3)) {
combo2 = 4;
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
}
if ((combo >= 800) && (combo2 == 4)) {
combo2 = 5;
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
if (_root.box.bestcombo2.data.counter < 5) {
_root.award.gotoAndPlay(2);
_root.box.bestcombo2.data.counter = 5;
}
}
_root.combo2.gotoAndStop(combo2);
_root.combo.text = Math.floor(combo);
}
if (feito == 1) {
total = _root.box.bateu;
up = total / 120;
if (tempo > 0) {
batidas = batidas + up;
tempo--;
}
if (tempo == 0) {
_root.kongregateStats.submit("Remaining Energy", batidas);
st = new Sound();
st.attachSound("st");
st.setVolume(50);
st.start(0, 1);
tempo = 120;
feito++;
batidas = total;
if (batidas > _root.box.bestcrash.data.counter) {
_root.box.bestcrash.data.counter = batidas;
}
}
if ((batidas <= 200) && (batidas2 == 0)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
batidas2 = 1;
}
if (((batidas >= 200) && (batidas < 500)) && (batidas2 == 1)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
batidas2 = 2;
}
if (((batidas >= 500) && (batidas < 700)) && (batidas2 == 2)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
batidas2 = 3;
}
if (((batidas >= 700) && (batidas < 900)) && (batidas2 == 3)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
batidas2 = 4;
}
if ((batidas == 1000) && (batidas2 == 4)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
batidas2 = 5;
if (_root.box.bestcrash2.data.counter < 5) {
_root.award.gotoAndPlay(2);
_root.box.bestcrash2.data.counter = 5;
}
}
_root.batidas2.gotoAndStop(batidas2);
_root.batidas.text = Math.floor(batidas);
}
if (feito == 2) {
total = _root.box.matou;
up = total / 120;
if (tempo > 0) {
kills = kills + up;
tempo--;
}
if (tempo == 0) {
if (kills > _root.box.bestkills.data.counter) {
_root.box.bestkills.data.counter = kills;
}
_root.kongregateStats.submit("Amount of Kills", kills);
st = new Sound();
st.attachSound("st");
st.setVolume(50);
st.start(0, 1);
tempo = 120;
feito = feito + 2;
kills = total;
}
if (((kills >= 0) && (kills < 400)) && (kills2 == 0)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
kills2 = 1;
}
if (((kills >= 400) && (kills < 750)) && (kills2 == 1)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
kills2 = 2;
}
if (((kills >= 750) && (kills < 800)) && (kills2 == 2)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
kills2 = 3;
}
if (((kills >= 800) && (kills < 850)) && (kills2 == 3)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
kills2 = 4;
}
if ((kills >= 850) && (kills2 == 4)) {
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
kills2 = 5;
if (_root.box.bestkills2.data.counter < 5) {
_root.award.gotoAndPlay(2);
_root.box.bestkills2.data.counter = 5;
}
}
_root.kills2.gotoAndStop(kills2);
_root.kills.text = Math.floor(kills);
}
if (feito == 3) {
total = _root.box.pacdanos;
up = total / 120;
if (tempo > 0) {
danos = danos + up;
tempo--;
}
if (tempo == 0) {
tempo = 100;
feito++;
danos = total;
}
if ((danos >= 0) && (danos < 2000)) {
danos2 = 1;
}
if ((danos >= 2000) && (danos < 3500)) {
danos2 = 2;
}
if ((danos >= 3500) && (danos < 4500)) {
danos2 = 3;
}
if ((danos >= 4500) && (danos < 5000)) {
danos2 = 4;
}
if (danos >= 5000) {
danos2 = 5;
}
_root.danos2.gotoAndStop(danos2);
_root.danos.text = Math.floor(danos);
}
if (feito == 4) {
_root.nota.acende = 1;
_root.media.acende = 1;
tempo--;
if (tempo <= 0) {
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
feito++;
media = (((combo2 + batidas2) + kills2) / 3) * 100;
tempo = 100;
}
}
if (feito == 5) {
total = media;
up = (total - 100) / 100;
if (tempo > 0) {
media2 = media2 + up;
tempo--;
}
if (tempo <= 0) {
st = new Sound();
st.attachSound("st");
st.setVolume(50);
st.start(0, 1);
tempo = 360;
feito++;
media2 = total;
_root.final._alpha = 100;
_root.final.play();
_root.kongregateStats.submit("Final Grade", media3);
finalscore = Math.floor(media3 * _root.box.score);
}
_root.media.medidor._yscale = Math.floor((media2 - 100) / 4);
_root.nota.porc.text = Math.floor((media2 - 100) / 4) + "%";
if (((media2 - 100) / 4) > 0) {
_root.nota.porc.text = Math.floor((media2 - 100) / 4) + "%";
}
media3 = media2 / 100;
if (media3 < 1) {
media3 = 1;
}
if ((media3 >= 2) && (_root.box.bestmedia.data.counter < 2)) {
_root.award.gotoAndPlay(2);
_root.box.bestmedia.data.counter = 2;
}
if ((media3 >= 3) && (_root.box.bestmedia.data.counter < 3)) {
_root.award.gotoAndPlay(2);
_root.box.bestmedia.data.counter = 3;
}
if ((media3 >= 4) && (_root.box.bestmedia.data.counter < 4)) {
_root.award.gotoAndPlay(2);
_root.box.bestmedia.data.counter = 4;
}
if ((media3 >= 5) && (_root.box.bestmedia.data.counter < 5)) {
_root.box.bestmedia.data.counter = 5;
_root.award.gotoAndPlay(2);
}
}
if (feito == 6) {
total = finalscore;
up = Math.floor(total / 360);
if (tempo > 0) {
finalscore2 = finalscore2 + up;
tempo--;
}
if (tempo <= 0) {
scoring();
_root.kongregateStats.submit("Final Score", finalscore2);
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", finalscore2);
st = new Sound();
st.attachSound("st");
st.setVolume(50);
st.start(0, 1);
tempo = 24;
feito++;
_root.final.play();
_root.awards.gotoAndStop(4);
if (_root.box.bestscore.data.counter < finalscore2) {
_root.box.bestscore.data.counter = finalscore2;
_root.award.acende = 1;
_root.awards.gotoAndStop(3);
}
if (_root.box.bestmedia.data.counter < media3) {
_root.box.bestmedia.data.counter = media3;
_root.award.acende = 1;
_root.awards.gotoAndStop(3);
}
if (_root.box.beat.data.counter == 0) {
_root.box.beat.data.counter = 1;
_root.box.novidade.data.counter = 1;
_root.award.acende = 1;
_root.awards.gotoAndStop(1);
}
finalscore2 = total;
}
if (finalscore2 < 1000) {
_root.final.final.text = finalscore2 + " Pts.";
}
if ((finalscore2 >= 1000) && (finalscore2 < 1000000)) {
parte1 = Math.floor(finalscore2 / 1000);
parte2 = finalscore2 - (parte1 * 1000);
if (parte2 >= 100) {
_root.final.final.text = ((parte1 + ",") + parte2) + " Pts.";
} else if (parte2 >= 10) {
_root.final.final.text = ((parte1 + ",0") + parte2) + " Pts.";
} else {
_root.final.final.text = ((parte1 + ",00") + parte2) + " Pts.";
}
}
if ((finalscore2 >= 100000000) && (_root.box.bestscore.data.counter < 100000000)) {
_root.award.gotoAndPlay(2);
_root.box.bestscore.data.counter = finalscore2;
}
if (finalscore2 >= 1000000) {
parte1 = Math.floor(finalscore2 / 1000000);
parte2 = Math.floor((finalscore2 - (parte1 * 1000000)) / 1000);
parte3 = (finalscore2 - (parte1 * 1000000)) - (parte2 * 1000);
if (parte2 >= 100) {
if (parte3 >= 100) {
_root.final.final.text = ((((parte1 + ",") + parte2) + ",") + parte3) + " Pts.";
} else if (parte3 >= 10) {
_root.final.final.text = ((((parte1 + ",") + parte2) + ",0") + parte3) + " Pts.";
} else {
_root.final.final.text = ((((parte1 + ",") + parte2) + ",00") + parte3) + " Pts.";
}
} else if (parte2 >= 10) {
if (parte3 >= 100) {
_root.final.final.text = ((((parte1 + ",0") + parte2) + ",") + parte3) + " Pts.";
} else if (parte3 >= 10) {
_root.final.final.text = ((((parte1 + ",0") + parte2) + ",0") + parte3) + " Pts.";
} else {
_root.final.final.text = ((((parte1 + ",0") + parte2) + ",00") + parte3) + " Pts.";
}
} else if (parte3 >= 100) {
_root.final.final.text = ((((parte1 + ",00") + parte2) + ",") + parte3) + " Pts.";
} else if (parte3 >= 10) {
_root.final.final.text = ((((parte1 + ",00") + parte2) + ",0") + parte3) + " Pts.";
} else {
_root.final.final.text = ((((parte1 + ",00") + parte2) + ",00") + parte3) + " Pts.";
}
}
}
}
Instance of Symbol 191 MovieClip in Frame 170
onClipEvent (enterFrame) {
hero.setVolume(_root.box.volume);
if (_root.box.tocando != 2) {
stopAllSounds();
hero = new Sound();
hero.attachSound("hero");
hero.start(0, 999);
hero.setVolume(_root.box.volume);
_root.box.tocando = 2;
}
}
Instance of Symbol 467 MovieClip "media" in Frame 170
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1);
}
}
}
Instance of Symbol 500 MovieClip "nota" in Frame 170
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1);
}
}
if ((_root.sist.media2 >= 100) && (_root.sist.media2 < 200)) {
this.gotoAndStop(1);
}
if ((_root.sist.media2 >= 200) && (_root.sist.media2 < 300)) {
this.gotoAndStop(2);
}
if ((_root.sist.media2 >= 300) && (_root.sist.media2 < 400)) {
this.gotoAndStop(3);
}
if ((_root.sist.media2 >= 400) && (_root.sist.media2 < 500)) {
this.gotoAndStop(4);
}
if (_root.sist.media2 >= 500) {
this.gotoAndStop(5);
}
}
Instance of Symbol 517 MovieClip "mindjolt" in Frame 170
onClipEvent (load) {
go = 0;
}
Frame 171
stop();
Instance of Symbol 533 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.gameover.data.counter == 1) {
gotoAndStop (165);
_root.a.a2 = 1;
_root.box.award2.data.counter = 1;
}
}
Instance of Symbol 536 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.beat.data.counter == 1) {
gotoAndStop (165);
_root.a.a1 = 1;
_root.box.award1.data.counter = 1;
}
}
Instance of Symbol 539 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.tiros.data.counter >= 1000) {
gotoAndStop (165);
_root.a.a3 = 1;
_root.box.award3.data.counter = 1;
}
}
Instance of Symbol 542 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.levelmax.data.counter >= 10) {
gotoAndStop (165);
_root.a.a4 = 1;
_root.box.award4.data.counter = 1;
}
}
Instance of Symbol 545 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestscore.data.counter >= 100000000) {
gotoAndStop (165);
_root.a.a5 = 1;
_root.box.award5.data.counter = 1;
}
}
Instance of Symbol 548 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestcombo2.data.counter >= 5) {
gotoAndStop (165);
_root.a.a6 = 1;
_root.box.award6.data.counter = 1;
}
}
Instance of Symbol 551 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestcrash2.data.counter >= 5) {
_root.a.a7 = 1;
gotoAndStop (165);
_root.box.award7.data.counter = 1;
}
}
Instance of Symbol 554 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestkills2.data.counter >= 5) {
gotoAndStop (165);
_root.a.a8 = 1;
_root.box.award8.data.counter = 1;
}
}
Instance of Symbol 557 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestmedia.data.counter >= 2) {
gotoAndStop (165);
_root.a.a9 = 1;
_root.box.award9.data.counter = 1;
}
}
Instance of Symbol 560 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestmedia.data.counter >= 3) {
gotoAndStop (165);
_root.a.a10 = 1;
_root.box.award10.data.counter = 1;
}
}
Instance of Symbol 563 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestmedia.data.counter >= 4) {
gotoAndStop (165);
_root.a.a11 = 1;
_root.box.award11.data.counter = 1;
}
}
Instance of Symbol 566 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.bestmedia.data.counter >= 5) {
gotoAndStop (165);
_root.a.a12 = 1;
_root.box.award12.data.counter = 1;
}
}
Instance of Symbol 569 MovieClip in Frame 171
onClipEvent (load) {
if (_root.box.easter.data.counter == 1) {
gotoAndStop (165);
_root.box.award20.data.counter = 1;
}
}
Instance of Symbol 572 MovieClip in Frame 171
onClipEvent (load) {
if (_root.box.track.data.counter == 1) {
gotoAndStop (165);
_root.box.award17.data.counter = 1;
}
}
Instance of Symbol 575 MovieClip in Frame 171
onClipEvent (load) {
if (_root.box.sponsor.data.counter == 1) {
gotoAndStop (165);
_root.box.award18.data.counter = 1;
}
}
Instance of Symbol 578 MovieClip in Frame 171
onClipEvent (load) {
if (_root.box.triqui.data.counter == 1) {
gotoAndStop (165);
_root.box.award19.data.counter = 1;
}
}
Instance of Symbol 581 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.inimigoa.data.counter >= 1000) {
gotoAndStop (165);
_root.a.a13 = 1;
_root.box.award13.data.counter = 1;
}
}
Instance of Symbol 584 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.inimigob.data.counter >= 1000) {
gotoAndStop (165);
_root.a.a14 = 1;
_root.box.award14.data.counter = 1;
}
}
Instance of Symbol 587 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.inimigoc.data.counter >= 1000) {
gotoAndStop (165);
_root.a.a15 = 1;
_root.box.award15.data.counter = 1;
}
}
Instance of Symbol 590 MovieClip in Frame 171
onClipEvent (enterFrame) {
if (_root.box.inimigod.data.counter >= 1000) {
gotoAndStop (165);
_root.a.a16 = 1;
_root.box.award16.data.counter = 1;
}
}
Instance of Symbol 593 MovieClip in Frame 171
on (release) {
_root.fader.ac = 1;
_root.fader.f = 3;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
gotoAndStop (165);
}
on (rollOut) {
gotoAndStop (164);
}
Instance of Symbol 596 MovieClip "a" in Frame 171
onClipEvent (load) {
a1 = 0;
a2 = 0;
a3 = 0;
a4 = 0;
a5 = 0;
a6 = 0;
a7 = 0;
a8 = 0;
a9 = 0;
a10 = 0;
a11 = 0;
a12 = 0;
a13 = 0;
a14 = 0;
a15 = 0;
a16 = 0;
}
onClipEvent (enterFrame) {
total = ((((((((((((((a1 + a2) + a3) + a4) + a5) + a6) + a7) + a8) + a9) + a10) + a11) + a12) + a13) + a14) + a15) + a16;
if (total > 0) {
_root.kongregateStats.submit("Awards", total);
}
_root.quantos.text = total + "/16";
}
Instance of Symbol 191 MovieClip in Frame 171
onClipEvent (enterFrame) {
omg.setVolume(_root.box.volume);
if (_root.box.tocando != 1) {
stopAllSounds();
omg = new Sound();
omg.attachSound("omg");
omg.setVolume(_root.box.volume);
omg.start(0, 999);
_root.box.tocando = 1;
}
}
Instance of Symbol 191 MovieClip in Frame 172
onClipEvent (enterFrame) {
omg.setVolume(_root.box.volume);
if (_root.box.tocando != 1) {
stopAllSounds();
omg = new Sound();
omg.attachSound("omg");
omg.setVolume(_root.box.volume);
omg.start(0, 999);
_root.box.tocando = 1;
}
}
Instance of Symbol 308 MovieClip in Frame 172
on (release) {
if (_root.box.skipe.data.counter == 1) {
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
_root.fader.ac = 1;
_root.fader.f = 6;
stopAllSounds();
}
}
onClipEvent (enterFrame) {
if (_root.box.skipe.data.counter == 1) {
_alpha = 100;
}
if (_root.box.skipe.data.counter == 0) {
_alpha = 0;
}
}
Instance of Symbol 170 MovieClip "award" in Frame 173
onClipEvent (enterFrame) {
_alpha = 100;
}
Instance of Symbol 607 MovieClip in Frame 173
on (release) {
_root.fader.ac = 1;
_root.fader.f = 3;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
gotoAndStop (165);
}
on (rollOut) {
gotoAndStop (164);
}
Instance of Symbol 610 MovieClip in Frame 173
on (release) {
if (_root.box.triqui.data.counter == 0) {
_root.box.triqui.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("http://www.emanueleferonato.com/2006/10/29/flash-game-creation-tutorial-part-1/", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
gotoAndStop (165);
}
on (rollOut) {
gotoAndStop (164);
}
Instance of Symbol 613 MovieClip in Frame 173
on (release) {
if (_root.box.track.data.counter == 0) {
_root.box.track.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("http://www.newgrounds.com/audio/listen/169229", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
gotoAndStop (165);
}
on (rollOut) {
gotoAndStop (164);
}
Instance of Symbol 620 MovieClip in Frame 173
on (release) {
if (_root.box.sponsor.data.counter == 0) {
_root.box.sponsor.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("http://www.minijuegos.com", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
}
Instance of Symbol 625 MovieClip "mousepinguim" in Frame 173
on (release) {
_root.fader.ac = 1;
_root.fader.f = 12;
}
Instance of Symbol 191 MovieClip in Frame 174
onClipEvent (enterFrame) {
hero.setVolume(_root.box.volume);
if (_root.box.tocando != 2) {
stopAllSounds();
hero = new Sound();
hero.attachSound("hero");
hero.start(0, 999);
hero.setVolume(_root.box.volume);
_root.box.tocando = 2;
}
}
Frame 175
if (_root.box.easter.data.counter == 0) {
_root.box.easter.data.counter = 1;
_root.award.gotoAndPlay(2);
}
Instance of Symbol 170 MovieClip "award" in Frame 175
onClipEvent (enterFrame) {
if (_currentframe != 1) {
play();
}
_alpha = 100;
}
Instance of Symbol 638 MovieClip in Frame 175
on (release) {
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
_root.fader.ac = 1;
_root.fader.f = 10;
}
on (rollOver) {
gotoAndStop (165);
}
on (rollOut) {
gotoAndStop (164);
}
Symbol 33 MovieClip Frame 64
gotoAndPlay (1);
Symbol 33 MovieClip Frame 65
stop();
st = new Sound();
st.attachSound("st");
st.setVolume(100);
st.start(0, 1);
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip Frame 65
on (release) {
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
_root.gotoAndPlay(2);
_root.adbox.removeMovieClip();
}
Symbol 640 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.35");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static function addLinkEvent(url, burl, btn, onClick) {
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 641 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().fader.ac = 2();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 10
award = new Sound();
award.attachSound("award");
award.setVolume(_root.box.volume);
award.start(0, 1);
Symbol 180 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 20
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
var life = 100;
Instance of Symbol 264 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Symbol 274 MovieClip Frame 1
stop();
Instance of Symbol 264 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Instance of Symbol 264 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
Symbol 306 MovieClip Frame 1
a1.gotoAndStop(1);
Symbol 306 MovieClip Frame 25
a1.play();
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Symbol 306 MovieClip Frame 71
a2.gotoAndStop(1);
Symbol 306 MovieClip Frame 96
a2.play();
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Symbol 306 MovieClip Frame 116
a3.gotoAndStop(1);
Symbol 306 MovieClip Frame 140
a3.play();
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Symbol 306 MovieClip Frame 181
a4.gotoAndStop(1);
Symbol 306 MovieClip Frame 206
a4.gotoAndPlay(1);
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Instance of Symbol 293 MovieClip in Symbol 306 MovieClip Frame 258
on (release) {
_root.t.play();
stop();
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 293 MovieClip in Symbol 306 MovieClip Frame 267
on (release) {
_root.t.play();
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 306 MovieClip Frame 268
stop();
Instance of Symbol 293 MovieClip in Symbol 306 MovieClip Frame 271
on (release) {
_root.t.play();
stop();
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 306 MovieClip Frame 301
stopAllSounds();
st = new Sound();
st.attachSound("st");
st.setVolume(_root.volume);
st.start(0, 1);
stop();
_root.fader.f = 6;
_root.fader.ac = 1;
Symbol 306 MovieClip Frame 528
stop();
_root.fader.f = 6;
_root.fader.ac = 1;
Symbol 308 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
Instance of Symbol 320 MovieClip in Symbol 327 MovieClip Frame 1
on (release) {
if (_root.box.sponsor.data.counter == 0) {
_root.box.sponsor.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("http://www.minijuegos.com", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 327 MovieClip Frame 29
if (_root.box.gameover.data.counter == 0) {
_root.award.gotoAndPlay(2);
_root.box.gameover.data.counter = 1;
}
Symbol 327 MovieClip Frame 138
stop();
Instance of Symbol 326 MovieClip in Symbol 327 MovieClip Frame 138
on (release) {
_root.fader.ac = 1;
_root.fader.f = 3;
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
_root.a.a.up._alpha = 100;
up = new Sound();
up.attachSound("up");
up.setVolume(_root.box.volume);
up.start(0, 1);
Symbol 347 MovieClip Frame 40
gotoAndStop (1);
Symbol 347 MovieClip Frame 41
pow = new Sound();
pow.attachSound("pow");
pow.setVolume(_root.box.volume);
pow.start(0, 1);
_root.a.a.up._alpha = 100;
Symbol 359 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 37
boom = new Sound();
boom.attachSound("boom");
boom.setVolume(_root.box.volume);
boom.start(0, 1);
Symbol 413 MovieClip Frame 48
aniquilado = 1;
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 45
_root.a.a.pactime.play();
_root.a.a.portal.paca = 1;
stop();
Symbol 414 MovieClip Frame 51
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 90
stop();
_root.a.a.pacman.gotoAndPlay(2);
Symbol 430 MovieClip Frame 161
stop();
i = 25;
while (i < 40) {
_root.a.a["inimigo" + i].vivo = 1;
_root.a.a["inimigo" + i]._alpha = 100;
i++;
}
_root.a.a.portal.paca = 1;
Symbol 430 MovieClip Frame 244
stop();
Symbol 430 MovieClip Frame 280
stop();
_root.a.a.morreu.fim = 1;
Symbol 430 MovieClip Frame 328
stop();
Symbol 430 MovieClip Frame 365
stop();
Instance of Symbol 342 MovieClip "ritmo1" in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
play();
} else {
stop();
}
}
Instance of Symbol 347 MovieClip "portal" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
copia = 1;
ritmo = 1;
atrito = 0.7;
ordem = 1;
antigaordem = 2;
ordem2 = 1;
antigaordem2 = 2;
acex = 0;
ve = 4;
passam = 0;
combo = 1;
score = 0;
score2 = 0;
change = 1;
mudando = 0;
tempo = 0;
laser = 1;
pac = 0;
paca = 0;
matou = 0;
bateu = 0;
highcombo = 0;
shield._alpha = 0;
powerup = 0;
YES = 0;
yestime = 480;
avance = 1;
go = 0;
shield2._alpha = 0;
energy = 1000;
pacdanos = 0;
morreu = 0;
fim = 0;
pausegame = 0;
teclap = 1;
big = 1;
fast = 1;
rate = 1;
pow = 0;
bumtime = 0;
level = 1;
movi = 1;
_root.a.a.bumbar._alpha = 0;
energia2 = 1000;
}
onClipEvent (enterFrame) {
if (bateu < 0) {
bateu = 0;
}
if (energy > 1000) {
energy = 1000;
}
if (bum == 1) {
_root.a.a.bumbar._alpha = 100;
_root.a.a.bumbar._xscale = (bumtime / 240) * 100;
if (a.a._currentframe == 1) {
a.a.gotoAndPlay(2);
}
movi = 2;
if (pausegame == 0) {
bumtime--;
}
if (bumtime <= 0) {
_root.a.a.bumbar._alpha = 0;
a.a.gotoAndPlay(21);
bum = 0;
movi = 1;
}
}
if (bum == 0) {
if ((level == 1) && (matou >= 100)) {
big = 2;
gotoAndPlay (2);
level++;
}
if ((level == 2) && (matou >= 200)) {
fast = 2;
gotoAndPlay (2);
level++;
}
if ((level == 3) && (matou >= 300)) {
rate = 2;
gotoAndPlay (2);
level++;
}
if ((level == 4) && (matou >= 400)) {
rate = 3;
gotoAndPlay (2);
level++;
}
if ((level == 5) && (matou >= 500)) {
fast = 3;
gotoAndPlay (2);
level++;
}
if ((level == 6) && (matou >= 600)) {
big = 3;
gotoAndPlay (2);
level++;
}
if ((level == 7) && (matou >= 700)) {
rate = 4;
gotoAndPlay (2);
level++;
}
if ((level == 8) && (matou >= 800)) {
fast = 4;
gotoAndPlay (2);
level++;
}
if ((level == 9) && (matou >= 900)) {
big = 4;
gotoAndPlay (2);
level++;
if (_root.box.levelmax.data.counter < 10) {
_root.award.gotoAndPlay(2);
_root.box.levelmax.data.counter = 10;
}
}
}
if (level < 10) {
_root.level.text = "LEVEL " + level;
} else {
_root.level.text = "LEVEL MAX";
}
if (_root.box.inimigoa.data.counter == 1000) {
_root.award.gotoAndPlay(2);
_root.box.inimigoa.data.counter = 1001;
}
if (_root.box.inimigob.data.counter == 1000) {
_root.award.gotoAndPlay(2);
_root.box.inimigob.data.counter = 1001;
}
if (_root.box.inimigoc.data.counter == 1000) {
_root.award.gotoAndPlay(2);
_root.box.inimigoc.data.counter = 1001;
}
if (_root.box.inimigod.data.counter == 1000) {
_root.award.gotoAndPlay(2);
_root.box.inimigod.data.counter = 1001;
}
if (Key.isDown(80)) {
if (teclap == 1) {
if (pausegame == 0) {
pausegame = 1;
} else {
pausegame = 0;
}
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (pausegame == 1) {
if (Key.isDown(81)) {
_root.fader.ac = 1;
_root.fader.f = 3;
}
}
if (pausegame == 0) {
if (energy < 0) {
energy = 0;
}
if (fim == 1) {
if ((YES == 0) && (morreu == 0)) {
_root.pactime.gotoAndPlay(245);
morreu = 1;
}
}
energy = 1000 - (bateu * 100);
if (energia2 < energy) {
energia2 = energia2 + 10;
}
if (energia2 > energy) {
energia2 = energia2 - 10;
}
_root.energy.text = energia2 + " ENERGY";
if (energy <= 0) {
_root.fader.ac = 1;
_root.fader.f = 5;
stopAllSounds();
}
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 8.333333;
}
_root.box.score = score;
_root.box.matou = matou;
_root.box.bateu = energy;
_root.box.highcombo = highcombo;
_root.box.pacdanos = pacdanos;
if (highcombo < combo) {
highcombo = combo;
}
if (ritmo >= 1) {
tempo = tempo + (2.5 * ritmo);
if (tempo > 60) {
tempo = tempo - 60;
score = score + combo;
}
}
lugar = 115;
_root.combo.text = combo + "x";
if (change == 1) {
distscore = score - score2;
distscore2 = Math.floor(distscore / 12);
distscore3 = Math.floor(distscore2 * 1);
change = 0;
mudando = 12;
}
if (mudando > 0) {
if (mudando > 1) {
score2 = score2 + distscore3;
score2 = score2 + 1;
mudando--;
} else {
score2 = score;
}
}
score2 = score;
if (score2 < 1000) {
_root.scoreshow.text = score2 + " PTS.";
}
if ((score2 >= 1000) && (score2 < 1000000)) {
parte1 = Math.floor(score2 / 1000);
parte2 = score2 - (parte1 * 1000);
if (parte2 >= 100) {
_root.scoreshow.text = ((parte1 + ",") + parte2) + " PTS.";
} else if (parte2 >= 10) {
_root.scoreshow.text = ((parte1 + ",0") + parte2) + " PTS.";
} else {
_root.scoreshow.text = ((parte1 + ",00") + parte2) + " PTS.";
}
}
if (score2 >= 1000000) {
parte1 = Math.floor(score2 / 1000000);
parte2 = Math.floor((score2 - (parte1 * 1000000)) / 1000);
parte3 = (score2 - (parte1 * 1000000)) - (parte2 * 1000);
if (parte2 >= 100) {
if (parte3 >= 100) {
_root.scoreshow.text = ((((parte1 + ",") + parte2) + ",") + parte3) + " PTS.";
} else if (parte3 >= 10) {
_root.scoreshow.text = ((((parte1 + ",") + parte2) + ",0") + parte3) + " PTS.";
} else {
_root.scoreshow.text = ((((parte1 + ",") + parte2) + ",00") + parte3) + " PTS.";
}
} else if (parte2 >= 10) {
if (parte3 >= 100) {
_root.scoreshow.text = ((((parte1 + ",0") + parte2) + ",") + parte3) + " PTS.";
} else if (parte3 >= 10) {
_root.scoreshow.text = ((((parte1 + ",0") + parte2) + ",0") + parte3) + " PTS.";
} else {
_root.scoreshow.text = ((((parte1 + ",0") + parte2) + ",00") + parte3) + " PTS.";
}
} else if (parte3 >= 100) {
_root.scoreshow.text = ((((parte1 + ",00") + parte2) + ",") + parte3) + " PTS.";
} else if (parte3 >= 10) {
_root.scoreshow.text = ((((parte1 + ",00") + parte2) + ",0") + parte3) + " PTS.";
} else {
_root.scoreshow.text = ((((parte1 + ",00") + parte2) + ",00") + parte3) + " PTS.";
}
}
ritmo = ritmo + 5.787037E-5;
if (lugar != _y) {
mudar = (lugar - _y) / 4;
_y = (_y + mudar);
}
_root.a.a.flash._x = _x;
_root.a.a.flash._y = _y - (_height / 2);
tamaw = _width / 2;
if (movi == 1) {
ve = 5;
}
if (movi == 2) {
ve = 7;
}
if (((Key.isDown(65) || (Key.isDown(37))) || (Key.isDown(87))) || (Key.isDown(38))) {
acex = acex - ve;
}
if (((Key.isDown(68) || (Key.isDown(39))) || (Key.isDown(83))) || (Key.isDown(40))) {
acex = acex + ve;
}
if ((acex > 1) || (acex < -1)) {
_x = (_x + acex);
}
a._rotation = acex / 2;
acex = (acex * atrito) * ritmo;
if ((_x - tamaw) < ((_root.a.a.back._x - (_root.a.a.back._width / 2)) + 10)) {
_x = (((_root.a.a.back._x - (_root.a.a.back._width / 2)) + tamaw) + 10);
}
if ((_x + tamaw) > ((_root.a.a.back._x + (_root.a.a.back._width / 2)) - 10)) {
_x = (((_root.a.a.back._x + (_root.a.a.back._width / 2)) - tamaw) - 10);
}
time--;
if (Key.isDown(90) || (Key.isDown(32))) {
if (time <= 0) {
_root.box.tiros.data.counter++;
if (_root.box.tiros.data.counter == 1000) {
_root.award.gotoAndPlay(2);
_root.box.tiros.data.counter++;
}
if (ti < 8) {
ti++;
} else {
ti = 1;
}
_root.a.a["ti" + ti]._x = _x;
_root.a.a["ti" + ti]._y = _y - (_height / 2);
_root.a.a["ti" + ti].seg = 0;
_root.a.a["ti" + ti].desa = 0;
_root.a.a["ti" + ti]._alpha = 100;
tiro = new Sound();
tiro.attachSound("tiro");
tiro.setVolume(_root.box.volume);
tiro.start(0, 1);
if (rate == 1) {
time = 6;
}
if (rate == 2) {
time = 5;
}
if (rate == 3) {
time = 4;
}
if (rate == 4) {
time = 3;
}
if (bum == 1) {
time = 2;
}
_root.a.a.flash._alpha = 100;
ordem2 = Math.floor((Math.random() * 6) + 1);
if (antigaordem2 == ordem2) {
if (antigaordem2 < 6) {
ordem2 = antigaordem2 + 1;
} else {
ordem2 = antigaordem2 - 1;
}
}
antigaordem2 = ordem2;
_root.a.a.flash.gotoAndStop(ordem2);
}
}
_root.a.a.flash._x = _x;
_root.a.a.flash._y = _y - (_height / 2);
_root.a.a.to._x = _x;
_root.a.a.to._y = _y - (_height / 2);
}
}
Instance of Symbol 258 MovieClip "ti1" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 258 MovieClip "ti2" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 258 MovieClip "ti3" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 258 MovieClip "ti4" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 258 MovieClip "ti5" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 258 MovieClip "ti6" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 258 MovieClip "ti7" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Instance of Symbol 359 MovieClip "inimigo4" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo7" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo5" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo9" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo8" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo6" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo10" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo12" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 2;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
xdis = 1;
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigob.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo13" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 2;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
xdis = -1;
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.box.inimigob.data.counter++;
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo14" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 2;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
xdis = -1;
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.box.inimigob.data.counter++;
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo17" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 2;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
xdis = 1;
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.box.inimigob.data.counter++;
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo20" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 3;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
xdis = -2;
ydis = 5.5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoc.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo22" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 3;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
xdis = -2;
ydis = 5.5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
_root.box.inimigoc.data.counter++;
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo21" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 3;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
xdis = 2;
ydis = 5.5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
_root.box.inimigoc.data.counter++;
vivo = -1;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo23" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 3;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
xdis = -2;
ydis = 5.5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoc.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo24" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 3;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
xdis = 2;
ydis = 5.5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoc.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo25" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 3;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
xdis = 2;
ydis = 5.5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
_root.box.inimigoc.data.counter++;
vivo = -1;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 363 MovieClip "flash2" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_alpha == 100) {
hit2 = new Sound();
hit2.attachSound("hit2");
hit2.setVolume(_root.box.volume);
hit2.start(0, 1);
}
if (_alpha > 0) {
_root._x = (Math.random() * 4) - 2;
_root._y = (Math.random() * 4) - 2;
_alpha = (_alpha - 33.3333333333333);
} else {
_root._x = 0;
_root._y = 0;
}
}
}
Instance of Symbol 364 MovieClip "morreu" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
fim = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (fim == 1) {
_alpha = (_alpha + 25);
if (_alpha >= 100) {
_root.fader.ac = 1;
_root.fader.f = 10;
}
}
}
}
Instance of Symbol 366 MovieClip "up" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_alpha > 0) {
_root._x = (Math.random() * 4) - 2;
_root._y = (Math.random() * 4) - 2;
_alpha = (_alpha - 33.3333333333333);
} else {
_root._x = 0;
_root._y = 0;
}
}
}
Instance of Symbol 370 MovieClip "pausa" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 1) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 359 MovieClip "inimigo3" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = 1;
estilo = 1;
stope = 0;
_alpha = 100;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigoa.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 378 MovieClip "flash" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (50 * _root.a.a.portal.ritmo));
}
}
}
Instance of Symbol 359 MovieClip "inimigo26" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo27" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo28" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo29" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo31" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo32" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo33" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo34" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo30" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 359 MovieClip "inimigo39" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
morrer = 0;
andado = _y;
puxar = 0;
vivo = -1;
estilo = 4;
stope = 0;
_alpha = 0;
if (estilo == 1) {
ydis = 4;
}
if (estilo == 2) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -1;
}
if (chance == 2) {
xdis = 1;
}
ydis = 4;
}
if (estilo == 3) {
chance = (Math.random() * 2) + 1;
if (chance == 1) {
xdis = -2;
}
if (chance == 2) {
xdis = 2;
}
ydis = 5;
}
if (estilo == 4) {
ydis = 6;
}
shield._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
_rotation = (_rotation + girar);
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 11.66667;
}
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
morrer = 1;
}
_x = (_x + girar);
girar = girar * 0.9;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
if (vivo == 0) {
if (_alpha > 0) {
_alpha = (_alpha - (10 * _root.a.a.portal.ritmo));
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
} else {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
vivo = -1;
_root.box.inimigod.data.counter++;
if (stope == 0) {
gotoAndStop(estilo);
_alpha = 100;
morrer = 0;
andado = -_height;
_y = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - _height);
puxar = 0;
_rotation = 0;
vivo = 1;
girar = 0;
_x = ((Math.random() * 300) - 150);
}
}
}
if (vivo == 1) {
if (puxar < 0) {
andado = andado + (puxar * _root.a.a.portal.ritmo);
puxar = puxar + (4 * _root.a.a.portal.ritmo);
}
if (puxar >= 0) {
if (morrer == 1) {
vivo = 0;
if (estilo == 1) {
_root.a.a.portal.score = _root.a.a.portal.score + (13 * _root.a.a.portal.combo);
}
if (estilo == 2) {
_root.a.a.portal.score = _root.a.a.portal.score + (28 * _root.a.a.portal.combo);
}
if (estilo == 3) {
_root.a.a.portal.score = _root.a.a.portal.score + (37 * _root.a.a.portal.combo);
}
if (estilo == 4) {
_root.a.a.portal.score = _root.a.a.portal.score + (51 * _root.a.a.portal.combo);
}
}
if (morrer == 0) {
dia = (_root.a.a.portal.shield._height / 2) + (shield._height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a.portal.YES == 0) {
_root.a.a.portal.combo = Math.floor(_root.a.a.portal.combo / 2);
_root.a.a.flash2._alpha = 100;
_root.a.a.portal.bateu++;
}
puxar = -15 * _root.a.a.portal.ritmo;
girar = _root.a.a.portal._x - _x;
morrer = 1;
}
if ((estilo == 1) || (estilo == 4)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
}
if ((estilo == 2) || (estilo == 3)) {
andado = andado + (ydis * _root.a.a.portal.ritmo);
_x = (_x + (xdis * _root.a.a.portal.ritmo));
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
xdis = xdis * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
xdis = xdis * -1;
}
}
}
}
}
}
}
Instance of Symbol 414 MovieClip "pacman" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
brilha = 0;
vida = 110;
puxar = -10;
dano = 0;
movi = 10;
aniquilado = 0;
somi = 50;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 1) {
pac.a.stop();
}
if (_root.a.a.portal.pausegame == 0) {
pac.a.play();
}
if (_root.a.a.portal.pausegame == 0) {
if (vida == 0) {
pac.medidor._alpha = 0;
_root.a.a.portal.paca = 2;
_root.a.a.portal.YES = 1;
gotoAndStop (51);
vida = -1;
_root.a.a.portal.score = _root.a.a.portal.score + (1000 * _root.a.a.portal.combo);
puxar = -8;
}
if (vida == -1) {
if (somi >= 0) {
somi--;
}
if ((aniquilado == 1) or (somi <= 0)) {
vida = -2;
_root.a.a.pactime.gotoAndPlay(162);
if (_root.box.beat.data.counter == 0) {
_root.box.beat.data.counter = 1;
_root.award.gotoAndPlay(2);
}
}
}
tamaw = _width / 2;
if ((_x - tamaw) < ((_root.a.a.back._x - (_root.a.a.back._width / 2)) + 10)) {
_x = (((_root.a.a.back._x - (_root.a.a.back._width / 2)) + tamaw) + 10);
movi = movi * -1;
}
if ((_x + tamaw) > ((_root.a.a.back._x + (_root.a.a.back._width / 2)) - 10)) {
_x = (((_root.a.a.back._x + (_root.a.a.back._width / 2)) - tamaw) - 10);
movi = movi * -1;
}
if (vida > 0) {
_x = (_x + movi);
pac.medidor._xscale = (vida / 80) * 100;
if (_alpha < 100) {
_alpha = (_alpha + 16.6666666666667);
}
if (brilha == 1) {
if (_alpha >= 100) {
_root.a.a.portal.combo++;
_root.a.a.portal.matou++;
_root.a.a.portal.score = _root.a.a.portal.score + (112 * _root.a.a.portal.combo);
_alpha = 50;
brilha = 0;
vida--;
}
}
}
}
}
Instance of Symbol 274 MovieClip "power" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ac = 1;
tempo = 600;
mudar = 1;
andado = 0;
}
onClipEvent (enterFrame) {
gotoAndStop(ac);
if (_root.a.a.portal.pausegame == 0) {
if (mudar == 0) {
if (_y > ((_root.a.a.back._y + (_root.a.a.back._height / 2)) + (_height / 2))) {
mudar = 1;
}
_alpha = 100;
andado = andado + 2;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
dia = (_root.a.a.portal.shield._height / 2) + (_height / 2);
distx = _root.a.a.portal._x - this._x;
disty = _root.a.a.portal._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (ac == 1) {
_root.a.a.portal.bateu--;
} else {
_root.a.a.portal.bum = 1;
_root.a.a.portal.bumtime = 240;
}
_root.a.a.portal.gotoAndPlay(41);
mudar = 1;
tempo = 504;
_alpha = 0;
}
}
if (mudar == 1) {
if (tempo > 0) {
tempo--;
} else {
if (ac == 1) {
ac = 2;
} else {
ac = 1;
}
andado = -_height;
lugar = ((_root.a.a.back._y - (_root.a.a.back._height / 2)) - (_height / 2)) + andado;
_y = lugar;
_x = ((Math.random() * 300) - 150);
mudar = 0;
}
}
}
}
Instance of Symbol 258 MovieClip "ti8" in Symbol 431 MovieClip Frame 1
onClipEvent (load) {
ve = -15;
seg = 0;
desa = 0;
}
onClipEvent (enterFrame) {
if (_root.a.a.portal.pausegame == 0) {
if (_root.a.a.portal.big == 1) {
_width = 10;
_height = 10;
}
if (_root.a.a.portal.big == 2) {
_width = 12;
_height = 12;
}
if (_root.a.a.portal.big == 3) {
_width = 15;
_height = 15;
}
if (_root.a.a.portal.big == 4) {
_width = 18;
_height = 18;
}
if (_root.a.a.portal.fast == 1) {
ve = -15;
}
if (_root.a.a.portal.fast == 2) {
ve = -16;
}
if (_root.a.a.portal.fast == 3) {
ve = -18;
}
if (_root.a.a.portal.fast == 4) {
ve = -20;
}
_x = (_x + (seg * _root.a.a.portal.ritmo));
_y = (_y + (ve * _root.a.a.portal.ritmo));
seg = seg * 0.9;
if (desa == 1) {
if (_alpha > 0) {
_alpha = (_alpha - 1);
tamaw = _width / 2;
if ((_x + tamaw) > 200) {
_x = (200 - tamaw);
seg = seg * -1;
}
if ((_x - tamaw) < -200) {
_x = (-200 + tamaw);
seg = seg * -1;
}
}
}
if (_root.a.a.portal.paca == 1) {
if (desa == 0) {
dia2 = (_root.a.a.pacman._height / 2) + (_width / 2);
distx2 = _root.a.a.pacman._x - this._x;
disty2 = _root.a.a.pacman._y - this._y;
distance2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distance2 <= dia2) {
if (_root.a.a.portal.morreu == 0) {
if (_root.a.a.pacman.vida > 0) {
_alpha = 0;
_root.a.a.pacman.brilha = 1;
seg = (_root.a.a.pacman._x - _x) * -1;
_root.a.a.pacman.girar = _root.a.a.pacman._x - _x;
desa = 1;
}
}
}
}
}
i = 0;
while (i < 40) {
if (_alpha > 0) {
dia = (_root.a.a["inimigo" + i]._width / 2) + (_width / 2);
distx = _root.a.a["inimigo" + i]._x - this._x;
disty = _root.a.a["inimigo" + i]._y - this._y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
if (_root.a.a["inimigo" + i].vivo == 1) {
_root.a.a["inimigo" + i].morrer = 1;
_root.a.a["inimigo" + i].puxar = ve * _root.a.a.portal.ritmo;
_root.a.a["inimigo" + i].girar = _root.a.a["inimigo" + i]._x - _x;
seg = (_root.a.a["inimigo" + i]._x - _x) * -1;
desa = 1;
}
}
}
i++;
}
}
}
Symbol 432 MovieClip Frame 1
_root.box.skipe.data.counter = 1;
Symbol 432 MovieClip Frame 17
_root.box.tocando = 4;
Symbol 432 MovieClip Frame 1121
i = 0;
while (i < 5) {
_root.a.a["inimigo" + i].stope = 1;
i++;
}
i = 10;
while (i < 17) {
_root.a.a["inimigo" + i].vivo = 1;
_root.a.a["inimigo" + i]._alpha = 100;
i++;
}
_root.a.a.pactime.gotoAndPlay(281);
Symbol 432 MovieClip Frame 2127
i = 0;
while (i < 8) {
_root.a.a["inimigo" + i].stope = 1;
i++;
}
i = 17;
while (i < 25) {
_root.a.a["inimigo" + i].vivo = 1;
_root.a.a["inimigo" + i]._alpha = 100;
i++;
}
_root.a.a.pactime.gotoAndPlay(281);
Symbol 432 MovieClip Frame 2881
i = 0;
while (i < 26) {
_root.a.a["inimigo" + i].stope = 1;
i++;
}
_root.a.a.pactime._alpha = 100;
_root.a.a.pactime.gotoAndPlay(2);
Symbol 432 MovieClip Frame 3998
if (_root.a.a.pacman.vida > 0) {
_root.a.a.pacman.vida = -1;
_root.a.a.portal.paca = 2;
_root.a.a.portal.YES = 1;
_root.a.a.pacman.gotoAndStop(51);
_root.a.a.portal.score = _root.a.a.portal.score + (1000 * _root.a.a.portal.combo);
_root.a.a.pacman.puxar = -8;
_root.a.a.pactime.gotoAndPlay(162);
}
Symbol 432 MovieClip Frame 4085
i = 0;
while (i < 40) {
_root.a.a["inimigo" + i].stope = 1;
i++;
}
Symbol 432 MovieClip Frame 4126
i = 0;
while (i < 40) {
_root.a.a["inimigo" + i].stope = 1;
i++;
}
Symbol 432 MovieClip Frame 4142
stop();
stopAllSounds();
_root.fader.ac = 1;
_root.fader.f = 11;
stop();
Instance of Symbol 435 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
click = 1;
}
on (press) {
if (_root.v.sound == 100) {
did = new Sound();
did.attachSound("did");
did.start();
}
if (click == 1) {
if (_root._quality == "HIGH") {
_root._quality = "LOW";
click = 0;
}
}
if (click == 1) {
if (_root._quality == "LOW") {
_root._quality = "HIGH";
click = 0;
}
}
_root.quality.text = _root._quality;
}
on (release) {
click = 1;
}
Symbol 500 MovieClip Frame 1
stop();
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
Symbol 500 MovieClip Frame 2
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
Symbol 500 MovieClip Frame 3
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
Symbol 500 MovieClip Frame 4
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
Symbol 500 MovieClip Frame 5
r = new Sound();
r.attachSound("r");
r.setVolume(50);
r.start(0, 1);
Symbol 506 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 2
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 2
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 17
stop();
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Symbol 515 MovieClip Frame 28
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Instance of Symbol 506 MovieClip in Symbol 515 MovieClip Frame 28
on (release) {
if (_root.box.sponsor.data.counter == 0) {
_root.box.sponsor.data.counter = 1;
_root.award.gotoAndPlay(2);
}
getURL ("http://www.minijuegos.com", "_blank");
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 510 MovieClip "submit" in Symbol 515 MovieClip Frame 40
on (release) {
mochi.MochiScores.showLeaderboard({boardID:"008d69e2f4074675", score:_root.sist.finalscore});
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
a.gotoAndStop(2);
}
on (rollOut) {
a.gotoAndStop(1);
}
Symbol 515 MovieClip Frame 48
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Instance of Symbol 510 MovieClip "submit" in Symbol 515 MovieClip Frame 48
on (release) {
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
_root.mindjolt.go = 1;
_root.ScoreAPI = new LocalConnection();
_root.ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.sist.finalscore);
}
}
if (lock) {
mochi.MochiScores.showLeaderboard({boardID:"008d69e2f4074675", score:_root.sist.finalscore});
}
}
urls_allowed = ["www.static.mindjolt.com", "www.mindjolt.com", "static.mindjolt.com"];
sitelock(urls_allowed);
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 514 MovieClip "menu" in Symbol 515 MovieClip Frame 81
on (release) {
stopAllSounds();
_root.box.musica = 0;
_root.fader.ac = 1;
_root.fader.f = 8;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 515 MovieClip Frame 86
stop();
st = new Sound();
st.attachSound("st");
st.setVolume(_root.box.volume);
st.start(0, 1);
Symbol 519 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 545 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 563 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 575 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 2
bt = new Sound();
bt.attachSound("bt");
bt.setVolume(_root.box.volume);
bt.start(0, 1);
Instance of Symbol 603 MovieClip in Symbol 604 MovieClip Frame 90
on (release) {
_root.fader.ac = 1;
_root.fader.f = 4;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 604 MovieClip Frame 105
stop();
Symbol 607 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 613 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 1
this.enableTab = false;
Symbol 635 MovieClip Frame 141
_root.fader.ac = 1;
_root.fader.f = 7;
Symbol 638 MovieClip Frame 1
stop();