Frame 1
function initLoader() {
this.onEnterFrame = function () {
LB = getBytesLoaded();
TB = getBytesTotal();
PC = (LB / TB) * 100;
xmlLoad.bar.slider._width = PC;
xmlLoad.bar.slider._alpha = PC + 50;
trace(_root.adServingEnds);
if (getBytesLoaded() == getBytesTotal()) {
kill();
if ((System.capabilities.playerType == "StandAlone") || (System.capabilities.playerType == "External")) {
this.onEnterFrame = undefined;
this.gotoAndStop("offline");
} else if ((currentDomain.lastIndexOf(domainLockTo) + domainLockTo.length) != currentDomain.length) {
trace("sitelock");
this.gotoAndStop("sitelock");
this.onEnterFrame = undefined;
} else {
trace("nolock");
this.gotoAndStop("preroller");
this.onEnterFrame = undefined;
}
}
};
}
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() {
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 - 123) / 2;
_local1 = _local1 + points;
iscore = (_local1 * 2) + 123;
checkStr = m.hash((((iscore + ":") + GAME_NAME) + ":") + SK);
return(_local1);
}
function resetScore() {
iscore = 123;
checkStr = null;
}
function submitInternalScore() {
checkScore();
var _local1 = (iscore - 123) / 2;
submitScore(_local1);
}
function checkScore() {
if (checkStr != null) {
if (checkStr != m.hash((((iscore + ":") + GAME_NAME) + ":") + SK)) {
SSK = "ng41ui54hy35tdsnd6f54rews";
}
}
}
function submitScore(score) {
var _local1 = m.hash((((score + ":") + GAME_NAME) + ":") + SSK);
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 = m.hash((((level + ":") + GAME_NAME) + ":") + SSK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitLevel", level, _local1);
}
} catch(e:Error) {
trace(e);
}
}
function submitAchievement(achievement) {
var _local1 = m.hash((((achievement + ":") + GAME_NAME) + ":") + SAK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitAchievement", achievement, _local1);
}
} 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);
}
stop();
domain_parts = _url;
domain_parts = domain_parts.split("://");
real_domain = domain_parts[1].split("/");
currentDomain = real_domain[0];
var domainLockTo = "armorgames.com";
mcLoadLogoBg._x = (Stage.width / 2) - (mcLoadLogoBg._width / 2);
mcLoadLogoBg._y = (Stage.height / 2) - (mcLoadLogoBg._height / 2);
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_root.adServingEnds = true;
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";
initLoader();
var gameWidth = Stage.width;
var gameHeight = Stage.height;
bannedSign.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
};
if (MOCHI_SIGNATURE != "") {
}
Frame 8
stop();
Frame 15
stop();
gotoAndStop ("preloader");
Frame 23
stop();
Frame 36
function toLevel() {
lastAd = getTimer();
gotoAndStop ("gotoLevel");
}
mochi.as2.MochiAd.showInterLevelAd({id:"13e1e619a33273aa", res:"650x500", no_bg:true, background:13562073, color:3449938, outline:16777215, ad_finished:function () {
toLevel();
}, ad_failed:function () {
toLevel();
}, ad_skipped:function () {
toLevel();
}});
Frame 43
stop();
nowplayng = "";
_root.sounds = true;
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_quality = "HIGH";
Stage.scaleMode = "Scale";
Stage.align = "TL";
Stage.addListener(this);
_root.level = 1;
var mouseListener = new Object();
xmlLoad._x = Stage.width / 2;
xmlLoad._y = Stage.height / 2;
onResize = function () {
xmlLoad._x = Stage.width / 2;
xmlLoad._y = Stage.height / 2;
};
_root.createEmptyMovieClip("backgroundSoundMc", 9003);
var backgroundSound = new Sound(backgroundSoundMc);
backgroundSound.attachSound("loop");
backgroundSound.setVolume(50);
_root.createEmptyMovieClip("menuSoundMc", 9090);
var menuSound = new Sound(menuSoundMc);
menuSound.attachSound("menu");
menuSound.setVolume(50);
_root.createEmptyMovieClip("wallSoundMc", 9001);
var wallSound = new Sound(wallSoundMc);
wallSound.attachSound("wall");
wallSound.setVolume(100);
_root.createEmptyMovieClip("keySoundMc", 9004);
var keySound = new Sound(keySoundMc);
keySound.attachSound("clav1");
_root.createEmptyMovieClip("spotSoundMc", 9002);
var spotSound = new Sound(spotSoundMc);
spotSound.attachSound("pop3.wav");
spotSound.setVolume(35);
_root.createEmptyMovieClip("portinSoundMc", 9006);
var portinSound = new Sound(portinSoundMc);
portinSound.attachSound("port1.mp3");
portinSound.setVolume(100);
_root.createEmptyMovieClip("portoutSoundMc", 9007);
var portoutSound = new Sound(portoutSoundMc);
portoutSound.attachSound("portout1.mp3");
portoutSound.setVolume(100);
gotoAndStop ("menu");
Frame 53
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
lastAd = getTimer();
_root.totalscore = 0;
var savings = SharedObject.getLocal("savings");
if (savings.data.level == undefined) {
savings.data.level = 1;
}
_root.starting_level = 1;
place = "menu";
if (nowplayng != "menu") {
menuSound.start(0, 1000000);
backgroundSound.stop();
nowplayng = "menu";
}
var mouseListener = new Object();
Mouse.addListener(mouseListener);
_root.mr = true;
Frame 59
stop();
Frame 66
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
getURL ("http://rankz.armorbot.com/neon_maze", "_blank");
_root.gotoAndStop("menu");
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
_root.gotoAndStop("lda");
}
stop();
prr.text = _root.totalscore;
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.nma.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.totalscore;
Frame 72
stop();
Frame 77
stop();
Frame 84
delete onEnterFrame;
if (_root.level == "menu") {
gotoAndStop ("menu");
} else if (_root.level > 25) {
savings.data.score = 0;
savings.data.level = 0;
gotoAndStop ("score");
} else {
gotoAndStop("level" + _root.level);
}
Frame 93
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 846.6;
var level_height = 500;
var scoring = 1000;
var time = 30;
var hero_color = "green";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 99
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 995;
var level_height = 723;
var scoring = 1500;
var time = 40;
var hero_color = "orange";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 105
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 2588;
var level_height = 712;
var scoring = 2000;
var time = 90;
var hero_color = "green";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 111
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1716;
var level_height = 1261.8;
var scoring = 3000;
var time = 120;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 117
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1170;
var level_height = 1330;
var scoring = 4000;
var time = 120;
var hero_color = "orange";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 123
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 846.6;
var level_height = 500;
var scoring = 1000;
var time = 30;
var hero_color = "yellow";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 129
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1266;
var level_height = 950;
var scoring = 1500;
var time = 60;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 135
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 2446;
var level_height = 1316.3;
var scoring = 2000;
var time = 120;
var hero_color = "green";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 141
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1726;
var level_height = 1300.8;
var scoring = 4000;
var time = 180;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 147
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1370.8;
var level_height = 1351.1;
var scoring = 1500;
var time = 100;
var hero_color = "orange";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 153
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1111.3;
var level_height = 991.8;
var scoring = 3000;
var time = 120;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 159
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1965;
var level_height = 1870;
var scoring = 5000;
var time = 240;
var hero_color = "orange";
var hero_clr = "0xFD751C";
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 166
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 824.3;
var level_height = 500.5;
var scoring = 1000;
var time = 30;
var hero_color = "yellow";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 173
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1437.5;
var level_height = 1740;
var time = 120;
var scoring = 2500;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 180
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1994.6;
var level_height = 1882.8;
var time = 180;
var scoring = 2000;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 187
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1110.3;
var level_height = 893.5;
var time = 240;
var scoring = 4500;
var hero_color = "green";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 194
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1126.6;
var level_height = 621.1;
var time = 30;
var scoring = 1000;
var hero_color = "yellow";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 201
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1006.6;
var level_height = 689.1;
var time = 75;
var scoring = 1500;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 208
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1268;
var level_height = 1045.6;
var time = 300;
var scoring = 5000;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 215
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 2583.5;
var level_height = 2000.8;
var time = 210;
var scoring = 3500;
var hero_color = "green";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 222
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 2588;
var level_height = 2490.8;
var time = 360;
var scoring = 5500;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 229
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1375.3;
var level_height = 1534;
var time = 300;
var scoring = 6000;
var hero_color = "blue";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 257
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1716.8;
var level_height = 1613.2;
var time = 270;
var scoring = 5000;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 264
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1602.6;
var level_height = 1570.8;
var time = 330;
var scoring = 7000;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 271
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 1388;
var level_height = 1480.8;
var time = 360;
var scoring = 7500;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 278
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
var level_width = 2588;
var level_height = 1716;
var hero_color = "red";
var hero_clr = getClr(hero_color);
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 301
function gameHasStarted() {
_root.timer_started = getTimer();
_root.timestarted = true;
}
function setScore() {
score = Math.round((scoring / 100) * ((timer * 100) / time));
if (score < 0) {
score = 0;
}
levelended = true;
menu_hp.score.scorenow = _root.totalscore;
menu_hp.score.scoreget = _root.totalscore + score;
_root.totalscore = _root.totalscore + score;
if (score > 0) {
_root.achi++;
}
menu_hp.score.alpha = 100;
time = 0;
}
function soundsOn() {
_root.blurry.snd._alpha = 100;
_root.menu_hp.snd._alpha = 100;
_root.sounds = true;
backgroundSound.setVolume(50);
menuSound.setVolume(50);
}
function soundsOff() {
_root.blurry.snd._alpha = 40;
_root.menu_hp.snd._alpha = 40;
_root.sounds = false;
backgroundSound.setVolume(0);
menuSound.setVolume(0);
}
function pauseGame() {
_root.pausestart = getTimer();
_root.pauser = false;
var _local2 = new flash.display.BitmapData(650, 500, true, 13421772);
_local2.draw(_root);
blurry.dr.attachBitmap(_local2, 2, "auto", true);
_root.blurry._visible = true;
}
function resumeGame() {
_root.pausetime = _root.pausetime + (getTimer() - _root.pausestart);
_root.pauser = true;
_root.blurry._visible = false;
}
function getClr(cl) {
if (cl == "red") {
return("0xFF3535");
}
if (cl == "blue") {
return("0x0066FF");
}
if (cl == "yellow") {
return("0xFFFF00");
}
if (cl == "green") {
return("0x99FF00");
}
if (cl == "orange") {
return("0xFD751C");
}
if (cl == "white") {
return("0xFFFFFF");
}
if (cl == "fiol") {
return("0x9900FF");
}
}
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
myColor = new Color(_root.txt);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
function level_started() {
_root.all.ingame.gotoAndPlay("in");
_root.leveler.gotoAndPlay("in");
}
function end_level() {
_root.kongregateStats.submit("level", _root.level);
_root.kongregateStats.submit("score", _root.totalscore);
_root.level++;
_root.savings.data.level = _root.level;
_root.savings.data.score = _root.totalscore;
gotoAndStop ("gotoLevel");
}
stop();
timing = time;
if (nowplayng != "game") {
backgroundSound.start(0, 1000);
menuSound.stop();
nowplayng = "game";
}
timup = true;
levelended = false;
_root.damagetime = 0;
_root.timestarted = false;
menu_hp.bar._width = 0;
menu_hp.score.alpha = 0;
menu_hp.score._alpha = 0;
menu_hp.score.scorenow = 0;
menu_hp.score.scoreget = 0;
_root.pausetime = 0;
_root.pauser = true;
_root.blurry._visible = false;
txt.txt.txt.text = "Level " + _root.level;
txt.play();
var to_hit_walls = new Array();
var to_hit = new Array();
var hero_hp = 100;
var particle_dp = 1;
_root.all._x = (Stage.width / 2) - all.ingame._x;
_root.all._y = (Stage.height / 2) - all.ingame._y;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (!_root.pauser) {
return(false);
}
if (_root.timestarted) {
timer = time - ((((getTimer() - _root.timer_started) - _root.pausetime) + _root.damagetime) / 1000);
} else {
timer = time;
}
if (((timer * 100) / time) > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((((timer * 100) / time) - menu_hp.bar._width) * 0.15);
} else {
if (timup && (!levelended)) {
menu_hp.out.gotoAndPlay("in");
timup = false;
}
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.15);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
}
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
_root.masdestx = Math.round((destx - all._x) * 0.2);
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else {
_root.masdestx = 0;
if (all._x > -100) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
_root.masdesty = Math.round((desty - all._y) * 0.2);
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else {
_root.masdesty = 0;
if (all._y > -100) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
}
updateAfterEvent();
};
fader.gotoAndPlay("fadein");
Frame 308
function change_color(color, clr) {
_root.hero_color = color;
_root.hero_clr = clr;
myColor = new Color(_root.all.hero);
myColor.setRGB(clr);
myColor = new Color(_root.menu_hp);
myColor.setRGB(clr);
i = 0;
while (i < to_hit.length) {
obj = _root.all[to_hit[i]];
if (obj.active && (obj.type != "locked")) {
if (obj.color == _root.hero_color) {
obj.alpha = 40;
} else {
obj.alpha = 100;
}
}
i++;
}
}
stop();
var to_hit_walls = new Array();
var to_hit = new Array();
var level_width = 2000;
var level_height = 2000;
var hero_color = "red";
var hero_clr = "0xFF3535";
var hero_hp = 100;
var particle_dp = 1;
change_color(hero_color, hero_clr);
onEnterFrame = function () {
if (hero_hp > 0) {
menu_hp.bar._width = menu_hp.bar._width + ((hero_hp - menu_hp.bar._width) * 0.3);
} else {
menu_hp.bar._width = menu_hp.bar._width + ((-menu_hp.bar._width) * 0.3);
}
if (all.hero.isDown) {
var _local2 = {x:all.hero.s1._x, y:all.hero.s1._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
_local2 = {x:all.hero.s2._x, y:all.hero.s2._y};
all.hero.localToGlobal(_local2);
particle_dp++;
tx = random(6) - 3;
if (tx == 0) {
tx = 1;
}
ty = random(6) - 3;
if (ty == 0) {
ty = 1;
}
all.attachMovie("hero_particle", "hero_particle" + particle_dp, particle_dp, {_x:_local2.x - all._x, _y:_local2.y - all._y, color:_root.hero_clr, vectorX:tx, vectorY:ty});
destx = (Stage.width / 2) - all.hero._x;
desty = (Stage.height / 2) - all.hero._y;
}
if (((all._x + ((destx - all._x) * 0.2)) < 0) && ((all._x + ((destx - all._x) * 0.2)) > ((-level_width) + Stage.width))) {
all._x = all._x + Math.round((destx - all._x) * 0.2);
} else if (all._x > -300) {
all._x = 0;
} else {
all._x = (-level_width) + Stage.width;
}
if (((all._y + ((desty - all._y) * 0.2)) < 0) && ((all._y + ((desty - all._y) * 0.2)) > ((-level_height) + Stage.height))) {
all._y = all._y + Math.round((desty - all._y) * 0.2);
} else if (all._y > -300) {
all._y = 0;
} else {
all._y = (-level_height) + Stage.height;
}
updateAfterEvent();
};
Frame 318
stop();
Symbol 18 MovieClip [boombastik] Frame 1
myColor = new Color(this);
myColor.setRGB(color);
Symbol 18 MovieClip [boombastik] Frame 15
stop();
this.removeMovieClip();
Symbol 28 MovieClip [hero_particle2] Frame 1
stop();
vx = vectorX;
vy = vectorY;
myColor = new Color(this);
myColor.setRGB(color);
_rotation = rot;
if (this._name != "bob") {
onEnterFrame = function () {
if (_alpha <= 10) {
removeMovieClip(this);
}
_x = (_x + vectorX);
_y = (_y - vectorY);
vectorX = vectorX * 0.9;
vectorY = vectorY * 0.9;
_alpha = ((150 * ((vectorX * vectorX) + (vectorY * vectorY))) / ((vx * vx) + (vy * vy)));
};
}
Symbol 29 MovieClip [hero_particle] Frame 1
stop();
vx = vectorX;
vy = vectorY;
myColor = new Color(this);
myColor.setRGB(color);
if (this._name != "bob") {
onEnterFrame = function () {
if (_xscale <= 10) {
removeMovieClip(this);
}
_x = (_x + vectorX);
_y = (_y - vectorY);
vectorX = vectorX * 0.9;
vectorY = vectorY * 0.9;
_xscale = ((150 * ((vectorX * vectorX) + (vectorY * vectorY))) / ((vx * vx) + (vy * vy)));
_yscale = _xscale;
};
}
Symbol 717 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 58 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 61 MovieClip Frame 1
gotoAndPlay (2);
Symbol 61 MovieClip Frame 218
_root.gotoAndStop("preroller2");
Symbol 64 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 67 Button
on (release) {
_root.openSignLink();
}
Symbol 71 Button
on (release) {
_root.openOfflineProtectionLink();
}
Symbol 83 Button
on (release) {
if (_root.mr) {
_root.mr = false;
_root.finotype = "new";
_root.fader.gotoAndPlay("fadeout");
}
}
Symbol 89 Button
on (release) {
if (_root.mr) {
_root.mr = false;
_root.finotype = "continue";
_root.fader.gotoAndPlay("fadeout");
}
}
Symbol 95 Button
on (release) {
getURL ("http://rankz.armorbot.com/neon_maze", "_blank");
}
Symbol 101 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 107 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 120 Button
on (release) {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
Symbol 122 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 25
stop();
if (_root.finotype == "sponsor") {
_root.level = "sponsor";
getURL ("http://gamesponsorlinkhere.com", "_blank");
_root.gotoAndStop("gotoLevel");
} else if (_root.finotype == "back") {
_root.level = "menu";
_root.gotoAndStop("gotoLevel");
} else if (_root.finotype == "credits") {
_root.level = "credits";
_root.gotoAndStop("gotoLevel");
} else if (_root.finotype == "new") {
_root.level = _root.starting_level;
_root.gotoAndStop("gotoLevel");
} else if (_root.finotype == "continue") {
_root.level = _root.savings.data.level;
_root.totalscore = _root.savings.data.score;
_root.gotoAndStop("gotoLevel");
} else {
_root.end_level();
}
Symbol 124 MovieClip Frame 26
play();
Symbol 124 MovieClip Frame 50
stop();
_root.level_started();
Symbol 129 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 148 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 153 Button
on (release) {
__rankz_send__("MzQ3N2olZSVhJW4lcw==", "d2NUQXpkRmI=", _root.nma.text, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
Symbol 157 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
if (!_root.sounds) {
stopAllSounds();
}
Symbol 177 MovieClip Frame 31
_root.fader.gotoAndPlay("fadeout");
Symbol 177 MovieClip Frame 84
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
_root.change_color(_root.hero_color, _root.hero_clr);
Symbol 182 MovieClip Frame 32
_root.all.hero.gotoAndPlay("in");
_root.all.inlift.gotoAndPlay("in");
stop();
Symbol 182 MovieClip Frame 56
_root.all.hero.isDown = true;
_root.gameHasStarted();
Symbol 182 MovieClip Frame 80
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 25
_root.all.ingame.gotoAndPlay("out");
Symbol 205 MovieClip Frame 52
stop();
Symbol 205 MovieClip Frame 136
stop();
Symbol 205 MovieClip Frame 141
stop();
Symbol 205 MovieClip Frame 181
stop();
Symbol 206 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 173 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 189 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 206 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 185 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 65
stop();
Symbol 214 Button
on (release, keyPress "<Space>") {
if (_root.pauser) {
_root.pauseGame();
} else {
_root.resumeGame();
}
}
on (keyPress "p") {
if (_root.pauser) {
_root.pauseGame();
} else {
_root.resumeGame();
}
}
Symbol 215 Button
on (release) {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
on (keyPress "m") {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
if (!_root.sounds) {
stopAllSounds();
}
Symbol 221 MovieClip Frame 72
stop();
Instance of Symbol 217 MovieClip "score" in Symbol 222 MovieClip Frame 1
onClipEvent (load) {
scorenow = 0;
scoreget = 0;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alpha - _alpha) * 0.2));
scorenow = scorenow + Math.round((scoreget - scorenow) * 0.2);
txt.text = "Score: " + scorenow;
}
Symbol 235 Button
on (release) {
_root.resumeGame();
}
Symbol 238 Button
on (release) {
_root.gotoAndStop("gotoLevel");
}
Symbol 240 Button
on (release) {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
Symbol 243 Button
on (release) {
_root.level = "menu";
_root.gotoAndStop("gotoLevel");
}
Symbol 246 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 249 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 256 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 251 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 255 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 256 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 268 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFD751C";
color = "orange";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 261 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFD751C";
color = "orange";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 262 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 263 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 264 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 265 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 268 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 279 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 270 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 274 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 275 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 276 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 277 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 278 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 279 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 188 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 286 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 281 MovieClip "up_wall" in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 281 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 188 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFD751C";
color = "orange";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 177 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 282 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 283 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 284 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 285 MovieClip in Symbol 286 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 286 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 173 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 293 MovieClip "dr1" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 295 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 299 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 306 MovieClip Frame 1
stop();
Instance of Symbol 188 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 312 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 301 MovieClip "up_wall" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 301 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr1" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr3" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr2" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr4" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 307 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 308 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 309 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 310 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 311 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 312 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 314 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr12);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr9" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 318 MovieClip "dr1" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr5" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr4" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr6);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 318 MovieClip "dr6" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr8);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr7);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr7" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr14" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr11" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr10);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 318 MovieClip "dr10" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr11);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 318 MovieClip "dr12" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr13);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr13" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr14);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr8" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr9);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 318 MovieClip "dr3" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 318 MovieClip "dr2" in Symbol 321 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 321 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 332 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 306 MovieClip "dr3" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr2" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr7);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr1" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr7" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr6" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr5" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr4" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 324 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr6);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 325 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 326 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 327 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 328 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 329 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 169 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 331 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 205 MovieClip "hero" in Symbol 332 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 337 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 334 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 188 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr1" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr11" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 339 MovieClip "dr3" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 339 MovieClip "dr9" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr7" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr5" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr2" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr9);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr8);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr10);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 337 MovieClip "dr12" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr6);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr14);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 337 MovieClip "dr14" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 339 MovieClip "dr10" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr12);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr13);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 337 MovieClip "dr13" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 339 MovieClip "dr6" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 339 MovieClip "dr8" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 340 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 341 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 342 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr7);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr11);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 343 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr4" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 344 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 349 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height + 200);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 346 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 349 MovieClip "dr1" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr2" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr3" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 354 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 355 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 358 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 359 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 360 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 361 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 368 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 281 MovieClip "up_wall" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 281 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 177 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 368 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 318 MovieClip "dur7" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dur5" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dur2" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dur1" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dur3" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dur4" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dur6" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dur8" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dur9" in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur6);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur7);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur8);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur9);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 362 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 363 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 364 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 365 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 366 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Symbol 380 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 370 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 378 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 380 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 394 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 382 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 390 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 391 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 392 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 393 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 394 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 387 MovieClip in Symbol 394 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 402 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 396 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 188 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr1" in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr2" in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr3" in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr4" in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr5" in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 401 MovieClip in Symbol 402 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 402 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 407 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 404 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr2" in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr1" in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr4" in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr3" in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 408 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 409 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 410 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 411 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 412 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 319 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 412 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 615 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 616 MovieClip in Symbol 618 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 618 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 626 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 620 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 626 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 185 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp3" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp4;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp4" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp3;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 621 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 622 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 623 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 624 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 625 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp5" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp6;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp6" in Symbol 626 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp5;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Symbol 630 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 628 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp19" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp20;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp20" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp19;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp11" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp12;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp10" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp9;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp17" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp18;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp29" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp30;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp8" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp7;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp25" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp26;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp31" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp32;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp16" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp15;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp22" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp21;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp6" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp5;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp3" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp4;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp28" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp27;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp7" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp8;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp9" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp10;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp23" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp24;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp14" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp13;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp24" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp23;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp30" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp29;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp21" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp22;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp27" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp28;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp32" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp31;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp4" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp3;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp12" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp11;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp26" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp25;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp13" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp14;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp18" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp17;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp5" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp6;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp15" in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp16;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 630 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 629 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 638 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp24" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp23;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp20" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp19;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp8" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp7;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp12" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp11;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp28" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp27;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp100" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp101;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp22" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp21;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp30" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp29;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp18" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp17;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp32" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp31;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp6" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp5;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp26" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp25;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp29" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp30;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp31" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp32;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp27" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp28;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp14" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp13;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp10" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp9;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp4" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp3;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 631 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = "0x33FF66";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 632 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = "0xFF33FF";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 633 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 615 MovieClip "tp101" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp100;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp3" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp4;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp5" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp6;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp7" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp8;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp9" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp10;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp11" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp12;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp13" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp14;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp15" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp16;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp17" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp18;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp19" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp20;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp21" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp22;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp16" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp15;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp23" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp24;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp25" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp26;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 634 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 635 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 319 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 319 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 319 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 638 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 637 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 640 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 640 MovieClip "dr1" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 615 MovieClip "tp6" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp5;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp3" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp4;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp8" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp7;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp11" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp12;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp10" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp9;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp9" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp10;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp7" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp8;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp12" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp11;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp4" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp3;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp5" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp6;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 641 MovieClip "dr2" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 644 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 645 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 646 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 647 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 648 MovieClip in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 649 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 658 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 651 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp5" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp6;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp3" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp4;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp6" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp5;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp12" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp11;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp8" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp7;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp7" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp8;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp11" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp12;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp4" in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp3;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 652 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 653 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 654 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 655 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 656 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 657 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 658 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 185 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 387 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 663 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 664 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 660 MovieClip in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 664 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 669 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 666 MovieClip "dur5" in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 668 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Symbol 672 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 185 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 177 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 672 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 185 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 660 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 660 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 660 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 660 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 663 MovieClip "dur5" in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 684 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 674 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 306 MovieClip "dr5" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 306 MovieClip "dr1" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr2" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr3" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 615 MovieClip "tp4" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp3;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp3" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj = _parent.tp4;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 387 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 615 MovieClip "tp6" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp5;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp5" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj = _parent.tp6;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp7" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp8;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp8" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj = _parent.tp7;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 675 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 678 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 679 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 680 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 681 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 682 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 684 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 683 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 615 MovieClip "tp101" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp102;
ugol = -90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp102" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj = _parent.tp101;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 376 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Symbol 693 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 686 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 318 MovieClip "dr1" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr2" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr3" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr4" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 318 MovieClip "dr5" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tp2" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp1;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tp1" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tp2;
ugol = 180;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr7);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr6);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 349 MovieClip "dr6" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr7" in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 376 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 687 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 688 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 689 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 690 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 691 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 692 MovieClip in Symbol 693 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 693 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 701 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 331 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr6" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr12);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr10" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr11);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr3" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr2" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 177 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 407 MovieClip "dr5" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr4" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr8" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "left";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr11" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr8);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "right";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 407 MovieClip "dr12" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 349 MovieClip "dr7" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 177 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 615 MovieClip "tpp2" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tpp1;
ugol = 90;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 407 MovieClip "dr9" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr5);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr9);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 615 MovieClip "tpp1" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj = _parent.tpp2;
ugol = 0;
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
if ((((_root.all.hero.porting == false) && (this.color == _root.hero_color)) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.change_color(obj.color, obj.clr);
obj.active = false;
r = obj.ugol;
if ((r == 0) or (r == 180)) {
r = r - 180;
}
g = 35;
xx = g * Math.sin(r * (Math.PI/180));
yy = g * Math.cos(r * (Math.PI/180));
_root.all.hero.portIn(xx, yy, obj);
_root.all.hero._x = obj._x;
_root.all.hero._y = obj._y;
gotoAndPlay ("in");
} else {
this.active = true;
}
}
Instance of Symbol 289 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 349 MovieClip "dr1" in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 694 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 695 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 696 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "orange";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 697 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 698 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 699 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "fiol";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "up";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 376 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
type = "one";
cord = "down";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 701 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 707 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 289 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 339 MovieClip "dr1" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 337 MovieClip "dr2" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 702 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "green";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 703 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "yellow";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 704 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 705 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "red";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 706 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "white";
clr = _root.getClr(color);
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 707 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 708 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 177 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 708 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 289 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
color = "blue";
clr = _root.getClr(color);
obj_arr = new Array(_root.all.dur2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 185 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 306 MovieClip "dr4" in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Symbol 711 MovieClip Frame 1
var bmpd = flash.display.BitmapData.loadBitmap("bg");
with (bbg) {
matrix = new flash.geom.Matrix();
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, _root.level_height);
lineTo(_root.level_width, _root.level_height);
lineTo(_root.level_width, 0);
lineTo(0, 0);
endFill();
}
Instance of Symbol 169 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 177 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
this.active = true;
tr = true;
}
onClipEvent (enterFrame) {
if (tr && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.setScore();
tr = false;
_root.all.hero.isDown = false;
_root.all.hero.mousex = _x;
_root.all.hero.mousey = _y;
this.gotoAndPlay("finish");
_root.finotype = finotype;
_root.all.hero.gotoAndPlay("finish");
} else {
this.active = true;
}
}
Instance of Symbol 185 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr1" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr3" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr2" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 185 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr4" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 710 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 711 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Instance of Symbol 169 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 169 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip "up_wall" in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 171 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 177 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 713 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
obj_arr = new Array(_root.all.dr1);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 306 MovieClip "dr1" in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 713 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
obj_arr = new Array(_root.all.dr3);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x99FF00";
color = "green";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 713 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
obj_arr = new Array(_root.all.dr2);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFFFF";
color = "white";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr3" in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr2" in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 713 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFF3535";
color = "red";
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((_root.hero_color != color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
_root.all.hero.gotoAndPlay("got");
_root.change_color(color, clr);
if (_root.sounds) {
_root.spotSound.start();
}
}
}
Instance of Symbol 289 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
obj_arr = new Array(_root.all.dr4);
}
onClipEvent (load) {
this.active = true;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
if (((this.color == _root.hero_color) && (this.active)) && (this.hitTest(_root.all._x + _root.all.hero._x, _root.all._y + _root.all.hero._y, true))) {
i = 0;
while (i < obj_arr.length) {
obj = obj_arr[i];
obj.alpha = -10;
if (_root.sounds) {
_root.keySound.start();
}
obj.active = false;
i++;
}
this.active = false;
this._visible = false;
}
}
Instance of Symbol 188 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0xFFFF00";
color = "yellow";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 306 MovieClip "dr4" in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
clr = "0x0066FF";
color = "blue";
type = "locked";
}
onClipEvent (load) {
_root.to_hit.push(this._name);
active = true;
if (((color == _root.hero_color) && (type != "locked")) && (type != "one")) {
_alpha = 40;
}
}
onClipEvent (enterFrame) {
if (type == "one") {
if (body._alpha != alpha) {
if (alpha == 40) {
alpha = 0;
}
body._alpha = body._alpha + ((alpha - body._alpha) * 0.5);
}
} else if (_alpha != alpha) {
_alpha = (_alpha + ((alpha - _alpha) * 0.5));
}
}
Instance of Symbol 205 MovieClip "hero" in Symbol 714 MovieClip Frame 1
onClipEvent (mouseDown) {
}
onClipEvent (mouseUp) {
}
onClipEvent (enterFrame) {
if (!_root.pauser) {
return(false);
}
if (porting) {
desty = (Stage.height / 2) - _root.all.hero._y;
destx = (Stage.width / 2) - _root.all.hero._x;
_dy = Math.round(desty - _root.all._y);
_dx = Math.round(destx - _root.all._x);
if ((((_root.masdestx > -3) && (_root.masdestx < 3)) && (_root.masdesty > -3)) && (_root.masdesty < 3)) {
_visible = true;
porting = false;
f_vector.x = port_x;
f_vector.y = port_y;
isDown = true;
if (_root.sounds) {
_root.portoutSound.start();
}
obj.gotoAndPlay("in");
} else {
return(undefined);
}
}
if (isDown) {
var myPoint = {x:_root._xmouse, y:_root._ymouse};
_root.all.globalToLocal(myPoint);
mousex = myPoint.x;
mousey = myPoint.y;
go = true;
}
if (go) {
if ((f_vector.x < 0.5) && (f_vector.x > -0.5)) {
msx = (mousex - _x) * 0.08;
if (msx > 19) {
msx = 19;
}
if (msx < -19) {
msx = -19;
}
vector.x = msx;
}
if ((f_vector.y < 0.5) && (f_vector.y > -0.5)) {
msy = (mousey - _y) * 0.08;
if (msy > 19) {
msy = 19;
}
if (msy < -19) {
msy = -19;
}
vector.y = msy;
}
delta_x = _x - mousex;
delta_y = _y - mousey;
a = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
tz = _rotation;
az = a;
if (Math.abs(az - tz) > 180) {
if (tz < 0) {
tz = 180 + (180 - Math.abs(tz));
}
if (az < 0) {
az = 180 + (180 - Math.abs(az));
}
}
_rotation = (_rotation + ((az - tz) * 0.2));
}
_xscale = (_xscale + ((xscale - _xscale) * 0.1));
_yscale = _xscale;
_x = (_x + (vector.x + f_vector.x));
_y = (_y + (vector.y + f_vector.y));
vector.x = vector.x * 0.7;
vector.y = vector.y * 0.7;
f_vector.x = f_vector.x * 0.5;
f_vector.y = f_vector.y * 0.5;
i = 0;
while (i < _root.to_hit.length) {
obj = _root.all[_root.to_hit[i]];
if (obj.type == "one") {
dlt_x = vector.x - oldvector.x;
dlt_y = vector.y - oldvector.y;
cord = (-Math.atan2(dlt_x, dlt_y)) / (Math.PI/180);
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (((((obj.color != _root.hero_color) or ((obj.cord == "left") && (vector.x > 0))) or ((obj.cord == "right") && (vector.x < 0))) or ((obj.cord == "up") && (vector.y > 0))) or ((obj.cord == "down") && (vector.y < 0))) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
} else if (((obj.color != _root.hero_color) && (obj.active)) or ((obj.type == "locked") && (obj.active))) {
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
_root.damagetime = _root.damagetime + 5000;
_root.hero_hp = _root.hero_hp - (5 + random(10));
f_vector.x = (-vector.x) * 2;
f_vector.y = (-vector.y) * 2;
vector.x = 0;
vector.y = 0;
boomka(_root.all.hero._x, _root.all.hero._y, obj.clr);
if (_root.sounds) {
_root.wallSound.start();
}
break;
}
}
i++;
}
i = 0;
while (i < _root.to_hit_walls.length) {
obj = _root.to_hit_walls[i];
if (obj.hitTest(_root.all.hero._x + _root.all._x, _root.all.hero._y + _root.all._y, true)) {
if (obj.tp == "y") {
f_vector.y = (-vector.y) * 2;
vector.y = 0;
}
if (obj.tp == "x") {
f_vector.x = (-vector.x) * 2;
vector.x = 0;
}
}
i++;
}
oldvector.x = vector.x;
oldvector.y = vector.y;
}
onClipEvent (load) {
function to() {
isDown = true;
}
function portIn(xx, yy, objec) {
if (_root.sounds) {
_root.portinSound.start();
}
obj = objec;
_visible = false;
port_x = xx;
port_y = yy;
isDown = false;
porting = true;
}
function boomka(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("boombastik", "boombastik" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, _width:100, _height:100, color:clr});
}
function boom(x, y, clr) {
_root.particle_dp++;
tx = random(8) - 4;
if (tx == 0) {
tx = 1;
}
ty = random(8) - 4;
if (ty == 0) {
ty = 1;
}
rot = Math.atan2(tx, ty) / (Math.PI/180);
_root.all.attachMovie("hero_particle2", "hero_particle" + _root.particle_dp, _root.particle_dp, {_x:x, _y:y, vectorX:tx, vectorY:ty, color:clr, rot:rot, _rotation:rot});
}
stop();
var obj;
port_x = 0;
port_y = 0;
oldvector = {x:0, y:0};
vector = {x:0, y:0};
f_vector = {x:0, y:0};
isDown = false;
_x = _parent.ingame._x;
_y = _parent.ingame._y;
porting = false;
}
Symbol 716 Button
on (release) {
_root.openAddToWebsiteLink();
}