Frame 1
function onSubmitterFailure() {
trace("Can not use submitter");
}
function onSubmitterSuccess(target) {
trace("Submitter loaded, intialised and available for use");
}
stop();
_root.loadedamount = 0;
this.onEnterFrame = function () {
var _local4 = this.getBytesLoaded();
var _local5 = this.getBytesTotal();
var _local3 = Math.round((_local4 / _local5) * 100);
if (_root.intro.intro1.intro1inside._currentframe < _local3) {
_root.intro.intro1.intro1inside.nextFrame();
}
if (_root.intro.intro2.intro2inside._currentframe < _local3) {
_root.intro.intro2.intro2inside.nextFrame();
}
if (_root.intro.intro3.intro3inside._currentframe < _local3) {
_root.intro.intro3.intro3inside.nextFrame();
}
if (_root.intro.intro4.intro4inside._currentframe < _local3) {
_root.intro.intro4.intro4inside.nextFrame();
}
if (_root.intro.intro5.intro5inside._currentframe < _local3) {
_root.intro.intro5.intro5inside.nextFrame();
}
if (_root.intro.intro6.intro6inside._currentframe < _local3) {
_root.intro.intro6.intro6inside.nextFrame();
}
if (_root.intro.intro7.intro7inside._currentframe < _local3) {
_root.intro.intro7.intro7inside.nextFrame();
}
_root.loadedamount = _local3;
if (_local4 >= _local5) {
}
};
var submitter = new SubmitterProxy();
submitter = attachMovie("submitterProxy", submitter, getNextHighestDepth());
submitter.addEventListener("LoadingFailed", mx.utils.Delegate.create(this, onSubmitterFailure));
submitter.addEventListener("SubmitterLoadedSuccesfull", mx.utils.Delegate.create(this, onSubmitterSuccess));
submitter.setLoader(_root, "Heaven-and-Hell", "Heaven-and-Hell.html", 0, "normal", "", 0, 0, 1, true, 1);
function doSomething() {
getURL ("http://www.eggysgames.com/", "_blank");
}
function doSomething2() {
getURL ("http://www.spilgames.com/", "blank");
}
stop();
sound = true;
spiderskilled = 0;
halfway = false;
finished = false;
potionsused = 0;
seedsbought = 0;
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Made by Eggy and Drew", doSomething);
Functioned2 = new ContextMenuItem("Spilgames", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
stop();
gamename = "game_name_here";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
_root.localization_url1 = (((("http://www.egames.jp/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 17;
_root.localization_branding_nr = 49;
_root.localization_portal = "egames_jp";
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=heavenandhell") + "heavenandhell") + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "teens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Frame 5
f.gotoAndPlay(1);
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("d7c0461b", this, 10301, true);
stop();
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Frame 5
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Frame 6
f.gotoAndPlay(1);
stop();
Frame 7
f.gotoAndPlay(1);
stopAllSounds();
if (_root.sound == true) {
someSound = new Sound(lala);
someSound.attachSound("heavenmusic", this);
someSound.start(0, 999);
someSound.setVolume(100);
someSound2 = new Sound(tester);
someSound2.attachSound("hellmusic", this);
someSound2.start(0, 999);
someSound2.setVolume(0);
}
stop();
day = 1;
souls = 5;
dietut = false;
wintut = false;
starttut = false;
timetime = 0;
presseddown = false;
startdelay = 0;
uuuu.damage = 0;
enemies = 0;
g = 100;
zz = 4000;
globaltimer = 0;
maxamount = 0;
inhell = false;
pressed = false;
charisbusy = false;
uuuu.gooditems.gotoAndStop(1);
seedamount = 3;
bombamount = 0;
bubbleamount = 0;
wallamount = 0;
ladderamount = 0;
shootamount = 0;
potionamount = 0;
wingamount = 0;
iceamount = 0;
seedprice = 2;
bombprice = 6;
bubbleprice = 8;
platformprice = 6;
ladderprice = 5;
fireballprice = 3;
potionprice = 6;
wingprice = 8;
freezeprice = 5;
anotherholder = seedprice;
anotherholder2 = bombprice;
anotherholder3 = bubbleprice;
busymenu = false;
once = false;
once2 = false;
reset = false;
switchone = false;
ydiff = 0;
ypos = 0;
ready = false;
char.ok = false;
i = 2000;
bombup = bombprice;
bubbleup = bubbleprice;
_root.myBmp = new flash.display.BitmapData(1000, 1000, true, 0);
_root.ground.attachBitmap(myBmp, 0, "always", false);
_root.myBmp.draw(ground);
_root.ground.b._visible = false;
_root.myBmp2 = new flash.display.BitmapData(1000, 1000, true, 0);
_root.saveground.attachBitmap(myBmp2, 9950, "always", false);
_root.myBmp2.draw(ground);
onEnterFrame = function () {
if ((inhell == true) and (_root.ready == true)) {
startdelay++;
if (startdelay > 60) {
globaltimer++;
if ((_root.day == 1) and (maxamount < 5)) {
if (globaltimer > 20) {
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 2) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 3) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 4) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 5) and (maxamount < 15)) {
if (globaltimer > 20) {
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 6) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 7) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 8) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 9) and (maxamount < 16)) {
if (globaltimer > 40) {
duplicateMovieClip (spider, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (meteor, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 10) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (meteor, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 11) and (maxamount < 15)) {
if (globaltimer > 30) {
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 12) and (maxamount < 15)) {
if (globaltimer > 30) {
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 13) and (maxamount < 15)) {
if (globaltimer > 30) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 14) and (maxamount < 15)) {
if (globaltimer > 30) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 15) and (maxamount < 20)) {
if (globaltimer > 40) {
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 16) and (maxamount < 5)) {
if (globaltimer > 20) {
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 17) and (maxamount < 10)) {
if (globaltimer > 30) {
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 18) and (maxamount < 20)) {
if (globaltimer > 20) {
duplicateMovieClip (goblin, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 19) and (maxamount < 25)) {
if (globaltimer > 50) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 20) and (maxamount < 20)) {
halfway = true;
if (globaltimer > 50) {
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 21) and (maxamount < 15)) {
if (globaltimer > 25) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 22) and (maxamount < 18)) {
if (globaltimer > 20) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 23) and (maxamount < 25)) {
if (globaltimer > 30) {
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 24) and (maxamount < 30)) {
if (globaltimer > 25) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 25) and (maxamount < 20)) {
if (globaltimer > 25) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 26) and (maxamount < 10)) {
if (globaltimer > 20) {
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 27) and (maxamount < 15)) {
if (globaltimer > 60) {
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 28) and (maxamount < 20)) {
if (globaltimer > 20) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 29) and (maxamount < 20)) {
if (globaltimer > 25) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 30) and (maxamount < 20)) {
if (globaltimer > 25) {
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 31) and (maxamount < 5)) {
if (globaltimer > 20) {
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 32) and (maxamount < 20)) {
if (globaltimer > 80) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 33) and (maxamount < 25)) {
if (globaltimer > 35) {
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 34) and (maxamount < 25)) {
if (globaltimer > 40) {
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (fireblob, "newfireblob" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 35) and (maxamount < 25)) {
if (globaltimer > 50) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 36) and (maxamount < 25)) {
if (globaltimer > 60) {
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 37) and (maxamount < 25)) {
if (globaltimer > 80) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (goblin, "newgoblin" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 38) and (maxamount < 25)) {
if (globaltimer > 90) {
duplicateMovieClip (meteor, "newmeteor" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (bat, "newbat" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 39) and (maxamount < 25)) {
if (globaltimer > 80) {
duplicateMovieClip (penta, "newpenta" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (spider, "newspider" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if ((_root.day == 40) and (maxamount < 20)) {
finished = true;
if (globaltimer > 35) {
duplicateMovieClip (skele, "newskele" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (girl, "newgirl" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
duplicateMovieClip (guy, "newguy" + g, g);
enemies = enemies + 1;
g++;
maxamount++;
globaltimer = 0;
}
}
if (((enemies == 0) and (globaltimer > 100)) and (_root.char2._currentframe != 7)) {
_root.char2.gotoAndStop(7);
}
if (g > 131) {
g = 100;
}
if (i > 3000) {
i = 2000;
}
if (zz > 5000) {
zz = 4000;
}
}
}
};
changetohell = function () {
_root.myBmp2 = new flash.display.BitmapData(1000, 1000, true, 0);
_root.saveground.attachBitmap(myBmp2, 9950, "always", false);
_root.myBmp2.draw(ground);
if (_root.sound == true) {
someSound2.setVolume(40);
}
holder = seedamount;
holder2 = bombamount;
holder3 = bubbleamount;
holder4 = wallamount;
holder5 = ladderamount;
holder6 = shootamount;
holder7 = potionamount;
holder8 = wingamount;
holder9 = iceamount;
if (starttut == false) {
_root.shopkeeperchat.gotoAndStop(5);
starttut = true;
}
_root.dayname.gotoAndPlay(2);
_root.uuuu.gotoAndStop(2);
_root.inhell = true;
_root.char.gotoAndStop(1);
_root.bg.gotoAndStop(2);
_root.scenery.gotoAndStop(2);
_root.shop._visible = false;
_root.char2._x = _root.char._x;
_root.char2._y = _root.char._y;
_root.char2.gotoAndStop(6);
_root.char2.gravity = 0;
_root.char2._visible = true;
_root.char._visible = false;
};
changetoheaven = function () {
_root.myBmp2 = new flash.display.BitmapData(1000, 1000, true, 0);
_root.saveground.attachBitmap(myBmp2, 9950, "always", false);
_root.myBmp2.draw(ground);
if (_root.sound == true) {
someSound.setVolume(100);
someSound2.setVolume(0);
}
_root.seedprice = anotherholder;
_root.bombprice = anotherholder2;
_root.bubbleprice = anotherholder3;
_root.uuuu.damage = 0;
_root.uuuu.gotoAndStop(1);
_root.scenery.gotoAndStop(1);
_root.bg.gotoAndStop(1);
_root.shop._visible = true;
_root.inhell = false;
_root.day = _root.day + 1;
_root.maxamount = 0;
_root.globaltimer = 0;
_root.char2.gotoAndStop(1);
_root.char._x = _root.char2._x;
_root.char._y = _root.char2._y;
_root.char.gotoAndStop(7);
_root.char._visible = true;
_root.char2._visible = false;
_root.char2._x = -35;
_root.char2._y = -35;
_root.startdelay = 0;
if (wintut == false) {
shopkeeperchat.gotoAndStop(8);
wintut = true;
}
};
backup = function () {
i = 99;
while (i < 133) {
removeMovieClip("newmeteor" + i);
removeMovieClip("newpenta" + i);
if (_root["newspider" + i]._currentframe < 3) {
removeMovieClip(_root["newspider" + i]);
}
if (_root["newgoblin" + i]._currentframe < 3) {
removeMovieClip(_root["newgoblin" + i]);
}
if (_root["newfireblob" + i]._currentframe < 3) {
removeMovieClip(_root["newfireblob" + i]);
}
if (_root["newbat" + i]._currentframe < 3) {
removeMovieClip(_root["newbat" + i]);
}
if (_root["newgirl" + i]._currentframe < 3) {
removeMovieClip(_root["newgirl" + i]);
}
if (_root["newguy" + i]._currentframe < 3) {
removeMovieClip(_root["newguy" + i]);
}
if (_root["newskele" + i]._currentframe < 3) {
removeMovieClip(_root["newskele" + i]);
}
i++;
}
};
died = function () {
i = 99;
while (i < 133) {
removeMovieClip("newmeteor" + i);
removeMovieClip("newpenta" + i);
removeMovieClip("newspider" + i);
removeMovieClip("newgoblin" + i);
removeMovieClip("newfireblob" + i);
removeMovieClip("newbat" + i);
removeMovieClip("newgirl" + i);
removeMovieClip("newguy" + i);
removeMovieClip("newskele" + i);
i++;
}
i = 4000;
while (i < 5001) {
removeMovieClip("newredball" + i);
removeMovieClip("newfireball" + i);
i++;
}
_root.myBmp.draw(saveground);
if (_root.sound == true) {
someSound.setVolume(100);
someSound2.setVolume(0);
}
seedamount = holder;
bombamount = holder2;
bubbleamount = holder3;
wallamount = holder4;
ladderamount = holder5;
shootamount = holder6;
potionamount = holder7;
wingamount = holder8;
iceamount = holder9;
_root.seedprice = anotherholder;
_root.bombprice = anotherholder2;
_root.bubbleprice = anotherholder3;
_root.souls = _root.souls + 2;
_root.uuuu.damage = 0;
_root.uuuu.gotoAndStop(1);
_root.scenery.gotoAndStop(1);
_root.bg.gotoAndStop(1);
_root.shop._visible = true;
_root.inhell = false;
_root.maxamount = 0;
_root.globaltimer = 0;
_root.char2.gotoAndStop(1);
_root.char._x = 150;
_root.char._y = 100;
_root.char._visible = true;
_root.char2._visible = false;
_root.char2._x = -35;
_root.char2._y = -35;
_root.char2.gravity = 0;
_root.enemies = 0;
_root.g = 100;
_root.maxamount = 0;
if (dietut == false) {
shopkeeperchat.gotoAndStop(7);
dietut = true;
}
};
stop();
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Instance of Symbol 509 MovieClip "goodfireball" in Frame 7
onClipEvent (load) {
scale = _xscale;
speed = 8;
}
onClipEvent (enterFrame) {
i = 100;
while (i < 132) {
if (_root["newgoblin" + i].hitTest(this) and (_root["newgoblin" + i]._currentframe != 4)) {
_root["newgoblin" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newspider" + i].hitTest(this) and (_root["newspider" + i]._currentframe != 4)) {
_root["newspider" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newfireblob" + i].hitTest(this) and (_root["newfireblob" + i]._currentframe != 4)) {
_root["newfireblob" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newbat" + i].hitTest(this) and (_root["newbat" + i]._currentframe != 4)) {
_root["newbat" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newgirl" + i].hitTest(this) and (_root["newgirl" + i]._currentframe != 4)) {
_root["newgirl" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newguy" + i].hitTest(this) and (_root["newguy" + i]._currentframe != 4)) {
_root["newguy" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newskele" + i].hitTest(this) and (_root["newskele" + i]._currentframe != 4)) {
_root["newskele" + i].gotoAndStop(4);
removeMovieClip(this);
}
i++;
}
if (dir == true) {
_x = (_x + speed);
_xscale = (-scale);
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 10, _y);
_root.myBmp.draw(_root.hole, myMatrix, 0, "erase");
}
if (dir == false) {
_x = (_x - speed);
_xscale = scale;
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y);
_root.myBmp.draw(_root.hole, myMatrix, 0, "erase");
}
if (_root.inhell == false) {
removeMovieClip(this);
}
}
Instance of Symbol 515 MovieClip "penta" in Frame 7
onClipEvent (load) {
if (_name != "penta") {
speed = 1;
scale = _xscale;
gravity = 0;
stoptimer = random(150) + 50;
bob = random(2) + 1;
freeze = false;
freezetimer = 0;
teletimer = 0;
death = false;
timer = 0;
dir = true;
freeze = false;
freezetimer = 0;
if (bob == 1) {
_x = -50;
_xscale = (-scale);
}
if (bob == 2) {
_x = 700;
_xscale = scale;
}
_y = (random(200) + 220);
}
}
onClipEvent (enterFrame) {
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
attack.stop();
}
if (freeze == false) {
if (_name != "penta") {
if (death == true) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(_root.holethree, myMatrix, 0, "erase");
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
removeMovieClip(this);
}
if ((stoptimer < 0) and (_currentframe == 1)) {
gotoAndStop (2);
}
stoptimer--;
if (_currentframe == 1) {
if (stoptimer < 0) {
if ((!_root.myBmp.getPixel32(_x, _y + 40)) != 0) {
_y = (_y+1);
}
}
if (stoptimer < 0) {
timer++;
if (timer > (60 + random(30))) {
}
}
if (bob == 1) {
if (stoptimer > 0) {
_x = (_x + 3);
}
if (_x > 800) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
if (bob == 2) {
if (stoptimer > 0) {
_x = (_x - 3);
}
if (_x < -100) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (6);
}
if (_currentframe == 5) {
_y = (_y-1);
if (_root.char.hitTest(this)) {
_root.souls = _root.souls + 1;
removeMovieClip(this);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
gotoAndStop (4);
}
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 10;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
}
}
}
Instance of Symbol 719 MovieClip "char" in Frame 7
onClipEvent (load) {
scale = _xscale;
bob = 5000;
this.swapDepths(bob);
speed = 10;
timer = 0;
dir = false;
timerstart = false;
}
onClipEvent (enterFrame) {
if (((((_root.busymenu == false) and (_root.inhell == false)) and (_currentframe != 6)) and (_currentframe != 7)) and (_root.shopkeeperchat._currentframe == 1)) {
if (timerstart == true) {
timer++;
if (timer > 10) {
timerstart = false;
timer = 0;
}
}
if (((Key.isDown(13) and (_currentframe == 1)) and ((!_root.myBmp.getPixel32(_x, _y)) != 0)) and ((!_root.myBmp.getPixel32(_x, _y - 20)) != 0)) {
_x = (_x + speed);
gotoAndPlay (6);
}
if ((Key.isDown(32) and (timerstart == false)) and (_root.charisbusy == false)) {
if (_root.seedamount > 0) {
if (((!_root.myBmp.getPixel32(_x, _y)) != 0) and ((!_root.myBmp.getPixel32(_x, _y - 40)) != 0)) {
_root.seedamount = _root.seedamount - 1;
duplicateMovieClip (_root.seed, "newseed" + _root.i, _root.i);
_root.i++;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("", this);
someSound.start(0, 1);
}
timerstart = true;
}
}
}
if ((Key.isDown(83) and (timerstart == false)) and (_root.charisbusy == false)) {
if (_root.bombamount > 0) {
_root.bombamount = _root.bombamount - 1;
duplicateMovieClip (_root.bomb, "newbomb" + _root.i, _root.i);
_root.i++;
timerstart = true;
}
}
if ((Key.isDown(65) and (timerstart == false)) and (_root.charisbusy == false)) {
if (_root.bubbleamount > 0) {
_root.bubbleamount = _root.bubbleamount - 1;
duplicateMovieClip (_root.bubble, "newbubble" + _root.i, _root.i);
_root.i++;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("pop", this);
_root.someSoundz.start(0, 1);
}
timerstart = true;
}
}
if ((Key.isDown(87) and (timerstart == false)) and (_root.charisbusy == false)) {
if (_root.wallamount > 0) {
_root.wallamount = _root.wallamount - 1;
duplicateMovieClip (_root.wall, "newwall" + _root.i, _root.i);
_root.i++;
timerstart = true;
}
}
if ((Key.isDown(68) and (timerstart == false)) and (_root.charisbusy == false)) {
if (_root.ladderamount > 0) {
_root.ladderamount = _root.ladderamount - 1;
duplicateMovieClip (_root.ladder, "newladder" + _root.i, _root.i);
_root.i++;
timerstart = true;
}
}
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
dir = false;
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
dir = true;
}
if (Key.isDown(38)) {
_y = (_y - speed);
}
if (Key.isDown(40)) {
_y = (_y + speed);
}
if (_x > 680) {
_x = 680;
}
if (_x < 20) {
_x = 20;
}
if (_y > 550) {
_y = 550;
}
if (_y < 30) {
_y = 30;
}
}
}
Instance of Symbol 751 MovieClip "shop" in Frame 7
onClipEvent (load) {
tt._visible = false;
once = false;
once2 = false;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
gotoAndStop (2);
tt._visible = true;
} else {
gotoAndStop (1);
tt._visible = false;
}
if ((((Key.isDown(69) and (_root.busymenu == false)) and _root.char.hitTest(this)) and (_root.busymenu == false)) and (_root.presseddown == false)) {
_root.presseddown = true;
_root.busymenu = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bells", this);
someSound.start(0, 1);
}
_root.ui._visible = true;
if (once == false) {
_root.shopkeeperchat.gotoAndStop(3);
once = true;
}
} else if ((Key.isDown(69) and (_root.presseddown == false)) and (_root.busymenu == true)) {
_root.presseddown = true;
_root.busymenu = false;
_root.ui._visible = false;
if (once2 == false) {
_root.shopkeeperchat.gotoAndStop(4);
once2 = true;
}
}
if (!Key.isDown(69)) {
_root.presseddown = false;
}
}
Instance of Symbol 765 MovieClip "bomb" in Frame 7
onClipEvent (load) {
if (_name != "bomb") {
if (_root.char.dir == false) {
_x = (_root.char._x + 20);
_y = (_root.char._y - 30);
}
if (_root.char.dir == true) {
_x = (_root.char._x - 20);
_y = (_root.char._y - 30);
}
gravity = 0;
justonce = true;
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "bomb") {
if (_currentframe == 1) {
i = 100;
while (i < 131) {
if (_root["newspider" + i].hitTest(this) and (_root["newspider" + i]._currentframe != 4)) {
_root["newspider" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newgoblin" + i].hitTest(this) and (_root["newgoblin" + i]._currentframe != 4)) {
_root["newgoblin" + i].gotoAndStop(4);
_root["newgoblin" + i].health = 0;
gotoAndStop (2);
}
if (_root["newfireblob" + i].hitTest(this) and (_root["newfireblob" + i]._currentframe != 4)) {
_root["newfireblob" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newbat" + i].hitTest(this) and (_root["newbat" + i]._currentframe != 4)) {
_root["newbat" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newgirl" + i].hitTest(this) and (_root["newgirl" + i]._currentframe != 4)) {
_root["newgirl" + i].gotoAndStop(4);
_root["newgirl" + i].health = 0;
gotoAndStop (2);
}
if (_root["newguy" + i].hitTest(this) and (_root["newguy" + i]._currentframe != 4)) {
_root["newguy" + i].gotoAndStop(4);
_root["newguy" + i].health = 0;
gotoAndStop (2);
}
if (_root["newskele" + i].hitTest(this) and (_root["newskele" + i]._currentframe != 4)) {
_root["newskele" + i].gotoAndStop(4);
_root["newskele" + i].health = 0;
gotoAndStop (2);
}
i++;
}
}
if (_currentframe == 2) {
timer++;
if (timer > 100) {
removeMovieClip(this);
}
}
if (_currentframe == 1) {
_y = (_y + gravity);
gravity++;
}
while ((_root.myBmp.getPixel32(_x, _y) != 0) and (_root.bob == false)) {
_y = (_y-1);
gravity = 0;
if (justonce == true) {
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("hit2", this);
_root.someSoundz.start(0, 1);
justonce = false;
}
}
}
}
}
Instance of Symbol 772 MovieClip "ladder" in Frame 7
onClipEvent (load) {
if (_name != "ladder") {
if (_root.char.dir == false) {
_x = (_root.char._x + 20);
_y = (_root.char._y - 30);
}
if (_root.char.dir == true) {
_x = (_root.char._x - 20);
_y = (_root.char._y - 30);
}
gravity = 0;
justonce = true;
active = false;
timer = 0;
jumping = false;
}
}
onClipEvent (enterFrame) {
if (_name != "ladder") {
if (_currentframe == 1) {
_y = (_y + gravity);
gravity++;
}
if ((_root.char2._currentframe != 6) and (_root.char2._currentframe != 7)) {
if ((fade.hitTest(_root.char2._x, _root.char2._y, true) and (jumping == false)) and (_root.char2.gogo == false)) {
active = true;
_root.char2.gogo = true;
}
}
if (((active == true) and fade.hitTest(_root.char2._x, _root.char2._y, true)) and (_root.char2._currentframe != 7)) {
if (Key.isDown(40)) {
_root.char2._y = _root.char2._y + 5;
}
_root.char2._y--;
_root.char2.gravity = 0;
if (Key.isDown(38) and (jumping == false)) {
if (hit.hitTest(_root.char2._x, _root.char2._y, true)) {
_root.char2.gravity = -_root.char2.jumpheight;
jumping = true;
}
_root.char2._y = _root.char2._y - 5;
}
}
if (((!fade.hitTest(_root.char2._x, _root.char2._y, true)) and (active == true)) and (_root.char2._currentframe != 7)) {
active = false;
_root.char2.gogo = false;
}
if (jumping == true) {
timer++;
if (timer > 22) {
jumping = false;
timer = 0;
}
}
while ((((_root.myBmp.getPixel32(_x, _y) != 0) and (_root.bob == false)) or ((_root.myBmp.getPixel32(_x + 10, _y) != 0) and (_root.bob == false))) or ((_root.myBmp.getPixel32(_x - 10, _y) != 0) and (_root.bob == false))) {
_y = (_y-1);
gravity = 0;
if (justonce == true) {
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("hit1", this);
_root.someSoundz.start(0, 1);
justonce = false;
}
}
}
if (_y > 650) {
removeMovieClip(this);
}
}
}
Instance of Symbol 898 MovieClip "bat" in Frame 7
onClipEvent (load) {
if (_name != "bat") {
speed = 1;
scale = _xscale;
gravity = 0;
bob = random(2) + 1;
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
teletimer = 0;
timer = 0;
dir = true;
freeze = false;
freezetimer = 0;
if (bob == 1) {
_x = -50;
_xscale = (-scale);
}
if (bob == 2) {
_x = 700;
_xscale = scale;
}
_y = (90 + random(40));
}
}
onClipEvent (enterFrame) {
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if (_name != "bat") {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
gotoAndStop (4);
}
if (freeze == false) {
if (_currentframe == 1) {
timer++;
if (timer > (80 + random(30))) {
duplicateMovieClip (_root.firebomb, "newfirebomb" + _root.zz, _root.zz);
_root["newfirebomb" + _root.zz]._y = _y;
_root["newfirebomb" + _root.zz]._x = _x;
_root.zz++;
gotoAndStop (2);
timer = 0;
}
if (bob == 1) {
_x = (_x + 3);
if (_x > 800) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
if (bob == 2) {
_x = (_x - 3);
if (_x < -100) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (6);
}
if (_currentframe == 5) {
if (!changed) {
_y = (_y-1);
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 1;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 270;
rot = this._rotation;
this._y = this._y - (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x + (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 5;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
}
}
}
}
Instance of Symbol 1160 MovieClip "seed" in Frame 7
onClipEvent (load) {
if (_name != "seed") {
if (_root.char.dir == false) {
_x = (_root.char._x + 20);
_y = (_root.char._y - 30);
}
if (_root.char.dir == true) {
_x = (_root.char._x - 20);
_y = (_root.char._y - 30);
}
gravity = 0;
drawnow = false;
}
}
onClipEvent (enterFrame) {
if (_name != "seed") {
if (_currentframe != 1) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(this, myMatrix, myCT, "draw");
}
if (_currentframe == 1) {
_y = (_y + gravity);
gravity++;
}
if ((_root.myBmp.getPixel32(_x, _y) != 0) and (_currentframe == 1)) {
bob = random(4) + 2;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("draw", this);
_root.someSoundz.start(0, 1);
}
gotoAndStop(bob);
}
if (drawnow == true) {
removeMovieClip(this);
}
if (_y > 800) {
_root.seedamount = _root.seedamount + 1;
removeMovieClip(this);
}
}
}
Instance of Symbol 1368 MovieClip "char2" in Frame 7
onClipEvent (load) {
rot = _rotation;
gravity = 0;
preventtimer = false;
counting = 0;
speed = 5;
justonce = false;
doublejump = false;
scale = _xscale;
jumpheight = 11;
jumponce = false;
_root.bob = false;
_root.stopper = false;
_root.ydiff = 0;
ok = false;
timer = 0;
timerstart = false;
deathtimer = 0;
dir = true;
pausee = false;
lol = 9999;
gogo = false;
this.swapDepths(lol);
}
onClipEvent (enterFrame) {
if (_root.shopkeeperchat._currentframe == 1) {
if (_currentframe == 12) {
_y = (_y - 5);
if (_y < 100) {
gravity = 0;
pausee = false;
gotoAndStop (1);
}
}
if (_currentframe == 8) {
_rotation = (_rotation + 40);
} else {
_rotation = rot;
}
if (_y > 700) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("scream", this);
someSound.start(0, 1);
}
_root.died();
}
if (_x > 680) {
_root.myarrow._xscale = -_root.myarrow.scale;
_root.myarrow._y = _y;
_root.myarrow._x = 680;
} else if (_x < 20) {
_root.myarrow._xscale = _root.myarrow.scale;
_root.myarrow._y = _y;
_root.myarrow._x = 20;
} else {
_root.myarrow._y = -355;
}
if (((((_root.busymenu == false) and (_root.inhell == true)) and (_currentframe != 7)) and (pausee == false)) and (_currentframe != 6)) {
if (_alpha < 100) {
_alpha = (_alpha+1);
}
if (Key.isDown(32)) {
if (_root.uuuu.baditems._currentframe == 1) {
if ((_currentframe != 9) and (_currentframe != 8)) {
gotoAndStop (9);
}
if (((_currentframe == 9) and (attack._currentframe > 11)) and (attack._currentframe < 14)) {
attack.gotoAndPlay(16);
}
if (((_currentframe == 9) and (attack._currentframe > 25)) and (attack._currentframe < 27)) {
attack.gotoAndPlay(28);
}
}
}
if (Key.isDown(65)) {
if (_root.shootamount > 0) {
if ((_currentframe != 9) and (_currentframe != 8)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("fireballsound", this);
someSound.start(0, 1);
}
gotoAndStop (10);
}
}
}
if (Key.isDown(68)) {
if (_root.potionamount > 0) {
if ((((_currentframe != 9) and (_currentframe != 8)) and (_currentframe != 11)) and (_currentframe != 12)) {
gotoAndStop (11);
_root.potionamount = _root.potionamount - 1;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("usepotion", this);
someSound.start(0, 1);
}
_root.potionsused = _root.potionsused + 1;
_root.uuuu.damage = 0;
}
}
}
if (Key.isDown(83)) {
if (_root.wingamount > 0) {
if (((_currentframe != 9) and (_currentframe != 8)) and (_currentframe != 12)) {
gotoAndStop (12);
_root.wingamount = _root.wingamount - 1;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("wingsound", this);
someSound.start(0, 1);
someSound = new Sound();
someSound.attachSound("wingsound", this);
someSound.start(0, 1);
}
pausee = true;
}
}
}
if (Key.isDown(87)) {
if (_root.iceamount > 0) {
if (((_currentframe != 9) and (_currentframe != 8)) and (_currentframe != 13)) {
gotoAndStop (13);
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("icesound", this);
someSound.start(0, 1);
}
pausee = true;
_root.iceamount = _root.iceamount - 1;
}
}
}
gravity++;
_y = (_y + gravity);
while ((_root.myBmp.getPixel32(_x, _y) != 0) and (_root.bob == false)) {
_y = (_y-1);
gravity = 0;
}
if (_currentframe == 8) {
if (left == true) {
_x = (_x - (5 + (_root.uuuu.damage / 5)));
}
if (left == false) {
_x = (_x + (5 + (_root.uuuu.damage / 5)));
}
deathtimer++;
if (deathtimer > 20) {
justonce = false;
doublejump = true;
deathtimer = 0;
gotoAndStop (4);
}
if (_root.myBmp.getPixel32(_x, _y + 3) != 0) {
gotoAndStop (1);
}
}
if (_root.myBmp.getPixel32(_x + 10, _y - 40) != 0) {
_x = (_x - speed);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 30) != 0) {
_x = (_x - speed);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 20) != 0) {
_x = (_x - speed);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 40) != 0) {
_x = (_x + speed);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 30) != 0) {
_x = (_x + speed);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 20) != 0) {
_x = (_x + speed);
}
if (_root.myBmp.getPixel32(_x, _y - 50) != 0) {
gravity = 0;
}
if (_currentframe != 8) {
if (Key.isDown(39)) {
_x = (_x + speed);
_xscale = scale;
dir = true;
if ((((((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe != 9)) and (_currentframe != 10)) and (_currentframe != 11)) and (_currentframe != 12)) and (_currentframe != 13)) {
this.gotoAndStop(2);
}
} else if (Key.isDown(37)) {
_x = (_x - speed);
_xscale = (-scale);
dir = false;
if ((((((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe != 9)) and (_currentframe != 10)) and (_currentframe != 11)) and (_currentframe != 12)) and (_currentframe != 13)) {
this.gotoAndStop(2);
}
}
if ((Key.isDown(38) and (doublejump == true)) and (justonce == false)) {
gotoAndStop (4);
_y = (_y - 4);
gravity = -jumpheight;
justonce = true;
doublejump = false;
}
if (Key.isDown(38) and (doublejump == false)) {
if (jumponce == false) {
preventtimer = true;
this.gotoAndStop(4);
jumponce = true;
_y = (_y - 4);
gravity = -jumpheight;
}
} else if ((((((((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (!Key.isDown(39))) and (!Key.isDown(37))) and (_currentframe != 9)) and (_currentframe != 10)) and (_currentframe != 11)) and (_currentframe != 12)) and (_currentframe != 13)) {
gotoAndStop (1);
}
if (_root.myBmp.getPixel32(_x, _y + 3) != 0) {
doublejump = false;
jumponce = false;
justonce = false;
}
if ((!Key.isDown(38)) and (counting > 2)) {
preventtimer = false;
counting = 0;
doublejump = true;
}
if (preventtimer == true) {
counting++;
}
if (_root.myBmp.getPixel32(_x, _y - 40) != 0) {
if (((((_root.char._y - _root._ymouse) > -20) and ((_root.char._y - _root._ymouse) < 40)) and ((_root.char._x - _root._xmouse) > -30)) and ((_root.char._x - _root._xmouse) < 30)) {
_root.stopper = true;
} else {
_root.stopper = false;
}
} else {
_root.stopper = false;
}
_root.ydiff = _root.ypos - _root.char._y;
if (_root.ydiff > 60) {
ok = true;
_root.char._y = _root.ypos;
_root.char._x = _root.xpos;
}
if (ok == false) {
_root.ypos = _root.char._y;
_root.xpos = _root.char._x;
}
if ((!_root.myBmp.getPixel32(_x, _y - 50)) != 0) {
ok = false;
}
}
}
}
}
Instance of Symbol 1398 MovieClip "meteor" in Frame 7
onClipEvent (load) {
if (_name != "meteor") {
speed = 9;
angle = 3;
bob = 0;
freeze = false;
freezetimer = 0;
myrandom = 4 + random(10);
timer = 0;
starttimer = false;
_x = random(550);
_y = -50;
}
}
onClipEvent (enterFrame) {
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
fire.play();
fire2.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
fire.stop();
fire2.stop();
}
if (freeze == false) {
if (_name != "meteor") {
if (_root.busymenu == false) {
if (_currentframe == 1) {
_y = (_y + 10);
}
if (((_root.myBmp.getPixel32(_x, _y) != 0) or (_root.myBmp.getPixel32(_x, _y + 10) != 0)) or (_root.myBmp.getPixel32(_x, _y - 10) != 0)) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
starttimer = true;
}
if ((starttimer == true) or (_y > 450)) {
timer++;
if (timer > myrandom) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(_root.holethree, myMatrix, 0, "erase");
gotoAndStop (2);
timer = 0;
}
}
}
}
}
}
Instance of Symbol 1418 MovieClip "wall" in Frame 7
onClipEvent (load) {
if (_name != "wall") {
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("draw", this);
_root.someSoundz.start(0, 1);
}
if (_root.char.dir == false) {
_x = (_root.char._x + 20);
_y = (_root.char._y - 30);
}
if (_root.char.dir == true) {
_x = (_root.char._x - 20);
_y = (_root.char._y - 30);
}
gravity = 0;
drawnow = false;
}
}
onClipEvent (enterFrame) {
if (_name != "wall") {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(this, myMatrix, myCT, "draw");
if (drawnow == true) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1420 MovieClip "myarrow" in Frame 7
onClipEvent (load) {
scale = _xscale;
}
Instance of Symbol 1502 MovieClip "spider" in Frame 7
onClipEvent (load) {
if (_name != "spider") {
speed = 1;
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
freeze = false;
spawn = false;
scale = _xscale;
gravity = 0;
_x = random(550);
gotoAndStop (7);
_y = -50;
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
teletimer = 0;
timer = 0;
dir = true;
freezetimer = 0;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 9) {
removeMovieClip(this);
}
if ((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe == 7)) {
gotoAndStop (1);
}
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
b1.play();
l1.play();
l2.play();
l3.play();
l4.play();
l5.play();
l6.play();
l7.play();
l8.play();
jumpp.play();
jumpp.b1.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
b1.stop();
l1.stop();
l2.stop();
l3.stop();
l4.stop();
l5.stop();
l6.stop();
l7.stop();
l8.stop();
jumpp.stop();
jumpp.b1.stop();
}
if (_name != "spider") {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
gotoAndStop (4);
}
if (freeze == false) {
if (spawn == false) {
_x = random(550);
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
}
if (gravity > 10) {
gravity = 10;
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
if (_root.shopkeeperchat._currentframe == 1) {
_y = (_y-1);
}
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 1;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 90;
rot = this._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 5;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_currentframe != 3) {
gravity++;
_y = (_y + gravity);
while (_root.myBmp.getPixel32(_x, _y) != 0) {
_y = (_y-1);
gravity = 0;
}
timer++;
if (timer > 60) {
gravity = -20;
jump = true;
}
if (jump == true) {
if (_root.char2._x < _x) {
dir = true;
}
if (_root.char2._x > _x) {
dir = false;
}
gotoAndStop (2);
gravity = -10;
timer = 0;
jump = false;
}
if (_currentframe == 2) {
if (dir == true) {
_x = (_x - (speed + 5));
_xscale = scale;
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y - 15);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 5, _y - 5);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
}
if (dir == false) {
_x = (_x + (speed + 5));
_xscale = (-scale);
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 10, _y - 15);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 5, _y - 5);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
}
if ((_root.myBmp.getPixel32(_x, _y + 10) != 0) and (gravity > 0)) {
gotoAndStop (1);
}
}
if ((_currentframe == 1) and (_root.myBmp.getPixel32(_x, _y + 15) != 0)) {
if (_root.char2._x < _x) {
_x = (_x - speed);
_xscale = scale;
}
if (_root.char2._x > _x) {
_x = (_x + speed);
_xscale = (-scale);
}
}
if ((_root.char2._y - _y) < -50) {
teletimer++;
if (teletimer > 50) {
gotoAndStop (3);
}
} else {
teletimer = 0;
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 40) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 30) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 20) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 40) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 30) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 20) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x, _y - 50) != 0) {
gravity = 0;
}
}
}
}
}
}
Instance of Symbol 1678 MovieClip "goblin" in Frame 7
onClipEvent (load) {
if (_name != "goblin") {
speed = 1;
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
spawn = false;
scale = _xscale;
gotoAndStop (7);
gravity = 0;
_x = random(550);
health = 1;
teletimer = 0;
_y = -50;
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
timer = 0;
dir = true;
freeze = false;
freezetimer = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe == 7)) {
gotoAndStop (1);
}
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if (_name != "goblin") {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if ((health > 0) and (_currentframe != 6)) {
health = health - 1;
freezetimer = 0;
freeze = false;
gotoAndStop (6);
} else if ((health <= 0) and (_currentframe != 6)) {
gotoAndStop (4);
}
}
if (freeze == false) {
if (spawn == false) {
_x = random(550);
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
}
if (gravity > 10) {
gravity = 10;
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
if (_root.shopkeeperchat._currentframe == 1) {
_y = (_y-1);
}
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 1;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 270;
rot = this._rotation;
this._y = this._y - (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x + (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 5;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_currentframe != 3) {
gravity++;
_y = (_y + gravity);
while (_root.myBmp.getPixel32(_x, _y) != 0) {
_y = (_y-1);
gravity = 0;
}
timer++;
if (timer > 60) {
gravity = -20;
jump = true;
}
if (jump == true) {
if (_root.char2._x < _x) {
dir = true;
}
if (_root.char2._x > _x) {
dir = false;
}
gotoAndStop (2);
gravity = -10;
timer = 0;
jump = false;
}
if (_currentframe == 2) {
if (dir == true) {
_x = (_x - (speed + 5));
_xscale = scale;
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y - 15);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 5, _y - 5);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
}
if (dir == false) {
_x = (_x + (speed + 5));
_xscale = (-scale);
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 10, _y - 15);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 5, _y - 5);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
}
if ((_root.myBmp.getPixel32(_x, _y + 10) != 0) and (gravity > 0)) {
gotoAndStop (1);
}
}
if ((_currentframe == 1) and (_root.myBmp.getPixel32(_x, _y + 15) != 0)) {
if (_root.char2._x < _x) {
_x = (_x - speed);
_xscale = scale;
}
if (_root.char2._x > _x) {
_x = (_x + speed);
_xscale = (-scale);
}
}
if ((_root.char2._y - _y) < -50) {
teletimer++;
if (teletimer > 50) {
gotoAndStop (3);
}
} else {
teletimer = 0;
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 40) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 30) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 20) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 40) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 30) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 20) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x, _y - 50) != 0) {
gravity = 0;
}
}
}
}
}
}
Instance of Symbol 1680 MovieClip "bubble" in Frame 7
onClipEvent (load) {
if (_name != "bubble") {
bubblego = false;
if (_root.char.dir == false) {
_x = (_root.char._x + 20);
_y = (_root.char._y - 30);
}
if (_root.char.dir == true) {
_x = (_root.char._x - 20);
_y = (_root.char._y - 30);
}
}
}
onClipEvent (enterFrame) {
if (_name != "bubble") {
if (_root.char2.hitTest(this) and (_root.char2.pausee == false)) {
bubblego = true;
if (_root.sound == true) {
someSoundz = new Sound();
someSoundz.attachSound("pop", this);
someSoundz.start(0, 1);
}
}
if (bubblego == true) {
_y = (_y - 3);
_root.char2._width = 30;
_root.char2._height = 30;
_root.char2.gotoAndStop(4);
_root.char2.pausee = true;
_root.char2.gravity = 0;
_root.char2._x = _x - 4;
_root.char2._y = _y + 15;
if (_y < 100) {
_root.char2._width = 52.8;
_root.char2._height = 43.1;
_root.char2.pausee = false;
bubbblego = false;
_root.bubbleprice = _root.bubbleprice - 10;
removeMovieClip(this);
}
}
}
}
Instance of Symbol 1717 MovieClip "fireblob" in Frame 7
onClipEvent (load) {
if (_name != "fireblob") {
speed = 1;
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
spawn = false;
scale = _xscale;
gravity = 0;
_x = random(550);
teletimer = 0;
_y = -50;
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
myrandom = random(50);
timer = 0;
dir = true;
gotoAndStop (7);
freeze = false;
freezetimer = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe == 7)) {
gotoAndStop (1);
}
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if (_name != "fireblob") {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
gotoAndStop (4);
}
if (freeze == false) {
if (spawn == false) {
_x = random(550);
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
}
if (gravity > 10) {
gravity = 10;
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
_y = (_y-1);
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 1;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 270;
rot = this._rotation;
this._y = this._y - (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x + (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 6;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_currentframe != 3) {
gravity++;
_y = (_y + gravity);
while (_root.myBmp.getPixel32(_x, _y) != 0) {
_y = (_y-1);
gravity = 0;
}
timer++;
if (timer > (80 + myrandom)) {
jump = true;
}
if (jump == true) {
if (_root.char2._x < _x) {
dir = true;
}
if (_root.char2._x > _x) {
dir = false;
}
gotoAndStop (2);
timer = 0;
jump = false;
}
if ((_currentframe == 2) and (attack._currentframe == 15)) {
duplicateMovieClip (_root.fireball, "newfireball" + _root.zz, _root.zz);
_root["newfireball" + _root.zz]._y = _y - 20;
if (_root.char2._x < _x) {
dir = true;
_root["newfireball" + _root.zz]._x = _x - 10;
_root["newfireball" + _root.zz].dir = false;
}
if (_root.char2._x > _x) {
dir = false;
_root["newfireball" + _root.zz]._x = _x + 10;
_root["newfireball" + _root.zz].dir = true;
}
_root.zz = _root.zz + 1;
}
if ((_currentframe == 1) and (_root.myBmp.getPixel32(_x, _y + 15) != 0)) {
if (_root.char2._x < _x) {
_x = (_x - speed);
_xscale = scale;
}
if (_root.char2._x > _x) {
_x = (_x + speed);
_xscale = (-scale);
}
}
if ((_root.char2._y - _y) < -50) {
teletimer++;
if (teletimer > 50) {
gotoAndStop (3);
}
} else {
teletimer = 0;
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 40) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 30) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 20) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 40) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 30) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 20) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x, _y - 50) != 0) {
gravity = 0;
}
}
}
}
}
}
Instance of Symbol 1740 MovieClip "fireball" in Frame 7
onClipEvent (load) {
scale = _xscale;
speed = 6;
freeze = false;
freezetimer = 0;
}
onClipEvent (enterFrame) {
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
stop();
}
if (freeze == false) {
if (dir == true) {
_x = (_x + speed);
_xscale = (-scale);
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 10, _y);
_root.myBmp.draw(_root.hole, myMatrix, 0, "erase");
}
if (dir == false) {
_x = (_x - speed);
_xscale = scale;
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y);
_root.myBmp.draw(_root.hole, myMatrix, 0, "erase");
}
if (((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 7;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
removeMovieClip(this);
}
if (_root.inhell == false) {
removeMovieClip(this);
}
if (_x > 730) {
removeMovieClip(this);
}
if (_x < -30) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1761 MovieClip "firebomb" in Frame 7
onClipEvent (load) {
gravity = 0;
scale = _xscale;
freeze = false;
freezetimer = 0;
}
onClipEvent (enterFrame) {
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if (freeze == false) {
if (_name != "firebomb") {
if (_currentframe == 1) {
gravity++;
_y = (_y + gravity);
if (_root.myBmp.getPixel32(_x, _y) != 0) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
gotoAndStop (2);
}
}
}
if (((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 5;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
removeMovieClip(this);
}
if (_root.inhell == false) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1772 MovieClip "girl" in Frame 7
onClipEvent (load) {
if (_name != "girl") {
speed = 1;
scale = _xscale;
gravity = 0;
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
health = 0;
stoptimer = random(150) + 50;
bob = random(2) + 1;
teletimer = 0;
timer = 0;
dir = true;
freeze = false;
freezetimer = 0;
if (bob == 1) {
_x = -70;
_xscale = (-scale);
}
if (bob == 2) {
_x = 750;
_xscale = scale;
}
_y = (100 + random(40));
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 9) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
_y = (_y-1);
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 2;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 90;
rot = this._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
this.newsoul.gotoAndStop(2);
}
}
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if ((_name != "girl") and (_currentframe != 5)) {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if ((health > 0) and (_currentframe != 6)) {
health = health - 1;
gotoAndStop (6);
freezetimer = 0;
freeze = false;
} else if ((health <= 0) and (_currentframe != 6)) {
gotoAndStop (4);
}
}
if (freeze == false) {
if (stoptimer < 0) {
if (_root.char2._x < _x) {
_xscale = scale;
}
if (_root.char2._x > _x) {
_xscale = (-scale);
}
}
stoptimer--;
if (_currentframe == 1) {
if (stoptimer < 0) {
if ((!_root.myBmp.getPixel32(_x, _y + 40)) != 0) {
_y = (_y+1);
}
}
if (stoptimer < 0) {
timer++;
if (timer > (60 + random(30))) {
duplicateMovieClip (_root.redball, "newredball" + _root.zz, _root.zz);
_root["newredball" + _root.zz]._y = _y - 40;
_root["newredball" + _root.zz]._x = _x;
_root.zz++;
gotoAndStop (2);
timer = 0;
}
}
if (bob == 1) {
if (stoptimer > 0) {
_x = (_x + 3);
}
if (_x > 800) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
if (bob == 2) {
if (stoptimer > 0) {
_x = (_x - 3);
}
if (_x < -100) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
}
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
_y = (_y-1);
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 2;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 90;
rot = this._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 5;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe != 5)) {
removeMovieClip(this);
}
}
}
}
}
Instance of Symbol 1774 MovieClip "redball" in Frame 7
onClipEvent (load) {
speed = 10;
X = _root.char2._x - _x;
Y = _root.char2._y - _y;
freeze = false;
freezetimer = 0;
}
onClipEvent (enterFrame) {
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
}
if (freeze == false) {
if (_name != "redball") {
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
if (_root.myBmp.getPixel32(_x, _y) != 0) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(_root.holethree, myMatrix, 0, "erase");
removeMovieClip(this);
}
if (((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 9;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
removeMovieClip(this);
}
if (_root.inhell == false) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 1837 MovieClip "skele" in Frame 7
onClipEvent (load) {
if (_name != "skele") {
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
speed = 1;
freeze = false;
spawn = false;
gotoAndStop (7);
scale = _xscale;
health = 5;
gravity = 0;
_x = random(550);
_y = -50;
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
teletimer = 0;
timer = 0;
dir = true;
freezetimer = 0;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 9) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
_y = (_y-1);
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 3;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 90;
rot = this._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if ((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe == 7)) {
gotoAndStop (1);
}
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if ((_name != "skele") and (_currentframe != 5)) {
if (((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if ((health > 0) and (_currentframe != 6)) {
health = health - 1;
freezetimer = 0;
freeze = false;
gotoAndStop (6);
} else if ((health <= 0) and (_currentframe != 6)) {
gotoAndStop (4);
}
}
if (freeze == false) {
if (spawn == false) {
_x = random(550);
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
}
if (gravity > 10) {
gravity = 10;
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
_y = (_y-1);
if (_root.char.hitTest(this)) {
_root.souls = _root.souls + 3;
removeMovieClip(this);
}
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if ((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 12;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_currentframe != 3) {
gravity++;
_y = (_y + gravity);
while (_root.myBmp.getPixel32(_x, _y) != 0) {
_y = (_y-1);
gravity = 0;
}
timer++;
if (timer > 60) {
gravity = -20;
jump = true;
}
if (jump == true) {
if (_root.char2._x < _x) {
dir = true;
}
if (_root.char2._x > _x) {
dir = false;
}
gotoAndStop (2);
gravity = -10;
timer = 0;
jump = false;
}
if (_currentframe == 2) {
if (dir == true) {
_x = (_x - (speed + 5));
_xscale = scale;
}
if (dir == false) {
_x = (_x + (speed + 5));
_xscale = (-scale);
}
if (attack._currentframe > 21) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(_root.holethree, myMatrix, 0, "erase");
}
}
if ((_root.char2._y - _y) < -50) {
teletimer++;
if (teletimer > 50) {
gotoAndStop (3);
}
} else {
teletimer = 0;
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 40) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 30) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 20) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 40) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 30) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 20) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x, _y - 50) != 0) {
gravity = 0;
}
if ((_root.inhell == false) and (_currentframe != 5)) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 1892 MovieClip "guy" in Frame 7
onClipEvent (load) {
if (_name != "guy") {
speed = 1;
health = 3;
freeze = false;
changed = false;
soulspeed = 7 + (Math.random() * 7);
rot = 0;
spawn = false;
scale = _xscale;
gotoAndStop (7);
gravity = 0;
staytimer = 0;
_x = random(550);
_y = -50;
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
teletimer = 0;
timer = 0;
dir = true;
freezetimer = 0;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe == 9) {
removeMovieClip(this);
}
if ((_root.inhell == false) and (_currentframe == 4)) {
gotoAndStop (5);
}
if (_currentframe == 5) {
if (!changed) {
_y = (_y-1);
}
if (changed) {
if (this.hitTest(_root.soulhitbox) && (this.newsoul.flyingsoul._currentframe < 2)) {
this.newsoul.flyingsoul.gotoAndStop(2);
this.newsoul.flyingsoul.sparkle.gotoAndPlay(1);
}
if ((this.newsoul.flyingsoul.sparkle._currentframe == 7) && (this.newsoul.flyingsoul._currentframe == 2)) {
_root.souls = _root.souls + 2;
removeMovieClip(this);
}
if (this.newsoul.flyingsoul._currentframe != 2) {
adjside = this._x - _root.soulhitbox._x;
oppside = -1 * (this._y - _root.soulhitbox._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = (-1 * angle) + 90;
rot = this._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
}
if (_root.char.hitTest(this) && (!changed)) {
changed = true;
if (_root.sound == true) {
_root.someSoundz = new Sound();
_root.someSoundz.attachSound("heartbeatsound", this);
_root.someSoundz.start(0, 1);
}
this.newsoul.gotoAndStop(2);
}
}
if ((_root.myBmp.getPixel32(_x, _y + 3) != 0) and (_currentframe == 7)) {
gotoAndStop (1);
}
if (freeze == true) {
freezetimer++;
}
if (freezetimer > 120) {
walk.play();
attack.play();
freezetimer = 0;
freeze = false;
}
if (_root.char2.hitTest(this) and (_root.char2._currentframe == 13)) {
freeze = true;
walk.stop();
attack.stop();
}
if (((_name != "guy") and (_currentframe != 4)) and (_currentframe != 5)) {
if ((((_root.char2.hitTest(this) and (_root.char2._currentframe == 9)) and (_currentframe != 3)) and (_root.char2.pausee == false)) and (_currentframe != 4)) {
if ((health > 0) and (_currentframe != 6)) {
health = health - 1;
gotoAndStop (6);
freezetimer = 0;
freeze = false;
} else if ((health <= 0) and (_currentframe != 6)) {
gotoAndStop (4);
}
}
if (freeze == false) {
if (jump == true) {
staytimer++;
if ((staytimer > 20) and (_currentframe != 4)) {
jump = false;
timer = 0;
gotoAndStop (1);
staytimer = 0;
}
}
if (spawn == false) {
_x = random(550);
i = 0;
while (i < 800) {
if (_root.myBmp.getPixel32(_x, _y + i) != 0) {
spawn = true;
}
i++;
}
}
if (gravity > 10) {
gravity = 10;
}
if ((_root.inhell == false) and (_root.char._currentframe == 6)) {
removeMovieClip(this);
}
if (((_root.busymenu == false) and (_currentframe != 4)) and (_root.inhell == true)) {
if (((((_root.char2.hit.hitTest(this) and (_root.char2._currentframe != 8)) and (_root.char2._alpha == 100)) and (_currentframe != 3)) and (_root.char2.pausee == false)) and (_currentframe != 4)) {
if (_root.char2._x < _x) {
_root.char2.left = true;
}
if (_root.char2._x > _x) {
_root.char2.left = false;
}
_root.uuuu.damage = _root.uuuu.damage + 10;
_root.char2.gotoAndStop(8);
_root.char2._alpha = 50;
_root.char2.gravity = -(10 + (_root.uuuu.damage / 5));
myroll = random(5) + 1;
if (myroll == 1) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt1", this);
someSound.start(0, 1);
}
}
if (myroll == 2) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt2", this);
someSound.start(0, 1);
}
}
if (myroll == 3) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt3", this);
someSound.start(0, 1);
}
}
if (myroll == 4) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt4", this);
someSound.start(0, 1);
}
}
if (myroll == 5) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("hurt5", this);
someSound.start(0, 1);
}
}
gotoAndStop (1);
jump = false;
timer = 0;
}
if (_currentframe == 3) {
_y = (_y - 5);
if (_y < 100) {
gotoAndStop (1);
}
}
if (_currentframe != 3) {
if (_currentframe != 2) {
gravity++;
_y = (_y + gravity);
while (_root.myBmp.getPixel32(_x, _y) != 0) {
_y = (_y-1);
gravity = 0;
}
}
timer++;
if ((timer > 60) and (_root.myBmp.getPixel32(_x, _y + 3) != 0)) {
jump = true;
}
if (jump == true) {
if (_root.char2._x < _x) {
dir = true;
}
if (_root.char2._x > _x) {
dir = false;
}
gotoAndStop (2);
}
if (_currentframe == 2) {
if (dir == true) {
_x = (_x - (speed + 5));
_xscale = scale;
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y - 15);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 5, _y - 5);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
}
if (dir == false) {
_x = (_x + (speed + 5));
_xscale = (-scale);
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 10, _y - 15);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 5, _y - 5);
_root.myBmp.draw(_root.holetwo, myMatrix, 0, "erase");
}
if ((((_root.myBmp.getPixel32(_x, _y + 10) != 0) and (gravity > 0)) and (_currentframe != 2)) and (_currentframe != 4)) {
gotoAndStop (1);
}
}
if ((_currentframe == 1) and (_root.myBmp.getPixel32(_x, _y + 15) != 0)) {
if (_root.char2._x < _x) {
_x = (_x - speed);
_xscale = scale;
}
if (_root.char2._x > _x) {
_x = (_x + speed);
_xscale = (-scale);
}
}
if ((_root.char2._y - _y) < -50) {
teletimer++;
if ((teletimer > 50) and (_currentframe != 4)) {
gotoAndStop (3);
}
} else {
teletimer = 0;
}
if (_y > 650) {
_root.enemies = _root.enemies - 1;
removeMovieClip(this);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 40) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 30) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x + 10, _y - 20) != 0) {
_x = (_x - 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 40) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 30) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x - 10, _y - 20) != 0) {
_x = (_x + 4);
}
if (_root.myBmp.getPixel32(_x, _y - 50) != 0) {
gravity = 0;
}
if ((_root.inhell == false) and (_currentframe != 5)) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 1955 MovieClip "shopkeeperchat" in Frame 7
onClipEvent (load) {
bob = 10093;
this.swapDepths(bob);
gotoAndStop (2);
closer == true;
}
onClipEvent (enterFrame) {
if (Key.isDown(32) and (_currentframe != 1)) {
closer = false;
}
if (((!Key.isDown(32)) and (_currentframe != 1)) and (closer == false)) {
closer = true;
if (_currentframe == 6) {
_root.ready = true;
gotoAndStop (1);
}
if (_currentframe != 5) {
gotoAndStop (1);
}
if (_root.shopkeeperchat._currentframe == 5) {
nextFrame();
}
}
}
Instance of Symbol 1979 MovieClip in Frame 7
onClipEvent (load) {
award = false;
award2 = false;
award3 = false;
award4 = false;
award5 = false;
}
onClipEvent (enterFrame) {
if ((_root.spiderskilled >= 20) and (award == false)) {
_root.submitter.submitGrantAward("award1");
award = true;
medalinside.gotoAndStop(1);
gotoAndPlay (2);
}
if ((_root.halfway == true) and (award2 == false)) {
_root.submitter.submitGrantAward("award2");
award2 = true;
gotoAndPlay (2);
medalinside.gotoAndStop(4);
}
if ((_root.finished == true) and (award3 == false)) {
_root.submitter.submitGrantAward("award3");
award3 = true;
gotoAndPlay (2);
medalinside.gotoAndStop(5);
}
if ((_root.potionsused >= 10) and (award4 == false)) {
_root.submitter.submitGrantAward("award4");
award4 = true;
gotoAndPlay (2);
medalinside.gotoAndStop(2);
}
if ((_root.seedsbought >= 50) and (award5 == false)) {
_root.submitter.submitGrantAward("award5");
award5 = true;
gotoAndPlay (2);
medalinside.gotoAndStop(3);
}
}
Instance of Symbol 2125 MovieClip "ui" in Frame 7
onClipEvent (load) {
bob = 10000;
this.swapDepths(bob);
_visible = false;
}
Instance of Symbol 2146 MovieClip "helptext" in Frame 7
onClipEvent (load) {
notpressed = false;
}
onClipEvent (enterFrame) {
if (_root.inhell == true) {
gotoAndStop (2);
}
if (_root.inhell == false) {
gotoAndStop (1);
}
if ((Key.isDown(72) and (notpressed == false)) and (_visible == true)) {
_visible = false;
notpressed = true;
}
if ((Key.isDown(72) and (notpressed == false)) and (_visible == false)) {
_visible = true;
notpressed = true;
}
if (!Key.isDown(72)) {
notpressed = false;
}
}
Instance of Symbol 2148 MovieClip "limit" in Frame 7
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.myBmp.getPixel32(this) != 0) {
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x, _y);
_root.myBmp.draw(this, myMatrix, 0, "erase");
}
}
Instance of Symbol 2150 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.inhell == true) {
_visible = false;
}
if (_root.inhell == false) {
_visible = true;
}
}
Instance of Symbol 2154 MovieClip in Frame 7
onClipEvent (load) {
pressed = false;
}
onClipEvent (enterFrame) {
if ((Key.isDown(77) and (pressed == false)) and (_root.sound == true)) {
_root.sound = false;
_root.someSound.setVolume(0);
_root.someSound2.setVolume(0);
pressed = true;
}
if ((Key.isDown(77) and (pressed == false)) and (_root.sound == false)) {
_root.sound = true;
if (_root.inhell == false) {
_root.someSound.setVolume(100);
_root.someSound2.setVolume(0);
}
if (_root.inhell == true) {
_root.someSound.setVolume(0);
_root.someSound2.setVolume(100);
}
pressed = true;
}
if (!Key.isDown(77)) {
pressed = false;
}
}
Instance of Symbol 2157 MovieClip "fade" in Frame 7
onClipEvent (load) {
bob = 999399 /* 0x0F3FE7 */;
this.swapDepths(bob);
}
Instance of Symbol 2158 MovieClip "fade2" in Frame 7
onClipEvent (load) {
bob = 99999 /* 0x01869F */;
this.swapDepths(bob);
}
Instance of Symbol 366 MovieClip in Frame 7
onClipEvent (load) {
bob = 353468 /* 0x0564BC */;
this.swapDepths(bob);
}
Frame 8
stop();
Symbol 19 MovieClip [SubmitterProxy] Frame 1
#initclip 5
Object.registerClass("SubmitterProxy", SubmitterProxy);
#endinitclip
Symbol 165 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
stop();
Symbol 175 MovieClip Frame 13
stop();
Symbol 177 Button
on (press) {
_root.intro.intro1.gotoAndPlay(2);
}
Symbol 178 MovieClip Frame 100
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 14
_root.gotoAndStop(5);
Symbol 182 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 182 MovieClip Frame 90
stop();
Symbol 187 Button
on (press) {
_root.intro.intro2.gotoAndPlay(2);
}
Symbol 188 MovieClip Frame 100
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 13
_root.gotoAndStop(5);
Symbol 198 Button
on (press) {
_root.intro.intro3.gotoAndPlay(2);
}
Symbol 199 MovieClip Frame 100
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 14
_root.gotoAndStop(5);
Symbol 203 Button
on (press) {
_root.intro.intro4.gotoAndPlay(2);
}
Symbol 204 MovieClip Frame 100
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 13
_root.gotoAndStop(5);
Symbol 212 MovieClip Frame 39
stop();
Symbol 215 Button
on (press) {
_root.intro.intro5.gotoAndStop(2);
}
Symbol 216 MovieClip Frame 100
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
_root.gotoAndStop(5);
Symbol 218 Button
on (press) {
_root.intro.intro6.gotoAndStop(2);
}
Symbol 219 MovieClip Frame 100
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 14
_root.gotoAndStop(5);
Symbol 221 Button
on (press) {
_root.intro.intro7.gotoAndStop(2);
}
Symbol 222 MovieClip Frame 100
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 14
_root.gotoAndStop(5);
Symbol 224 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "teens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
if (_root.localization_portal == "young_adults") {
gotoAndStop (5);
}
if (_root.localization_portal == "zapapa") {
gotoAndStop (6);
}
if (_root.localization_portal == "egames_jp") {
gotoAndStop (7);
}
Symbol 2344 MovieClip [__Packages.SubmitterProxy] Frame 0
class SubmitterProxy extends MovieClip
{
var parentObj, _parent, m_scoreType, m_scoreOrder, gameName, htmlName, locale, iconData, pagesize, pagenr, requestStackInvalidUser, gameid, siteid, channelid, swfURL, _visible, delegateOnIoError, delegateOnLoadDone, createEmptyMovieClip, getNextHighestDepth, content, delegateHyscoreSubmitterReady, dispatchEvent, m_scoreXMLData, m_scoreServerTimeXMLData, m_achievXMLData;
function SubmitterProxy () {
super();
System.security.allowDomain("*");
parentObj = _parent;
mx.events.EventDispatcher.initialize(this);
}
function setLoader(_container, _gameName, _htmlName, _order, _scoreType, _locale, _iconData, _pagesize, _pagenr, _bTest, _serverSelect) {
bTestModeOn = _bTest;
m_scoreType = _scoreType;
m_scoreOrder = _order;
gameName = _gameName;
if (_htmlName == "") {
htmlName = gameName;
} else {
htmlName = _htmlName;
}
locale = _locale;
iconData = _iconData;
pagesize = _pagesize;
pagenr = _pagenr;
serverSelect = _serverSelect;
requestStackInvalidUser = new Array();
if (_container != null) {
userName = _container.username;
userHash = _container.hash;
gameid = _container.id;
siteid = _container.s;
channelid = _container.c;
trace("servicesLoc: " + _container.servicesLoc);
if ((_container.servicesLoc != "") && (_container.servicesLoc != undefined)) {
swfURL = _container.servicesLoc;
} else {
var _local3 = new Date();
swfURL = (("http://www8.agame.com/games/flash/highscore/SubmitterAS2.swf?nocache=" + (_local3.getYear() * 12)) + _local3.getMonth()) + 1;
}
getSwf();
} else {
SubmitterFailedToLoad();
}
_visible = false;
}
function getSwf() {
var _local2 = new Object();
delegateOnIoError = mx.utils.Delegate.create(this, onLoadDone);
_local2.onLoadInit = delegateOnIoError;
delegateOnLoadDone = mx.utils.Delegate.create(this, onIoError);
_local2.onLoadError = delegateOnLoadDone;
var _local4 = new MovieClipLoader();
_local4.addListener(_local2);
var _local3 = createEmptyMovieClip("loadedComp", getNextHighestDepth());
trace("swfURL:" + swfURL);
_local4.loadClip(swfURL, _local3);
_local3._x = 10;
_local3._y = 10;
}
function isSWFReady() {
return(content != null);
}
function isDomainAllowed(value) {
if (content) {
return(content.isDomainValid(value));
}
return(false);
}
function hasUserData() {
return((userName != null) && (userHash != null));
}
function doCommTest() {
if (content) {
return(content.m_get_TEST());
}
return("Error: Failed to communicatie with: " + content);
}
function getScoreServerTime() {
if (content) {
content.m_getLatestScoreServerTime();
}
}
function submitScore(score) {
trace("submitScore: " + score);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_SCORE", value:score});
}
content.m_submitScore(score, userName, userHash, "", 0);
}
}
function requestHighscoreList() {
if (content) {
content.m_submitHighscoreListRequest();
}
}
function requestUserHighscoreList(target_username) {
if (content) {
content.m_submitUserHighscoreListRequest(target_username);
}
}
function submitGrantAward(tag) {
trace("submitGrantAward: " + tag);
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"SUBMIT_AWARD", value:tag});
}
content.m_submitAward(tag, userName, userHash);
}
}
function requestAwardList() {
if (content) {
if (!hasUserData()) {
requestStackInvalidUser.push({type:"REQUEST_AWARDLIST"});
}
content.m_getUserAwardList(userName, userHash);
}
}
function requestAwardInfo(awardID) {
if (content) {
content.m_getAwardInfo(awardID);
}
}
function SubmitterIsLoaded() {
delegateHyscoreSubmitterReady = mx.utils.Delegate.create(this, onHyScorSubmitterReady);
content.addEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
content.addEventListener("ScoreLoadError", this);
content.addEventListener("ScoreLoadTimeComplete", this);
content.addEventListener("ScoreLoadSubmitComplete", this);
content.addEventListener("ScoreLoadListComplete", this);
content.addEventListener("ScoreLoadUserListComplete", this);
content.addEventListener("AchievLoadError", this);
content.addEventListener("AchievLoadTimeComplete", this);
content.addEventListener("AchievLoadListComplete", this);
content.addEventListener("AchievLoadInfoComplete", this);
content.addEventListener("AchievLoadGrantComplete", this);
}
function SubmitterFailedToLoad() {
dispatchEvent({target:this, type:"LoadingFailed", elapsedTime:getTimer()});
}
function onLoadDone(target_mc) {
content = target_mc.SubmitterInstance;
content.gotoAndPlay(1);
if (isDomainAllowed(bTestModeOn)) {
trace("Submitter component downloaded.");
SubmitterIsLoaded();
content.init(siteid, 1, gameid, channelid, m_scoreOrder, locale, iconData, pagesize, pagenr, userName, userHash, serverSelect);
initJStoSWFListeners();
} else {
trace("Error: Could not init submitter...played on an invalid domain.");
SubmitterFailedToLoad();
}
}
function onIoError(target_mc, errorCode, httpStatus) {
trace((("Error: loadListener.onLoadError() errorCode: " + errorCode) + " httpStatus: ") + httpStatus);
SubmitterFailedToLoad();
}
function onHyScorSubmitterReady(target_mc) {
if (content) {
content.removeEventListener("HyScorSubmitterLoaded", delegateHyscoreSubmitterReady);
}
dispatchEvent({target:this, type:"SubmitterLoadedSuccesfull", elapsedTime:getTimer()});
}
function handleEvent(e) {
if (((e.type == "ScoreLoadSubmitComplete") || (e.type == "ScoreLoadListComplete")) || (e.type == "ScoreLoadUserListComplete")) {
m_scoreXMLData = content.m_getLastestHighscoreData();
} else if (e.type == "ScoreLoadTimeComplete") {
m_scoreServerTimeXMLData = content.m_getLatestScoreServerTime();
} else if (((e.type == "AchievLoadListComplete") || (e.type == "AchievLoadInfoComplete")) || (e.type == "AchievLoadGrantComplete")) {
m_achievXMLData = content.m_getLastestAchievementData();
} else if (e.type == "AchievLoadTimeComplete") {
} else if (e.type == "ScoreLoadError") {
m_scoreXMLData = content.m_getLatestHighscoreError();
} else if (e.type == "AchievLoadError") {
m_achievXMLData = content.m_getLatestAchievError();
}
dispatchEvent({target:this, type:e.type, elapsedTime:getTimer()});
}
function initJStoSWFListeners() {
if (flash.external.ExternalInterface.available) {
try {
flash.external.ExternalInterface.addCallback("JStoSWF", com.spilgames.external.JStoSWF.instance().parse);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_USER", updateUser);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_AVATAR", updateAvatar);
com.spilgames.external.JStoSWF.instance().addCallFunction("UPDATE_GALLERY", updateGallery);
} catch(e:Error) {
trace("Error: Failed init enternal interface.. is the swf played locally?");
}
}
}
function updateUser(params) {
var _local3 = params.username;
var _local2 = params.hash;
var _local4 = params.id;
userName = _local3;
userHash = _local2;
var _local6 = (((("UPDATE_USER|-|" + _local3) + "|-|") + _local2) + "|-|") + _local4;
processInvalidUserList();
}
function updateAvatar(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_AVATAR|-|" + _local1) + "|-|") + _local2;
}
function updateGallery(params) {
var _local1 = params.id;
var _local2 = params.type;
var _local3 = (("UPDATE_GALLERY|-|" + _local1) + "|-|") + _local2;
}
function processInvalidUserList() {
while (requestStackInvalidUser.length > 0) {
var _local2 = requestStackInvalidUser.pop();
if (_local2.type == "SUBMIT_SCORE") {
submitScore(_local2.value);
} else if (_local2.type == "SUBMIT_AWARD") {
submitGrantAward(_local2.value);
} else if (_local2.type == "REQUEST_AWARDLIST") {
requestAwardList();
}
}
}
function destroy() {
parentObj = null;
content.removeMovieClip();
content = null;
siteid = null;
channelid = null;
gameid = null;
userName = null;
userHash = null;
m_scoreXMLData = null;
m_achievXMLData = null;
}
var userName = null;
var userHash = null;
var serverSelect = 1;
var bTestModeOn = false;
}
Symbol 2345 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 2346 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 2347 MovieClip [__Packages.com.spilgames.external.JStoSWF] Frame 0
class com.spilgames.external.JStoSWF
{
static var m_oJStoSWF;
var m_oCallFuntions;
function JStoSWF () {
m_oCallFuntions = new Object();
}
function addCallFunction(p_sName, p_fFunction) {
if (!m_oCallFuntions[p_sName]) {
m_oCallFuntions[p_sName] = p_fFunction;
}
}
function parse(p_oCallObject) {
if (p_oCallObject.call) {
switch (p_oCallObject.call) {
case "MULTI" :
var _local2 = 0;
while (_local2 < p_oCallObject.calls.length) {
instance().parse(p_oCallObject.calls[_local2]);
_local2++;
}
break;
default :
if (m_oCallFuntions[p_oCallObject.call]) {
if (!p_oCallObject.params) {
p_oCallObject.params = {};
}
m_oCallFuntions[p_oCallObject.call](p_oCallObject.params);
} else {
trace(("call: " + p_oCallObject.call) + " not found in call functions!");
}
}
} else {
trace("call attribute not found in CallObject!");
}
}
static function instance() {
if (m_oJStoSWF == null) {
m_oJStoSWF = new com.spilgames.external.JStoSWF();
}
return(m_oJStoSWF);
}
}
Symbol 246 Button
on (rollOver) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("buttonsound", this);
someSound.start(0, 1);
}
_root.shiners.gotoAndPlay(2);
}
on (press) {
_root.nextFrame();
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 2;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 2;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 2;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 2;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
rotmath = this._rotation;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
}
onClipEvent (enterFrame) {
if (this._parent.moving) {
this._rotation = this._parent.rot;
} else {
if (this._rotation < rotmath) {
this._rotation = this._rotation + 4;
}
if (this._rotation > rotmath) {
this._rotation = this._rotation - 4;
}
}
}
Instance of Symbol 254 MovieClip "aimer" in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 21
stop();
Symbol 331 MovieClip Frame 22
prevFrame();
Symbol 345 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Instance of Symbol 331 MovieClip "node1" in Symbol 364 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.power == 4) {
stopDrag();
}
}
on (press) {
if (_root.power != 4) {
startDrag (this);
}
}
on (release) {
if (_root.power != 4) {
stopDrag();
}
}
Symbol 366 MovieClip Frame 20
stop();
Symbol 369 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
stop();
Symbol 387 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
stop();
Symbol 402 Button
on (rollOver) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("buttonsound", this);
someSound.start(0, 1);
}
}
on (press) {
_root.nextFrame();
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
stop();
Instance of Symbol 416 MovieClip in Symbol 444 MovieClip Frame 2
onClipEvent (load) {
speed = 2 + (Math.random() * 2);
this._y = 0 + (Math.random() * 100);
this._x = 400 + (Math.random() * 1300);
this.gotoAndPlay(1 + Math.round(Math.random() * 99));
}
onClipEvent (enterFrame) {
this._x = this._x - speed;
if (this._x < -500) {
speed = 2 + (Math.random() * 2);
this._y = 0 + (Math.random() * 100);
this._x = 400 + (Math.random() * 1300);
}
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 1
stop();
Instance of Symbol 481 MovieClip in Symbol 483 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.dying == false)) {
_root.dying = true;
_root.char.gotoAndStop(7);
}
}
Symbol 484 MovieClip Frame 1
stop();
Instance of Symbol 464 MovieClip "gooditems" in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
beenpressed = false;
beenpressed2 = false;
}
onClipEvent (enterFrame) {
if (_root.ui._visible == false) {
if (Key.isDown(69) and (beenpressed == false)) {
nextFrame();
beenpressed = true;
}
if (!Key.isDown(69)) {
beenpressed = false;
}
if (Key.isDown(81) and (beenpressed2 == false)) {
prevFrame();
beenpressed2 = true;
}
if (!Key.isDown(81)) {
beenpressed2 = false;
}
}
}
Symbol 484 MovieClip Frame 2
stop();
Instance of Symbol 483 MovieClip "baditems" in Symbol 484 MovieClip Frame 2
onClipEvent (load) {
beenpressed = false;
beenpressed2 = false;
}
onClipEvent (enterFrame) {
if ((_root.ui._visible == false) and (_root.inhell == true)) {
if (Key.isDown(69) and (beenpressed == false)) {
nextFrame();
beenpressed = true;
}
if (!Key.isDown(69)) {
beenpressed = false;
}
if (Key.isDown(81) and (beenpressed2 == false)) {
prevFrame();
beenpressed2 = true;
}
if (!Key.isDown(81)) {
beenpressed2 = false;
}
}
}
Instance of Symbol 508 MovieClip "goodfireball" in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
scale = _xscale;
}
onClipEvent (enterFrame) {
i = 100;
while (i < 131) {
if (_root["newgoblin" + i].hitTest(this) and (_root["newgoblin" + i]._currentframe != 4)) {
_root["newgoblin" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newspider" + i].hitTest(this) and (_root["newspider" + i]._currentframe != 4)) {
_root["newspider" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newfireblob" + i].hitTest(this) and (_root["newfireblob" + i]._currentframe != 4)) {
_root["newfireblob" + i].gotoAndStop(4);
removeMovieClip(this);
}
if (_root["newbat" + i].hitTest(this) and (_root["newbat" + i]._currentframe != 4)) {
_root["newbat" + i].gotoAndStop(4);
removeMovieClip(this);
}
i++;
}
if (dir == true) {
_x = (_x + 5);
_xscale = (-scale);
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x + 10, _y);
_root.myBmp.draw(_root.hole, myMatrix, 0, "erase");
}
if (dir == false) {
_x = (_x - 5);
_xscale = scale;
myMatrix = new flash.geom.Matrix();
myMatrix.translate(_x - 10, _y);
_root.myBmp.draw(_root.hole, myMatrix, 0, "erase");
}
if (_root.inhell == false) {
removeMovieClip(this);
}
}
Symbol 514 MovieClip Frame 40
_parent.death = true;
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 50
_root.ydiff = 0;
_root.ypos = 0;
_root.char.ok = false;
_root.char.gravity = 0;
_root.char._x = 70;
_root.char._y = 330;
_root.char.gotoAndStop(1);
Symbol 675 MovieClip Frame 21
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("tele", this);
someSound.start(0, 1);
}
Symbol 675 MovieClip Frame 56
stop();
_root.fade.gotoAndPlay(2);
Symbol 718 MovieClip Frame 11
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("tele", this);
someSound.start(0, 1);
}
Symbol 718 MovieClip Frame 12
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("tele", this);
someSound.start(0, 1);
}
Symbol 718 MovieClip Frame 56
_parent.gotoAndStop(1);
Symbol 719 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 2
stop();
Instance of Symbol 563 MovieClip in Symbol 719 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.busymenu == true) {
stop();
}
}
Symbol 719 MovieClip Frame 3
stop();
Instance of Symbol 565 MovieClip in Symbol 719 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.busymenu == true) {
stop();
}
}
Symbol 719 MovieClip Frame 4
stop();
Symbol 719 MovieClip Frame 5
stop();
duplicateMovieClip (_root.grave, "newgrave" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
Symbol 719 MovieClip Frame 6
stop();
Symbol 719 MovieClip Frame 7
stop();
Symbol 757 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 2
stop();
Symbol 763 MovieClip Frame 15
stop();
Instance of Symbol 757 MovieClip "cross1" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
yspeed = 8 + (Math.random() * 6);
xspeed = -4 + (Math.random() * 8);
rot = 1 + (Math.random() * 8);
this._rotation = 1 + Math.round(Math.random() * 170);
}
onClipEvent (enterFrame) {
i = 100;
while (i < 131) {
if (_root["newspider" + i].hitTest(this) and (_root["newspider" + i]._currentframe != 4)) {
_root["newspider" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newgoblin" + i].hitTest(this) and (_root["newgoblin" + i]._currentframe != 4)) {
_root["newgoblin" + i].gotoAndStop(4);
_root["newgoblin" + i].health = 0;
gotoAndStop (2);
}
if (_root["newfireblob" + i].hitTest(this) and (_root["newfireblob" + i]._currentframe != 4)) {
_root["newfireblob" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newbat" + i].hitTest(this) and (_root["newbat" + i]._currentframe != 4)) {
_root["newbat" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newgirl" + i].hitTest(this) and (_root["newgirl" + i]._currentframe != 4)) {
_root["newgirl" + i].gotoAndStop(4);
_root["newgirl" + i].health = 0;
gotoAndStop (2);
}
if (_root["newguy" + i].hitTest(this) and (_root["newguy" + i]._currentframe != 4)) {
_root["newguy" + i].gotoAndStop(4);
_root["newguy" + i].health = 0;
gotoAndStop (2);
}
if (_root["newskele" + i].hitTest(this) and (_root["newskele" + i]._currentframe != 4)) {
_root["newskele" + i].gotoAndStop(4);
_root["newskele" + i].health = 0;
gotoAndStop (2);
}
i++;
}
this._y = this._y - yspeed;
yspeed = yspeed - 0.5;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
}
Instance of Symbol 757 MovieClip "cross4" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
yspeed = 8 + (Math.random() * 6);
xspeed = -4 + (Math.random() * 8);
rot = 1 + (Math.random() * 8);
this._rotation = 1 + Math.round(Math.random() * 170);
}
onClipEvent (enterFrame) {
i = 100;
while (i < 131) {
if (_root["newspider" + i].hitTest(this) and (_root["newspider" + i]._currentframe != 4)) {
_root["newspider" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newgoblin" + i].hitTest(this) and (_root["newgoblin" + i]._currentframe != 4)) {
_root["newgoblin" + i].gotoAndStop(4);
_root["newgoblin" + i].health = 0;
gotoAndStop (2);
}
if (_root["newfireblob" + i].hitTest(this) and (_root["newfireblob" + i]._currentframe != 4)) {
_root["newfireblob" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newbat" + i].hitTest(this) and (_root["newbat" + i]._currentframe != 4)) {
_root["newbat" + i].gotoAndStop(4);
gotoAndStop (2);
}
if (_root["newgirl" + i].hitTest(this) and (_root["newgirl" + i]._currentframe != 4)) {
_root["newgirl" + i].gotoAndStop(4);
_root["newgirl" + i].health = 0;
gotoAndStop (2);
}
if (_root["newguy" + i].hitTest(this) and (_root["newguy" + i]._currentframe != 4)) {
_root["newguy" + i].gotoAndStop(4);
_root["newguy" + i].health = 0;
gotoAndStop (2);
}
if (_root["newskele" + i].hitTest(this) and (_root["newskele" + i]._currentframe != 4)) {
_root["newskele" + i].gotoAndStop(4);
_root["newskele" + i].health = 0;
gotoAndStop (2);
}
i++;
}
this._y = this._y - yspeed;
yspeed = yspeed - 0.5;
this._x = this._x + xspeed;
this._rotation = this._rotation + rot;
}
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bang", this);
someSound.start(0, 1);
}
Symbol 772 MovieClip Frame 1
stop();
Instance of Symbol 779 MovieClip in Symbol 795 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.freeze == false) {
play();
} else {
stop();
}
}
Instance of Symbol 779 MovieClip in Symbol 819 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.freeze == false) {
play();
} else {
stop();
}
}
Instance of Symbol 779 MovieClip in Symbol 819 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_parent._parent.freeze == false) {
play();
} else {
stop();
}
}
Symbol 819 MovieClip Frame 20
_parent.gotoAndStop(1);
Instance of Symbol 779 MovieClip in Symbol 819 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_parent._parent.freeze == false) {
play();
} else {
stop();
}
}
Symbol 836 MovieClip Frame 21
_parent.gotoAndStop(2);
Symbol 843 MovieClip Frame 10
stop();
_root.enemies = _root.enemies - 1;
Symbol 844 MovieClip Frame 1
stop();
if (_root.sound == true) {
bob = random(3) + 1;
if (bob == 1) {
someSound = new Sound();
someSound.attachSound("die1", this);
someSound.start(0, 1);
}
if (bob == 2) {
someSound = new Sound();
someSound.attachSound("die2", this);
someSound.start(0, 1);
}
if (bob == 3) {
someSound = new Sound();
someSound.attachSound("die3", this);
someSound.start(0, 1);
}
}
Symbol 844 MovieClip Frame 2
stop();
Symbol 895 MovieClip Frame 7
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 2
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 2
stop();
Symbol 898 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 2
stop();
Symbol 898 MovieClip Frame 3
stop();
Symbol 898 MovieClip Frame 4
stop();
Symbol 898 MovieClip Frame 5
stop();
Symbol 952 MovieClip Frame 52
stop();
_parent.drawnow = true;
Symbol 1008 MovieClip Frame 56
stop();
_parent.drawnow = true;
Symbol 1097 MovieClip Frame 89
stop();
_parent.drawnow = true;
Symbol 1129 MovieClip Frame 32
stop();
_parent.drawnow = true;
Symbol 1159 MovieClip Frame 30
stop();
_parent.drawnow = true;
Symbol 1160 MovieClip Frame 1
stop();
Symbol 1160 MovieClip Frame 2
stop();
Symbol 1160 MovieClip Frame 3
stop();
Symbol 1160 MovieClip Frame 4
stop();
Symbol 1160 MovieClip Frame 5
stop();
Symbol 1160 MovieClip Frame 6
stop();
Symbol 1300 MovieClip Frame 22
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("tele", this);
someSound.start(0, 1);
}
Symbol 1300 MovieClip Frame 56
stop();
_root.fade2.gotoAndPlay(2);
Symbol 1326 MovieClip Frame 3
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("sword1", this);
someSound.start(0, 1);
}
Symbol 1326 MovieClip Frame 15
_root.char2.gotoAndStop(1);
Symbol 1326 MovieClip Frame 17
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("broadswordsound", this);
someSound.start(0, 1);
}
Symbol 1326 MovieClip Frame 27
_root.char2.gotoAndStop(1);
Symbol 1326 MovieClip Frame 29
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("sword1", this);
someSound.start(0, 1);
}
Symbol 1334 MovieClip Frame 6
duplicateMovieClip (_root.goodfireball, "newgoodfireball" + _root.zz, _root.zz);
if (_root.char2.dir == true) {
_root["newgoodfireball" + _root.zz]._x = _root.char2._x + 20;
}
if (_root.char2.dir == false) {
_root["newgoodfireball" + _root.zz]._x = _root.char2._x - 20;
}
_root["newgoodfireball" + _root.zz]._y = _root.char2._y - 15;
_root["newgoodfireball" + _root.zz].dir = _root.char2.dir;
_root.shootamount = _root.shootamount - 1;
_root.zz++;
Symbol 1334 MovieClip Frame 12
_root.char2.gotoAndStop(1);
Symbol 1352 MovieClip Frame 14
_root.char2.gotoAndStop(1);
Symbol 1367 MovieClip Frame 20
_root.char2.pausee = false;
_root.char2.gotoAndStop(1);
Symbol 1368 MovieClip Frame 1
stop();
Symbol 1368 MovieClip Frame 2
stop();
Symbol 1368 MovieClip Frame 3
stop();
Instance of Symbol 565 MovieClip in Symbol 1368 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.busymenu == true) {
stop();
}
}
Symbol 1368 MovieClip Frame 4
stop();
Symbol 1368 MovieClip Frame 5
stop();
duplicateMovieClip (_root.grave, "newgrave" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
Symbol 1368 MovieClip Frame 6
stop();
Symbol 1368 MovieClip Frame 7
stop();
_root.backup();
Symbol 1368 MovieClip Frame 8
stop();
Symbol 1368 MovieClip Frame 9
stop();
Symbol 1368 MovieClip Frame 10
stop();
Symbol 1368 MovieClip Frame 11
stop();
Symbol 1368 MovieClip Frame 12
stop();
Symbol 1368 MovieClip Frame 13
stop();
Symbol 1369 MovieClip Frame 18
stop();
Symbol 1397 MovieClip Frame 1
if (_root.soundson == true) {
another = new Sound();
another.attachSound("explosion", this);
another.start();
}
Symbol 1397 MovieClip Frame 16
stop();
_root.enemies = _root.enemies - 1;
_parent.removeMovieClip(this);
Symbol 1398 MovieClip Frame 1
stop();
Instance of Symbol 1384 MovieClip "fire2" in Symbol 1398 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Instance of Symbol 1384 MovieClip "fire" in Symbol 1398 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Symbol 1398 MovieClip Frame 2
stop();
Instance of Symbol 1397 MovieClip "bang" in Symbol 1398 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.char.hitTest(hit) and (_currentframe < 10)) {
_root.char.gotoAndStop(5);
}
}
Symbol 1417 MovieClip Frame 18
stop();
_parent.drawnow = true;
Symbol 1418 MovieClip Frame 1
stop();
_parent.drawnow = true;
Symbol 1502 MovieClip Frame 1
stop();
Instance of Symbol 1443 MovieClip "l4" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(15);
}
Instance of Symbol 1443 MovieClip "l5" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(20);
}
Instance of Symbol 1483 MovieClip "l3" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(10);
}
Instance of Symbol 1483 MovieClip "l8" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(50);
}
Instance of Symbol 1443 MovieClip "l6" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(35);
}
Instance of Symbol 1443 MovieClip "l7" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(39);
}
Instance of Symbol 1483 MovieClip "l2" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(30);
}
Instance of Symbol 1483 MovieClip "l1" in Symbol 1502 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(25);
}
Symbol 1502 MovieClip Frame 2
stop();
Symbol 1502 MovieClip Frame 3
stop();
Symbol 1502 MovieClip Frame 4
stop();
_root.spiderskilled = _root.spiderskilled + 1;
Symbol 1502 MovieClip Frame 5
stop();
Symbol 1502 MovieClip Frame 7
stop();
Symbol 1675 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 1678 MovieClip Frame 1
stop();
Symbol 1678 MovieClip Frame 2
stop();
Symbol 1678 MovieClip Frame 3
stop();
Symbol 1678 MovieClip Frame 4
stop();
Symbol 1678 MovieClip Frame 5
stop();
Symbol 1678 MovieClip Frame 6
stop();
Symbol 1678 MovieClip Frame 7
stop();
Symbol 1714 MovieClip Frame 28
_parent.gotoAndStop(1);
Symbol 1717 MovieClip Frame 1
stop();
Symbol 1717 MovieClip Frame 2
stop();
Symbol 1717 MovieClip Frame 3
stop();
Symbol 1717 MovieClip Frame 4
stop();
Symbol 1717 MovieClip Frame 5
stop();
Symbol 1717 MovieClip Frame 7
stop();
Symbol 1761 MovieClip Frame 1
stop();
Symbol 1761 MovieClip Frame 2
stop();
Symbol 1768 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 1771 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 1772 MovieClip Frame 1
stop();
Symbol 1772 MovieClip Frame 2
stop();
Symbol 1772 MovieClip Frame 3
stop();
Symbol 1772 MovieClip Frame 4
stop();
Symbol 1772 MovieClip Frame 5
stop();
Symbol 1772 MovieClip Frame 6
stop();
Symbol 1830 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 1835 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 1837 MovieClip Frame 1
stop();
Symbol 1837 MovieClip Frame 2
stop();
Symbol 1837 MovieClip Frame 3
stop();
Symbol 1837 MovieClip Frame 4
stop();
Symbol 1837 MovieClip Frame 5
stop();
Symbol 1837 MovieClip Frame 6
stop();
Symbol 1837 MovieClip Frame 7
stop();
Symbol 1886 MovieClip Frame 6
stop();
Symbol 1891 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 1892 MovieClip Frame 1
stop();
Symbol 1892 MovieClip Frame 2
stop();
Symbol 1892 MovieClip Frame 3
stop();
Symbol 1892 MovieClip Frame 4
stop();
Symbol 1892 MovieClip Frame 5
stop();
Symbol 1892 MovieClip Frame 6
stop();
Symbol 1892 MovieClip Frame 7
stop();
Symbol 1896 MovieClip Frame 1
fpstext++;
Symbol 1896 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1897 MovieClip Frame 1
tup = 1;
Symbol 1897 MovieClip Frame 2
time = int(getTimer() / 1000);
timer = time;
if (timer == tup) {
tup++;
fps.fps = fps.fpstext;
fps.fpstext = 0;
}
tup = time + 1;
Symbol 1897 MovieClip Frame 3
time = int(getTimer() / 1000);
timer = time;
if (timer == tup) {
tup++;
fps.fps = fps.fpstext;
fps.fpstext = 0;
if (fps.fps < 25) {
timetime++;
if ((timetime > 3) and (_root.inhell == true)) {
_root._quality = "LOW";
}
} else {
timetime = 0;
}
}
gotoAndPlay (2);
tup = time + 1;
Symbol 1955 MovieClip Frame 1
stop();
Symbol 1955 MovieClip Frame 2
stop();
Symbol 1955 MovieClip Frame 3
stop();
Symbol 1955 MovieClip Frame 4
stop();
Symbol 1955 MovieClip Frame 5
stop();
Symbol 1955 MovieClip Frame 6
stop();
Symbol 1955 MovieClip Frame 7
stop();
Symbol 1955 MovieClip Frame 8
stop();
Symbol 1975 MovieClip Frame 1
stop();
Symbol 1975 MovieClip Frame 2
stop();
Symbol 1975 MovieClip Frame 3
stop();
Symbol 1975 MovieClip Frame 4
stop();
Symbol 1975 MovieClip Frame 5
stop();
Symbol 1978 MovieClip Frame 24
stop();
Symbol 1979 MovieClip Frame 1
stop();
Symbol 1983 Button
on (press) {
_root.busymenu = false;
_root.ui._visible = false;
}
Symbol 1985 Button
on (press) {
if (_root.ui.itemselect._currentframe == 1) {
if (_root.souls > 1) {
_root.seedamount = _root.seedamount + 1;
_root.souls = _root.souls - 2;
}
}
if (_root.ui.itemselect._currentframe == 2) {
if (_root.souls > 1) {
_root.bombamount = _root.bombamount + 1;
_root.souls = _root.souls - 2;
}
}
}
Symbol 1998 MovieClip Frame 1
stop();
Symbol 1998 MovieClip Frame 2
stop();
Symbol 1998 MovieClip Frame 3
stop();
Symbol 1998 MovieClip Frame 4
stop();
Symbol 2023 MovieClip Frame 16
stop();
Symbol 2024 MovieClip Frame 1
stop();
Symbol 2029 MovieClip Frame 1
stop();
Symbol 2029 MovieClip Frame 2
stop();
Symbol 2032 MovieClip Frame 1
stop();
Symbol 2032 MovieClip Frame 2
stop();
Symbol 2036 MovieClip Frame 1
stop();
Symbol 2036 MovieClip Frame 2
stop();
Symbol 2039 MovieClip Frame 1
stop();
Symbol 2039 MovieClip Frame 2
stop();
Symbol 2042 MovieClip Frame 1
stop();
Symbol 2042 MovieClip Frame 2
stop();
Symbol 2045 MovieClip Frame 1
stop();
Symbol 2045 MovieClip Frame 2
stop();
Symbol 2048 MovieClip Frame 1
stop();
Symbol 2048 MovieClip Frame 2
stop();
Symbol 2051 MovieClip Frame 1
stop();
Symbol 2051 MovieClip Frame 2
stop();
Symbol 2062 MovieClip Frame 1
stop();
Symbol 2062 MovieClip Frame 2
stop();
Symbol 2063 MovieClip Frame 1
stop();
Symbol 2066 MovieClip Frame 1
stop();
Symbol 2070 MovieClip Frame 1
stop();
Symbol 2074 MovieClip Frame 1
stop();
Symbol 2078 MovieClip Frame 1
stop();
Symbol 2082 MovieClip Frame 1
stop();
Symbol 2086 MovieClip Frame 1
stop();
Symbol 2090 MovieClip Frame 1
stop();
Symbol 2093 MovieClip Frame 1
stop();
Symbol 2093 MovieClip Frame 2
stop();
Symbol 2093 MovieClip Frame 3
stop();
Symbol 2093 MovieClip Frame 4
stop();
Symbol 2093 MovieClip Frame 5
stop();
Symbol 2093 MovieClip Frame 6
stop();
Symbol 2093 MovieClip Frame 7
stop();
Symbol 2093 MovieClip Frame 8
stop();
Symbol 2093 MovieClip Frame 9
stop();
Symbol 2124 MovieClip Frame 1
stop();
Symbol 2124 MovieClip Frame 2
stop();
Symbol 2124 MovieClip Frame 3
stop();
Symbol 2124 MovieClip Frame 4
stop();
Symbol 2124 MovieClip Frame 5
stop();
Symbol 2124 MovieClip Frame 6
stop();
Symbol 2124 MovieClip Frame 7
stop();
Symbol 2124 MovieClip Frame 8
stop();
Symbol 2124 MovieClip Frame 9
stop();
Instance of Symbol 2123 MovieClip in Symbol 2124 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.dying == false)) {
_root.dying = true;
_root.char.gotoAndStop(7);
}
}
Instance of Symbol 1989 MovieClip in Symbol 2125 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.shopkeeperchat._currentframe == 1) {
if ((Key.isDown(32) and (_root.busymenu == true)) and (_root.pressed == false)) {
if (_root.ui.itemselect._currentframe == 1) {
if (_root.souls >= _root.seedprice) {
_root.seedamount = _root.seedamount + 1;
_root.souls = _root.souls - _root.seedprice;
_root.seedprice = _root.seedprice + 1;
_root.seedsbought = _root.seedsbought + 1;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 2) {
if (((_root.souls >= _root.bombprice) and (_root.bombprice < 100)) and (_root.bombamount < 5)) {
_root.bombamount = _root.bombamount + 1;
_root.souls = _root.souls - _root.bombprice;
_root.bombprice = _root.bombprice + _root.bombup;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 3) {
if ((_root.souls >= _root.bubbleprice) and (_root.bubbleprice < 100)) {
_root.bubbleamount = _root.bubbleamount + 1;
_root.souls = _root.souls - _root.bubbleprice;
_root.bubbleprice = _root.bubbleprice + _root.bubbleup;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 4) {
if (_root.souls >= _root.platformprice) {
_root.wallamount = _root.wallamount + 1;
_root.souls = _root.souls - _root.platformprice;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 5) {
if (_root.souls >= _root.ladderprice) {
_root.ladderamount = _root.ladderamount + 1;
_root.souls = _root.souls - _root.ladderprice;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 6) {
if (_root.souls >= _root.fireballprice) {
_root.shootamount = _root.shootamount + 1;
_root.souls = _root.souls - _root.fireballprice;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 7) {
if (_root.souls >= _root.potionprice) {
_root.potionamount = _root.potionamount + 1;
_root.souls = _root.souls - _root.potionprice;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 8) {
if (_root.souls >= _root.wingprice) {
_root.wingamount = _root.wingamount + 1;
_root.souls = _root.souls - _root.wingprice;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
if (_root.ui.itemselect._currentframe == 9) {
if (_root.souls >= _root.freezeprice) {
_root.iceamount = _root.iceamount + 1;
_root.souls = _root.souls - _root.freezeprice;
_root.pressed = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("ching", this);
someSound.start(0, 1);
}
}
}
}
if (!Key.isDown(32)) {
_root.pressed = false;
}
}
}
Instance of Symbol 2093 MovieClip "itemselect" in Symbol 2125 MovieClip Frame 1
onClipEvent (load) {
beenpressed = false;
beenpressed2 = false;
}
onClipEvent (enterFrame) {
if (_root.shopkeeperchat._currentframe == 1) {
if (Key.isDown(40) and (beenpressed == false)) {
nextFrame();
beenpressed = true;
}
if (!Key.isDown(40)) {
beenpressed = false;
}
if (Key.isDown(38) and (beenpressed2 == false)) {
prevFrame();
beenpressed2 = true;
}
if (!Key.isDown(38)) {
beenpressed2 = false;
}
}
}
Instance of Symbol 2124 MovieClip in Symbol 2125 MovieClip Frame 1
onClipEvent (load) {
beenpressed = false;
beenpressed2 = false;
}
onClipEvent (enterFrame) {
if (_root.shopkeeperchat._currentframe == 1) {
if (Key.isDown(40) and (beenpressed == false)) {
nextFrame();
beenpressed = true;
}
if (!Key.isDown(40)) {
beenpressed = false;
}
if (Key.isDown(38) and (beenpressed2 == false)) {
prevFrame();
beenpressed2 = true;
}
if (!Key.isDown(38)) {
beenpressed2 = false;
}
}
}
Symbol 2146 MovieClip Frame 1
stop();
Symbol 2146 MovieClip Frame 2
stop();
Symbol 2157 MovieClip Frame 1
stop();
Symbol 2157 MovieClip Frame 2
if (_root.sound == true) {
_root.someSound.setVolume(0);
someSound55 = new Sound();
someSound55.attachSound("drum", this);
someSound55.start(0, 1);
}
Symbol 2157 MovieClip Frame 3
_root.fade.daynum.text = "Day " + _root.day;
Symbol 2157 MovieClip Frame 31
_root.changetohell();
Symbol 2158 MovieClip Frame 1
stop();
Symbol 2158 MovieClip Frame 15
_root.changetoheaven();
if (_root.day == 41) {
i = 99;
while (i < 133) {
removeMovieClip("newmeteor" + i);
removeMovieClip("newpenta" + i);
removeMovieClip("newspider" + i);
removeMovieClip("newgoblin" + i);
removeMovieClip("newfireblob" + i);
removeMovieClip("newbat" + i);
removeMovieClip("newgirl" + i);
removeMovieClip("newguy" + i);
removeMovieClip("newskele" + i);
i++;
}
i = 4000;
while (i < 5001) {
removeMovieClip("newredball" + i);
removeMovieClip("newfireball" + i);
i++;
}
_root.nextFrame();
}
Symbol 2187 MovieClip Frame 1
stop();
Symbol 2187 MovieClip Frame 16
stop();
Symbol 2258 MovieClip Frame 1
stop();
Symbol 2258 MovieClip Frame 143
stop();
Symbol 2320 MovieClip Frame 30
stop();
Symbol 2342 MovieClip Frame 150
stop();
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
moving = false;
movetimer = 20 + (Math.random() * 30);
rot = 0;
xtarget = 0;
ytarget = 0;
this.gotoAndPlay(1 + Math.round(Math.random() * 38));
soulspeed = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
if (!moving) {
movetimer = movetimer - 1;
}
if ((movetimer < 0) && (!moving)) {
movetimer = 20 + (Math.random() * 30);
moving = true;
xtarget = 3 + Math.round(Math.random() * 695);
ytarget = 3 + Math.round(Math.random() * 545);
}
if (moving) {
adjside = this._x - xtarget;
oppside = -1 * (this._y - ytarget);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.aimer._rotation = (-1 * angle) + 90;
rot = this.aimer._rotation;
this._y = this._y + (soulspeed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (soulspeed * Math.sin((Math.PI/180) * rot));
}
if ((((moving && (this._x > (xtarget - 10))) && (this._x < (xtarget + 10))) && (this._y > (ytarget - 10))) && (this._y < (ytarget + 10))) {
moving = false;
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2187 MovieClip in Symbol 2343 MovieClip Frame 42
onClipEvent (load) {
timer = 10 + (Math.random() * 200);
this._rotation = this._rotation + (-20 + (Math.random() * 40));
}
onClipEvent (enterFrame) {
timer--;
if (timer > -3) {
timer--;
}
if ((timer < 1) && (this._currentframe < 3)) {
this.play();
}
}
Instance of Symbol 2258 MovieClip in Symbol 2343 MovieClip Frame 54
onClipEvent (load) {
timer = 10 + (Math.random() * 100);
playinger = false;
}
onClipEvent (enterFrame) {
if (!playinger) {
timer--;
}
if ((timer < 1) && (!playinger)) {
playinger = true;
this.gotoAndPlay(2);
}
if (playinger && (this._currentframe == 143)) {
this.gotoAndStop(1);
playinger = false;
timer = 10 + (Math.random() * 100);
}
}
Instance of Symbol 2258 MovieClip in Symbol 2343 MovieClip Frame 54
onClipEvent (load) {
timer = 10 + (Math.random() * 100);
playinger = false;
}
onClipEvent (enterFrame) {
if (!playinger) {
timer--;
}
if ((timer < 1) && (!playinger)) {
playinger = true;
this.gotoAndPlay(2);
}
if (playinger && (this._currentframe == 143)) {
this.gotoAndStop(1);
playinger = false;
timer = 10 + (Math.random() * 100);
}
}
Instance of Symbol 2258 MovieClip in Symbol 2343 MovieClip Frame 54
onClipEvent (load) {
timer = 10 + (Math.random() * 100);
playinger = false;
}
onClipEvent (enterFrame) {
if (!playinger) {
timer--;
}
if ((timer < 1) && (!playinger)) {
playinger = true;
this.gotoAndPlay(2);
}
if (playinger && (this._currentframe == 143)) {
this.gotoAndStop(1);
playinger = false;
timer = 10 + (Math.random() * 100);
}
}
Instance of Symbol 2258 MovieClip in Symbol 2343 MovieClip Frame 54
onClipEvent (load) {
timer = 10 + (Math.random() * 100);
playinger = false;
}
onClipEvent (enterFrame) {
if (!playinger) {
timer--;
}
if ((timer < 1) && (!playinger)) {
playinger = true;
this.gotoAndPlay(2);
}
if (playinger && (this._currentframe == 143)) {
this.gotoAndStop(1);
playinger = false;
timer = 10 + (Math.random() * 100);
}
}
Instance of Symbol 2258 MovieClip in Symbol 2343 MovieClip Frame 54
onClipEvent (load) {
timer = 10 + (Math.random() * 100);
playinger = false;
}
onClipEvent (enterFrame) {
if (!playinger) {
timer--;
}
if ((timer < 1) && (!playinger)) {
playinger = true;
this.gotoAndPlay(2);
}
if (playinger && (this._currentframe == 143)) {
this.gotoAndStop(1);
playinger = false;
timer = 10 + (Math.random() * 100);
}
}
Symbol 2343 MovieClip Frame 102
stop();