Frame 1
function initLoader() {
var _local2 = ((result_lv.b == undefined) ? "false" : (result_lv.b));
trace(("b ::" + _local2) + "::");
trace(("result_lv.h ::" + result_lv.h) + "::");
if (result_lv.h == "true") {
isHome = true;
}
if (_local2 == "true") {
bannedSign._alpha = 100;
} else {
this.onEnterFrame = function () {
createNewParticle();
mcLoadLogoBg.bar._xscale = 100 * (1 - (getBytesLoaded() / getBytesTotal()));
emitter._x = (mcLoadLogoBg._x + (96 - mcLoadLogoBg.bar._width)) + 15;
emitter._y = mcLoadLogoBg._y + 44;
if (getBytesLoaded() == getBytesTotal()) {
kill();
this.onEnterFrame = undefined;
if (isHome) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
};
bannedSign.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
};
}
}
function openKingPage(type, page) {
trace(type);
var _local4 = _root._url;
var _local3 = (((((("game=" + GAME_NAME) + "&from=") + _local4) + "&type=") + type) + "&session=") + sessionID;
if (page != undefined) {
_local3 = _local3 + ("&redirect=" + page);
}
var _local2 = "_blank";
if (isHome) {
_local2 = "_top";
}
getURL ((bounceURL + "?") + _local3, _local2);
}
function openOtherGamesLink() {
openKingPage(LINK_TYPE_OTHER_GAMES);
}
function openHighscoresLink() {
openKingPage(LINK_TYPE_HIGHSCORES, ("game/" + GAME_NAME) + "/highscores");
}
function openSignLink() {
if (!isHome) {
openKingPage(LINK_TYPE_SIGN);
}
}
function openAddToWebsiteLink() {
openKingPage(LINK_TYPE_ADD_GAME, "website_content.jsp");
}
function openLoaderMovieLink() {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
function openRightClickLink() {
openKingPage(LINK_TYPE_RIGHT_CLICK);
}
function openOfflineProtectionLink() {
openKingPage(LINK_TYPE_PROTECT);
}
function addScore(points) {
checkScore();
var _local1 = iscore;
_local1 = _local1 + points;
iscore = _local1;
var _local2 = new md5();
checkStr = _local2.hash((((iscore + ":") + GAME_NAME) + ":") + SK);
return(_local1);
}
function resetScore() {
iscore = 0;
checkStr = null;
}
function submitInternalScore() {
checkScore();
var _local1 = iscore;
submitScore(_local1);
}
function checkScore() {
if (checkStr != null) {
var _local1 = new md5();
if (checkStr != _local1.hash((((iscore + ":") + GAME_NAME) + ":") + SK)) {
SSK = "ng41ui54hy35tdsnd6f54rews";
}
}
}
function submitScore(score) {
var _local3 = new md5();
var _local1 = _local3.hash((((score + ":") + GAME_NAME) + ":") + SSK);
openKingPage(LINK_TYPE_HIGHSCORES, (((("game/" + GAME_NAME) + "/submit/") + score) + ":") + _local1);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitScore", score, _local1);
} else {
openKingPage(LINK_TYPE_HIGHSCORES, (((("game/" + GAME_NAME) + "/submit/") + score) + ":") + _local1);
}
} catch(e:Error) {
trace(e);
}
}
function submitLevel(level) {
var _local1 = new md5();
var _local2 = _local1.hash((((level + ":") + GAME_NAME) + ":") + SSK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitLevel", level, _local2);
}
} catch(e:Error) {
trace(e);
}
}
function submitAchievement(achievement) {
var _local1 = new md5();
var _local2 = _local1.hash((((achievement + ":") + GAME_NAME) + ":") + SAK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitAchievement", achievement, _local2);
}
} catch(e:Error) {
trace(e);
}
}
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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 createNewParticle() {
var _local4 = emitter.attachMovie("libGlow", "newLibGlow", emitter.getNextHighestDepth());
var _local3 = new Particle(_local4, -10, -7, _root._width, _root._height);
_local3.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel));
_local3.setSize(randRange(minSize, maxSize));
particles.push(_local3);
while (particles.length > numParticles) {
_local3 = particles.shift();
_local3.destroy();
}
var _local2 = 0;
while (_local2 < particles.length) {
particles[_local2].update();
_local2++;
}
}
function kill() {
var _local1 = 0;
while (_local1 < particles.length) {
particles[_local1].destroy();
_local1++;
}
}
function randRange(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
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);
}
stop();
var GAME_NAME = "StarBox";
var MOCHI_SIGNATURE = "";
var loadCountURL = "http://www.mygame.com/king/loadcount.jsp";
var bounceURL = "http://www.mygame.com/king/bounce.jsp";
var loadHomeParametersURL = "http://www.king.com/servlet/FreeGameServlet?action=load";
var LINK_TYPE_LOADER_MOVIE = "loader_movie";
var LINK_TYPE_LOADER_PROGRESS = "loader_progress";
var LINK_TYPE_PROTECT = "protect";
var LINK_TYPE_OTHER_GAMES = "other_games";
var LINK_TYPE_HIGHSCORES = "highscores";
var LINK_TYPE_SIGN = "sign";
var LINK_TYPE_ADD_GAME = "add_game";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var SSK = "ng43ui54hy35tdsnd6f54rews";
var SAK = "ggfd7sday923mdsfd8csfds34";
var SK = "vf78hxcsjak77cxzhjkwad87s";
var iscore = 0;
var checkStr = null;
var USER_TYPE_UNREGISTERED = 0;
var USER_TYPE_REGISTERED = 1;
var USER_TYPE_GOLD = 2;
var USER_TYPE_SUBSCRIPTION = 3;
var SessionID = "";
var gameWidth = Stage.width;
var gameHeight = Stage.height;
var isHome = false;
bannedSign._alpha = 0;
bannedSign._x = (bannedSign._y = 0);
bannedSign.bg._width = gameWidth;
bannedSign.bg._height = gameHeight;
mcLoadLogoBg._x = (gameWidth / 2) - (mcLoadLogoBg._width / 2);
mcLoadLogoBg._y = (gameHeight / 2) - (mcLoadLogoBg._height / 2);
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
_root.initLoader();
};
var my_lv = new LoadVars();
my_lv.game = GAME_NAME;
my_lv.from = _root._url;
var so = SharedObject.getLocal("session");
if (so.data.sessionID == null) {
var rnd1 = Math.floor(Math.random() * 4294967295);
var rnd2 = Math.floor(Math.random() * 4294967295);
so.data.sessionID = rnd1.toString(16) + rnd2.toString(16);
so.flush();
}
sessionID = so.data.sessionID;
my_lv.session = sessionID;
my_lv.sendAndLoad(loadCountURL, result_lv, "GET");
if (MOCHI_SIGNATURE != "") {
__com_mochibot__(MOCHI_SIGNATURE, this, 10301, true);
}
var numParticles = 20;
var minXVel = -1;
var maxXVel = 1;
var minYVel = -1;
var maxYVel = 1;
var minSize = 12;
var maxSize = 29;
var minAlpha = 10;
var maxAlpha = 20;
var particles = new Array();
var emitter = _root.createEmptyMovieClip("p_holder", _root.getNextHighestDepth());
__com_mochibot__("89d910a3", this, 10301, true);
Frame 2
function fireFire() {
new mx.transitions.Tween(mcKingLoader.fireLogoHolder, "_x", mx.transitions.easing.Regular.easeOut, mcKingLoader.fireLogoHolder._x, ((gameWidth / 2) - (mcKingLoader.dragonHolder._width / 2)) - 51, 1, true);
mcKingLoader.fireLogoHolder.play();
}
function showPlayBtn() {
mcKingLoader.mcPlay._x = (gameWidth / 2) - (mcKingLoader.mcPlay._width / 2);
mcKingLoader.mcPlay._y = mcKingLoader.fireLogoHolder._y + 210;
new mx.transitions.Tween(mcKingLoader.mcPlay, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.5, true);
mcKingLoader.mcPlay.onPress = btnOnPress;
mcKingLoader.mcPlay.onRollOver = btnOnOver;
mcKingLoader.mcPlay.onRollOut = (mcKingLoader.mcPlay.onDragOut = btnOnOut);
mcKingLoader.mcPlay.onRelease = mx.utils.Delegate.create(this, launchGame);
Delay.oneShot(this, showGlimmer, 1000);
}
function showGlimmer() {
mcKingLoader.mcGlim._x = mcKingLoader.fireLogoHolder_.x - mcKingLoader.mcGlim._width;
mcKingLoader.mcGlim._y = mcKingLoader.fireLogoHolder._y + 112;
var _local2 = mcKingLoader.fireLogoHolder._x - mcKingLoader.mcGlim._width;
var _local3 = (mcKingLoader.fireLogoHolder._x + mcKingLoader.fireLogoHolder._width) - 80;
var _local1 = new mx.transitions.Tween(mcKingLoader.mcGlim, "_x", mx.transitions.easing.None.easeNone, _local2, _local3, 0.5, true);
_local1.onMotionFinished = glimmerDone;
}
function glimmerDone() {
mcKingLoader.mcGlim._visible = false;
}
function btnOnOver() {
var _local2 = this;
_local2.gotoAndStop("over");
}
function btnOnOut() {
var _local2 = this;
_local2.gotoAndStop("idle");
}
function btnOnPress() {
var _local2 = this;
_local2.gotoAndStop("down");
}
function launchGame() {
gotoAndStop (4);
}
stop();
mcKingLoader.dragonHolder.attachMovie("mcDragon", "newDragon", 1);
mcKingLoader.fireLogoHolder.stop();
mcKingLoader.dragonHolder.stop();
mcKingLoader._x = (mcKingLoader._y = 0);
mcKingLoader.bg._width = gameWidth;
mcKingLoader.bg._height = gameHeight;
mcKingLoader.bg.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
};
mcKingLoader.fireLogoHolder._x = (gameWidth - mcKingLoader.fireLogoHolder._width) - 90;
mcKingLoader.fireLogoHolder._y = ((gameHeight / 2) - (mcKingLoader.fireLogoHolder._height / 2)) - 60;
mcKingLoader.dragonHolder._x = gameWidth - mcKingLoader.dragonHolder._width;
mcKingLoader.dragonHolder._y = (gameHeight / 2) - (mcKingLoader.dragonHolder._height / 2);
mcKingLoader.mcPlay._alpha = 0;
mcKingLoader.mcPlay.useHandCursor = true;
var bell = new Sound();
bell.attachSound("sfxBell");
bell.setVolume(100);
bell.start();
mcKingLoader.initAnimDriver(30, false);
trace("StartAnim");
mcKingLoader.dragonHolder.play();
Frame 4
stop();
Instance of Symbol 85 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
on (release) {
_root.f.f = 9;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 87 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
on (release) {
_root.f.f = 8;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 89 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
on (release) {
_root.openOtherGamesLink();
_root.box.supporter.data.counter = 1;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 93 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
on (release) {
_root.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 105 MovieClip in Frame 4
onClipEvent (load) {
stop();
}
on (release) {
_root.openHighscoresLink();
_root.box.supporter.data.counter = 1;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 111 MovieClip in Frame 4
on (release) {
_root.openAddToWebsiteLink();
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
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 113 MovieClip in Frame 4
onClipEvent (enterFrame) {
totalScore10 = _root.box.totalPoints * 10;
bossScore = ((_root.box.boss1Score.data.counter + _root.box.boss2Score.data.counter) + _root.box.boss3Score.data.counter) / 12;
progress = Math.floor((((totalScore10 / 600) * 60) + ((_root.box.tawards.data.counter / 30) * 20)) + (bossScore * 20));
_root.progress.text = ("Progress Bar: " + progress) + "%";
_root.bar.gotoAndStop(progress);
}
Instance of Symbol 126 MovieClip in Frame 4
onClipEvent (load) {
this.swaper2.gotoandStop(2);
}
on (release) {
this.swaper2.play();
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 23 MovieClip [Symbol 23] "box" in Frame 4
onClipEvent (load) {
lv1Score = SharedObject.getLocal("lv1");
if (lv1Score.data.counter == undefined) {
lv1Score.data.counter = 0;
}
lv1Time = 0;
lv1Stars = 0;
lv2Score = SharedObject.getLocal("lv2");
if (lv2Score.data.counter == undefined) {
lv2Score.data.counter = 0;
}
lv3Score = SharedObject.getLocal("lv3");
if (lv3Score.data.counter == undefined) {
lv3Score.data.counter = 0;
}
lv4Score = SharedObject.getLocal("lv4");
if (lv4Score.data.counter == undefined) {
lv4Score.data.counter = 0;
}
lv5Score = SharedObject.getLocal("lv5");
if (lv5Score.data.counter == undefined) {
lv5Score.data.counter = 0;
}
lv6Score = SharedObject.getLocal("lv6");
if (lv6Score.data.counter == undefined) {
lv6Score.data.counter = 0;
}
lv7Score = SharedObject.getLocal("lv7");
if (lv7Score.data.counter == undefined) {
lv7Score.data.counter = 0;
}
lv8Score = SharedObject.getLocal("lv8");
if (lv8Score.data.counter == undefined) {
lv8Score.data.counter = 0;
}
lv9Score = SharedObject.getLocal("lv9");
if (lv9Score.data.counter == undefined) {
lv9Score.data.counter = 0;
}
boss1Score = SharedObject.getLocal("boss1");
if (boss1Score.data.counter == undefined) {
boss1Score.data.counter = 0;
}
boss2Score = SharedObject.getLocal("boss2");
if (boss2Score.data.counter == undefined) {
boss2Score.data.counter = 0;
}
boss3Score = SharedObject.getLocal("boss3");
if (boss3Score.data.counter == undefined) {
boss3Score.data.counter = 0;
}
secret1Score = SharedObject.getLocal("secret1");
if (secret1Score.data.counter == undefined) {
secret1Score.data.counter = 0;
}
secret2Score = SharedObject.getLocal("secret2");
if (secret2Score.data.counter == undefined) {
secret2Score.data.counter = 0;
}
secret3Score = SharedObject.getLocal("secret3");
if (secret3Score.data.counter == undefined) {
secret3Score.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;
}
award23 = SharedObject.getLocal("a44");
if (award23.data.counter == undefined) {
award23.data.counter = 0;
}
award24 = SharedObject.getLocal("a45");
if (award24.data.counter == undefined) {
award24.data.counter = 0;
}
award25 = SharedObject.getLocal("a46");
if (award25.data.counter == undefined) {
award25.data.counter = 0;
}
award26 = SharedObject.getLocal("a47");
if (award26.data.counter == undefined) {
award26.data.counter = 0;
}
award27 = SharedObject.getLocal("a48");
if (award27.data.counter == undefined) {
award27.data.counter = 0;
}
award28 = SharedObject.getLocal("a49");
if (award28.data.counter == undefined) {
award28.data.counter = 0;
}
award29 = SharedObject.getLocal("a50");
if (award29.data.counter == undefined) {
award29.data.counter = 0;
}
award30 = SharedObject.getLocal("a51");
if (award30.data.counter == undefined) {
award30.data.counter = 0;
}
tawards = SharedObject.getLocal("tawards");
if (tawards.data.counter == undefined) {
tawards.data.counter = 0;
}
tstars = SharedObject.getLocal("b1");
if (tstars.data.counter == undefined) {
tstars.data.counter = 0;
}
ttime = SharedObject.getLocal("ttime");
if (ttime.data.counter == undefined) {
ttime.data.counter = 0;
}
power1 = SharedObject.getLocal("pp1");
if (power1.data.counter == undefined) {
power1.data.counter = 0;
}
power2 = SharedObject.getLocal("pp2");
if (power2.data.counter == undefined) {
power2.data.counter = 0;
}
power3 = SharedObject.getLocal("pp3");
if (power3.data.counter == undefined) {
power3.data.counter = 0;
}
supporter = SharedObject.getLocal("supporter");
if (supporter.data.counter == undefined) {
supporter.data.counter = 0;
}
apreciator = SharedObject.getLocal("apreciator");
if (apreciator.data.counter == undefined) {
apreciator.data.counter = 0;
}
easterEgg = SharedObject.getLocal("easterEgg");
if (easterEgg.data.counter == undefined) {
easterEgg.data.counter = 0;
}
timea = 0;
teclam = 1;
Stage.showMenu = false;
volume = 100;
playing = 3;
playy = 0;
menu = new Sound();
menu.attachSound("menu");
ingame = new Sound();
ingame.attachSound("ingame");
mute = 0;
easyWon = 0;
mediumWon = 0;
hardWon = 0;
bossWon = 0;
secretWon = 0;
totalPoints = 0;
easyGold = 0;
mediumGold = 0;
hardGold = 0;
}
onClipEvent (enterFrame) {
totalPoints = (((((((((((((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) + secret1Score.data.counter) + secret2Score.data.counter) + secret3Score.data.counter) + boss1Score.data.counter) + boss2Score.data.counter) + boss3Score.data.counter;
if (((lv1Score.data.counter >= 1) && (lv2Score.data.counter >= 1)) && (lv3Score.data.counter >= 1)) {
easyWon = 1;
}
if (((lv4Score.data.counter >= 1) && (lv7Score.data.counter >= 1)) && (lv6Score.data.counter >= 1)) {
mediumWon = 1;
}
if (((lv5Score.data.counter >= 1) && (lv8Score.data.counter >= 1)) && (lv9Score.data.counter >= 1)) {
hardWon = 1;
}
if (((boss1Score.data.counter >= 1) && (boss2Score.data.counter >= 1)) && (boss3Score.data.counter >= 1)) {
bossWon = 1;
}
if (((power1.data.counter == 1) && (power2.data.counter == 1)) && (power3.data.counter == 1)) {
secretWon = 1;
}
if ((((lv1Score.data.counter >= 3) && (lv2Score.data.counter >= 3)) && (lv3Score.data.counter >= 3)) && (boss1Score.data.counter >= 3)) {
easyGold = 1;
}
if ((((lv4Score.data.counter >= 3) && (lv7Score.data.counter >= 3)) && (lv6Score.data.counter >= 3)) && (boss2Score.data.counter >= 3)) {
mediumGold = 1;
}
if ((((lv5Score.data.counter >= 3) && (lv8Score.data.counter >= 3)) && (lv9Score.data.counter >= 3)) && (boss3Score.data.counter >= 3)) {
hardGold = 1;
}
timea = timea + 2.5;
if (timea == 60) {
timea = 0;
ttime.data.counter++;
}
if (Key.isDown(77)) {
if (teclam == 1) {
teclam = 0;
if (mute == 0) {
volume = 0;
mute = 1;
} else {
mute = 0;
volume = 100;
}
}
} else {
teclam = 1;
}
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 (((award1.data.counter == 0) && (easyWon == 1)) && (_root.award._currentframe == 1)) {
award1.data.counter = 1;
_root.award.a.nome.text = "That Was Easy!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award2.data.counter == 0) && (mediumWon == 1)) && (_root.award._currentframe == 1)) {
award2.data.counter = 1;
_root.award.a.nome.text = "That Was Still Easy!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award3.data.counter == 0) && (hardWon == 1)) && (_root.award._currentframe == 1)) {
award3.data.counter = 1;
_root.award.a.nome.text = "That Was Hard!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award4.data.counter == 0) && (bossWon == 1)) && (_root.award._currentframe == 1)) {
award4.data.counter = 1;
_root.award.a.nome.text = "I Own Them All!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award5.data.counter == 0) && (secretWon == 1)) && (_root.award._currentframe == 1)) {
award5.data.counter = 1;
_root.award.a.nome.text = "That Was Secret!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award6.data.counter == 0) && (totalPoints >= 5)) && (_root.award._currentframe == 1)) {
award6.data.counter = 1;
_root.award.a.nome.text = "Newbie";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award7.data.counter == 0) && (totalPoints >= 15)) && (_root.award._currentframe == 1)) {
award7.data.counter = 1;
_root.award.a.nome.text = "Casual Player";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award8.data.counter == 0) && (totalPoints >= 30)) && (_root.award._currentframe == 1)) {
award8.data.counter = 1;
_root.award.a.nome.text = "Nice Player";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award9.data.counter == 0) && (totalPoints >= 45)) && (_root.award._currentframe == 1)) {
award9.data.counter = 1;
_root.award.a.nome.text = "Expert Player";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award10.data.counter == 0) && (totalPoints >= 60)) && (_root.award._currentframe == 1)) {
award10.data.counter = 1;
_root.award.a.nome.text = "Game Freak";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award11.data.counter == 0) && (ttime.data.counter >= 60)) && (_root.award._currentframe == 1)) {
award11.data.counter = 1;
_root.award.a.nome.text = "Starting To Like It";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award12.data.counter == 0) && (ttime.data.counter >= 300)) && (_root.award._currentframe == 1)) {
award12.data.counter = 1;
_root.award.a.nome.text = "Can't Get Off Of It";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award13.data.counter == 0) && (ttime.data.counter >= 600)) && (_root.award._currentframe == 1)) {
award13.data.counter = 1;
_root.award.a.nome.text = "I Just Can't Stop!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award14.data.counter == 0) && (ttime.data.counter >= 1200)) && (_root.award._currentframe == 1)) {
award14.data.counter = 1;
_root.award.a.nome.text = "There's Time Left!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award15.data.counter == 0) && (ttime.data.counter >= 2400)) && (_root.award._currentframe == 1)) {
award15.data.counter = 1;
_root.award.a.nome.text = "Too Much Free Time";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award16.data.counter == 0) && (power1.data.counter == 1)) && (_root.award._currentframe == 1)) {
award16.data.counter = 1;
_root.award.a.nome.text = "Come At Me";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award17.data.counter == 0) && (power2.data.counter == 1)) && (_root.award._currentframe == 1)) {
award17.data.counter = 1;
_root.award.a.nome.text = "Micro Size Me";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award18.data.counter == 0) && (power3.data.counter == 1)) && (_root.award._currentframe == 1)) {
award18.data.counter = 1;
_root.award.a.nome.text = "Super Speed Me";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award19.data.counter == 0) && (boss1Score.data.counter > 0)) && (_root.award._currentframe == 1)) {
award19.data.counter = 1;
_root.award.a.nome.text = "You Can't Hit Me";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award20.data.counter == 0) && (boss2Score.data.counter > 0)) && (_root.award._currentframe == 1)) {
award20.data.counter = 1;
_root.award.a.nome.text = "Yoy Guys can't Hit Me";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award21.data.counter == 0) && (boss3Score.data.counter > 0)) && (_root.award._currentframe == 1)) {
award21.data.counter = 1;
_root.award.a.nome.text = "YOU BEAT THE THIRD BOSS";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award22.data.counter == 0) && (tawards.data.counter >= 3)) && (_root.award._currentframe == 1)) {
award22.data.counter = 1;
_root.award.a.nome.text = "Award Discovery";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award23.data.counter == 0) && (tawards.data.counter >= 5)) && (_root.award._currentframe == 1)) {
award23.data.counter = 1;
_root.award.a.nome.text = "Let Me Get Some More";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award24.data.counter == 0) && (tawards.data.counter >= 10)) && (_root.award._currentframe == 1)) {
award24.data.counter = 1;
_root.award.a.nome.text = "I Won't Stop Getting";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award25.data.counter == 0) && (tawards.data.counter >= 20)) && (_root.award._currentframe == 1)) {
award25.data.counter = 1;
_root.award.a.nome.text = "Almost There";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award26.data.counter == 0) && (tawards.data.counter >= 28)) && (_root.award._currentframe == 1)) {
award26.data.counter = 1;
_root.award.a.nome.text = "Awards Winner";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award27.data.counter == 0) && (supporter.data.counter == 1)) && (_root.award._currentframe == 1)) {
award27.data.counter = 1;
_root.award.a.nome.text = "Supporter";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award28.data.counter == 0) && (apreciator.data.counter == 1)) && (_root.award._currentframe == 1)) {
award28.data.counter = 1;
_root.award.a.nome.text = "Apreciator";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award29.data.counter == 0) && (easterEgg.data.counter == 1)) && (_root.award._currentframe == 1)) {
award29.data.counter = 1;
_root.award.a.nome.text = "I Like Easter Eggs!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
if (((award30.data.counter == 0) && (tawards.data.counter == 29)) && (_root.award._currentframe == 1)) {
award30.data.counter = 1;
_root.award.a.nome.text = "100% Unlocked!";
_root.award.gotoAndPlay(2);
tawards.data.counter++;
}
}
Instance of Symbol 141 MovieClip "f" in Frame 4
onClipEvent (load) {
f = 0;
ac = 0;
f2 = 0;
}
onClipEvent (enterFrame) {
if ((f != f2) && (ac == 0)) {
gotoAndPlay (2);
ac = 1;
f2 = f;
}
}
Frame 5
stop();
_root.box.playy = 0;
Instance of Symbol 178 MovieClip in Frame 5
on (release) {
_root.f.f = 10;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
on (rollOver) {
_root.level.text = "LEVEL 01";
_root.sobre.text = "The Start";
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
this.rank.gotoAndStop(_root.box.lv1Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "03";
need = 4;
about = "Introducing The Enemy";
lack = (_root.box.totalPoints - need) * -10;
f = 14;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv3Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "04";
need = 9;
about = "Two Ways";
f = 16;
lack = (_root.box.totalPoints - need) * -10;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv4Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "B1";
about = "The First Boss";
f = 18;
}
on (release) {
if (_root.box.easyWon == 1) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.easyWon == 1) {
_root.level.text = "BOSS 01";
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
_root.level.text = "LOCKED";
_root.sobre.text = "Beat All Easy Levels To Unlock";
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
}
}
on (rollOut) {
if (_root.box.easyWon == 1) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.easyWon == 0) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.boss1Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "05";
need = 14;
about = "The Big Gate";
lack = (_root.box.totalPoints - need) * -10;
f = 28;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv7Score.data.counter + 1);
}
Instance of Symbol 189 MovieClip in Frame 5
onClipEvent (load) {
fase = "G1";
about = "Twinky Stark.";
f = 21;
}
on (release) {
if (_root.box.easyGold == 1) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.easyGold == 1) {
_root.level.text = "GOLDEN LEVEL 01";
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
_root.level.text = "LOCKED";
_root.sobre.text = "All Easy Levels With Gold To Unlock";
}
}
on (rollOut) {
if (_root.box.easyGold == 1) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.easyGold == 0) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.secret1Score.data.counter + 1);
}
Instance of Symbol 197 MovieClip in Frame 5
on (release) {
_root.f.f = 4;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
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 113 MovieClip in Frame 5
onClipEvent (enterFrame) {
totalScore10 = _root.box.totalPoints * 10;
_root.score.text = totalScore10 + "/600";
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "06";
need = 17;
about = "The Spins of Glory";
lack = (_root.box.totalPoints - need) * -10;
f = 26;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv6Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "07";
need = 25;
about = "The Boxes";
lack = (_root.box.totalPoints - need) * -10;
f = 24;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv5Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "08";
need = 29;
about = "Alone In the Dark";
lack = (_root.box.totalPoints - need) * -10;
f = 30;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv8Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "B2";
about = "The Second Boss";
f = 32;
}
on (release) {
if (_root.box.mediumWon == 1) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.mediumWon == 1) {
_root.level.text = "BOSS 02";
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
_root.level.text = "LOCKED";
_root.sobre.text = "Beat All Medium Levels To Unlock";
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
}
}
on (rollOut) {
if (_root.box.mediumWon == 1) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.mediumWon == 0) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.boss2Score.data.counter + 1);
}
Instance of Symbol 189 MovieClip in Frame 5
onClipEvent (load) {
fase = "G2";
about = "Small Walls";
f = 35;
}
on (release) {
if (_root.box.mediumGold == 1) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.mediumGold == 1) {
_root.level.text = "GOLDEN LEVEL 02";
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
_root.level.text = "LOCKED";
_root.sobre.text = "All Medium Levels With Gold To Unlock";
}
}
on (rollOut) {
if (_root.box.mediumGold == 1) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.mediumGold == 0) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.secret2Score.data.counter + 1);
}
Instance of Symbol 189 MovieClip in Frame 5
onClipEvent (load) {
fase = "G3";
about = "He Is Back";
f = 43;
}
on (release) {
if (_root.box.hardGold == 1) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.hardGold == 1) {
_root.level.text = "GOLDEN LEVEL 03";
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
_root.level.text = "LOCKED";
_root.sobre.text = "All Hard Levels With Gold To Unlock";
}
}
on (rollOut) {
if (_root.box.hardGold == 1) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.hardGold == 0) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.secret3Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "B3";
about = "The Final Boss";
f = 40;
}
on (release) {
if (_root.box.hardWon == 1) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.hardWon == 1) {
_root.level.text = "BOSS 02";
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
_root.level.text = "LOCKED";
_root.sobre.text = "Beat All Hard Levels To Unlock";
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
}
}
on (rollOut) {
if (_root.box.hardWon == 1) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.hardWon == 0) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.boss3Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "09";
need = 34;
about = "The Two Annoying Spins";
lack = (_root.box.totalPoints - need) * -10;
f = 38;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv9Score.data.counter + 1);
}
Instance of Symbol 178 MovieClip in Frame 5
onClipEvent (load) {
fase = "02";
need = 2;
about = "The Problem";
lack = (_root.box.totalPoints - need) * -10;
f = 12;
}
on (release) {
if (_root.box.totalPoints >= need) {
_root.f.f = f;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
}
on (rollOver) {
if (_root.box.totalPoints >= need) {
_root.level.text = "LEVEL " + fase;
_root.sobre.text = about;
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
} else {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = "LOCKED";
_root.sobre.text = lack + " Points To Unlock";
}
}
on (rollOut) {
if (_root.box.totalPoints >= need) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (_root.box.totalPoints < need) {
gotoAndStop (3);
}
this.lv.text = fase;
this.rank.gotoAndStop(_root.box.lv2Score.data.counter + 1);
}
Instance of Symbol 213 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.box.boss1Score.data.counter == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 217 MovieClip in Frame 5
on (release) {
_root.iscore = _root.box.totalPoints * 10;
_root.addScore();
_root.iscore = _root.box.totalPoints * 10;
_root.submitInternalScore();
_root.submitScore(_root.box.totalPoints * 10);
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
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 232 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.box.boss2Score.data.counter == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Frame 6
_root.box.easterEgg.data.counter = 1;
Instance of Symbol 236 MovieClip in Frame 6
on (release) {
_root.f.f = 4;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
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
function sitelock(url_to_lock) {
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
if (real_domain[0] != url_to_lock) {
_root._alpha = 0;
}
}
sitelock("www.flashgamelicense.com");
Frame 8
_root.box.apreciator.data.counter = 1;
lucas.tabEnabled = false;
Instance of Symbol 236 MovieClip in Frame 8
on (release) {
_root.f.f = 4;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
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 263 MovieClip "lucas" in Frame 8
on (release) {
_root.f.f = 6;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
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 113 MovieClip in Frame 9
onClipEvent (enterFrame) {
_root.total.text = _root.box.tawards.data.counter + "/30";
}
Instance of Symbol 430 MovieClip in Frame 9
on (release) {
_root.f.f = 4;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Frame 10
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 10
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 11;
stars = 0;
starst = 12;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv1Stars = stars;
_root.box.lv1Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
_root.box.playy = 1;
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 100) {
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 11
onClipEvent (load) {
starsTotal = 12;
time = 240;
maxTime = 1200;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv1Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv1Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv1Score.data.counter) {
_root.box.lv1Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv1Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv1Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv1Score.data.counter) {
_root.box.lv1Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 11
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 11
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 11
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 12
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 12
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
gravity = 0.012;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 13;
stars = 0;
starst = 15;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv2Stars = stars;
_root.box.lv2Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 100) {
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 13
onClipEvent (load) {
starsTotal = 15;
time = 420;
maxTime = 1500;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv2Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv2Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv2Score.data.counter) {
_root.box.lv2Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv2Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv2Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv2Score.data.counter) {
_root.box.lv2Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 13
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 13
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 13
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 14
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 14
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
gravity = 0.012;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 15;
stars = 0;
starst = 23;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv3Stars = stars;
_root.box.lv3Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["a" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 560 MovieClip "a1" in Frame 14
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
_x = (_x + dx);
_y = (_y + dy);
if (vivo == 1) {
_x = (_x + dx);
_y = (_y + dy);
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
Instance of Symbol 566 MovieClip "s1" in Frame 14
onClipEvent (load) {
time = 72;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 1;
if ((time <= 0) or (_root.a1.vivo == -1)) {
gotoAndPlay (2);
_root.a1.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a1.dx = xdis;
_root.a1.dy = ydis;
_root.a1._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a1._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a1.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
if (reset == 1) {
reset = 0;
_rotation = 0;
time = 72;
}
}
Instance of Symbol 466 MovieClip "start" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 15
onClipEvent (load) {
starsTotal = 23;
time = 480;
maxTime = 1440;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv3Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv3Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv3Score.data.counter) {
_root.box.lv3Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv3Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv3Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv3Score.data.counter) {
_root.box.lv3Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 15
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 15
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 15
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 16
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 560 MovieClip "a1" in Frame 16
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
_x = (_x + dx);
_y = (_y + dy);
if (vivo == 1) {
_x = (_x + dx);
_y = (_y + dy);
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
Instance of Symbol 590 MovieClip "bt1" in Frame 16
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
}
if (_root.hero.hitTest(this) && (ac == 0)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (2);
_root.wall.sp1.gotoAndPlay(2);
}
}
Instance of Symbol 566 MovieClip "s1" in Frame 16
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a1.vivo == -1)) {
gotoAndPlay (2);
_root.a1.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a1.dx = xdis;
_root.a1.dy = ydis;
_root.a1._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a1._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a1.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
if (reset == 1) {
reset = 0;
_rotation = 0;
time = 72;
}
}
Instance of Symbol 590 MovieClip "bt2" in Frame 16
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
}
if (_root.hero.hitTest(this) && (ac == 0)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (2);
_root.wall.sp2.gotoAndPlay(2);
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 16
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 17;
stars = 0;
starst = 20;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv4Stars = stars;
_root.box.lv4Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 17
onClipEvent (load) {
starsTotal = 20;
time = 900;
maxTime = 1620;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv4Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv4Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv4Score.data.counter) {
_root.box.lv4Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv4Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv4Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv4Score.data.counter) {
_root.box.lv4Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 17
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 17
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 17
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 18
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 618 MovieClip "s1" in Frame 18
onClipEvent (load) {
time = 24;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
vida = 6;
potencia = 1.5;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
vida = 6;
time = 24;
_rotation = 0;
reset = 0;
}
vida = (6 - _root.cerebro.ordem) + 1;
potencia = 2.2 - (vida / 5);
if (vida == 0) {
gotoAndPlay (16);
vida = -1;
_root.cerebro.ordem = 8;
}
if (vida > 0) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 2;
if (((time <= 0) && (_root.a2.vivo == -1)) && (_currentframe < 11)) {
gotoAndPlay (2);
_root.a2.vivo = 1;
inix = _x + (36 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (36 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a2.dx = xdis;
_root.a2.dy = ydis;
_root.a2._x = inix + (Math.cos((anglecorpo * Math.PI) / 180) * potencia);
_root.a2._y = iniy + (Math.sin((anglecorpo * Math.PI) / 180) * potencia);
_root.a2.gotoAndStop(1);
time = 24;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
}
Instance of Symbol 560 MovieClip "a1" in Frame 18
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
_x = (_x + (dx * 2));
_y = (_y + (dy * 2));
if (vivo == 1) {
_x = (_x + dx);
_y = (_y + dy);
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(this)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a2" in Frame 18
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
_x = (_x + (dx * 2));
_y = (_y + (dy * 2));
if (vivo == 1) {
_x = (_x + dx);
_y = (_y + dy);
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(this)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 624 MovieClip "cerebro" in Frame 18
onClipEvent (load) {
ordem = 1;
ac = 2;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
_root["bt" + ordem].ac = 2;
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (1);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
_root.box.boss1Stars = _root.hero.stars;
_root.box.boss1Time = _root.hero.time1 + (_root.hero.time2 * 60);
if (_root.box.boss1Score.data.counter == 0) {
_root.f.f = 19;
} else {
_root.f.f = 20;
}
_root.s1.die = 1;
gotoAndStop (2);
_root.cerebro.ordem++;
_root.s1.gotoAndPlay(11);
_root.hero.vivo = -6;
}
if (ac == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 631 MovieClip "bt2" in Frame 18
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.wall.sp2.gotoAndPlay(2);
_root.s1.gotoAndPlay(11);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt3" in Frame 18
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.wall.sp3.gotoAndPlay(2);
_root.s1.gotoAndPlay(11);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt1" in Frame 18
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.wall.sp1.gotoAndPlay(2);
_root.s1.gotoAndPlay(11);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt4" in Frame 18
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.wall.sp4.gotoAndPlay(2);
_root.s1.gotoAndPlay(11);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt5" in Frame 18
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.wall.sp5.gotoAndPlay(2);
_root.s1.gotoAndPlay(11);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 18
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 19;
stars = 0;
starst = 25;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.Boss1Stars = stars;
_root.box.Boss1Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root.s1.vida > 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 20
onClipEvent (load) {
starsTotal = 25;
time = 540;
maxTime = 1320;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.boss1Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.boss1Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.boss1Score.data.counter) {
_root.box.boss1Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.boss1Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.boss1Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.boss1Score.data.counter) {
_root.box.boss1Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 20
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 20
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 20
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 21
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 22;
stars = 0;
starst = 36;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
if (_root.box.power1.data.counter == 0) {
_root.f.f = f;
} else {
_root.f.f = f + 1;
}
_root.box.secret1Stars = stars;
_root.box.secret1Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 72) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 21
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 21
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 21
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 23
onClipEvent (load) {
starsTotal = 36;
time = 480;
maxTime = 1680;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.secret1Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.secret1Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.secret1Score.data.counter) {
_root.box.secret1Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.secret1Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.secret1Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.secret1Score.data.counter) {
_root.box.secret1Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 23
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 23
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 23
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 24
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 667 MovieClip "que2" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que3" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que7" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que6" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que5" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que4" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que1" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que8" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que9" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que18" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que17" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que16" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que15" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que14" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que13" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que12" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 667 MovieClip "que11" in Frame 24
onClipEvent (load) {
quebrado = 0;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
gotoAndStop (1);
quebrado = 0;
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 24
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 25;
stars = 0;
starst = 16;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv5Stars = stars;
_root.box.lv5Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
_root["que" + i].gotoAndPlay(2);
_root["que" + i].quebrado = 1;
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 566 MovieClip "s2" in Frame 24
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
power = 3;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 1;
if ((time <= 0) or (_root.a2.vivo == -1)) {
gotoAndPlay (2);
_root.a2.vivo = 1;
inix = _x + (36 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (36 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a2.dx = xdis;
_root.a2.dy = ydis;
_root.a2._x = inix + (Math.cos((anglecorpo * Math.PI) / 180) * power);
_root.a2._y = iniy + (Math.sin((anglecorpo * Math.PI) / 180) * power);
_root.a2.gotoAndStop(1);
time = 48;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
if (reset == 1) {
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 560 MovieClip "a2" in Frame 24
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
_x = (_x + dx);
_y = (_y + dy);
if (vivo == 1) {
_x = (_x + dx);
_y = (_y + dy);
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
Instance of Symbol 466 MovieClip "start" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 25
onClipEvent (load) {
starsTotal = 16;
time = 720;
maxTime = 1440;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv5Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv5Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv5Score.data.counter) {
_root.box.lv5Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv5Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv5Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv5Score.data.counter) {
_root.box.lv5Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 25
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 25
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 25
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 26
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 26
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 27;
stars = 0;
starst = 32;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv6Stars = stars;
_root.box.lv6Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 27
onClipEvent (load) {
starsTotal = 32;
time = 840;
maxTime = 1440;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv6Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv6Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv6Score.data.counter) {
_root.box.lv6Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv6Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv6Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv6Score.data.counter) {
_root.box.lv6Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 27
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 27
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 27
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 28
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 590 MovieClip "bt1" in Frame 28
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
}
if (_root.hero.hitTest(this) && (ac == 0)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
gotoAndStop (2);
_root.wall.sp6.gotoAndPlay(2);
ac = 1;
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 28
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 29;
stars = 0;
starst = 32;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv7Stars = stars;
_root.box.lv7Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 29
onClipEvent (load) {
starsTotal = 32;
time = 540;
maxTime = 1560;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv7Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv7Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv7Score.data.counter) {
_root.box.lv7Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv7Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv7Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv7Score.data.counter) {
_root.box.lv7Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 29
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 29
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 29
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 30
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 30
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 31;
stars = 0;
starst = 28;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 9.6;
face++;
} else {
size = 12.8;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv8Stars = stars;
_root.box.lv8Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 466 MovieClip "start" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 31
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 31
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 31
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 31
onClipEvent (load) {
starsTotal = 28;
time = 780;
maxTime = 1560;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv8Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv8Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv8Score.data.counter) {
_root.box.lv8Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv8Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv8Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv8Score.data.counter) {
_root.box.lv8Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 31
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 31
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 31
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 32
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 631 MovieClip "bt1" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt2" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt4" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt3" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt6" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt5" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt7" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 631 MovieClip "bt8" in Frame 32
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ac == 2) {
gotoAndStop (2);
}
if (_root.hero.hitTest(this) && (ac == 2)) {
if (_root.hero.vivo == 1) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (3);
_root.cerebro.ordem++;
_root.heart.gotoAndPlay(2);
}
}
if (ac == 1) {
gotoAndStop (3);
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 32
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 19;
stars = 0;
starst = 25;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.Boss1Stars = stars;
_root.box.Boss1Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root.s1.vida > 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 624 MovieClip "cerebro" in Frame 32
onClipEvent (load) {
ordem = 1;
reset = 0;
}
onClipEvent (enterFrame) {
_root["bt" + ordem].ac = 2;
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_root.cerebro.ordem = 1;
}
if (ordem == 9) {
i = 1;
while (i < 8) {
_root["s" + i].gotoAndPlay(9);
_root["a" + i]._x = 1000;
i++;
}
ordem = 10;
_root.heart.gotoAndPlay(11);
_root.hero.vivo = -6;
}
}
Instance of Symbol 739 MovieClip "s1" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 2;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a1.vivo == -1)) {
gotoAndPlay (2);
_root.a1.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a1.dx = xdis;
_root.a1.dy = ydis;
_root.a1._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a1._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a1.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 739 MovieClip "s3" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 4;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a3.vivo == -1)) {
gotoAndPlay (2);
_root.a3.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a3.dx = xdis;
_root.a3.dy = ydis;
_root.a3._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a3._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a3.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 739 MovieClip "s7" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 8;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a7.vivo == -1)) {
gotoAndPlay (2);
_root.a7.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a7.dx = xdis;
_root.a7.dy = ydis;
_root.a7._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a7._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a7.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 739 MovieClip "s4" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 5;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a4.vivo == -1)) {
gotoAndPlay (2);
_root.a4.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a4.dx = xdis;
_root.a4.dy = ydis;
_root.a4._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a4._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a4.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 739 MovieClip "s6" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 7;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a6.vivo == -1)) {
gotoAndPlay (2);
_root.a6.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a6.dx = xdis;
_root.a6.dy = ydis;
_root.a6._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a6._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a6.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 739 MovieClip "s2" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 3;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a2.vivo == -1)) {
gotoAndPlay (2);
_root.a2.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a2.dx = xdis;
_root.a2.dy = ydis;
_root.a2._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a2._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a2.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 739 MovieClip "s5" in Frame 32
onClipEvent (load) {
time = 48;
reset = 0;
atira = new Sound();
atira.attachSound("atira");
min = 6;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if ((_root.cerebro.ordem >= min) && (_root.cerebro.ordem < 9)) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / (distancia / 5);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
anglecorpo = (angle * 180) / Math.PI;
_rotation = anglecorpo;
time = time - 0.7;
if ((time <= 0) or (_root.a5.vivo == -1)) {
gotoAndPlay (2);
_root.a5.vivo = 1;
inix = _x + (16 * Math.cos((anglecorpo * Math.PI) / 180));
iniy = _y + (16 * Math.sin((anglecorpo * Math.PI) / 180));
_root.a5.dx = xdis;
_root.a5.dy = ydis;
_root.a5._x = inix + Math.cos((anglecorpo * Math.PI) / 180);
_root.a5._y = iniy + Math.sin((anglecorpo * Math.PI) / 180);
_root.a5.gotoAndStop(1);
time = 72;
atira.setVolume(_root.box.volume);
atira.start(0, 1);
}
}
}
if (reset == 1) {
gotoAndStop (8);
reset = 0;
_rotation = 0;
time = 48;
}
}
Instance of Symbol 560 MovieClip "a1" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a2" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a3" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a4" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a5" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a6" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 560 MovieClip "a7" in Frame 32
onClipEvent (load) {
dx = 0;
dy = 0;
vivo = -1;
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
reset = 0;
dx = 0;
dy = 0;
vivo = -1;
_x = 1000;
gotoAndStop (1);
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (vivo == 1) {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.5));
i = 0;
while (i < 100) {
if (_root["que" + i].hitTest(_x, _y, true)) {
if (_root["que" + i].quebrado == 0) {
_root["que" + i].quebrado = 1;
_root["que" + i].gotoAndPlay(2);
gotoAndPlay (2);
vivo = 0;
dx = 0;
dy = 0;
}
}
i++;
}
if (_root.wall.hitTest(_x, _y, true)) {
dx = 0;
dy = 0;
gotoAndPlay (2);
vivo = 0;
}
if (_root.hero.hitTest(_x, _y, true)) {
if (_root.hero.vivo == 1) {
_root.hero.knock.setVolume(_root.box.volume);
_root.hero.knock.start(0, 1);
dx = 0;
dy = 0;
_root.box.hits++;
_root.hero.vivo = 0;
_root.hero.gotoAndPlay(15);
gotoAndPlay (2);
vivo = 0;
}
}
}
}
}
Instance of Symbol 466 MovieClip "start" in Frame 32
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 466 MovieClip "start" in Frame 32
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 32
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 34
onClipEvent (load) {
starsTotal = 25;
time = 780;
maxTime = 1500;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.boss2Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.boss2Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.boss2Score.data.counter) {
_root.box.boss2Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.boss2Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.boss2Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.boss2Score.data.counter) {
_root.box.boss2Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 34
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 34
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 34
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 35
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 35
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 36;
stars = 0;
starst = 23;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 9.6;
face++;
} else {
size = 12.8;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
if (_root.box.power2.data.counter == 0) {
_root.f.f = f;
} else {
_root.f.f = f + 1;
}
_root.box.secret2Stars = stars;
_root.box.secret2Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 35
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 35
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 37
onClipEvent (load) {
starsTotal = 23;
time = 780;
maxTime = 1560;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.secret2Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.secret2Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.secret2Score.data.counter) {
_root.box.secret2Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.secret2Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.secret2Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.secret2Score.data.counter) {
_root.box.secret2Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 37
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 37
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 37
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 38
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 590 MovieClip "bt1" in Frame 38
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
}
if (_root.hero.hitTest(this) && (ac == 0)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
ac = 1;
gotoAndStop (2);
_root.wall.sp2.gotoAndPlay(2);
_root.wall.sp4.gotoAndPlay(2);
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 38
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 39;
stars = 0;
starst = 15;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 9.6;
face++;
} else {
size = 12.8;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv9Stars = stars;
_root.box.lv9Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 39
onClipEvent (load) {
starsTotal = 15;
time = 540;
maxTime = 1380;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.lv9Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.lv9Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.lv9Score.data.counter) {
_root.box.lv9Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.lv9Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.lv9Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.lv9Score.data.counter) {
_root.box.lv9Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 39
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 39
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 39
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 40
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 786 MovieClip "wall" in Frame 40
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.lap);
}
Instance of Symbol 452 MovieClip "fim" in Frame 40
onClipEvent (enterFrame) {
if (_root.hero.lap == 3) {
_x = 158;
_y = 278;
} else {
_x = -45;
_y = -53;
}
}
Instance of Symbol 590 MovieClip "bt1" in Frame 40
onClipEvent (load) {
ac = 0;
reset = 0;
botao = new Sound();
botao.attachSound("botao");
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (reset == 1) {
ac = 0;
gotoAndStop (1);
reset = 0;
_x = inix;
_y = iniy;
}
if (_root.hero.hitTest(this) && (ac == 0)) {
botao.setVolume(_root.box.volume);
botao.start(0, 1);
gotoAndStop (2);
_root.hero.lap++;
_x = 219;
_y = 325;
_root.flash._alpha = 100;
if (_root.hero.lap == 3) {
_x = 1339;
_y = 432;
}
}
}
Instance of Symbol 454 MovieClip "back" in Frame 40
onClipEvent (load) {
inix = _x;
iny = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.lap > 1) {
_alpha = 0;
} else {
_alpha = 100;
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 40
onClipEvent (load) {
lap = 1;
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 41;
stars = 0;
starst = 32;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 12;
face++;
} else {
size = 16;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
saiu = 0;
saindo = 0;
}
onClipEvent (enterFrame) {
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
if (_root.box.boss3Score.data.counter == 0) {
_root.f.f = f;
} else {
_root.f.f = f + 1;
}
_root.box.boss3Stars = stars;
_root.box.boss3Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
lap = 1;
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 792 MovieClip "s1" in Frame 40
onClipEvent (load) {
function move() {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
angle = Math.atan(disty / distx) / (Math.PI/180);
if (distx < 0) {
angle = angle + 180;
}
if ((distx >= 0) && (disty < 0)) {
angle = angle + 360;
}
_rotation = angle;
speed = distancia / (distancia / v);
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
}
v = 5.5;
reset = 0;
inix = _x;
iniy = _y;
stope = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.saindo == 1) {
stope = 1;
}
if (((_root.hero.paused == 0) && (_root.hero.vivo == 1)) && (stope == 0)) {
move();
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
stope = 0;
_x = inix;
_y = iniy;
_rotation = -90;
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 796 MovieClip "flash" in Frame 40
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 14.2857142857143);
}
}
Instance of Symbol 466 MovieClip "start" in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Frame 41
_root.box.playy = 0;
Instance of Symbol 490 MovieClip "sist" in Frame 42
onClipEvent (load) {
starsTotal = 32;
time = 960;
maxTime = 1800;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.boss3Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.boss3Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.boss3Score.data.counter) {
_root.box.boss3Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.boss3Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.boss3Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.boss3Score.data.counter) {
_root.box.boss3Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 42
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 42
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 42
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Frame 43
_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 + 6) + " FPS";
this.o = this.t;
};
Instance of Symbol 822 MovieClip "s1" in Frame 43
onClipEvent (load) {
function move() {
distx = _root["path" + path]._x - _x;
disty = _root["path" + path]._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
angle = Math.atan(disty / distx) / (Math.PI/180);
if (distx < 0) {
angle = angle + 180;
}
if ((distx >= 0) && (disty < 0)) {
angle = angle + 360;
}
_rotation = angle;
if (distancia > 1) {
speed = distancia / ((distancia / v) + (path / 7));
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = (_x + xdis);
_y = (_y + ydis);
}
}
v = 7.2;
path = 2;
reset = 0;
inix = _x;
iniy = _y;
}
onClipEvent (enterFrame) {
if (_root.hero.saindo == 1) {
path = 0;
}
if ((_root.hero.paused == 0) && (_root.hero.vivo == 1)) {
move();
play();
if (distancia < 6) {
path++;
move();
}
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
_x = inix;
_y = iniy;
path = 1;
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 16 MovieClip [hero] "hero" in Frame 43
onClipEvent (load) {
stopAllSounds();
vivo = 2;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 44;
stars = 0;
starst = 29;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 14.4;
face++;
} else {
size = 19.2;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
saiu = 0;
saindo = 0;
}
onClipEvent (enterFrame) {
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
if (_root.box.power3.data.counter == 0) {
_root.f.f = f;
} else {
_root.f.f = f + 1;
}
_root.box.secret3Stars = stars;
_root.box.secret3Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
_root["que" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
if (((_root["que" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["que" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["que" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["que" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
if (_root["que" + i].quebrado == 0) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
_root.darkness._x = _x;
_root.darkness._y = _y;
this.s.gotoAndStop(face);
}
Instance of Symbol 466 MovieClip "start" in Frame 43
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
Instance of Symbol 480 MovieClip in Frame 43
onClipEvent (load) {
_x = 0;
_y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.hero.paused == 0) {
_alpha = 0;
if (_root.box.mute == 0) {
_root.box.volume = 100;
}
}
if ((_root.hero.paused == 1) && (_root.hero.vivo == 1)) {
_alpha = 100;
if (_root.box.mute == 0) {
_root.box.volume = 0;
}
}
}
Instance of Symbol 490 MovieClip "sist" in Frame 45
onClipEvent (load) {
starsTotal = 29;
time = 540;
maxTime = 1320;
feito = 0;
tempo = 48;
pTime = 0;
pStars = 0;
pTotal = 0;
_root.rank.performance.text = "0";
_root.rank._alpha = 0;
award = new Sound();
award.attachSound("award");
st = new Sound();
st.attachSound("st");
_root.pTime.text = "0%";
_root.pStars.text = "0%";
skip = 0;
}
onClipEvent (enterFrame) {
if (skip == 1) {
_root.flash._alpha = 100;
feito = 5;
pTime = (((maxTime + time) - _root.box.secret3Time) / maxTime) * 100;
if (pTime < 0) {
pTime = 0;
}
if (pTime > 100) {
pTime = 100;
}
_root.pTime.text = Math.floor(pTime) + "%";
pStars = (_root.box.secret3Stars / starsTotal) * 100;
_root.pStars.text = Math.floor(pStars) + "%";
_root.rank._alpha = 100;
pTotal = Math.floor(((pTime * 1.5) + pStars) / 2.5);
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
_root.rank.performance.text = Math.floor(pTotal);
_root.go.gotoAndPlay(2);
award.setVolume(_root.box.volume);
award.start(0, 1);
if (ranked > _root.box.secret3Score.data.counter) {
_root.box.secret3Score.data.counter = ranked;
}
_root.skip._x = 1000;
skip = 2;
}
if (feito == 0) {
total = (((maxTime + time) - _root.box.secret3Time) / maxTime) * 100;
if (total < 0) {
total = 0;
}
if (total > 100) {
total = 100;
}
up = total / 48;
if (tempo > 0) {
pTime = pTime + up;
tempo--;
_root.pTime.text = Math.floor(pTime) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 48;
feito++;
pTime = total;
_root.pTime.text = Math.floor(pTime) + "%";
}
}
if (feito == 1) {
total = (_root.box.secret3Stars / starsTotal) * 100;
up = total / 48;
if (tempo > 0) {
pStars = pStars + up;
tempo--;
_root.pStars.text = Math.floor(pStars) + "%";
}
if (tempo == 0) {
st.setVolume(_root.box.volume);
st.start(0, 1);
tempo = 60;
feito++;
pStars = total;
_root.pStars.text = Math.floor(pStars) + "%";
}
}
if (feito == 2) {
_root.rank.acende = 1;
tempo--;
if (tempo <= 0) {
feito++;
rank = Math.floor(((pTime * 1.5) + pStars) / 2.5);
tempo = 80;
}
}
if (feito == 3) {
total = rank;
up = total / 80;
if (tempo > 0) {
pTotal = pTotal + up;
tempo--;
if (pTotal < 50) {
_root.rank.gotoAndStop(1);
ranked = 1;
}
if ((pTotal >= 50) && (pTotal < 80)) {
_root.rank.gotoAndStop(2);
ranked = 2;
}
if ((pTotal >= 80) && (pTotal < 100)) {
_root.rank.gotoAndStop(3);
ranked = 3;
}
if (pTotal >= 100) {
ranked = 4;
_root.rank.gotoAndStop(4);
}
}
if (tempo <= 0) {
if (ranked > _root.box.secret3Score.data.counter) {
_root.box.secret3Score.data.counter = ranked;
}
_root.flash._alpha = 100;
award.setVolume(_root.box.volume);
award.start(0, 1);
feito++;
pTotal = total;
_root.go.gotoAndPlay(2);
_root.skip._x = 1000;
}
_root.rank.performance.text = Math.floor(pTotal);
}
}
Instance of Symbol 509 MovieClip "rank" in Frame 45
onClipEvent (load) {
_alpha = 0;
acende = 0;
}
onClipEvent (enterFrame) {
if (acende == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 1.66666666666667);
}
}
}
Instance of Symbol 524 MovieClip "skip" in Frame 45
onClipEvent (load) {
stop();
}
on (release) {
_root.sist.skip = 1;
_x = 1000;
}
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 526 MovieClip "flash" in Frame 45
onClipEvent (load) {
_alpha = 0;
_x = 0;
_y = 0;
_height = 400;
_width = 550;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 8.33333333333333);
}
}
Symbol 5 MovieClip [estrela] Frame 1
#initclip 12
Object.registerClass("estrela", estrela);
#endinitclip
Symbol 12 MovieClip Frame 1
stop();
Symbol 16 MovieClip [hero] Frame 1
stop();
this.s.gotoAndStop(face);
Symbol 16 MovieClip [hero] Frame 14
_root.s1.reset = 1;
Symbol 16 MovieClip [hero] Frame 15
xspeed = 0;
yspeed = 0;
gotoAndStop (1);
_x = _root.back._x;
_y = _root.back._y;
vivo = 2;
stop();
Symbol 16 MovieClip [hero] Frame 25
gotoAndStop (1);
Symbol 21 MovieClip [mcDragon] Frame 1
Symbol 21 MovieClip [mcDragon] Frame 80
_root.fireFire();
Symbol 21 MovieClip [mcDragon] Frame 119
stop();
Symbol 834 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 835 MovieClip [__Packages.Particle] Frame 0
class Particle
{
var _stageWidth, _stageHeight, clip, _xVel, _yVel;
function Particle (libParticle, xpos, ypos, stageWidth, stageHeight) {
_stageWidth = stageWidth;
_stageHeight = stageHeight;
clip = libParticle;
clip._x = xpos;
clip._y = ypos;
}
function setVel(xvel, yvel) {
_xVel = xvel;
_yVel = yvel;
}
function setSize(size) {
clip._width = size;
clip._height = size;
}
function setAlphaDecr(val) {
_alphaDecr = val;
}
function update() {
clip._x = clip._x + _xVel;
clip._y = clip._y + _yVel;
clip._alpha = clip._alpha - _alphaDecr;
}
function destroy() {
removeMovieClip(clip);
}
var _alphaDecr = 0;
}
Symbol 836 MovieClip [__Packages.estrela] Frame 0
class estrela extends MovieClip
{
var inix, _x, iniy, _y, _alpha, play, stop, distx, disty, distancia, speed, angle, xdis, ydis;
function estrela () {
super();
}
function onLoad() {
inix = _x;
iniy = _y;
}
function onEnterFrame() {
if (reset == 1) {
somi = 0;
_alpha = 100;
reset = 0;
_x = inix;
_y = iniy;
}
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (somi == 1) {
if (_alpha > 0) {
distx = _root.hero._x - _x;
disty = _root.hero._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 4;
angle = Math.atan2(disty, distx);
xdis = speed * Math.cos(angle);
ydis = speed * Math.sin(angle);
_x = _x + xdis;
_y = _y + ydis;
_alpha = _alpha - 20;
}
}
}
var somi = 0;
var reset = 0;
}
Symbol 837 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 838 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 839 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 840 MovieClip [__Packages.Delay] Frame 0
class Delay
{
var m_fn, m_param, m_context, m_delay, m_started, m_timerId;
function Delay (context, fn, delay) {
m_fn = fn;
m_param = new Array();
var _local3 = 3;
while (_local3 < arguments.length) {
m_param.push(arguments[_local3]);
_local3++;
}
m_context = context;
m_delay = delay;
m_started = getTimer();
m_timerId = setInterval(mx.utils.Delegate.create(this, onEvent), delay);
}
function onEvent() {
if (getTimer() >= (m_delay + m_started)) {
clearInterval(m_timerId);
m_fn.apply(m_context, m_param);
m_fn = undefined;
m_param = undefined;
}
}
static function oneShot(context, fn, delay) {
var _local3 = new Delay(context, fn, delay);
_local3.m_param = new Array();
var _local2 = 3;
while (_local2 < arguments.length) {
_local3.m_param.push(arguments[_local2]);
_local2++;
}
}
}
Symbol 841 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 842 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 843 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 844 MovieClip [__Packages.AnimDriver] Frame 0
class AnimDriver extends MovieClip
{
var fps, pauseOffset, gotoAndStop, loop, startTime, onEnterFrame, _totalframes;
function AnimDriver () {
super();
}
function initAnimDriver(p_fps) {
fps = p_fps;
pauseOffset = 0;
}
function playAnim(p_frame, p_loop) {
gotoAndStop(p_frame);
loop = p_loop;
startTime = getTimer();
onEnterFrame = mx.utils.Delegate.create(this, updateAnim);
}
function disableAnim() {
onEnterFrame = undefined;
}
function jumpTo(p_frame) {
stopAnim();
playAnim(p_frame);
}
function pauseAnim() {
pauseOffset = getTimer();
onEnterFrame = undefined;
}
function stopAnim() {
startTime = 1;
onEnterFrame = undefined;
}
function updateAnim() {
var _local3 = getTimer();
var _local4 = (1 / fps) * 1000;
var _local2 = Math.round(((_local3 - startTime) / _local4) + 1);
if (_local2 >= _totalframes) {
startTime = _local3;
_local2 = _totalframes;
if (!loop) {
stopAnim();
}
}
gotoAndStop(_local2);
}
}
Symbol 38 MovieClip Frame 73
stop();
_root.showPlayBtn();
Symbol 50 MovieClip Frame 1
stop();
Symbol 51 MovieClip [KingLoader] Frame 1
#initclip 13
Object.registerClass("KingLoader", AnimDriver);
#endinitclip
Symbol 85 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
on (release) {
_root.openOtherGamesLink();
}
Symbol 123 MovieClip Frame 1
stop();
_root._quality = "HIGH";
Symbol 123 MovieClip Frame 2
stop();
_root._quality = "LOW";
Symbol 126 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip "swaper2" in Symbol 126 MovieClip Frame 1
onClipEvent (load) {
teclaq = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (teclaq == 1) {
teclaq = 0;
this.play();
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
}
} else {
teclaq = 1;
}
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 20
key = new Sound();
key.attachSound("key");
key.setVolume(_root.box.volume);
key.start(0, 1);
Instance of Symbol 139 MovieClip in Symbol 140 MovieClip Frame 1
on (release) {
_root.openOtherGamesLink();
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 15
_root.gotoAndStop(f);
ac = 0;
f2 = f;
play();
Symbol 167 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Instance of Symbol 212 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
set = "Medium Set";
about = "Beat Easy Set To Unlock";
}
on (rollOver) {
if (_root.box.boss1Score.data.counter == 0) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = set;
_root.sobre.text = about;
}
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Instance of Symbol 212 MovieClip in Symbol 223 MovieClip Frame 2
onClipEvent (load) {
set = "Medium Set";
about = "You Have To Complete The Easy Set";
}
on (rollOver) {
if (_root.box.boss1Score.data.counter == 0) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = set;
_root.sobre.text = about;
}
}
Symbol 232 MovieClip Frame 1
stop();
Instance of Symbol 231 MovieClip in Symbol 232 MovieClip Frame 2
onClipEvent (load) {
set = "Hard Set";
about = "Beat Medium Set To Unlock";
}
on (rollOver) {
if (_root.box.boss1Score.data.counter == 0) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
_root.level.text = set;
_root.sobre.text = about;
}
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 274 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award1.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award1.data.counter == 1) {
_root.awardsList.awShow.text = "You Beat All Easy Levels.";
}
}
Symbol 279 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award2.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award2.data.counter == 1) {
_root.awardsList.awShow.text = "You Beat All Medium Levels.";
}
}
Symbol 284 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award3.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award3.data.counter == 1) {
_root.awardsList.awShow.text = "You Beat All Hard Levels.";
}
}
Symbol 289 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award4.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award4.data.counter == 1) {
_root.awardsList.awShow.text = "You defeated All Bosses.";
}
}
Symbol 295 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award5.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award5.data.counter == 1) {
_root.awardsList.awShow.text = "You Beat All Golden Levels.";
}
}
Symbol 300 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award6.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award6.data.counter == 1) {
_root.awardsList.awShow.text = "You got 50 Points.";
}
}
Symbol 305 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award7.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award7.data.counter == 1) {
_root.awardsList.awShow.text = "You Got 150 Points.";
}
}
Symbol 310 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award8.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award8.data.counter == 1) {
_root.awardsList.awShow.text = "You Got 300 Points.";
}
}
Symbol 315 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award9.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award9.data.counter == 1) {
_root.awardsList.awShow.text = "You Have 450 Points.";
}
}
Symbol 320 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award10.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award10.data.counter == 1) {
_root.awardsList.awShow.text = "You Got 600 Points.";
}
}
Symbol 327 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award11.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
}
if (_root.box.award11.data.counter == 1) {
_root.awardsList.awShow.text = "You Have Played For 1 Minute.";
}
}
Symbol 333 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award12.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Have Played For 5 Minutes";
}
}
Symbol 339 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award13.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Have Played For 10 Minutes.";
}
}
Symbol 345 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award14.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Have Played For 20 Minutes.";
}
}
Symbol 351 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award15.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Have Played For 40 Minutes.";
}
}
Symbol 359 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award24.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got 10 Awards.";
}
}
Symbol 364 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award25.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got 20 Awards.";
}
}
Symbol 368 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award22.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got 3 Awards.";
}
}
Symbol 373 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award23.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got 5 Awards.";
}
}
Symbol 377 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award26.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got 28 Awards.";
}
}
Symbol 381 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award27.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Helped Our Sponsor.";
}
}
Symbol 385 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award28.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Know Who Made The Game.";
}
}
Symbol 389 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award29.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Found The Easter Egg.";
}
}
Symbol 393 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award30.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Unlocked Everything In the Game. Congratulations!";
}
}
Symbol 397 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award20.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Beat The Second Boss.";
}
}
Symbol 401 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award17.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You got The Second Power.";
}
}
Symbol 405 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award18.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got The Third Power.";
}
}
Symbol 409 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award16.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Got The First Power.";
}
}
Symbol 413 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award19.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Defeated The First Boss.";
}
}
Symbol 417 Button
on (rollOver) {
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
if (_root.box.award21.data.counter == 0) {
_root.awardsList.awShow.text = "?????";
} else {
_root.awardsList.awShow.text = "You Defeated The Third Boss.";
}
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award1.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award2.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award3.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award4.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award5.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award6.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award7.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award8.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award9.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award10.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award11.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award12.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award13.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award14.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award15.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award16.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award17.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award18.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award19.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award20.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award21.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award22.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award23.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award24.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award25.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award26.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award27.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award28.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award29.data.counter + 1);
}
Instance of Symbol 269 MovieClip in Symbol 418 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.box.award30.data.counter + 1);
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 1
stop();
Instance of Symbol 517 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
stop();
}
on (release) {
f2 = _root.f.f + 1;
_root.f.f = f2;
_root.box.playy = 2;
_root.box.playing = 3;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 518 MovieClip in Symbol 519 MovieClip Frame 20
onClipEvent (load) {
stop();
}
on (release) {
_root.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
gotoAndStop (3);
}
}
Symbol 519 MovieClip Frame 30
stop();
Instance of Symbol 517 MovieClip in Symbol 519 MovieClip Frame 30
onClipEvent (load) {
stop();
}
on (release) {
f2 = _root.f.f - 1;
_root.f.f = f2;
_root.box.playy = 2;
_root.box.playing = 3;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 532 MovieClip "sp1" in Symbol 543 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 537 MovieClip "sp2" in Symbol 543 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 542 MovieClip "sp3" in Symbol 543 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 560 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 16
vivo = -1;
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 7
gotoAndStop (1);
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 10
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 10
stop();
Instance of Symbol 573 MovieClip "sp2" in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 574 MovieClip "sp1" in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
go = 0;
}
}
Instance of Symbol 578 MovieClip "sp3" in Symbol 579 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 590 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 10
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 10
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 10
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 10
stop();
Symbol 603 MovieClip Frame 10
stop();
Instance of Symbol 599 MovieClip "sp5" in Symbol 604 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 600 MovieClip "sp3" in Symbol 604 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 601 MovieClip "sp1" in Symbol 604 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 602 MovieClip "sp2" in Symbol 604 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 603 MovieClip "sp4" in Symbol 604 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 10
gotoAndStop (1);
Symbol 618 MovieClip Frame 15
vida--;
gotoAndStop (1);
ok = 1;
Symbol 618 MovieClip Frame 16
stopAllSounds();
explosao = new Sound();
explosao.attachSound("explosao");
explosao.setVolume(_root.box.volume);
explosao.start(0, 1);
play();
_root._x = -2;
_root._y = 2;
Symbol 618 MovieClip Frame 17
_root._x = 0;
_root._y = 0;
Symbol 618 MovieClip Frame 30
stop();
_root.box.boss1Stars = _root.hero.stars;
_root.box.boss1Time = _root.hero.time1 + (_root.hero.time2 * 60);
if (_root.box.boss1Score.data.counter == 0) {
_root.f.f = 19;
} else {
_root.f.f = 20;
}
Symbol 624 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 15
bossWon = new Sound();
bossWon.attachSound("bossWon");
bossWon.setVolume(_root.box.volume);
bossWon.start(0, 1);
Symbol 642 MovieClip Frame 89
_root.f.f = 20;
stop();
Symbol 645 MovieClip Frame 1
stop();
Instance of Symbol 517 MovieClip in Symbol 645 MovieClip Frame 1
onClipEvent (load) {
stop();
}
on (release) {
f2 = _root.f.f + 1;
_root.f.f = f2;
_root.box.playy = 2;
_root.box.playing = 3;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 518 MovieClip in Symbol 645 MovieClip Frame 20
onClipEvent (load) {
stop();
}
on (release) {
_root.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
gotoAndStop (3);
}
}
Symbol 645 MovieClip Frame 30
stop();
Instance of Symbol 517 MovieClip in Symbol 645 MovieClip Frame 30
onClipEvent (load) {
stop();
}
on (release) {
f2 = _root._currentframe - 2;
_root.f.f = f2;
_root.box.playy = 2;
_root.box.playing = 3;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 574 MovieClip "sp4" in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
ac = 0;
botao = new Sound();
botao.attachSound("botao");
}
onClipEvent (enterFrame) {
if ((_root.hero.stars >= 36) && (ac == 0)) {
gotoAndPlay (2);
ac = 1;
botao.setVolume(_root.box.volume);
botao.start(0, 1);
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
go = 0;
ac = 0;
}
}
Instance of Symbol 649 MovieClip "sp1" in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 649 MovieClip "sp2" in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 649 MovieClip "sp3" in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 658 MovieClip Frame 1
_root.box.power1.data.counter = 1;
Symbol 658 MovieClip Frame 15
bossWon = new Sound();
bossWon.attachSound("bossWon");
bossWon.setVolume(_root.box.volume);
bossWon.start(0, 1);
Symbol 658 MovieClip Frame 89
_root.f.f = 23;
stop();
Symbol 667 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 2
over = new Sound();
over.attachSound("over");
over.setVolume(_root.box.volume);
over.start(0, 1);
Symbol 667 MovieClip Frame 16
stop();
Symbol 678 MovieClip Frame 1
stop();
Instance of Symbol 517 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
stop();
}
on (release) {
f2 = _root.f.f + 1;
_root.f.f = f2;
_root.box.playy = 2;
_root.box.playing = 3;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 518 MovieClip in Symbol 678 MovieClip Frame 20
onClipEvent (load) {
stop();
}
on (release) {
_root.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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.f.f = 5;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.start(0, 1);
gotoAndStop (3);
}
}
Symbol 678 MovieClip Frame 30
stop();
Instance of Symbol 517 MovieClip in Symbol 678 MovieClip Frame 30
onClipEvent (load) {
stop();
}
on (release) {
f2 = _root.f.f - 1;
_root.f.f = f2;
_root.box.playy = 2;
_root.box.playing = 3;
click = new Sound();
click.attachSound("click");
click.setVolume(_root.box.volume);
click.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 680 MovieClip "sp1" in Symbol 685 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 681 MovieClip "sp2" in Symbol 685 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 684 MovieClip "sp3" in Symbol 685 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 684 MovieClip "sp4" in Symbol 685 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 400
_root.bt1.ac = 2;
Instance of Symbol 697 MovieClip "sp5" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 703 MovieClip "sp3" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 703 MovieClip "sp7" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 703 MovieClip "sp2" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 703 MovieClip "sp4" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 706 MovieClip "sp6" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
if (_root.bt1.ac == 1) {
play();
}
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 732 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 10
gotoAndStop (1);
Symbol 732 MovieClip Frame 11
_root._x = -2;
_root._y = 2;
stopAllSounds();
explosao = new Sound();
explosao.attachSound("explosao");
explosao.setVolume(_root.box.volume);
explosao.start(0, 1);
play();
Symbol 732 MovieClip Frame 12
_root._x = 0;
_root._y = 0;
Symbol 732 MovieClip Frame 25
stop();
_root.box.boss2Stars = _root.hero.stars;
_root.box.boss2Time = _root.hero.time1 + (_root.hero.time2 * 60);
if (_root.box.boss2Score.data.counter == 0) {
_root.f.f = 33;
} else {
_root.f.f = 34;
}
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 7
gotoAndStop (1);
Symbol 739 MovieClip Frame 24
stop();
Symbol 746 MovieClip Frame 15
bossWon = new Sound();
bossWon.attachSound("bossWon");
bossWon.setVolume(_root.box.volume);
bossWon.start(0, 1);
Symbol 746 MovieClip Frame 89
_root.f.f = 34;
stop();
Instance of Symbol 751 MovieClip "sp1" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 754 MovieClip "sp2" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 754 MovieClip "sp3" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 757 MovieClip "sp4" in Symbol 758 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 766 MovieClip Frame 1
_root.box.power2.data.counter = 1;
Symbol 766 MovieClip Frame 15
bossWon = new Sound();
bossWon.attachSound("bossWon");
bossWon.setVolume(_root.box.volume);
bossWon.start(0, 1);
Symbol 766 MovieClip Frame 89
_root.f.f = 37;
stop();
_root.power2.data.counter = 1;
Instance of Symbol 771 MovieClip "sp1" in Symbol 774 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 773 MovieClip "sp3" in Symbol 774 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if ((_root.hero.paused == 0) && (_root.hero.vivo != 2)) {
play();
}
if ((_root.hero.paused == 1) or (_root.hero.vivo == 2)) {
stop();
}
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 599 MovieClip "sp2" in Symbol 774 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Instance of Symbol 599 MovieClip "sp4" in Symbol 774 MovieClip Frame 1
onClipEvent (load) {
reset = 0;
}
onClipEvent (enterFrame) {
if (reset == 1) {
gotoAndStop (1);
reset = 0;
}
}
Symbol 786 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 4
gotoAndPlay (1);
Instance of Symbol 16 MovieClip [hero] "hero" in Symbol 808 MovieClip Frame 1
onClipEvent (load) {
stopAllSounds();
vivo = 6;
_root.start._alpha = 100;
yspeed = 0;
xspeed = 0;
_x = _root.back._x;
_y = _root.back._y;
saiu = 0;
saundo = 0;
back = 0;
teclap = 1;
paused = 0;
f = 17;
stars = 0;
starst = 20;
time1 = 0;
time2 = 0;
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
knock = new Sound();
knock.attachSound("knock");
star = new Sound();
star.attachSound("star");
face = 1;
if (_root.box.power1.data.counter == 1) {
campo = 50;
face++;
} else {
campo = 30;
}
if (_root.box.power2.data.counter == 1) {
size = 80;
face++;
} else {
size = 80;
}
if (_root.box.power3.data.counter == 1) {
power = 0.85;
friction = 0.93;
face++;
maxspeed = 18;
} else {
maxspeed = 15;
power = 0.55;
friction = 0.9555;
}
_height = size;
_width = size;
tamaw = _width / 2;
}
onClipEvent (enterFrame) {
this.s.gotoAndStop(face);
if ((paused == 1) or (vivo == 2)) {
if (Key.isDown(69)) {
_root.f.f = 5;
}
}
_root.stars.text = (("STARS: " + stars) + "/") + starst;
_root.time.text = "TIME: " + time2;
if ((paused == 1) or (vivo == 0)) {
if (Key.isDown(69)) {
_root.fader.f = 5;
}
}
if ((paused == 1) && (vivo == 2)) {
paused = 0;
}
if (Key.isDown(80) && (teclap == 1)) {
if (paused == 0) {
paused = 1;
} else {
paused = 0;
}
}
if (Key.isDown(80)) {
teclap = 0;
} else {
teclap = 1;
}
if (paused == 0) {
if (back == 1) {
reset = new Sound();
reset.attachSound("reset");
reset.setVolume(_root.box.volume);
reset.start(0, 1);
_x = _root.back._x;
_y = _root.back._y;
back = 0;
gotoAndStop (1);
vivo == 1;
}
if (vivo == 0) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
if (saindo == 1) {
distx = _root.fim._x - _x;
disty = _root.fim._y - _y;
distancia = Math.sqrt((distx * distx) + (disty * disty));
speed = distancia / 10;
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) {
_root.f.f = f;
_root.box.lv4Stars = stars;
_root.box.lv4Time = time1 + (time2 * 60);
}
}
if (vivo == 2) {
stars = 0;
time1 = 0;
time2 = 0;
i = 0;
while (i < 100) {
_root["orb" + i].reset = 1;
_root.wall["sp" + i].reset = 1;
_root["s" + i].reset = 1;
_root["bt" + i].reset = 1;
_root["a" + i].reset = 1;
i++;
}
paused = 0;
_root.start._alpha = 100;
if (((((((Key.isDown(37) or Key.isDown(65)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(38)) or Key.isDown(87)) or Key.isDown(40)) or Key.isDown(83)) {
vivo = 1;
_root.box.playy = 1;
_root.start._alpha = 0;
}
}
if (vivo == 1) {
time1 = time1 + 2.5;
if (time1 == 60) {
time2++;
time1 = 0;
}
if (Key.isDown(37) or Key.isDown(65)) {
xspeed = xspeed - power;
}
if (Key.isDown(39) or Key.isDown(68)) {
xspeed = xspeed + power;
}
if (Key.isDown(38) or Key.isDown(87)) {
yspeed = yspeed - power;
}
if (Key.isDown(40) or Key.isDown(83)) {
yspeed = yspeed + power;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (yspeed > maxspeed) {
yspeed = maxspeed;
}
if (yspeed < (-maxspeed)) {
yspeed = -maxspeed;
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((_root.wall.hitTest(_x + tamaw, _y + tamaw, true) or _root.wall.hitTest(_x + tamaw, _y - tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y + tamaw, true)) or _root.wall.hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
}
i = 0;
while (i < 50) {
if (((_root["s" + i].hitTest(_x + tamaw, _y + tamaw, true) or _root["s" + i].hitTest(_x - tamaw, _y + tamaw, true)) or _root["s" + i].hitTest(_x + tamaw, _y - tamaw, true)) or _root["s" + i].hitTest(_x - tamaw, _y - tamaw, true)) {
knock.setVolume(_root.box.volume);
knock.start(0, 1);
vivo = 0;
gotoAndPlay (2);
break;
}
distx2 = _root["orb" + i]._x - _x;
disty2 = _root["orb" + i]._y - _y;
distancia2 = Math.sqrt((distx2 * distx2) + (disty2 * disty2));
if (distancia2 <= campo) {
if (_root["orb" + i].somi == 0) {
star.setVolume(_root.box.volume);
star.start(0, 1);
stars++;
if (vivo == 1) {
gotoAndPlay (16);
this.s.gotoAndStop(face);
}
_root["orb" + i].somi = 1;
i = 0;
while (i <= 11) {
_root["t" + i].a.gotoAndPlay(2);
i++;
}
}
}
i++;
}
if (_root.fim.hitTest(this)) {
saindo = 1;
vivo = 3;
}
}
}
this.s.gotoAndStop(face);
}
Instance of Symbol 803 MovieClip in Symbol 814 MovieClip Frame 90
on (release) {
_root.openOtherGamesLink();
}
Symbol 814 MovieClip Frame 286
_root._x = -2;
_root._y = 2;
stopAllSounds();
explosao = new Sound();
explosao.attachSound("explosao");
explosao.setVolume(_root.box.volume);
explosao.start(0, 1);
Symbol 814 MovieClip Frame 287
_root._x = 0;
_root._y = 0;
Symbol 814 MovieClip Frame 365
stop();
_root.f.f = 42;
Symbol 822 MovieClip Frame 4
gotoAndPlay (1);
Symbol 830 MovieClip Frame 1
_root.box.power3.data.counter = 1;
Symbol 830 MovieClip Frame 15
bossWon = new Sound();
bossWon.attachSound("bossWon");
bossWon.setVolume(_root.box.volume);
bossWon.start(0, 1);
Symbol 830 MovieClip Frame 89
_root.f.f = 45;
stop();
_root.power3.data.counter = 1;