Frame 1
mochi.MochiServices.connect("447b355cd453c073");
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 Init() {
_root.stop();
}
var _mochiads_game_id = "447b355cd453c073";
__com_mochibot__("56aced7c", this, 10301, true);
var preloader;
var numero = new Number(0);
onEnterFrame = function () {
var _local2 = _root.getBytesLoaded() - 300000;
var _local3 = _root.getBytesTotal() - 300000;
loaded = Math.floor((_local2 / _local3) * 100);
if (loaded >= 100) {
delete onEnterFrame;
_root.play();
preloader.unloadMovie();
} else {
numero = Math.floor((_local2 / _local3) * 100);
preloader.pct = numero + "%";
_root.preloader.bar._xscale = numero;
}
};
Init();
Instance of Symbol 16 MovieClip in Frame 1
on (release) {
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);
}
getURL ("http://www.bunnygames.com/in.php?game=blacknorange&zone=more", "_blank");
_root.box.sponsor.data.counter = 1;
__com_mochibot__("2afab241", this, 10301, true);
}
Instance of Symbol 50 MovieClip "fader" in Frame 2
onClipEvent (load) {
_x = 175;
_y = 175;
f = 0;
ac = 0;
}
onClipEvent (enterFrame) {
if ((f != 0) && (ac == 0)) {
gotoAndPlay (2);
ac = 1;
}
}
Instance of Symbol 64 MovieClip in Frame 2
onClipEvent (load) {
this.swaper2.gotoandStop(2);
}
on (release) {
this.swaper2.play();
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 3
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__("e723885b", this, 10301, true);
stop();
Instance of Symbol 75 MovieClip in Frame 3
on (release) {
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);
}
getURL ("http://www.bunnygames.com/in.php?game=blacknorange&zone=more", "_blank");
_root.box.sponsor.data.counter = 1;
__com_mochibot__("2afab241", this, 10301, true);
}
Frame 4
_root.kongregateServices.connect();
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);
}
_root.box.playy = 0;
stop();
mochi.MochiServices.connect("447b355cd453c073");
__com_mochibot__("07f0ad9c", this, 10301, true);
Instance of Symbol 80 MovieClip in Frame 4
on (release) {
_root.fader.f = 4;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 96 MovieClip "box" in Frame 4
onClipEvent (load) {
Stage.showMenu = false;
volume = 100;
lv1score = SharedObject.getLocal("a1");
if (lv1score.data.counter == undefined) {
lv1score.data.counter = 0;
}
lv2score = SharedObject.getLocal("a2");
if (lv2score.data.counter == undefined) {
lv2score.data.counter = 0;
}
lv3score = SharedObject.getLocal("a3");
if (lv3score.data.counter == undefined) {
lv3score.data.counter = 0;
}
lv4score = SharedObject.getLocal("a4");
if (lv4score.data.counter == undefined) {
lv4score.data.counter = 0;
}
lv5score = SharedObject.getLocal("a5");
if (lv5score.data.counter == undefined) {
lv5score.data.counter = 0;
}
lv6score = SharedObject.getLocal("a6");
if (lv6score.data.counter == undefined) {
lv6score.data.counter = 0;
}
lv7score = SharedObject.getLocal("a7");
if (lv7score.data.counter == undefined) {
lv7score.data.counter = 0;
}
lv8score = SharedObject.getLocal("a8");
if (lv8score.data.counter == undefined) {
lv8score.data.counter = 0;
}
lv9score = SharedObject.getLocal("a9");
if (lv9score.data.counter == undefined) {
lv9score.data.counter = 0;
}
lv10score = SharedObject.getLocal("a10");
if (lv10score.data.counter == undefined) {
lv10score.data.counter = 0;
}
lv11score = SharedObject.getLocal("a11");
if (lv11score.data.counter == undefined) {
lv11score.data.counter = 0;
}
lv12score = SharedObject.getLocal("a12");
if (lv12score.data.counter == undefined) {
lv12score.data.counter = 0;
}
hitwalls = SharedObject.getLocal("a16");
if (hitwalls.data.counter == undefined) {
hitwalls.data.counter = 0;
}
launch = SharedObject.getLocal("a17");
if (launch.data.counter == undefined) {
launch.data.counter = 0;
}
balls = SharedObject.getLocal("a18");
if (balls.data.counter == undefined) {
balls.data.counter = 0;
}
credits = SharedObject.getLocal("a19");
if (credits.data.counter == undefined) {
credits.data.counter = 0;
}
sponsor = SharedObject.getLocal("a20");
if (sponsor.data.counter == undefined) {
sponsor.data.counter = 0;
}
levelsdone = SharedObject.getLocal("a21");
if (levelsdone.data.counter == undefined) {
levelsdone.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;
}
award21 = SharedObject.getLocal("a42");
if (award21.data.counter == undefined) {
award21.data.counter = 0;
}
award22 = SharedObject.getLocal("a43");
if (award22.data.counter == undefined) {
award22.data.counter = 0;
}
totalaward = SharedObject.getLocal("a44");
if (totalaward.data.counter == undefined) {
totalaward.data.counter = 0;
}
teclam = 1;
playing = 0;
playy = 0;
howto = SharedObject.getLocal("a45");
if (howto.data.counter == undefined) {
howto.data.counter = 0;
}
stopAllSounds();
menu = new Sound();
menu.attachSound("menu");
menu.setVolume(_root.box.volume);
menu.start(0, 9999);
}
onClipEvent (enterFrame) {
menu.setVolume(_root.box.volume);
ingame.setVolume(_root.box.volume);
if (playing != playy) {
if (playy == 0) {
stopAllSounds();
menu = new Sound();
menu.attachSound("menu");
menu.setVolume(_root.box.volume);
menu.start(0, 9999);
playing = playy;
}
if (playy == 1) {
stopAllSounds();
ingame = new Sound();
ingame.attachSound("ingame");
ingame.setVolume(_root.box.volume);
ingame.start(0, 9999);
playing = playy;
}
if (playy == 2) {
stopAllSounds();
ingame = new Sound();
ingame.attachSound("ingame");
ingame.setVolume(_root.box.volume);
ingame.start(0, 9999);
playing = playy;
}
if (playy == 3) {
stopAllSounds();
ingame = new Sound();
ingame.attachSound("ingame");
ingame.setVolume(_root.box.volume);
ingame.start(0, 9999);
playing = playy;
}
}
if ((launch.data.counter >= 3) && (award1.data.counter == 0)) {
award1.data.counter = 1;
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.award.aw.gotoAndStop(1);
_root.award.gotoAndPlay(2);
}
if ((launch.data.counter >= 8) && (award2.data.counter == 0)) {
award2.data.counter = 1;
_root.award.award.aw.gotoAndStop(2);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((launch.data.counter >= 15) && (award3.data.counter == 0)) {
award3.data.counter = 1;
_root.award.award.aw.gotoAndStop(3);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((launch.data.counter >= 28) && (award4.data.counter == 0)) {
award4.data.counter = 1;
_root.award.award.aw.gotoAndStop(4);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((launch.data.counter >= 50) && (award5.data.counter == 0)) {
award5.data.counter = 1;
_root.award.award.aw.gotoAndStop(5);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((hitwalls.data.counter >= 1) && (award6.data.counter == 0)) {
award6.data.counter = 1;
_root.award.award.aw.gotoAndStop(6);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((hitwalls.data.counter >= 5) && (award7.data.counter == 0)) {
award7.data.counter = 1;
_root.award.award.aw.gotoAndStop(7);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((hitwalls.data.counter >= 20) && (award8.data.counter == 0)) {
award8.data.counter = 1;
_root.award.award.aw.gotoAndStop(8);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((hitwalls.data.counter >= 50) && (award9.data.counter == 0)) {
award9.data.counter = 1;
_root.award.award.aw.gotoAndStop(9);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((hitwalls.data.counter >= 100) && (award10.data.counter == 0)) {
award10.data.counter = 1;
_root.award.award.aw.gotoAndStop(10);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((balls.data.counter >= 10) && (award11.data.counter == 0)) {
award11.data.counter = 1;
_root.award.award.aw.gotoAndStop(11);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((balls.data.counter >= 25) && (award12.data.counter == 0)) {
award12.data.counter = 1;
_root.award.award.aw.gotoAndStop(12);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((balls.data.counter >= 60) && (award13.data.counter == 0)) {
award13.data.counter = 1;
_root.award.award.aw.gotoAndStop(13);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((balls.data.counter >= 100) && (award14.data.counter == 0)) {
award14.data.counter = 1;
_root.award.award.aw.gotoAndStop(14);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((balls.data.counter >= 200) && (award15.data.counter == 0)) {
award15.data.counter = 1;
_root.award.award.aw.gotoAndStop(15);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
totalscore = ((((((((((lv1score.data.counter + lv2score.data.counter) + lv3score.data.counter) + lv4score.data.counter) + lv5score.data.counter) + lv6score.data.counter) + lv7score.data.counter) + lv8score.data.counter) + lv9score.data.counter) + lv10score.data.counter) + lv11score.data.counter) + lv12score.data.counter;
if ((totalscore >= 50) && (award16.data.counter == 0)) {
award16.data.counter = 1;
_root.award.award.aw.gotoAndStop(16);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((totalscore >= 200) && (award17.data.counter == 0)) {
award17.data.counter = 1;
_root.award.award.aw.gotoAndStop(17);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((totalscore >= 400) && (award18.data.counter == 0)) {
award18.data.counter = 1;
_root.award.award.aw.gotoAndStop(18);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((totalscore >= 650) && (award19.data.counter == 0)) {
award19.data.counter = 1;
_root.award.award.aw.gotoAndStop(19);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((totalscore >= 900) && (award20.data.counter == 0)) {
award20.data.counter = 1;
_root.award.award.aw.gotoAndStop(20);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((sponsor.data.counter == 1) && (award21.data.counter == 0)) {
award21.data.counter = 1;
_root.award.award.aw.gotoAndStop(21);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if ((credits.data.counter == 1) && (award22.data.counter == 0)) {
award22.data.counter = 1;
_root.award.award.aw.gotoAndStop(22);
totalaward.data.counter = totalaward.data.counter + 1;
_root.award.gotoAndPlay(2);
}
if (Key.isDown(77)) {
if (teclam == 1) {
if (volume == 100) {
volume = 0;
} else {
volume = 100;
}
}
}
if (Key.isDown(77)) {
teclam = 0;
} else {
teclam = 1;
}
}
Instance of Symbol 64 MovieClip in Frame 4
onClipEvent (load) {
this.swaper2.gotoandStop(2);
}
on (release) {
this.swaper2.play();
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 5
_root.box.playy = 0;
Instance of Symbol 99 MovieClip in Frame 5
on (release) {
_root.fader.f = 6;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 102 MovieClip in Frame 5
on (release) {
_root.fader.f = 7;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 106 MovieClip in Frame 5
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 109 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.box.playy = 0;
}
Frame 6
stop();
_root.box.playy = 0;
Instance of Symbol 164 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.box.totalscore == 0) {
_root.totalscore.text = "0000";
}
if ((_root.box.totalscore > 0) && (_root.box.totalscore < 10)) {
_root.totalscore.text = "TOTAL SCORE: 000" + _root.box.totalscore;
}
if ((_root.box.totalscore > 9) && (_root.box.totalscore < 100)) {
_root.totalscore.text = "TOTAL SCORE: 00" + _root.box.totalscore;
}
if ((_root.box.totalscore > 99) && (_root.box.totalscore < 1000)) {
_root.totalscore.text = "TOTAL SCORE: 0" + _root.box.totalscore;
}
}
Instance of Symbol 168 MovieClip in Frame 6
on (release) {
_root.fader.f = 4;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 102 MovieClip in Frame 6
on (release) {
_root.fader.f = 7;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 174 MovieClip in Frame 6
on (release) {
_root.fader.f = 8;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
this.score.text = _root.box.lv1score.data.counter;
}
Instance of Symbol 179 MovieClip in Frame 6
on (release) {
_root.fader.f = 10;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
this.score.text = _root.box.lv2score.data.counter;
}
Instance of Symbol 188 MovieClip in Frame 6
onClipEvent (load) {
minimal = 120;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 12;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv3score.data.counter;
}
Instance of Symbol 194 MovieClip in Frame 6
onClipEvent (load) {
minimal = 190;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 14;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv4score.data.counter;
}
Instance of Symbol 198 MovieClip in Frame 6
onClipEvent (load) {
minimal = 270;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 16;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv5score.data.counter;
}
Instance of Symbol 202 MovieClip in Frame 6
onClipEvent (load) {
minimal = 350;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 18;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv6score.data.counter;
}
Instance of Symbol 206 MovieClip in Frame 6
onClipEvent (load) {
minimal = 420;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 20;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv7score.data.counter;
}
Instance of Symbol 210 MovieClip in Frame 6
onClipEvent (load) {
minimal = 500;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 22;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv8score.data.counter;
}
Instance of Symbol 214 MovieClip in Frame 6
onClipEvent (load) {
minimal = 580;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 24;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv9score.data.counter;
}
Instance of Symbol 221 MovieClip in Frame 6
onClipEvent (load) {
minimal = 640;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 26;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv10score.data.counter;
}
Instance of Symbol 225 MovieClip in Frame 6
onClipEvent (load) {
minimal = 710;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 28;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv11score.data.counter;
}
Instance of Symbol 229 MovieClip in Frame 6
onClipEvent (load) {
minimal = 850;
}
on (release) {
if (_root.box.totalscore >= minimal) {
_root.fader.f = 30;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
}
on (rollOver) {
if (_root.box.totalscore >= minimal) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
}
on (rollOut) {
if (_root.box.totalscore >= minimal) {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalscore < minimal) {
gotoAndStop (4);
}
this.score.text = _root.box.lv12score.data.counter;
}
Instance of Symbol 234 MovieClip "sp" in Frame 6
on (release) {
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);
}
getURL ("http://www.bunnygames.com/in.php?game=blacknorange&zone=more", "_blank");
_root.box.sponsor.data.counter = 1;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
__com_mochibot__("2afab241", this, 10301, true);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 7
_root.box.playy = 0;
Instance of Symbol 106 MovieClip in Frame 7
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 102 MovieClip in Frame 7
on (release) {
_root.fader.f = 7;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 236 MovieClip in Frame 7
onClipEvent (enterFrame) {
_root.total.text = _root.box.totalaward.data.counter + "/22";
}
Instance of Symbol 234 MovieClip "sp" in Frame 7
on (release) {
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);
}
getURL ("http://www.bunnygames.com/in.php?game=blacknorange&zone=more", "_blank");
_root.box.sponsor.data.counter = 1;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
__com_mochibot__("2afab241", this, 10301, true);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 8
_root.box.playy = 0;
_root.box.credits.data.counter = 1;
Instance of Symbol 99 MovieClip in Frame 8
on (release) {
_root.fader.f = 6;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 9
_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 130 MovieClip "q2" in Frame 9
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 9
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 9
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 9
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 9
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 5;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 9;
stopAllSounds();
trail = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv1score.data.counter) {
_root.box.lv1score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.box.playy = 1;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 9
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 9
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 319 MovieClip "pause" in Frame 9
onClipEvent (load) {
_x = 175;
_y = 175;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
}
if (_root.hero.paused == 1) {
_alpha = 100;
}
}
Frame 10
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 10
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv1score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 10
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 11
_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 130 MovieClip "q2" in Frame 11
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 11
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 11
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 11
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 11
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 6;
hiten = 0;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 11;
coin = 0;
stopAllSounds();
trail = 1;
shake = 0;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (hitted != hiten) {
if (hitten != 0) {
shake = 1;
hiten = hitted;
}
}
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor((100 - (seg / 60)) + coin);
if (score > _root.box.lv2score.data.counter) {
_root.box.lv2score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.playy = 1;
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.box.playy = 1;
if ((_y - radius) <= 2) {
shake = 1;
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
shake = 1;
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
shake = 1;
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
shake = 1;
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
coin = 0;
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
_root["t" + i].reset = 1;
_root["c" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 11
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 11
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
_root.hero.shake = 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.hero.shake = 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.hero.shake = 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 11
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 12
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 12
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv2score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 12
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 13
_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 130 MovieClip "q2" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 13
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 7;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 13;
wind = 0.15;
trail = 1;
stopAllSounds();
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv3score.data.counter) {
_root.box.lv3score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.playy = 1;
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
vx = vx + wind;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q8" in Frame 13
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 13
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 14
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 14
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv3score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 14
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 15
_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 130 MovieClip "q2" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 15
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 10;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 15;
wind = 0.2;
trail = 1;
stopAllSounds();
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv4score.data.counter) {
_root.box.lv4score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.playy = 1;
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
vx = vx + wind;
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q8" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q9" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q10" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q11" in Frame 15
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = (_root.hero._x - _x) / 1.5;
yy = (_root.hero._y - _y) / 1.5;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 15
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 16
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 16
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv4score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 16
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 17
_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 130 MovieClip "q2" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 17
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 11;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 17;
wind = -0.2;
trail = 1;
stopAllSounds();
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv5score.data.counter) {
_root.box.lv5score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.playy = 2;
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
vx = vx + wind;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q8" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q9" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q10" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q11" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q14" in Frame 17
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 17
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 18
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 18
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv5score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 18
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 19
_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 130 MovieClip "q2" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 19
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 11;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 19;
wind = 0;
blow = -7;
stopAllSounds();
trail = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv6score.data.counter) {
_root.box.lv6score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.box.playy = 2;
vx = vx + wind;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q8" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q9" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q10" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q11" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q14" in Frame 19
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 19
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 20
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 20
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv6score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 20
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 21
_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 130 MovieClip "q2" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 21
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 8;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 21;
wind = 0;
blow = -7;
stopAllSounds();
trail = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv7score.data.counter) {
_root.box.lv7score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.box.playy = 2;
vx = vx + wind;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx + ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx - ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q8" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q9" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q10" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q14" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q15" in Frame 21
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 21
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 22
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 22
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv7score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 22
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 23
_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 130 MovieClip "q4" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 23
onClipEvent (load) {
gr = -0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 7;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 23;
wind = 0;
blow = -7;
trail = 1;
stopAllSounds();
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv8score.data.counter) {
_root.box.lv8score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = 5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
_root.box.playy = 2;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
vx = vx + wind;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy - (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q10" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q11" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q15" in Frame 23
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = -0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 23
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 24
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 24
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv8score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 24
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 25
_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 130 MovieClip "q4" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 302 MovieClip "hero" in Frame 25
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 20;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 25;
wind = 0;
blow = -7;
trail = 1;
stopAllSounds();
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root.back.gotoAndStop(2);
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv9score.data.counter) {
_root.box.lv9score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
_root.box.playy = 3;
}
}
if (vivo == 1) {
vx = vx + wind;
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q9" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q26" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q20" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q24" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q22" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q27" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q30" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q29" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q48" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q36" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q38" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q40" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q42" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q45" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q44" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q52" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q54" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q56" in Frame 25
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 25
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 26
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 26
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv9score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 26
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 27
_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 302 MovieClip "hero" in Frame 27
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 12;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 27;
wind = 0;
blow = -7;
stopAllSounds();
trail = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv10score.data.counter) {
_root.box.lv10score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
vx = vx + wind;
_root.box.playy = 3;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q36" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q38" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q41" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q40" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q37" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q39" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q42" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q45" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q44" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q43" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 27
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 130 MovieClip "q60" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q61" in Frame 27
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Frame 28
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 28
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv10score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 28
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 29
_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 302 MovieClip "hero" in Frame 29
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 3;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 29;
wind = 0;
blow = -7;
stopAllSounds();
trail = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv11score.data.counter) {
_root.box.lv11score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
_root.box.playy = 3;
}
}
if (vivo == 1) {
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
vx = vx + wind;
_root.box.playy = 3;
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q41" in Frame 29
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 29
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 130 MovieClip "q42" in Frame 29
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q43" in Frame 29
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Frame 30
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 30
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv11score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 30
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Frame 31
_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 302 MovieClip "hero" in Frame 31
onClipEvent (load) {
gr = 0.2;
ac = 1.05;
vy = -5;
vx = 0;
atr = 0.97;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 38;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 31;
wind = 0;
blow = 7;
trail = 1;
stopAllSounds();
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if ((hitted >= total2) && (vivo == 1)) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root.back.gotoAndStop(2);
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv12score.data.counter) {
_root.box.lv12score.data.counter = score;
}
_root.fader.f = f;
}
}
_root.time.text = "TIME: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 5;
vy = 0;
if (Key.isDown(32)) {
_root.box.playy = 3;
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
vx = vx + wind;
_root["t" + trail]._x = _x;
_root["t" + trail]._y = _y;
_root["t" + trail].gotoAndPlay(1);
_root["t" + trail]._rotation = _rotation;
if (trail < 10) {
trail++;
} else {
trail = 1;
}
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root["w" + i].hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
seg = seg + 2.5;
if (Key.isDown(37) or Key.isDown(65)) {
vy = vy - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vy = vy + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vx = vx - (ac / 5);
}
vy = vy;
vx = vx - gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 130 MovieClip "q32" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q34" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q33" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q36" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q38" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q35" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q37" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q29" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q16" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q30" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q17" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q26" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q14" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q27" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q15" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q24" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q11" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q25" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q12" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q22" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q8" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q23" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q9" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q20" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q1" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q21" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q3" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q6" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q5" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q2" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q4" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q7" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q18" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q19" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q31" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q13" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q10" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 130 MovieClip "q28" in Frame 31
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
i = 0;
while (i < 50) {
if (_root.spikes.hitTest(this) or _root["w" + i].hitTest(this)) {
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
if (fall == 1) {
_root.hero.hitted = _root.hero.hitted + 1;
fall = -1;
}
}
if (_root["b" + i].hitTest(this)) {
if (vy > 0) {
vy = 0;
}
vy = blow;
}
i++;
}
vx = vx + _root.hero.wind;
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "t1" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t2" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t3" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t4" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t5" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t6" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t7" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t8" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t9" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Instance of Symbol 135 MovieClip "t10" in Frame 31
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
play();
}
if (_root.hero.paused == 1) {
stop();
}
if ((_root.hero.vivo == 1) or (_root.hero.vivo == 2)) {
_alpha = 100;
} else {
_x = 700;
_alpha = 0;
}
}
Frame 32
_root.box.playy = 0;
Instance of Symbol 250 MovieClip "back" in Frame 33
onClipEvent (enterFrame) {
_root.score.text = "SCORE: " + _root.box.lv12score.data.counter;
_root.totalscore.text = "TOTAL SCORE: " + _root.box.totalscore;
}
Instance of Symbol 325 MovieClip in Frame 33
on (release) {
_root.fader.f = 5;
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.fader.f = 5;
gotoAndStop (3);
}
}
Symbol 437 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 39 MovieClip Frame 12
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 20
f2 = f + 1;
_root.gotoAndStop(f2);
f = 0;
f2 = 0;
ac = 0;
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 10
award = new Sound();
award.attachSound("award");
award.setVolume(_root.box.volume);
award.start(0, 1);
Symbol 61 MovieClip Frame 1
stop();
_root._quality = "HIGH";
Symbol 61 MovieClip Frame 2
stop();
_root._quality = "LOW";
Symbol 64 MovieClip Frame 1
stop();
Instance of Symbol 61 MovieClip "swaper2" in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
teclaq = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (teclaq == 1) {
teclaq = 0;
this.play();
}
} else {
teclaq = 1;
}
}
Symbol 75 MovieClip Frame 48
stop();
_root.fader.f = 3;
Symbol 80 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 10
if ((reset == 1) or (_root.hero.vivo == 0)) {
stop();
}
Instance of Symbol 130 MovieClip "q4" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
sw = 0;
vx = 0;
vy = 0;
fall = 0;
atr = 0.98;
gr = 0.2;
radius = _width / 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
gotoAndStop(sw + 1);
if (reset == 1) {
sw = 0;
_x = inix;
_y = iniy;
fall = 0;
vx = 0;
vy = 0;
_alpha = 100;
reset = 0;
}
if (_root.hero.hitTest(this) && (_root.hero.vivo == 1)) {
if ((fall == 1) or (fall == 0)) {
dia = (_width / 2) + (_root.hero._width / 2);
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distance = Math.sqrt((distx * distx) + (disty * disty));
if (distance <= dia) {
_root.box.balls.data.counter = _root.box.balls.data.counter + 1;
if ((fall == 0) && (fall != -1)) {
fall = 1;
}
sw = 1;
xx = _root.hero._x - _x;
yy = _root.hero._y - _y;
_root.hero.vx = xx;
_root.hero.vy = yy;
vx = -xx;
vy = -yy;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
}
}
if (fall == 1) {
if ((_y - radius) <= 2) {
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
fall = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
sw = 2;
_root.hero.hitted = _root.hero.hitted + 1;
}
vx = vx * atr;
vy = vy + gr;
vy = vy * atr;
_x = (_x + vx);
_y = (_y + vy);
}
if (fall == -1) {
if (_alpha > 0) {
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
}
}
}
}
Instance of Symbol 135 MovieClip "hero" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
gr = 0.2;
ac = 1.5;
vy = -5;
vx = 0;
atr = 0.98;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 5;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 9;
_root.box.playy = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(81)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (hitted >= total2) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv1score.data.counter) {
_root.box.lv1score.data.counter = score;
}
_root.box.playy = 0;
_root.fader.f = f;
}
}
_root.time.text = "Time: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Instance of Symbol 135 MovieClip "hero" in Symbol 146 MovieClip Frame 1
onClipEvent (load) {
gr = 0.2;
ac = 1.5;
vy = -5;
vx = 0;
atr = 0.98;
seg = 0;
radius = _height / 2;
hitted = 0;
total2 = 5;
vivo = 0;
paused = 0;
teclap = 1;
teclaq = 1;
saiu = 0;
f = 9;
_root.box.playy = 1;
}
onClipEvent (enterFrame) {
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(81)) {
_root.fader.f = 5;
}
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (hitted >= total2) {
vivo = 2;
}
if (paused == 0) {
if (vivo == 2) {
_root.back.gotoAndStop(2);
distx = _root.back._x - _x;
disty = _root.back._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 5;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
saiu++;
if (saiu == 10) {
score = Math.floor(100 - (seg / 60));
if (score > _root.box.lv1score.data.counter) {
_root.box.lv1score.data.counter = score;
}
_root.box.playy = 0;
_root.fader.f = f;
}
}
_root.time.text = "Time: " + Math.floor(seg / 60);
_root.total.text = (hitted + "/") + total2;
if (vivo == 0) {
hitted = 0;
total = 0;
_root.launch._alpha = 100;
gotoAndStop (1);
seg = 0;
_alpha = 100;
_x = _root.back._x;
_y = _root.back._y;
vx = 0;
vy = -5;
if (Key.isDown(32)) {
_root.box.launch.data.counter = _root.box.launch.data.counter + 1;
launch = new Sound();
launch.attachSound("launch");
launch.setVolume(_root.box.volume);
launch.start(0, 1);
_root.launch._alpha = 0;
vivo = 1;
}
}
if (vivo == 1) {
if ((_y - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
vy = vy * -1;
_y = (radius + 2);
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x - radius) <= 2) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = (radius + 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if ((_x + radius) >= 348) {
_root.box.hitwalls.data.counter = _root.box.hitwalls.data.counter + 1;
_x = ((350 - radius) - 2);
vx = vx * -1;
knock = new Sound();
knock.attachSound("knock");
knock.setVolume(_root.box.volume);
knock.start(0, 1);
}
if (_root.spikes.hitTest(this)) {
vivo = -1;
pop = new Sound();
pop.attachSound("pop");
pop.setVolume(_root.box.volume);
pop.start(0, 1);
}
seg = seg + 2.5;
_root.dark._x = _x;
_root.dark._y = _y;
dist_x = _x - _root._xmouse;
dist_y = _y - _root._ymouse;
angle = -Math.atan2(dist_x, dist_y);
_root.dark._rotation = (angle / (Math.PI/180)) - 90;
if (Key.isDown(37) or Key.isDown(65)) {
vx = vx - ac;
}
if (Key.isDown(39) or Key.isDown(68)) {
vx = vx + ac;
}
if (Key.isDown(40) or Key.isDown(83)) {
vy = vy + (ac / 5);
}
vy = vy + gr;
vy = vy * atr;
vx = vx * atr;
if (vx > 10) {
vx = 10;
}
if (vx < -10) {
vx = -10;
}
if (vy < -10) {
vy = -10;
}
_x = (_x + vx);
_rotation = (_rotation + vx);
_y = (_y + vy);
}
if (vivo == -1) {
gotoAndStop (2);
if (_alpha > 0) {
_rotation = 0;
_y = (_y - 2.08333333333333);
_alpha = (_alpha - 4.16666666666667);
} else {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
i = 0;
while (i < 100) {
_root["q" + i].reset = 1;
i++;
}
vivo = 0;
}
}
}
}
Symbol 162 MovieClip Frame 1
stop();
_root.box.howto.data.counter = 1;
Symbol 168 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Instance of Symbol 250 MovieClip "awa1" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award1.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa6" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award6.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa4" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award4.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa3" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award3.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa2" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award2.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa9" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award9.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa5" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award5.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa11" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award21.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa10" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award10.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa8" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award8.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa7" in Symbol 287 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award7.data.counter + 1);
}
Instance of Symbol 253 MovieClip in Symbol 287 MovieClip Frame 1
on (release) {
_root.pag.gotoAndStop(2);
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 250 MovieClip "awa1" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award11.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa6" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award16.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa4" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award14.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa3" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award13.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa2" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award12.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa9" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award19.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa5" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award15.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa11" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award22.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa10" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award20.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa8" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award18.data.counter + 1);
}
Instance of Symbol 250 MovieClip "awa7" in Symbol 287 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award17.data.counter + 1);
}
Instance of Symbol 253 MovieClip in Symbol 287 MovieClip Frame 2
on (release) {
_root.pag.gotoAndStop(1);
clk = new Sound();
clk.attachSound("clk");
clk.setVolume(_root.box.volume);
clk.start(0, 1);
gotoAndStop (3);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 95
stop();
_root.fader.f = 32;