Frame 1
stop();
fscommand ("fullscreen", "true");
fscommand ("allowscale", "false");
Instance of Symbol 13 MovieClip "loading_movie" in Frame 1
onClipEvent (load) {
totalKb = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
if (_root._currentframe == 1) {
ifFrameLoaded (5) {
_root.gotoAndStop(2);
}
}
loadedKb = _root.getBytesLoaded();
percent = Math.round((loadedKb / totalKB) * 100);
if (percent >= 100) {
gotoAndStop (2);
}
}
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Instance of Symbol 79 MovieClip "highScores" in Frame 5
onClipEvent (load) {
timeOut = 4000;
timeStart = getTimer();
if (_root.submit) {
_root.submit = false;
action = "INSERT";
winname = _root.name;
winscore = _root.highscore;
_root.emailMovie.name = winname;
_root.emailMovie.score = winscore;
} else {
action = "VIEW";
}
filename = "scores/demo.sco";
scoresize = 10;
viewtype = "FLASH";
_root.highscore = null;
loadVariables ("http://cgi.message.force9.co.uk/scores.php", "", "GET");
}
onClipEvent (enterFrame) {
timeNow = getTimer();
if ((_currentframe == 1) & ((timeNow - timeStart) >= timeOut)) {
gotoAndStop (3);
}
}
onClipEvent (data) {
gotoAndStop (2);
if (action == "INSERT") {
action = "VIEW";
_root.emailMovie.loadVariables("http://cgi.message.force9.co.uk/cgi-bin/formmail.cgi", "GET");
}
}
Instance of Symbol 80 MovieClip "emailMovie" in Frame 5
onClipEvent (load) {
recipient = "info@message.uk.com";
subject = "SpellRacer";
email = _root.email;
}
Frame 6
stop();
_quality = "high";
maxWidth = 550;
minWidth = 0;
maxHeight = 35;
minHeight = 315;
shots = 30;
shootPower = 1;
_root.level++;
bgModule.bgBackModule.bg1.gotoAndStop(_root.level);
bgModule.bgFrontModule.bg1.gotoAndStop(_root.level);
bgModule.bgBackModule.bg2.gotoAndStop(_root.level);
bgModule.bgFrontModule.bg2.gotoAndStop(_root.level);
_root.witchMovie.gotoAndStop(1);
_root.score.potionHit = false;
_root.score.keyHit = false;
if (((key.isDown(66) and key.isDown(85)) and key.isDown(68)) || (bud)) {
shots = 1000;
bud = true;
}
Instance of Symbol 102 MovieClip "bgModule" in Frame 6
onClipEvent (load) {
function moveBg(movieName, bgSpeed) {
movieName._x = movieName._x - bgSpeed;
if (-550 >= movieName._x) {
movieName._x = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe < 30) {
moveBg(bgBackModule, 2);
moveBg(bgFrontModule, 6);
}
}
Instance of Symbol 113 MovieClip "witchMovie" in Frame 6
onClipEvent (load) {
function moveWitch() {
if (key.isDown(39)) {
x = x + thespeed;
}
if (key.isDown(37)) {
x = x - thespeed;
}
if (key.isDown(40)) {
y = y + thespeed;
}
if (key.isDown(38)) {
y = y - thespeed;
}
if (xMax < this._x) {
this._x = xMax;
x = xMax;
} else if (this._x < xMin) {
this._x = xMin;
x = xMin;
}
if (yMax < this._y) {
this._y = yMax;
y = yMax;
} else if (this._y < yMin) {
this._y = yMin;
y = yMin;
}
xmov = (x - this._x) / glide;
ymov = (y - this._y) / glide;
this._x = this._x + xmov;
this._y = this._y + ymov;
}
function shoot() {
if (key.isDown(32) and (0 < _parent.shots)) {
shootCount++;
_parent.shots--;
if (_root.shootPower == 3) {
duplicateMovieClip (_parent.shootModule, "shoot" + shootCount, shootCount);
_parent["shoot" + shootCount].gotoAndStop(2);
_parent["shoot" + shootCount]._visible = true;
_parent["shoot" + shootCount]._x = this._x + 40;
_parent["shoot" + shootCount]._y = this._y + 30;
shootCount++;
duplicateMovieClip (_parent.shootModule, "shoot" + shootCount, shootCount);
_parent["shoot" + shootCount].gotoAndStop(2);
_parent["shoot" + shootCount]._visible = true;
_parent["shoot" + shootCount]._x = this._x + 60;
_parent["shoot" + shootCount]._y = this._y + 10;
shootCount++;
duplicateMovieClip (_parent.shootModule, "shoot" + shootCount, shootCount);
_parent["shoot" + shootCount].gotoAndStop(2);
_parent["shoot" + shootCount]._visible = true;
_parent["shoot" + shootCount]._x = this._x + 40;
_parent["shoot" + shootCount]._y = this._y - 10;
} else {
duplicateMovieClip (_parent.shootModule, "shoot" + shootCount, shootCount);
_parent["shoot" + shootCount]._visible = true;
_parent["shoot" + shootCount]._x = this._x + 60;
_parent["shoot" + shootCount]._y = this._y + 10;
}
}
}
x = this._x;
y = this._y;
xMax = _root.maxWidth - (this._width / 2);
xMin = _root.minWidth + (this._width / 2);
yMin = _root.maxHeight + (this._height / 2);
yMax = _root.minHeight - (this._height / 2);
thespeed = 30;
glide = 5;
shootCount = 0;
_parent.shootModule._visible = false;
}
onClipEvent (enterFrame) {
moveWitch();
if (_parent._currentframe == 15) {
shoot();
}
}
Instance of Symbol 151 MovieClip "score" in Frame 6
onClipEvent (load) {
ghostScore = 300;
pumpkinScore = 100;
batScore = 500;
specialScore = 1000;
potion._visible = false;
key._visible = false;
}
onClipEvent (enterFrame) {
points = (((ghostScore * ghosts) + (pumpkinScore * pumpkins)) + (batScore * bats)) + (specialScore * special);
if (0 >= lives) {
_root.gotoAndStop("end");
}
}
Instance of Symbol 159 MovieClip "qualityMovie" in Frame 6
onClipEvent (enterFrame) {
if (key.isDown(81)) {
play();
}
}
Frame 15
stop();
if (_root.qualityMovie._currentframe == 1) {
_quality = "low";
} else {
_quality = "medium";
}
Instance of Symbol 272 MovieClip "baddiesModule" in Frame 15
onClipEvent (load) {
function moveGhost() {
var n = 1;
while (maxGhosts >= n) {
this["ghost" + n]._x = this["ghost" + n]._x - ghostSpeed;
if ((this["ghost" + n]._y < _parent.witchMovie._y) and (_parent.witchMovie._x < this["ghost" + n]._x)) {
this["ghost" + n]._y = this["ghost" + n]._y + ghostYSpeed;
} else if ((_parent.witchMovie._y < this["ghost" + n]._y) and (_parent.witchMovie._x < this["ghost" + n]._x)) {
this["ghost" + n]._y = this["ghost" + n]._y - ghostYSpeed;
}
if (this["ghost" + n]._x < offLeft) {
this["ghost" + n]._x = offRight + random(_root.maxWidth / maxGhosts);
this["ghost" + n]._y = (random((_root.minHeight - ghostHeight) - _parent.maxHeight) + (ghostHeight / 2)) + _parent.maxHeight;
this["ghost" + n]._visible = true;
this["ghost" + n].hitCount = 0;
this["ghost" + n].hitState = false;
this["ghost" + n].hitWitch = false;
}
n++;
}
}
function movePumpkin() {
var n = 1;
while (maxPumpkins >= n) {
this["pumpkin" + n]._x = this["pumpkin" + n]._x - pumpkinSpeed;
if (this["pumpkin" + n]._x < offLeft) {
this["pumpkin" + n]._x = offRight + random(_root.maxWidth / maxPumpkins);
this["pumpkin" + n]._y = (random((_root.minHeight - pumpkinHeight) - _parent.maxHeight) + (pumpkinHeight / 2)) + _parent.maxHeight;
this["pumpkin" + n]._visible = true;
this["pumpkin" + n].hitCount = 0;
this["pumpkin" + n].hitState = false;
this["pumpkin" + n].hitWitch = false;
}
n++;
}
}
function moveBat() {
var n = 1;
while (maxBats >= n) {
if ((((this["bat" + n]._x < _parent.witchMovie._x) and ((_parent.witchMovie._x - batZone) < this["bat" + n]._x)) and (this["bat" + n].hitState == false)) and (this["bat" + n].hitWitch == false)) {
this["bat" + n]._x = this["bat" + n]._x + (batSpeed - 4);
} else {
this["bat" + n]._x = this["bat" + n]._x - batSpeed;
}
if ((this["bat" + n]._y < _parent.witchMovie._y) and (_parent.witchMovie._x < (this["bat" + n]._x + batZone))) {
this["bat" + n]._y = this["bat" + n]._y + batYSpeed;
} else if ((_parent.witchMovie._y < this["bat" + n]._y) and (_parent.witchMovie._x < (this["bat" + n]._x + batZone))) {
this["bat" + n]._y = this["bat" + n]._y - batYSpeed;
}
if (this["bat" + n]._x < offLeft) {
this["bat" + n]._x = offRight + random(_root.maxWidth / maxBats);
this["bat" + n]._y = (random((_root.minHeight - batHeight) - _parent.maxHeight) + (batHeight / 2)) + _parent.maxHeight;
this["bat" + n]._visible = true;
this["bat" + n].hitCount = 0;
this["bat" + n].hitState = false;
this["bat" + n].hitWitch = false;
}
n++;
}
}
if (_root.level == 1) {
if (_root.beginner) {
maxGhosts = 1;
ghostSpeed = 5;
ghostYSpeed = 2;
maxBats = 0;
maxPumpkins = 2;
pumpkinSpeed = 10;
} else {
maxGhosts = 2;
ghostSpeed = 5;
ghostYSpeed = 2;
maxBats = 0;
maxPumpkins = 3;
pumpkinSpeed = 10;
}
} else if (_root.level == 2) {
if (_root.beginner) {
maxGhosts = 1;
ghostSpeed = 5;
ghostYSpeed = 2;
maxBats = 1;
batSpeed = 7;
batYSpeed = 3;
batZone = 150;
maxPumpkins = 2;
pumpkinSpeed = 10;
} else {
maxGhosts = 2;
ghostSpeed = 6;
ghostYSpeed = 3;
maxBats = 1;
batSpeed = 7;
batYSpeed = 3;
batZone = 150;
maxPumpkins = 4;
pumpkinSpeed = 12;
}
} else if (_root.beginner) {
maxGhosts = 2;
ghostSpeed = 6;
ghostYSpeed = 2;
maxBats = 2;
batSpeed = 7;
batYSpeed = 3;
batZone = 200;
maxPumpkins = 2;
pumpkinSpeed = 10;
} else {
maxGhosts = 3;
ghostSpeed = 7;
ghostYSpeed = 4;
maxBats = 2;
batSpeed = 8;
batYSpeed = 4;
batZone = 200;
maxPumpkins = 4;
pumpkinSpeed = 14;
}
ghostHeight = ghost1._height;
pumpkinHeight = pumpkin1._height;
batHeight = bat._height;
offRight = 600;
offLeft = -50;
var n = 2;
while (maxGhosts >= n) {
duplicateMovieClip (ghost1, "ghost" + n, n);
this["ghost" + n]._y = (random((_root.minHeight - ghostHeight) - _parent.maxHeight) + (ghostHeight / 2)) + _parent.maxHeight;
this["ghost" + n]._x = this["ghost" + n]._x + (((n * _root.maxWidth) / maxGhosts) - random(_root.maxWidth / maxGhosts));
n++;
}
var n = 2;
while (maxPumpkins >= n) {
duplicateMovieClip (pumpkin1, "pumpkin" + n, n);
this["pumpkin" + n]._y = (random((_root.minHeight - pumpkinHeight) - _parent.maxHeight) + (pumpkinHeight / 2)) + _parent.maxHeight;
this["pumpkin" + n]._x = this["pumpkin" + n]._x + (((n * _root.maxWidth) / maxPumpkins) - random(_root.maxWidth / maxPumpkins));
n++;
}
var n = 1;
while (maxBats >= n) {
duplicateMovieClip (bat, "bat" + n, n);
this["bat" + n]._y = (random((_root.minHeight - batHeight) - _parent.maxHeight) + (batHeight / 2)) + _parent.maxHeight;
this["bat" + n]._x = this["bat" + n]._x + (((n * _root.maxWidth) / maxBats) - random(_root.maxWidth / maxBats));
n++;
}
}
onClipEvent (enterFrame) {
moveGhost();
movePumpkin();
moveBat();
}
Instance of Symbol 278 MovieClip "ammo" in Frame 15
onClipEvent (load) {
function movePotion() {
if (((playing == true) || (start1 == _root.time.time)) || (start2 == _root.time.time)) {
playing = true;
this._x = this._x - speed;
}
if (this._x < offLeft) {
playing = false;
this._x = offRight;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
this._visible = true;
hitCount = 0;
hitState = false;
hitWitch = false;
}
if ((hitCount >= maxHit) and (hitWitch == false)) {
this._visible = false;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
}
if (((this.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.shots = _root.shots + 30;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(6);
}
}
speed = 6;
height = this._height;
offRight = 600;
offLeft = -50;
hitCount = 0;
hitState = false;
hitWitch = false;
playing = false;
maxHit = 1;
start1 = random(15) + 20;
start2 = random(15) + 60;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
}
onClipEvent (enterFrame) {
movePotion();
}
Instance of Symbol 290 MovieClip "shield" in Frame 15
onClipEvent (load) {
function movePotion() {
if (((playing == true) || (start1 == _root.time.time)) || (start2 == _root.time.time)) {
playing = true;
this._x = this._x - speed;
}
if (this._x < offLeft) {
playing = false;
this._x = offRight;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
this._visible = true;
hitCount = 0;
hitState = false;
hitWitch = false;
}
if ((hitCount >= maxHit) and (hitWitch == false)) {
this._visible = false;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
}
if (((this.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.witchMovie.gotoAndStop(2);
timeStart = int(getTimer() / 1000);
shieldOn = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(6);
}
if (shieldOn) {
timeNow = int(getTimer() / 1000);
if ((timeNow - timeStart) >= shieldTime) {
_root.witchMovie.gotoAndStop(1);
shieldOn = false;
} else if ((timeNow - timeStart) >= (shieldTime - 1)) {
_root.witchMovie.gotoAndStop(3);
}
}
}
speed = 6;
height = this._height;
shieldOn = false;
shieldTime = 10;
offRight = 600;
offLeft = -50;
hitCount = 0;
hitState = false;
hitWitch = false;
playing = false;
maxHit = 1;
start1 = random(15) + 30;
start2 = random(15) + 70;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
}
onClipEvent (enterFrame) {
movePotion();
}
Instance of Symbol 303 MovieClip "weapon" in Frame 15
onClipEvent (load) {
function movePotion() {
if (((playing == true) || (start1 == _root.time.time)) || (start2 == _root.time.time)) {
playing = true;
this._x = this._x - speed;
}
if (this._x < offLeft) {
playing = false;
this._x = offRight;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
this._visible = true;
hitCount = 0;
hitState = false;
hitWitch = false;
}
if ((hitCount >= maxHit) and (hitWitch == false)) {
this._visible = false;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
}
if (((this.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.shootPower = 3;
weaponOn = true;
timeStart = int(getTimer() / 1000);
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(6);
}
if (weaponOn) {
timeNow = int(getTimer() / 1000);
if ((timeNow - timeStart) >= weaponTime) {
_root.shootPower = 1;
weaponOn = false;
}
}
}
speed = 6;
height = this._height;
weaponOn = false;
weaponTime = 10;
offRight = 600;
offLeft = -50;
hitCount = 0;
hitState = false;
hitWitch = false;
playing = false;
maxHit = 1;
start1 = random(15) + 10;
start2 = random(15) + 50;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
}
onClipEvent (enterFrame) {
movePotion();
}
Instance of Symbol 304 MovieClip "potion" in Frame 15
onClipEvent (load) {
function movePotion() {
if ((playing == true) || (start1 == _root.time.time)) {
playing = true;
this._x = this._x - speed;
}
if ((hitCount >= maxHit) and (hitWitch == false)) {
this._visible = false;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
}
if (((this.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.score.potion._visible = true;
_root.score.potionHit = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(7);
_root.score.special++;
}
}
speed = 6;
height = this._height;
offRight = 600;
offLeft = -50;
hitCount = 0;
hitState = false;
hitWitch = false;
playing = false;
maxHit = 1;
start1 = random(10) + 80;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
}
onClipEvent (enterFrame) {
if (_root.level == 3) {
movePotion();
}
}
Instance of Symbol 305 MovieClip "key" in Frame 15
onClipEvent (load) {
function moveKey() {
if ((playing == true) || (start1 == _root.time.time)) {
playing = true;
this._x = this._x - speed;
}
if ((hitCount >= maxHit) and (hitWitch == false)) {
this._visible = false;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
}
if (((this.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.score.key._visible = true;
_root.score.keyHit = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(7);
_root.score.special++;
}
}
speed = 6;
height = this._height;
offRight = 600;
offLeft = -50;
hitCount = 0;
hitState = false;
hitWitch = false;
playing = false;
maxHit = 1;
start1 = random(10) + 80;
this._y = (random((_root.minHeight - height) - _parent.maxHeight) + (height / 2)) + _parent.maxHeight;
}
onClipEvent (enterFrame) {
if (_root.level == 2) {
moveKey();
}
}
Instance of Symbol 310 MovieClip "shootModule" in Frame 15
onClipEvent (load) {
function shoot() {
this._x = this._x + shootSpeed;
if ((_parent.maxWidth + 10) < this._x) {
this.removeMovieClip();
}
var n = 1;
while (_parent.baddiesModule.maxGhosts >= n) {
if ((_parent.baddiesModule["ghost" + n].hitTest(this._x, this._y, true) and (_parent.baddiesModule["ghost" + n].hitState == false)) and (_parent.baddiesModule["ghost" + n].hitWitch == false)) {
_parent.baddiesModule["ghost" + n].hitCount = _parent.baddiesModule["ghost" + n].hitCount + _root.shootPower;
this.removeMovieClip();
}
n++;
}
var n = 1;
while (_parent.baddiesModule.maxPumpkins >= n) {
if ((_parent.baddiesModule["pumpkin" + n].hitTest(this._x, this._y, true) and (_parent.baddiesModule["pumpkin" + n].hitState == false)) and (_parent.baddiesModule["pumpkin" + n].hitWitch == false)) {
_parent.baddiesModule["pumpkin" + n].hitCount = _parent.baddiesModule["pumpkin" + n].hitCount + _root.shootPower;
this.removeMovieClip();
}
n++;
}
var n = 1;
while (_parent.baddiesModule.maxBats >= n) {
if ((_parent.baddiesModule["bat" + n].hitTest(this._x, this._y, true) and (_parent.baddiesModule["bat" + n].hitState == false)) and (_parent.baddiesModule["bat" + n].hitWitch == false)) {
_parent.baddiesModule["bat" + n].hitCount = _parent.baddiesModule["bat" + n].hitCount + _root.shootPower;
this.removeMovieClip();
}
n++;
}
if ((_parent.weapon.hitTest(this._x, this._y, true) and (_parent.weapon.hitState == false)) and (_parent.weapon.hitWitch == false)) {
_parent.weapon.hitCount = _parent.weapon.hitCount + _root.shootPower;
this.removeMovieClip();
}
if ((_parent.ammo.hitTest(this._x, this._y, true) and (_parent.ammo.hitState == false)) and (_parent.ammo.hitWitch == false)) {
_parent.ammo.hitCount = _parent.ammo.hitCount + _root.shootPower;
this.removeMovieClip();
}
if ((_parent.shield.hitTest(this._x, this._y, true) and (_parent.shield.hitState == false)) and (_parent.shield.hitWitch == false)) {
_parent.shield.hitCount = _parent.shield.hitCount + _root.shootPower;
this.removeMovieClip();
}
if ((_parent.potion.hitTest(this._x, this._y, true) and (_parent.potion.hitState == false)) and (_parent.potion.hitWitch == false)) {
_parent.potion.hitCount = _parent.potion.hitCount + _root.shootPower;
this.removeMovieClip();
}
if ((_parent.key.hitTest(this._x, this._y, true) and (_parent.key.hitState == false)) and (_parent.key.hitWitch == false)) {
_parent.key.hitCount = _parent.key.hitCount + _root.shootPower;
this.removeMovieClip();
}
}
shootSpeed = 30;
weaponStart = false;
weaponOn = false;
}
onClipEvent (enterFrame) {
shoot();
}
Instance of Symbol 326 MovieClip "explosion" in Frame 15
onClipEvent (load) {
explosionCount = 0;
}
Instance of Symbol 327 MovieClip "time" in Frame 15
onClipEvent (load) {
time = 0;
maxTime = 90;
timeStart = int(getTimer() / 1000);
}
onClipEvent (enterFrame) {
timeNow = int(getTimer() / 1000);
time = int(100 - (((maxTime - (timeNow - timeStart)) * 100) / maxTime));
time_bar._xscale = time;
if (100 < time) {
time = 100;
if (_root.level == 3) {
_root.gotoAndStop("end");
} else {
_root.gotoAndStop("next_level");
}
}
}
Frame 25
stop();
_root._quality = "high";
Frame 35
stop();
_root._quality = "high";
Instance of Symbol 389 MovieClip "end" in Frame 35
onClipEvent (load) {
if (0 < _root.score.lives) {
this.gotoAndStop("win");
}
}
Symbol 8 Button
on (release) {
_root.beginner = true;
_root.gotoAndStop(6);
}
Symbol 11 Button
on (release) {
_root.beginner = false;
_root.gotoAndStop(6);
}
Symbol 13 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 2
stop();
Symbol 18 MovieClip Frame 30
stop();
_parent.gotoAndStop(3);
Symbol 21 Button
on (release) {
gotoAndStop (5);
}
Symbol 24 Button
on (release) {
gotoAndStop (4);
}
Symbol 31 Button
on (release) {
getURL ("http://www.message.uk.com", "_blank");
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Instance of Symbol 103 MovieClip "hitArea" in Symbol 107 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 103 MovieClip "hitArea" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 112 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 4
stop();
Symbol 118 MovieClip Frame 30
_parent.gotoAndStop("playing");
Symbol 159 MovieClip Frame 1
stop();
_quality = "low";
Symbol 159 MovieClip Frame 2
stop();
_quality = "medium";
Instance of Symbol 103 MovieClip "hitArea" in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 103 MovieClip "hitArea" in Symbol 225 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 103 MovieClip "hitArea" in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 103 MovieClip "hitArea" in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 103 MovieClip "hitArea" in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 103 MovieClip "hitArea" in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 227 MovieClip "ghost1" in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
hitCount = 0;
hitState = false;
hitWitch = false;
maxHit = 3;
}
onClipEvent (enterFrame) {
if ((hitCount >= maxHit) || ((((ghost_mov.ghost_anim.hitArea.hitTest(_root.witchMovie) == true) and (hitWitch == false)) and (hitState == false)) and (_root.witchMovie._currentframe != 1))) {
this._visible = false;
_root.score.ghosts++;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(3);
} else if (((ghost_mov.ghost_anim.hitArea.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.score.lives--;
_root.witchMovie.hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
_root.witchMovie.gotoAndStop(4);
}
}
Instance of Symbol 259 MovieClip "pumpkin1" in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
hitCount = 0;
hitState = false;
hitWitch = false;
maxHit = 1;
}
onClipEvent (enterFrame) {
if ((hitCount >= maxHit) || ((((pumpin_anim.hitArea.hitTest(_root.witchMovie) == true) and (hitWitch == false)) and (hitState == false)) and (_root.witchMovie._currentframe != 1))) {
this._visible = false;
_root.score.pumpkins++;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(2);
} else if (((pumpin_anim.hitArea.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.score.lives--;
_root.witchMovie.hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
_root.witchMovie.gotoAndStop(4);
}
}
Instance of Symbol 271 MovieClip "bat" in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
hitCount = 0;
hitState = false;
hitWitch = false;
maxHit = 2;
}
onClipEvent (enterFrame) {
if ((hitCount >= maxHit) || ((((bat_flap.hitArea.hitTest(_root.witchMovie) == true) and (hitWitch == false)) and (hitState == false)) and (_root.witchMovie._currentframe != 1))) {
this._visible = false;
_root.score.bats++;
hitCount = 0;
hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(4);
} else if (((bat_flap.hitArea.hitTest(_root.witchMovie.witch_anim.witch_graphic.hitArea) == true) and (hitWitch == false)) and (hitState == false)) {
hitWitch = true;
this._visible = false;
_root.score.lives--;
_root.witchMovie.hitState = true;
_root.explosion.explosionCount++;
duplicateMovieClip (_root.explosion, "explosion" + _root.explosion.explosionCount, _root.explosion.explosionCount);
_root["explosion" + _root.explosion.explosionCount]._x = this._x;
_root["explosion" + _root.explosion.explosionCount]._y = this._y;
_root["explosion" + _root.explosion.explosionCount].gotoAndStop(5);
_root.witchMovie.gotoAndStop(4);
}
}
Symbol 308 MovieClip Frame 24
stop();
Symbol 309 MovieClip Frame 24
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 313 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 315 MovieClip Frame 6
stop();
Symbol 316 MovieClip Frame 6
stop();
Symbol 320 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 324 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 2
stop();
Symbol 326 MovieClip Frame 3
stop();
Symbol 326 MovieClip Frame 4
stop();
Symbol 326 MovieClip Frame 5
stop();
Symbol 326 MovieClip Frame 6
stop();
Symbol 326 MovieClip Frame 7
stop();
Symbol 334 MovieClip Frame 35
_parent.gotoAndStop("start");
Symbol 338 Button
on (release) {
gotoAndStop (20);
}
Symbol 341 Button
on (release) {
_root.bud = false;
_root.level = 0;
_root.score.lives = 5;
_root.score.bats = 0;
_root.score.pumpkins = 0;
_root.score.ghosts = 0;
_root.score.specials = 0;
_root.score.potion._visible = false;
_root.score.key._visible = false;
_root.gotoAndStop(3);
}
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 24
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 3
stop();
Symbol 355 MovieClip Frame 4
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 20
stop();
Symbol 383 MovieClip Frame 55
if (_root.score.key._visible != true) {
stop();
win_text.gotoAndStop(2);
} else {
castle.door.play();
}
Symbol 383 MovieClip Frame 90
if (_root.score.potion._visible != true) {
stop();
win_text.gotoAndStop(3);
}
Symbol 383 MovieClip Frame 145
stop();
if (_root.score.potion._visible == true) {
win_text.gotoAndStop(4);
}
Symbol 386 Button
on (release) {
_root.highscore = _root.score.points;
_root.bud = false;
_root.level = 0;
_root.score.lives = 5;
_root.score.bats = 0;
_root.score.pumpkins = 0;
_root.score.ghosts = 0;
_root.score.specials = 0;
_root.score.potion._visible = false;
_root.score.key._visible = false;
_root.submit = true;
_root.gotoAndStop(5);
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 10
stop();
Symbol 389 MovieClip Frame 20
stop();