Frame 4
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
Stage.showMenu = false;
restart = false;
koniec = false;
score = 0;
Frame 13
function EncrpytString(strVal) {
var strKey = "aHfEjcDebChGiAfIjDbEjacD";
var nLenKey = strKey.length;
var strZero = "0";
var _local3 = "";
var nTot = strVal.length;
var _local1 = 0;
_local3 = "";
var nCodeVal;
var nCodeKey;
var _local2;
var nChecksum = 0;
nCnt = 0;
while (nCnt < nTot) {
nCodeVal = strVal.charCodeAt(nCnt);
if (nCodeVal >= 128) {
nCodeVal = "X";
}
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nCodeVal % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nCodeVal / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nChecksum = nChecksum + _local2;
nCnt++;
}
nChecksum = nChecksum % 256;
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = (nChecksum % 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
nCodeKey = strKey.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= nLenKey) {
_local1 = 0;
}
_local2 = Math.floor(nChecksum / 16) + nCodeKey;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
function GetUrlParam(strUrl, strParam) {
var _local3 = strUrl.toLowerCase();
var _local1 = _local3.indexOf(strParam);
var nParamLen = strParam.length;
if (_local1 > 0) {
var nNumChars;
var _local2 = _local3.indexOf("&", _local1 + nParamLen);
if (_local2 > 0) {
nNumChars = _local2 - _local1;
} else {
nNumChars = strUrl.length - _local1;
}
return(strUrl.substr(_local1 + nParamLen, nNumChars));
}
return("");
}
function GetBaseUrl(strUrl) {
var _local1 = strUrl.toLowerCase();
var nNumChars = _local1.length;
var _local2 = _local1.indexOf("?", 0);
if (_local2 > 0) {
nNumChars = _local2;
}
var _local3 = "download";
if (_local1.substr(0, 4) == "http") {
_local3 = strUrl.substr(7, nNumChars - 7);
}
return(_local3);
}
stop();
stopAllSounds();
_root._x = 0;
_root._y = 0;
Frame 17
this.onEnterFrame = function () {
score2 = ("score: " + score) + " pts";
};
Frame 19
stopAllSounds();
gotoAndStop ("lot");
Frame 21
stopAllSounds();
score3 = ("You scored " + score) + " points";
Symbol 5 MovieClip Frame 1
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 5 MovieClip Frame 2
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 5 MovieClip Frame 3
stop();
newcolor = new Color(this.prev_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 6 MovieClip Frame 1
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 6 MovieClip Frame 2
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 6 MovieClip Frame 3
stop();
newcolor = new Color(this.next_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 19 Button
on (release) {
getURL ("http://www.kizash.com", "_blank");
}
Symbol 27 MovieClip Frame 1
stop();
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.bg_color);
Symbol 27 MovieClip Frame 2
stop();
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.but_over_color);
Symbol 27 MovieClip Frame 3
newcolor = new Color(this.submit_btn_bg);
newcolor.setRGB(_parent.but_down_color);
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 47 MovieClip [Kizash High Score Component] Frame 1
myTextFormat = new TextFormat();
myTextFormat.font = scoreFont;
myTextFormat.color = scoreColor;
myTextFormat.size = scoreSize;
myTextFormat.bold = scoreBold;
lastLabel.setTextFormat(myTextFormat);
nextLabel.setTextFormat(myTextFormat);
Instance of Symbol 2 MovieClip "hs_frame" in Symbol 47 MovieClip [Kizash High Score Component] Frame 1
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Instance of Symbol 5 MovieClip "last_btn" in Symbol 47 MovieClip [Kizash High Score Component] Frame 1
on (release) {
_parent.page = _parent.page - 10;
if (_parent.page < 0) {
_parent.page = 0;
}
if (_parent.page < 10) {
_parent.last_btn._visible = false;
_parent.lastScoreLabel._visible = false;
}
_parent.next_btn._visible = true;
_parent.nextScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 6 MovieClip "next_btn" in Symbol 47 MovieClip [Kizash High Score Component] Frame 1
on (release) {
_parent.page = _parent.page + 10;
if (_parent.page > _parent.maxScore) {
_parent.page = _parent.maxScore;
}
if (_parent.page > (_parent.maxScore - 20)) {
_parent.next_btn._visible = false;
_parent.nextScoreLabel._visible = false;
}
_parent.last_btn._visible = true;
_parent.lastScoreLabel._visible = true;
_parent.showScores();
}
Symbol 47 MovieClip [Kizash High Score Component] Frame 2
stop();
checkLabel.setTextFormat(myTextFormat);
String.prototype.addCommas = function () {
var _local3 = this.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = this.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
};
game_so = SharedObject.getLocal(myswfname);
check_score = new LoadVars();
score = _level0[myscorevar];
check_score.score = score;
check_score.game = myuniqueid;
check_score.sendAndLoad("https://www.kizash.com/high_scores/check_score.php", check_score, "POST");
check_score.onLoad = function (success) {
if (success) {
if (String(check_score.success) eq "1") {
ishigh = check_score.ishigh;
if (((ishigh eq "1") && (score != undefined)) && (score != 0)) {
hs_text = "You got a high score!";
gotoAndPlay ("EnterName");
} else {
hs_text = "Sorry. keep on trying";
gotoAndPlay ("ShowHighScores");
}
}
}
};
Symbol 47 MovieClip [Kizash High Score Component] Frame 3
stop();
_level0[sub_button_skin]._visible = true;
scoreLabel.setTextFormat(myTextFormat);
nameLabel.setTextFormat(myTextFormat);
score_txt.setTextFormat(myTextFormat);
myTabTextFormat = new TextFormat();
myTabTextFormat.font = scoreFont;
myTabTextFormat.color = scoreColor;
submitText.setTextFormat(myTabTextFormat);
name_txt.setTextFormat(myTextFormat);
newcolor = new Color(sub_btn.sub_up);
newcolor.setRGB(sel_color);
newcolor = new Color(sub_btn.sub_over);
newcolor.setRGB(des_color);
newcolor = new Color(sub_btn.sub_dn);
newcolor.setRGB(bg_color);
newcolor = new Color(sub_btn.next_btn_bg);
newcolor.setRGB(bg_color);
name_txt.restrict = "A-Z 0-9.\\-";
name_txt.text = game_so.data.playerName;
name_txt.maxChars = 16;
Selection.setFocus(name_txt);
Selection.setSelection(name_txt.length, name_txt.length);
name_txt.setTextFormat(myTextFormat);
if (name_txt.text == "undefined") {
name_txt.text = "";
}
Instance of Symbol 27 MovieClip "sub_btn" in Symbol 47 MovieClip [Kizash High Score Component] Frame 3
on (release, keyPress "<Enter>") {
if (_parent.name_txt.length > 0) {
_parent.game_so.data.playerName = _parent.name_txt.text;
}
_parent.nextFrame();
}
Symbol 47 MovieClip [Kizash High Score Component] Frame 4
stop();
_level0[sub_button_skin]._visible = false;
unique_id = new LoadVars();
if ((score > 0) && (game_so.data.playerName.length > 0)) {
unique_id.score = score;
unique_id.name = game_so.data.playerName.toLowerCase();
}
unique_id.game = myuniqueid;
unique_id.sendAndLoad("https://www.kizash.com/high_scores/games_unique_id.php", unique_id, "POST");
unique_id.onLoad = function (success) {
if (success) {
if (String(unique_id.success) eq "1") {
myunique = unique_id.unid;
nextFrame();
}
}
};
Symbol 47 MovieClip [Kizash High Score Component] Frame 5
stop();
hs_frame._visible = showFrame;
myScoreTextFormat = new TextFormat();
myScoreTextFormat.font = scoreFont;
myScoreTextFormat.size = scoreSize;
myScoreTextFormat.bold = scoreBold;
viewLastSkin = function (bool) {
_level0[last_button_skin]._visible = bool;
};
viewNextSkin = function (bool) {
_level0[next_button_skin]._visible = bool;
};
showScores = function () {
var _local3 = 10;
while (_local3 > 0) {
if (scoreboard_lv.tabletype == 2) {
var _local2 = scoreboard_lv["hname" + (page + _local3)];
var s = scoreboard_lv["hscore" + (page + _local3)];
} else {
var _local2 = scoreboard_lv["name" + (page + _local3)];
var s = scoreboard_lv["score" + (page + _local3)];
}
var _local1 = this[("line" + _local3) + "_mc"];
_local1.rank_txt.text = (page + _local3) + ".";
_local1.name_txt.text = (_local2.length ? (_local2.toUpperCase()) : "...");
_local1.score_txt.text = (s.length ? (s.addCommas()) : "...");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local2.toUpperCase() == game_so.data.playerName.toUpperCase())) ? (pl_color) : (scoreColor))));
_local1._visible = true;
loading_mc._visible = false;
_local3--;
}
_local3 = 10;
while (_local3 > 0) {
var _local1 = this[("line" + _local3) + "_mc"];
_local1.rank_txt.setTextFormat(myScoreTextFormat);
_local1.name_txt.setTextFormat(myScoreTextFormat);
_local1.score_txt.setTextFormat(myScoreTextFormat);
_local3--;
}
};
page = 0;
maxScore = 100;
scoreboard_lv = new LoadVars();
scoreboard_lv.unid = myunique;
if (myunique == undefined) {
scoreboard_lv.game = myuniqueid;
scoreboard_lv.sendAndLoad("https://www.kizash.com/high_scores/games_high_score_tbl.php", scoreboard_lv, "POST");
} else {
scoreboard_lv.sendAndLoad("https://www.kizash.com/high_scores/games_score_sql.php", scoreboard_lv, "POST");
}
scoreboard_lv.onLoad = function (success) {
if (success) {
if (String(scoreboard_lv.success) eq "1") {
next_btn._visible = true;
_level0[next_button_skin]._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
var _local1 = maxScore;
while (_local1 > 0) {
var _local2 = scoreboard_lv["name" + _local1];
if (game_so.data.playerName.length && (_local2.toUpperCase() == game_so.data.playerName.toUpperCase())) {
page = Math.floor(_local1 / 10) * 10;
if ((_local1 % 10) == 0) {
page = page - 10;
}
}
_local1--;
}
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
_level0[next_button_skin]._visible = false;
nextScoreLabel._visible = false;
}
if (page < 10) {
last_btn._visible = false;
_level0[last_button_skin]._visible = false;
lastScoreLabel._visible = false;
} else {
last_btn._visible = true;
_level0[last_button_skin]._visible = true;
lastScoreLabel._visible = true;
}
showScores();
} else {
errorMsg = scoreboard_lv.errorMsg.toUpperCase();
scoreboard_lv = new LoadVars();
nextFrame();
}
} else {
errorMsg = "COULD NOT ACCESS HIGH SCORES";
scoreboard_lv = new LoadVars();
nextFrame();
}
};
score = 0;
next_btn._visible = (last_btn._visible = false);
_level0[last_button_skin]._visible = (_level0[next_button_skin]._visible = false);
myTabTextFormat = new TextFormat();
myTabTextFormat.font = scoreFont;
myTabTextFormat.color = scoreColor;
whsText.setTextFormat(myTabTextFormat);
athsText.setTextFormat(myTabTextFormat);
lastScoreLabel.setTextFormat(myTextFormat);
lastScoreLabel._visible = false;
nextScoreLabel.setTextFormat(myTextFormat);
newcolor = new Color(next_btn.next_btn_bg);
newcolor.setRGB(bg_color);
newcolor = new Color(last_btn.prev_btn_bg);
newcolor.setRGB(bg_color);
newcolor = new Color(week_tab.w_selected);
newcolor.setRGB(sel_color);
newcolor = new Color(week_tab.w_deselected);
newcolor.setRGB(des_color);
newcolor = new Color(alltime_tab.a_selected);
newcolor.setRGB(sel_color);
newcolor = new Color(alltime_tab.a_deselected);
newcolor.setRGB(des_color);
Instance of Symbol 5 MovieClip "last_btn" in Symbol 47 MovieClip [Kizash High Score Component] Frame 5
on (release) {
_parent.page = _parent.page - 10;
if (_parent.page < 0) {
_parent.page = 0;
}
if (_parent.page < 10) {
_parent.last_btn._visible = false;
_parent._level0[last_button_skin]._visible = false;
_parent.viewLastSkin(false);
_parent.lastScoreLabel._visible = false;
}
_parent.next_btn._visible = true;
_parent.viewNextSkin(true);
_parent.nextScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 6 MovieClip "next_btn" in Symbol 47 MovieClip [Kizash High Score Component] Frame 5
on (release) {
_parent.page = _parent.page + 10;
if (_parent.page > _parent.maxScore) {
_parent.page = _parent.maxScore;
}
if (_parent.page > (_parent.maxScore - 20)) {
_parent.next_btn._visible = false;
_parent.viewNextSkin(false);
_parent.nextScoreLabel._visible = false;
}
_parent.last_btn._visible = true;
_parent.viewLastSkin(true);
_parent.lastScoreLabel._visible = true;
_parent.showScores();
}
Instance of Symbol 37 MovieClip "week_tab" in Symbol 47 MovieClip [Kizash High Score Component] Frame 5
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
newcolor = new Color(_parent.alltime_tab.a_deselected);
newcolor.setRGB(_parent.des_color);
newcolor = new Color(this.w_selected);
newcolor.setRGB(_parent.sel_color);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Instance of Symbol 43 MovieClip "alltime_tab" in Symbol 47 MovieClip [Kizash High Score Component] Frame 5
on (release) {
this.gotoAndStop(2);
_parent.week_tab.gotoAndStop(2);
newcolor = new Color(this.a_selected);
newcolor.setRGB(_parent.sel_color);
newcolor = new Color(_parent.week_tab.w_deselected);
newcolor.setRGB(_parent.des_color);
_parent.scoreboard_lv.tabletype = 2;
_parent.showScores();
}
Instance of Symbol 2 MovieClip "hs_frame" in Symbol 47 MovieClip [Kizash High Score Component] Frame 5
on (release) {
gotoAndStop (1);
_parent.alltime_tab.gotoAndStop(1);
_parent.scoreboard_lv.tabletype = 1;
_parent.showScores();
}
Symbol 47 MovieClip [Kizash High Score Component] Frame 6
errorLabel.setTextFormat(myTextFormat);
_level0[last_button_skin]._visible = false;
_level0[next_button_skin]._visible = false;
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
setProperty(this, _xscale , (_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Symbol 70 MovieClip Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
if (_local1.getBytesLoaded() != _local1.getBytesTotal()) {
gotoAndPlay (1);
_local1.stop();
} else {
_local1.play();
}
loadin = _local1.getBytesLoaded();
percent = ("loading " + math.round((_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100)) + "%";
bajty = ((math.round(_local1.getBytesLoaded() / 1024) + "Kb/") + math.round(_local1.getBytesTotal() / 1024)) + "Kb";
};
Symbol 76 Button
on (press) {
gotoAndStop ("gra");
}
Symbol 80 Button
on (release) {
getURL ("http://www.heavygames.com/aeroplane/view_high_scores.asp", "_blank");
}
Symbol 84 Button
on (release) {
getURL ((("http://www.heavygames.com/partner/download.asp?gameid=aeroplane&aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 88 Button
on (release) {
getURL ((("http://www.heavygames.com/index.asp?gameid=aeroplane&aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 102 Button
on (release) {
getURL ((("http://www.heavygames.com/index.asp?gameid=aeroplane&aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url), "_blank");
}
Symbol 117 Button
on (release) {
getURL ("http://www.rewolucje.com", "_blank");
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 43
stop();
Symbol 135 Button
on (press) {
gotoAndStop ("lot");
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 21
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 3
_root._y = _root._y + 15;
Symbol 149 MovieClip Frame 4
_root._y = _root._y - 15;
Symbol 149 MovieClip Frame 5
_root._y = _root._y + 5;
Symbol 149 MovieClip Frame 6
_root._y = _root._y - 5;
Symbol 149 MovieClip Frame 7
_root._y = _root._y + 2;
Symbol 149 MovieClip Frame 8
_root._y = _root._y - 2;
Symbol 149 MovieClip Frame 101
_parent._parent.koniec = false;
_parent._parent.gotoAndStop("sco");
Symbol 151 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
score = 0;
wznoszenie = false;
sila = 0;
enemySpeed = 10;
shieldCounter = 0;
gramy = true;
this.onMouseDown = function () {
if (gramy == true) {
wznoszenie = true;
}
};
this.onMouseUp = function () {
wznoszenie = false;
};
this.onEnterFrame = function () {
if ((shieldCounter >= 10) && (hero.shield._currentframe == 1)) {
shield._y = random(200) + 50;
shield.play();
shieldCounter = 0;
}
if (hero._y >= 350) {
gramy = false;
krasz.play();
}
_parent.score = score;
if ((wznoszenie == true) && (gramy == true)) {
sila = sila + 1;
} else {
sila = sila - 1;
}
hero._y = hero._y - sila;
hero._rotation = (-sila) * 2;
if (hero._y <= 0) {
wysokosc = -math.round(hero._y / 10);
} else {
wysokosc = "";
}
i = 0;
while (i < 10) {
var dat = eval ("kolko" + i);
dat.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - 10;
if (hero._visible == true) {
if (_local1._x <= -10) {
_local1._x = hero._x - 40;
_local1._y = hero._y;
}
}
if (gramy == false) {
_local1.gotoAndStop(2);
}
};
i++;
}
i = 0;
while (i < 10) {
var dat = eval ("cloud" + i);
dat.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - 15;
if (_local1._x <= -150) {
_local1._x = 600;
_local1._y = random(300);
}
};
i++;
}
i = 0;
while (i < 10) {
var dat = eval ("coin" + i);
dat.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x - 10;
if (_local1._x <= -50) {
_local1.gotoAndStop(random(6) + 1);
_local1._x = 500;
_local1._y = random(300);
}
if (_local1.hitTest(hero.tester)) {
_local1.gotoAndStop("taken");
score++;
shieldCounter++;
}
};
i++;
}
enemy._x = enemy._x - enemySpeed;
enemySpeed = enemySpeed + 0.003;
if (enemy._x <= -20) {
enemy._x = 600;
enemy._y = random(300);
enemy.gotoAndStop(1);
}
if (enemy.hitTest(hero.tester) && (enemy._currentframe == 1)) {
gramy = false;
enemy.play();
hero.play();
}
if (enemy.hitTest(hero.shield.tester) && (enemy._currentframe == 1)) {
enemy.play();
hero.shield.gotoAndStop(1);
score = score + 10;
}
if (shield.hitTest(hero.tester)) {
shield.gotoAndStop(1);
hero.shield.gotoAndStop(2);
}
};
Symbol 156 Button
on (release) {
koniec = true;
restart = false;
gotoAndStop ("sco");
}
Symbol 160 Button
on (release) {
gotoAndStop ("restart");
restart = true;
}
Symbol 164 Button
on (release) {
play();
}
Symbol 166 Button
on (release) {
stopAllSounds();
gotoAndStop (1);
}
Symbol 168 MovieClip Frame 4
stop();
Symbol 187 Button
on (release) {
if (pname.text.length > 0) {
var strOut = ((pname.text + "|") + _root.score);
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.heavygames.com/aeroplane/hs.asp?" + strOut2, "_blank");
gotoAndStop ("menu");
}
}
Symbol 196 Button
on (release) {
gotoAndStop ("restart");
restart = true;
}
Symbol 203 Button
on (press) {
gotoAndStop ("menu");
}