[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (234 B)
_root._quality = "HIGH";
_root.kongregateServices.connect();
var PATH = "http://208.109.177.63/~blitzgam/blitz_HighScores/";
var GAMENAME = "flic";
var SCORESPATH = (("http://www.blitzgamer.com/" + GAMENAME) + "_highscores.php");
Frame 23 (63 B)
MochiAd.showPreGameAd({id:"9e5afe7da16d91fa", res:"800x550"});
Frame 36 (87 B)
logo.onRelease = function () {
getURL ("http://www.gravityapple.com", "_blank");
};
Frame 167 (633 B)
var issound = true;
musicFade = function (sound, input) {
if (issound == true) {
if (input == "out") {
x = 100;
this.onEnterFrame = function () {
x = x - 2;
sound.setVolume(x);
if (x <= 0) {
sound.stop();
this.onEnterFrame = null;
}
};
} else if (input == "in") {
x = 0;
sound.start(0, 99);
this.onEnterFrame = function () {
x = x + 2;
sound.setVolume(x);
if (x >= 100) {
this.onEnterFrame = null;
}
};
}
}
};
if (issound == true) {
sound_bg = new Sound();
sound_bg.attachSound("intro_loop");
sound_bg.start(0, 99);
}
Frame 168 (454 B)
stop();
start_bt.onRelease = function () {
musicFade(sound_bg, "out");
_root.play();
};
addg_bt.onRelease = function () {
getURL ("http://www.blitzgamer.com/free_games.html", "_blank");
};
tops_bt.onRelease = function () {
getURL (_root.SCORESPATH, "_blank");
};
pmg_bt.onRelease = function () {
getURL ("http://www.blitzgamer.com", "_blank");
};
logo2.onRelease = function () {
getURL ("http://www.gravityapple.com", "_blank");
};
Instance of Symbol 18 MovieClip in Frame 168 (36 B)
onClipEvent (load) {
this.stop();
}
Instance of Symbol 18 MovieClip in Frame 168 (36 B)
onClipEvent (load) {
this.stop();
}
Instance of Symbol 18 MovieClip in Frame 168 (36 B)
onClipEvent (load) {
this.stop();
}
Instance of Symbol 18 MovieClip in Frame 168 (36 B)
onClipEvent (load) {
this.stop();
}
Instance of Symbol 18 MovieClip in Frame 168 (36 B)
onClipEvent (load) {
this.stop();
}
Instance of Symbol 18 MovieClip in Frame 168 (36 B)
onClipEvent (load) {
this.stop();
}
Frame 239 (310 B)
var mylife = 40;
lifebar.gotoAndStop(51 - mylife);
target_text.htmlText = "Upgrade in: 500";
scoremov.score.htmlText = "<font color='#FFFFFF'>Score:0 X 0</font>";
pads.helper1.stop();
pads.helper2.stop();
pads.helper3.stop();
pads.helper4.stop();
pads.paddle1.stop();
pads.paddle2.stop();
Instance of Symbol 141 MovieClip "ring" in Frame 239 (60 B)
onClipEvent (load) {
this.gotoAndStop(50 - _root.mylife);
}
Instance of Symbol 27 MovieClip [ball] "ballc" in Frame 239 (3.35 KiB) ●
onClipEvent (load) {
function fireB() {
_root.num++;
duplicateMovieClip (this, "sball" + _root.num, _root.num);
_root["sball" + _root.num].moveme = true;
}
function workaround() {
if ((_root.countdown == 0) || ((_root.ballnum == 0) && (_root.startTimer == true))) {
this.removeMovieClip();
}
if (_root.outside.hitTest(this._x, this._y, true)) {
_root.ballnum--;
this.removeMovieClip();
}
var _local5 = _root.ring.hitTest(this._x, this._y, true);
if ((!_local5) && (inside == true)) {
if (_root.suptime > 0) {
_root.holding = _root.holding - 2;
} else {
_root.holding--;
}
inside = false;
} else if (_local5) {
_root.startTimer = true;
}
var _local4 = false;
var _local3 = false;
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
checkpad = _root.pads.hitTest(x, y, true);
checkbox = _root.box.hitTest(x, y, true);
if ((checkpad && (!_local4)) && (this.inside)) {
array[i] = 1;
_local3 = true;
_local4 = false;
} else {
array[i] = 0;
}
if ((((checkbox && (_root.mylife > 0)) && (this.inside)) && (_root.sup == 0)) && (!this.red)) {
array[i] = 1;
_local4 = true;
_local3 = false;
already = true;
} else if (_local3 == true) {
} else {
array[i] = 0;
}
i = i + 40;
}
if (((_local4 == true) && (_root.mylife > 0)) && (!this.red)) {
_root.sound_beep2.start(0, 1);
_root.attachMovie("hurt", "hurt" + hurtn, hurtn);
_root["hurt" + hurtn]._x = _root.ring._x;
_root["hurt" + hurtn]._y = _root.ring._y;
hurtn++;
_root.loseLife();
_local4 = false;
}
if ((_local3 == true) && (this.already == false)) {
this.hit.play();
if (red) {
_root.scoremov.gotoAndPlay("bonus2");
_root.sound_sbeep.start(0, 1);
_root.myscore = _root.myscore + 300;
_root.plus3.gotoAndPlay(1);
} else {
_root.scoremov.gotoAndPlay("bonus");
_root.sound_beep.start(0, 1);
_root.myscore = _root.myscore + 100;
}
_local3 = false;
already = true;
}
var _local6 = _root.inner.hitTest(this._x, this._y, true);
if (_local6) {
already = false;
}
if ((this.inside == false) && (_local6)) {
this.gotoAndPlay("inside");
inside = true;
if (_root.suptime == 0) {
_root.holding++;
} else {
_root.holding = _root.holding + 2;
}
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 40;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
r = _width / 2;
xspeed = 0;
yspeed = 5;
already = false;
inside = false;
array = new Array(360);
hurtn = 40;
var red = false;
if ((random(3) == 1) && (_root.ballnum > 1)) {
red = true;
Col = new Color(this);
Col.setRGB(16711680);
}
}
onClipEvent (enterFrame) {
if ((moveme == true) && (_root.ispaused == false)) {
workaround();
}
}
Instance of Symbol 148 MovieClip "sound_con" in Frame 239 (995 B)
onClipEvent (load) {
if (_root.issound == false) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
this.onRelease = function () {
if (_root.issound == true) {
this.gotoAndStop(2);
_root.issound = false;
_root.sound_bg.setVolume(0);
_root.sound_beep.setVolume(0);
_root.sound_beep2.setVolume(0);
_root.sound_super.setVolume(0);
_root.sound_life.setVolume(0);
_root.sound_upgrade.setVolume(0);
_root.sound_speed.setVolume(0);
_root.sound_help.setVolume(0);
_root.sound_person.setVolume(0);
_root.sound_gaming.setVolume(0);
} else {
this.gotoAndStop(1);
_root.issound = true;
_root.sound_bg.setVolume(99);
_root.sound_beep.setVolume(99);
_root.sound_beep2.setVolume(99);
_root.sound_super.setVolume(99);
_root.sound_life.setVolume(99);
_root.sound_upgrade.setVolume(99);
_root.sound_speed.setVolume(99);
_root.sound_help.setVolume(99);
_root.sound_person.setVolume(99);
_root.sound_gaming.setVolume(99);
}
};
}
Instance of Symbol 179 MovieClip "lifebar" in Frame 239 (60 B)
onClipEvent (load) {
this.gotoAndStop(50 - _root.mylife);
}
Frame 277 (12.88 KiB) ● ●
function addScore() {
target_text.htmlText = "Upgrade in: " + (target - myscore);
var _local1;
_local1 = 0;
while (_local1 < holding) {
myscore++;
_local1++;
}
switch (holding) {
case 0 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#FFFFFF'>") + " X ") + holding) + "</font></font>";
break;
case 1 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#FEABA3'>") + " X ") + holding) + "</font></font>";
break;
case 2 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#FE7667'>") + " X ") + holding) + "</font></font>";
break;
case 3 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#FD412D'>") + " X ") + holding) + "</font></font>";
break;
case 4 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#DB1702'>") + " X ") + holding) + "</font></font>";
break;
case 5 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#05B5E0'>") + " X ") + holding) + "</font></font>";
break;
case 6 :
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#05B5E0'>") + " X ") + holding) + "</font></font>";
}
if (suptime > 0) {
scoremov.score.htmlText = (((("<font color='#FFFFFF'>Score:" + myscore) + "<font color='#FFCC33'>") + " X ") + holding) + "</font></font>";
}
if (myscore > target) {
if (myscore < 20000) {
target = target + 5000;
} else if (myscore < 40000) {
target = target + 10000;
} else {
target = target + 20000;
}
if (up_num == 0) {
scoremov.gotoAndPlay("upgrade");
sound_upgrade.start(0, 1);
upgrades.play();
}
up_num++;
hidesome();
}
if ((scoremov._currentframe > 2) && (scoremov._currentframe < 15)) {
scoremov.score.htmlText = (((("<font color='#FE7667'>Score:" + myscore) + "<font color='#FE7667'>") + " X ") + holding) + "</font></font>";
} else if ((scoremov._currentframe > 2) && (scoremov._currentframe < 22)) {
scoremov.score.htmlText = (((("<font color='#05B5E0'>Score:" + myscore) + "<font color='#05B5E0'>") + " X ") + holding) + "</font></font>";
} else if (scoremov._currentframe > 22) {
scoremov.score.htmlText = (((("<font color='#DB1702'>Score:" + myscore) + "<font color='#DB1702'>") + " X ") + holding) + "</font></font>";
}
}
function loseLife() {
mylife--;
ring.gotoAndStop(51 - mylife);
lifebar.gotoAndStop(51 - mylife);
}
function slowdown() {
if ((moving == "left") || (moving == "right")) {
pads.onEnterFrame = function () {
if (gain > 0) {
gain = gain - 2;
if (moving == "left") {
padat = padat + gain;
} else {
padat = padat - gain;
}
pads.paddle1.gotoAndStop(padat);
pads.paddle2.gotoAndStop(padat);
} else {
gain = 1;
moving = "none";
delete pads.onEnterFrame;
}
};
}
}
function supers() {
if (pads.paddle2._currentframe <= sup) {
padat = 200;
pads.paddle1.gotoAndStop(200);
pads.paddle2.gotoAndStop(200);
} else {
padat = padat - sup;
if (sup < 30) {
sup++;
}
pads.paddle1.gotoAndStop(padat);
pads.paddle2.gotoAndStop(padat);
}
}
function fireStar() {
starcnum = random(3);
_root["starc" + starcnum].fireS();
}
function fireBall() {
_root.ballc.fireB();
}
function gameover() {
if (countdown > 0) {
countdown--;
ending.htmlText = (("<font color='#FFFFFF'>warning get life in<font> <font color='#FF1111'>" + countdown) + "!!") + "</font>";
}
}
function closeup() {
if (up_num == 0) {
upgrades.gotoAndStop(1);
}
}
function hidesome() {
upgrades.keyinfo._visible = false;
if (mylife >= 50) {
upgrades.uplife._visible = false;
} else {
upgrades.keyinfo._visible = true;
upgrades.uplife._visible = true;
}
if (padspeed == 7) {
upgrades.upspeed._visible = false;
} else {
upgrades.keyinfo._visible = true;
upgrades.upspeed._visible = true;
}
if (helpers == 4) {
upgrades.uphelp._visible = false;
} else {
upgrades.keyinfo._visible = true;
upgrades.uphelp._visible = true;
}
}
function pauseGame() {
if (ispaused == true) {
ispaused = false;
pausescreen._visible = false;
if (issound == true) {
sound_gaming.setVolume(99);
}
if (pads.helper1._x > 0) {
pads.helper1.play();
}
if (pads.helper2._x > 0) {
pads.helper2.play();
}
if (pads.helper3._x > 0) {
pads.helper3.play();
}
if (pads.helper4._x > 0) {
pads.helper4.play();
}
} else if (ispaused == false) {
pausescreen._visible = true;
ispaused = true;
if (issound == true) {
sound_gaming.setVolume(30);
}
pads.helper1.stop();
pads.helper2.stop();
pads.helper3.stop();
pads.helper4.stop();
}
}
function checkSound() {
if (issound == false) {
_root.sound_bg.setVolume(0);
_root.sound_beep.setVolume(0);
_root.sound_beep2.setVolume(0);
_root.sound_super.setVolume(0);
_root.sound_life.setVolume(0);
_root.sound_upgrade.setVolume(0);
_root.sound_speed.setVolume(0);
_root.sound_help.setVolume(0);
_root.sound_person.setVolume(0);
_root.sound_gaming.setVolume(0);
}
}
function ballControl() {
var _local1 = false;
if ((ballnum <= 1) && (myscore > 2000)) {
_local1 = true;
} else if ((ballnum <= 2) && (myscore > 7000)) {
_local1 = true;
} else if ((ballnum <= 3) && (myscore > 18000)) {
_local1 = true;
} else if ((ballnum <= 4) && (myscore > 35000)) {
_local1 = true;
} else if ((ballnum <= 5) && (myscore > 60000)) {
_local1 = true;
}
if (_local1 == true) {
ballnum++;
fireBall();
}
}
stop();
var myscore = 0;
var oldscore = 0;
var randomgap = 1000;
var num = 0;
var padspeed = 2;
var helpers = 0;
var target = 500;
var up_num = 0;
var tutstar = 0;
var countdown = 500;
var holding = 0;
var super_item = 0;
var sup = 0;
var suptime = 0;
var gain = 1;
var startTimer = false;
var ballnum = 1;
var startgame = false;
var ispaused = false;
var supprog = 10000;
var leftkey = 37;
var rightkey = 39;
qup = true;
oneup = true;
twoup = true;
threeup = true;
pup = true;
iup = true;
pausescreen._visible = false;
upgrades.keyinfo._visible = false;
star1._visible = false;
star2._visible = false;
star3._visible = false;
pads.paddle1.stop();
pads.paddle2.stop();
padat = pads.paddle2._currentframe;
pads.helper1.stop();
pads.helper2.stop();
pads.helper3.stop();
pads.helper4.stop();
pads.helper1.setup = false;
pads.helper2.setup = false;
pads.helper3.setup = false;
pads.helper4.setup = false;
pressS._visible = false;
sound_bg.stop();
sound_beep = new Sound();
sound_beep.setVolume(80);
sound_beep.attachSound("beep1");
sound_sbeep = new Sound();
sound_sbeep.setVolume(80);
sound_sbeep.attachSound("sbeep");
sound_beep2 = new Sound();
sound_beep2.attachSound("beep2");
sound_person = new Sound();
sound_person.attachSound("person");
sound_super = new Sound();
sound_super.attachSound("supersound");
sound_help = new Sound();
sound_help.attachSound("helpersound");
sound_life = new Sound();
sound_life.attachSound("lifesound");
sound_speed = new Sound();
sound_speed.attachSound("speedsound");
sound_upgrade = new Sound();
sound_upgrade.attachSound("upgradesound");
sound_gaming = new Sound();
checkSound();
_root.onEnterFrame = function () {
if (Key.isDown(80) && (pup == true)) {
pauseGame();
pup = false;
} else if (!Key.isDown(80)) {
pup = true;
}
if (ispaused == false) {
if ((countdown == 0) || ((ballnum == 0) && (startTimer == true))) {
gameover1.play();
delete this.onEnterFrame;
} else {
if (mylife < 1) {
ending._visible = true;
gameover();
} else {
ending._visible = false;
}
if (startTimer == true) {
timer++;
}
if ((myscore - oldscore) > randomgap) {
supprog = 20000;
randomgap = random(supprog);
fireStar();
oldscore = myscore;
}
addScore();
ballControl();
if (((Key.isDown(49) && (oneup == true)) && (up_num > 0)) && (mylife < 50)) {
upgrades.uplife.play();
sound_life.start(0, 1);
oneup = false;
countdown = 500;
if ((50 - mylife) >= 10) {
mylife = mylife + 10;
} else {
mylife = 50;
}
ring.gotoAndStop(51 - mylife);
lifebar.gotoAndStop(51 - mylife);
up_num--;
closeup();
} else if (!Key.isDown(49)) {
oneup = true;
}
if (((Key.isDown(50) && (twoup == true)) && (up_num > 0)) && (padspeed < 7)) {
upgrades.upspeed.play();
sound_speed.start(0, 1);
pads.paddle1.pad2.speedme.gotoAndPlay(2);
pads.paddle2.pad2.speedme.gotoAndPlay(2);
twoup = false;
padspeed++;
up_num--;
closeup();
} else if (!Key.isDown(50)) {
twoup = true;
}
if (((Key.isDown(51) && (threeup == true)) && (up_num > 0)) && (helpers < 4)) {
upgrades.uphelp.play();
threeup = false;
if (helpers < 4) {
sound_help.start(0, 1);
if (!pads.helper1.setup) {
pads.helper1.setup = true;
pads.helper1.gotoAndPlay(pads.paddle1._currentframe);
pads.helper1._x = pads.paddle1._x;
pads.helper1._y = pads.paddle1._y;
} else if (!pads.helper2.setup) {
pads.helper2.setup = true;
pads.helper2.gotoAndPlay(pads.paddle1._currentframe);
pads.helper2._x = pads.paddle1._x;
pads.helper2._y = pads.paddle1._y;
} else if (!pads.helper3.setup) {
pads.helper3.setup = true;
pads.helper3.gotoAndPlay(pads.paddle1._currentframe);
pads.helper3._x = pads.paddle1._x;
pads.helper3._y = pads.paddle1._y;
} else if (!pads.helper4.setup) {
pads.helper4.setup = true;
pads.helper4.gotoAndPlay(pads.paddle1._currentframe);
pads.helper4._x = pads.paddle1._x;
pads.helper4._y = pads.paddle1._y;
}
helpers++;
}
up_num--;
closeup();
} else if (!Key.isDown(51)) {
threeup = true;
}
if (Key.isDown(81) && (qup == true)) {
qup = false;
if (_root._quality == "HIGH") {
_root._quality = "LOW";
} else if (_root._quality == "MEDIUM") {
_root._quality = "HIGH";
} else {
_root._quality = "MEDIUM";
}
} else if (!Key.isDown(Key.getCode(81))) {
qup = true;
}
if (Key.isDown(73) && (iup == true)) {
iup = false;
if (leftkey == 37) {
leftkey = 39;
rightkey = 37;
} else {
leftkey = 37;
rightkey = 39;
}
} else if (!Key.isDown(Key.getCode(73))) {
iup = true;
}
if ((Key.isDown(32) && (super_item > 0)) && (spacelifted == true)) {
sound_super.start(0, 1);
stopsup++;
if (suptime == 0) {
holding = holding * 2;
}
super_item--;
if (super_item == 0) {
_root.pressS._visible = false;
}
suptime = suptime + 170;
spacelifted = false;
if (star3._visible == true) {
star3._visible = false;
} else if (star2._visible == true) {
star2._visible = false;
} else if (star1._visible == true) {
star1._visible = false;
}
} else if (!Key.isDown(32)) {
spacelifted = true;
}
if (suptime > 0) {
pads.gotoAndStop("super");
supers();
suptime--;
if (suptime == 0) {
holding = holding / 2;
}
} else if ((suptime <= 0) && (sup > 0)) {
supers();
sup = sup - 2;
}
if (sup == 0) {
pads.gotoAndStop("normal");
}
if (Key.isDown(leftkey) && (sup == 0)) {
if (leftkey == 37) {
moving = "left";
} else {
moving = "right";
}
if (pads.paddle2._currentframe >= 200) {
padat = 1;
pads.paddle2.gotoAndStop(1);
pads.paddle1.gotoAndStop(1);
} else {
padat = padat + gain;
if (gain < padspeed) {
gain++;
}
pads.paddle1.gotoAndStop(padat);
pads.paddle2.gotoAndStop(padat);
}
} else if (Key.isDown(rightkey)) {
if (rightkey == 39) {
moving = "right";
} else {
moving = "left";
}
if (pads.paddle2._currentframe <= gain) {
padat = 200;
pads.paddle1.gotoAndStop(200);
pads.paddle2.gotoAndStop(200);
} else {
padat = padat - gain;
if (gain < padspeed) {
gain++;
}
pads.paddle1.gotoAndStop(padat);
pads.paddle2.gotoAndStop(padat);
}
} else {
gain = 1;
}
}
}
};
Instance of Symbol 242 MovieClip "starc0" in Frame 277 (1.06 KiB) ●
onClipEvent (load) {
function fireS() {
_root.num++;
duplicateMovieClip (this, "sstar" + _root.num, _root.num);
_root["sstar" + _root.num].moveme = true;
}
xspeed = 0;
yspeed = 0;
_root.tutstar++;
if (_root.tutstar == 4) {
this.tutme.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.ispaused == false) {
if ((_root.countdown == 0) || ((_root.ballnum == 0) && (_root.startTimer == true))) {
this.removeMovieClip();
}
if (moveme == true) {
xspeed = 3;
yspeed = 0;
}
if (_root.outside.hitTest(this._x, this._y, true)) {
this.removeMovieClip();
}
if (_root.pads.hitTest(this._x, this._y, true)) {
if (_root.super_item < 3) {
_root.super_item++;
_root.pressS._visible = true;
if (_root.star1._visible == false) {
_root.star1._visible = true;
} else if (_root.star2._visible == false) {
_root.star2._visible = true;
} else if (_root.star3._visible == false) {
_root.star3._visible = true;
}
}
this.removeMovieClip();
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
Instance of Symbol 242 MovieClip "starc2" in Frame 277 (0.98 KiB)
onClipEvent (load) {
function fireS() {
_root.num++;
duplicateMovieClip (this, "sstar" + _root.num, _root.num);
_root["sstar" + _root.num].moveme = true;
}
xspeed = 0;
yspeed = 0;
_root.tutstar++;
if (_root.tutstar == 4) {
this.tutme.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.ispaused == false) {
if ((_root.countdown == 0) || ((_root.ballnum == 0) && (_root.startTimer == true))) {
this.removeMovieClip();
}
if (moveme == true) {
xspeed = -3;
yspeed = 0;
}
if (_root.pads.hitTest(this._x, this._y, true)) {
if (_root.super_item < 3) {
_root.super_item++;
_root.pressS._visible = true;
if (_root.star1._visible == false) {
_root.star1._visible = true;
} else if (_root.star2._visible == false) {
_root.star2._visible = true;
} else if (_root.star3._visible == false) {
_root.star3._visible = true;
}
}
this.removeMovieClip();
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
Instance of Symbol 242 MovieClip "starc1" in Frame 277 (0.98 KiB)
onClipEvent (load) {
function fireS() {
_root.num++;
duplicateMovieClip (this, "sstar" + _root.num, _root.num);
_root["sstar" + _root.num].moveme = true;
}
xspeed = 0;
yspeed = 0;
_root.tutstar++;
if (_root.tutstar == 4) {
this.tutme.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.ispaused == false) {
if ((_root.countdown == 0) || ((_root.ballnum == 0) && (_root.startTimer == true))) {
this.removeMovieClip();
}
if (moveme == true) {
xspeed = 0;
yspeed = -3;
}
if (_root.pads.hitTest(this._x, this._y, true)) {
if (_root.super_item < 3) {
_root.super_item++;
_root.pressS._visible = true;
if (_root.star1._visible == false) {
_root.star1._visible = true;
} else if (_root.star2._visible == false) {
_root.star2._visible = true;
} else if (_root.star3._visible == false) {
_root.star3._visible = true;
}
}
this.removeMovieClip();
}
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
}
Symbol 14 MovieClip [hurt] Frame 17 (24 B)
this.removeMovieClip();
Symbol 26 MovieClip Frame 1 (8 B)
stop();
Symbol 27 MovieClip [ball] Frame 1 (8 B)
stop();
Symbol 27 MovieClip [ball] Frame 6 (8 B)
stop();
Symbol 31 Button (65 B)
on (release) {
getURL ("http://www.blitzgamer.com", "_blank");
}
Symbol 53 MovieClip Frame 1 (8 B)
stop();
Symbol 53 MovieClip Frame 20 (8 B)
stop();
Symbol 104 MovieClip Frame 1 (40 B)
this._visible = false;
_parent.stop();
Symbol 104 MovieClip Frame 2 (22 B)
this._visible = true;
Symbol 104 MovieClip Frame 65 (1 B)
Symbol 104 MovieClip Frame 143 (133 B)
stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
} else {
play();
}
Symbol 104 MovieClip Frame 144 (13 B)
tank.play();
Symbol 104 MovieClip Frame 187 (43 B)
_parent.play();
stop();
_parent.play();
Symbol 268 MovieClip [__Packages.MochiAd] Frame 0 (13.87 KiB) ● ●
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
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 _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.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 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_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 _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_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 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();
}};
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_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 = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
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) {
_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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(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 _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
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);
}
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++;
}
}
return(_local4);
}
}
Symbol 135 Button (65 B)
on (release) {
getURL ("http://www.blitzgamer.com", "_blank");
}
Symbol 141 MovieClip Frame 1 (8 B)
stop();
Symbol 141 MovieClip Frame 51 (41 B)
play();
_root.sound_person.start(0, 1);
Symbol 141 MovieClip Frame 61 (41 B)
play();
_root.sound_person.start(0, 1);
Symbol 141 MovieClip Frame 68 (41 B)
play();
_root.sound_person.start(0, 1);
Symbol 141 MovieClip Frame 73 (8 B)
stop();
Symbol 148 MovieClip Frame 1 (8 B)
stop();
Symbol 148 MovieClip Frame 2 (8 B)
stop();
Symbol 156 MovieClip Frame 1 (8 B)
stop();
Symbol 161 MovieClip Frame 1 (8 B)
stop();
Symbol 161 MovieClip Frame 2 (8 B)
stop();
Symbol 179 MovieClip Frame 1 (8 B)
stop();
Symbol 179 MovieClip Frame 51 (8 B)
stop();
Symbol 186 MovieClip Frame 1 (8 B)
stop();
Symbol 190 MovieClip Frame 1 (8 B)
stop();
Symbol 193 MovieClip Frame 1 (8 B)
stop();
Symbol 197 MovieClip Frame 1 (8 B)
stop();
Symbol 197 MovieClip Frame 15 (8 B)
stop();
Symbol 204 MovieClip Frame 1 (8 B)
stop();
Symbol 204 MovieClip Frame 15 (17 B)
gotoAndStop (1);
Symbol 204 MovieClip Frame 22 (17 B)
gotoAndStop (1);
Symbol 208 MovieClip Frame 1 (8 B)
stop();
Symbol 227 MovieClip Frame 117 (218 B)
stop();
var sb = false;
this.onEnterFrame = function () {
if (Key.isDown(83) && (sb == false)) {
sb = true;
delete this.onEnterFrame;
play();
} else if (!Key.isDown(83)) {
sb = false;
}
};
Symbol 227 MovieClip Frame 118 (351 B)
stop();
this.onEnterFrame = function () {
if (Key.isDown(83) && (sb == false)) {
_root.countE.play();
_root.sound_gaming.attachSound("gamesound");
_root.sound_gaming.start(0, 99);
sb = true;
delete this.onEnterFrame;
_root.startgame = true;
this._visible = false;
} else if (!Key.isDown(83)) {
sb = false;
}
};
Instance of Symbol 18 MovieClip in Symbol 227 MovieClip Frame 118 (36 B)
onClipEvent (load) {
this.stop();
}
Symbol 232 MovieClip Frame 1 (8 B)
stop();
Symbol 232 MovieClip Frame 26 (18 B)
_root.fireBall();
Symbol 241 MovieClip Frame 1 (8 B)
stop();
Symbol 241 MovieClip Frame 2 (8 B)
stop();
Symbol 258 MovieClip Frame 1 (8 B)
stop();
Symbol 258 MovieClip Frame 2 (44 B)
_root.musicFade(_root.sound_gaming, "out");
Symbol 258 MovieClip Frame 33 (2.19 KiB) ●
finalscore.text = "Your Score : " + _root.myscore;
_root.createEmptyMovieClip("highSender", _root.getNextHighestDepth());
pmg_bt.onRelease = function () {
getURL ("http://www.blitzgamer.com", "_blank");
};
_root.kongregateScores.submit(_root.myscore);
submitscore.onRelease = function () {
_root.highSender.playerName = myname.text;
_root.highSender.score = _root.myscore;
_root.highSender.gamename = _root.GAMENAME;
_root.highSender.validator = _root.scoreSystem.processScore(_root.myscore);
_root.highSender.loadVariables(_root.PATH + "new_score.php", "POST");
getURL (_root.SCORESPATH, "_blank");
this._visible = false;
myname.text._visible = false;
};
var rated;
if (_root.myscore < 500) {
rated = "Stop playing now - You can get over 500 points without even moving the paddles. Are you really that bad?";
} else if (_root.myscore < 1000) {
rated = "Terrible - Your going to need a lot of practice to get good at this. The Flies are laugthing at you!";
} else if (_root.myscore < 5000) {
rated = "Rubbish - If you get this rating you need to practice more moving the paddles. After you get used to clockwise and anticlockwise movements then you can conquer this game!";
} else if (_root.myscore < 20000) {
rated = "Squatter - Not bad, but still not high enough to class yourself as a master. Your fly count isnt high enough. Try using the supers when you have more flies to get higher score multipliers";
} else if (_root.myscore < 50000) {
rated = "Zapper - Your in the average league. Try saving your supers until you have 5 flies inside your zone. Then get the max X10 score multiplier and watch your score rocket!";
} else if (_root.myscore < 100000) {
rated = "Expert Fly Controller - You have conquerd the paddles and are using your supers well. Now you need to use those helper paddles better. Only get flies that they cant, if you master this you'll be in the league of Lord Fly Controllers!";
} else if (_root.myscore > 100000) {
rated = "Lord Fly Controller! - You are now a master of my game, controlling Flies is your proffession! Now test your skill against the other masters and get to the top of the top score list!";
}
rateme.text = "Rating: " + rated;
Symbol 258 MovieClip Frame 50 (171 B)
stop();
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.musicFade(_root.sound_bg, "in");
_root.gotoAndStop("menu");
this.gotoAndStop(1);
}
};
Instance of Symbol 18 MovieClip in Symbol 263 MovieClip Frame 1 (36 B)
onClipEvent (load) {
this.stop();
}
Symbol 267 MovieClip Frame 1 (102 B)
loadMovie ("http://208.109.177.63/~blitzgam/blitz_HighScores/encrypted.swf", this);
this._alpha = 0;