Frame 1
function toPreroller(aaa) {
trace(aaa);
_root.adServingEnds = true;
}
function placeLogo() {
mcLoadLogoBg._y = 400;
}
function initLoader() {
var _local3 = ((result_lv.b == undefined) ? "false" : (result_lv.b));
trace(("b ::" + _local3) + "::");
trace(("result_lv.h ::" + result_lv.h) + "::");
if (result_lv.h == "true") {
isHome = true;
}
if (_local3 == "true") {
bannedSign._alpha = 100;
} else {
this.onEnterFrame = function () {
createNewParticle();
mcLoadLogoBg.bar._xscale = 100 * (1 - (getBytesLoaded() / getBytesTotal()));
emitter._x = (mcLoadLogoBg._x + (96 - mcLoadLogoBg.bar._width)) + 15;
emitter._y = mcLoadLogoBg._y + 44;
trace(_root.adServingEnds);
if (getBytesLoaded() == getBytesTotal()) {
trace("eeee");
kill();
if ((System.capabilities.playerType == "StandAlone") || (System.capabilities.playerType == "External")) {
this.onEnterFrame = undefined;
this.gotoAndStop("offline");
} else if (_root.adServingEnds) {
this.onEnterFrame = undefined;
if (!isHome) {
this.gotoAndStop("preroller");
} else {
this.gotoAndStop("preloader");
}
}
}
};
bannedSign.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_PROGRESS);
}
};
}
}
function openKingPage(type, page) {
trace(type);
var _local4 = _root._url;
var _local3 = (((((("game=" + GAME_NAME) + "&from=") + _local4) + "&type=") + type) + "&session=") + sessionID;
if (page != undefined) {
_local3 = _local3 + ("&redirect=" + page);
}
var _local2 = "_blank";
if (isHome) {
_local2 = "_top";
}
getURL ((bounceURL + "?") + _local3, _local2);
}
function openOtherGamesLink() {
openKingPage(LINK_TYPE_OTHER_GAMES);
}
function openHighscoresLink() {
openKingPage(LINK_TYPE_HIGHSCORES, ("game/" + GAME_NAME) + "/highscores");
}
function openSignLink() {
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;
var _local2 = new md5();
checkStr = _local2.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) {
var _local1 = new md5();
if (checkStr != _local1.hash((((iscore + ":") + GAME_NAME) + ":") + SK)) {
SSK = "ng41ui54hy35tdsnd6f54rews";
}
}
}
function submitScore(score) {
var _local2 = new md5();
var _local1 = _local2.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 = new md5();
var _local2 = _local1.hash((((level + ":") + GAME_NAME) + ":") + SSK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitLevel", level, _local2);
}
} catch(e:Error) {
trace(e);
}
}
function submitAchievement(achievement) {
var _local1 = new md5();
var _local2 = _local1.hash((((achievement + ":") + GAME_NAME) + ":") + SAK);
try {
if (isHome) {
flash.external.ExternalInterface.call("submitAchievement", achievement, _local2);
}
} catch(e:Error) {
trace(e);
}
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function createNewParticle() {
var _local4 = emitter.attachMovie("libGlow", "newLibGlow", emitter.getNextHighestDepth());
var _local3 = new Particle(_local4, -10, -7, _root._width, _root._height);
_local3.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel));
_local3.setSize(randRange(minSize, maxSize));
particles.push(_local3);
while (particles.length > numParticles) {
_local3 = particles.shift();
_local3.destroy();
}
var _local2 = 0;
while (_local2 < particles.length) {
particles[_local2].update();
_local2++;
}
}
function kill() {
var _local1 = 0;
while (_local1 < particles.length) {
particles[_local1].destroy();
_local1++;
}
}
function randRange(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
stop();
_root.kongregateServices.connect();
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 = false;
adblock = false;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
currentDomain = real_domain[0];
var dm = new Array("king.com", "king.de", "midasplayer.com", "mygame.com", "kongregate.com", "adkon.com", "armorgames.com", "oyunlar1.com", "llnwd.net", "jogosjogos.com", "onemorelevel.com", "maxgames.com", "uol.com.br", "bubblebox.com", "funny-base.com", "ungrounded.net", "juegosdiarios.com", "freeworldgroup.com", "physicsgames.net", "freewebarcade.com", "freewebarcade.info", "freewebarcade3.net", "games2girls.com", "yahoo.com");
i = 0;
while (i < dm.length) {
domainLockTo = dm[i];
if (currentDomain.indexOf(domainLockTo) != -1) {
adblock = true;
}
i++;
}
if (!adblock) {
if ((System.capabilities.playerType == "StandAlone") || (System.capabilities.playerType == "External")) {
_root.adServingEnds = true;
} else {
mochi.as2.MochiAd.showPreGameAd({id:"13e1e619a33273aa", res:"650x500", no_bg:true, background:13562073, color:3449938, outline:16777215, ad_loaded:function () {
placeLogo();
}, ad_finished:function () {
toPreroller("finished");
}, ad_failed:function () {
toPreroller("failed");
}, ad_skipped:function () {
toPreroller("skipped");
}});
_mochiad._mochiad_wait._visible = false;
_mochiad._mochiad_ctr.ad._preloadBarMC._visible = false;
}
} else {
trace("nomochis");
_root.adServingEnds = true;
}
var GAME_NAME = "neon-maze";
var MOCHI_SIGNATURE = "9cec62fd";
var loadCountURL = "http://www.mygame.com/king/loadcount.jsp";
var bounceURL = "http://www.mygame.com/king/bounce.jsp";
var loadHomeParametersURL = "http://www.king.com/servlet/FreeGameServlet?action=load";
var LINK_TYPE_LOADER_MOVIE = "loader_movie";
var LINK_TYPE_LOADER_PROGRESS = "loader_progress";
var LINK_TYPE_PROTECT = "protect";
var LINK_TYPE_OTHER_GAMES = "other_games";
var LINK_TYPE_HIGHSCORES = "highscores";
var LINK_TYPE_SIGN = "sign";
var LINK_TYPE_ADD_GAME = "add_game";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var LINK_TYPE_RIGHT_CLICK = "rightclick";
var SSK = "ng43ui54hy35tdsnd6f54rews";
var SAK = "ggfd7sday923mdsfd8csfds34";
var SK = "vf78hxcsjak77cxzhjkwad87s";
var iscore = 123;
var checkStr = null;
var USER_TYPE_UNREGISTERED = 0;
var USER_TYPE_REGISTERED = 1;
var USER_TYPE_GOLD = 2;
var USER_TYPE_SUBSCRIPTION = 3;
var SessionID = "";
var gameWidth = Stage.width;
var gameHeight = Stage.height;
var isHome = false;
bannedSign._alpha = 0;
bannedSign._x = (bannedSign._y = 0);
bannedSign.bg._width = gameWidth;
bannedSign.bg._height = gameHeight;
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
_root.initLoader();
};
var my_lv = new LoadVars();
my_lv.game = GAME_NAME;
my_lv.from = _root._url;
var so = SharedObject.getLocal("session");
if (so.data.sessionID == null) {
var rnd1 = Math.floor(Math.random() * 4294967295);
var rnd2 = Math.floor(Math.random() * 4294967295);
so.data.sessionID = rnd1.toString(16) + rnd2.toString(16);
so.flush();
}
sessionID = so.data.sessionID;
my_lv.session = sessionID;
my_lv.sendAndLoad(loadCountURL, result_lv, "GET");
if (MOCHI_SIGNATURE != "") {
__com_mochibot__(MOCHI_SIGNATURE, this, 10301, true);
}
var numParticles = 20;
var minXVel = -1;
var maxXVel = 1;
var minYVel = -1;
var maxYVel = 1;
var minSize = 12;
var maxSize = 29;
var minAlpha = 10;
var maxAlpha = 20;
var particles = new Array();
var emitter = _root.createEmptyMovieClip("p_holder", _root.getNextHighestDepth());
Frame 8
function fireFire() {
new mx.transitions.Tween(mcKingLoader.fireLogoHolder, "_x", mx.transitions.easing.Regular.easeOut, mcKingLoader.fireLogoHolder._x, ((gameWidth / 2) - (mcKingLoader.dragonHolder._width / 2)) - 51, 1, true);
mcKingLoader.fireLogoHolder.play();
}
function showPlayBtn() {
mcKingLoader.mcPlay._x = (gameWidth / 2) - (mcKingLoader.mcPlay._width / 2);
mcKingLoader.mcPlay._y = mcKingLoader.fireLogoHolder._y + 210;
new mx.transitions.Tween(mcKingLoader.mcPlay, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, 0.5, true);
mcKingLoader.mcPlay.onPress = btnOnPress;
mcKingLoader.mcPlay.onRollOver = btnOnOver;
mcKingLoader.mcPlay.onRollOut = (mcKingLoader.mcPlay.onDragOut = btnOnOut);
mcKingLoader.mcPlay.onRelease = mx.utils.Delegate.create(this, launchGame);
Delay.oneShot(this, showGlimmer, 1000);
}
function showGlimmer() {
bell.start();
mcKingLoader.mcGlim._x = mcKingLoader.fireLogoHolder_.x - mcKingLoader.mcGlim._width;
mcKingLoader.mcGlim._y = mcKingLoader.fireLogoHolder._y + 112;
var _local2 = mcKingLoader.fireLogoHolder._x - mcKingLoader.mcGlim._width;
var _local3 = (mcKingLoader.fireLogoHolder._x + mcKingLoader.fireLogoHolder._width) - 80;
var _local1 = new mx.transitions.Tween(mcKingLoader.mcGlim, "_x", mx.transitions.easing.None.easeNone, _local2, _local3, 0.5, true);
_local1.onMotionFinished = glimmerDone;
}
function glimmerDone() {
mcKingLoader.mcGlim._visible = false;
}
function btnOnOver() {
var _local2 = this;
_local2.gotoAndStop("over");
}
function btnOnOut() {
var _local2 = this;
_local2.gotoAndStop("idle");
}
function btnOnPress() {
var _local2 = this;
_local2.gotoAndStop("down");
}
function launchGame() {
gotoAndPlay ("preloader");
}
stop();
mcKingLoader.fireLogoHolder.stop();
mcKingLoader.dragonHolder.stop();
mcKingLoader._x = (mcKingLoader._y = 0);
mcKingLoader.bg._width = gameWidth;
mcKingLoader.bg._height = gameHeight;
mcKingLoader.bg.onRelease = function () {
if (!isHome) {
openKingPage(LINK_TYPE_LOADER_MOVIE);
}
};
mcKingLoader.fireLogoHolder._x = (gameWidth - mcKingLoader.fireLogoHolder._width) - 90;
mcKingLoader.fireLogoHolder._y = ((gameHeight / 2) - (mcKingLoader.fireLogoHolder._height / 2)) - 60;
mcKingLoader.dragonHolder._x = gameWidth - mcKingLoader.dragonHolder._width;
mcKingLoader.dragonHolder._y = (gameHeight / 2) - (mcKingLoader.dragonHolder._height / 2);
mcKingLoader.mcPlay._alpha = 0;
mcKingLoader.mcPlay.useHandCursor = true;
var bell = new Sound();
bell.attachSound("sfxBell");
mcKingLoader.initAnimDriver(30, false);
trace("StartAnim");
mcKingLoader.dragonHolder.play();
Frame 16
stop();
Frame 22
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 29
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 37
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 43
stop();
Frame 50
stop();
_root.kongregateStats.submit("GameComplete", 1);
_root.kongregateScores.submit(_root.totalscore);
prr.text = _root.totalscore;
Frame 56
stop();
Frame 63
delete onEnterFrame;
if (((((getTimer() - lastAd) > 480000) && (_root.level > 7)) && (!adblock)) && (_root.level != 26)) {
gotoAndStop ("interad");
} else 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 72
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;
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 78
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;
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 84
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;
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 90
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;
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 96
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;
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 102
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;
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 108
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;
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 114
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;
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 120
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;
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 126
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;
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 132
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;
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 138
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;
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 145
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;
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 152
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;
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 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;
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 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;
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 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;
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 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;
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 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;
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 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;
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 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;
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 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;
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 236
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;
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 243
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;
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 250
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;
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 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;
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 280
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;
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 287
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();
};
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 727 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 728 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 729 MovieClip [__Packages.Particle] Frame 0
class Particle
{
var _stageWidth, _stageHeight, clip, _xVel, _yVel;
function Particle (libParticle, xpos, ypos, stageWidth, stageHeight) {
_stageWidth = stageWidth;
_stageHeight = stageHeight;
clip = libParticle;
clip._x = xpos;
clip._y = ypos;
}
function setVel(xvel, yvel) {
_xVel = xvel;
_yVel = yvel;
}
function setSize(size) {
clip._width = size;
clip._height = size;
}
function setAlphaDecr(val) {
_alphaDecr = val;
}
function update() {
clip._x = clip._x + _xVel;
clip._y = clip._y + _yVel;
clip._alpha = clip._alpha - _alphaDecr;
}
function destroy() {
removeMovieClip(clip);
}
var _alphaDecr = 0;
}
Symbol 730 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 731 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 732 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 733 MovieClip [__Packages.Delay] Frame 0
class Delay
{
var m_fn, m_param, m_context, m_delay, m_started, m_timerId;
function Delay (context, fn, delay) {
m_fn = fn;
m_param = new Array();
var _local3 = 3;
while (_local3 < arguments.length) {
m_param.push(arguments[_local3]);
_local3++;
}
m_context = context;
m_delay = delay;
m_started = getTimer();
m_timerId = setInterval(mx.utils.Delegate.create(this, onEvent), delay);
}
function onEvent() {
if (getTimer() >= (m_delay + m_started)) {
clearInterval(m_timerId);
m_fn.apply(m_context, m_param);
m_fn = undefined;
m_param = undefined;
}
}
static function oneShot(context, fn, delay) {
var _local3 = new Delay(context, fn, delay);
_local3.m_param = new Array();
var _local2 = 3;
while (_local2 < arguments.length) {
_local3.m_param.push(arguments[_local2]);
_local2++;
}
}
}
Symbol 734 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 735 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 736 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 737 MovieClip [__Packages.AnimDriver] Frame 0
class AnimDriver extends MovieClip
{
var fps, pauseOffset, gotoAndStop, loop, startTime, onEnterFrame, _totalframes;
function AnimDriver () {
super();
}
function initAnimDriver(p_fps) {
fps = p_fps;
pauseOffset = 0;
}
function playAnim(p_frame, p_loop) {
gotoAndStop(p_frame);
loop = p_loop;
startTime = getTimer();
onEnterFrame = mx.utils.Delegate.create(this, updateAnim);
}
function disableAnim() {
onEnterFrame = undefined;
}
function jumpTo(p_frame) {
stopAnim();
playAnim(p_frame);
}
function pauseAnim() {
pauseOffset = getTimer();
onEnterFrame = undefined;
}
function stopAnim() {
startTime = 1;
onEnterFrame = undefined;
}
function updateAnim() {
var _local3 = getTimer();
var _local4 = (1 / fps) * 1000;
var _local2 = Math.round(((_local3 - startTime) / _local4) + 1);
if (_local2 >= _totalframes) {
startTime = _local3;
_local2 = _totalframes;
if (!loop) {
stopAnim();
}
}
gotoAndStop(_local2);
}
}
Symbol 42 MovieClip Frame 80
_root.fireFire();
Symbol 42 MovieClip Frame 119
stop();
Symbol 42 MovieClip Frame 128
gotoAndStop (120);
Symbol 42 MovieClip Frame 237
stop();
Symbol 44 MovieClip Frame 73
stop();
_root.showPlayBtn();
Symbol 56 MovieClip Frame 1
stop();
Symbol 57 MovieClip [KingLoader] Frame 1
#initclip 12
Object.registerClass("KingLoader", AnimDriver);
#endinitclip
Symbol 64 Button
on (release) {
_root.openOfflineProtectionLink();
}
Symbol 75 Button
on (release) {
if (_root.mr) {
_root.mr = false;
_root.finotype = "new";
_root.fader.gotoAndPlay("fadeout");
}
}
Symbol 81 Button
on (release) {
if (_root.mr) {
_root.mr = false;
_root.finotype = "continue";
_root.fader.gotoAndPlay("fadeout");
}
}
Symbol 87 Button
on (release) {
_root.openSignLink();
}
Symbol 93 Button
on (release) {
_root.openHighscoresLink();
}
Symbol 99 Button
on (release) {
gotoAndStop ("credits");
}
Symbol 105 Button
on (release) {
_root.openOtherGamesLink();
}
Symbol 119 Button
on (release) {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
Symbol 131 Button
on (release) {
_root.openAddToWebsiteLink();
}
Symbol 133 Button
on (release) {
_root.openSignLink();
}
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 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 135 MovieClip Frame 26
play();
Symbol 135 MovieClip Frame 50
stop();
_root.level_started();
Symbol 140 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 159 Button
on (release) {
_root.openOtherGamesLink();
}
Symbol 164 Button
on (release) {
_root.submitScore(_root.totalscore);
}
Symbol 169 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
if (!_root.sounds) {
stopAllSounds();
}
Symbol 184 MovieClip Frame 31
_root.fader.gotoAndPlay("fadeout");
Symbol 184 MovieClip Frame 84
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
_root.change_color(_root.hero_color, _root.hero_clr);
Symbol 189 MovieClip Frame 32
_root.all.hero.gotoAndPlay("in");
_root.all.inlift.gotoAndPlay("in");
stop();
Symbol 189 MovieClip Frame 56
_root.all.hero.isDown = true;
_root.gameHasStarted();
Symbol 189 MovieClip Frame 80
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 25
_root.all.ingame.gotoAndPlay("out");
Symbol 212 MovieClip Frame 52
stop();
Symbol 212 MovieClip Frame 136
stop();
Symbol 212 MovieClip Frame 141
stop();
Symbol 212 MovieClip Frame 181
stop();
Symbol 213 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 176 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 180 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 213 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 192 MovieClip in Symbol 213 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 196 MovieClip in Symbol 213 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 192 MovieClip in Symbol 213 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 192 MovieClip in Symbol 213 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 192 MovieClip in Symbol 213 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 192 MovieClip in Symbol 213 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 212 MovieClip "hero" in Symbol 213 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 192 MovieClip in Symbol 213 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 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 65
stop();
Symbol 221 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 222 Button
on (release) {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
on (keyPress "m") {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
if (!_root.sounds) {
stopAllSounds();
}
Symbol 228 MovieClip Frame 72
stop();
Instance of Symbol 224 MovieClip "score" in Symbol 229 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 242 Button
on (release) {
_root.resumeGame();
}
Symbol 245 Button
on (release) {
_root.gotoAndStop("gotoLevel");
}
Symbol 247 Button
on (release) {
if (_root.sounds) {
_root.soundsOff();
} else {
_root.soundsOn();
}
}
Symbol 250 Button
on (release) {
_root.level = "menu";
_root.gotoAndStop("gotoLevel");
}
Symbol 253 Button
on (release) {
_root.openSignLink();
}
Symbol 255 Button
on (release) {
_root.openSignLink();
}
Symbol 262 Button
on (release) {
_root.openSignLink();
}
Symbol 269 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 176 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 264 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 269 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 192 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 192 MovieClip in Symbol 269 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 192 MovieClip in Symbol 269 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 192 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 268 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 195 MovieClip in Symbol 269 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 212 MovieClip "hero" in Symbol 269 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 281 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 176 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 281 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 192 MovieClip in Symbol 281 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 192 MovieClip in Symbol 281 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 192 MovieClip in Symbol 281 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 192 MovieClip in Symbol 281 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 192 MovieClip in Symbol 281 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 192 MovieClip in Symbol 281 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 274 MovieClip in Symbol 281 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 275 MovieClip in Symbol 281 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 276 MovieClip in Symbol 281 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 277 MovieClip in Symbol 281 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 278 MovieClip in Symbol 281 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 212 MovieClip "hero" in Symbol 281 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 292 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 176 MovieClip in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 283 MovieClip in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 192 MovieClip in Symbol 292 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 287 MovieClip in Symbol 292 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 288 MovieClip in Symbol 292 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 289 MovieClip in Symbol 292 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 290 MovieClip in Symbol 292 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 291 MovieClip in Symbol 292 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 212 MovieClip "hero" in Symbol 292 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 195 MovieClip in Symbol 297 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 195 MovieClip in Symbol 297 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 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 176 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 294 MovieClip "up_wall" in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 294 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 195 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 192 MovieClip in Symbol 299 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 184 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 295 MovieClip in Symbol 299 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 296 MovieClip in Symbol 299 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 297 MovieClip in Symbol 299 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 298 MovieClip in Symbol 299 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 212 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();
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 176 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 180 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 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 302 MovieClip in Symbol 312 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 306 MovieClip "dr1" in Symbol 312 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 308 MovieClip in Symbol 312 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 192 MovieClip in Symbol 312 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 212 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 319 MovieClip Frame 1
stop();
Instance of Symbol 195 MovieClip in Symbol 321 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 195 MovieClip in Symbol 321 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 195 MovieClip in Symbol 321 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 195 MovieClip in Symbol 321 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 195 MovieClip in Symbol 321 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 325 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 176 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 314 MovieClip "up_wall" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 314 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 325 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 192 MovieClip in Symbol 325 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 302 MovieClip in Symbol 325 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 319 MovieClip "dr1" in Symbol 325 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 192 MovieClip in Symbol 325 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 302 MovieClip in Symbol 325 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 192 MovieClip in Symbol 325 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 302 MovieClip in Symbol 325 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 319 MovieClip "dr3" in Symbol 325 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 319 MovieClip "dr2" in Symbol 325 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 195 MovieClip in Symbol 325 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 192 MovieClip in Symbol 325 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 302 MovieClip in Symbol 325 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 319 MovieClip "dr4" in Symbol 325 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 320 MovieClip in Symbol 325 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 321 MovieClip in Symbol 325 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 322 MovieClip in Symbol 325 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 323 MovieClip in Symbol 325 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 324 MovieClip in Symbol 325 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 212 MovieClip "hero" in Symbol 325 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 331 MovieClip Frame 1
stop();
Symbol 334 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 176 MovieClip in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 327 MovieClip in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 334 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 302 MovieClip in Symbol 334 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 319 MovieClip "dr9" in Symbol 334 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 302 MovieClip in Symbol 334 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 331 MovieClip "dr1" in Symbol 334 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 319 MovieClip "dr5" in Symbol 334 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 319 MovieClip "dr4" in Symbol 334 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 302 MovieClip in Symbol 334 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 302 MovieClip in Symbol 334 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 302 MovieClip in Symbol 334 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 331 MovieClip "dr6" in Symbol 334 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 302 MovieClip in Symbol 334 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 302 MovieClip in Symbol 334 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 319 MovieClip "dr7" in Symbol 334 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 319 MovieClip "dr14" in Symbol 334 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 333 MovieClip in Symbol 334 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 331 MovieClip "dr11" in Symbol 334 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 302 MovieClip in Symbol 334 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 331 MovieClip "dr10" in Symbol 334 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 302 MovieClip in Symbol 334 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 331 MovieClip "dr12" in Symbol 334 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 302 MovieClip in Symbol 334 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 319 MovieClip "dr13" in Symbol 334 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 302 MovieClip in Symbol 334 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 319 MovieClip "dr8" in Symbol 334 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 302 MovieClip in Symbol 334 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 331 MovieClip "dr3" in Symbol 334 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 302 MovieClip in Symbol 334 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 302 MovieClip in Symbol 334 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 331 MovieClip "dr2" in Symbol 334 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 212 MovieClip "hero" in Symbol 334 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 345 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 176 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 345 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 319 MovieClip "dr3" in Symbol 345 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 331 MovieClip "dr2" in Symbol 345 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 302 MovieClip in Symbol 345 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 319 MovieClip "dr1" in Symbol 345 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 331 MovieClip "dr7" in Symbol 345 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 331 MovieClip "dr6" in Symbol 345 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 331 MovieClip "dr5" in Symbol 345 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 331 MovieClip "dr4" in Symbol 345 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 337 MovieClip in Symbol 345 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 192 MovieClip in Symbol 345 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 192 MovieClip in Symbol 345 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 302 MovieClip in Symbol 345 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 302 MovieClip in Symbol 345 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 192 MovieClip in Symbol 345 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 302 MovieClip in Symbol 345 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 192 MovieClip in Symbol 345 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 192 MovieClip in Symbol 345 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 192 MovieClip in Symbol 345 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 302 MovieClip in Symbol 345 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 302 MovieClip in Symbol 345 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 302 MovieClip in Symbol 345 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 338 MovieClip in Symbol 345 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 339 MovieClip in Symbol 345 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 340 MovieClip in Symbol 345 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 341 MovieClip in Symbol 345 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 342 MovieClip in Symbol 345 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 176 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 344 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 212 MovieClip "hero" in Symbol 345 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 350 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 357 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 176 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 347 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 192 MovieClip in Symbol 357 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 195 MovieClip in Symbol 357 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 350 MovieClip "dr1" in Symbol 357 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 350 MovieClip "dr11" in Symbol 357 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 352 MovieClip "dr3" in Symbol 357 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 352 MovieClip "dr9" in Symbol 357 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 350 MovieClip "dr7" in Symbol 357 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 350 MovieClip "dr5" in Symbol 357 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 350 MovieClip "dr2" in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 192 MovieClip in Symbol 357 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 192 MovieClip in Symbol 357 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 192 MovieClip in Symbol 357 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 350 MovieClip "dr12" in Symbol 357 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 192 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 350 MovieClip "dr14" in Symbol 357 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 352 MovieClip "dr10" in Symbol 357 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 192 MovieClip in Symbol 357 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 192 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 350 MovieClip "dr13" in Symbol 357 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 352 MovieClip "dr6" in Symbol 357 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 352 MovieClip "dr8" in Symbol 357 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 353 MovieClip in Symbol 357 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 354 MovieClip in Symbol 357 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 355 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 302 MovieClip in Symbol 357 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 356 MovieClip in Symbol 357 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 350 MovieClip "dr4" in Symbol 357 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 302 MovieClip in Symbol 357 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 212 MovieClip "hero" in Symbol 357 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 362 MovieClip Frame 1
stop();
Symbol 374 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 176 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 374 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 359 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 374 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 302 MovieClip in Symbol 374 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 192 MovieClip in Symbol 374 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 362 MovieClip "dr1" in Symbol 374 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 362 MovieClip "dr2" in Symbol 374 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 362 MovieClip "dr3" in Symbol 374 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 302 MovieClip in Symbol 374 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 302 MovieClip in Symbol 374 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 192 MovieClip in Symbol 374 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 192 MovieClip in Symbol 374 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 192 MovieClip in Symbol 374 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 367 MovieClip in Symbol 374 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 368 MovieClip in Symbol 374 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 371 MovieClip in Symbol 374 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 372 MovieClip in Symbol 374 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 373 MovieClip in Symbol 374 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 212 MovieClip "hero" in Symbol 374 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 381 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 176 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 294 MovieClip "up_wall" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 294 MovieClip in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 192 MovieClip in Symbol 381 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 184 MovieClip in Symbol 381 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 212 MovieClip "hero" in Symbol 381 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 331 MovieClip "dur7" in Symbol 381 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 331 MovieClip "dur5" in Symbol 381 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 319 MovieClip "dur2" in Symbol 381 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 331 MovieClip "dur1" in Symbol 381 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 331 MovieClip "dur3" in Symbol 381 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 319 MovieClip "dur4" in Symbol 381 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 319 MovieClip "dur6" in Symbol 381 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 319 MovieClip "dur8" in Symbol 381 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 331 MovieClip "dur9" in Symbol 381 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 192 MovieClip in Symbol 381 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 192 MovieClip in Symbol 381 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 192 MovieClip in Symbol 381 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 192 MovieClip in Symbol 381 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 192 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 302 MovieClip in Symbol 381 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 375 MovieClip in Symbol 381 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 381 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 377 MovieClip in Symbol 381 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 378 MovieClip in Symbol 381 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 379 MovieClip in Symbol 381 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 380 MovieClip in Symbol 381 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 192 MovieClip in Symbol 381 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 393 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 176 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 383 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 192 MovieClip in Symbol 393 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 192 MovieClip in Symbol 393 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 391 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 389 MovieClip in Symbol 393 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 212 MovieClip "hero" in Symbol 393 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
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 176 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 395 MovieClip in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 195 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 192 MovieClip in Symbol 407 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 192 MovieClip in Symbol 407 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 192 MovieClip in Symbol 407 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 192 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 400 MovieClip in Symbol 407 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 403 MovieClip in Symbol 407 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 404 MovieClip in Symbol 407 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 405 MovieClip in Symbol 407 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 406 MovieClip in Symbol 407 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 212 MovieClip "hero" in Symbol 407 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 400 MovieClip in Symbol 407 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 415 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 176 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 409 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 415 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 192 MovieClip in Symbol 415 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 195 MovieClip in Symbol 415 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 319 MovieClip "dr1" in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 195 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 195 MovieClip in Symbol 415 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 195 MovieClip in Symbol 415 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 195 MovieClip in Symbol 415 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 "dr2" in Symbol 415 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 319 MovieClip "dr3" in Symbol 415 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 319 MovieClip "dr4" in Symbol 415 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 319 MovieClip "dr5" in Symbol 415 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 302 MovieClip in Symbol 415 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 302 MovieClip in Symbol 415 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 302 MovieClip in Symbol 415 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 302 MovieClip in Symbol 415 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 302 MovieClip in Symbol 415 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 192 MovieClip in Symbol 415 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 192 MovieClip in Symbol 415 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 192 MovieClip in Symbol 415 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 192 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 389 MovieClip in Symbol 415 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 414 MovieClip in Symbol 415 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 212 MovieClip "hero" in Symbol 415 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 420 MovieClip Frame 1
stop();
Symbol 425 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 176 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 417 MovieClip in Symbol 425 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 425 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 302 MovieClip in Symbol 425 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 192 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 362 MovieClip "dr2" in Symbol 425 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 420 MovieClip "dr1" in Symbol 425 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 420 MovieClip "dr4" in Symbol 425 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 362 MovieClip "dr3" in Symbol 425 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 302 MovieClip in Symbol 425 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 302 MovieClip in Symbol 425 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 302 MovieClip in Symbol 425 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 192 MovieClip in Symbol 425 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 192 MovieClip in Symbol 425 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 192 MovieClip in Symbol 425 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 192 MovieClip in Symbol 425 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 192 MovieClip in Symbol 425 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 421 MovieClip in Symbol 425 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 422 MovieClip in Symbol 425 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 423 MovieClip in Symbol 425 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 424 MovieClip in Symbol 425 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 212 MovieClip "hero" in Symbol 425 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 332 MovieClip in Symbol 425 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 389 MovieClip in Symbol 425 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 628 MovieClip Frame 1
stop();
Symbol 631 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 176 MovieClip in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 631 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 628 MovieClip "tp1" in Symbol 631 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 628 MovieClip "tp2" in Symbol 631 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 629 MovieClip in Symbol 631 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 212 MovieClip "hero" in Symbol 631 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 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 176 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 633 MovieClip in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 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 628 MovieClip "tp1" in Symbol 638 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 628 MovieClip "tp2" in Symbol 638 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 212 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 192 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 628 MovieClip "tp3" in Symbol 638 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 628 MovieClip "tp4" in Symbol 638 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 634 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 635 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 636 MovieClip in Symbol 638 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 637 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 195 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 192 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 628 MovieClip "tp5" in Symbol 638 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 628 MovieClip "tp6" in Symbol 638 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 642 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 176 MovieClip in Symbol 642 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 642 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 642 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 640 MovieClip in Symbol 642 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 642 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 628 MovieClip "tp1" in Symbol 642 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 628 MovieClip "tp19" in Symbol 642 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 628 MovieClip "tp20" in Symbol 642 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 628 MovieClip "tp11" in Symbol 642 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 628 MovieClip "tp10" in Symbol 642 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 628 MovieClip "tp17" in Symbol 642 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 628 MovieClip "tp29" in Symbol 642 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 628 MovieClip "tp8" in Symbol 642 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 628 MovieClip "tp25" in Symbol 642 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 628 MovieClip "tp31" in Symbol 642 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 628 MovieClip "tp16" in Symbol 642 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 628 MovieClip "tp22" in Symbol 642 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 628 MovieClip "tp6" in Symbol 642 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 628 MovieClip "tp3" in Symbol 642 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 628 MovieClip "tp28" in Symbol 642 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 628 MovieClip "tp7" in Symbol 642 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 628 MovieClip "tp9" in Symbol 642 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 628 MovieClip "tp23" in Symbol 642 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 628 MovieClip "tp14" in Symbol 642 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 628 MovieClip "tp24" in Symbol 642 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 628 MovieClip "tp30" in Symbol 642 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 628 MovieClip "tp21" in Symbol 642 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 628 MovieClip "tp27" in Symbol 642 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 628 MovieClip "tp32" in Symbol 642 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 628 MovieClip "tp4" in Symbol 642 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 628 MovieClip "tp12" in Symbol 642 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 628 MovieClip "tp26" in Symbol 642 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 628 MovieClip "tp13" in Symbol 642 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 628 MovieClip "tp2" in Symbol 642 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 628 MovieClip "tp18" in Symbol 642 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 628 MovieClip "tp5" in Symbol 642 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 628 MovieClip "tp15" in Symbol 642 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 212 MovieClip "hero" in Symbol 642 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 641 MovieClip in Symbol 642 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 650 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 176 MovieClip in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 650 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 628 MovieClip "tp24" in Symbol 650 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 628 MovieClip "tp20" in Symbol 650 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 628 MovieClip "tp8" in Symbol 650 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 628 MovieClip "tp12" in Symbol 650 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 628 MovieClip "tp28" in Symbol 650 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 628 MovieClip "tp100" in Symbol 650 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 628 MovieClip "tp22" in Symbol 650 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 628 MovieClip "tp30" in Symbol 650 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 628 MovieClip "tp18" in Symbol 650 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 628 MovieClip "tp32" in Symbol 650 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 628 MovieClip "tp6" in Symbol 650 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 628 MovieClip "tp26" in Symbol 650 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 628 MovieClip "tp29" in Symbol 650 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 628 MovieClip "tp2" in Symbol 650 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 628 MovieClip "tp31" in Symbol 650 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 628 MovieClip "tp27" in Symbol 650 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 628 MovieClip "tp14" in Symbol 650 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 628 MovieClip "tp10" in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 628 MovieClip "tp4" in Symbol 650 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 192 MovieClip in Symbol 650 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 643 MovieClip in Symbol 650 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 644 MovieClip in Symbol 650 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 195 MovieClip in Symbol 650 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 645 MovieClip in Symbol 650 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 195 MovieClip in Symbol 650 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 628 MovieClip "tp101" in Symbol 650 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 628 MovieClip "tp1" in Symbol 650 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 628 MovieClip "tp3" in Symbol 650 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 628 MovieClip "tp5" in Symbol 650 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 628 MovieClip "tp7" in Symbol 650 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 628 MovieClip "tp9" in Symbol 650 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 628 MovieClip "tp11" in Symbol 650 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 628 MovieClip "tp13" in Symbol 650 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 628 MovieClip "tp15" in Symbol 650 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 628 MovieClip "tp17" in Symbol 650 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 628 MovieClip "tp19" in Symbol 650 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 628 MovieClip "tp21" in Symbol 650 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 628 MovieClip "tp16" in Symbol 650 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 628 MovieClip "tp23" in Symbol 650 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 628 MovieClip "tp25" in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 192 MovieClip in Symbol 650 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 646 MovieClip in Symbol 650 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 647 MovieClip in Symbol 650 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 332 MovieClip in Symbol 650 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 332 MovieClip in Symbol 650 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 332 MovieClip in Symbol 650 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 212 MovieClip "hero" in Symbol 650 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 649 MovieClip in Symbol 650 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 652 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 661 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 176 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 661 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 652 MovieClip "dr1" in Symbol 661 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 302 MovieClip in Symbol 661 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 628 MovieClip "tp6" in Symbol 661 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 628 MovieClip "tp3" in Symbol 661 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 192 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 628 MovieClip "tp8" in Symbol 661 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 192 MovieClip in Symbol 661 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 628 MovieClip "tp1" in Symbol 661 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 192 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 192 MovieClip in Symbol 661 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 628 MovieClip "tp11" in Symbol 661 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 628 MovieClip "tp10" in Symbol 661 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 628 MovieClip "tp9" in Symbol 661 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 628 MovieClip "tp7" in Symbol 661 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 628 MovieClip "tp12" in Symbol 661 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 302 MovieClip in Symbol 661 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 628 MovieClip "tp2" in Symbol 661 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 192 MovieClip in Symbol 661 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 628 MovieClip "tp4" in Symbol 661 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 628 MovieClip "tp5" in Symbol 661 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 653 MovieClip "dr2" in Symbol 661 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 192 MovieClip in Symbol 661 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 656 MovieClip in Symbol 661 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 657 MovieClip in Symbol 661 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 658 MovieClip in Symbol 661 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 659 MovieClip in Symbol 661 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 660 MovieClip in Symbol 661 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 212 MovieClip "hero" in Symbol 661 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 670 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 176 MovieClip in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 663 MovieClip in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 628 MovieClip "tp1" in Symbol 670 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 628 MovieClip "tp2" in Symbol 670 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 628 MovieClip "tp5" in Symbol 670 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 628 MovieClip "tp3" in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 192 MovieClip in Symbol 670 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 628 MovieClip "tp6" in Symbol 670 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 628 MovieClip "tp12" in Symbol 670 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 628 MovieClip "tp8" in Symbol 670 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 628 MovieClip "tp7" in Symbol 670 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 628 MovieClip "tp11" in Symbol 670 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 628 MovieClip "tp4" in Symbol 670 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 664 MovieClip in Symbol 670 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 665 MovieClip in Symbol 670 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 666 MovieClip in Symbol 670 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 667 MovieClip in Symbol 670 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 668 MovieClip in Symbol 670 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 669 MovieClip in Symbol 670 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 212 MovieClip "hero" in Symbol 670 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 192 MovieClip in Symbol 670 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 389 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 400 MovieClip in Symbol 670 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 675 MovieClip Frame 1
stop();
Symbol 676 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 176 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 676 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 676 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 212 MovieClip "hero" in Symbol 676 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 672 MovieClip in Symbol 676 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 675 MovieClip "dur5" in Symbol 676 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 678 MovieClip Frame 1
stop();
Symbol 681 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 176 MovieClip in Symbol 681 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 681 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 681 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 681 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 681 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 212 MovieClip "hero" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 678 MovieClip "dur5" in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 680 MovieClip in Symbol 681 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 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 176 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 684 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 192 MovieClip in Symbol 684 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 192 MovieClip in Symbol 684 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 192 MovieClip in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 184 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 212 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 192 MovieClip in Symbol 684 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 192 MovieClip in Symbol 684 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 672 MovieClip in Symbol 684 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 672 MovieClip in Symbol 684 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 672 MovieClip in Symbol 684 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 672 MovieClip in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 675 MovieClip "dur5" in Symbol 684 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 696 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 176 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 686 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 696 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 319 MovieClip "dr5" in Symbol 696 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 192 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 302 MovieClip in Symbol 696 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 302 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 302 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 319 MovieClip "dr1" in Symbol 696 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 319 MovieClip "dr2" in Symbol 696 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 389 MovieClip in Symbol 696 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 389 MovieClip in Symbol 696 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 302 MovieClip in Symbol 696 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 319 MovieClip "dr3" in Symbol 696 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 628 MovieClip "tp4" in Symbol 696 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 628 MovieClip "tp3" in Symbol 696 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 400 MovieClip in Symbol 696 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 628 MovieClip "tp6" in Symbol 696 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 628 MovieClip "tp5" in Symbol 696 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 628 MovieClip "tp7" in Symbol 696 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 628 MovieClip "tp8" in Symbol 696 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 192 MovieClip in Symbol 696 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 628 MovieClip "tp1" in Symbol 696 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 628 MovieClip "tp2" in Symbol 696 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 687 MovieClip in Symbol 696 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 690 MovieClip in Symbol 696 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 696 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 696 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 693 MovieClip in Symbol 696 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 694 MovieClip in Symbol 696 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 212 MovieClip "hero" in Symbol 696 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 695 MovieClip in Symbol 696 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 628 MovieClip "tp101" in Symbol 696 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 192 MovieClip in Symbol 696 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 628 MovieClip "tp102" in Symbol 696 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 389 MovieClip in Symbol 696 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 389 MovieClip in Symbol 696 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 192 MovieClip in Symbol 696 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 705 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 176 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 698 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 705 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 331 MovieClip "dr1" in Symbol 705 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 331 MovieClip "dr2" in Symbol 705 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 331 MovieClip "dr3" in Symbol 705 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 331 MovieClip "dr4" in Symbol 705 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 331 MovieClip "dr5" in Symbol 705 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 302 MovieClip in Symbol 705 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 302 MovieClip in Symbol 705 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 302 MovieClip in Symbol 705 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 302 MovieClip in Symbol 705 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 192 MovieClip in Symbol 705 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 192 MovieClip in Symbol 705 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 628 MovieClip "tp2" in Symbol 705 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 628 MovieClip "tp1" in Symbol 705 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 192 MovieClip in Symbol 705 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 302 MovieClip in Symbol 705 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 192 MovieClip in Symbol 705 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 192 MovieClip in Symbol 705 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 192 MovieClip in Symbol 705 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 389 MovieClip in Symbol 705 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 389 MovieClip in Symbol 705 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 389 MovieClip in Symbol 705 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 302 MovieClip in Symbol 705 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 362 MovieClip "dr6" in Symbol 705 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 420 MovieClip "dr7" in Symbol 705 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 302 MovieClip in Symbol 705 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 389 MovieClip in Symbol 705 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 389 MovieClip in Symbol 705 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 389 MovieClip in Symbol 705 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 699 MovieClip in Symbol 705 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 705 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 701 MovieClip in Symbol 705 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 702 MovieClip in Symbol 705 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 703 MovieClip in Symbol 705 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 704 MovieClip in Symbol 705 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 212 MovieClip "hero" in Symbol 705 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 713 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 176 MovieClip in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 344 MovieClip in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 420 MovieClip "dr6" in Symbol 713 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 302 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 420 MovieClip "dr10" in Symbol 713 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 302 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 362 MovieClip "dr3" in Symbol 713 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 362 MovieClip "dr2" in Symbol 713 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 184 MovieClip in Symbol 713 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 420 MovieClip "dr5" in Symbol 713 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 420 MovieClip "dr4" in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 362 MovieClip "dr8" in Symbol 713 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 302 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 362 MovieClip "dr11" in Symbol 713 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 192 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 420 MovieClip "dr12" in Symbol 713 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 362 MovieClip "dr7" in Symbol 713 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 184 MovieClip in Symbol 713 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 628 MovieClip "tpp2" in Symbol 713 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 389 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 420 MovieClip "dr9" in Symbol 713 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 302 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 302 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 192 MovieClip in Symbol 713 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 628 MovieClip "tpp1" in Symbol 713 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 302 MovieClip in Symbol 713 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 362 MovieClip "dr1" in Symbol 713 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 706 MovieClip in Symbol 713 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 707 MovieClip in Symbol 713 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 708 MovieClip in Symbol 713 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 709 MovieClip in Symbol 713 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 710 MovieClip in Symbol 713 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 711 MovieClip in Symbol 713 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 712 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 389 MovieClip in Symbol 713 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 212 MovieClip "hero" in Symbol 713 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 719 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 176 MovieClip in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 302 MovieClip in Symbol 719 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 302 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 352 MovieClip "dr1" in Symbol 719 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 350 MovieClip "dr2" in Symbol 719 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 714 MovieClip in Symbol 719 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 715 MovieClip in Symbol 719 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 716 MovieClip in Symbol 719 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 717 MovieClip in Symbol 719 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 718 MovieClip in Symbol 719 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 192 MovieClip in Symbol 719 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 212 MovieClip "hero" in Symbol 719 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 720 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 176 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 184 MovieClip in Symbol 720 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 212 MovieClip "hero" in Symbol 720 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 302 MovieClip in Symbol 720 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 192 MovieClip in Symbol 720 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 319 MovieClip "dr4" in Symbol 720 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 723 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 176 MovieClip in Symbol 723 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 723 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 723 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 723 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 195 MovieClip in Symbol 723 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 184 MovieClip in Symbol 723 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 192 MovieClip in Symbol 723 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 302 MovieClip in Symbol 723 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 319 MovieClip "dr1" in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 192 MovieClip in Symbol 723 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 302 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 192 MovieClip in Symbol 723 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 302 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 319 MovieClip "dr3" in Symbol 723 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 319 MovieClip "dr2" in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 192 MovieClip in Symbol 723 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 302 MovieClip in Symbol 723 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 195 MovieClip in Symbol 723 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 319 MovieClip "dr4" in Symbol 723 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 722 MovieClip in Symbol 723 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 212 MovieClip "hero" in Symbol 723 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 176 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 176 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
tp = "x";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip "up_wall" in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 178 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
tp = "y";
_root.to_hit_walls.push(this);
}
Instance of Symbol 195 MovieClip in Symbol 726 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 184 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Instance of Symbol 725 MovieClip in Symbol 726 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 302 MovieClip in Symbol 726 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 319 MovieClip "dr1" in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 725 MovieClip in Symbol 726 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 302 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 725 MovieClip in Symbol 726 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 302 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 319 MovieClip "dr3" in Symbol 726 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 319 MovieClip "dr2" in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 725 MovieClip in Symbol 726 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 302 MovieClip in Symbol 726 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 195 MovieClip in Symbol 726 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 319 MovieClip "dr4" in Symbol 726 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 212 MovieClip "hero" in Symbol 726 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;
}