Frame 1
stop();
this.onEnterFrame = function () {
percent = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
Sprite._x = 100 + (percent * 6);
txtLoader.text = String(percent) + "%";
if (percent >= 100) {
gotoAndStop (2);
delete this.onEnterFrame;
}
};
Frame 2
stop();
if (isNaN(Gsound)) {
var Gsound = true;
}
var GameSound = new Sound();
mcSpeak.onPress = function () {
switch (Gsound) {
case true :
Gsound = false;
mcSpeak.gotoAndStop(2);
GameSound.setVolume(0);
return;
case false :
Gsound = true;
mcSpeak.gotoAndStop(1);
GameSound.setVolume(100);
}
};
HelpTxt._visible = false;
mcHelp.onRollOver = function () {
HelpTxt._visible = true;
};
mcHelp.onRollOut = function () {
HelpTxt._visible = false;
};
btnSoarin._visible = false;
btnFlyShy._visible = false;
btnSFire._visible = false;
btnDerpy._visible = false;
var savedData = SharedObject.getLocal("CCannon");
if (savedData.data.pas1 == "spiderses") {
peaceAch = true;
}
if (savedData.data.pas2 == "magnetto") {
sniperAch = true;
}
if (savedData.data.pas3 == "sandvich") {
guardAch = true;
}
if (savedData.data.pas4 == "trollestia") {
secAch = true;
}
if (guardAch) {
btnSoarin._visible = true;
}
if (peaceAch) {
btnFlyShy._visible = true;
HelpTxt.gotoAndStop(2);
}
if (sniperAch) {
btnSFire._visible = true;
}
if (secAch) {
btnDerpy._visible = true;
}
p = 1;
while (p <= 5) {
if (isNaN(savedData.data["score" + p])) {
savedData.data["score" + p] = 0;
}
p++;
}
if (isNaN(savedData.data.PSShot)) {
savedData.data.PSShot = 0;
}
savedData.flush();
btnDash.onPress = function () {
this._parent.CharNum = 1;
gotoAndStop (3);
};
btnFlyShy.onPress = function () {
this._parent.CharNum = 2;
gotoAndStop (3);
};
btnSoarin.onPress = function () {
this._parent.CharNum = 5;
gotoAndStop (3);
};
btnSFire.onPress = function () {
this._parent.CharNum = 4;
gotoAndStop (3);
};
btnDerpy.onPress = function () {
this._parent.CharNum = 3;
gotoAndStop (3);
};
this.onEnterFrame = function () {
if (Key.isDown(32)) {
if (isNaN(this.CharNum)) {
this.CharNum = 1;
}
delete this.onEnterFrame;
gotoAndStop (3);
}
};
Frame 3
function newCCake() {
fireName = "mcCake" + String(fireCount);
this.CH.attachMovie("mcCake" + String((fireCount % 3) + 1), fireName, this.CH.getNextHighestDepth(), initCake);
this.CH[fireName]._x = this.CH.Char._x + (60 * Math.cos(a));
this.CH[fireName]._y = this.CH.Char._y + (60 * Math.sin(a));
this.CH[fireName]._rotation = 57.3248407643312 * a;
this.CH[fireName].aksel = 0;
if (this.rainboom == true) {
this.CH[fireName].fireSpeed = 40;
} else {
this.CH[fireName].fireSpeed = 32;
}
fireCount++;
}
function newDCake() {
fireName = "mcCake" + String(fireCount);
this.CH.attachMovie("mcCake" + String((fireCount % 3) + 1), fireName, this.CH.getNextHighestDepth(), initCake);
this.CH[fireName]._x = this.CH.Char._x;
this.CH[fireName]._y = this.CH.Char._y;
this.CH[fireName]._rotation = 57.3248407643312 * ((a + 2.64) + (1 * _global.RDir));
this.CH[fireName].aksel = 0;
this.CH[fireName].fireSpeed = 15;
fireCount++;
}
function newSCake() {
fireName = "mcSCake" + String(fireCount);
this.CH.attachMovie("mcSCake" + String((fireCount % 3) + 1), fireName, this.CH.getNextHighestDepth(), initSCake);
this.CH[fireName]._x = this.CH.Char._x + (60 * Math.cos(a));
this.CH[fireName]._y = this.CH.Char._y + (60 * Math.sin(a));
this.CH[fireName]._rotation = 57.3248407643312 * a;
this.CH[fireName].fireSpeed = 50;
fireCount++;
}
function newNCake() {
fireName = "mcCake" + String(fireCount);
this.CH.attachMovie("mcCake" + String((fireCount % 3) + 1), fireName, this.CH.getNextHighestDepth(), initCake);
this.CH[fireName]._x = this.CH.Char._x + (60 * Math.cos(a));
this.CH[fireName]._y = this.CH.Char._y + (60 * Math.sin(a));
this.CH[fireName]._rotation = 57.3248407643312 * ((a - 0.2) + (Math.random() * 0.4));
this.CH[fireName].aksel = 0;
this.CH[fireName].fireSpeed = 36;
fireCount++;
}
function newRainbow(RX, RY) {
rainbowName = "mcRB" + String(rainbowCount);
this.CH.RH.attachMovie("Rainbow", rainbowName, this.CH.RH.getNextHighestDepth());
this.CH.RH[rainbowName]._y = RY;
this.CH.RH[rainbowName]._x = RX;
this.CH.RH[rainbowName]._xscale = (100 * v) / 24;
this.CH.RH[rainbowName]._rotation = this.CH.Char._rotation;
rainbowCount++;
}
function newBoom(RX, RY) {
rainbowName = "mcRB" + String(rainbowCount);
this.CH.attachMovie("Boom", rainbowName, this.CH.getNextHighestDepth(), initBoom);
this.CH[rainbowName]._y = RY;
this.CH[rainbowName]._x = RX;
this.CH[rainbowName]._xscale = (100 * v) / 24;
this.CH[rainbowName]._rotation = this.CH.Char._rotation;
rainbowCount++;
}
function newExpl(EX, EY) {
SoFr = Math.floor(1 + (Math.random() * 3)) * 2;
SH.sndPop.gotoAndPlay(SoFr);
ExplName = "Expl" + String(rainbowCount);
this.CH.attachMovie("Expl", ExplName, this.CH.getNextHighestDepth());
this.CH[ExplName]._x = EX;
this.CH[ExplName]._y = EY;
rainbowCount++;
}
function newExpl2(EX, EY) {
SoFr = Math.floor(1 + (Math.random() * 4)) * 2;
SH.sndPop.gotoAndPlay(SoFr);
ExplName = "Expl" + String(rainbowCount);
this.CH.attachMovie("Expl2", ExplName, this.CH.getNextHighestDepth());
this.CH[ExplName]._x = EX;
this.CH[ExplName]._y = EY;
rainbowCount++;
}
function newESprite(Nam) {
if ((spriteCount % 2) == 1) {
SX = 1680;
} else {
SX = -700;
}
SY = (Math.random() * 700) - 300;
if (Math.random() < 0.165) {
SBeh = 1;
} else {
SBeh = 0;
}
spriteName = "Sprite" + String(Nam);
this.CH.attachMovie("Sprite" + String((spriteCount % 4) + 1), spriteName, this.CH.getNextHighestDepth(), initESprite);
this.CH[spriteName]._y = SY;
this.CH[spriteName]._x = SX;
if (Math.random() > 0.5) {
this.CH[spriteName].xSpeed = 5 + (10 * Math.random());
this.CH[spriteName].Rdir = true;
} else {
this.CH[spriteName].xSpeed = -5 - (10 * Math.random());
this.CH[spriteName].Rdir = false;
this.CH[spriteName]._xscale = -1 * this._xscale;
}
this.CH[spriteName].ySpeed = -6 + (12 * Math.random());
this.CH[spriteName].behav = SBeh;
spriteCount++;
}
function renewTimer() {
mcTimer.txtTime.text = this.Time;
if (this.Time < 1) {
delete this.onEnterFrame;
gotoAndStop (4);
}
}
function TimeOver() {
delete this.onEnterFrame;
gotoAndStop (5);
}
function CCShoot() {
switch (this.CharNum) {
case 1 :
if (fireCharge < 1) {
newCCake();
SH.sndShoot.gotoAndPlay(2);
CakesShoot++;
fireCharge = 6;
}
break;
case 2 :
if (this.rainCharged) {
this.rainCharged = false;
this.stare = true;
RaFr = ((SpeechCount % 2) + 1) * 2;
SH.sndFrage.gotoAndPlay(RaFr);
SpeechCount++;
RTimer1.gotoAndPlay(2);
mcScreen.gotoAndPlay(2);
rainbowName = "mcStare" + String(rainbowCount);
this.CH.BGH.attachMovie("Stare", rainbowName, this.CH.BGH.getNextHighestDepth(), initStare);
this.CH.BGH[rainbowName]._x = CH.Char._x;
this.CH.BGH[rainbowName]._y = CH.Char._y;
rainbowCount++;
}
break;
case 3 :
if (fireCharge < 1) {
newDCake();
SH.sndShoot.gotoAndPlay(2);
CakesShoot++;
fireCharge = 6;
}
break;
case 4 :
if (fireCharge < 1) {
newSCake();
SH.sndSniper.gotoAndPlay(2);
CakesShoot++;
fireCharge = 25;
}
break;
case 5 :
CtrlPressed = true;
if (!this.NataStart) {
SH.sndNata.gotoAndPlay(2);
this.NataStart = true;
fireCharge = 20;
}
if (fireCharge >= 1) {
break;
}
newNCake();
SH.sndShoot.gotoAndPlay(2);
CakesShoot++;
this.Time--;
renewTimer();
fireCharge = 3;
}
}
stop();
if (isNaN(SpeechCount)) {
SpeechCount = 0;
}
if (this.CharNum == 2) {
SpritePic._visible = false;
this.Time = 0;
RTimer._visible = false;
RTimer1._visible = true;
RTimer.stop();
RTimer1.gotoAndPlay(59);
} else {
RTimer1._visible = false;
RTimer._visible = true;
RTimer1.stop();
RTimer.gotoAndPlay(181);
this.Time = 30;
SpritePic._visible = true;
txtKilled.text = String(0);
}
if (this.CharNum == 5) {
this.Time = this.Time + 30;
}
this.SprTBoomed = 0;
this.SprShoot = 0;
var CakesShoot = 0;
this.SprBoomed = 0;
this.MaxBoomed = 0;
this.Collis = 0;
this.RBPoints = 0;
this.Pacif = 0;
mcTimer.txtTime.text = this.Time;
this.CH.BGH.attachMovie("1SKY", "SKY", this.CH.BGH.getNextHighestDepth());
this.CH.BGH.SKY._x = 400;
this.CH.BGH.SKY._y = 300;
this.CH.BGH.attachMovie("1BG", "BG", this.CH.BGH.getNextHighestDepth());
this.CH.BGH.BG._x = 400;
this.CH.BGH.BG._y = 240;
this.CH.BGH.attachMovie("1GR", "GR", this.CH.BGH.getNextHighestDepth());
this.CH.BGH.GR._x = 400;
this.CH.BGH.GR._y = 570;
this.CH.BGH.attachMovie("1FL", "FL", this.CH.BGH.getNextHighestDepth());
this.CH.BGH.FL._x = 400;
this.CH.BGH.FL._y = 640;
this.CH.attachMovie("Shadow", "Shad", this.CH.getNextHighestDepth());
this.CH.Shad._y = 580;
switch (this.CharNum) {
case 1 :
this.CH.attachMovie("Dash", "Char", this.CH.getNextHighestDepth());
break;
case 2 :
this.CH.attachMovie("FlyShy", "Char", this.CH.getNextHighestDepth());
break;
case 3 :
this.CH.attachMovie("Derpy", "Char", this.CH.getNextHighestDepth());
break;
case 4 :
this.CH.attachMovie("SpitFire", "Char", this.CH.getNextHighestDepth());
break;
case 5 :
this.CH.attachMovie("Soarin", "Char", this.CH.getNextHighestDepth());
}
this.CH.Char._x = 400;
this.CH.Char._y = 300;
var a = 0;
var v = 16;
var turning = 0;
var LRpressed = false;
_global.spining = false;
_global.RDir = true;
_global.CTurn = true;
mcShadow._alpha = 0;
var fireCount = 1;
var spriteCount = 1;
var initCake = new Object();
var initSCake = new Object();
var fireCharge = 0;
this.NataStart = false;
var CtrlPressed = true;
var rainbowCount = 1;
this.rainboom = false;
this.rainCharged = false;
var initESprite = new Object();
var initBoom = new Object();
var initStare = new Object();
initStare.onEnterFrame = function () {
this._x = this._parent._parent.Char._x;
this._y = this._parent._parent.Char._y;
m = 1;
while (m <= 12) {
if (this.hitTest(CH["Sprite" + m])) {
CH["Sprite" + m].behav = 2;
}
m++;
}
};
initCake.onEnterFrame = function () {
if (this.aksel < 65) {
this.aksel = this.aksel + 0.3;
}
this._y = this._y + ((this.fireSpeed * Math.sin((this._rotation * 3.14) / 180)) + (this.aksel++));
this._x = this._x + (this.fireSpeed * Math.cos((this._rotation * 3.14) / 180));
if (((this._y > ((-1 * CH._y) + 650)) or (this._x > ((-1 * CH._x) + 850))) or (this._x < ((-1 * CH._x) - 50))) {
delete this.onEnterFrame;
removeMovieClip(this);
}
i = 1;
while (i <= 12) {
if (this.hitTest(this._parent["Sprite" + i])) {
this._parent._parent.SprShoot++;
this._parent._parent.txtKilled.text = String(this._parent._parent.SprShoot + this._parent._parent.SprTBoomed);
if ((!this._parent._parent.rainboom) and (!this._parent._parent.rainCharged)) {
Fr = RTimer._currentframe + 25;
if (Fr >= 830) {
RTimer.gotoAndStop(830);
} else {
RTimer.gotoAndPlay(Fr);
}
}
this._parent._parent.Time = this._parent._parent.Time + 1;
if (this._parent._parent.CharNum == 5) {
this._parent._parent.Time = this._parent._parent.Time + 6;
}
renewTimer();
newExpl(this._x, this._y);
removeMovieClip(this._parent["Sprite" + i]);
newESprite(i);
removeMovieClip(this);
}
i++;
}
};
initSCake.onEnterFrame = function () {
this._y = this._y + (this.fireSpeed * Math.sin((this._rotation * 3.14) / 180));
this._x = this._x + (this.fireSpeed * Math.cos((this._rotation * 3.14) / 180));
if ((((this._y > ((-1 * CH._y) + 650)) or (this._y < ((-1 * CH._y) - 50))) or (this._x > ((-1 * CH._x) + 850))) or (this._x < ((-1 * CH._x) - 50))) {
delete this.onEnterFrame;
removeMovieClip(this);
}
i = 1;
while (i <= 12) {
if (this.hitTest(this._parent["Sprite" + i])) {
this._parent._parent.SprShoot++;
this._parent._parent.txtKilled.text = String(this._parent._parent.SprShoot + this._parent._parent.SprTBoomed);
if ((!this._parent._parent.rainboom) and (!this._parent._parent.rainCharged)) {
Fr = RTimer._currentframe + 25;
if (Fr >= 830) {
RTimer.gotoAndStop(830);
} else {
RTimer.gotoAndPlay(Fr);
}
}
this._parent._parent.Time = this._parent._parent.Time + 2;
renewTimer();
newExpl(this._x, this._y);
removeMovieClip(this._parent["Sprite" + i]);
newESprite(i);
}
i++;
}
};
initBoom.onEnterFrame = function () {
k = 1;
while (k <= 12) {
if (this.RainHT.hitTest(this._parent["Sprite" + k])) {
newExpl(this._parent["Sprite" + k]._x, this._parent["Sprite" + k]._y);
removeMovieClip(this._parent["Sprite" + k]);
newESprite(k);
this._parent._parent.SprBoomed++;
this._parent._parent.SprTBoomed++;
this._parent._parent.txtKilled.text = String(this._parent._parent.SprShoot + this._parent._parent.SprTBoomed);
if (this._parent._parent.SprBoomed > this._parent._parent.MaxBoomed) {
this._parent._parent.MaxBoomed = this._parent._parent.SprBoomed;
}
this._parent._parent.Time = this._parent._parent.Time + 1;
renewTimer();
}
k++;
}
};
initESprite.onEnterFrame = function () {
switch (this.behav) {
case 0 :
if (Math.random() < 0.002) {
this.behav = 1;
if (Math.random() > 0.66) {
SH.sndSprite.gotoAndPlay(2);
} else if (Math.random() > 0.66) {
SH.sndSprite.gotoAndPlay(4);
} else {
SH.sndSprite.gotoAndPlay(6);
}
}
if ((this._x > 1680) and this.Rdir) {
this.xSpeed = -7 - (5 * Math.random());
this._xscale = this._xscale * -1;
this.Rdir = false;
}
if ((this._x < -700) and (!this.Rdir)) {
this.xSpeed = 7 + (5 * Math.random());
this._xscale = this._xscale * -1;
this.Rdir = true;
}
if (this._x > 1780) {
this.xSpeed = -7 - (5 * Math.random());
}
if (this._x < -800) {
this.xSpeed = 7 + (5 * Math.random());
}
if (this._y < -300) {
this.ySpeed = 1 + (5 * Math.random());
}
if (this._y > 400) {
this.ySpeed = -1 - (5 * Math.random());
}
break;
case 1 :
if (Math.random() > 0.995) {
this.behav = 0;
}
if (((this._parent.Char._x + 10) > this._x) and (this.xSpeed < 10)) {
this.xSpeed = this.xSpeed + 2;
if (!this.Rdir) {
this._xscale = this._xscale * -1;
this.Rdir = true;
}
} else if (((this._parent.Char._x - 10) < this._x) and (this.xSpeed > -10)) {
this.xSpeed = this.xSpeed - 2;
if (this.Rdir) {
this._xscale = this._xscale * -1;
this.Rdir = false;
}
}
if (((this._parent.Char._y + 10) > this._y) and (this.ySpeed < 10)) {
this.ySpeed = this.ySpeed + 2;
} else if (((this._parent.Char._y - 10) < this._y) and (this.ySpeed > -10)) {
this.ySpeed = this.ySpeed - 2;
}
break;
case 2 :
if (this._parent._parent.stare == false) {
this.behav = 0;
}
if (((this._parent.Char._x + 10) > this._x) and (this.xSpeed < 10)) {
this.xSpeed = this.xSpeed - 2;
if (this.Rdir) {
this._xscale = this._xscale * -1;
this.Rdir = false;
}
} else if (((this._parent.Char._x - 10) < this._x) and (this.xSpeed > -10)) {
this.xSpeed = this.xSpeed + 2;
if (!this.Rdir) {
this._xscale = this._xscale * -1;
this.Rdir = true;
}
}
if (((this._parent.Char._y + 10) > this._y) and (this.ySpeed < 10)) {
this.ySpeed = this.ySpeed - 2;
} else if (((this._parent.Char._y - 10) < this._y) and (this.ySpeed > -10)) {
this.ySpeed = this.ySpeed + 2;
}
if (this._x > 1610) {
this.xSpeed = this.xSpeed - 3;
}
if (this._x < -630) {
this.xSpeed = this.xSpeed + 3;
}
if (this._y < -300) {
this.ySpeed = this.ySpeed + 3;
}
if (this._y <= 400) {
break;
}
this.ySpeed = this.ySpeed - 3;
}
if ((Math.abs(this.xSpeed) + Math.abs(this.ySpeed)) > 12) {
this.xSpeed = this.xSpeed * 0.8;
this.ySpeed = this.ySpeed * 0.8;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
};
this.CH.Char.onEnterFrame = function () {
if (v <= 15) {
this.FlyingDash.mcFWing.play();
this.FlyingDash.mcHWing.play();
}
if ((Math.cos(a) < 0) and _global.RDir) {
a = a - 0.0348888888888889;
this._rotation = this._rotation - 2;
}
if ((Math.cos(a) > 0) and (!_global.RDir)) {
a = a + 0.0348888888888889;
this._rotation = this._rotation + 2;
}
LRpressed = false;
if (Key.isDown(39)) {
LRpressed = true;
if (this._parent._parent.rainboom) {
a = a + 0.209466666666667;
this._rotation = this._rotation + 12;
} else {
a = a + 0.174555555555556;
this._rotation = this._rotation + 10;
}
if ((turning != 1) and (!_global.spining)) {
if (_global.RDir) {
turning = 1;
this.FlyingDash.mcBody.gotoAndStop(3);
} else {
turning = 1;
this.FlyingDash.mcBody.gotoAndStop(2);
}
}
}
if (Key.isDown(37) and (!LRpressed)) {
LRpressed = true;
if (this._parent._parent.rainboom) {
a = a - 0.209466666666667;
this._rotation = this._rotation - 12;
} else {
a = a - 0.174555555555556;
this._rotation = this._rotation - 10;
}
if ((turning != 2) and (!_global.spining)) {
if (_global.RDir) {
turning = 2;
this.FlyingDash.mcBody.gotoAndStop(2);
} else {
turning = 2;
this.FlyingDash.mcBody.gotoAndStop(3);
}
}
}
if (((!LRpressed) and (turning != 0)) and (!_global.spining)) {
turning = 0;
this.FlyingDash.mcBody.gotoAndStop(1);
}
if ((Key.isDown(38) and (!_global.spining)) and _global.CTurn) {
this.gotoAndStop(2);
_global.spining = true;
_global.CTurn = false;
turning = 0;
this._parent._parent.SpinHold.gotoAndPlay(2);
}
if (_global.spining) {
this.SpiningDash.play();
}
CtrlPressed = false;
if (Key.isDown(17) or Key.isDown(32)) {
CCShoot();
}
if (this._parent._parent.NataStart and (!CtrlPressed)) {
this._parent._parent.NataStart = false;
SH.sndNata.gotoAndPlay(45);
}
if (fireCharge >= 1) {
fireCharge = fireCharge - 1;
}
j = 1;
while (j <= 12) {
if (this.HT.hitTest(this._parent["Sprite" + j])) {
if (this._parent._parent.CharNum == 2) {
TimeOver();
}
if (this._parent._parent.rainboom) {
newExpl(this._parent["Sprite" + j]._x, this._parent["Sprite" + j]._y);
this._parent._parent.SprBoomed++;
this._parent._parent.SprTBoomed++;
this._parent._parent.txtKilled.text = String(this._parent._parent.SprShoot + this._parent._parent.SprTBoomed);
if (this._parent._parent.SprBoomed > this._parent._parent.MaxBoomed) {
this._parent._parent.MaxBoomed = this._parent._parent.SprBoomed;
}
this._parent._parent.Time = this._parent._parent.Time + 1;
renewTimer();
} else {
newExpl2(this._parent["Sprite" + j]._x, this._parent["Sprite" + j]._y);
this._parent._parent.Collis++;
this._parent._parent.Time = this._parent._parent.Time - 1;
renewTimer();
}
removeMovieClip(this._parent["Sprite" + j]);
newESprite(j);
}
j++;
}
v = v + (((14 + (7 * Math.sin(a))) - v) / 32);
if (this._parent._parent.rainboom == true) {
v = 20;
}
this._y = this._y + (v * Math.sin(a));
this._x = this._x + (v * Math.cos(a));
if ((this._x < 1200) and (this._x > -200)) {
this._parent._x = (-this._x) + 400;
} else if (this._x > 1200) {
this._parent._x = -800;
} else if (this._x < -200) {
this._parent._x = 600;
}
if ((this._y < 300) and (this._y > -100)) {
this._parent._y = (-this._y) + 300;
} else if (this._y > 300) {
this._parent._y = 0;
this._parent.Shad._x = this._x;
this._parent.Shad._alpha = (100 * (this._y - 280)) / 330;
}
if (this._y < -100) {
this._parent._y = 400;
}
this._parent.BGH.SKY._x = (((-this._parent._x) * 9) / 10) + 400;
this._parent.BGH.BG._x = (((-this._parent._x) * 6) / 10) + 400;
this._parent.BGH.GR._x = (((-this._parent._x) * 3) / 10) + 400;
this._parent.BGH.SKY._y = (((-this._parent._y) * 9) / 10) + 300;
this._parent.BGH.BG._y = (((-this._parent._y) * 6) / 10) + 240;
this._parent.BGH.GR._y = (((-this._parent._y) * 3) / 10) + 570;
if (this._x > 1680) {
a = -3.142;
this._rotation = -180;
}
if (this._x < -700) {
a = 0;
this._rotation = 0;
}
if (this._y < -500) {
a = 1.571;
this._rotation = 90;
}
if (this._y > 570) {
if (Math.random() > 0.5) {
SH.sndCrash.gotoAndStop(2);
} else {
SH.sndCrash.gotoAndStop(4);
}
if (this._parent._parent.CharNum == 2) {
delete this.onEnterFrame;
gotoAndStop (5);
} else {
delete this.onEnterFrame;
gotoAndStop (4);
}
}
if (((v > 19) and (this._parent._parent.rainCharged == true)) and (this._parent._parent.CharNum != 2)) {
this._parent._parent.SprBoomed = 0;
this._parent._parent.rainboom = true;
this._parent._parent.rainCharged = false;
newBoom(this._x, this._y);
CHShaker.gotoAndPlay(2);
RTimer.gotoAndPlay(2);
}
if (this._parent._parent.rainboom == true) {
newRainbow(this._x, this._y);
}
};
l = 1;
while (l <= 12) {
newESprite(l);
l++;
}
Frame 4
stop();
btnStart.onPress = function () {
gotoAndStop (2);
};
this.onEnterFrame = function () {
if (Key.isDown(13)) {
delete this.onEnterFrame;
gotoAndStop (2);
}
};
TotalText._visible = false;
GuardText._visible = false;
PeaceText._visible = false;
SecText._visible = false;
SniperText._visible = false;
var Accur = Math.floor((this.SprShoot / CakesShoot) * 100);
if (isNaN(Accur)) {
Accur = 0;
}
var Score = (this.RBPoints + ((10 * this.SprShoot) * (1 + (Math.floor((Accur / 50) * 10) / 10))));
if (isNaN(Accur)) {
Score = 0;
}
txtKilled.text = "Parasprites down: " + String(this.SprTBoomed + this.SprShoot);
txtShoot.text = ((("Including shot: " + String(this.SprShoot)) + ", accuracy: ") + String(Accur)) + "%";
txtBoomed.text = "Maximum hit by the rainboom: " + String(this.MaxBoomed);
txtCollis.text = "Collisions: " + String(this.Collis);
txtPoints.text = "Your score: " + String(Score);
if (this.Pacif > 0) {
txtPacif.text = "Peaceful coexistence bonus: " + String(1000 * this.Pacif);
}
savedData.data.PSShot = savedData.data.PSShot + (this.SprTBoomed + this.SprShoot);
if (Score > savedData.data["score" + this.CharNum]) {
savedData.data["score" + this.CharNum] = Score;
}
savedData.flush();
if (((this.SprTBoomed + this.SprShoot) >= 100) and (!guardAch)) {
guardAch = true;
sndAchiv.play();
savedData.data.pas3 = "sandvich";
savedData.flush();
}
if ((this.Pacif > 0) and (!peaceAch)) {
peaceAch = true;
sndAchiv.play();
savedData.data.pas1 = "spiderses";
savedData.flush();
}
if (((this.SprShoot >= 10) and (Accur >= 80)) and (!sniperAch)) {
sniperAch = true;
sndAchiv.play();
savedData.data.pas2 = "magnetto";
savedData.flush();
}
if ((this.MaxBoomed >= 10) and (!secAch)) {
secAch = true;
sndAchiv.play();
savedData.data.pas4 = "trollestia";
savedData.flush();
}
if (guardAch) {
GuardAch.gotoAndStop(2);
GuardText.gotoAndStop(2);
}
if (peaceAch) {
PeaceAch.gotoAndStop(2);
PeaceText.gotoAndStop(2);
}
if (sniperAch) {
SniperAch.gotoAndStop(2);
SniperText.gotoAndStop(2);
}
if (secAch) {
SecAch.gotoAndStop(2);
SecText.gotoAndStop(2);
}
GuardAch.onRollOver = function () {
GuardText._visible = true;
};
PeaceAch.onRollOver = function () {
PeaceText._visible = true;
};
SniperAch.onRollOver = function () {
SniperText._visible = true;
};
SecAch.onRollOver = function () {
SecText._visible = true;
};
GuardAch.onRollOut = function () {
GuardText._visible = false;
};
PeaceAch.onRollOut = function () {
PeaceText._visible = false;
};
SniperAch.onRollOut = function () {
SniperText._visible = false;
};
SecAch.onRollOut = function () {
SecText._visible = false;
};
TotalAch.onRollOver = function () {
TotalText._visible = true;
};
TotalAch.onRollOut = function () {
TotalText._visible = false;
};
o = 1;
TotalText.TFBG._height = 67;
TotalText["Field" + o].text = "Maximum score for Rainbow Dash: " + savedData.data.score1;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
if (secAch) {
TotalText["Field" + o].text = "Maximum score for Ditzy Doo: " + savedData.data.score3;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
if (sniperAch) {
TotalText["Field" + o].text = "Maximum score for Spitfire: " + savedData.data.score4;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
if (guardAch) {
TotalText["Field" + o].text = "Maximum score for Soarin: " + savedData.data.score5;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
if (peaceAch) {
TotalText["Field" + o].text = ("Maximum time for Fluttershy: " + savedData.data.score2) + " sec";
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
TotalText["Field" + o].text = "Parasprites down so far: " + savedData.data.PSShot;
Frame 5
stop();
btnStart.onPress = function () {
gotoAndStop (2);
};
this.onEnterFrame = function () {
if (Key.isDown(13)) {
delete this.onEnterFrame;
gotoAndStop (2);
}
};
TotalText._visible = false;
GuardText._visible = false;
PeaceText._visible = false;
SecText._visible = false;
SniperText._visible = false;
txtKilled.text = ("Time of flight: " + String(this.Time)) + " sec";
if (this.Time > savedData.data["score" + this.CharNum]) {
savedData.data["score" + this.CharNum] = this.Time;
savedData.flush();
}
if (guardAch) {
GuardAch.gotoAndStop(2);
GuardText.gotoAndStop(2);
}
if (peaceAch) {
PeaceAch.gotoAndStop(2);
PeaceText.gotoAndStop(2);
}
if (sniperAch) {
SniperAch.gotoAndStop(2);
SniperText.gotoAndStop(2);
}
if (secAch) {
SecAch.gotoAndStop(2);
SecText.gotoAndStop(2);
}
GuardAch.onRollOver = function () {
GuardText._visible = true;
};
PeaceAch.onRollOver = function () {
PeaceText._visible = true;
};
SniperAch.onRollOver = function () {
SniperText._visible = true;
};
SecAch.onRollOver = function () {
SecText._visible = true;
};
GuardAch.onRollOut = function () {
GuardText._visible = false;
};
PeaceAch.onRollOut = function () {
PeaceText._visible = false;
};
SniperAch.onRollOut = function () {
SniperText._visible = false;
};
SecAch.onRollOut = function () {
SecText._visible = false;
};
TotalAch.onRollOver = function () {
TotalText._visible = true;
};
TotalAch.onRollOut = function () {
TotalText._visible = false;
};
o = 1;
TotalText.TFBG._height = 67;
TotalText["Field" + o].text = "Maximum score for Rainbow Dash: " + savedData.data.score1;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
if (secAch) {
TotalText["Field" + o].text = "Maximum score for Ditzy Doo: " + savedData.data.score3;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
if (sniperAch) {
TotalText["Field" + o].text = "Maximum score for Spitfire: " + savedData.data.score4;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
if (guardAch) {
TotalText["Field" + o].text = "Maximum score for Soarin: " + savedData.data.score5;
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
if (peaceAch) {
TotalText["Field" + o].text = ("Maximum time for Fluttershy: " + savedData.data.score2) + " sec";
o++;
TotalText.TFBG._height = TotalText.TFBG._height + 50.5;
TotalText.TFBG._y = TotalText.TFBG._y + 25.25;
}
TotalText["Field" + o].text = "Parasprites down so far: " + savedData.data.PSShot;
Symbol 11 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 3
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 7
if (_global.RDir) {
_global.RDir = false;
} else {
_global.RDir = true;
}
_global.spining = false;
this._parent._yscale = -1 * this._parent._yscale;
this._parent.gotoAndStop(1);
Symbol 57 MovieClip [Derpy] Frame 1
stop();
Symbol 57 MovieClip [Derpy] Frame 2
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 7
if (_global.RDir) {
_global.RDir = false;
} else {
_global.RDir = true;
}
_global.spining = false;
this._parent._yscale = -1 * this._parent._yscale;
this._parent.gotoAndStop(1);
Symbol 116 MovieClip [Dash] Frame 1
stop();
Symbol 116 MovieClip [Dash] Frame 2
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 3
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 7
if (_global.RDir) {
_global.RDir = false;
} else {
_global.RDir = true;
}
_global.spining = false;
this._parent._yscale = -1 * this._parent._yscale;
this._parent.gotoAndStop(1);
Symbol 170 MovieClip [SpitFire] Frame 1
stop();
Symbol 170 MovieClip [SpitFire] Frame 2
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 2
stop();
Symbol 208 MovieClip Frame 3
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 7
if (_global.RDir) {
_global.RDir = false;
} else {
_global.RDir = true;
}
_global.spining = false;
this._parent._yscale = -1 * this._parent._yscale;
this._parent.gotoAndStop(1);
Symbol 222 MovieClip [FlyShy] Frame 1
stop();
Symbol 222 MovieClip [FlyShy] Frame 2
stop();
Symbol 227 MovieClip [Stare] Frame 60
removeMovieClip(this);
Symbol 232 MovieClip [Boom] Frame 50
removeMovieClip(this);
Symbol 235 MovieClip [Rainbow] Frame 88
removeMovieClip(this);
Symbol 244 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 2
stop();
Symbol 265 MovieClip Frame 3
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 7
if (_global.RDir) {
_global.RDir = false;
} else {
_global.RDir = true;
}
_global.spining = false;
this._parent._yscale = -1 * this._parent._yscale;
this._parent.gotoAndStop(1);
Symbol 287 MovieClip [Soarin] Frame 1
stop();
Symbol 287 MovieClip [Soarin] Frame 2
stop();
Symbol 338 MovieClip [Expl2] Frame 11
removeMovieClip(this);
Symbol 351 MovieClip [Expl] Frame 11
removeMovieClip(this);
Symbol 422 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 2
play();
Symbol 430 MovieClip Frame 3
gotoAndStop (1);
Symbol 438 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 2
play();
Symbol 442 MovieClip Frame 18
_global.CTurn = true;
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
play();
Symbol 445 MovieClip Frame 3
this._parent.CH._y = this._parent.CH._y + 9;
Symbol 445 MovieClip Frame 5
this._parent.CH._y = this._parent.CH._y - 17;
Symbol 445 MovieClip Frame 7
this._parent.CH._y = this._parent.CH._y + 15;
Symbol 445 MovieClip Frame 9
this._parent.CH._y = this._parent.CH._y - 13;
Symbol 445 MovieClip Frame 11
this._parent.CH._y = this._parent.CH._y + 10;
Symbol 445 MovieClip Frame 13
this._parent.CH._y = this._parent.CH._y - 7;
Symbol 445 MovieClip Frame 15
this._parent.CH._y = this._parent.CH._y + 4;
Symbol 445 MovieClip Frame 17
this._parent.CH._y = this._parent.CH._y - 1;
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 2
play();
Symbol 447 MovieClip Frame 3
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
play();
Symbol 451 MovieClip Frame 38
if (this._parent._parent.NataStart) {
this.gotoAndPlay(18);
} else {
this.gotoAndStop(1);
}
Symbol 451 MovieClip Frame 68
stop();
Symbol 454 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 2
play();
Symbol 454 MovieClip Frame 3
stop();
Symbol 454 MovieClip Frame 4
play();
Symbol 454 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
play();
Symbol 456 MovieClip Frame 3
stop();
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
play();
Symbol 459 MovieClip Frame 3
stop();
Symbol 459 MovieClip Frame 4
play();
Symbol 459 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
play();
Symbol 463 MovieClip Frame 3
stop();
Symbol 463 MovieClip Frame 4
play();
Symbol 463 MovieClip Frame 5
stop();
Symbol 463 MovieClip Frame 6
play();
Symbol 463 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
play();
Symbol 466 MovieClip Frame 3
stop();
Symbol 466 MovieClip Frame 4
play();
Symbol 466 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
play();
Symbol 471 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 4
play();
Symbol 471 MovieClip Frame 5
stop();
Symbol 471 MovieClip Frame 6
play();
Symbol 471 MovieClip Frame 7
stop();
Symbol 471 MovieClip Frame 8
play();
Symbol 471 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 480 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
play();
Symbol 493 MovieClip Frame 200
this._parent.stare = false;
Symbol 493 MovieClip Frame 356
stop();
this._parent.rainCharged = true;
Shine.play();
Shine1.play();
Symbol 495 MovieClip Frame 2
play();
Symbol 495 MovieClip Frame 181
this._parent.rainboom = false;
if (this._parent.SprBoomed > this._parent.MaxBoomed) {
this._parent.MaxBoomed = this._parent.SprBoomed;
}
this._parent.RBPoints = this._parent.RBPoints + (((20 + (10 * (this._parent.SprBoomed - 1))) * this._parent.SprBoomed) / 2);
this._parent.SprBoomed = 0;
Symbol 495 MovieClip Frame 830
stop();
this._parent.rainCharged = true;
Shine.play();
Shine1.play();
Symbol 495 MovieClip Frame 931
stop();
this._parent.rainCharged = true;
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 61
stop();
Symbol 508 MovieClip Frame 25
if (this._parent.CharNum == 2) {
this._parent.Time = this._parent.Time + 1;
} else {
this._parent.Time = this._parent.Time - 1;
}
if (this._parent.Time < 1) {
if (((this._parent.SprShoot + this._parent.Collis) + this._parent.SprTBoomed) == 0) {
this._parent.SH.sndBoaring.play();
this._parent.Time = this._parent.Time + 30;
this._parent.RBPoints = this._parent.RBPoints + 1000;
this._parent.Pacif++;
} else {
delete this._parent.onEnterFrame;
this._parent.gotoAndStop(4);
}
}
txtTime.text = this._parent.Time;
Symbol 521 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();