Section 1
//hl_47 (Poker_Play_web_1_fla.hl_47)
package Poker_Play_web_1_fla {
import flash.display.*;
public dynamic class hl_47 extends MovieClip {
public function hl_47(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package Poker_Play_web_1_fla
Section 2
//logo_43 (Poker_Play_web_1_fla.logo_43)
package Poker_Play_web_1_fla {
import flash.display.*;
public dynamic class logo_43 extends MovieClip {
public function logo_43(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Poker_Play_web_1_fla
Section 3
//MainTimeline (Poker_Play_web_1_fla.MainTimeline)
package Poker_Play_web_1_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var back_to_game_btn:GENERIC_RECTANGLE_BTN;
public var score3:WREATH;
public var next_achievement_btn:ARROW_BTN;
public var hp_cityscape:HP_CITYSCAPE;
public var library:LIBRARY;
public var pantheon:PANTHEON;
public var name12:TextField;
public var bet_down_btn:ARROW_BTN;
public var resource_icon:RESOURCE_ICON;
public var pay3:TextField;
public var stone_amount:TextField;
public var marble_amount:TextField;
public var stone_btn:GENERIC_ROUND_BTN;
public var score4:WREATH;
public var tropaeum:TROPAEUM;
public var abroy_ingame_btn:ABROY_INGAME_BTN;
public var name13:TextField;
public var pay10:TextField;
public var pay4:TextField;
public var name1:TextField;
public var gold_amount:TextField;
public var gold_btn:GENERIC_ROUND_BTN;
public var load_game_btn:GENERIC_RECTANGLE_BTN;
public var basilica:BASILICA;
public var name14:TextField;
public var pay11:TextField;
public var bet_amount:BET;
public var menu_btn:GENERIC_ROUND_BTN;
public var pay5:TextField;
public var name2:TextField;
public var marble_btn:GENERIC_ROUND_BTN;
public var help_next_btn:ARROW_BTN;
public var help_btn:GENERIC_RECTANGLE_BTN;
public var curia:CURIA;
public var pay12:TextField;
public var resource_icon_small:RESOURCE_ICON;
public var pay6:TextField;
public var name3:TextField;
public var hold1:HOLD;
public var wood_amount:TextField;
public var wood_btn:GENERIC_ROUND_BTN;
public var website_link:WBSITE_LINK;
public var pay13:TextField;
public var pay7:TextField;
public var name4:TextField;
public var hold2:HOLD;
public var wood_done:DONE;
public var thermae:THERMAE;
public var pay14:TextField;
public var pay8:TextField;
public var name5:TextField;
public var hold3:HOLD;
public var deal_btn:DEAL_BTN;
public var pay9:TextField;
public var name6:TextField;
public var hold4:HOLD;
public var gold_done:DONE;
public var achievement_btn2:GENERIC_ROUND_BTN;
public var arch:ARCH;
public var name7:TextField;
public var hold5:HOLD;
public var c1:CARD;
public var marble_done:DONE;
public var name8:TextField;
public var c2:CARD;
public var odeon:ODEON;
public var name9:TextField;
public var c3:CARD;
public var bg:BG;
public var achievement_btn:GENERIC_RECTANGLE_LONG_BTN;
public var score_bldg1:SCORE_BLDG;
public var achievement_go_back:TextField;
public var target:TextField;
public var bet_up_btn:ARROW_BTN;
public var c4:CARD;
public var abroy_logo:MovieClip;
public var score_bldg2:SCORE_BLDG;
public var c5:CARD;
public var score_bldg3:SCORE_BLDG;
public var wc1:WILD_CARD;
public var ach_page:TextField;
public var score_bldg4:SCORE_BLDG;
public var wc2:WILD_CARD;
public var balance_display:TextField;
public var colosseum:COLOSSEUM;
public var wc3:WILD_CARD;
public var back_to_main_btn:GENERIC_RECTANGLE_BTN;
public var appstore_link:APP_STORE_LINK;
public var new_game_btn:GENERIC_RECTANGLE_BTN;
public var score1:WREATH;
public var domus:DOMUS;
public var wc4:WILD_CARD;
public var name10:TextField;
public var pay1:TextField;
public var stone_done:DONE;
public var score2:WREATH;
public var wc5:WILD_CARD;
public var name11:TextField;
public var won:TextField;
public var pay2:TextField;
public var draw_btn:DRAW_BTN;
public var building:BUILDING;
public var lg_text:TextField;
public var playtinum_splash_anim:PLAYTINUM_SPLASH_ANIM;
public var abroy_splash_timer:Timer;
public var level:int;
public var level_array:Array;
public var level_status:String;
public var wreath_score:Array;
public var resource:String;
public var startDeck:Array;
public var shuffledDeck:Array;
public var card_mc_array:Array;
public var results_value_array:Array;
public var twos:String;
public var twos_count:int;
public var threes:String;
public var fours:String;
public var fives:String;
public var flush_status:String;
public var royal_status:String;
public var seq_length:int;
public var deuces:int;
public var deuces_straight:int;
public var spade_count:int;
public var heart_count:int;
public var diamond_count:int;
public var club_count:int;
public var number3k:int;
public var number2k:int;
public var card_anim_timer:Timer;
public var c1_state:String;
public var c2_state:String;
public var c3_state:String;
public var c4_state:String;
public var c5_state:String;
public var achievement_page_number:int;
public var bet:int;
public var balance:int;
public var win_wood:int;
public var win_gold:int;
public var win_marble:int;
public var win_stone:int;
public var target_wood:int;
public var target_gold:int;
public var target_marble:int;
public var target_stone:int;
public var win_rank:int;
public var win_rank_array:Array;
public var building_resource_array:Array;
public var paytable_array:Array;
public var resource_message_array:Array;
public var building_message_array:Array;
public var text_glow:GlowFilter;
public var white_text_glow:GlowFilter;
public var resource_popup_screen:RESOURCE_POPUP_SCREEN;
public var building_popup_screen:BUILDING_POPUP_SCREEN;
public var intro_message:INTRO_MESSAGE;
public var delete_data_screen:DELETE_DATA_SCREEN;
public var game_state:String;
public var so:SharedObject;
public var deal_sound:DEAL;
public var select_sound:SELECT;
public var keep_sound:KEEP;
public var loop_sound:LOOP;
public var win_sound:WIN;
public var gameloop_soundchannel:SoundChannel;
public var where_from:String;
public var name_array:Array;
public var pays_array:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14);
}
public function goto_title(_arg1:TimerEvent){
abroy_splash_timer.stop();
gotoAndStop("main_screen");
}
public function navigate(_arg1:MouseEvent){
select_sound.play();
switch (_arg1.target){
case new_game_btn:
if (load_game_btn.visible == false){
level = 0;
gotoAndStop("cityscape");
show_intro();
} else {
if ((load_game_btn.visible = true)){
addChild(delete_data_screen);
delete_data_screen.yes_btn.addEventListener(MouseEvent.CLICK, remove_delete_data);
delete_data_screen.no_btn.addEventListener(MouseEvent.CLICK, remove_delete_data);
};
};
break;
case load_game_btn:
load_game_variables_populate();
gotoAndStop("selection_screen");
break;
case help_btn:
gotoAndStop("help1");
break;
case menu_btn:
set_variables();
gotoAndStop("selection_screen");
break;
case achievement_btn:
where_from = "main_screen";
gotoAndStop("achievements");
break;
case achievement_btn2:
where_from = "selection_screen";
gotoAndStop("achievements");
break;
};
}
public function save_game(){
game_state = "saved";
so = SharedObject.getLocal("PP_TRA");
so.data["save_game_state"] = game_state;
so.data["save_balance"] = balance;
so.data["save_level"] = level;
so.data["save_level_status"] = level_status;
so.data["save_win_wood"] = win_wood;
so.data["save_win_gold"] = win_gold;
so.data["save_win_marble"] = win_marble;
so.data["save_win_stone"] = win_stone;
so.data["save_wreath_score"] = wreath_score;
so.flush();
}
public function load_game_variables_populate(){
game_state = so.data["save_game_state"];
balance = so.data["save_balance"];
level = so.data["save_level"];
level_status = so.data["save_level_status"];
win_wood = so.data["save_win_wood"];
win_gold = so.data["save_win_gold"];
win_marble = so.data["save_win_marble"];
win_stone = so.data["save_win_stone"];
wreath_score = so.data["save_wreath_score"];
target_stone = building_resource_array[level_array[level]][2];
target_gold = building_resource_array[level_array[level]][4];
target_wood = building_resource_array[level_array[level]][1];
target_marble = building_resource_array[level_array[level]][3];
}
public function new_game_variables_populate(){
level = 1;
win_wood = 0;
win_gold = 0;
win_marble = 0;
win_stone = 0;
level_status = "off";
balance = building_resource_array[level_array[level]][0];
target_stone = building_resource_array[level_array[level]][2];
target_gold = building_resource_array[level_array[level]][4];
target_wood = building_resource_array[level_array[level]][1];
target_marble = building_resource_array[level_array[level]][3];
wreath_score = ["wreath_score", 6, 6, 6, 6, 6, 6, 6, 6, 6, 6];
trace(level, balance);
}
public function goto_abroy(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://www.abroy.com");
navigateToURL(_local2, "_blank");
}
public function goto_appstore(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://itunes.apple.com/us/app/poker-play-4-in-1-the-roman/id467587550?mt=8");
navigateToURL(_local2, "_blank");
}
public function back_to_main_menu(_arg1:MouseEvent){
select_sound.play();
switch (_arg1.currentTarget){
case back_to_game_btn:
back_to_game_btn.removeEventListener(MouseEvent.CLICK, back_to_main_menu);
gotoAndStop(where_from);
break;
case back_to_main_btn:
back_to_main_btn.removeEventListener(MouseEvent.CLICK, back_to_main_menu);
gotoAndStop("main_screen");
break;
};
}
public function remove_delete_data(_arg1:MouseEvent){
switch (_arg1.currentTarget){
case delete_data_screen.yes_btn:
removeChild(delete_data_screen);
level = 0;
gotoAndStop("cityscape");
show_intro();
break;
case delete_data_screen.no_btn:
removeChild(delete_data_screen);
break;
};
delete_data_screen.yes_btn.removeEventListener(MouseEvent.CLICK, remove_delete_data);
delete_data_screen.no_btn.removeEventListener(MouseEvent.CLICK, remove_delete_data);
}
public function help_navigate(_arg1:MouseEvent){
switch (currentLabel){
case "help1":
gotoAndStop("help2");
break;
case "help2":
gotoAndStop("help3");
break;
case "help3":
gotoAndStop("help4");
break;
case "help4":
gotoAndStop("main_screen");
break;
};
}
public function initialise_selection_screen(){
if (win_stone < target_stone){
stone_btn.addEventListener(MouseEvent.CLICK, populate_data);
target_stone = building_resource_array[level_array[level]][2];
stone_amount.text = target_stone.toString();
stone_amount.mouseEnabled = false;
stone_done.visible = false;
} else {
stone_done.visible = true;
};
if (win_gold < target_gold){
gold_btn.addEventListener(MouseEvent.CLICK, populate_data);
target_gold = building_resource_array[level_array[level]][4];
gold_amount.text = target_gold.toString();
gold_amount.mouseEnabled = false;
gold_done.visible = false;
} else {
gold_done.visible = true;
};
if (win_wood < target_wood){
wood_btn.addEventListener(MouseEvent.CLICK, populate_data);
target_wood = building_resource_array[level_array[level]][1];
wood_amount.text = target_wood.toString();
wood_amount.mouseEnabled = false;
wood_done.visible = false;
} else {
wood_done.visible = true;
};
if (win_marble < target_marble){
marble_btn.addEventListener(MouseEvent.CLICK, populate_data);
target_marble = building_resource_array[level_array[level]][3];
marble_amount.text = target_marble.toString();
marble_amount.mouseEnabled = false;
marble_done.visible = false;
} else {
marble_done.visible = true;
};
}
public function start_new_level(_arg1){
balance = building_resource_array[level_array[_arg1]][0];
win_stone = 0;
win_gold = 0;
win_wood = 0;
win_marble = 0;
save_game();
initialise_selection_screen();
}
public function populate_data(_arg1:MouseEvent){
select_sound.play();
switch (_arg1.target){
case wood_btn:
resource = "wood";
show_resource_popup_screen(win_wood, target_wood, "start");
break;
case stone_btn:
resource = "stone";
show_resource_popup_screen(win_stone, target_stone, "start");
break;
case marble_btn:
resource = "marble";
show_resource_popup_screen(win_marble, target_marble, "start");
break;
case gold_btn:
resource = "gold";
show_resource_popup_screen(win_gold, target_gold, "start");
break;
};
gotoAndStop("game_play");
}
public function show_resource_popup_screen(_arg1, _arg2, _arg3){
addChild(resource_popup_screen);
resource_popup_screen.addEventListener(MouseEvent.CLICK, close_resource_popup_screen);
resource_popup_screen.icon.gotoAndStop(resource);
if (_arg3 == "start"){
resource_popup_screen.message.text = resource_message_array[resource][0].toString();
} else {
if (_arg3 == "end"){
resource_popup_screen.message.text = resource_message_array[resource][1].toString();
};
};
resource_popup_screen.won.text = _arg1.toString();
resource_popup_screen.target.text = _arg2.toString();
}
public function close_resource_popup_screen(_arg1:MouseEvent){
select_sound.play();
resource_popup_screen.removeEventListener(MouseEvent.CLICK, close_resource_popup_screen);
removeChild(resource_popup_screen);
if ((((((((win_stone >= target_stone)) && ((win_gold >= target_gold)))) && ((win_wood >= target_wood)))) && ((win_marble >= target_marble)))){
trace(balance);
trace(building_resource_array[level_array[level]][0]);
trace((balance / building_resource_array[level_array[level]][0]));
level_status = "off";
if (((((balance / building_resource_array[level_array[level]][0]) <= 0.05)) && (((balance / building_resource_array[level_array[level]][0]) > 0)))){
trace("debug");
wreath_score[level] = 6;
} else {
if (((((balance / building_resource_array[level_array[level]][0]) <= 0.1)) && (((balance / building_resource_array[level_array[level]][0]) > 0.05)))){
trace("debug");
wreath_score[level] = 1;
} else {
if (((((balance / building_resource_array[level_array[level]][0]) <= 0.15)) && (((balance / building_resource_array[level_array[level]][0]) > 0.1)))){
trace("debug");
wreath_score[level] = 2;
} else {
if (((((balance / building_resource_array[level_array[level]][0]) <= 0.2)) && (((balance / building_resource_array[level_array[level]][0]) > 0.15)))){
trace("debug");
wreath_score[level] = 3;
} else {
if (((((balance / building_resource_array[level_array[level]][0]) <= 0.25)) && (((balance / building_resource_array[level_array[level]][0]) > 0.2)))){
trace("debug");
wreath_score[level] = 4;
} else {
if ((balance / building_resource_array[level_array[level]][0]) > 0.25){
trace("debug");
trace(level);
trace(wreath_score[level]);
wreath_score[level] = 5;
};
};
};
};
};
};
level = (level + 1);
save_game();
gotoAndStop("cityscape");
};
}
public function show_building_popup_screen(_arg1){
addChild(building_popup_screen);
building_popup_screen.addEventListener(MouseEvent.CLICK, close_building_popup_screen);
if (_arg1 == "start"){
building_popup_screen.building_name.text = building_message_array[level][0].toString();
building_popup_screen.building_info.text = building_message_array[level][1].toString();
} else {
if (_arg1 == "end"){
building_popup_screen.building_name.text = building_message_array[level][0].toString();
building_popup_screen.building_info.text = "YOU FAILED IN YOUR TASK\n TRY AGAIN";
};
};
building_popup_screen.building_funds.text = building_resource_array[level_array[level]][0].toString();
}
public function close_building_popup_screen(_arg1:MouseEvent){
select_sound.play();
building_popup_screen.removeEventListener(MouseEvent.CLICK, close_building_popup_screen);
removeChild(building_popup_screen);
if (balance <= 0){
start_new_level(level);
};
}
public function initialise_deal_btn(){
draw_btn.visible = false;
deal_btn.visible = true;
deal_btn.addEventListener(MouseEvent.CLICK, deal_cards);
bet_up_btn.addEventListener(MouseEvent.CLICK, adjust_bet);
bet_down_btn.addEventListener(MouseEvent.CLICK, adjust_bet);
menu_btn.addEventListener(MouseEvent.CLICK, navigate);
update_score(resource);
initialise_gui();
}
public function adjust_bet(_arg1:MouseEvent){
select_sound.play();
switch (_arg1.target){
case bet_up_btn:
if (bet < 5){
bet++;
} else {
if (bet == 5){
bet = 1;
};
};
bet_amount.gotoAndStop(bet);
update_paytable(resource);
break;
case bet_down_btn:
if (bet > 1){
bet--;
} else {
if (bet == 1){
bet = 5;
};
};
bet_amount.gotoAndStop(bet);
update_paytable(resource);
break;
};
}
public function initialise_gui(){
bet_amount.gotoAndStop(bet);
bg.gotoAndStop(resource);
resource_icon.gotoAndStop(resource);
resource_icon_small.gotoAndStop(resource);
c1.visible = false;
c2.visible = false;
c3.visible = false;
c4.visible = false;
c5.visible = false;
hold1.visible = false;
hold2.visible = false;
hold3.visible = false;
hold4.visible = false;
hold5.visible = false;
wc1.visible = false;
wc2.visible = false;
wc3.visible = false;
wc4.visible = false;
wc5.visible = false;
update_paytable(resource);
initialise_deck();
}
public function initialise_deck(){
startDeck = [];
shuffledDeck = [];
var _local1 = 1;
while (_local1 < 52) {
startDeck.push(_local1);
if (_local1 >= 51){
shuffle();
};
_local1++;
};
set_variables();
}
public function set_variables(){
twos = "none";
number2k = 0;
twos_count = 0;
threes = "none";
number3k = 0;
seq_length = 0;
flush_status = "off";
royal_status = "off";
spade_count = 0;
heart_count = 0;
diamond_count = 0;
club_count = 0;
results_value_array = ["results", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
win_rank_array = [];
}
public function shuffle(){
var _local1:int;
card_mc_array = [];
while (startDeck.length > 0) {
_local1 = Math.floor((Math.random() * startDeck.length));
shuffledDeck.push(startDeck[_local1]);
startDeck.splice(_local1, 1);
};
card_mc_array = ["card_mcs", c1, c2, c3, c4, c5];
}
public function deal_cards(_arg1:MouseEvent){
select_sound.play();
balance = (balance - bet);
initialise_gui();
deal_btn.removeEventListener(MouseEvent.CLICK, deal_cards);
bet_up_btn.removeEventListener(MouseEvent.CLICK, adjust_bet);
bet_down_btn.removeEventListener(MouseEvent.CLICK, adjust_bet);
menu_btn.removeEventListener(MouseEvent.CLICK, navigate);
card_anim_timer.addEventListener(TimerEvent.TIMER, card_display_anim);
card_anim_timer.start();
c1.addEventListener(MouseEvent.CLICK, hold_card);
c2.addEventListener(MouseEvent.CLICK, hold_card);
c3.addEventListener(MouseEvent.CLICK, hold_card);
c4.addEventListener(MouseEvent.CLICK, hold_card);
c5.addEventListener(MouseEvent.CLICK, hold_card);
}
public function card_display_anim(_arg1:TimerEvent){
if (c1.visible == false){
deal_sound.play();
c1.visible = true;
c1.gotoAndStop(resource);
c1_state = "closed";
} else {
if (c2.visible == false){
deal_sound.play();
c2.visible = true;
c2.gotoAndStop(resource);
c2_state = "closed";
} else {
if (c3.visible == false){
deal_sound.play();
c3.visible = true;
c3.gotoAndStop(resource);
c3_state = "closed";
} else {
if (c4.visible == false){
deal_sound.play();
c4.visible = true;
c4.gotoAndStop(resource);
c4_state = "closed";
} else {
if (c5.visible == false){
deal_sound.play();
c5.visible = true;
c5.gotoAndStop(resource);
c5_state = "closed";
} else {
if (c1_state == "closed"){
deal_sound.play();
c1.gotoAndStop(shuffledDeck[0]);
shuffledDeck.shift();
c1_state = "open";
} else {
if (c2_state == "closed"){
deal_sound.play();
c2.gotoAndStop(shuffledDeck[0]);
shuffledDeck.shift();
c2_state = "open";
} else {
if (c3_state == "closed"){
deal_sound.play();
c3.gotoAndStop(shuffledDeck[0]);
shuffledDeck.shift();
c3_state = "open";
} else {
if (c4_state == "closed"){
deal_sound.play();
c4.gotoAndStop(shuffledDeck[0]);
shuffledDeck.shift();
c4_state = "open";
} else {
if (c5_state == "closed"){
deal_sound.play();
c5.gotoAndStop(shuffledDeck[0]);
shuffledDeck.shift();
c5_state = "open";
} else {
if ((((((((((((c1_state == "open")) || ((c1_state == "hold")))) && ((((c2_state == "open")) || ((c2_state == "hold")))))) && ((((c3_state == "open")) || ((c3_state == "hold")))))) && ((((c4_state == "open")) || ((c4_state == "hold")))))) && ((((c5_state == "open")) || ((c5_state == "hold")))))){
card_anim_timer.stop();
prepare_results_value_array();
if (resource == "gold"){
if ((((((((c1.currentFrame == 2)) || ((c1.currentFrame == 15)))) || ((c1.currentFrame == 28)))) || ((c1.currentFrame == 41)))){
wc1.visible = true;
} else {
wc1.visible = false;
};
if ((((((((c2.currentFrame == 2)) || ((c2.currentFrame == 15)))) || ((c2.currentFrame == 28)))) || ((c2.currentFrame == 41)))){
wc2.visible = true;
} else {
wc2.visible = false;
};
if ((((((((c3.currentFrame == 2)) || ((c3.currentFrame == 15)))) || ((c3.currentFrame == 28)))) || ((c3.currentFrame == 41)))){
wc3.visible = true;
} else {
wc3.visible = false;
};
if ((((((((c4.currentFrame == 2)) || ((c4.currentFrame == 15)))) || ((c4.currentFrame == 28)))) || ((c4.currentFrame == 41)))){
wc4.visible = true;
} else {
wc4.visible = false;
};
if ((((((((c5.currentFrame == 2)) || ((c5.currentFrame == 15)))) || ((c5.currentFrame == 28)))) || ((c5.currentFrame == 41)))){
wc5.visible = true;
} else {
wc5.visible = false;
};
};
if (deal_btn.visible == true){
deal_btn.visible = false;
draw_btn.visible = true;
draw_btn.addEventListener(MouseEvent.CLICK, draw_cards);
} else {
if (draw_btn.visible == true){
draw_btn.visible = false;
deal_btn.visible = true;
card_anim_timer.removeEventListener(TimerEvent.TIMER, card_display_anim);
deal_btn.addEventListener(MouseEvent.CLICK, deal_cards);
bet_up_btn.addEventListener(MouseEvent.CLICK, adjust_bet);
bet_down_btn.addEventListener(MouseEvent.CLICK, adjust_bet);
menu_btn.addEventListener(MouseEvent.CLICK, navigate);
update_score(resource);
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function hold_card(_arg1:MouseEvent){
keep_sound.play();
switch (_arg1.target){
case c1:
if (c1_state == "open"){
c1_state = "hold";
hold1.visible = true;
check_if_all_held();
} else {
if (c1_state == "hold"){
c1_state = "open";
hold1.visible = false;
};
};
break;
case c2:
if (c2_state == "open"){
c2_state = "hold";
hold2.visible = true;
check_if_all_held();
} else {
if (c2_state == "hold"){
c2_state = "open";
hold2.visible = false;
};
};
break;
case c3:
if (c3_state == "open"){
c3_state = "hold";
hold3.visible = true;
check_if_all_held();
} else {
if (c3_state == "hold"){
c3_state = "open";
hold3.visible = false;
};
};
break;
case c4:
if (c4_state == "open"){
c4_state = "hold";
hold4.visible = true;
check_if_all_held();
} else {
if (c4_state == "hold"){
c4_state = "open";
hold4.visible = false;
};
};
break;
case c5:
if (c5_state == "open"){
c5_state = "hold";
hold5.visible = true;
check_if_all_held();
} else {
if (c5_state == "hold"){
c5_state = "open";
hold5.visible = false;
};
};
break;
};
}
public function check_if_all_held(){
if ((((((((((c1_state == "hold")) && ((c2_state == "hold")))) && ((c3_state == "hold")))) && ((c4_state == "hold")))) && ((c5_state == "hold")))){
draw_btn.visible = false;
deal_btn.visible = true;
card_anim_timer.removeEventListener(TimerEvent.TIMER, card_display_anim);
deal_btn.addEventListener(MouseEvent.CLICK, deal_cards);
bet_up_btn.addEventListener(MouseEvent.CLICK, adjust_bet);
bet_down_btn.addEventListener(MouseEvent.CLICK, adjust_bet);
menu_btn.addEventListener(MouseEvent.CLICK, navigate);
update_score(resource);
};
}
public function draw_cards(_arg1:MouseEvent){
select_sound.play();
c1.removeEventListener(MouseEvent.CLICK, hold_card);
c2.removeEventListener(MouseEvent.CLICK, hold_card);
c3.removeEventListener(MouseEvent.CLICK, hold_card);
c4.removeEventListener(MouseEvent.CLICK, hold_card);
c5.removeEventListener(MouseEvent.CLICK, hold_card);
draw_btn.removeEventListener(MouseEvent.CLICK, draw_cards);
set_variables();
if (c1_state == "open"){
c1.visible = false;
};
if (c2_state == "open"){
c2.visible = false;
};
if (c3_state == "open"){
c3.visible = false;
};
if (c4_state == "open"){
c4.visible = false;
};
if (c5_state == "open"){
c5.visible = false;
};
card_anim_timer.start();
}
public function prepare_results_value_array(){
var _local1 = 1;
while (_local1 <= 5) {
if ((((((((card_mc_array[_local1].currentFrame == 1)) || ((card_mc_array[_local1].currentFrame == 14)))) || ((card_mc_array[_local1].currentFrame == 27)))) || ((card_mc_array[_local1].currentFrame == 40)))){
results_value_array[1] = (results_value_array[1] + 1);
results_value_array[14] = (results_value_array[14] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 2)) || ((card_mc_array[_local1].currentFrame == 15)))) || ((card_mc_array[_local1].currentFrame == 28)))) || ((card_mc_array[_local1].currentFrame == 41)))){
results_value_array[2] = (results_value_array[2] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 3)) || ((card_mc_array[_local1].currentFrame == 16)))) || ((card_mc_array[_local1].currentFrame == 29)))) || ((card_mc_array[_local1].currentFrame == 42)))){
results_value_array[3] = (results_value_array[3] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 4)) || ((card_mc_array[_local1].currentFrame == 17)))) || ((card_mc_array[_local1].currentFrame == 30)))) || ((card_mc_array[_local1].currentFrame == 43)))){
results_value_array[4] = (results_value_array[4] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 5)) || ((card_mc_array[_local1].currentFrame == 18)))) || ((card_mc_array[_local1].currentFrame == 31)))) || ((card_mc_array[_local1].currentFrame == 44)))){
results_value_array[5] = (results_value_array[5] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 6)) || ((card_mc_array[_local1].currentFrame == 19)))) || ((card_mc_array[_local1].currentFrame == 32)))) || ((card_mc_array[_local1].currentFrame == 45)))){
results_value_array[6] = (results_value_array[6] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 7)) || ((card_mc_array[_local1].currentFrame == 20)))) || ((card_mc_array[_local1].currentFrame == 33)))) || ((card_mc_array[_local1].currentFrame == 46)))){
results_value_array[7] = (results_value_array[7] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 8)) || ((card_mc_array[_local1].currentFrame == 21)))) || ((card_mc_array[_local1].currentFrame == 34)))) || ((card_mc_array[_local1].currentFrame == 47)))){
results_value_array[8] = (results_value_array[8] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 9)) || ((card_mc_array[_local1].currentFrame == 22)))) || ((card_mc_array[_local1].currentFrame == 35)))) || ((card_mc_array[_local1].currentFrame == 48)))){
results_value_array[9] = (results_value_array[9] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 10)) || ((card_mc_array[_local1].currentFrame == 23)))) || ((card_mc_array[_local1].currentFrame == 36)))) || ((card_mc_array[_local1].currentFrame == 49)))){
results_value_array[10] = (results_value_array[10] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 11)) || ((card_mc_array[_local1].currentFrame == 24)))) || ((card_mc_array[_local1].currentFrame == 37)))) || ((card_mc_array[_local1].currentFrame == 50)))){
results_value_array[11] = (results_value_array[11] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 12)) || ((card_mc_array[_local1].currentFrame == 25)))) || ((card_mc_array[_local1].currentFrame == 38)))) || ((card_mc_array[_local1].currentFrame == 51)))){
results_value_array[12] = (results_value_array[12] + 1);
} else {
if ((((((((card_mc_array[_local1].currentFrame == 13)) || ((card_mc_array[_local1].currentFrame == 26)))) || ((card_mc_array[_local1].currentFrame == 39)))) || ((card_mc_array[_local1].currentFrame == 52)))){
results_value_array[13] = (results_value_array[13] + 1);
};
};
};
};
};
};
};
};
};
};
};
};
};
_local1++;
};
suit_count();
}
public function suit_count(){
var _local1 = 1;
while (_local1 <= 5) {
if (resource == "gold"){
if ((((card_mc_array[_local1].currentFrame <= 13)) && (!((card_mc_array[_local1].currentFrame == 2))))){
spade_count++;
} else {
if ((((((card_mc_array[_local1].currentFrame > 13)) && ((card_mc_array[_local1].currentFrame <= 26)))) && (!((card_mc_array[_local1].currentFrame == 15))))){
heart_count++;
} else {
if ((((((card_mc_array[_local1].currentFrame > 26)) && ((card_mc_array[_local1].currentFrame <= 39)))) && (!((card_mc_array[_local1].currentFrame == 28))))){
diamond_count++;
} else {
if ((((((card_mc_array[_local1].currentFrame > 39)) && ((card_mc_array[_local1].currentFrame <= 52)))) && (!((card_mc_array[_local1].currentFrame == 41))))){
club_count++;
};
};
};
};
} else {
if (card_mc_array[_local1].currentFrame <= 13){
spade_count++;
} else {
if ((((card_mc_array[_local1].currentFrame > 13)) && ((card_mc_array[_local1].currentFrame <= 26)))){
heart_count++;
} else {
if ((((card_mc_array[_local1].currentFrame > 26)) && ((card_mc_array[_local1].currentFrame <= 39)))){
diamond_count++;
} else {
if ((((card_mc_array[_local1].currentFrame > 39)) && ((card_mc_array[_local1].currentFrame <= 52)))){
club_count++;
};
};
};
};
};
_local1++;
};
check_result();
}
public function check_result(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
switch (resource){
case "stone":
if ((((((((spade_count == 5)) || ((heart_count == 5)))) || ((diamond_count == 5)))) || ((club_count == 5)))){
flush_status = "on";
};
if ((((((((((results_value_array[13] == 1)) && ((results_value_array[12] == 1)))) && ((results_value_array[11] == 1)))) && ((results_value_array[10] == 1)))) && (results_value_array[1])) == 1){
royal_status = "on";
};
if ((((flush_status == "on")) && ((royal_status == "on")))){
trace("royal flush");
win_rank_array.push(1);
};
if (flush_status == "on"){
trace("flush");
win_rank_array.push(5);
};
_local1 = 1;
while (_local1 <= 14) {
if (results_value_array[_local1] == 3){
trace("3 of a kind");
win_rank_array.push(7);
threes = "yes";
};
if ((((twos == "yes")) && ((threes == "yes")))){
trace("fullhouse");
win_rank_array.push(4);
};
if (results_value_array[_local1] == 4){
trace("4 of a kind");
win_rank_array.push(3);
fours = "yes";
};
if (results_value_array[_local1] == 2){
twos_count++;
twos = "yes";
if (_local1 >= 11){
trace("jacks or better");
win_rank_array.push(9);
};
if ((((twos == "yes")) && ((threes == "yes")))){
trace("fullhouse");
win_rank_array.push(4);
};
};
if (results_value_array[_local1] == 1){
seq_length = (seq_length + 1);
if (seq_length == 5){
trace("straight");
win_rank_array.push(6);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(2);
};
};
};
if ((((results_value_array[_local1] == 0)) && ((seq_length >= 1)))){
seq_length = (seq_length - 1);
};
_local1++;
};
if (results_value_array[1] == 2){
twos_count = (twos_count - 1);
};
if (twos_count == 2){
trace("2 pairs");
win_rank_array.push(8);
};
break;
case "gold":
deuces = results_value_array[2];
if (deuces == 4){
trace("4 deuces");
win_rank_array.push(2);
};
if ((((((((spade_count == 5)) || ((heart_count == 5)))) || ((diamond_count == 5)))) || ((club_count == 5)))){
flush_status = "on";
} else {
if ((((((((((spade_count >= 4)) || ((heart_count >= 4)))) || ((diamond_count >= 4)))) || ((club_count >= 4)))) && ((deuces == 1)))){
flush_status = "on";
} else {
if ((((((((((spade_count >= 3)) || ((heart_count >= 3)))) || ((diamond_count >= 3)))) || ((club_count >= 3)))) && ((deuces == 2)))){
flush_status = "on";
} else {
if ((((((((((spade_count >= 2)) || ((heart_count >= 2)))) || ((diamond_count >= 2)))) || ((club_count >= 2)))) && ((deuces == 3)))){
flush_status = "on";
};
};
};
};
if ((((((((((results_value_array[13] == 1)) && ((results_value_array[12] == 1)))) && ((results_value_array[11] == 1)))) && ((results_value_array[10] == 1)))) && (results_value_array[1])) == 1){
royal_status = "on";
};
if ((((flush_status == "on")) && ((royal_status == "on")))){
trace("natural royal flush");
win_rank_array.push(1);
};
if (flush_status == "on"){
if ((((((((((((results_value_array[13] == 0)) || ((results_value_array[13] == 1)))) && ((((results_value_array[12] == 0)) || ((results_value_array[12] == 1)))))) && ((((results_value_array[11] == 0)) || ((results_value_array[11] == 1)))))) && ((((results_value_array[10] == 0)) || ((results_value_array[10] == 1)))))) && ((((results_value_array[1] == 0)) || ((results_value_array[1] == 1)))))){
if ((((((((results_value_array[1] + results_value_array[10]) + results_value_array[11]) + results_value_array[12]) + results_value_array[13]) == 4)) && ((deuces == 1)))){
trace("wild royal flush");
win_rank_array.push(3);
} else {
if ((((((((results_value_array[1] + results_value_array[10]) + results_value_array[11]) + results_value_array[12]) + results_value_array[13]) == 3)) && ((deuces == 2)))){
trace("wild royal flush");
win_rank_array.push(3);
} else {
if ((((((((results_value_array[1] + results_value_array[10]) + results_value_array[11]) + results_value_array[12]) + results_value_array[13]) == 2)) && ((deuces == 3)))){
trace("wild royal flush");
win_rank_array.push(3);
};
};
};
};
};
if (flush_status == "on"){
trace("flush");
win_rank_array.push(8);
};
_local2 = 1;
while (_local2 <= 14) {
if ((((results_value_array[_local2] == 3)) && (!((_local2 == 2))))){
trace("3 of a kind");
win_rank_array.push(10);
threes = "yes";
number3k = _local2;
if ((((twos == "yes")) || ((twos == "yes1w")))){
if (number3k != number2k){
trace("full house");
win_rank_array.push(7);
};
};
} else {
if ((((((results_value_array[_local2] == 2)) && ((deuces == 1)))) && (!((_local2 == 2))))){
trace("3 of a kind");
win_rank_array.push(10);
threes = "yes1w";
number3k = _local2;
if (twos == "yes"){
if (number3k != number2k){
trace("full house");
win_rank_array.push(7);
};
};
} else {
if ((((((results_value_array[_local2] == 1)) && ((deuces == 2)))) && (!((_local2 == 2))))){
trace("3 of a kind");
win_rank_array.push(10);
threes = "yes2w";
number3k = _local2;
if (twos == "yes"){
if (number3k != number2k){
trace("full house");
win_rank_array.push(7);
};
};
};
};
};
if (results_value_array[_local2] == 4){
trace("4 of a kind");
win_rank_array.push(6);
fours = "yes";
} else {
if ((((results_value_array[_local2] == 3)) && ((deuces == 1)))){
trace("4 of a kind");
win_rank_array.push(6);
fours = "yes";
} else {
if ((((results_value_array[_local2] == 2)) && ((deuces == 2)))){
if (_local2 != 2){
trace("4 of a kind");
win_rank_array.push(6);
fours = "yes";
};
} else {
if ((((results_value_array[_local2] == 1)) && ((deuces == 3)))){
trace("4 of a kind");
win_rank_array.push(6);
fours = "yes";
};
};
};
};
if ((((results_value_array[_local2] == 4)) && ((deuces == 1)))){
trace("5 of a kind");
win_rank_array.push(4);
fives = "yes";
} else {
if ((((results_value_array[_local2] == 3)) && ((deuces == 2)))){
trace("5 of a kind");
win_rank_array.push(4);
fives = "yes";
} else {
if ((((results_value_array[_local2] == 2)) && ((deuces == 3)))){
trace("5 of a kind");
win_rank_array.push(4);
fives = "yes";
} else {
if ((((results_value_array[_local2] == 1)) && ((deuces == 4)))){
trace("5 of a kind");
win_rank_array.push(4);
fives = "yes";
};
};
};
};
if ((((results_value_array[_local2] == 2)) && (!((_local2 == 2))))){
trace("2 of a kind");
twos = "yes";
number2k = _local2;
if ((((((threes == "yes")) || ((threes == "yes1w")))) || ((threes == "yes2w")))){
if (number3k != number2k){
trace("full house");
win_rank_array.push(7);
};
};
} else {
if ((((((results_value_array[_local2] == 1)) && ((deuces == 1)))) && (!((_local2 == 2))))){
trace("2 of a kind");
twos = "yes1w";
number2k = _local2;
if (threes == "yes"){
if (number3k != number2k){
trace("full house");
win_rank_array.push(7);
};
};
};
};
_local2++;
};
if ((((((((((((((((((((((((((results_value_array[1] <= 1)) && ((results_value_array[3] <= 1)))) && ((results_value_array[4] <= 1)))) && ((results_value_array[5] <= 1)))) && ((results_value_array[6] <= 1)))) && ((results_value_array[7] <= 1)))) && ((results_value_array[8] <= 1)))) && ((results_value_array[9] <= 1)))) && ((results_value_array[10] <= 1)))) && ((results_value_array[11] <= 1)))) && ((results_value_array[12] <= 1)))) && ((results_value_array[13] <= 1)))) && ((results_value_array[14] <= 1)))){
if (((((((results_value_array[1] + results_value_array[3]) + results_value_array[4]) + results_value_array[5]) == 3)) && ((deuces == 2)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
} else {
if (((((((results_value_array[1] + results_value_array[3]) + results_value_array[4]) + results_value_array[5]) == 4)) && ((deuces == 1)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
} else {
if (((((((results_value_array[3] + results_value_array[4]) + results_value_array[5]) + results_value_array[6]) == 3)) && ((deuces == 2)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
} else {
if (((((((results_value_array[3] + results_value_array[4]) + results_value_array[5]) + results_value_array[6]) == 4)) && ((deuces == 1)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
} else {
_local3 = 3;
while (_local3 <= 10) {
if ((((((((results_value_array[_local3] + results_value_array[(_local3 + 1)]) + results_value_array[(_local3 + 2)]) + results_value_array[(_local3 + 3)]) + results_value_array[(_local3 + 4)]) == 3)) && ((deuces == 2)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
} else {
if ((((((((results_value_array[_local3] + results_value_array[(_local3 + 1)]) + results_value_array[(_local3 + 2)]) + results_value_array[(_local3 + 3)]) + results_value_array[(_local3 + 4)]) == 4)) && ((deuces == 1)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
} else {
if ((((((((results_value_array[_local3] + results_value_array[(_local3 + 1)]) + results_value_array[(_local3 + 2)]) + results_value_array[(_local3 + 3)]) + results_value_array[(_local3 + 4)]) == 5)) && ((deuces == 0)))){
trace("straight");
win_rank_array.push(9);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(5);
};
};
};
};
_local3++;
};
};
};
};
};
};
break;
case "wood":
if ((((((((spade_count == 5)) || ((heart_count == 5)))) || ((diamond_count == 5)))) || ((club_count == 5)))){
flush_status = "on";
};
if ((((((((((results_value_array[13] == 1)) && ((results_value_array[12] == 1)))) && ((results_value_array[11] == 1)))) && ((results_value_array[10] == 1)))) && (results_value_array[1])) == 1){
royal_status = "on";
};
if ((((flush_status == "on")) && ((royal_status == "on")))){
trace("royal flush");
win_rank_array.push(1);
};
if (flush_status == "on"){
trace("flush");
win_rank_array.push(7);
};
_local4 = 1;
while (_local4 <= 14) {
if (results_value_array[_local4] == 3){
trace("3 of a kind");
win_rank_array.push(9);
threes = "yes";
};
if ((((twos == "yes")) && ((threes == "yes")))){
trace("fullhouse");
win_rank_array.push(6);
};
if (results_value_array[_local4] == 4){
if ((((_local4 == 1)) || ((_local4 == 14)))){
trace("4 aces");
win_rank_array.push(3);
} else {
if ((((((_local4 == 2)) || ((_local4 == 3)))) || ((_local4 == 4)))){
trace("Four 2s, 3s, 4s");
win_rank_array.push(4);
} else {
trace("Four 5s to Kings");
win_rank_array.push(5);
};
};
fours = "yes";
};
if (results_value_array[_local4] == 2){
twos_count++;
twos = "yes";
if (_local4 >= 11){
trace("jacks or better");
win_rank_array.push(11);
};
if ((((twos == "yes")) && ((threes == "yes")))){
trace("fullhouse");
win_rank_array.push(6);
};
};
if (results_value_array[_local4] == 1){
seq_length = (seq_length + 1);
if (seq_length == 5){
trace("straight");
win_rank_array.push(8);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(2);
};
};
};
if ((((results_value_array[_local4] == 0)) && ((seq_length >= 1)))){
seq_length = (seq_length - 1);
};
_local4++;
};
if (results_value_array[1] == 2){
twos_count = (twos_count - 1);
};
if (twos_count == 2){
trace("2 pairs");
win_rank_array.push(10);
};
break;
case "marble":
if ((((((((spade_count == 5)) || ((heart_count == 5)))) || ((diamond_count == 5)))) || ((club_count == 5)))){
flush_status = "on";
};
if ((((((((((results_value_array[13] == 1)) && ((results_value_array[12] == 1)))) && ((results_value_array[11] == 1)))) && ((results_value_array[10] == 1)))) && (results_value_array[1])) == 1){
royal_status = "on";
};
if ((((flush_status == "on")) && ((royal_status == "on")))){
trace("royal flush");
win_rank_array.push(1);
};
if (flush_status == "on"){
trace("flush");
win_rank_array.push(9);
};
_local5 = 1;
while (_local5 <= 14) {
if (results_value_array[_local5] == 3){
trace("3 of a kind");
win_rank_array.push(11);
threes = "yes";
if ((((twos == "yes")) && ((threes == "yes")))){
trace("fullhouse");
win_rank_array.push(8);
};
};
if (results_value_array[_local5] == 4){
if ((((_local5 == 1)) || ((_local5 == 14)))){
trace("4 aces");
win_rank_array.push(4);
if ((((((results_value_array[2] == 1)) || ((results_value_array[2] == 1)))) || ((results_value_array[2] == 1)))){
trace("4 aces with 2,3 or 4");
win_rank_array.push(2);
};
} else {
if (_local5 == 2){
trace("Four 2s, 3s, 4s");
win_rank_array.push(5);
if ((((((results_value_array[1] == 1)) || ((results_value_array[3] == 1)))) || ((results_value_array[4] == 1)))){
trace("Four 2s, 3s, 4s with A-4");
win_rank_array.push(3);
};
} else {
if (_local5 == 3){
trace("Four 2s, 3s, 4s");
win_rank_array.push(5);
if ((((((results_value_array[1] == 1)) || ((results_value_array[2] == 1)))) || ((results_value_array[4] == 1)))){
trace("Four 2s, 3s, 4s with A-4");
win_rank_array.push(3);
};
} else {
if (_local5 == 4){
trace("Four 2s, 3s, 4s");
win_rank_array.push(5);
if ((((((results_value_array[1] == 1)) || ((results_value_array[2] == 1)))) || ((results_value_array[3] == 1)))){
trace("Four 2s, 3s, 4s with A-4");
win_rank_array.push(3);
};
} else {
trace("Four 5s to Kings");
win_rank_array.push(7);
};
};
};
};
fours = "yes";
};
if (results_value_array[_local5] == 2){
twos_count++;
twos = "yes";
if (_local5 >= 11){
trace("jacks or better");
win_rank_array.push(13);
};
if ((((twos == "yes")) && ((threes == "yes")))){
trace("fullhouse");
win_rank_array.push(8);
};
};
if (results_value_array[_local5] == 1){
seq_length = (seq_length + 1);
if (seq_length == 5){
trace("straight");
win_rank_array.push(10);
if (flush_status == "on"){
trace("straight flush");
win_rank_array.push(6);
};
};
};
if ((((results_value_array[_local5] == 0)) && ((seq_length >= 1)))){
seq_length = (seq_length - 1);
};
_local5++;
};
if (results_value_array[1] == 2){
twos_count = (twos_count - 1);
};
if (twos_count == 2){
trace("2 pairs");
win_rank_array.push(12);
};
break;
};
if ((((balance > 0)) && ((((((((win_marble < target_marble)) || ((win_stone < target_stone)))) || ((win_wood < target_wood)))) || ((win_gold < target_gold)))))){
update_paytable(resource);
};
trace(shuffledDeck);
trace(results_value_array);
trace("spades:", spade_count);
trace("hearts:", heart_count);
trace("diamonds:", diamond_count);
trace("clubs:", club_count);
trace("deuces:", deuces);
trace("flush:", flush_status);
trace("royal flush:", royal_status);
trace("win array", win_rank_array);
}
public function update_score(_arg1){
balance_display.text = balance.toString();
switch (_arg1){
case "stone":
if (win_rank_array.length >= 1){
win_stone = (win_stone + paytable_array[_arg1][win_rank][bet]);
win_rank_array = [];
} else {
win_stone = (win_stone + 0);
};
won.text = win_stone.toString();
target.text = target_stone.toString();
if (win_stone >= target_stone){
card_anim_timer.stop();
show_resource_popup_screen(win_stone, target_stone, "end");
gotoAndStop("selection_screen");
};
break;
case "gold":
if (win_rank_array.length >= 1){
win_gold = (win_gold + paytable_array[_arg1][win_rank][bet]);
win_rank_array = [];
} else {
win_gold = (win_gold + 0);
};
won.text = win_gold.toString();
target.text = target_gold.toString();
if (win_gold >= target_gold){
card_anim_timer.stop();
show_resource_popup_screen(win_gold, target_gold, "end");
gotoAndStop("selection_screen");
};
break;
case "wood":
if (win_rank_array.length >= 1){
win_wood = (win_wood + paytable_array[_arg1][win_rank][bet]);
win_rank_array = [];
} else {
win_wood = (win_wood + 0);
};
won.text = win_wood.toString();
target.text = target_wood.toString();
if (win_wood >= target_wood){
card_anim_timer.stop();
show_resource_popup_screen(win_wood, target_wood, "end");
gotoAndStop("selection_screen");
};
break;
case "marble":
if (win_rank_array.length >= 1){
win_marble = (win_marble + paytable_array[_arg1][win_rank][bet]);
win_rank_array = [];
} else {
win_marble = (win_marble + 0);
};
won.text = win_marble.toString();
target.text = target_marble.toString();
if (win_marble >= target_marble){
card_anim_timer.stop();
show_resource_popup_screen(win_marble, target_marble, "end");
gotoAndStop("selection_screen");
};
break;
};
if ((((balance <= 0)) && ((((((((win_marble < target_marble)) || ((win_stone < target_stone)))) || ((win_wood < target_wood)))) || ((win_gold < target_gold)))))){
card_anim_timer.stop();
show_building_popup_screen("end");
gotoAndStop("selection_screen");
};
save_game();
}
public function update_paytable(_arg1){
var _local2:int;
_local2 = 1;
while (_local2 <= 14) {
name_array[_local2].text = paytable_array[_arg1][_local2][0];
pays_array[_local2].text = paytable_array[_arg1][_local2][bet].toString();
name_array[_local2].filters = [];
pays_array[_local2].filters = [];
_local2++;
};
if (win_rank_array.length >= 1){
win_sound.play();
win_rank_array.sort(Array.NUMERIC);
win_rank = win_rank_array[0];
trace("win rank", win_rank);
name_array[win_rank].filters = [text_glow];
pays_array[win_rank].filters = [text_glow];
};
}
public function show_buildings(){
gameloop_soundchannel = loop_sound.play(0, int.MAX_VALUE);
colosseum.visible = false;
basilica.visible = false;
curia.visible = false;
arch.visible = false;
library.visible = false;
thermae.visible = false;
odeon.visible = false;
tropaeum.visible = false;
pantheon.visible = false;
domus.visible = false;
if (level > 10){
colosseum.visible = true;
if (level == 11){
appear(colosseum);
};
};
if (level > 9){
basilica.visible = true;
if (level == 10){
appear(basilica);
};
};
if (level > 8){
curia.visible = true;
if (level == 9){
appear(curia);
};
};
if (level > 7){
arch.visible = true;
if (level == 8){
appear(arch);
};
};
if (level > 6){
library.visible = true;
if (level == 7){
appear(library);
};
};
if (level > 5){
thermae.visible = true;
if (level == 6){
appear(thermae);
};
};
if (level > 4){
odeon.visible = true;
if (level == 5){
appear(odeon);
};
};
if (level > 3){
tropaeum.visible = true;
if (level == 4){
appear(tropaeum);
};
};
if (level > 2){
pantheon.visible = true;
if (level == 3){
appear(pantheon);
};
};
if (level > 1){
domus.visible = true;
if (level == 2){
appear(domus);
};
achievement_go_back.visible = true;
hp_cityscape.addEventListener(MouseEvent.CLICK, leave_cityscape);
};
}
public function show_intro(){
addChild(intro_message);
intro_message.x = 15;
intro_message.y = 410;
intro_message.addEventListener(Event.ENTER_FRAME, move_intro);
}
public function move_intro(_arg1:Event){
if (intro_message.y <= 50){
intro_message.removeEventListener(Event.ENTER_FRAME, move_intro);
hp_cityscape.addEventListener(MouseEvent.CLICK, leave_cityscape);
achievement_go_back.visible = true;
} else {
intro_message.y = (intro_message.y - 5);
};
}
public function leave_cityscape(_arg1:MouseEvent){
gameloop_soundchannel.stop();
hp_cityscape.removeEventListener(MouseEvent.CLICK, leave_cityscape);
if (level == 0){
removeChild(intro_message);
new_game_variables_populate();
gotoAndStop("selection_screen");
} else {
if (level <= 10){
gotoAndStop("selection_screen");
} else {
if (level > 10){
gotoAndStop("end_game");
};
};
};
}
public function appear(_arg1){
_arg1.alpha = 0;
_arg1.addEventListener(Event.ENTER_FRAME, building_appear);
}
public function building_appear(_arg1:Event){
if (_arg1.currentTarget.alpha < 1){
_arg1.currentTarget.alpha = (_arg1.currentTarget.alpha + 0.05);
} else {
if (_arg1.currentTarget.alpha >= 1){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, building_appear);
};
};
}
public function goto_website(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://www.playtinum.co.in");
navigateToURL(_local2, "_blank");
var _local3:URLRequest = new URLRequest("http://itunes.com/apps/playtinum");
navigateToURL(_local3, "_blank");
}
public function all_achievements_invisible(){
score1.visible = false;
score2.visible = false;
score3.visible = false;
score4.visible = false;
score_bldg1.gotoAndStop("empty");
score_bldg2.gotoAndStop("empty");
score_bldg3.gotoAndStop("empty");
score_bldg4.gotoAndStop("empty");
next_achievement_btn.addEventListener(MouseEvent.CLICK, next_achievement_page);
}
public function next_achievement_page(_arg1:MouseEvent){
next_achievement_btn.removeEventListener(MouseEvent.CLICK, next_achievement_page);
switch (achievement_page_number){
case 1:
achievement_page_number = 2;
ach_page.text = ("Page " + achievement_page_number.toString());
all_achievements_invisible();
populate_achievements_page2();
break;
case 2:
achievement_page_number = 3;
ach_page.text = ("Page " + achievement_page_number.toString());
all_achievements_invisible();
populate_achievements_page3();
break;
case 3:
achievement_page_number = 1;
ach_page.text = ("Page " + achievement_page_number.toString());
all_achievements_invisible();
populate_achievements_page1();
break;
};
}
public function populate_achievements_page1(){
if (level > 4){
score4.visible = true;
score_bldg4.gotoAndStop("odeon");
score4.gotoAndStop(wreath_score[4]);
};
if (level > 3){
score3.visible = true;
score_bldg3.gotoAndStop("tropaeum");
score3.gotoAndStop(wreath_score[3]);
};
if (level > 2){
score2.visible = true;
score_bldg2.gotoAndStop("pantheon");
score2.gotoAndStop(wreath_score[2]);
};
if (level > 1){
score1.visible = true;
score_bldg1.gotoAndStop("domus");
score1.gotoAndStop(wreath_score[1]);
};
}
public function populate_achievements_page2(){
if (level > 8){
score4.visible = true;
score_bldg4.gotoAndStop("curia");
score4.gotoAndStop(wreath_score[8]);
};
if (level > 7){
score3.visible = true;
score_bldg3.gotoAndStop("arch");
score3.gotoAndStop(wreath_score[7]);
};
if (level > 6){
score2.visible = true;
score_bldg2.gotoAndStop("library");
score2.gotoAndStop(wreath_score[6]);
};
if (level > 5){
score1.visible = true;
score_bldg1.gotoAndStop("thermae");
score1.gotoAndStop(wreath_score[5]);
};
}
public function populate_achievements_page3(){
if (level > 10){
score2.visible = true;
score_bldg2.gotoAndStop("colosseum");
score2.gotoAndStop(wreath_score[10]);
};
if (level > 9){
score1.visible = true;
score_bldg1.gotoAndStop("basilica");
score1.gotoAndStop(wreath_score[9]);
};
}
function frame1(){
stop();
playtinum_splash_anim = new PLAYTINUM_SPLASH_ANIM();
playtinum_splash_anim.scaleX = 0.625;
playtinum_splash_anim.scaleY = 0.625;
addChild(playtinum_splash_anim);
abroy_splash_timer = new Timer(3000);
abroy_splash_timer.addEventListener(TimerEvent.TIMER, goto_title);
level_array = new Array("building_names", "domus", "pantheon", "tropaeum", "odeon", "thermae", "library", "arch", "curia", "basilica", "colosseum");
wreath_score = new Array();
startDeck = new Array();
shuffledDeck = new Array();
card_mc_array = new Array();
results_value_array = new Array();
card_anim_timer = new Timer(250);
bet = 1;
win_rank_array = new Array();
building_resource_array = new Array();
building_resource_array["domus"] = [600, 750, 710, 680, 650];
building_resource_array["pantheon"] = [1200, 1520, 1440, 1380, 1320];
building_resource_array["tropaeum"] = [1800, 2310, 2190, 2100, 2010];
building_resource_array["odeon"] = [2400, 3120, 2960, 2840, 2720];
building_resource_array["thermae"] = [3000, 3950, 3750, 3600, 3450];
building_resource_array["library"] = [2400, 4800, 4560, 4380, 4200];
building_resource_array["arch"] = [3600, 5670, 5390, 5180, 4970];
building_resource_array["curia"] = [4800, 6560, 6240, 6000, 5760];
building_resource_array["basilica"] = [5400, 7470, 7110, 6840, 6570];
building_resource_array["colosseum"] = [6000, 8400, 8000, 7700, 7400];
paytable_array = new Array();
paytable_array["stone"] = ["stone_paytable", ["Royal Flush", 2500, 5000, 7500, 10000, 40000], ["Straight Flush", 500, 1000, 1500, 2000, 2500], ["4 of a Kind", 250, 500, 750, 1000, 1250], ["Full House", 90, 180, 270, 360, 450], ["Flush", 60, 120, 180, 240, 300], ["Straight", 40, 80, 120, 160, 200], ["3 of a Kind", 30, 60, 90, 120, 150], ["2 Pairs", 20, 40, 60, 80, 100], ["Jacks or Better", 10, 20, 30, 40, 50], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""]];
paytable_array["gold"] = ["gold_paytable", ["Royal Flush", 3000, 6000, 9000, 12000, 40000], ["4 Deuces", 2000, 4000, 6000, 8000, 10000], ["Wild Royal Flush", 250, 500, 750, 1000, 1250], ["5 of a Kind", 150, 300, 450, 600, 750], ["Straight Flush", 90, 180, 270, 360, 450], ["4 of a Kind", 50, 100, 150, 200, 250], ["Full House", 30, 60, 90, 120, 150], ["Flush", 25, 50, 75, 100, 125], ["Straight", 20, 40, 60, 80, 100], ["3 of a Kind", 10, 20, 30, 40, 50], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""]];
paytable_array["wood"] = ["wood_paytable", ["Royal Flush", 2500, 5000, 7500, 10000, 40000], ["Straight Flush", 500, 1000, 1500, 2000, 2500], ["4 Aces", 1600, 3200, 4800, 0x1900, 8000], ["Four 2/3/4s", 800, 1600, 2400, 3200, 4000], ["Four 5 to K", 500, 1000, 1500, 2000, 2500], ["Full House", 100, 200, 300, 400, 500], ["Flush", 70, 140, 210, 280, 350], ["Straight", 50, 100, 150, 200, 250], ["3 of a Kind", 30, 60, 90, 120, 150], ["2 Pairs", 20, 40, 60, 80, 100], ["Jacks or Better", 10, 20, 30, 40, 50], ["", "", "", "", "", ""], ["", "", "", "", "", ""], ["", "", "", "", "", ""]];
paytable_array["marble"] = ["marble_paytable", ["Royal Flush", 2500, 5000, 7500, 10000, 40000], ["4 Aces & 2/3/4", 4000, 8000, 12000, 16000, 20000], ["4 2/3/4s & A-4", 1600, 3200, 4800, 0x1900, 8000], ["4 Aces", 1600, 3200, 4800, 0x1900, 8000], ["4 2/3/4s", 800, 1600, 2400, 3200, 4000], ["Straight Flush", 500, 1000, 1500, 2000, 2500], ["Four 5 to K", 500, 1000, 1500, 2000, 2500], ["Full House", 100, 200, 300, 400, 500], ["Flush", 60, 120, 180, 240, 300], ["Straight", 40, 80, 120, 160, 200], ["3 of a Kind", 30, 60, 90, 120, 150], ["2 Pairs", 20, 40, 60, 80, 100], ["Jacks or Better", 10, 20, 30, 40, 50], ["", "", "", "", "", ""]];
resource_message_array = new Array();
resource_message_array["wood"] = ["Poker Play is like\n'Double Bonus'\n Try to get 4 of a kind for best returns", "WELL DONE\nWood collection target achieved"];
resource_message_array["gold"] = ["Poker Play is like\n'Deuces Wild'\n Deuces are wild cards that can be used anywhere", "WELL DONE\nGold collection target achieved"];
resource_message_array["stone"] = ["Poker Play is like\n'Jacks or Better'\n Even a single pair above 10 can be useful", "WELL DONE\nStone collection target achieved"];
resource_message_array["marble"] = ["Poker Play is like\n'Double Double Bonus'\n A game with maximum options to win", "WELL DONE\nMarble collection target achieved"];
building_message_array = new Array();
building_message_array[1] = ["DOMUS", "Domus was the type of housing meant for the elite of the Roman society.\nYour initial task is to construct a Domus from the funds that are made available to you"];
building_message_array[2] = ["PANTHEON", "A Temple to all Gods, The Pantheon is an important building for all the Romans.\n It will mark the foundation of this great city"];
building_message_array[3] = ["TROPAEUM", "The Emperor had returned victorious from the battle with the Barbarians.\n Erect a Tropaeum to commemorate the victory"];
building_message_array[4] = ["ODEON", "Arts and Crafts play an important role in keeping the citizens happy.\n Construct an Odeon before the next festival"];
building_message_array[5] = ["THERMAE", "The citizens are happy wish to scialise more.\n They demand a splendid bath house with landscaped gardens"];
building_message_array[6] = ["LIBRARY", "All the city needs now is a Library.\n Your work has become the talk of Rome"];
building_message_array[7] = ["ARCH", "The Emperor is planning to visit the city.\n Construct a magnificient Arch to welcome the Emperor"];
building_message_array[8] = ["CURIA", "Soon this city could be the center of Roman politics\nWe need to get a Senate House ready"];
building_message_array[9] = ["BASILICA", "The Emperor has granted enough funds to construct a grand cathedral\n I hope you will not disappoint him"];
building_message_array[10] = ["COLOSSEUM", "The gladiatorial games are to be held in our city.\n We all await to see your work of gigantic proportions"];
text_glow = new GlowFilter();
text_glow.color = 0xCC00;
text_glow.blurX = 5;
text_glow.blurY = 5;
text_glow.strength = 200;
white_text_glow = new GlowFilter();
white_text_glow.color = 0xFFFFFF;
white_text_glow.blurX = 3;
white_text_glow.blurY = 3;
white_text_glow.strength = 150;
resource_popup_screen = new RESOURCE_POPUP_SCREEN();
resource_popup_screen.width = 600;
resource_popup_screen.height = 400;
building_popup_screen = new BUILDING_POPUP_SCREEN();
building_popup_screen.width = 600;
building_popup_screen.height = 400;
intro_message = new INTRO_MESSAGE();
intro_message.scaleX = 0.625;
intro_message.scaleY = 0.625;
intro_message.filters = [white_text_glow];
delete_data_screen = new DELETE_DATA_SCREEN();
delete_data_screen.width = 600;
delete_data_screen.height = 400;
deal_sound = new DEAL();
select_sound = new SELECT();
keep_sound = new KEEP();
loop_sound = new LOOP();
win_sound = new WIN();
gameloop_soundchannel = new SoundChannel();
}
function frame2(){
stop();
so = SharedObject.getLocal("PP_TRA");
if (so.data.save_game_state == null){
lg_text.text = "";
lg_text.mouseEnabled = false;
load_game_btn.visible = false;
} else {
lg_text.text = "LOAD";
lg_text.mouseEnabled = false;
load_game_btn.visible = true;
load_game_btn.addEventListener(MouseEvent.CLICK, navigate);
load_game_variables_populate();
};
new_game_btn.addEventListener(MouseEvent.CLICK, navigate);
help_btn.addEventListener(MouseEvent.CLICK, navigate);
achievement_btn.addEventListener(MouseEvent.CLICK, navigate);
abroy_logo.addEventListener(MouseEvent.CLICK, goto_abroy);
appstore_link.addEventListener(MouseEvent.CLICK, goto_appstore);
}
function frame3(){
help_next_btn.addEventListener(MouseEvent.CLICK, help_navigate);
}
function frame10(){
building.gotoAndStop(level_array[level]);
building.mouseEnabled = false;
if (level_status == "off"){
start_new_level(level);
level_status = "on";
show_building_popup_screen("start");
};
achievement_btn2.addEventListener(MouseEvent.CLICK, navigate);
initialise_selection_screen();
back_to_main_btn.addEventListener(MouseEvent.CLICK, back_to_main_menu);
}
function frame11(){
name_array = new Array("win_names", name1, name2, name3, name4, name5, name6, name7, name8, name9, name10, name11, name12, name13, name14);
pays_array = new Array("win_pays", pay1, pay2, pay3, pay4, pay5, pay6, pay7, pay8, pay9, pay10, pay11, pay12, pay13, pay14);
initialise_deal_btn();
abroy_ingame_btn.addEventListener(MouseEvent.CLICK, goto_abroy);
}
function frame12(){
hp_cityscape.alpha = 0;
achievement_go_back.visible = false;
show_buildings();
}
function frame13(){
stop();
website_link.addEventListener(MouseEvent.CLICK, goto_website);
}
function frame14(){
stop();
back_to_game_btn.addEventListener(MouseEvent.CLICK, back_to_main_menu);
achievement_page_number = 1;
all_achievements_invisible();
populate_achievements_page1();
}
}
}//package Poker_Play_web_1_fla
Section 4
//ABROY_ANIM_LOGO (ABROY_ANIM_LOGO)
package {
import flash.display.*;
public dynamic class ABROY_ANIM_LOGO extends MovieClip {
public function ABROY_ANIM_LOGO(){
addFrameScript(0, frame1, 89, frame90);
}
function frame1(){
stop();
}
function frame90(){
stop();
MovieClip(this.parent).gotoAndStop("main_screen");
MovieClip(this.parent).removeChild(this);
}
}
}//package
Section 5
//ABROY_INGAME_BTN (ABROY_INGAME_BTN)
package {
import flash.display.*;
public dynamic class ABROY_INGAME_BTN extends SimpleButton {
}
}//package
Section 6
//ACHIEVEMENT_BTN (ACHIEVEMENT_BTN)
package {
import flash.display.*;
public dynamic class ACHIEVEMENT_BTN extends SimpleButton {
}
}//package
Section 7
//APP_STORE_LINK (APP_STORE_LINK)
package {
import flash.display.*;
public dynamic class APP_STORE_LINK extends SimpleButton {
}
}//package
Section 8
//ARCH (ARCH)
package {
import flash.display.*;
public dynamic class ARCH extends MovieClip {
}
}//package
Section 9
//ARROW_BTN (ARROW_BTN)
package {
import flash.display.*;
public dynamic class ARROW_BTN extends SimpleButton {
}
}//package
Section 10
//BASILICA (BASILICA)
package {
import flash.display.*;
public dynamic class BASILICA extends MovieClip {
}
}//package
Section 11
//BET (BET)
package {
import flash.display.*;
public dynamic class BET extends MovieClip {
}
}//package
Section 12
//BG (BG)
package {
import flash.display.*;
public dynamic class BG extends MovieClip {
}
}//package
Section 13
//BUILDING (BUILDING)
package {
import flash.display.*;
public dynamic class BUILDING extends MovieClip {
}
}//package
Section 14
//BUILDING_POPUP_SCREEN (BUILDING_POPUP_SCREEN)
package {
import flash.display.*;
import flash.text.*;
public dynamic class BUILDING_POPUP_SCREEN extends MovieClip {
public var building_name:TextField;
public var building_info:TextField;
public var building_funds:TextField;
}
}//package
Section 15
//CARD (CARD)
package {
import flash.display.*;
public dynamic class CARD extends MovieClip {
}
}//package
Section 16
//COLOSSEUM (COLOSSEUM)
package {
import flash.display.*;
public dynamic class COLOSSEUM extends MovieClip {
}
}//package
Section 17
//CURIA (CURIA)
package {
import flash.display.*;
public dynamic class CURIA extends MovieClip {
}
}//package
Section 18
//DEAL (DEAL)
package {
import flash.media.*;
public dynamic class DEAL extends Sound {
}
}//package
Section 19
//DEAL_BTN (DEAL_BTN)
package {
import flash.display.*;
public dynamic class DEAL_BTN extends SimpleButton {
}
}//package
Section 20
//DELETE_DATA_SCREEN (DELETE_DATA_SCREEN)
package {
import flash.display.*;
public dynamic class DELETE_DATA_SCREEN extends MovieClip {
public var yes_btn:GENERIC_RECTANGLE_BTN;
public var no_btn:GENERIC_RECTANGLE_BTN;
}
}//package
Section 21
//DOMUS (DOMUS)
package {
import flash.display.*;
public dynamic class DOMUS extends MovieClip {
}
}//package
Section 22
//DONE (DONE)
package {
import flash.display.*;
public dynamic class DONE extends MovieClip {
}
}//package
Section 23
//DRAW_BTN (DRAW_BTN)
package {
import flash.display.*;
public dynamic class DRAW_BTN extends SimpleButton {
}
}//package
Section 24
//GENERIC_POPUP_SCREEN (GENERIC_POPUP_SCREEN)
package {
import flash.display.*;
public dynamic class GENERIC_POPUP_SCREEN extends MovieClip {
}
}//package
Section 25
//GENERIC_RECTANGLE_BTN (GENERIC_RECTANGLE_BTN)
package {
import flash.display.*;
public dynamic class GENERIC_RECTANGLE_BTN extends SimpleButton {
}
}//package
Section 26
//GENERIC_RECTANGLE_LONG_BTN (GENERIC_RECTANGLE_LONG_BTN)
package {
import flash.display.*;
public dynamic class GENERIC_RECTANGLE_LONG_BTN extends SimpleButton {
}
}//package
Section 27
//GENERIC_ROUND_BTN (GENERIC_ROUND_BTN)
package {
import flash.display.*;
public dynamic class GENERIC_ROUND_BTN extends SimpleButton {
}
}//package
Section 28
//HOLD (HOLD)
package {
import flash.display.*;
public dynamic class HOLD extends MovieClip {
}
}//package
Section 29
//HP_CITYSCAPE (HP_CITYSCAPE)
package {
import flash.display.*;
public dynamic class HP_CITYSCAPE extends MovieClip {
}
}//package
Section 30
//INTRO_MESSAGE (INTRO_MESSAGE)
package {
import flash.display.*;
public dynamic class INTRO_MESSAGE extends MovieClip {
}
}//package
Section 31
//KEEP (KEEP)
package {
import flash.media.*;
public dynamic class KEEP extends Sound {
}
}//package
Section 32
//LIBRARY (LIBRARY)
package {
import flash.display.*;
public dynamic class LIBRARY extends MovieClip {
}
}//package
Section 33
//LOOP (LOOP)
package {
import flash.media.*;
public dynamic class LOOP extends Sound {
}
}//package
Section 34
//ODEON (ODEON)
package {
import flash.display.*;
public dynamic class ODEON extends MovieClip {
}
}//package
Section 35
//PANTHEON (PANTHEON)
package {
import flash.display.*;
public dynamic class PANTHEON extends MovieClip {
}
}//package
Section 36
//PLAYTINUM_SPLASH_ANIM (PLAYTINUM_SPLASH_ANIM)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class PLAYTINUM_SPLASH_ANIM extends MovieClip {
public function PLAYTINUM_SPLASH_ANIM(){
addFrameScript(0, frame1, 119, frame120);
}
function frame1(){
stage.frameRate = 30;
}
function frame120(){
stop();
stage.frameRate = 12;
MovieClip(this.parent).abroy_splash_timer.start();
MovieClip(this.parent).removeChild(this);
}
}
}//package
Section 37
//RESOURCE_ICON (RESOURCE_ICON)
package {
import flash.display.*;
public dynamic class RESOURCE_ICON extends MovieClip {
public function RESOURCE_ICON(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package
Section 38
//RESOURCE_POPUP_SCREEN (RESOURCE_POPUP_SCREEN)
package {
import flash.display.*;
import flash.text.*;
public dynamic class RESOURCE_POPUP_SCREEN extends MovieClip {
public var icon:RESOURCE_ICON;
public var target:TextField;
public var message:TextField;
public var won:TextField;
}
}//package
Section 39
//SCORE_BLDG (SCORE_BLDG)
package {
import flash.display.*;
public dynamic class SCORE_BLDG extends MovieClip {
}
}//package
Section 40
//SELECT (SELECT)
package {
import flash.media.*;
public dynamic class SELECT extends Sound {
}
}//package
Section 41
//THERMAE (THERMAE)
package {
import flash.display.*;
public dynamic class THERMAE extends MovieClip {
}
}//package
Section 42
//TROPAEUM (TROPAEUM)
package {
import flash.display.*;
public dynamic class TROPAEUM extends MovieClip {
}
}//package
Section 43
//WBSITE_LINK (WBSITE_LINK)
package {
import flash.display.*;
public dynamic class WBSITE_LINK extends MovieClip {
}
}//package
Section 44
//WILD_CARD (WILD_CARD)
package {
import flash.display.*;
public dynamic class WILD_CARD extends MovieClip {
}
}//package
Section 45
//WIN (WIN)
package {
import flash.media.*;
public dynamic class WIN extends Sound {
}
}//package
Section 46
//WREATH (WREATH)
package {
import flash.display.*;
public dynamic class WREATH extends MovieClip {
}
}//package