Frame 1
MochiAd.showPreGameAd({id:"3991980ffce574a4", res:"600x400", background:525842, color:2439090, outline:3976405, no_bg:true});
mochi.MochiServices.connect("3991980ffce574a4");
function doSomething() {
getURL ("http://www.slingshotgames.com", _blank);
}
function doSomething1() {
getURL ("http://www.slingshotgames.com", _blank);
}
function doSomething2() {
getURL ("http://www.myspace.com/waterflames", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Visit Slingshot Games", doSomething);
Functioned1 = new ContextMenuItem("More Games", doSomething);
Functioned2 = new ContextMenuItem("Music - Waterflame", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned1);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
Frame 2
hs = 0;
stop();
urlArray = _root._url.split("/");
if ((urlArray[2] == "www.slingshotgames.com") || (urlArray[2] == "slingshotgames.com")) {
_root.fullGame = true;
} else {
_root.fullGame = false;
}
function New_Level() {
special = special + handy;
spanner = spanner + handy;
spawn1 = standardship;
spawn2 = spawn1 + leftflank;
spawn3 = spawn2 + rightflank;
spawn4 = spawn3 + middleflank;
spawn5 = spawn4 + special;
spawn6 = spawn5 + ship2;
spawn7 = spawn6 + ship2flank;
spawn8 = spawn7 + astroid;
spawn9 = astroidwall + spawn8;
spawn10 = astroidlots + spawn9;
spawn11 = bigship + spawn10;
spawn12 = coolship + spawn11;
spawn13 = moveship + spawn12;
spawn14 = spanner + spawn13;
spawn15 = pegasus + spawn14;
spawn16 = redone + spawn15;
totalspawnchances = spawn16;
screenX = System.capabilities.screenResolutionX;
screenY = System.capabilities.screenResolutionY;
mc = 0;
spawnVariation = 0;
TotalTime = TotalTime * 32;
timeElapse = TotalTime;
increase = 128;
increasespeed = increase;
meter = 0;
spawnElapse = Math.abs(spawnTime + random(spawnVariation));
m = 250;
lag = 1;
}
function Create_Mc16() {
count++;
m = (m + random(400)) - 50;
attachMovie("redone", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = 20;
spawnElapse = spawnTime / 10;
}
function Create_Mc15() {
count++;
m = (m + random(400)) - 50;
attachMovie("pegasus", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = 20;
spawnElapse = spawnTime / 10;
}
function Create_Mc2() {
count++;
m = (m + random(400)) - 50;
attachMovie("ship", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = 20;
spawnElapse = spawnTime / 10;
}
function Create_Mc3() {
i = 0;
while (i < 5) {
spo = 50;
count++;
attachMovie("ship", "ship" + count, count);
_root["ship" + count]._x = 20 + (spo * i);
_root["ship" + count]._y = -30 - ((spo * i) * 0.5);
i++;
}
}
function Create_Mc4() {
i = 0;
while (i < 5) {
spo = 50;
count++;
attachMovie("ship", "ship" + count, count);
_root["ship" + count]._x = 570 - (spo * i);
_root["ship" + count]._y = -30 - ((spo * i) * 0.5);
i++;
}
}
function Create_Mc5() {
i = 0;
while (i < 5) {
spo = 50;
count++;
attachMovie("ship", "ship" + count, count);
_root["ship" + count]._x = 275 - (spo * i);
_root["ship" + count]._y = -30 - ((spo * i) * 0.5);
i++;
}
i = 0;
while (i < 5) {
spo = 50;
count++;
attachMovie("ship", "ship" + count, count);
_root["ship" + count]._x = 325 + (spo * i);
_root["ship" + count]._y = -30 - ((spo * i) * 0.5);
i++;
}
spawnElapse = spawnTime * 2;
}
function Create_Mc() {
count++;
attachMovie("ship", "ship" + count, count);
_root["ship" + count]._x = 20 + random(500);
_root["ship" + count]._y = -30;
}
function Lup() {
count++;
attachMovie("Lup", "Lup" + count, count);
_root["Lup" + count]._x = 20 + random(400);
_root["Lup" + count]._y = -30;
}
function Create_Mc6() {
count++;
m = (m + random(400)) - 50;
attachMovie("ship2", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -50;
}
function Create_Mc7() {
count++;
attachMovie("ship2", "ship" + count, count);
_root["ship" + count]._x = 50;
_root["ship" + count]._y = -10;
count++;
attachMovie("ship2", "ship" + count, count);
_root["ship" + count]._x = 60;
_root["ship" + count]._y = -40;
count++;
attachMovie("ship2", "ship" + count, count);
_root["ship" + count]._x = 70;
_root["ship" + count]._y = -70;
}
function Create_Mc8() {
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -50;
}
function Create_Mc9() {
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -50;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -70;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -50;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -50;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -80;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -100;
}
function Create_Mc10() {
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 400;
_root["ship" + count]._y = -50;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 450;
_root["ship" + count]._y = -50;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 500;
_root["ship" + count]._y = -50;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 430;
_root["ship" + count]._y = -150;
count++;
m = (m + random(400)) - 50;
attachMovie("astroid", "ship" + count, count);
_root["ship" + count]._x = 100;
_root["ship" + count]._y = -150;
count++;
}
function Create_Mc11() {
count++;
m = (m + random(400)) - 50;
attachMovie("bigship", "ship" + count, count);
_root["ship" + count]._x = 100 + random(300);
_root["ship" + count]._y = -250;
}
function Create_Mc12() {
count++;
m = (m + random(400)) - 50;
attachMovie("coolship", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -50;
}
function Create_Mc13() {
count++;
m = (m + random(400)) - 50;
attachMovie("movship", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -200;
}
function Create_Mc14() {
count++;
m = (m + random(400)) - 50;
attachMovie("spanner", "ship" + count, count);
_root["ship" + count]._x = 20 + m;
_root["ship" + count]._y = -100;
}
function bomb() {
count++;
attachMovie("blimb", "blimb" + count, count);
_root["blimb" + count]._x = 1000;
_root["blimb" + count]._y = 40;
}
function bird() {
count++;
attachMovie("bird", "bird" + count, count);
_root["bird" + count]._x = 950;
_root["bird" + count]._y = 150;
}
c = 1000;
firerate = 0;
fire = 8;
md = false;
stop();
count = 20;
tb.score = 0;
_root.tb.health = 100;
New_Level();
onEnterFrame = function () {
lag++;
m = 150;
if (lag == 5) {
lag = 1;
}
if (currentframe == _currentframe) {
if (increasespeed == 0) {
speed = speed - 1;
increasespeed = increase;
}
timeElapse--;
time_txt.text = Math.floor(timeElapse / 32);
spawnElapse--;
if (spawnElapse < 0) {
if (timeElapse > 0) {
spawnElapse = spawnTime + random(spawnVariation);
spawnType = random(totalspawnchances - 1) + 1;
if ((spawnType > 0) && (spawnType < spawn1)) {
spawnAmount = 0.5;
var _local2 = 0;
while (_local2 <= spawnAmount) {
Create_Mc();
_local2++;
}
} else if ((spawnType > spawn1) && (spawnType < spawn2)) {
Create_Mc3();
} else if ((spawnType > spawn2) && (spawnType < spawn3)) {
Create_Mc4();
} else if ((spawnType > spawn3) && (spawnType < spawn4)) {
Create_Mc5();
} else if ((spawnType > spawn4) && (spawnType < spawn5)) {
Lup();
} else if ((spawnType > spawn5) && (spawnType < spawn6)) {
Create_Mc6();
} else if ((spawnType > spawn6) && (spawnType < spawn7)) {
Create_Mc7();
} else if ((spawnType > spawn7) && (spawnType < spawn8)) {
Create_Mc8();
} else if ((spawnType > spawn8) && (spawnType < spawn9)) {
Create_Mc9();
} else if ((spawnType > spawn9) && (spawnType < spawn10)) {
Create_Mc10();
} else if ((spawnType > spawn10) && (spawnType < spawn11)) {
Create_Mc11();
} else if ((spawnType > spawn11) && (spawnType < spawn12)) {
Create_Mc12();
} else if ((spawnType > spawn12) && (spawnType < spawn13)) {
Create_Mc13();
} else if ((spawnType > spawn13) && (spawnType < spawn14)) {
Create_Mc14();
} else if ((spawnType > spawn14) && (spawnType < spawn15)) {
Create_Mc15();
} else if ((spawnType > spawn15) && (spawnType < spawn16)) {
Create_Mc16();
}
} else {
count++;
attachMovie("levelcomplete", "ship" + count, count);
_root["ship" + count]._x = 250;
_root["ship" + count].play();
_root["ship" + count]._y = 250;
_root.nextFrame();
}
}
}
if (md == true) {
if (firerate == 0) {
firerate = fire;
}
}
if (firerate > 0) {
firerate = firerate - 1;
}
};
tb.removeMovieClip();
Instance of Symbol 91 MovieClip in Frame 2
/* no clip actions */
Frame 3
_root.escore.text = hscore;
Selection.setFocus("playername");
_root.bonusVar = _root.difbonus * _root.hscore;
_root.bonus.text = _root.bonusVar;
_root.totaltotalscoreVar = _root.hscore + _root.bonusVar;
_root.totaltotalscore.text = _root.totaltotalscoreVar;
xSpeed = 20;
yspeed = 20;
tb.removeMovieClip();
Instance of Symbol 166 MovieClip in Frame 3
onClipEvent (load) {
if (_root.fullGame == true) {
this.gotoAndStop(2);
}
}
Frame 4
gotoAndStop (2);
Frame 5
Selection.setFocus("playername");
_root.bonusVar = _root.difbonus * _root.hscore;
_root.bonus.text = _root.bonusVar;
_root.totaltotalscoreVar = _root.hscore + _root.bonusVar;
_root.totaltotalscore.text = _root.totaltotalscoreVar;
Frame 6
_root.stars.swapDepths(-500000);
tb.score = 0;
redone = 0;
pegasus = 0;
standardship = 50;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 100;
astroidwall = 20;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 20;
speed = -1;
spawnTime = 20 / (2 + speed);
currentframe = _currentframe;
New_Level();
stop();
_root.tb.health = 100;
Instance of Symbol 79 MovieClip [blow] "blow" in Frame 6
onClipEvent (load) {
gotoAndPlay (1);
}
Instance of Symbol 185 MovieClip "bar" in Frame 6
onClipEvent (load) {
this.swapDepths(50000);
}
Instance of Symbol 202 MovieClip "tb" in Frame 6
onClipEvent (load) {
this.swapDepths(50000);
}
Instance of Symbol 206 MovieClip "main" in Frame 6
onClipEvent (load) {
c = 1;
move = 10;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_x = (_x + move);
if (_x > 580) {
_x = 579;
}
}
if (Key.isDown(37)) {
_x = (_x - move);
if (_x < 0) {
_x = 1;
}
}
if (Key.isDown(38)) {
_y = (_y - move);
if (_y < 50) {
_y = 51;
}
}
if (Key.isDown(40)) {
_y = (_y + move);
if (_y > 380) {
_y = 379;
}
}
}
Instance of Symbol 208 MovieClip "moregames" in Frame 6
onClipEvent (load) {
this.swapDepths(50001);
}
on (press) {
getURL ("http://www.slingshotgames.com", "_blank");
}
Instance of Symbol 211 MovieClip "musicbut" in Frame 6
onClipEvent (load) {
this.swapDepths(50003);
}
on (press) {
nextFrame();
}
Frame 7
redone = 0;
pegasus = 0;
standardship = 50;
leftflank = 10;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 20;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 5;
spanner = 0;
TotalTime = 20;
speed = -1;
spawnTime = 30 / (2 + speed);
currentframe = _currentframe;
New_Level();
Frame 8
redone = 0;
pegasus = 0;
standardship = 50;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 10;
spanner = 0;
TotalTime = 28;
speed = 1;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 9
redone = 0;
pegasus = 10;
standardship = 50;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 2;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 30;
speed = 1;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 10
redone = 0;
pegasus = 10;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 3;
speed = 1;
spawnTime = 30 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 11
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 200;
rightflank = 0;
middleflank = 0;
special = 1;
ship2 = 50;
ship2flank = 0;
astroid = 1;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 6;
speed = 1;
spawnTime = 100 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 12
redone = 0;
pegasus = 0;
standardship = 20;
leftflank = 20;
rightflank = 20;
middleflank = 20;
special = 0;
ship2 = 1;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 20;
speed = 1;
spawnTime = 70 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 13
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 1;
ship2 = 2;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 100;
spanner = 0;
TotalTime = 20;
speed = 1;
spawnTime = 50 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 14
redone = 0;
pegasus = 50;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 1;
ship2 = 50;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 50;
spanner = 1;
TotalTime = 20;
speed = 1;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 15
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 200;
rightflank = 200;
middleflank = 200;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 20;
speed = 1;
spawnTime = 80 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 16
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 1;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 50;
coolship = 0;
moveship = 1;
spanner = 1;
TotalTime = 20;
speed = 1;
spawnTime = 120 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 17
redone = 20;
pegasus = 15;
standardship = 20;
leftflank = 1;
rightflank = 1;
middleflank = 1;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 1;
coolship = 0;
moveship = 10;
spanner = 2;
TotalTime = 20;
speed = 1;
spawnTime = 120 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 18
redone = 0;
pegasus = 10;
standardship = 50;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 1;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 30;
speed = 2;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 19
redone = 0;
pegasus = 10;
standardship = 50;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 2;
spanner = 0;
TotalTime = 20;
speed = 3;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 20
redone = 0;
pegasus = 0;
standardship = 2;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 100;
spanner = 0;
TotalTime = 17;
speed = 3;
spawnTime = 42 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 21
redone = 0;
pegasus = 0;
standardship = 200;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 10;
speed = 5;
spawnTime = 42 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 22
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 200;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 2;
speed = 5;
spawnTime = 42 / (3 + speed);
currentframe = _currentframe;
New_Level();
Frame 23
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 100;
astroidwall = 5;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 20;
speed = 5;
spawnTime = 42 / (3 + speed);
currentframe = _currentframe;
New_Level();
Instance of Symbol 208 MovieClip in Frame 24
onClipEvent (load) {
this.swapDepths(50001);
}
on (press) {
getURL ("http://www.slingshotgames.com");
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 3
nextFrame();
Symbol 6 MovieClip Frame 4
_root.tb.score = _root.tb.score + 10;
_parent.removeMovieClip(this);
Instance of Symbol 6 MovieClip "pegasus ship" in Symbol 7 MovieClip [pegasus] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 20;
ran = random(20) - 5;
ro = random(10) - 5;
xmin = -3;
xmax = 3;
xmove = 0.25;
xmoving = 0;
right = 1;
}
onClipEvent (enterFrame) {
if (right == 1) {
xmoving = xmoving + xmove;
_x = (_x + xmoving);
if (xmoving == xmax) {
right = 0;
}
} else {
xmoving = xmoving - xmove;
_x = (_x + xmoving);
if (xmoving == xmin) {
right = 1;
}
}
_y = (_y + speed);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
nextFrame();
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
_root.checkdeath.gotoAndStop(2);
removeMovieClip(_parent);
}
ran--;
if (ran == 1) {
_root.c++;
c = _root.c;
_root.attachMovie("em", "em" + c, c);
_root["em" + c]._x = (_parent._x + _x) + 45;
_root["em" + c]._y = (_parent._y + _y) + 30;
}
if ((_parent._y + _y) > 400) {
removeMovieClip(_parent);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = (_root["missle1" + i]._x + _root["missle1" + i].mis._x) - 30;
_root["blow" + c]._y = (_root["missle1" + i]._y + _root["missle1" + i].mis._y) - 30;
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
}
i++;
}
}
Instance of Symbol 12 MovieClip "gree" in Symbol 13 MovieClip [Lup] Frame 1
onClipEvent (load) {
v2 = "TWIN";
v3 = "DOUB";
v4 = "3X";
v5 = "circle";
v6 = "FAST";
v7 = "Big";
v8 = "Twist";
v9 = "< > <";
type = 2 + random(8);
typev = "v" + type;
if (typev == "v2") {
typev = v2;
}
if (typev == "v3") {
typev = v3;
}
if (typev == "v4") {
typev = v4;
}
if (typev == "v5") {
typev = v5;
}
if (typev == "v6") {
typev = v6;
}
if (typev == "v7") {
typev = v7;
}
if (typev == "v8") {
typev = v8;
}
if (typev == "v9") {
typev = v9;
}
_parent.gree.pou.pu = typev;
}
onClipEvent (load) {
speed = 5 + _root.speed;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
if (this.hitTest(_root.main)) {
_root.main.gotoAndStop(type);
_root.bar.gotoAndPlay(2);
_parent.removeMovieClip(this);
}
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 2
nextFrame();
Symbol 18 MovieClip Frame 3
stop();
Symbol 19 MovieClip [ship2] Frame 1
stop();
Instance of Symbol 18 MovieClip "2" in Symbol 19 MovieClip [ship2] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
ran = 20;
v = 0.3;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.checkdeath.gotoAndStop(2);
this.nextFrame();
this._y = this._y - 10;
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
removeMovieClip(_parent);
}
ran--;
if (ran == 1) {
if ((_parent._y + _y) < 400) {
ran = 30;
ys = Math.abs((this._y + _parent._y) - _root.main._y);
xs = Math.abs((this._x + _parent._x) - _root.main._x);
cv = Math.abs(ys + xs) * v;
ySpeed = ys / cv;
xSpeed = xs / cv;
if (((this._y + _parent._y) - _root.main._y) > 0) {
ySpeed = ySpeed * -1;
}
if (((this._x + _parent._x) - _root.main._x) < 0) {
xSpeed = xSpeed * -1;
}
_root.c++;
c = _root.c;
_root.attachMovie("eye1", "em" + c, c);
_root["em" + c]._x = (this._x + _parent._x) + 16;
_root["em" + c]._y = (this._y + _parent._y) + 16;
_root["em" + c].eye.xs = xSpeed;
_root["em" + c].eye.ys = ySpeed;
_root["em" + c].eye._rotation = Math.round(((114.6 * Math.atan2(_ymouse - this._y, _xmouse - this._x)) + 360) / 2);
}
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
_root.tb.score = _root.tb.score + 20;
_parent.removeMovieClip();
}
i++;
}
if ((_parent._y + _y) > 432) {
_parent.removeMovieClip();
}
}
Symbol 23 MovieClip Frame 1
stop();
gotoAndStop(random(4));
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 5
_root.tb.score = _root.tb.score + 10;
_parent.removeMovieClip(this);
Instance of Symbol 25 MovieClip "ast" in Symbol 26 MovieClip [astroid] Frame 1
onClipEvent (load) {
speed = (5 + random(2)) + _root.speed;
ran = 40 + random(5);
v = 0.2;
t = 1.3;
rx = random(4) - 2;
r = random(10) - 5;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + r);
_y = (_y + speed);
_x = (_x + rx);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.checkdeath.gotoAndStop(2);
this.nextFrame();
this._y = this._y - 10;
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = (this._x + _parent._x) - 20;
_root["blow" + c]._y = (this._y + _parent._y) - 10;
_width = (_width / t);
_height = (_height / t);
r = r * 2.5;
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = (this._x + _parent._x) - 20;
_root["blow" + c]._y = (this._y + _parent._y) - 10;
_width = (_width / t);
_height = (_height / t);
r = r * 2.5;
}
i++;
}
if ((_parent._y + _y) > 450) {
_parent.removeMovieClip();
}
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 6
_root.tb.score = _root.tb.score + 150;
_parent.removeMovieClip(this);
Symbol 34 MovieClip [bigship] Frame 1
stop();
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip [bigship] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 20;
ran = random(20) - 5;
ro = random(10) - 5;
xsp = 0;
co = 5;
count = co;
rav = 10;
ra = rav;
v = 0.3;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
_x = (_x + xsp);
count--;
if (count == 0) {
count = co;
xsp = xsp + ((random(3) - 1) / 2);
_rotation = (xsp * -3);
}
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.checkdeath.gotoAndStop(2);
nextFrame();
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
removeMovieClip(_parent);
}
if ((_parent._y + _y) > 450) {
removeMovieClip(_parent);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
}
i++;
}
ra--;
if (ra == 1) {
_root.c++;
c = _root.c;
_root.attachMovie("em2", "em" + c, c);
_root["em" + c]._x = (_parent._x + _x) + 10;
_root["em" + c]._y = (_parent._y + _y) + 40;
ra = rav;
}
}
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip [bigship] Frame 2
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 20;
ran = random(20) - 5;
ro = random(10) - 5;
xsp = 0;
co = 5;
count = co;
rav = 10;
ra = rav;
v = 0.3;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
_x = (_x + xsp);
count--;
if (count == 0) {
count = co;
xsp = xsp + ((random(3) - 1) / 2);
_rotation = (xsp * -3);
}
if (_root.main.hitTest(this)) {
_root.health = _root.health - 10;
nextFrame();
}
ran--;
if (ran == 1) {
_root.c++;
c = _root.c;
_root.attachMovie("em", "em" + c, c);
_root["em" + c]._x = (_parent._x + _x) + 45;
_root["em" + c]._y = (_parent._y + _y) + 30;
}
if ((_parent._y + _y) > 450) {
removeMovieClip(_parent);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
}
i++;
}
ra--;
if (ra == 1) {
ys = Math.abs((this._y + _parent._y) - _root.main._y);
xs = Math.abs((this._x + _parent._x) - _root.main._x);
cv = Math.abs(ys + xs) * v;
ySpeed = ys / cv;
xSpeed = xs / cv;
if (((this._y + _parent._y) - _root.main._y) > 0) {
ySpeed = ySpeed * -1;
}
if (((this._x + _parent._x) - _root.main._x) < 0) {
xSpeed = xSpeed * -1;
}
_root.c++;
c = _root.c;
_root.attachMovie("eye1", "em" + c, c);
_root["em" + c]._x = this._x + _parent._x;
_root["em" + c]._y = this._y + _parent._y;
_root["em" + c].eye.xs = xSpeed;
_root["em" + c].eye.ys = ySpeed;
_root["em" + c].eye._rotation = Math.round(((114.6 * Math.atan2(_ymouse - this._y, _xmouse - this._x)) + 360) / 2);
ra = rav;
}
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
_parent.removeMovieClip(this);
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
_root.tb.score = _root.tb.score + 30;
_parent.removeMovieClip(this);
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip [movship] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 20;
ran = random(20) + 2;
ro = random(10) - 5;
speex = random(10) - 5;
speey = 5;
ammo = 8;
}
onClipEvent (enterFrame) {
_y = (_y + speey);
_x = (_x + speex);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
nextFrame();
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
removeMovieClip(_parent);
}
ran--;
if (ran == 1) {
if (ammo > 0) {
ran = 5;
ammo--;
_root.c++;
c = _root.c;
_root.attachMovie("em", "em" + c, c);
_root["em" + c]._x = (_parent._x + _x) + 30;
_root["em" + c]._y = (_parent._y + _y) + 30;
}
}
if ((_parent._y + _y) > 450) {
removeMovieClip(_parent);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = (_root["missle1" + i]._x + _root["missle1" + i].mis._x) - 30;
_root["blow" + c]._y = (_root["missle1" + i]._y + _root["missle1" + i].mis._y) - 30;
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
}
i++;
}
}
Symbol 42 MovieClip [removemovie] Frame 1
Symbol 42 MovieClip [removemovie] Frame 2
removeMovieClip(_parent);
Symbol 46 MovieClip Frame 1
levelv = "Level" + (_root.currentframe - 5);
Symbol 47 MovieClip [levelcomplete] Frame 1
play();
Symbol 47 MovieClip [levelcomplete] Frame 95
removeMovieClip(this);
Instance of Symbol 50 MovieClip [eye] "eye" in Symbol 51 MovieClip [eye1] Frame 1
onClipEvent (load) {
g = 0;
gr = 0;
v = 3;
if (_root._currentframe < 5) {
_parent.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this._x = this._x - (xs * v);
this._y = this._y + (ys * v);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.count++;
_root.attachMovie("blow", "blow" + _root.count, _root.count);
_root["blow" + _root.count]._x = (_x + _parent._x) - 22;
_root["blow" + _root.count]._y = (_y + _parent._y) - 10;
_root.checkdeath.gotoAndStop(2);
_parent.removeMovieClip();
}
if (((((_x + _parent._x) > 600) || ((_x + _parent._x) < 0)) || ((_y + _parent._y) < 0)) || ((_y + _parent._y) > 410)) {
_parent.removeMovieClip();
}
}
Symbol 60 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip "mis" in Symbol 62 MovieClip [missle] Frame 1
onClipEvent (load) {
g = 0;
gr = 0;
v = 3;
xs = xs;
}
onClipEvent (enterFrame) {
this._x = this._x + (xs * v);
this._y = this._y + (ys * v);
if ((_parent._y + _y) > 400) {
removeMovieClip(_parent);
}
if ((_parent._y + _y) < 0) {
removeMovieClip(_parent);
}
}
Symbol 62 MovieClip [missle] Frame 2
stop();
Symbol 66 MovieClip [redone1] Frame 1
stop();
Symbol 66 MovieClip [redone1] Frame 4
_root.tb.score = _root.tb.score + 100;
_parent.removeMovieClip(this);
Instance of Symbol 66 MovieClip [redone1] in Symbol 67 MovieClip [redone] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 30;
speex = random(10) - 5;
speey = 5;
ammo = 8;
ran = random(20) - 5;
ro = random(10) - 5;
xsp = 0;
co = 5;
count = co;
rav = 14;
ra = rav;
v = 0.3;
}
onClipEvent (enterFrame) {
count--;
if (count == 0) {
count = co;
xsp = xsp + ((random(3) - 1) / 2);
_rotation = (xsp * -3);
}
_y = (_y + speey);
_x = (_x + speex);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
nextFrame();
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
removeMovieClip(_parent);
}
ran--;
if (ran == 1) {
if (ammo > 0) {
ran = 5;
ammo--;
ys = Math.abs((this._y + _parent._y) - _root.main._y);
xs = Math.abs((this._x + _parent._x) - _root.main._x);
cv = Math.abs(ys + xs) * v;
ySpeed = ys / cv;
xSpeed = xs / cv;
if (((this._y + _parent._y) - _root.main._y) > 0) {
ySpeed = ySpeed * -1;
}
if (((this._x + _parent._x) - _root.main._x) < 0) {
xSpeed = xSpeed * -1;
}
_root.c++;
c = _root.c;
_root.attachMovie("eye1", "em" + c, c);
_root["em" + c]._x = (this._x + _parent._x) + 16;
_root["em" + c]._y = (this._y + _parent._y) + 16;
_root["em" + c].eye.xs = xSpeed;
_root["em" + c].eye.ys = ySpeed;
_root["em" + c].eye._rotation = Math.round(((114.6 * Math.atan2(_ymouse - this._y, _xmouse - this._x)) + 360) / 2);
}
}
if ((_parent._y + _y) > 450) {
removeMovieClip(_parent);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = (_root["missle1" + i]._x + _root["missle1" + i].mis._x) - 30;
_root["blow" + c]._y = (_root["missle1" + i]._y + _root["missle1" + i].mis._y) - 30;
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
}
i++;
}
}
Instance of Symbol 69 MovieClip in Symbol 70 MovieClip [spanner] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
if (this.hitTest(_root.main)) {
_root.main.gotoAndStop(type);
_root.tb.health = _root.tb.health + 20;
if (_root.tb.health > 100) {
_root.tb.health = 100;
}
_parent.removeMovieClip(this);
}
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 4
_root.tb.score = _root.tb.score + 100;
_parent.removeMovieClip(this);
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip [coolship] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 20;
ran = random(20) - 5;
ro = random(10) - 5;
xsp = 0;
co = 5;
count = co;
rav = 14;
ra = rav;
v = 0.3;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
_x = (_x + xsp);
count--;
if (count == 0) {
count = co;
xsp = xsp + ((random(3) - 1) / 2);
_rotation = (xsp * -3);
}
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.checkdeath.gotoAndStop(2);
nextFrame();
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
removeMovieClip(_parent);
}
if ((_parent._y + _y) > 450) {
_parent.removeMovieClip(this);
removeMovieClip(this);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
}
i++;
}
ra--;
if (ra == 1) {
_root.c++;
c = _root.c;
_root.attachMovie("eye1", "em" + c, c);
_root["em" + c]._x = (_parent._x + _x) + 10;
_root["em" + c]._y = (_parent._y + _y) + 40;
_root["em" + c].xs = _rotation;
_root["em" + c].eye.xs = random(3) - 1;
_root["em" + c].eye.ys = 3;
ra = rav;
}
}
Instance of Symbol 75 MovieClip in Symbol 76 MovieClip [em2] Frame 1
onClipEvent (enterFrame) {
_y = (_y + 10);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.count++;
_root.attachMovie("blow", "blow" + _root.count, _root.count);
_root["blow" + _root.count]._x = (_x + _parent._x) - 22;
_root["blow" + _root.count]._y = (_y + _parent._y) - 10;
_root.checkdeath.gotoAndStop(2);
_parent.removeMovieClip();
}
if ((_parent._y + _y) > 500) {
_parent.removeMovieClip();
}
}
Symbol 79 MovieClip [blow] Frame 16
stop();
Instance of Symbol 81 MovieClip in Symbol 82 MovieClip [em] Frame 1
onClipEvent (enterFrame) {
_y = (_y + 10);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
_root.count++;
_root.attachMovie("blow", "blow" + _root.count, _root.count);
_root["blow" + _root.count]._x = (_x + _parent._x) - 22;
_root["blow" + _root.count]._y = (_y + _parent._y) - 10;
_root.checkdeath.gotoAndStop(2);
_parent.removeMovieClip();
}
if ((_parent._y + _y) > 500) {
_parent.removeMovieClip();
}
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 3
nextFrame();
Symbol 84 MovieClip Frame 4
_root.tb.score = _root.tb.score + 10;
_parent.removeMovieClip(this);
Instance of Symbol 84 MovieClip "s" in Symbol 85 MovieClip [ship] Frame 1
onClipEvent (load) {
speed = 5 + _root.speed;
drop = 20;
ran = random(20) - 5;
ro = random(10) - 5;
}
onClipEvent (enterFrame) {
_y = (_y + speed);
if (_root.main.hitTest(this)) {
_root.tb.health = _root.tb.health - 10;
nextFrame();
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = this._x + _parent._x;
_root["blow" + c]._y = this._y + _parent._y;
_root.checkdeath.gotoAndStop(2);
removeMovieClip(_parent);
}
ran--;
if (ran == 1) {
_root.c++;
c = _root.c;
_root.attachMovie("em", "em" + c, c);
_root["em" + c]._x = (_parent._x + _x) + 45;
_root["em" + c]._y = (_parent._y + _y) + 30;
}
if ((_parent._y + _y) > 400) {
removeMovieClip(_parent);
}
i = 1;
while (i < 7) {
if (this.hitTest(_root["missle1" + i])) {
_root.c++;
c = _root.c;
_root.attachMovie("blow", "blow" + c, c);
_root["blow" + c]._x = (_root["missle1" + i]._x + _root["missle1" + i].mis._x) - 30;
_root["blow" + c]._y = (_root["missle1" + i]._y + _root["missle1" + i].mis._y) - 30;
this.nextFrame();
this._y = this._y - 10;
removeMovieClip(_root["missle1" + i]);
}
i++;
}
}
Symbol 234 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 235 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.43");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 236 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.MochiServices.clip;
}
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 237 MovieClip [__Packages.mochi.MochiDigits] Frame 0
class mochi.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 94 Button
on (press) {
getURL ("http://www.slingshotgames.com", "_blank");
}
Symbol 97 Button
on (press) {
stopAllSounds();
_root.handy = 2;
_root.gamedif = easy;
_root.difbonus = 0.1;
_root.gotoAndStop(6);
}
Symbol 103 Button
on (press) {
stopAllSounds();
_root.handy = 1;
_root.gamedif = medium;
_root.difbonus = 0.2;
_root.gotoAndStop(6);
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 114 Button
on (press) {
stopAllSounds();
_root.handy = 0;
_root.gamedif = hard;
_root.difbonus = 0.3;
_root.gotoAndStop(6);
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 123 Button
on (press) {
getURL ("http://www.slingshotgames.com", "_blank");
}
Symbol 125 Button
on (press) {
gotoAndStop (2);
}
Symbol 132 Button
on (press) {
gotoAndStop (1);
}
Symbol 134 Button
on (press) {
getURL ("http://www.myspace.com/waterflames", "_blank");
}
Symbol 136 Button
on (press) {
getURL ("http://www.slingshotgames.com", "_blank");
}
Symbol 137 MovieClip Frame 1
stop();
Instance of Symbol 110 MovieClip "med" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
if (_root.fullGame == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 120 MovieClip "hard" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
if (_root.fullGame == false) {
this.gotoAndStop(2);
}
}
Symbol 149 Button
on (press, keyPress "<Enter>") {
if (_root.playername.text == "") {
mochi.MochiScores.showLeaderboard({boardID:"6e4f2a3e56ba001c", score:_root.totaltotalscoreVar});
} else {
mochi.MochiScores.showLeaderboard({boardID:"6e4f2a3e56ba001c", score:_root.totaltotalscoreVar, name:_root.playername.text});
}
}
Symbol 154 Button
on (press) {
getURL ("http://www.slingshotgames.com");
}
Symbol 156 Button
on (press) {
stopAllSounds();
gotoAndStop (2);
}
Symbol 165 Button
on (press) {
getURL ("http://www.slingshotgames.com");
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 169 Button
on (press) {
if (_root.playername.text == "") {
mochi.MochiScores.showLeaderboard({boardID:"6e4f2a3e56ba001c", score:_root.totaltotalscoreVar});
} else {
mochi.MochiScores.showLeaderboard({boardID:"6e4f2a3e56ba001c", score:_root.totaltotalscoreVar, name:_root.playername.text});
}
}
Symbol 172 Button
on (press) {
getURL ("http://www.slingshotgames.com", "_blank");
}
Symbol 173 Button
on (press) {
getURL ("http://www.slingshotgames.com");
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 578
gotoAndStop (1);
_root.main.gotoAndStop(1);
Symbol 201 MovieClip Frame 1
stop();
Instance of Symbol 188 MovieClip "top" in Symbol 202 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 191 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = ((_parent.health / 100) * 600);
}
Instance of Symbol 201 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(50001);
}
on (press) {
getURL ("http://www.slingshotgames.com", "_blank");
}
onClipEvent (load) {
if (_root.fullGame == true) {
this.gotoAndStop(2);
}
}
Symbol 206 MovieClip Frame 1
stop();
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
if (_root.firerate == 0) {
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.xs = 2;
_root["missle1" + _parent.c].mis.ys = -8;
_root["missle1" + _parent.c].mis._rotation = 10;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.xs = -2;
_root["missle1" + _parent.c].mis.ys = -9;
_root["missle1" + _parent.c].mis._rotation = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = ((_parent._x + this._x) + (_width / 2)) - 10;
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = ((_parent._x + 10) + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.xs = 2;
_root["missle1" + _parent.c].mis.ys = -8;
_root["missle1" + _parent.c].mis._rotation = 10;
_parent.c = _parent.c + 1;
if (_parent.c > 6) {
_parent.c = 1;
}
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.xs = -2;
_root["missle1" + _parent.c].mis.ys = -8;
_root["missle1" + _parent.c].mis._rotation = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 6) {
_parent.c = 1;
}
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 6) {
_parent.c = 1;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 5
onClipEvent (load) {
xx = 0;
yy = -10;
xplus = "+";
yplus = "+";
x1 = 0;
y1 = -10;
r1 = 0;
x2 = 10;
y2 = 0;
r2 = 90;
x3 = 0;
y3 = 10;
r3 = 180;
x4 = -10;
y4 = 0;
r4 = 270;
plus = 1;
oxx = 0;
oyy = -10;
oro = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
plus++;
if (plus == 5) {
plus = 1;
}
if (plus == 1) {
xx = x1;
yy = y1;
ro = r1;
}
if (plus == 2) {
xx = x2;
yy = y2;
ro = r2;
}
if (plus == 3) {
xx = x3;
yy = y3;
ro = r3;
}
if (plus == 4) {
xx = x4;
yy = y4;
ro = r4;
}
if (plus == 5) {
xx = x5;
yy = y5;
}
if (_root.firerate == 0) {
_root.firerate = _root.fire / 2;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.xs = xx;
_root["missle1" + _parent.c].mis.ys = yy;
_root["missle1" + _parent.c].mis._rotation = ro;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
oxx = xx;
oyy = yy;
oro = ro;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire / 2;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -10;
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 7
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -5;
_root["missle1" + _parent.c].mis.gotoAndStop(2);
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = (_parent._y + this._y) - 20;
_root["missle1" + _parent.c].mis.ys = -5;
_root["missle1" + _parent.c].mis.gotoAndStop(2);
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -3;
_root["missle1" + _parent.c].mis.gotoAndStop(3);
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip Frame 9
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.firerate == 0) {
_root.firerate = _root.fire / 2;
_root.attachMovie("missle", "missle1" + _parent.c, _parent.c);
_root["missle1" + _parent.c]._x = (_parent._x + this._x) + (_width / 2);
_root["missle1" + _parent.c]._y = _parent._y + this._y;
_root["missle1" + _parent.c].mis.ys = -7;
_root["missle1" + _parent.c].mis.gotoAndStop(4);
_parent.c = _parent.c + 1;
if (_parent.c > 5) {
_parent.c = 1;
}
}
}
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stopAllSounds();
Symbol 211 MovieClip Frame 3
gotoAndStop (1);
Symbol 213 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
function Cre() {
i = 1;
while (i < 20) {
count--;
_root["ship" + count]._visible = false;
_root.removeMovieClip(_root["ship" + count]);
i++;
}
}
redflash.gotoAndPlay(2);
if (_root.tb.health < 10) {
frame = _root.currentframe;
count = _root.count;
Cre();
New_Level();
_root.tb.health = 100;
if (_root.tb.score < 100) {
_root.gotoAndStop(2);
} else {
_root.hscore = _root.tb.score;
_root.gotoAndStop(3);
}
}
gotoAndStop (1);
Symbol 220 MovieClip Frame 1
stop();
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.instructions.gotoAndPlay(2);
}
}
Symbol 220 MovieClip Frame 5
stop();
Symbol 220 MovieClip Frame 343
stop();
Symbol 227 MovieClip Frame 1
clicks = 2;
Symbol 227 MovieClip Frame 521
clicks = clicks - 1;
if (clicks == 1) {
gotoAndPlay (522);
} else {
gotoAndPlay (274);
}
Symbol 227 MovieClip Frame 1001
stop();
Instance of Symbol 227 MovieClip "fsa" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
clicks = 2;
}
Symbol 231 MovieClip Frame 203
_root.hscore = _root.tb.score;
_root.gotoAndStop(3);
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
redone = 0;
pegasus = 2;
standardship = 10;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 100;
astroidwall = 2;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 20;
speed = -2;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
Symbol 233 MovieClip Frame 3
redone = 0;
pegasus = 10;
standardship = 100;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 10;
TotalTime = 30;
speed = -2;
spawnTime = 18 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 4
redone = 0;
pegasus = 10;
standardship = 100;
leftflank = 20;
rightflank = 20;
middleflank = 0;
special = 20;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 10;
TotalTime = 30;
speed = -2;
spawnTime = 40 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 5
redone = 0;
pegasus = 10;
standardship = 100;
leftflank = 20;
rightflank = 20;
middleflank = 20;
special = 20;
ship2 = 20;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 10;
TotalTime = 30;
speed = -1;
spawnTime = 40 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 6
redone = 2;
pegasus = 10;
standardship = 100;
leftflank = 20;
rightflank = 20;
middleflank = 20;
special = 20;
ship2 = 20;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 30;
spanner = 10;
TotalTime = 30;
speed = -1;
spawnTime = 40 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 7
redone = 0;
pegasus = 10;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 20;
ship2 = 40;
ship2flank = 0;
astroid = 30;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 30;
speed = -1;
spawnTime = 40 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 8
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 20;
ship2 = 100;
ship2flank = 5;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 25;
speed = -1;
spawnTime = 40 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 9
redone = 0;
pegasus = 0;
standardship = 10;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 10;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 100;
spanner = 1;
TotalTime = 25;
speed = -1;
spawnTime = 40 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 10
redone = 0;
pegasus = 0;
standardship = 10;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 100;
spanner = 1;
TotalTime = 25;
speed = -1;
spawnTime = 30 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 11
redone = 0;
pegasus = 0;
standardship = 30;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 30;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 25;
speed = -1;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 12
redone = 15;
pegasus = 0;
standardship = 30;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 25;
speed = -1;
spawnTime = 60 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 13
redone = 0;
pegasus = 0;
standardship = 300;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 50;
moveship = 0;
spanner = 1;
TotalTime = 25;
speed = -1;
spawnTime = 50 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 14
redone = 0;
pegasus = 0;
standardship = 50;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 10;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 10;
coolship = 10;
moveship = 10;
spanner = 5;
TotalTime = 25;
speed = 0;
spawnTime = 75 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 15
redone = 0;
pegasus = 0;
standardship = 500;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 0;
TotalTime = 35;
speed = 0;
spawnTime = 20 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 16
redone = 0;
pegasus = 0;
standardship = 0;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 50;
moveship = 0;
spanner = 0;
TotalTime = 30;
speed = 0;
spawnTime = 100 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 17
redone = 0;
pegasus = 0;
standardship = 50;
leftflank = 5;
rightflank = 5;
middleflank = 5;
special = 5;
ship2 = 0;
ship2flank = 0;
astroid = 100;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 0;
spanner = 1;
TotalTime = 30;
speed = 1;
spawnTime = 70 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 18
redone = 20;
pegasus = 50;
standardship = 5;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 0;
coolship = 0;
moveship = 100;
spanner = 1;
TotalTime = 30;
speed = 2;
spawnTime = 50 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 19
redone = 0;
pegasus = 0;
standardship = 5;
leftflank = 0;
rightflank = 0;
middleflank = 0;
special = 0;
ship2 = 0;
ship2flank = 0;
astroid = 0;
astroidwall = 0;
astroidlots = 0;
bigship = 50;
coolship = 0;
moveship = 1;
spanner = 1;
TotalTime = 30;
speed = 2;
spawnTime = 70 / (3 + speed);
currentframe = _currentframe;
New_Level();
Symbol 233 MovieClip Frame 20
gotoAndStop (4);