Frame 1
stop();
_root.onEnterFrame = function () {
loaded_txt = ((getBytesTotal() / getBytesLoaded()) * 100) + "%";
if (loaded_txt == "100%") {
gotoAndStop ("intro");
delete onEnterFrame;
}
};
Frame 3
var mus_now = 0;
Frame 4
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("e13270c1", this, 10301, true);
var mus_list = ["black orpheus", "black coffie", "cantina theme"];
mus_txt = "now playing - " + mus_list[mus_now];
var bcg_mus = new Sound();
bcg_mus.attachSound(mus_list[mus_now]);
var click_snd = new Sound();
click_snd.attachSound("click_snd");
_root.play_btn.useHandCursor = false;
_root.rules_btn.useHandCursor = false;
_root.credits_btn.useHandCursor = false;
_root.scores_btn.useHandCursor = false;
_root.more_btn.useHandCursor = false;
_root.play_btn.onRelease = function () {
click_snd.start();
gotoAndStop ("game");
};
_root.rules_btn.onRelease = function () {
click_snd.start();
gotoAndStop ("rules");
};
_root.credits_btn.onRelease = function () {
click_snd.start();
gotoAndStop ("credits");
};
_root.scores_btn.onRelease = function () {
click_snd.start();
getURL ("http://www.armorbot.com/mytable/?id=346", "_blank");
};
_root.more_btn.onRelease = function () {
click_snd.start();
getURL ("http://www.armorgames.com", "_blank");
};
_root.next_btn.onRelease = function () {
if (mus_now < (mus_list.length - 1)) {
mus_now++;
} else {
mus_now = 0;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
_root.prev_btn.onRelease = function () {
if (mus_now > 0) {
mus_now--;
} else {
mus_now = mus_list.length - 1;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
mute_btn.onRelease = function () {
if (mute) {
bcg_mus.start(2, 65535);
this.gotoAndStop(1);
mute = false;
} else {
stopAllSounds();
this.gotoAndStop(2);
mute = true;
}
};
Frame 5
Deck = function () {
this.suits = ["c", "d", "s", "h"];
this.cards = [];
var _local4 = 0;
while (_local4 < 6) {
var _local2 = 0;
while (_local2 < 4) {
var _local3 = 2;
while (_local3 <= 10) {
this.cards.push(_local3 + this.suits[_local2]);
_local3++;
}
this.cards.push("J" + this.suits[_local2]);
this.cards.push("Q" + this.suits[_local2]);
this.cards.push("K" + this.suits[_local2]);
this.cards.push("A" + this.suits[_local2]);
_local2++;
}
_local4++;
}
};
Player = function () {
this.hand = [];
};
Deck.prototype.dealFrom = function () {
return(this.cards.shift());
};
Array.prototype.shuffle = function () {
var _local2 = 0;
while (_local2 < this.length) {
this.push(this.splice(random(_local2), 1));
_local2++;
}
};
_global.setMenu = function (a, b, c, d, e, f, g, h) {
menu.deal_btn._visible = a;
menu.repeate_btn._visible = b;
menu.split_btn._visible = c;
menu.double_btn._visible = d;
menu.stand_btn._visible = e;
menu.hit_btn._visible = f;
menu.yes_btn._visible = g;
menu.no_btn._visible = h;
};
_global.setChips = function (a, b, c, d, e) {
chip_blue_btn.enabled = a;
chip_red_btn.enabled = b;
chip_green_btn.enabled = c;
chip_black_btn.enabled = d;
chip_violet_btn.enabled = e;
};
_global.revealFirst = function () {
place_p1.card_0.removeMovieClip();
attachCard("place_p1", p1.hand[0], 0, 0);
place_p1["card_" + p1_level].swapDepths(0);
total_p1 = checkTotal("p1", 0);
};
_global.attachCard = function (place, card, xx, yy, neg) {
var _local3 = _root[place].getNextHighestDepth();
card = _root[place].attachMovie(card, "card_" + _local3, _local3);
card._width = 70;
card._height = 95.5;
card._x = xx;
card._y = yy;
if (neg) {
card.swapDepths(p0_level0 + 1);
}
};
_global.getPrice = function (card) {
card = String(card);
switch (card.charAt(0)) {
case "1" :
case "J" :
case "Q" :
case "K" :
return(10);
case "A" :
return(1);
}
return(Number(card.charAt(0)));
};
_global.checkWin = function () {
if (total1_p0 > 21) {
endGame(3);
} else if (total_p1 > 21) {
endGame(4);
} else if (total1_p0 > total_p1) {
endGame(5);
} else if (total1_p0 < total_p1) {
endGame(6);
} else if (total1_p0 == total_p1) {
endGame(7);
}
};
_global.checkTotal = function (player, dealer, part) {
if (part != undefined) {
var _local6 = 0;
var _local2 = dealer;
while (_local2 < _root[(player + "_level") + part]) {
_local6 = _local6 + getPrice(_root[player].hand[part][_local2]);
if (_root[player].hand[part][_local2].charAt(0) == "A") {
var _local4 = true;
}
_local2++;
}
if (_local4 && (_local6 <= 11)) {
_local6 = _local6 + 10;
}
} else {
var _local6 = 0;
var _local2 = dealer;
while (_local2 < _root[player + "_level"]) {
_local6 = _local6 + getPrice(_root[player].hand[_local2]);
if (_root[player].hand[_local2].charAt(0) == "A") {
var _local4 = true;
}
_local2++;
}
if (_local4 && (_local6 <= 11)) {
_local6 = _local6 + 10;
}
if (dealer && (_local4)) {
setMenu(0, 0, 0, 0, 0, 0, 1, 1);
res_table.res = "Insurance?";
res_table._visible = true;
menu.yes_btn.onRelease = function () {
click_snd.start();
insurance = true;
res_table._visible = false;
bank = bank - (bet / 2);
bank_txt = int(bank) + " $";
bet = bet * 1.5;
bet_txt = int(bet) + " $";
if (checkTotal("p1", 0) == 21) {
bank = bank + bet;
bank_txt = int(bank) + " $";
endGame(2);
} else {
bet = bet - (bet / 3);
bet_txt = int(bet) + " $";
if (bank >= bet) {
var _local2 = 1;
} else {
var _local2 = 0;
}
if (getPrice(_root[player].hand[0]) == getPrice(_root[player].hand[1])) {
var _local3 = 1;
} else {
var _local3 = 0;
}
setMenu(0, 0, _local3, _local2, 1, 1, 0, 0);
}
};
menu.no_btn.onRelease = function () {
click_snd.start();
insurance = false;
res_table._visible = false;
if (bank >= bet) {
var _local2 = 1;
} else {
var _local2 = 0;
}
if (getPrice(_root[player].hand[0]) == getPrice(_root[player].hand[1])) {
var _local3 = 1;
} else {
var _local3 = 0;
}
setMenu(0, 0, _local3, _local2, 1, 1, 0, 0);
};
}
}
return(_local6);
};
_global.endGame = function (end) {
switch (end) {
case 1 :
revealFirst();
bank = bank + (bet * 2.5);
bank_txt = int(bank) + " $";
res_table.res = "Blackjack!";
break;
case 2 :
revealFirst();
res_table.res = "Dealer has Blackjack!";
break;
case 3 :
res_table.res = "You Busted!";
break;
case 4 :
bank = bank + (bet * 2);
bank_txt = int(bank) + " $";
res_table.res = "Dealer Busts!";
break;
case 5 :
bank = bank + (bet * 2);
bank_txt = int(bank) + " $";
res_table.res = "You Win!";
break;
case 6 :
res_table.res = "You Lose!";
break;
case 7 :
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "Push!";
}
bet = 0;
bet_txt = bet + " $";
setMenu(0, 0, 0, 0, 0, 0, 0, 0);
res_table._visible = true;
res_table.onRelease = function () {
click_snd.start();
if (deck_arr.cards.length < 26) {
deck_arr = new Deck();
deck_arr.cards.shuffle();
}
p0_level = 0;
p1_level = 0;
total1_p0 = "";
total_p1 = "";
p0.hand = [];
p1.hand = [];
if (bank >= last_bet) {
var _local2 = 1;
} else {
var _local2 = 0;
}
setMenu(0, _local2, 0, 0, 0, 0, 0, 0);
setChips(1, 1, 1, 1, 1);
arrow_mc._visible = false;
for (var _local1 in place_p0) {
place_p0[_local1].removeMovieClip();
}
for (var _local1 in place_p1) {
place_p1[_local1].removeMovieClip();
}
res_table.res = "Place Your Bets!";
if (((getTimer() - time) >= 300000) && (count_scr)) {
count_scr = false;
scr_table.score = bank;
scr_table._visible = true;
}
delete res_table.onRelease;
};
if (bank < 1) {
res_table.res = "Bankrupt!";
res_table.onRelease = function () {
click_snd.start();
gotoAndStop ("menu");
};
}
};
var deck_arr = new Deck();
deck_arr.cards.shuffle();
var players_cnt = 2;
var p0_level = 0;
var p1_level = 0;
var bank = 1000;
var bet = 0;
var max_bet = 500;
var min_bet = 1;
var split = false;
var count_scr = true;
var time = getTimer();
p0 = new Player();
p1 = new Player();
total0_p0 = "";
total1_p0 = "";
total_p1 = "";
bet_txt = bet + " $";
bank_txt = bank + " $";
ab20_09 = new LoadVars();
ab20_09.c = 346;
ab20_09.v = "FEVMEY";
res_table.useHandCursor = false;
setMenu(0, 0, 0, 0, 0, 0, 0, 0);
arrow_mc._visible = false;
scr_table._visible = false;
res_table.res = "Place Your Bets!";
var chip_snd = new Sound();
chip_snd.attachSound("chip_snd");
menu.deal_btn.onRelease = function () {
click_snd.start();
last_bet = bet;
p0_level = p0_level + 2;
p1_level = p1_level + 2;
p0.hand.push(deck_arr.dealFrom());
p1.hand.push(deck_arr.dealFrom());
p0.hand.push(deck_arr.dealFrom());
p1.hand.push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[0], 0, 0);
attachCard("place_p1", "back", 0, 0);
attachCard("place_p0", p0.hand[1], 20, 0);
attachCard("place_p1", p1.hand[1], 20, 0);
if (bank >= bet) {
var _local1 = 1;
} else {
var _local1 = 0;
}
if (getPrice(p0.hand[0]) == getPrice(p0.hand[1])) {
var _local2 = 1;
} else {
var _local2 = 0;
}
setMenu(0, 0, _local2, _local1, 1, 1, 0, 0);
setChips(0, 0, 0, 0, 0);
arrow_mc._visible = true;
total1_p0 = checkTotal("p0", 0);
total_p1 = checkTotal("p1", 1);
if (total1_p0 == 21) {
endGame(1);
} else if (checkTotal("p1", 0) == 21) {
if (p1.hand[1].charAt(0) != "A") {
endGame(2);
}
}
};
menu.stand_btn.onRelease = function () {
click_snd.start();
if (!split) {
revealFirst();
while (total_p1 < 17) {
p1.hand.push(deck_arr.dealFrom());
attachCard("place_p1", p1.hand[p1_level], p1_level * 20, 0);
p1_level++;
total_p1 = checkTotal("p1", 0);
}
checkWin();
} else if (!p0_slevel) {
arrow_mc._y = arrow_mc._y + 20;
p0_slevel = 1;
} else {
arrow_mc._y = arrow_mc._y - 20;
revealFirst();
while (total_p1 < 17) {
p1.hand.push(deck_arr.dealFrom());
attachCard("place_p1", p1.hand[p1_level], p1_level * 20, 0);
p1_level++;
total_p1 = checkTotal("p1", 0);
}
setMenu(0, 0, 0, 0, 0, 0, 0, 0);
total0_p0 = checkTotal("p0", 0, 0);
if (total0_p0 > 21) {
res_table.res = "You Busted!";
} else if (total_p1 > 21) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "Dealer Busts!";
} else if (total0_p0 > total_p1) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "You Win!";
} else if (total0_p0 < total_p1) {
res_table.res = "You Lose!";
} else if (total0_p0 == total_p1) {
bank = bank + (bet / 2);
bank_txt = int(bank) + " $";
res_table.res = "Push!";
}
res_table._visible = true;
res_table.onRelease = function () {
click_snd.start();
arrow_mc._y = arrow_mc._y + 20;
total1_p0 = checkTotal("p0", 0, 1);
if (total1_p0 > 21) {
res_table.res = "You Busted!";
} else if (total_p1 > 21) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "Dealer Busts!";
} else if (total1_p0 > total_p1) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "You Win!";
} else if (total1_p0 < total_p1) {
res_table.res = "You Lose!";
} else if (total1_p0 == total_p1) {
bank = bank + (bet / 2);
bank_txt = int(bank) + " $";
res_table.res = "Push!";
}
bet = 0;
bet_txt = bet + " $";
res_table.onRelease = function () {
click_snd.start();
if (deck_arr.cards.length < 26) {
deck_arr = new Deck();
deck_arr.cards.shuffle();
}
p0_level = 0;
p1_level = 0;
total0_p0 = "";
total1_p0 = "";
total_p1 = "";
split = false;
p0.hand = [];
p1.hand = [];
if (bank >= last_bet) {
var _local2 = 1;
} else {
var _local2 = 0;
}
setMenu(0, _local2, 0, 0, 0, 0, 0, 0);
setChips(1, 1, 1, 1, 1);
arrow_mc._visible = false;
for (var _local1 in place_p0) {
place_p0[_local1].removeMovieClip();
}
for (var _local1 in place_p1) {
place_p1[_local1].removeMovieClip();
}
res_table.res = "Place Your Bets!";
if (((getTimer() - time) >= 300000) && (count_scr)) {
count_scr = false;
scr_table.score = bank;
scr_table._visible = true;
}
delete res_table.onRelease;
};
};
if (bank < 1) {
res_table.res = "Bankrupt!";
res_table.onRelease = function () {
click_snd.start();
gotoAndStop ("menu");
};
}
}
};
menu.hit_btn.onRelease = function () {
click_snd.start();
if (!split) {
setMenu(0, 0, 0, 0, 1, 1, 0, 0);
p0.hand.push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[p0_level], p0_level * 20, 0);
p0_level++;
total1_p0 = checkTotal("p0", 0);
if (total1_p0 > 21) {
endGame(3);
}
} else if (!p0_slevel) {
p0.hand[0].push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[0][p0_level0], p0_level0 * 20, -20, 1);
p0_level0++;
total0_p0 = checkTotal("p0", 0, 0);
if (total0_p0 > 21) {
arrow_mc._y = arrow_mc._y + 20;
p0_slevel = 1;
}
} else {
p0.hand[1].push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[1][p0_level1], p0_level1 * 20, 0);
p0_level1++;
total1_p0 = checkTotal("p0", 0, 1);
if (total1_p0 > 21) {
revealFirst();
while (total_p1 < 17) {
p1.hand.push(deck_arr.dealFrom());
attachCard("place_p1", p1.hand[p1_level], p1_level * 20, 0);
p1_level++;
total_p1 = checkTotal("p1", 0);
}
arrow_mc._y = arrow_mc._y - 20;
setMenu(0, 0, 0, 0, 0, 0, 0, 0);
total0_p0 = checkTotal("p0", 0, 0);
if (total0_p0 > 21) {
res_table.res = "You Busted!";
} else if (total_p1 > 21) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "Dealer Busts!";
} else if (total0_p0 > total_p1) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "You Win!";
} else if (total0_p0 < total_p1) {
res_table.res = "You Lose!";
} else if (total0_p0 == total_p1) {
bank = bank + (bet / 2);
bank_txt = int(bank) + " $";
res_table.res = "Push!";
}
res_table._visible = true;
res_table.onRelease = function () {
click_snd.start();
arrow_mc._y = arrow_mc._y + 20;
total1_p0 = checkTotal("p0", 0, 1);
if (total1_p0 > 21) {
res_table.res = "You Busted!";
} else if (total_p1 > 21) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "Dealer Busts!";
} else if (total1_p0 > total_p1) {
bank = bank + bet;
bank_txt = int(bank) + " $";
res_table.res = "You Win!";
} else if (total1_p0 < total_p1) {
res_table.res = "You Lose!";
} else if (total1_p0 == total_p1) {
bank = bank + (bet / 2);
bank_txt = int(bank) + " $";
res_table.res = "Push!";
}
bet = 0;
bet_txt = bet + " $";
res_table.onRelease = function () {
click_snd.start();
if (deck_arr.cards.length < 26) {
deck_arr = new Deck();
deck_arr.cards.shuffle();
}
p0_level = 0;
p1_level = 0;
total0_p0 = "";
total1_p0 = "";
total_p1 = "";
split = false;
p0.hand = [];
p1.hand = [];
if (bank >= last_bet) {
var _local2 = 1;
} else {
var _local2 = 0;
}
setMenu(0, _local2, 0, 0, 0, 0, 0, 0);
setChips(1, 1, 1, 1, 1);
arrow_mc._visible = false;
for (var _local1 in place_p0) {
place_p0[_local1].removeMovieClip();
}
for (var _local1 in place_p1) {
place_p1[_local1].removeMovieClip();
}
res_table.res = "Place Your Bets!";
if (((getTimer() - time) >= 300000) && (count_scr)) {
count_scr = false;
scr_table.score = bank;
scr_table._visible = true;
}
delete res_table.onRelease;
};
};
}
if (bank < 1) {
res_table.res = "Bankrupt!";
res_table.onRelease = function () {
click_snd.start();
gotoAndStop ("menu");
};
}
}
};
menu.double_btn.onRelease = function () {
click_snd.start();
p0.hand.push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[p0_level], p0_level * 20, 0);
p0_level++;
total1_p0 = checkTotal("p0", 0);
bank = bank - bet;
bet = bet * 2;
bet_txt = bet + " $";
bank_txt = bank + " $";
if (total1_p0 > 21) {
endGame(3);
}
place_p1.card_0.removeMovieClip();
attachCard("place_p1", p1.hand[0], 0, 0);
place_p1["card_" + p1_level].swapDepths(0);
total_p1 = checkTotal("p1", 0);
while (total_p1 < 17) {
p1.hand.push(deck_arr.dealFrom());
attachCard("place_p1", p1.hand[p1_level], p1_level * 20, 0);
p1_level++;
total_p1 = checkTotal("p1", 0);
}
checkWin();
};
menu.repeate_btn.onRelease = function () {
click_snd.start();
bet = last_bet;
bet_txt = bet + " $";
bank = bank - last_bet;
bank_txt = bank + " $";
res_table._visible = false;
menu.deal_btn.onRelease();
};
menu.split_btn.onRelease = function () {
click_snd.start();
split = true;
place_p0.card_0._y = place_p0.card_0._y - 20;
place_p0.card_1._x = place_p0.card_1._x - 20;
setMenu(0, 0, 0, 0, 1, 1, 0, 0);
p0_level0 = 1;
p0_level1 = 1;
p0.hand = [[p0.hand[0]], [p0.hand[1]]];
p0.hand[0].push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[0][p0_level0], p0_level0 * 20, -20);
p0_level0++;
p0.hand[1].push(deck_arr.dealFrom());
attachCard("place_p0", p0.hand[1][p0_level1], p0_level1 * 20, 0);
p0_level1++;
total1_p0 = checkTotal("p0", 0);
if (total1_p0 > 21) {
endGame(3);
}
total0_p0 = checkTotal("p0", 0, 0);
total1_p0 = checkTotal("p0", 0, 1);
arrow_mc._y = arrow_mc._y - 20;
p0_slevel = 0;
};
chip_blue_btn.onRelease = function () {
if ((bank >= 1) && (bet <= (max_bet - 1))) {
chip_snd.start();
bet = bet + 1;
bet_txt = bet + " $";
bank = bank - 1;
bank_txt = bank + " $";
res_table._visible = false;
setMenu(1, 0, 0, 0, 0, 0, 0, 0);
}
};
chip_red_btn.onRelease = function () {
if ((bank >= 5) && (bet <= (max_bet - 5))) {
chip_snd.start();
bet = bet + 5;
bet_txt = bet + " $";
bank = bank - 5;
bank_txt = bank + " $";
res_table._visible = false;
setMenu(1, 0, 0, 0, 0, 0, 0, 0);
}
};
chip_green_btn.onRelease = function () {
if ((bank >= 25) && (bet <= (max_bet - 25))) {
chip_snd.start();
bet = bet + 25;
bet_txt = bet + " $";
bank = bank - 25;
bank_txt = bank + " $";
res_table._visible = false;
setMenu(1, 0, 0, 0, 0, 0, 0, 0);
}
};
chip_black_btn.onRelease = function () {
if ((bank >= 100) && (bet <= (max_bet - 100))) {
chip_snd.start();
bet = bet + 100;
bet_txt = bet + " $";
bank = bank - 100;
bank_txt = bank + " $";
res_table._visible = false;
setMenu(1, 0, 0, 0, 0, 0, 0, 0);
}
};
chip_violet_btn.onRelease = function () {
if ((bank >= 500) && (bet <= (max_bet - 500))) {
chip_snd.start();
bet = bet + 500;
bet_txt = bet + " $";
bank = bank - 500;
bank_txt = bank + " $";
res_table._visible = false;
setMenu(1, 0, 0, 0, 0, 0, 0, 0);
}
};
armor_logo.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
scr_table.submit_btn.onRelease = function () {
ab20_09.z = scr_table.name_txt;
ab20_09.x = ab20.encodeNum(scr_table.score);
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
scr_table._visible = false;
};
scr_table.cancel_btn.onRelease = function () {
scr_table._visible = false;
};
_root.next_btn.onRelease = function () {
if (mus_now < (mus_list.length - 1)) {
mus_now++;
} else {
mus_now = 0;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
_root.prev_btn.onRelease = function () {
if (mus_now > 0) {
mus_now--;
} else {
mus_now = mus_list.length - 1;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
mute_btn.onRelease = function () {
if (mute) {
bcg_mus.start(2, 65535);
this.gotoAndStop(1);
mute = false;
} else {
stopAllSounds();
this.gotoAndStop(2);
mute = true;
}
};
exit_btn.onRelease = function () {
gotoAndStop ("menu");
};
Frame 6
_root.back_btn.useHandCursor = false;
_root.back_btn.onRelease = function () {
click_snd.start();
gotoAndStop ("menu");
};
_root.next_btn.onRelease = function () {
if (mus_now < (mus_list.length - 1)) {
mus_now++;
} else {
mus_now = 0;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
_root.prev_btn.onRelease = function () {
if (mus_now > 0) {
mus_now--;
} else {
mus_now = mus_list.length - 1;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
mute_btn.onRelease = function () {
if (mute) {
bcg_mus.start(2, 65535);
this.gotoAndStop(1);
mute = false;
} else {
stopAllSounds();
this.gotoAndStop(2);
mute = true;
}
};
Frame 7
_root.back_btn.useHandCursor = false;
_root.back_btn.onRelease = function () {
click_snd.start();
gotoAndStop ("menu");
};
logo.onRelease = function () {
getURL ("http://www.fs-studio.eu", "_blank");
};
_root.next_btn.onRelease = function () {
if (mus_now < (mus_list.length - 1)) {
mus_now++;
} else {
mus_now = 0;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
_root.prev_btn.onRelease = function () {
if (mus_now > 0) {
mus_now--;
} else {
mus_now = mus_list.length - 1;
}
bcg_mus.stop();
bcg_mus.attachSound(mus_list[mus_now]);
bcg_mus.start();
mus_txt = "now playing - " + mus_list[mus_now];
};
mute_btn.onRelease = function () {
if (mute) {
bcg_mus.start(2, 65535);
this.gotoAndStop(1);
mute = false;
} else {
stopAllSounds();
this.gotoAndStop(2);
mute = true;
}
};
Instance of Symbol 99 MovieClip "logo" in Frame 7
on (release) {
getURL ("http://www.fs-studio.eu", "_blank");
}
Symbol 230 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 117 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 124 MovieClip Frame 66
_root.gotoAndStop("intro2");
Symbol 129 Button
on (release) {
getURL ("http://www.fs-studio.eu", "_blank");
}
Symbol 130 MovieClip Frame 1
var logo_snd = new Sound();
logo_snd.attachSound("logo_snd");
logo_snd.start();
Symbol 130 MovieClip Frame 23
_root.onEnterFrame = function () {
logo_snd.setVolume(logo_snd.getVolume() - 5);
};
Symbol 130 MovieClip Frame 43
logo_snd.stop();
Symbol 130 MovieClip Frame 50
var bcg_mus = new Sound();
bcg_mus.attachSound("black orpheus");
bcg_mus.start(2, 65535);
_root.gotoAndStop("menu");
Symbol 146 MovieClip Frame 1
stop();