Frame 1
_focusrect = false;
_global.started = 1;
if (!_global.started) {
_global.started = 1;
this.createEmptyMovieClip("snd1", 1000);
_global.sound1 = new Sound(this.snd1);
_global.sound1.setVolume(100);
_global.sound1.attachSound("snd_fly1");
this.createEmptyMovieClip("snd2", 1001);
_global.sound2 = new Sound(this.snd2);
_global.sound2.setVolume(100);
_global.sound2.attachSound("snd_fly2");
this.createEmptyMovieClip("snd3", 1002);
_global.sound3 = new Sound(this.snd3);
_global.sound3.setVolume(100);
_global.sound3.attachSound("snd_fly3");
this.createEmptyMovieClip("snd4", 1003);
_global.sound4 = new Sound(this.snd4);
_global.sound4.setVolume(100);
_global.sound4.attachSound("snd_break1");
this.createEmptyMovieClip("snd5", 1004);
_global.sound5 = new Sound(this.snd5);
_global.sound5.setVolume(100);
_global.sound5.attachSound("snd_final1");
this.createEmptyMovieClip("snd6", 1005);
_global.sound6 = new Sound(this.snd6);
_global.sound6.setVolume(100);
_global.sound6.attachSound("snd_start1");
this.createEmptyMovieClip("snd8", 1007);
_global.sound8 = new Sound(this.snd8);
_global.sound8.setVolume(100);
_global.sound8.attachSound("snd_fly4");
this.createEmptyMovieClip("snd9", 1008);
_global.sound9 = new Sound(this.snd9);
_global.sound9.setVolume(100);
_global.sound9.attachSound("snd_addlife");
this.createEmptyMovieClip("mainSnd", 1010);
_global.sound10 = new Sound(this.snd1);
_global.sound10.setVolume(80);
_global.sound10.attachSound("mainSnd");
stop();
}
Frame 2
_global.sound10.stop();
_global.sound10.start(0, 10000000);
Frame 9
wait = 1;
Frame 10
stop();
Frame 16
function decLive(count) {
var _local1 = _global;
_local1.sound4.start(0, 1);
_local1.sound1.stop();
_local1.sound2.stop();
_local1.sound3.stop();
_local1.sound8.stop();
this.live = this.live - count;
if (live < 0) {
play();
_local1.sound5.start(0, 1);
}
flame.gotoAndPlay(2);
}
function incLive(count) {
_global.sound9.start(0, 1);
this.live = this.live + count;
}
Mouse.hide();
_quality = "LOW";
cnt = 0;
live = 10;
_global.startTimer = getTimer();
_global.nframes = 0;
Instance of Symbol 77 MovieClip in Frame 16
onClipEvent (enterFrame) {
_global.nframes++;
rot = this._rotation;
roto = rot;
if (Key.isDown(39)) {
rot = rot + 10;
}
if (Key.isDown(37)) {
rot = rot - 10;
}
if ((rot == roto) && (roto != 0)) {
rot = int(rot * 0.9);
}
if (rot != this._rotation) {
this._rotation = rot;
}
}
Frame 18
stop();
Frame 19
Mouse.show();
_quality = "HIGH";
_global.score = cnt;
_global.frameRate = (_global.nframes / (getTimer() - _global.startTimer)) * 1000;
Frame 20
aboutFlag = 0;
lscore = _global.score;
Frame 25
_global.sound10.stop();
_global.sound10.start(0, 1000000);
Instance of Symbol 46 MovieClip [pnFlashGames] "pnConnector" in Frame 35
//component parameters
onClipEvent (initialize) {
debugMode = false;
}
Frame 41
_global.sendFlag = 1;
stop();
pnConnector.storeScore(lscore);
delete loadData;
delete sendData;
loadData = new LoadVars();
sendData = new LoadVars();
f = int(Math.floor(_global.frameRate));
s = lscore;
r = (int(Math.random() * 10000) % 200) + 5;
sendData.a = (s + f) + r;
sendData.b = ((2 * s) - f) + r;
sendData.c = r + s;
sendData.d = (7 * f) + (3 * s);
loadData.onLoad = function (success) {
if (_global.sendFlag == 1) {
gotoAndStop ("endSave");
}
};
Frame 42
_global.sendFlag = 0;
stop();
Frame 46
if (!aboutFlag) {
gotoAndPlay ("l1");
}
Frame 53
stop();
Frame 58
gotoAndPlay ("l1");
Symbol 25 MovieClip [mm4] Frame 1
angle = int(Math.random() * 1000) % 360;
this._rotation = angle;
Symbol 25 MovieClip [mm4] Frame 40
angle = Math.abs(int(angle + _parent._rotation) % 360);
buf = _parent._parent.fig.fig.fig.fig._currentframe;
if (((angle < 30) || (angle > 330)) && (buf > 2)) {
this._alpha = 0;
_parent._parent.incLive(1);
} else if (((angle > 150) && (angle < 240)) && (buf == 1)) {
this._alpha = 0;
_parent._parent.incLive(1);
}
Symbol 25 MovieClip [mm4] Frame 42
_parent._parent.fig.fig.fig.fig.glow._visible = false;
this.removeMovieClip();
Symbol 34 MovieClip [mm3] Frame 1
angle = int(Math.random() * 1000) % 360;
this._rotation = angle;
Symbol 34 MovieClip [mm3] Frame 40
_global.sound3.start(0, 1);
angle = Math.abs(int(angle + _parent._rotation) % 360);
if (((angle < 60) || (angle > 300)) || ((angle > 120) && (angle < 240))) {
buf = _parent._parent.fig.fig.fig.fig._currentframe;
if (buf != 2) {
_parent._parent.decLive(1);
}
} else {
_parent._parent.decLive(1);
}
Symbol 34 MovieClip [mm3] Frame 42
this.removeMovieClip();
Symbol 38 MovieClip [mm6] Frame 1
angle = int(Math.random() * 1000) % 360;
this._rotation = angle;
Symbol 38 MovieClip [mm6] Frame 34
_global.sound8.start(0, 1);
Symbol 38 MovieClip [mm6] Frame 40
angle = Math.abs(int(angle + _parent._rotation) % 360);
if (((angle < 45) || (angle > 315)) || ((angle > 135) && (angle < 225))) {
} else {
buf = _parent._parent.fig.fig.fig.fig._currentframe;
if (buf < 3) {
_parent._parent.decLive(1);
}
}
Symbol 38 MovieClip [mm6] Frame 42
this.removeMovieClip();
Symbol 41 MovieClip [mm5] Frame 1
angle = int(Math.random() * 1000) % 360;
this._rotation = angle;
Symbol 41 MovieClip [mm5] Frame 34
_global.sound2.start(0, 1);
Symbol 41 MovieClip [mm5] Frame 40
buf = _parent._parent.fig.fig.fig.fig._currentframe;
if (buf < 3) {
_parent._parent.decLive(1);
}
Symbol 41 MovieClip [mm5] Frame 42
this.removeMovieClip();
Symbol 45 MovieClip [mm2] Frame 1
angle = int(Math.random() * 1000) % 360;
this._rotation = angle;
Symbol 45 MovieClip [mm2] Frame 30
_global.sound1.start(0, 1);
Symbol 45 MovieClip [mm2] Frame 40
angle = Math.abs(int(angle + _parent._rotation) % 360);
if ((angle > 115) && (angle < 230)) {
buf = _parent._parent.fig.fig.fig.fig._currentframe;
if ((buf < 5) || (buf > 18)) {
_parent._parent.decLive(2);
}
}
Symbol 45 MovieClip [mm2] Frame 42
this.removeMovieClip();
Symbol 46 MovieClip [pnFlashGames] Frame 1
#initclip 1
pnFlashGames = function () {
var _local1 = this;
var _local2 = _root;
_local1.gid = _local2.pn_gid;
_local1.uname = _local2.pn_uname;
_local1._modvalue = "pnFlashGames";
_local1._modvar = "module";
_local1._script = "index.php";
if (_local2.pn_modvalue != null) {
_local1._modvalue = _local2.pn_modvalue;
}
if (_local2.pn_modvar != null) {
_local1._modvar = _local2.pn_modvar;
}
if (_local2.pn_script != null) {
_local1._script = _local2.pn_script;
}
_local1._autoupdate = false;
if (_local2.pn_autoupdate == "true") {
_local1._autoupdate = true;
}
if (_local2.pn_extravars != null) {
_local1._extravars = new Array();
temppairs = _local2.pn_extravars.split("|");
x = 0;
while (x < temppairs.length) {
tempset = temppairs[x].split("~");
_local1._extravars.push(tempset);
x++;
}
} else {
_local1._extravars = null;
}
_local1.busy = false;
_local1.gameSaved = null;
_local1.gameLoaded = null;
_local1.gameScoresLoaded = null;
_local1.gameScores = null;
_local1.scoreStored = null;
_local1.gameData = "";
};
pnFlashGames.prototype.saveGame = function (gameData) {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "saveGame";
varsObj.gid = _local1.gid;
varsObj.gameData = gameData;
varsObj.type = "user";
varsObj[_local1._modvar] = _local1._modvalue;
varsObj.parent = _local1;
varsObj.onLoad = _local1.saveGame_Result;
if (_local1._extravars != null) {
x = 0;
while (x < _local1._extravars.length) {
varsObj[_local1._extravars[x][0]] = _local1._extravars[x][1];
x++;
}
}
if (_local1.debugMode) {
_local1.debugOutput(varsObj);
} else {
varsObj.sendAndLoad(_local1._script, varsObj, "POST");
}
};
pnFlashGames.prototype.saveGame_Result = function (success) {
var _local1 = this;
_local1.parent._parent.incoming = _local1.opSuccess;
if (_local1.opSuccess == "true") {
_local1.parent.gameSaved = true;
} else {
_local1.parent.gameSaved = false;
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.loadGame = function () {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "loadGame";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj[_local1._modvar] = _local1._modvalue;
varsObj.parent = _local1;
varsObj.onLoad = _local1.loadGame_Result;
if (_local1._extravars != null) {
x = 0;
while (x < _local1._extravars.length) {
varsObj[_local1._extravars[x][0]] = _local1._extravars[x][1];
x++;
}
}
if (_local1.debugMode) {
_local1.debugOutput(varsObj);
} else {
varsObj.sendAndLoad(_local1._script, varsObj, "POST");
}
};
pnFlashGames.prototype.loadGame_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.gameLoaded = true;
_local1.parent.gameData = gameData;
} else {
_local1.parent.gameLoaded = false;
}
if (_local1.parent.onLoadGame != null) {
_local1.parent.onLoadGame(_local1.gameData);
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.storeScore = function (score) {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.score = score;
varsObj.func = "storeScore";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj[_local1._modvar] = _local1._modvalue;
varsObj.parent = _local1;
varsObj.onLoad = _local1.storeScore_Result;
if (_local1._extravars != null) {
x = 0;
while (x < _local1._extravars.length) {
varsObj[_local1._extravars[x][0]] = _local1._extravars[x][1];
x++;
}
}
if (_local1.debugMode) {
_local1.debugOutput(varsObj);
} else {
varsObj.sendAndLoad(_local1._script, varsObj, "POST");
}
};
pnFlashGames.prototype.storeScore_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.scoreStored = true;
if (_local1.parent._autoupdate) {
_root.getURL("javascript:refreshScores();");
}
} else {
_local1.parent.scoreStored = false;
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.loadGameScores = function () {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "loadGameScores";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj[_local1._modvar] = _local1._modvalue;
varsObj.parent = _local1;
varsObj.onLoad = _local1.loadGameScores_Result;
if (_local1._extravars != null) {
x = 0;
while (x < _local1._extravars.length) {
varsObj[_local1._extravars[x][0]] = _local1._extravars[x][1];
x++;
}
}
if (_local1.debugMode) {
_local1.debugOutput(varsObj);
} else {
varsObj.sendAndLoad(_local1._script, varsObj, "POST");
}
};
pnFlashGames.prototype.loadGameScores_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.gameScoresLoaded = true;
_local1.parent.gameScores = new XML(_local1.gameScores);
} else {
_local1.parent.gameScoresLoaded = false;
}
if (_local1.parent.onLoadGameScores != null) {
_local1.parent.onLoadGameScores(_local1.gameScores);
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.debugOutput = function (vars) {
var _local1 = vars;
debug = "";
debug = debug + (("Function: " + _local1.func) + newline);
switch (_local1.func) {
case "storeScore" :
debug = debug + ("Score: " + _local1.score);
return;
case "saveGame" :
debug = debug + ("Saving: " + _local1.gameData);
return;
case "loadGame" :
debug = debug + "Loading data....";
return;
case "getGameScores" :
debug = debug + "Getting scores for this game....";
}
};
Object.registerClass("pnFlashGames", pnFlashGames);
#endinitclip
Symbol 57 Button
on (release, releaseOutside, keyPress "<Enter>") {
if (wait) {
wait = 0;
play();
_global.sound6.start(0, 1);
}
}
Symbol 59 Button
on (release, releaseOutside) {
play();
}
Symbol 76 MovieClip Frame 8
if (Math.random() > 0.1) {
_parent.addFurd();
}
Symbol 77 MovieClip Frame 1
function addFurd() {
var _local1 = this;
var _local2 = _global;
var _local3 = _parent;
_local1._parent.cnt++;
_local1.cnt--;
if (_local1.cnt < 1000) {
_local1.cnt = 2000;
}
if (Math.random() < 0.3) {
_local1.attachMovie("mm2", "mm" + _local1.cnt, _local1.cnt);
} else if ((_local3.cnt > 50) && (Math.random() < (0.2 + (_local1._parent.cnt / 1000)))) {
if (_local2.disableCenter) {
_local2.disableCenter--;
} else {
_local1.attachMovie("mm3", "mm" + _local1.cnt, _local1.cnt);
_local2.disableJump = 1;
}
} else if ((_local3.cnt > 150) && (Math.random() < (0.2 + (_local1._parent.cnt / 1000)))) {
if (_local2.disableCenter) {
_local2.disableCenter--;
} else {
_local1.attachMovie("mm6", "mm" + _local1.cnt, _local1.cnt);
_local2.disableJump = 1;
}
} else if ((_local3.cnt > 100) && (Math.random() > 0.95)) {
_local1.attachMovie("mm4", "mm" + _local1.cnt, _local1.cnt);
} else if (Math.random() < 0.2) {
if (_local2.disableJump) {
_local2.disableJump--;
} else {
_local1.attachMovie("mm5", "mm" + _local1.cnt, _local1.cnt);
_local2.disableCenter = 1;
_local2.disableJump = 1;
}
}
}
this.cnt = 2000;
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 20
gotoAndStop (1);
Instance of Symbol 84 MovieClip "fig" in Symbol 85 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if ((this._currentframe == 1) || (this._currentframe > 18)) {
this.gotoAndPlay(3);
}
} else if (Key.isDown(40)) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
}
} else if (this._currentframe == 2) {
this.gotoAndStop(1);
}
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 5
_global.sound10.stop();
_global.sound10.start(0, 1000000);
Symbol 114 MovieClip Frame 1
this.lscore = _parent.lscore;
this.frate = Math.floor(_global.frameRate);
Symbol 118 Button
on (release, releaseOutside) {
play();
}
Symbol 121 Button
on (release, releaseOutside, keyPress "<Enter>") {
aboutFlag = 1;
play();
}
Symbol 126 Button
on (release, releaseOutside, keyPress "<Enter>") {
play();
}