Frame 1
stop();
mochi.as2.MochiAd.showPreGameAd({id:"e7d06eb3e4207f98", res:((("" + Stage.width) + "x") + Stage.height) + ""});
Frame 7
_root._quality = "HIGH";
_root.helpID = 1;
stop();
objectArray = new Array();
objectShopArray = new Array();
System.useCodepage = true;
strXML = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><data><file lv=\"1\" timeNum=\"75\" pass_money=\"120\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"50\" \tbilliards_money=\"50\" \tcinema_money=\"40\"\t\tdog_money=\"30\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"2\" timeNum=\"75\" pass_money=\"150\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"50\" \tbilliards_money=\"50\" \tcinema_money=\"40\"\t\tdog_money=\"30\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"3\" timeNum=\"75\" pass_money=\"250\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"50\" \tbilliards_money=\"50\" \tcinema_money=\"40\"\t\tdog_money=\"30\"\t\tbellboy_money=\"29\"\t\tpark_money=\"100\"/><file lv=\"4\" timeNum=\"75\" pass_money=\"350\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"50\" \tbilliards_money=\"50\" \tcinema_money=\"40\"\t\tdog_money=\"30\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"5\" timeNum=\"75\" pass_money=\"500\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"50\" \tbilliards_money=\"50\" \tcinema_money=\"40\"\t\tdog_money=\"35\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"6\" timeNum=\"75\" pass_money=\"650\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"55\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"35\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"7\" timeNum=\"75\" pass_money=\"850\" housing_money=\"80\" dining_money=\"20\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"55\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"35\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"8\" timeNum=\"75\" pass_money=\"1000\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"55\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"35\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"9\" timeNum=\"75\" pass_money=\"1300\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"55\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"35\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"10\" timeNum=\"75\" pass_money=\"1600\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"55\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"35\"\t\tbellboy_money=\"30\"\t\tpark_money=\"100\"/><file lv=\"11\" timeNum=\"75\" pass_money=\"2200\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"60\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"120\"/><file lv=\"12\" timeNum=\"75\" pass_money=\"3200\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"60\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"120\"/><file lv=\"13\" timeNum=\"75\" pass_money=\"4500\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"60\" \tbilliards_money=\"55\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"120\"/><file lv=\"14\" timeNum=\"75\" pass_money=\"5500\" housing_money=\"80\" dining_money=\"25\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"60\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"120\"/><file lv=\"15\" timeNum=\"75\" pass_money=\"6900\" housing_money=\"80\" dining_money=\"30\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"60\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"140\"/><file lv=\"16\" timeNum=\"75\" pass_money=\"7500\" housing_money=\"80\" dining_money=\"30\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"60\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"140\"/><file lv=\"17\" timeNum=\"75\" pass_money=\"8000\" housing_money=\"80\" dining_money=\"30\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"80\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"140\"/><file lv=\"18\" timeNum=\"75\" pass_money=\"8500\" housing_money=\"80\" dining_money=\"30\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"80\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"140\"/><file lv=\"19\" timeNum=\"75\" pass_money=\"9200\" housing_money=\"80\" dining_money=\"30\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"80\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"140\"/><file lv=\"20\" timeNum=\"75\" pass_money=\"10000\" housing_money=\"80\" dining_money=\"30\" batting_money=\"120\" swimming_money=\"150\" groggery_money=\"80\" \tbilliards_money=\"60\" \tcinema_money=\"40\"\t\tdog_money=\"40\"\t\tbellboy_money=\"30\"\t\tpark_money=\"140\"/><file lv=\"1\" shop_tennis_money=\"700\" shop_natatorium_money=\"1000\" shop_room_money=\"300\" shop_table_money=\"200\" shop_bullpen_money0=\"1800\"\tshop_bullpen_money1=\"1580\" \t\tshop_bullpen_money2=\"1750\"\tshop_lift_money=\"1600\" shop_chef_money=\"700\" \tshop_speedup_money0=\"220\" \t\t\tshop_speedup_money1=\"700\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2000\" \t shop_cinema_money=\"1200\" \t\t\t\tshop_groggeryWaiter_money=\"1000\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1200\" \t\tshop_bellboyWaiter_money=\"2220\" \t\tshop_natatorWaiter_money=\"1600\"\t\tshop_ballWaiter_money=\"2140\"\tshop_dustmanWaiter_money=\"2330\"\tshop_dog_money=\"620\"\t\tshop_park_money=\"1800\"\tshop_fiddleWaiter_money=\"2720\"\tshop_pianoWaiter_money=\"1830\"\tshop_draw0_money=\"1700\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2200\"\tshop_potted0_money=\"1780\"\tshop_potted1_money=\"1920\"\tshop_potted2_money=\"2250\"/><file lv=\"2\" shop_tennis_money=\"800\" shop_natatorium_money=\"900\" shop_room_money=\"350\" shop_table_money=\"200\" shop_bullpen_money0=\"1700\"\tshop_bullpen_money1=\"1600\" \t\tshop_bullpen_money2=\"1750\"\tshop_lift_money=\"1500\" shop_chef_money=\"780\" shop_speedup_money0=\"250\"\t\t\tshop_speedup_money1=\"700\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2100\" \t shop_cinema_money=\"1100\" \t\t\t\tshop_groggeryWaiter_money=\"1250\" shop_billiardsWaiter_money=\"1150\" shop_cinemaWaiter_money=\"1200\" shop_dogWaiter_money=\"1500\" \t\tshop_bellboyWaiter_money=\"2300\" \t\tshop_natatorWaiter_money=\"1200\"\t\tshop_ballWaiter_money=\"2200\"\tshop_dustmanWaiter_money=\"2500\"\tshop_dog_money=\"620\"\t\tshop_park_money=\"1800\"\tshop_fiddleWaiter_money=\"2620\"\tshop_pianoWaiter_money=\"1730\"\tshop_draw0_money=\"1700\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1800\"\tshop_potted1_money=\"1900\"\tshop_potted2_money=\"2250\"/><file lv=\"3\" shop_tennis_money=\"800\" shop_natatorium_money=\"900\" shop_room_money=\"200\" shop_table_money=\"350\" shop_bullpen_money0=\"1900\" \tshop_bullpen_money1=\"1620\" \t\tshop_bullpen_money2=\"1760\"\tshop_lift_money=\"1600\" shop_chef_money=\"810\" shop_speedup_money0=\"260\"\t\t\tshop_speedup_money1=\"700\"\t\tshop_groggery_money=\"580\" \t\tshop_billiards_money=\"2400\" \t shop_cinema_money=\"1300\" \t\t\t\tshop_groggeryWaiter_money=\"1200\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1200\" \t\tshop_bellboyWaiter_money=\"2200\" \t\tshop_natatorWaiter_money=\"1400\"\t\tshop_ballWaiter_money=\"2140\"\tshop_dustmanWaiter_money=\"2200\" \tshop_dog_money=\"600\"\t\tshop_park_money=\"1780\"\tshop_fiddleWaiter_money=\"2650\"\tshop_pianoWaiter_money=\"1800\"\tshop_draw0_money=\"1700\"\tshop_draw1_money=\"1880\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1800\"\tshop_potted1_money=\"1900\"\tshop_potted2_money=\"2200\"/><file lv=\"4\" shop_tennis_money=\"700\" shop_natatorium_money=\"1000\" shop_room_money=\"400\" shop_table_money=\"250\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1660\" \t\tshop_bullpen_money2=\"1730\"\tshop_lift_money=\"1500\" shop_chef_money=\"800\" \tshop_speedup_money0=\"270\"\t\t\tshop_speedup_money1=\"720\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2200\" \t shop_cinema_money=\"1400\" \t\t\t\tshop_groggeryWaiter_money=\"1400\" shop_billiardsWaiter_money=\"1300\" shop_cinemaWaiter_money=\"1200\" shop_dogWaiter_money=\"1300\" \t\tshop_bellboyWaiter_money=\"2400\" \t\tshop_natatorWaiter_money=\"1210\"\t\tshop_ballWaiter_money=\"2400\"\tshop_dustmanWaiter_money=\"2800\" \tshop_dog_money=\"620\"\t\tshop_park_money=\"1790\"\tshop_fiddleWaiter_money=\"2580\"\tshop_pianoWaiter_money=\"1820\"\tshop_draw0_money=\"1680\"\tshop_draw1_money=\"1860\"\tshop_draw2_money=\"2150\"\tshop_potted0_money=\"1810\"\tshop_potted1_money=\"1920\"\tshop_potted2_money=\"2200\"/><file lv=\"5\" shop_tennis_money=\"700\" shop_natatorium_money=\"1100\" shop_room_money=\"300\" shop_table_money=\"400\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1650\" \t\tshop_bullpen_money2=\"1780\"\tshop_lift_money=\"1500\" shop_chef_money=\"850\" \tshop_speedup_money0=\"280\"\t\t\tshop_speedup_money1=\"730\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2600\" \t shop_cinema_money=\"1200\" \t\t\t\tshop_groggeryWaiter_money=\"1600\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1400\" \t\tshop_bellboyWaiter_money=\"2500\" \t\tshop_natatorWaiter_money=\"1100\"\t\tshop_ballWaiter_money=\"2500\"\tshop_dustmanWaiter_money=\"2400\" \tshop_dog_money=\"630\"\t\tshop_park_money=\"1820\"\tshop_fiddleWaiter_money=\"2550\"\tshop_pianoWaiter_money=\"1800\"\tshop_draw0_money=\"1700\"\tshop_draw1_money=\"1850\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1800\"\tshop_potted1_money=\"1900\"\tshop_potted2_money=\"2100\"/><file lv=\"6\" shop_tennis_money=\"750\" shop_natatorium_money=\"950\" shop_room_money=\"500\" shop_table_money=\"310\" shop_bullpen_money0=\"1500\" \tshop_bullpen_money1=\"1680\" \t\tshop_bullpen_money2=\"1800\"\tshop_lift_money=\"1500\" shop_chef_money=\"900\" shop_speedup_money0=\"280\"\t\t\tshop_speedup_money1=\"720\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2500\" \t shop_cinema_money=\"1400\" \t\t\t\tshop_groggeryWaiter_money=\"1300\" shop_billiardsWaiter_money=\"1250\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1900\" \t\tshop_bellboyWaiter_money=\"2300\" \t\tshop_natatorWaiter_money=\"1600\"\t\tshop_ballWaiter_money=\"2200\"\tshop_dustmanWaiter_money=\"2900\" \tshop_dog_money=\"650\"\t\tshop_park_money=\"1800\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1860\"\tshop_draw0_money=\"1680\"\tshop_draw1_money=\"1880\"\tshop_draw2_money=\"2200\"\tshop_potted0_money=\"1820\"\tshop_potted1_money=\"1850\"\tshop_potted2_money=\"2000\"/><file lv=\"7\" shop_tennis_money=\"600\" shop_natatorium_money=\"800\" shop_room_money=\"300\" shop_table_money=\"240\" shop_bullpen_money0=\"1700\" \tshop_bullpen_money1=\"1620\" \t\tshop_bullpen_money2=\"1820\"\tshop_lift_money=\"1700\" shop_chef_money=\"850\" shop_speedup_money0=\"300\"\t\t\tshop_speedup_money1=\"730\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2700\" \t shop_cinema_money=\"1500\" \t\t\t\tshop_groggeryWaiter_money=\"1500\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1700\" \t\tshop_bellboyWaiter_money=\"2800\" \t\tshop_natatorWaiter_money=\"1600\"\t\tshop_ballWaiter_money=\"2100\"\tshop_dustmanWaiter_money=\"2700\" \tshop_dog_money=\"710\"\t\tshop_park_money=\"1780\"\tshop_fiddleWaiter_money=\"2730\"\tshop_pianoWaiter_money=\"1920\"\tshop_draw0_money=\"1600\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1800\"\tshop_potted1_money=\"1920\"\tshop_potted2_money=\"2130\"/><file lv=\"8\" shop_tennis_money=\"700\" shop_natatorium_money=\"1000\" shop_room_money=\"600\" shop_table_money=\"200\" shop_bullpen_money0=\"1700\" shop_bullpen_money1=\"1600\" \t\tshop_bullpen_money2=\"1830\"\tshop_lift_money=\"1600\" shop_chef_money=\"900\" \tshop_speedup_money0=\"300\"\t\t\tshop_speedup_money1=\"750\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2600\" \t shop_cinema_money=\"1300\" \t\t\t\tshop_groggeryWaiter_money=\"1700\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1200\" shop_dogWaiter_money=\"1600\" \t\tshop_bellboyWaiter_money=\"2600\" \t\tshop_natatorWaiter_money=\"1100\"\t\tshop_ballWaiter_money=\"2300\"\tshop_dustmanWaiter_money=\"3000\" \tshop_dog_money=\"730\"\t\tshop_park_money=\"1800\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1900\"\tshop_draw0_money=\"1550\"\tshop_draw1_money=\"1920\"\tshop_draw2_money=\"2080\"\tshop_potted0_money=\"1780\"\tshop_potted1_money=\"1800\"\tshop_potted2_money=\"2050\"/><file lv=\"9\" shop_tennis_money=\"600\" shop_natatorium_money=\"1300\" shop_room_money=\"350\" shop_table_money=\"280\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1610\" \t\tshop_bullpen_money2=\"1800\"\tshop_lift_money=\"1600\" shop_chef_money=\"1000\" \tshop_speedup_money0=\"330\"\t\t\tshop_speedup_money1=\"770\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2400\" \t shop_cinema_money=\"1500\" \t\t\t\tshop_groggeryWaiter_money=\"1600\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1500\" \t\tshop_bellboyWaiter_money=\"2500\" \t\tshop_natatorWaiter_money=\"1200\"\t\tshop_ballWaiter_money=\"2400\"\tshop_dustmanWaiter_money=\"2800\" \tshop_dog_money=\"780\"\t\tshop_park_money=\"1830\"\tshop_fiddleWaiter_money=\"2610\"\tshop_pianoWaiter_money=\"1780\"\tshop_draw0_money=\"1660\"\tshop_draw1_money=\"1880\"\tshop_draw2_money=\"2080\"\tshop_potted0_money=\"1770\"\tshop_potted1_money=\"1800\"\tshop_potted2_money=\"2200\"/><file lv=\"10\" shop_tennis_money=\"1000\" shop_natatorium_money=\"1200\" shop_room_money=\"500\" shop_table_money=\"250\" shop_bullpen_money0=\"1700\" shop_bullpen_money1=\"1590\" \t\tshop_bullpen_money2=\"1780\"\tshop_lift_money=\"1500\" shop_chef_money=\"1200\" \tshop_speedup_money0=\"360\"\t\t\tshop_speedup_money1=\"770\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2600\" \t shop_cinema_money=\"1400\" \t\t\t\tshop_groggeryWaiter_money=\"1480\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1330\" shop_dogWaiter_money=\"1900\" \t\tshop_bellboyWaiter_money=\"2700\" \t\tshop_natatorWaiter_money=\"1400\"\t\tshop_ballWaiter_money=\"2600\"\tshop_dustmanWaiter_money=\"2900\" \tshop_dog_money=\"730\"\t\tshop_park_money=\"1850\"\tshop_fiddleWaiter_money=\"2580\"\tshop_pianoWaiter_money=\"1770\"\tshop_draw0_money=\"1620\"\tshop_draw1_money=\"1800\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1790\"\tshop_potted1_money=\"1760\"\tshop_potted2_money=\"2150\"/><file lv=\"11\" shop_tennis_money=\"700\" shop_natatorium_money=\"1000\" shop_room_money=\"300\" shop_table_money=\"200\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1580\" \t\tshop_bullpen_money2=\"1750\"\tshop_lift_money=\"1600\" shop_chef_money=\"900\" \tshop_speedup_money0=\"370\" \t\t\tshop_speedup_money1=\"790\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2600\" \t shop_cinema_money=\"1600\" \t\t\t\tshop_groggeryWaiter_money=\"1500\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1500\" \t\tshop_bellboyWaiter_money=\"2500\" \t\tshop_natatorWaiter_money=\"1800\"\t\tshop_ballWaiter_money=\"2500\"\tshop_dustmanWaiter_money=\"3100\"\tshop_dog_money=\"770\"\t\tshop_park_money=\"1880\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1820\"\tshop_draw0_money=\"1700\"\tshop_draw1_money=\"1820\"\tshop_draw2_money=\"2180\"\tshop_potted0_money=\"1760\"\tshop_potted1_money=\"1820\"\tshop_potted2_money=\"2000\"/><file lv=\"12\" shop_tennis_money=\"800\" shop_natatorium_money=\"900\" shop_room_money=\"350\" shop_table_money=\"200\" shop_bullpen_money0=\"1700\"\tshop_bullpen_money1=\"1550\" \t\tshop_bullpen_money2=\"1800\"\tshop_lift_money=\"1500\" shop_chef_money=\"900\" shop_speedup_money0=\"390\"\t\t\tshop_speedup_money1=\"800\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2500\" \t shop_cinema_money=\"1800\"\t\t\t\tshop_groggeryWaiter_money=\"1900\" shop_billiardsWaiter_money=\"1100\" shop_cinemaWaiter_money=\"1150\" shop_dogWaiter_money=\"1800\" \t\tshop_bellboyWaiter_money=\"2400\" \t\tshop_natatorWaiter_money=\"1780\"\t\tshop_ballWaiter_money=\"2200\"\tshop_dustmanWaiter_money=\"3500\" \tshop_dog_money=\"810\"\t\tshop_park_money=\"1900\"\tshop_fiddleWaiter_money=\"2700\"\tshop_pianoWaiter_money=\"1830\"\tshop_draw0_money=\"1680\"\tshop_draw1_money=\"1850\"\tshop_draw2_money=\"2150\"\tshop_potted0_money=\"1730\"\tshop_potted1_money=\"1880\"\tshop_potted2_money=\"1950\"/><file lv=\"13\" shop_tennis_money=\"800\" shop_natatorium_money=\"900\" shop_room_money=\"200\" shop_table_money=\"350\" shop_bullpen_money0=\"1900\" \tshop_bullpen_money1=\"1600\" \t\tshop_bullpen_money2=\"1750\"\tshop_lift_money=\"1600\" shop_chef_money=\"1100\" shop_speedup_money0=\"400\"\t\t\tshop_speedup_money1=\"800\"\t\tshop_groggery_money=\"720\" \t\tshop_billiards_money=\"2800\" \t shop_cinema_money=\"1700\"\t\t\t\tshop_groggeryWaiter_money=\"2000\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"2000\" \t\tshop_bellboyWaiter_money=\"2300\" \t\tshop_natatorWaiter_money=\"1600\"\t\tshop_ballWaiter_money=\"2700\"\tshop_dustmanWaiter_money=\"3200\" \tshop_dog_money=\"850\"\t\tshop_park_money=\"1900\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1880\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2200\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1860\"\tshop_potted2_money=\"2100\"/><file lv=\"14\" shop_tennis_money=\"700\" shop_natatorium_money=\"1000\" shop_room_money=\"400\" shop_table_money=\"250\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1630\" \t\tshop_bullpen_money2=\"1780\"\tshop_lift_money=\"1400\" shop_chef_money=\"1100\" \tshop_speedup_money0=\"420\"\t\t\tshop_speedup_money1=\"810\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2700\" \t shop_cinema_money=\"1900\"\t\t\t\tshop_groggeryWaiter_money=\"1700\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1350\" shop_dogWaiter_money=\"2000\" \t\tshop_bellboyWaiter_money=\"2500\" \t\tshop_natatorWaiter_money=\"2050\"\t\tshop_ballWaiter_money=\"2600\"\tshop_dustmanWaiter_money=\"3700\" \tshop_dog_money=\"850\"\t\tshop_park_money=\"1920\"\tshop_fiddleWaiter_money=\"2620\"\tshop_pianoWaiter_money=\"1880\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1900\"\tshop_potted2_money=\"2000\"/><file lv=\"15\" shop_tennis_money=\"700\" shop_natatorium_money=\"1100\" shop_room_money=\"300\" shop_table_money=\"400\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1650\" \t\tshop_bullpen_money2=\"1810\"\tshop_lift_money=\"1500\" shop_chef_money=\"900\" \tshop_speedup_money0=\"430\"\t\t\tshop_speedup_money1=\"830\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2900\" \t shop_cinema_money=\"2000\"\t\t\t\tshop_groggeryWaiter_money=\"1800\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"1700\" \t\tshop_bellboyWaiter_money=\"2400\" \t\tshop_natatorWaiter_money=\"1900\"\t\tshop_ballWaiter_money=\"2600\"\tshop_dustmanWaiter_money=\"3600\" \tshop_dog_money=\"900\"\t\tshop_park_money=\"1950\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1830\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1910\"\tshop_draw2_money=\"2250\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1800\"\tshop_potted2_money=\"2150\"/><file lv=\"16\" shop_tennis_money=\"750\" shop_natatorium_money=\"950\" shop_room_money=\"500\" shop_table_money=\"310\" shop_bullpen_money0=\"1500\" \tshop_bullpen_money1=\"1670\" \t\tshop_bullpen_money2=\"1850\"\tshop_lift_money=\"1500\" shop_chef_money=\"1000\" shop_speedup_money0=\"450\"\t\t\tshop_speedup_money1=\"850\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2600\" \t shop_cinema_money=\"2200\"\t\t\t\tshop_groggeryWaiter_money=\"1680\" shop_billiardsWaiter_money=\"1150\" shop_cinemaWaiter_money=\"1320\" shop_dogWaiter_money=\"2100\" \t\tshop_bellboyWaiter_money=\"2300\" \t\tshop_natatorWaiter_money=\"2200\"\t\tshop_ballWaiter_money=\"2700\"\tshop_dustmanWaiter_money=\"3800\" \tshop_dog_money=\"850\"\t\tshop_park_money=\"1900\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1880\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2200\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1860\"\tshop_potted2_money=\"2100\"/><file lv=\"17\" shop_tennis_money=\"600\" shop_natatorium_money=\"800\" shop_room_money=\"300\" shop_table_money=\"240\" shop_bullpen_money0=\"1700\" \tshop_bullpen_money1=\"1660\" \t\tshop_bullpen_money2=\"1830\"\tshop_lift_money=\"1700\" shop_chef_money=\"1000\" shop_speedup_money0=\"460\"\t\t\tshop_speedup_money1=\"880\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"3000\" \t shop_cinema_money=\"1900\"\t\t\t\tshop_groggeryWaiter_money=\"1700\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"2200\" \t\tshop_bellboyWaiter_money=\"2500\" \t\tshop_natatorWaiter_money=\"2200\"\t\tshop_ballWaiter_money=\"2900\"\tshop_dustmanWaiter_money=\"3700\" \tshop_dog_money=\"900\"\t\tshop_park_money=\"1950\"\tshop_fiddleWaiter_money=\"2750\"\tshop_pianoWaiter_money=\"1860\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1800\"\tshop_potted2_money=\"2200\"/><file lv=\"18\" shop_tennis_money=\"700\" shop_natatorium_money=\"1000\" shop_room_money=\"600\" shop_table_money=\"200\" shop_bullpen_money0=\"1700\"\tshop_bullpen_money1=\"1670\" \t\tshop_bullpen_money2=\"1850\"\tshop_lift_money=\"1600\" shop_chef_money=\"1200\" \tshop_speedup_money0=\"490\"\t\t\tshop_speedup_money1=\"900\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2700\" \t shop_cinema_money=\"2100\"\t\t\t\tshop_groggeryWaiter_money=\"1800\" shop_billiardsWaiter_money=\"1250\" shop_cinemaWaiter_money=\"1310\" shop_dogWaiter_money=\"2250\" \t\tshop_bellboyWaiter_money=\"2400\" \t\tshop_natatorWaiter_money=\"2100\"\t\tshop_ballWaiter_money=\"3000\"\tshop_dustmanWaiter_money=\"3700\" \tshop_dog_money=\"850\"\t\tshop_park_money=\"1900\"\tshop_fiddleWaiter_money=\"2680\"\tshop_pianoWaiter_money=\"1880\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2200\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1860\"\tshop_potted2_money=\"2100\"/><file lv=\"19\" shop_tennis_money=\"600\" shop_natatorium_money=\"1300\" shop_room_money=\"350\" shop_table_money=\"280\" shop_bullpen_money0=\"1800\" shop_bullpen_money1=\"1700\" \t \tshop_bullpen_money2=\"1880\"\tshop_lift_money=\"1600\" shop_chef_money=\"1100\" \tshop_speedup_money0=\"500\"\t\t\tshop_speedup_money1=\"930\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2800\" \t shop_cinema_money=\"2300\"\t\t\t\tshop_groggeryWaiter_money=\"1800\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"2200\" \t\tshop_bellboyWaiter_money=\"2300\" \t\tshop_natatorWaiter_money=\"1800\"\t\tshop_ballWaiter_money=\"3100\"\tshop_dustmanWaiter_money=\"3900\" \tshop_dog_money=\"800\"\t\tshop_park_money=\"1950\"\tshop_fiddleWaiter_money=\"2620\"\tshop_pianoWaiter_money=\"1920\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2100\"\tshop_potted0_money=\"1800\"\tshop_potted1_money=\"1900\"\tshop_potted2_money=\"2200\"/><file lv=\"20\" shop_tennis_money=\"1000\" shop_natatorium_money=\"1200\" shop_room_money=\"500\" shop_table_money=\"250\" shop_bullpen_money0=\"1700\" shop_bullpen_money1=\"1720\"\t\tshop_bullpen_money2=\"1900\"\tshop_lift_money=\"1500\" shop_chef_money=\"1250\" \tshop_speedup_money0=\"550\"\t\t\tshop_speedup_money1=\"1000\"\t\tshop_groggery_money=\"600\" \t\tshop_billiards_money=\"2700\" \t shop_cinema_money=\"2500\"\t\t\t\tshop_groggeryWaiter_money=\"1700\" shop_billiardsWaiter_money=\"1200\" shop_cinemaWaiter_money=\"1300\" shop_dogWaiter_money=\"2400\" \t\tshop_bellboyWaiter_money=\"2500\" \t\tshop_natatorWaiter_money=\"2100\"\t\tshop_ballWaiter_money=\"3000\"\tshop_dustmanWaiter_money=\"4000\" \tshop_dog_money=\"900\"\t\tshop_park_money=\"1960\"\tshop_fiddleWaiter_money=\"2880\"\tshop_pianoWaiter_money=\"1980\"\tshop_draw0_money=\"1650\"\tshop_draw1_money=\"1900\"\tshop_draw2_money=\"2200\"\tshop_potted0_money=\"1750\"\tshop_potted1_money=\"1960\"\tshop_potted2_money=\"2200\"/><file tennis_money=\"30\" /><file natatorium_money=\"40\" /><file bullpen_money1=\"40\" bullpen_money2=\"60\" bullpen_money3=\"100\"/><file chef_money=\"10\" /><file up_groggery_money=\"20\" up_billiards_money=\"50\" up_cinema_money=\"50\" up_dog_money=\"20\"\tup_park_money=\"30\" up_fiddleWaiter_money=\"10\"\tup_pianoWaiter_money=\"10\"\tup_draw0_money=\"20\"\tup_draw1_money=\"20\"\tup_draw2_money=\"20\"\tup_potted0_money=\"20\"\tup_potted1_money=\"20\"\tup_potted2_money=\"10\"/></data>";
my_xml = new XML(strXML);
my_xml.ignoreWhite = true;
len = my_xml.firstChild.childNodes.length;
trace("\u957F\u5EA6" + len);
var i = 0;
while (i < len) {
if (i < 20) {
var ob = new Object();
ob.lv = my_xml.firstChild.childNodes[i].attributes.lv;
ob.timeNum = my_xml.firstChild.childNodes[i].attributes.timeNum;
ob.pass_money = my_xml.firstChild.childNodes[i].attributes.pass_money;
ob.housing_money = my_xml.firstChild.childNodes[i].attributes.housing_money;
ob.dining_money = my_xml.firstChild.childNodes[i].attributes.dining_money;
ob.batting_money = my_xml.firstChild.childNodes[i].attributes.batting_money;
ob.swimming_money = my_xml.firstChild.childNodes[i].attributes.swimming_money;
ob.groggery_money = my_xml.firstChild.childNodes[i].attributes.groggery_money;
ob.billiards_money = my_xml.firstChild.childNodes[i].attributes.billiards_money;
ob.cinema_money = my_xml.firstChild.childNodes[i].attributes.cinema_money;
ob.dog_money = my_xml.firstChild.childNodes[i].attributes.dog_money;
ob.bellboy_money = my_xml.firstChild.childNodes[i].attributes.bellboy_money;
ob.park_money = my_xml.firstChild.childNodes[i].attributes.park_money;
objectArray.push(ob);
} else if (i < 40) {
var ob = new Object();
ob.shop_tennis_money = my_xml.firstChild.childNodes[i].attributes.shop_tennis_money;
ob.shop_natatorium_money = my_xml.firstChild.childNodes[i].attributes.shop_natatorium_money;
ob.shop_room_money = my_xml.firstChild.childNodes[i].attributes.shop_room_money;
ob.shop_table_money = my_xml.firstChild.childNodes[i].attributes.shop_table_money;
ob.shop_bullpen_money0 = my_xml.firstChild.childNodes[i].attributes.shop_bullpen_money0;
ob.shop_bullpen_money1 = my_xml.firstChild.childNodes[i].attributes.shop_bullpen_money1;
ob.shop_bullpen_money2 = my_xml.firstChild.childNodes[i].attributes.shop_bullpen_money2;
ob.shop_lift_money = my_xml.firstChild.childNodes[i].attributes.shop_lift_money;
ob.shop_chef_money = my_xml.firstChild.childNodes[i].attributes.shop_chef_money;
ob.shop_speedup_money0 = my_xml.firstChild.childNodes[i].attributes.shop_speedup_money0;
ob.shop_speedup_money1 = my_xml.firstChild.childNodes[i].attributes.shop_speedup_money1;
ob.shop_groggery_money = my_xml.firstChild.childNodes[i].attributes.shop_groggery_money;
ob.shop_billiards_money = my_xml.firstChild.childNodes[i].attributes.shop_billiards_money;
ob.shop_cinema_money = my_xml.firstChild.childNodes[i].attributes.shop_cinema_money;
ob.shop_groggeryWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_groggeryWaiter_money;
ob.shop_billiardsWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_billiardsWaiter_money;
ob.shop_cinemaWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_cinemaWaiter_money;
ob.shop_dogWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_dogWaiter_money;
ob.shop_bellboyWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_bellboyWaiter_money;
ob.shop_natatorWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_natatorWaiter_money;
ob.shop_ballWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_ballWaiter_money;
ob.shop_dustmanWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_dustmanWaiter_money;
ob.shop_dog_money = my_xml.firstChild.childNodes[i].attributes.shop_dog_money;
ob.shop_park_money = my_xml.firstChild.childNodes[i].attributes.shop_park_money;
ob.shop_fiddleWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_fiddleWaiter_money;
ob.shop_pianoWaiter_money = my_xml.firstChild.childNodes[i].attributes.shop_pianoWaiter_money;
ob.shop_draw0_money = my_xml.firstChild.childNodes[i].attributes.shop_draw0_money;
ob.shop_draw1_money = my_xml.firstChild.childNodes[i].attributes.shop_draw1_money;
ob.shop_draw2_money = my_xml.firstChild.childNodes[i].attributes.shop_draw2_money;
ob.shop_potted0_money = my_xml.firstChild.childNodes[i].attributes.shop_potted0_money;
ob.shop_potted1_money = my_xml.firstChild.childNodes[i].attributes.shop_potted1_money;
ob.shop_potted2_money = my_xml.firstChild.childNodes[i].attributes.shop_potted2_money;
trace(ob.shop_potted2_money);
objectShopArray.push(ob);
} else if (i == 40) {
_root.tennis_money = int(my_xml.firstChild.childNodes[i].attributes.tennis_money);
trace(_root.tennis_money);
} else if (i == 41) {
_root.natatorium_money = int(my_xml.firstChild.childNodes[i].attributes.natatorium_money);
} else if (i == 42) {
_root.bullpen_money1 = int(my_xml.firstChild.childNodes[i].attributes.bullpen_money1);
_root.bullpen_money2 = int(my_xml.firstChild.childNodes[i].attributes.bullpen_money2);
_root.bullpen_money3 = int(my_xml.firstChild.childNodes[i].attributes.bullpen_money3);
} else if (i == 43) {
_root.chef_money = int(my_xml.firstChild.childNodes[i].attributes.chef_money);
trace(my_xml.firstChild.childNodes[i].attributes.chef_money);
} else {
_root.up_groggery_money = int(my_xml.firstChild.childNodes[i].attributes.up_groggery_money);
_root.up_billiards_money = int(my_xml.firstChild.childNodes[i].attributes.up_billiards_money);
_root.up_cinema_money = int(my_xml.firstChild.childNodes[i].attributes.up_cinema_money);
_root.up_dog_money = int(my_xml.firstChild.childNodes[i].attributes.up_dog_money);
_root.up_park_money = int(my_xml.firstChild.childNodes[i].attributes.up_park_money);
_root.up_fiddleWaiter_money = int(my_xml.firstChild.childNodes[i].attributes.up_fiddleWaiter_money);
_root.up_pianoWaiter_money = int(my_xml.firstChild.childNodes[i].attributes.up_pianoWaiter_money);
_root.up_draw0_money = int(my_xml.firstChild.childNodes[i].attributes.up_draw0_money);
_root.up_draw1_money = int(my_xml.firstChild.childNodes[i].attributes.up_draw1_money);
_root.up_draw2_money = int(my_xml.firstChild.childNodes[i].attributes.up_draw2_money);
_root.up_potted0_money = int(my_xml.firstChild.childNodes[i].attributes.up_potted0_money);
_root.up_potted1_money = int(my_xml.firstChild.childNodes[i].attributes.up_potted1_money);
_root.up_potted2_money = int(my_xml.firstChild.childNodes[i].attributes.up_potted2_money);
trace(_root.up_potted2_money);
}
i++;
}
_root.gotoAndStop(10);
Frame 10
stop();
stopAllSounds();
_root.setSleepNum = 2;
_root.setDaisNum = 0;
_root.helpID = 1;
_root.yncourt = false;
_root.ynnatatorium = false;
_root.ynlift = false;
_root.ynchef = false;
_root.isGroggery = false;
_root.isBilliards = false;
_root.isCinema = false;
_root.isSpeedup = false;
_root.speedup_lv = 0;
_root.isGroggeryWaiter = false;
_root.isBilliardsWaiter = false;
_root.isDogWaiter = false;
_root.isCinemaWaiter = false;
_root.isNatatorWaiter = false;
_root.isBallWaiter = false;
_root.isDellboyWaiter = false;
_root.isDustmanWaiter = false;
_root.isDogRoom = false;
_root.isParkRoom = false;
_root.isFiddleWaiter = false;
_root.isPianoWaiter = false;
_root.isDraw0 = false;
_root.isDraw1 = false;
_root.isDraw2 = false;
_root.isPotted0 = false;
_root.isPotted1 = false;
_root.isPotted2 = false;
_root.fen = 0;
_root.lv = 0;
_root.room_lv = _root.setSleepNum / 2;
_root.table_lv = (_root.setDaisNum / 2) + 1;
_root.bullpen_lv = 0;
_root._game_name = "bedandbreakfast2";
_root.ynbackSound = false;
_root.ynsound = false;
stop();
return();
//infinite loop
return();
//infinite loop
Instance of Symbol 77 MovieClip in Frame 11
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Frame 19
_root.helpID = -1;
_root.fen = 0;
_root.gotoAndStop(20);
Frame 20
function callback() {
if (_root.ynmain == false) {
_root.hNum = int((_timeNum % 3600) / 60).toString();
hh = _root.hNum;
if (_root.hNum.length == 1) {
hh = "0" + _root.hNum;
}
ss = int((_timeNum % 3600) % 60).toString();
if (ss.length == 1) {
ss = "0" + ss;
}
_root.timeNum = (hh + ":") + ss;
_root._timeNum++;
if (_root._timeNum >= 720) {
_root.AMPM.gotoAndStop(2);
}
if (_root._timeNum >= 1260) {
clearInterval(intervalID);
if (_root.fen >= _root.pass_moneyFull) {
levelcompleteSound.start();
_root.pp_mc.gotoAndStop(5);
} else {
_root.gotoAndStop(30);
}
}
}
}
function setLv() {
_root.timeNum = int(_root.objectArray[_root.lv].timeNum);
_root.pass_money = int(_root.objectArray[_root.lv].pass_money);
_root.housing_money = int(_root.objectArray[_root.lv].housing_money);
_root.dining_money = int(_root.objectArray[_root.lv].dining_money);
_root.batting_money = int(_root.objectArray[_root.lv].batting_money);
_root.swimming_money = int(_root.objectArray[_root.lv].swimming_money);
_root.groggery_money = int(_root.objectArray[_root.lv].groggery_money);
_root.billiards_money = int(_root.objectArray[_root.lv].billiards_money);
_root.cinema_money = int(_root.objectArray[_root.lv].cinema_money);
_root.dog_money = int(_root.objectArray[_root.lv].dog_money);
_root.bellboy_money = int(_root.objectArray[_root.lv].bellboy_money);
_root.park_money = int(_root.objectArray[_root.lv].park_money);
_root.pass_moneyFull = int(_root.pass_money + _root.fen);
_root.m1 = int(_root.objectShopArray[_root.lv].shop_tennis_money);
_root.m2 = int(_root.objectShopArray[_root.lv].shop_natatorium_money);
_root.m3 = int(_root.objectShopArray[_root.lv].shop_room_money);
_root.m4 = int(_root.objectShopArray[_root.lv].shop_table_money);
if (_root.bullpen_lv == 0) {
_root.m5 = int(_root.objectShopArray[_root.lv].shop_bullpen_money0);
} else if (_root.bullpen_lv == 1) {
_root.m5 = int(_root.objectShopArray[_root.lv].shop_bullpen_money1);
} else {
_root.m5 = int(_root.objectShopArray[_root.lv].shop_bullpen_money2);
}
_root.m6 = int(_root.objectShopArray[_root.lv].shop_lift_money);
_root.m7 = int(_root.objectShopArray[_root.lv].shop_chef_money);
if (_root.speedup_lv == 0) {
_root.m8 = int(_root.objectShopArray[_root.lv].shop_speedup_money0);
} else {
_root.m8 = int(_root.objectShopArray[_root.lv].shop_speedup_money1);
}
_root.m9 = int(_root.objectShopArray[_root.lv].shop_groggery_money);
_root.m10 = int(_root.objectShopArray[_root.lv].shop_billiards_money);
_root.m11 = int(_root.objectShopArray[_root.lv].shop_cinema_money);
_root.m12 = int(_root.objectShopArray[_root.lv].shop_groggeryWaiter_money);
_root.m13 = int(_root.objectShopArray[_root.lv].shop_billiardsWaiter_money);
_root.m14 = int(_root.objectShopArray[_root.lv].shop_cinemaWaiter_money);
_root.m15 = int(_root.objectShopArray[_root.lv].shop_dogWaiter_money);
_root.m16 = int(_root.objectShopArray[_root.lv].shop_bellboyWaiter_money);
_root.m17 = int(_root.objectShopArray[_root.lv].shop_natatorWaiter_money);
_root.m18 = int(_root.objectShopArray[_root.lv].shop_ballWaiter_money);
_root.m19 = int(_root.objectShopArray[_root.lv].shop_dustmanWaiter_money);
_root.m20 = int(_root.objectShopArray[_root.lv].shop_dog_money);
_root.m21 = int(_root.objectShopArray[_root.lv].shop_park_money);
_root.m22 = int(_root.objectShopArray[_root.lv].shop_fiddleWaiter_money);
_root.m23 = int(_root.objectShopArray[_root.lv].shop_pianoWaiter_money);
_root.m24 = int(_root.objectShopArray[_root.lv].shop_draw0_money);
_root.m25 = int(_root.objectShopArray[_root.lv].shop_draw1_money);
_root.m26 = int(_root.objectShopArray[_root.lv].shop_draw2_money);
_root.m27 = int(_root.objectShopArray[_root.lv].shop_potted0_money);
_root.m28 = int(_root.objectShopArray[_root.lv].shop_potted1_money);
_root.m29 = int(_root.objectShopArray[_root.lv].shop_potted2_money);
trace("\u5173\u5361=" + _root.lv);
trace("m1=" + _root.m1);
}
function backSoundFu(id_temp) {
if (id_temp == 1) {
if (random(2) == 1) {
backSound.start(0, 999);
} else {
backSound.start(169, 999);
}
trace("\u51FA\u58F0");
_root.ynbackSound = false;
} else {
backSound.stop();
_root.ynbackSound = true;
}
}
function soundFu(id_temp) {
if (id_temp == 1) {
_root.ynsound = false;
cleaningSound = new Sound();
cleaningSound.attachSound("cleaning");
deskbellSound = new Sound();
deskbellSound.attachSound("deskbell");
elevatorSound = new Sound();
elevatorSound.attachSound("elevator");
expensiveroomSound = new Sound();
expensiveroomSound.attachSound("expensiveroomsound");
kitchenSound = new Sound();
kitchenSound.attachSound("kitchen");
levelcompleteSound = new Sound();
levelcompleteSound.attachSound("levelcomplete");
swimmingpoolSound = new Sound();
swimmingpoolSound.attachSound("swimmingpool");
tennisPlaySound = new Sound();
tennisPlaySound.attachSound("tennisPlay");
takingmoneySound = new Sound();
takingmoneySound.attachSound("takingmoney");
} else {
_root.ynsound = true;
cleaningSound = null;
deskbellSound = null;
elevatorSound = null;
expensiveroomSound = null;
kitchenSound = null;
levelcompleteSound = null;
swimmingpoolSound = null;
tennisPlaySound = null;
takingmoneySound = null;
}
}
_root.thisFen = int(_root.fen);
stop();
stopAllSounds();
_root.ynmain = false;
clearInterval(intervalID);
_root._timeNum = 360;
_root.hNum = 0;
callback();
setLv();
if (_root.helpID == -1) {
var intervalID = setInterval(callback, _root.timeNum);
} else {
_root.timeNum = "06:00";
}
if (_root.ynchef == true) {
_root.dining_money = _root.dining_money + int(_root.chef_money);
}
if (_root.isFiddleWaiter == true) {
_root.dining_money = _root.dining_money + int(_root.up_fiddleWaiter_money);
}
if (_root.isPianoWaiter == true) {
_root.dining_money = _root.dining_money + int(_root.up_pianoWaiter_money);
}
if (_root.yncourt == true) {
_root.housing_money = _root.housing_money + int(_root.tennis_money);
}
if (_root.ynnatatorium == true) {
_root.housing_money = _root.housing_money + int(_root.natatorium_money);
}
if (_root.isGroggery == true) {
_root.housing_money = _root.housing_money + _root.up_groggery_money;
}
if (_root.isBilliards == true) {
_root.housing_money = _root.housing_money + _root.up_billiards_money;
}
if (_root.isCinema == true) {
_root.housing_money = _root.housing_money + _root.up_cinema_money;
}
if (_root.isDogRoom == true) {
_root.housing_money = _root.housing_money + _root.up_dog_money;
}
if (_root.isParkRoom == true) {
_root.housing_money = _root.housing_money + _root.up_park_money;
}
if (_root.isDraw0 == true) {
_root.housing_money = _root.housing_money + _root.up_draw0_money;
}
if (_root.isDraw1 == true) {
_root.housing_money = _root.housing_money + _root.up_draw1_money;
}
if (_root.isDraw2 == true) {
_root.housing_money = _root.housing_money + _root.up_draw2_money;
}
if (_root.isPotted0 == true) {
_root.housing_money = _root.housing_money + _root.up_potted0_money;
}
if (_root.isPotted1 == true) {
_root.housing_money = _root.housing_money + _root.up_potted1_money;
}
if (_root.isPotted2 == true) {
_root.housing_money = _root.housing_money + _root.up_potted2_money;
}
_root.bullpen_moneyFull = int(_root.housing_money) + int(_root["bullpen_money" + _root.bullpen_lv]);
backSound = new Sound();
backSound.attachSound("backSound");
if (_root.ynbackSound == false) {
backSoundFu(1);
backSound_mc.gotoAndStop(1);
} else {
backSound_mc.gotoAndStop(2);
backSoundFu(2);
}
if (_root.ynsound == false) {
soundFu(1);
soun_mc.gotoAndStop(1);
} else {
soundFu(2);
soun_mc.gotoAndStop(2);
}
if (_root.helpID == 1) {
_root.say_mc.gotoAndStop(1);
} else {
_root.say_mc.gotoAndStop(11);
}
_root.lvText = _root.lv + 1;
if (_root.say_mc._currentframe == 11) {
btnUndo_mc._visible = true;
} else {
btnUndo_mc._visible = false;
}
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
Instance of Symbol 1037 MovieClip in Frame 20
on (release) {
_root.pp_mc.gotoAndStop(2);
}
Instance of Symbol 77 MovieClip in Frame 20
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Frame 21
function cashFu(ob) {
if (int(_root["m" + ob.shopID]) > int(_root.fen)) {
_root.tipCash_mc.gotoAndStop(3);
} else {
_root.tipCash_mc.gotoAndStop(2);
}
_root.thisCash = int(_root["m" + ob.shopID]);
_root.keyid = ob.shopID;
}
function cashOKFu() {
_root.fen = _root.fen - int(_root["m" + _root.keyid]);
switch (_root.keyid) {
case 1 :
_root.yncourt = true;
break;
case 2 :
_root.ynnatatorium = true;
break;
case 3 :
_root.setSleepNum++;
if (_root.setSleepNum > 6) {
_root.setSleepNum = 6;
}
_root.room_lv = int(_root.setSleepNum - 1);
break;
case 4 :
_root.setDaisNum = _root.setDaisNum + 2;
if (_root.setDaisNum >= 6) {
_root.setDaisNum = 6;
}
_root.table_lv = int(_root.setDaisNum / 2) + 1;
break;
case 5 :
_root.bullpen_lv++;
if (_root.bullpen_lv >= 3) {
_root.bullpen_lv = 3;
}
if (_root.bullpen_lv == 0) {
_root.m5 = int(_root.objectShopArray[_root.lv].shop_bullpen_money0);
} else if (_root.bullpen_lv == 1) {
_root.m5 = int(_root.objectShopArray[_root.lv].shop_bullpen_money1);
} else {
_root.m5 = int(_root.objectShopArray[_root.lv].shop_bullpen_money2);
}
break;
case 6 :
_root.ynlift = true;
break;
case 7 :
_root.ynchef = true;
break;
case 8 :
_root.isSpeedup = true;
_root.speedup_lv++;
if (_root.speedup_lv >= 2) {
_root.speedup_lv = 2;
}
if (_root.speedup_lv == 0) {
_root.m8 = int(_root.objectShopArray[_root.lv].shop_speedup_money0);
} else {
_root.m8 = int(_root.objectShopArray[_root.lv].shop_speedup_money1);
}
break;
case 9 :
_root.isGroggery = true;
break;
case 10 :
_root.isBilliards = true;
break;
case 11 :
_root.isCinema = true;
break;
case 12 :
_root.isGroggeryWaiter = true;
break;
case 13 :
_root.isBilliardsWaiter = true;
break;
case 14 :
_root.isCinemaWaiter = true;
break;
case 15 :
_root.isDogWaiter = true;
break;
case 16 :
_root.isDellboyWaiter = true;
break;
case 17 :
_root.isNatatorWaiter = true;
break;
case 18 :
_root.isBallWaiter = true;
break;
case 19 :
_root.isDustmanWaiter = true;
break;
case 20 :
_root.isDogRoom = true;
break;
case 21 :
_root.isParkRoom = true;
break;
case 22 :
_root.isFiddleWaiter = true;
break;
case 23 :
_root.isPianoWaiter = true;
break;
case 24 :
_root.isDraw0 = true;
break;
case 25 :
_root.isDraw1 = true;
break;
case 26 :
_root.isDraw2 = true;
break;
case 27 :
_root.isPotted0 = true;
break;
case 28 :
_root.isPotted1 = true;
break;
case 29 :
_root.isPotted2 = true;
}
shopBeginFu();
shopOver(_root.shopFull_mc["shop" + _root.keyid]);
}
function shopBeginFu() {
var _local4 = 1;
while (_local4 <= 29) {
var _local3 = _root.shopFull_mc["shop" + _local4];
if (_local3 != null) {
_local3.shopID = _local4;
trace(_local3._name);
_local3.onPress = function () {
shopAI(this);
};
_local3.onRollOver = function () {
shopOver(this);
};
_local3.onRollOut = function () {
shopOut(this);
};
isVisibleFu(_local3);
}
_local4++;
}
}
function shopAI(ob) {
if (((ob.shopID == 3) || (ob.shopID == 4)) || (ob.shopID == 5)) {
if (ob._currentframe != 1) {
cashFu(ob);
}
} else if (ob._currentframe == 1) {
cashFu(ob);
} else {
tipCash_mc.gotoAndStop(4);
}
}
function isVisibleFu(ob) {
switch (ob.shopID) {
case 1 :
if (_root.yncourt == true) {
ob.gotoAndStop(2);
}
break;
case 2 :
if (_root.ynnatatorium == true) {
ob.gotoAndStop(2);
}
break;
case 3 :
if (_root.setSleepNum < 6) {
ob.gotoAndStop(2);
} else {
ob.gotoAndStop(1);
}
break;
case 4 :
if (_root.setDaisNum < 6) {
ob.gotoAndStop(2);
} else {
ob.gotoAndStop(1);
}
break;
case 5 :
if (_root.bullpen_lv == 0) {
ob.gotoAndStop(2);
} else if (_root.bullpen_lv < 3) {
ob.gotoAndStop(3);
} else {
ob.gotoAndStop(1);
}
break;
case 6 :
if (_root.ynlift == true) {
ob.gotoAndStop(2);
}
break;
case 7 :
if (_root.ynchef == true) {
ob.gotoAndStop(2);
}
break;
case 8 :
if (_root.speedup_lv <= 1) {
ob.gotoAndStop(1);
} else {
ob.gotoAndStop(2);
}
break;
case 9 :
if (_root.isGroggery == true) {
ob.gotoAndStop(2);
}
break;
case 10 :
if (_root.isBilliards == true) {
ob.gotoAndStop(2);
}
break;
case 11 :
if (_root.isCinema == true) {
ob.gotoAndStop(2);
}
break;
case 12 :
if ((_root.isGroggeryWaiter == true) || (_root.isGroggery == false)) {
ob.gotoAndStop(2);
} else {
ob.gotoAndStop(1);
}
break;
case 13 :
if ((_root.isBilliardsWaiter == true) || (_root.isBilliards == false)) {
ob.gotoAndStop(2);
}
break;
case 14 :
if ((_root.isCinemaWaiter == true) || (_root.isCinema == false)) {
ob.gotoAndStop(2);
}
break;
case 15 :
if ((_root.isDogWaiter == true) || (_root.isDogRoom == false)) {
ob.gotoAndStop(2);
}
break;
case 16 :
if (_root.isDellboyWaiter == true) {
ob.gotoAndStop(2);
}
break;
case 17 :
if ((_root.isNatatorWaiter == true) || (_root.ynnatatorium == false)) {
ob.gotoAndStop(2);
}
break;
case 18 :
if ((_root.isBallWaiter == true) || (_root.yncourt == false)) {
ob.gotoAndStop(2);
}
break;
case 19 :
if (_root.isDustmanWaiter == true) {
ob.gotoAndStop(2);
}
break;
case 20 :
if (_root.isDogRoom == true) {
ob.gotoAndStop(2);
}
break;
case 21 :
if (_root.isParkRoom == true) {
ob.gotoAndStop(2);
}
break;
case 22 :
if (_root.isFiddleWaiter == true) {
ob.gotoAndStop(2);
}
break;
case 23 :
if (_root.isPianoWaiter == true) {
ob.gotoAndStop(2);
}
break;
case 24 :
if (_root.isDraw0 == true) {
ob.gotoAndStop(2);
}
break;
case 25 :
if (_root.isDraw1 == true) {
ob.gotoAndStop(2);
}
break;
case 26 :
if (_root.isDraw2 == true) {
ob.gotoAndStop(2);
}
break;
case 27 :
if (_root.isPotted0 == true) {
ob.gotoAndStop(2);
}
break;
case 28 :
if (_root.isPotted1 == true) {
ob.gotoAndStop(2);
}
break;
case 29 :
if (_root.isPotted2 != true) {
break;
}
ob.gotoAndStop(2);
}
}
function shopOver(ob) {
switch (ob.shopID) {
case 1 :
textSay.text = "Buy a tennis court!";
break;
case 2 :
textSay.text = "Buy a swimming pool!";
break;
case 3 :
textSay.text = "Buy an extra room!";
break;
case 4 :
textSay.text = "Upgrade the restaurant!";
break;
case 5 :
if (_root.bullpen_lv == 0) {
textSay.text = "Get a presidential suite, make more money!";
} else {
textSay.text = "Upgrade your presidential suite.";
}
break;
case 6 :
textSay.text = "Buy an elevator!";
break;
case 7 :
textSay.text = "Get a chef!";
break;
case 8 :
textSay.text = "Buy rocket boots for faster movement!";
break;
case 9 :
textSay.text = "Buy a bar!";
break;
case 10 :
textSay.text = "Buy a snooker room!";
break;
case 11 :
textSay.text = "Buy a projection room!";
break;
case 12 :
textSay.text = "Get a bartender! ";
break;
case 13 :
textSay.text = "Get waitress for snooker room!";
break;
case 14 :
textSay.text = "Get a projectionist!";
break;
case 15 :
textSay.text = "Get a dog walker for guest pets!";
break;
case 16 :
textSay.text = "Get a Bell-boy/girl";
break;
case 17 :
textSay.text = "Get a swimming pool cleaner!";
break;
case 18 :
textSay.text = "Get a tennis coach!";
break;
case 19 :
textSay.text = "Get a room cleaner!";
break;
case 20 :
textSay.text = "Get pet accommodation for your guest pets.";
break;
case 21 :
textSay.text = "Add parking spaces to your hotel.";
break;
case 22 :
textSay.text = "Get a violinist - earn more money per meal!";
break;
case 23 :
textSay.text = "Get a pianoist - earn more money per meal!";
break;
case 24 :
textSay.text = "Get a painting - attracts guests, make more money!";
break;
case 25 :
textSay.text = "Get a painting - attracts guests, make more money!";
break;
case 26 :
textSay.text = "Get a painting - attracts guests, make more money!";
break;
case 27 :
textSay.text = "Get a plant - attracts guests,make more money!";
break;
case 28 :
textSay.text = "Get a plant - attracts guests,make more money!";
break;
case 29 :
textSay.text = "Get a plant - attracts guests,make more money!";
}
}
function shopOut(ob) {
}
stop();
stopAllSounds();
_root.keyid = 0;
btnL_mc._visible = false;
btnR_mc._visible = true;
shopSound = new Sound();
shopSound.attachSound("shopSound");
if (_root.ynbackSound == false) {
shopSound.start(0, 999);
} else {
shopSound.stop();
}
shopGotoID = 1;
shopBeginFu();
Instance of Symbol 1218 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.yncourt == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1232 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.ynnatatorium == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1178 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.setSleepNum < 6) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1187 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.setDaisNum < 6) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1199 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.bullpen_lv == 0) {
this.gotoAndStop(2);
} else if (_root.bullpen_lv < 3) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1207 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.ynlift == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1258 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.ynchef == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 30
stop();
return();
//infinite loop
return();
//infinite loop
return();
//infinite loop
Frame 32
stop();
_root.setSleepNum = 2;
_root.setDaisNum = 0;
_root.yncourt = false;
_root.ynnatatorium = false;
_root.ynlift = false;
_root.ynchef = false;
_root.isGroggery = false;
_root.isBilliards = false;
_root.isCinema = false;
_root.isSpeedup = false;
_root.speedup_lv = 0;
_root.isGroggeryWaiter = false;
_root.isBilliardsWaiter = false;
_root.isDogWaiter = false;
_root.isCinemaWaiter = false;
_root.isNatatorWaiter = false;
_root.isBallWaiter = false;
_root.isDellboyWaiter = false;
_root.isDustmanWaiter = false;
_root.isDogRoom = false;
_root.isParkRoom = false;
_root.isFiddleWaiter = false;
_root.isPianoWaiter = false;
_root.isDraw0 = false;
_root.isDraw1 = false;
_root.isDraw2 = false;
_root.isPotted0 = false;
_root.isPotted1 = false;
_root.isPotted2 = false;
_root.lv = 0;
_root.room_lv = _root.setSleepNum / 2;
_root.table_lv = (_root.setDaisNum / 2) + 1;
_root.bullpen_lv = 0;
Instance of Symbol 1425 MovieClip in Frame 32
//component parameters
onClipEvent (construct) {
_game_name = "bedandbreakfast2";
score_var = "_root.fen";
}
Symbol 5 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local2 = int((_local4 / _local3) * 100);
num_txt.text = _local2 + "%";
trace(_local2);
};
Symbol 9 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height * 4) / 10);
Symbol 9 MovieClip Frame 22
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
if (_local3 == all) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
delete this.onEnterFrame;
}
}
};
Symbol 1472 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1473 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1474 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.1 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1475 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1476 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1477 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
onRelease = function () {
getURL ("http://www.freeworldgroup.com");
};
Symbol 47 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
onEnterFrame = function () {
if (_currentframe > 100) {
delete this.onEnterFrame;
} else {
_root.stop();
}
};
Symbol 47 MovieClip Frame 146
stop();
_root.play();
Symbol 74 Button
on (release) {
gotoAndStop (239);
}
Symbol 80 Button
on (release) {
getURL ("http://www.freeworldgroup.com", "_blank");
}
Symbol 131 Button
on (release) {
_root.gotoAndStop(20);
}
Symbol 132 Button
on (release) {
_root.helpID = 1;
_root.gotoAndStop(20);
}
Symbol 133 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 134 Button
on (release) {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + _root._game_name, "_blank");
}
Symbol 135 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games8/gameindex/bedandbreakfast.htm", "_blank");
}
Symbol 137 Button
on (release) {
_root.gotoAndStop(11);
}
Instance of Symbol 77 MovieClip in Symbol 138 MovieClip Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 138 MovieClip Frame 239
stop();
Symbol 148 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
_parent.ballClew_mc.gotoAndStop(_parent.ballClew_mc._totalframes);
Symbol 190 MovieClip Frame 2
_parent.ballClew_mc.gotoAndStop(1);
_root.tennisPlaySound.start(0, 3);
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
eNum = 0;
ran = 100 + random(500);
}
onClipEvent (enterFrame) {
eNum++;
if (eNum > ran) {
_root.gameFull_mc.natatorWin(_parent);
}
}
Instance of Symbol 194 MovieClip in Symbol 203 MovieClip Frame 2
onClipEvent (load) {
eNum = 0;
ran = 100 + random(500);
}
onClipEvent (enterFrame) {
eNum++;
if (eNum > ran) {
_root.gameFull_mc.natatorWin(_parent);
}
}
Instance of Symbol 196 MovieClip in Symbol 203 MovieClip Frame 3
onClipEvent (load) {
eNum = 0;
ran = 100 + random(500);
}
onClipEvent (enterFrame) {
eNum++;
if (eNum > ran) {
_root.gameFull_mc.natatorWin(_parent);
}
}
Instance of Symbol 198 MovieClip in Symbol 203 MovieClip Frame 4
onClipEvent (load) {
eNum = 0;
ran = 100 + random(500);
}
onClipEvent (enterFrame) {
eNum++;
if (eNum > ran) {
_root.gameFull_mc.natatorWin(_parent);
}
}
Instance of Symbol 200 MovieClip in Symbol 203 MovieClip Frame 5
onClipEvent (load) {
eNum = 0;
ran = 100 + random(500);
}
onClipEvent (enterFrame) {
eNum++;
if (eNum > ran) {
_root.gameFull_mc.natatorWin(_parent);
}
}
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 6
onClipEvent (load) {
eNum = 0;
ran = 100 + random(500);
}
onClipEvent (enterFrame) {
eNum++;
if (eNum > ran) {
_root.gameFull_mc.natatorWin(_parent);
}
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 14
stop();
_parent.man.gotoAndStop(random(6) + 1);
Symbol 276 MovieClip Frame 14
stop();
_parent.man.gotoAndStop(random(6) + 1);
Symbol 279 MovieClip Frame 14
stop();
_parent.man.gotoAndStop(random(6) + 1);
Symbol 283 MovieClip Frame 14
stop();
_parent.man.gotoAndStop(random(6) + 1);
Symbol 284 MovieClip Frame 299
_root.gameFull_mc.parkBegin(_parent.id);
Symbol 285 MovieClip Frame 299
_root.gameFull_mc.parkBegin(_parent.id);
Symbol 286 MovieClip Frame 299
_root.gameFull_mc.parkBegin(_parent.id);
Symbol 287 MovieClip Frame 299
_root.gameFull_mc.parkBegin(_parent.id);
Symbol 288 MovieClip Frame 6
man.gotoAndStop(man._totalframes);
Symbol 288 MovieClip Frame 7
man.gotoAndStop(man._totalframes);
Symbol 288 MovieClip Frame 8
man.gotoAndStop(man._totalframes);
Symbol 288 MovieClip Frame 9
man.gotoAndStop(man._totalframes);
Symbol 288 MovieClip Frame 12
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 20
_parent.gotoAndStop(_root.gameFull_mc.lifiNextGoto);
Symbol 344 MovieClip Frame 41
stop();
_root.gameFull_mc.player_mc._visible = true;
Symbol 345 MovieClip Frame 25
_parent.gotoAndStop(_root.gameFull_mc.lifiNextGoto);
Symbol 346 MovieClip Frame 33
_parent.gotoAndStop(_root.gameFull_mc.lifiNextGoto);
Symbol 351 MovieClip Frame 20
stop();
_root.gameFull_mc.player_mc._visible = true;
Symbol 352 MovieClip Frame 25
stop();
_root.gameFull_mc.player_mc._visible = true;
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
_root.gameFull_mc.player_mc._visible = false;
Symbol 353 MovieClip Frame 3
_root.elevatorSound.start(1.4);
_root.gameFull_mc.player_mc._visible = false;
Symbol 353 MovieClip Frame 4
_root.elevatorSound.start(1.4);
_root.gameFull_mc.player_mc._visible = false;
Symbol 353 MovieClip Frame 7
_root.elevatorSound.start(1.4);
_root.gameFull_mc.player_mc._visible = false;
Symbol 353 MovieClip Frame 8
_root.elevatorSound.start(1.4);
_root.gameFull_mc.player_mc._visible = false;
Symbol 353 MovieClip Frame 9
stop();
Instance of Symbol 374 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (load) {
i = 0;
ran = random(100) + 50;
}
onClipEvent (enterFrame) {
if (_root.ynmain == false) {
if (_root.helpID != -1) {
if (_root.say_mc._currentframe == 7) {
_parent._parent.play();
}
} else {
i++;
if (i == ran) {
_parent._parent.play();
}
}
}
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
play();
Symbol 376 MovieClip Frame 21
stop();
Symbol 376 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 382 MovieClip Frame 299
if (_parent._currentframe == 1) {
_parent.gotoAndStop(2);
} else if (_parent._currentframe == 2) {
_parent.gotoAndStop(3);
} else {
_parent._parent.yndie = true;
_root.gameFull_mc.dieNewFu(_parent._parent);
}
Symbol 387 MovieClip Frame 1
stop();
Instance of Symbol 382 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
ynaction = false;
}
onClipEvent (enterFrame) {
if (_root.helpID == -1) {
if (ynaction == false) {
if (_root.ynmain == true) {
ynaction = true;
stop();
}
} else if (_root.ynmain == false) {
ynaction = false;
play();
}
} else {
stop();
}
}
Instance of Symbol 382 MovieClip in Symbol 387 MovieClip Frame 2
onClipEvent (load) {
ynaction = false;
}
onClipEvent (enterFrame) {
if (_root.helpID == -1) {
if (ynaction == false) {
if (_root.ynmain == true) {
ynaction = true;
stop();
}
} else if (_root.ynmain == false) {
ynaction = false;
play();
}
} else {
stop();
}
}
Symbol 388 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
play();
Symbol 394 MovieClip Frame 21
stop();
Symbol 394 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
play();
Symbol 400 MovieClip Frame 21
stop();
Symbol 400 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
play();
Symbol 406 MovieClip Frame 21
stop();
Symbol 406 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
play();
Symbol 411 MovieClip Frame 21
stop();
Symbol 411 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
play();
Symbol 416 MovieClip Frame 21
stop();
Symbol 416 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
play();
Symbol 422 MovieClip Frame 21
stop();
Symbol 422 MovieClip Frame 35
_root.gameFull_mc.sleepEndFu(_parent);
Symbol 423 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip "bag_mc" in Symbol 423 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.brow_mc._currentframe == 4) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 437 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
houseNo = _root.gameFull_mc.houseNo;
Symbol 510 MovieClip Frame 31
if (_root.helpID != -1) {
_root.say_mc.gotoAndStop(3);
}
_root.gameFull_mc.setinFu();
_parent.gotoAndStop(2);
Symbol 511 MovieClip Frame 1
stop();
trace(_parent.inArray[0].bag_mc);
_parent.inArray[0].brow_mc.gotoAndStop(_parent.inArray[0].brow_mc._totalframes);
Symbol 513 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 50
stop();
_root.gameFull_mc.daisWin(_parent._parent);
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 2
_parent.brow_mc.gotoAndStop(_parent.brow_mc._totalframes);
Symbol 532 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 679 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 8
stop();
Symbol 730 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 43
_root.gameFull_mc.groggeryBegin(1);
_parent.gotoAndStop(1);
Symbol 746 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 29
_root.gameFull_mc.billiardsBegin(1);
_parent.gotoAndStop(1);
Symbol 757 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 24
_root.gameFull_mc.cinemaBegin(1);
_parent.gotoAndStop(1);
Symbol 765 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 5
_root.gameFull_mc.dogBegin(1);
Symbol 782 MovieClip Frame 67
_parent.gotoAndStop(1);
Symbol 783 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 60
_parent.gotoAndStop(1);
Symbol 813 MovieClip Frame 1
stop();
Symbol 817 MovieClip Frame 30
_root.gameFull_mc.ballWaiterOver();
_parent.gotoAndStop(1);
Symbol 818 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip in Symbol 824 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(bagID);
}
Instance of Symbol 388 MovieClip in Symbol 826 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(bagID);
}
Symbol 827 MovieClip Frame 80
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 828 MovieClip Frame 73
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 829 MovieClip Frame 85
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 830 MovieClip Frame 90
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 831 MovieClip Frame 98
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 832 MovieClip Frame 104
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 833 MovieClip Frame 113
_root.gameFull_mc.bellboyWaiterWinFu();
Symbol 834 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 15
_parent.gotoAndStop(_parent._totalframes);
Symbol 847 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 40
_parent.gotoAndStop(1);
Symbol 864 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 30
_root.gameFull_mc.ynbook = false;
_parent._parent.gotoAndStop("\u8D70\u8DEF");
Symbol 898 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip in Symbol 899 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(bagID);
}
Instance of Symbol 388 MovieClip in Symbol 899 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(bagID);
}
Symbol 903 MovieClip Frame 24
_root.gameFull_mc.ynbook = false;
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 920 MovieClip Frame 50
_root.gameFull_mc.ynbook = false;
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 950 MovieClip Frame 34
_root.gameFull_mc.ynbook = false;
_root.gameFull_mc.groggeryBegin(1);
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 958 MovieClip Frame 20
_root.gameFull_mc.ynbook = false;
_root.gameFull_mc.billiardsBegin(1);
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 962 MovieClip Frame 24
_root.gameFull_mc.ynbook = false;
_root.gameFull_mc.cinemaBegin(1);
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 973 MovieClip Frame 26
_root.gameFull_mc.ynbook = false;
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 974 MovieClip Frame 60
_root.gameFull_mc.ynbook = false;
_parent._x = _root.gameFull_mc.d0._x;
_parent._y = _root.gameFull_mc.d0._y;
_root.gameFull_mc.goto = _root.gameFull_mc.d0;
_root.gameFull_mc.into = _root.gameFull_mc.d0;
_parent.gotoAndStop("\u8D70\u8DEF");
Symbol 975 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 1
stop();
Symbol 988 MovieClip Frame 1
stop();
Symbol 991 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 1
stop();
Symbol 1000 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 1
stop();
Symbol 1011 MovieClip Frame 10
stop();
Symbol 1012 MovieClip Frame 10
stop();
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 2
_root.elevatorSound.start(1.4);
Symbol 1013 MovieClip Frame 3
_root.elevatorSound.start(1.4);
Symbol 1015 MovieClip Frame 1
c0.array = [["z0", "f", "w", "t", "s", "d", "j"], ["c1", "c2", "c3"]];
c1.array = [["c0", "z0", "f", "w", "t", "s", "d", "j"], ["c2", "c3"]];
c2.array = [["c1", "c0", "z0", "f", "w", "t", "s", "d", "j"], ["c3"]];
c3.array = [["c2", "c1", "c0", "z0", "f", "w", "t", "s", "d", "j"]];
z0.array = [["f0", "f", "j"], ["w0", "w", "s", "d"], ["t0", "t"], ["c0", "c1", "c2", "c3"]];
t0.array = [["t1"], ["z0", "f", "w", "s", "d", "c", "j"]];
t1.array = [["t0", "z0", "f", "w", "s", "d", "c", "j"]];
w0.array = [["z0", "f", "t", "c", "j"], ["w1", "w2", "w3", "w4", "w5", "w6", "s", "d"]];
w1.array = [["w0", "z0", "f", "t", "c", "j"], ["s0", "s1", "s2", "w2", "w3", "w4", "w5", "w6"], ["d0"]];
d0.array = [["w1", "z0", "f", "t", "c", "w", "s", "j"]];
s0.array = [["w1", "w0", "z0", "f", "t", "c", "d", "j"], ["s1", "s2", "w2", "w3", "w4", "w5", "w6"]];
s1.array = [["s0", "w1", "w0", "z0", "f", "t", "c", "d", "j"], ["s2", "w2", "w3", "w4", "w5", "w6"]];
s2.array = [["s1", "s0", "w1", "w0", "z0", "f", "t", "c", "d", "j"], ["w2", "w3", "w4", "w5", "w6"]];
w2.array = [["s2", "w1", "w0", "z0", "f", "t", "c", "s", "d", "j"], ["w3", "w4", "w5", "w6"]];
w3.array = [["w2", "w1", "w0", "z0", "f", "t", "c", "s", "d", "j"], ["w5", "w6"], ["w4"]];
w4.array = [["w3", "w5", "w6", "w2", "w1", "w0", "z0", "f", "t", "c", "s", "d", "j"]];
w5.array = [["w3", "w4", "w2", "w1", "w0", "z0", "f", "t", "c", "s", "d", "j"], ["w6"]];
w6.array = [["w5", "w3", "w4", "w2", "w1", "w0", "z0", "f", "t", "c", "s", "d", "j"]];
f0.array = [["z0", "c", "t", "w", "s", "d"], ["f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "j"]];
f1.array = [["f0", "z0", "c", "t", "w", "s", "d"], ["f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "j"]];
f2.array = [["f1", "f0", "z0", "c", "t", "w", "s", "d"], ["f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", "j"]];
if (_root.ynlift == false) {
f3.array = [["f2", "f1", "f0", "z0", "c", "t", "w", "s", "d"], ["f4", "f5", "f6", "f7", "f8", "f9", "f10"], ["f11", "f12", "f13", "f14", "f15"], ["j0", "j"]];
f4.array = [["f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"], ["f5", "f6", "f7", "f8", "f9", "f10"]];
f5.array = [["f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"], ["f6", "f7", "f8", "f9", "f10"]];
f6.array = [["f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"], ["f7", "f8", "f9", "f10"]];
f7.array = [["f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"], ["f8", "f9", "f10"]];
f8.array = [["f7", "f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"], ["f9", "f10"]];
f9.array = [["f8", "f7", "f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"], ["f10"]];
f10.array = [["f8", "f7", "f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f11", "f12", "f13", "f14", "f15", "j"]];
f11.array = [["f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "j"], ["f12", "f13", "f14", "f15"]];
f12.array = [["f11", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "j"], ["f13", "f14", "f15"]];
f13.array = [["f12", "f11", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "j"], ["f14", "f15"]];
f14.array = [["f13", "f12", "f11", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "j"], ["f15"]];
f15.array = [["f14", "f13", "f12", "f11", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "j"]];
j0.array = [["f3", "f", "z0", "c", "t", "w", "s", "d"], ["j1", "j2", "j3", "j4", "j5", "j6", "j7"], ["j8", "j9", "j10", "j11"]];
j1.array = [["j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"], ["j2", "j3", "j4", "j5", "j6", "j7"]];
j2.array = [["j1", "j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"], ["j3", "j4", "j5", "j6", "j7"]];
j3.array = [["j2", "j1", "j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"], ["j4", "j5", "j6", "j7"]];
j4.array = [["j3", "j2", "j1", "j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"], ["j5", "j6", "j7"]];
j5.array = [["j4", "j3", "j2", "j1", "j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"], ["j6", "j7"]];
j6.array = [["j5", "j4", "j3", "j2", "j1", "j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"], ["j7"]];
j7.array = [["j6", "j5", "j4", "j3", "j2", "j1", "j0", "f", "z0", "c", "t", "w", "s", "d", "j8", "j9", "j10", "j11"]];
j8.array = [["j0", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "f", "z0", "c", "t", "w", "s", "d"], ["j9", "j10", "j11"]];
j9.array = [["j8", "j0", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "f", "z0", "c", "t", "w", "s", "d"], ["j10", "j11"]];
j10.array = [["j9", "j8", "j0", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "f", "z0", "c", "t", "w", "s", "d"], ["j11"]];
j11.array = [["j10", "j9", "j8", "j0", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "f", "z0", "c", "t", "w", "s", "d"]];
} else {
f3.array = [["f2", "f1", "f0", "z0", "c", "t", "w", "s", "d"], ["f13", "f14", "f15", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12"], ["j0", "j"]];
f4.array = [["f11", "f12", "f13", "f14", "f15", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j"], ["f5", "f6", "f7", "f8", "f9", "f10"]];
f5.array = [["f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f11", "f12", "f13", "f14", "f15"], ["f6", "f7", "f8", "f9", "f10"]];
f6.array = [["f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f11", "f12", "f13", "f14", "f15"], ["f7", "f8", "f9", "f10"]];
f7.array = [["f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f11", "f12", "f13", "f14", "f15"], ["f8", "f9", "f10"]];
f8.array = [["f7", "f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f11", "f12", "f13", "f14", "f15"], ["f9", "f10"]];
f9.array = [["f8", "f7", "f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f11", "f12", "f13", "f14", "f15"], ["f10"]];
f10.array = [["f8", "f7", "f6", "f5", "f4", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f11", "f12", "f13", "f14", "f15"]];
f11.array = [["f4", "f5", "f6", "f7", "f8", "f9", "f10"], ["f12", "f13", "f14", "f15", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j"]];
f12.array = [["f11", "f4", "f5", "f6", "f7", "f8", "f9", "f10"], ["f13", "f14", "f15", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j"]];
f13.array = [["f14", "f15"], ["f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j"], ["f12", "f11", "f4", "f5", "f6", "f7", "f8", "f9", "f10"]];
f14.array = [["f13", "f12", "f11", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "s", "d", "j", "f4", "f5", "f6", "f7", "f8", "f9", "f10"], ["f15"]];
f15.array = [["f14", "f13", "f12", "f11", "f3", "f2", "f1", "f0", "z0", "c", "t", "w", "j", "f4", "f5", "f6", "f7", "f8", "f9", "f10"]];
f1._x = 192.3;
f1._y = 252.9;
f2._x = 218.5;
f2._y = 230.8;
f3._x = 242.1;
f3._y = 149.9;
j0.array = [["j12", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "j8", "j9", "j10", "j11"], ["f3", "z0", "c", "t", "w", "s", "d", "f"]];
j1.array = [["j2", "j3", "j4", "j5", "j6", "j7"], ["j8", "j9", "j10", "j11", "j12", "j0", "z0", "c", "t", "w", "s", "d", "f"]];
j2.array = [["j3", "j4", "j5", "j6", "j7"], ["j1", "j0", "j8", "j9", "j10", "j11", "j12", "z0", "c", "t", "w", "s", "d", "f"]];
j3.array = [["j4", "j5", "j6", "j7"], ["j2", "j1", "j0", "j8", "j9", "j10", "j11", "j12", "z0", "c", "t", "w", "s", "d", "f"]];
j4.array = [["j5", "j6", "j7"], ["j3", "j2", "j1", "j0", "j8", "j9", "j10", "j11", "j12", "z0", "c", "t", "w", "s", "d", "f"]];
j5.array = [["j6", "j7"], ["j4", "j3", "j2", "j1", "j0", "j8", "j9", "j10", "j11", "j12", "z0", "c", "t", "w", "s", "d", "f"]];
j6.array = [["j7"], ["j5", "j4", "j3", "j2", "j1", "j0", "j8", "j9", "j10", "j11", "j12", "z0", "c", "t", "w", "s", "d", "f"]];
j7.array = [["j6", "j5", "j4", "j3", "j2", "j1", "j0", "j8", "j9", "j10", "j11", "j12", "z0", "c", "t", "w", "s", "d", "f"]];
j8.array = [["j1", "j2", "j3", "j4", "j5", "j6", "j7"], ["j9", "j10", "j11", "j12", "j0", "f", "z0", "c", "t", "w", "s", "d", "f"]];
j9.array = [["j8", "j1", "j2", "j3", "j4", "j5", "j6", "j7"], ["j10", "j11"], ["j12", "j0", "f", "z0", "c", "t", "w", "s", "d", "f"]];
j10.array = [["j9", "j8", "j0", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "j12", "f", "z0", "c", "t", "w", "s", "d", "f"], ["j11"]];
j11.array = [["j10", "j9", "j8", "j0", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "j12", "f", "z0", "c", "t", "w", "s", "d", "f"]];
j12.array = [["j9", "j8", "j1", "j2", "j3", "j4", "j5", "j6", "j7", "j11", "j10"], ["j0", "f", "z0", "c", "t", "w", "s", "d"]];
j0._x = 285;
j0._y = 77;
}
function key(obTemp) {
if (_root.helpID != -1) {
if (_root.say_mc._currentframe == 1) {
return(undefined);
}
if ((_root.say_mc._currentframe == 2) && (obTemp._name != "t1")) {
return(undefined);
}
if ((_root.say_mc._currentframe == 3) && (obTemp._name != "w0")) {
return(undefined);
}
if (_root.say_mc._currentframe == 4) {
return(undefined);
}
if ((_root.say_mc._currentframe == 5) && (obTemp._name != "c3")) {
return(undefined);
}
if (_root.say_mc._currentframe == 6) {
return(undefined);
}
if ((_root.say_mc._currentframe == 7) && (obTemp._name != "t1")) {
return(undefined);
}
if ((_root.say_mc._currentframe == 8) && (obTemp._name != "f12")) {
return(undefined);
}
if (_root.say_mc._currentframe >= 9) {
return(undefined);
}
}
var _local3 = 0;
while (_local3 < bookArray.length) {
if (gotoArray.length < 8) {
gotoArray.push(obTemp);
this[obTemp._name + "_num"].gotoAndStop(gotoArray.length + 1);
return(undefined);
}
_local3++;
}
}
function playerKey() {
if (yngotoArray == false) {
if (gotoArray[0] != null) {
if (goto._name == gotoArray[0]._name) {
stepFu();
stopFu(gotoArray[0]);
gotoArray.splice(0, 1);
yngotoArray = false;
next_mc = null;
} else {
yngotoArray = true;
ynplayerKey = true;
goto = gotoArray[0];
}
} else {
yngotoArray = false;
}
}
if ((ynplayerKey == true) && (yngotoArray == true)) {
ynplayerKey = false;
str = gotoArrayFu(into.array, goto);
next_mc = this[str];
k = (into._y - next_mc._y) / (into._x - next_mc._x);
trace("------------------------");
if ((((_root.ynlift == true) && (into._name == "f2")) && (next_mc._name == "f3")) && ("j" != goto._name.charAt(0))) {
xy = "y";
ySpeed = -1.7;
lift_mc.gotoAndStop(2);
lifiNextGoto = 3;
} else if ((((_root.ynlift == true) && (into._name == "f2")) && (next_mc._name == "f3")) && ("j" == goto._name.charAt(0))) {
xy = "y";
ySpeed = -3;
lift_mc.gotoAndStop(2);
lifiNextGoto = 4;
} else if ((((_root.ynlift == true) && (into._name == "f3")) && (next_mc._name == "j0")) && ("j" == goto._name.charAt(0))) {
xy = "y";
ySpeed = -3;
lift_mc.gotoAndStop(5);
lift_mc.gotoAndStop(4);
} else if (((((_root.ynlift == true) && (into._name == "f3")) && (next_mc._name == "f2")) && ("f" != goto._name.charAt(0))) && ("j" != goto._name.charAt(0))) {
xy = "y";
ySpeed = 1.7;
lift_mc.gotoAndStop(7);
lifiNextGoto = 9;
} else if ((((_root.ynlift == true) && (into._name == "j12")) && (next_mc._name == "j0")) && ("f" == goto._name.charAt(0))) {
xy = "y";
ySpeed = 3;
lift_mc.gotoAndStop(8);
lifiNextGoto = 11;
} else if ((((_root.ynlift == true) && (into._name == "j12")) && (next_mc._name == "j0")) && ("j" != goto._name.charAt(0))) {
xy = "y";
ySpeed = 3;
lift_mc.gotoAndStop(8);
lifiNextGoto = 9;
} else {
var _local4 = 0;
var _local3 = 0;
if (_root.isSpeedup == true) {
_local4 = 5;
if (_root.speedup_lv == 1) {
_local3 = 1.5;
} else {
_local3 = 2.5;
}
}
if (((into._y - next_mc._y) > 0) && ((into._x - next_mc._x) > 0)) {
player_mc.player.gotoAndStop(4 + _local4);
xy = "x";
if ((into._x - next_mc._x) > 0) {
xSpeed = -3 - _local3;
} else {
xSpeed = 3 + _local3;
}
} else if (((into._y - next_mc._y) > 0) && ((into._x - next_mc._x) < 0)) {
player_mc.player.gotoAndStop(3 + _local4);
xy = "y";
if ((into._y - next_mc._y) > 0) {
ySpeed = -2 - _local3;
} else {
ySpeed = 2 + _local3;
}
} else if (((into._y - next_mc._y) < 0) && ((into._x - next_mc._x) < 0)) {
player_mc.player.gotoAndStop(2 + _local4);
xy = "x";
if ((into._x - next_mc._x) > 0) {
xSpeed = -3 - _local3;
} else {
xSpeed = 3 + _local3;
}
} else if (((into._y - next_mc._y) < 0) && ((into._x - next_mc._x) > 0)) {
player_mc.player.gotoAndStop(1 + _local4);
xy = "y";
if ((into._y - next_mc._y) > 0) {
ySpeed = -2 - _local3;
} else {
ySpeed = 2 + _local3;
}
}
}
}
}
function nextFu() {
if (next_mc != null) {
if (xy == "x") {
player_mc._x = player_mc._x + xSpeed;
player_mc._y = (k * (player_mc._x - next_mc._x)) + next_mc._y;
} else {
player_mc._y = player_mc._y + ySpeed;
player_mc._x = ((player_mc._y - next_mc._y) / k) + next_mc._x;
}
if (player_mc.hit_mc.hitTest(next_mc._x + _root.gameFull_mc._x, next_mc._y + _root.gameFull_mc._y)) {
player_mc._x = next_mc._x;
player_mc._y = next_mc._y;
into = next_mc;
if (next_mc == goto) {
yngotoArray = false;
stepFu();
gotoArray.splice(0, 1);
trace("\u5B8C\u6210\u4E00\u4E2A\u76EE\u6807");
stopFu(next_mc);
next_mc = null;
} else {
ynplayerKey = true;
}
}
}
}
function gotoArrayFu(arrayTemp, gotoTemp) {
var _local1 = 0;
while (_local1 < arrayTemp.length) {
var _local2 = 0;
while (_local2 < arrayTemp[_local1].length) {
if ((arrayTemp[_local1][_local2].length == 1) && (arrayTemp[_local1][_local2].charAt(0) == goto._name.charAt(0))) {
return(arrayTemp[_local1][0]);
}
if (arrayTemp[_local1][_local2] == goto._name) {
return(arrayTemp[_local1][0]);
}
_local2++;
}
_local1++;
}
return(null);
}
function stepFu() {
var _local2 = 0;
while (_local2 < gotoArray.length) {
gotoArray[_local2].stepID = false;
_local2++;
}
_local2 = 0;
while (_local2 < gotoArray.length) {
if (gotoArray[_local2].stepID == false) {
gotoArray[_local2].stepID = true;
this[gotoArray[_local2]._name + "_num"].prevFrame();
}
_local2++;
}
}
function undoFu() {
trace("\u540E\u9000\u4E00\u6B65");
if (gotoArray.length >= 2) {
this[gotoArray[gotoArray.length - 1]._name + "_num"].gotoAndStop(1);
gotoArray.splice(gotoArray.length - 1, 1);
var _local2 = 0;
while (_local2 < gotoArray.length) {
this[gotoArray[_local2]._name + "_num"].gotoAndStop(_local2 + 2);
_local2++;
}
}
}
function helpFu() {
if (_root.say_mc._currentframe == 2) {
inFu();
}
if ((_root.say_mc._currentframe == 5) && (ynsay5 == false)) {
ynsay5 = true;
daisDup();
}
if (_root.say_mc._currentframe == 11) {
_root.gotoAndStop(19);
}
}
function ai() {
if (random(500 - (_root.setSleepNum * 40)) == 1) {
inFu();
}
if (random(210 - (_root.setDaisNum * 20)) == 1) {
if (((_root.table_lv >= 1) && (_root.hNum >= 17)) && (_root.hNum <= 20)) {
daisDup();
} else if (((_root.table_lv >= 2) && (_root.hNum >= 11)) && (_root.hNum <= 13)) {
daisDup();
} else if (((_root.table_lv >= 3) && (_root.hNum >= 6)) && (_root.hNum <= 8)) {
daisDup();
}
}
if (random(550 - (_root.setDaisNum * 60)) == 1) {
daisDup();
}
if ((court_mc._visible == true) && (random(150) == 1)) {
ballDup();
}
if ((natatorium_mc._visible == true) && (random(150) == 1)) {
natatorDup();
}
if ((((chef_mc._visible == true) && (random(5) == 1)) && (chef_mc._currentframe == 1)) && (daisGoArray.length > 0)) {
chef_mc.gotoAndStop(2);
_root.kitchenSound.start(4);
daisGoArray[0].rice_mc.gotoAndStop(2);
daisGoArray.splice(0, 1);
}
if (bookArray.length == 0) {
var _local2 = random(20);
if (_local2 == 1) {
if (inArray.length == 0) {
inFu();
}
} else if (_local2 == 2) {
if (daisGoArray.length == 0) {
daisDup();
}
}
}
groggeryWaiterFu();
if ((_root.isGroggery == true) && (random(300) == 1)) {
groggeryDup();
}
cinemaWaiterFu();
if ((_root.isCinema == true) && (random(300) == 1)) {
cinemaDup();
}
billiardsWaiterFu();
if ((_root.isBilliards == true) && (random(300) == 1)) {
billiardsDup();
}
if (random(300) == 1) {
parkDup();
}
dogWaiterFu();
if (random(300) == 1) {
dogDup();
}
bellboyWaiterFu();
natatorWaiterFu();
dustmanWaiterFu();
ballWaiterFu();
}
function main() {
if (ynbook == false) {
playerKey();
}
nextFu();
if (_root.helpID == -1) {
ai();
} else {
helpFu();
}
inKey();
outKey();
daisKey();
fenFu();
ballKey();
natatorKey();
sleepKey();
wayFu();
billiardsKey();
}
function inFu() {
if (inArray.length == 0) {
inDup();
_root.deskbellSound.start();
deskbellSound_mc.gotoAndPlay(2);
}
}
function inDup() {
inNum++;
var _local2 = in_mc.duplicateMovieClip("in" + inNum, inNum);
if (_root.helpID == -1) {
_local2.ynbag = random(2);
_local2.playerID = random(6) + 1;
} else {
_local2.ynbag = 0;
_local2.playerID = 4;
}
_local2.gotoAndStop(_local2.playerID);
_local2.yndie = false;
_local2._x = _local2._x + (inArray.length * 25);
_local2._y = _local2._y + (inArray.length * 25);
_local2.swapDepths(_local2._y);
_local2.ynpush = false;
if (_local2.ynbag == 0) {
_local2.bagID = random(4) + 1;
_local2.bag_mc.gotoAndStop(_local2.bagID);
} else {
_local2.bag_mc.gotoAndStop(_local2.bag_mc._totalframes);
}
inArray.push(_local2);
}
function inKey() {
if (inArray[0].ynpush == false) {
inArray[0].ynpush = true;
if (inArray[0].ynbag == 0) {
bag_mc.gotoAndStop(inArray[0].bagID);
} else {
bag_mc.gotoAndStop(inArray[0].bag_mc._totalframes);
}
t1.actionArray.push(1);
bookArray.push("t1");
}
if (inArray[0].yndie == true) {
bag_mc.gotoAndStop(bag_mc._totalframes);
inArray[0].removeMovieClip();
inArray.splice(0, 1);
var _local1 = 0;
while (_local1 < t1.actionArray.length) {
if (t1.actionArray[_local1] == 1) {
t1.actionArray.splice(_local1, 1);
}
_local1++;
}
var _local2 = 0;
while (_local2 < inArray.length) {
inArray[_local2]._x = in_mc._x + (_local2 * 50);
_local2++;
}
reFu("t1");
}
}
function stopFu(ob) {
trace("\u68C0\u67E5\u662F\u5426\u6709\u4EFB\u52A1" + bookArray);
player_mc.player.gotoAndStop(1);
var _local4 = 0;
while (_local4 < bookArray.length) {
if (bookArray[_local4] == ob._name) {
if (ob._name == "t1") {
if (ob.actionArray[0] == 1) {
houseNo = retSleepFu();
if (houseNo != -1) {
trace("\u51FA\u623F\u95F4\u53F7");
ob.actionArray.splice(0, 1);
clew1_mc.gotoAndStop(1);
bookArray.splice(_local4, 1);
if (houseNo == 7) {
expensiveroomSound.start();
}
// unexpected jump
}
if (ob.actionArray[1] == 2) {
if (_root.helpID != -1) {
_root.say_mc.gotoAndStop(8);
}
trace("check out\u6536\u94B1");
ob.actionArray.splice(1, 1);
trace(outArray[0].ynbullpen);
if (outArray[0].ynbullpen == false) {
fenArray.push(_root.housing_money);
} else {
fenArray.push(_root.bullpen_moneyFull);
}
outArray[0].removeMovieClip();
outArray.splice(0, 1);
var _local5 = 0;
while (_local5 < outArray.length) {
outArray[_local5]._x = out_mc._x + (_local5 * 50);
_local5++;
}
bookArray.splice(_local4, 1);
return(undefined);
}
_root.msg_mc.gotoAndPlay(2);
return(undefined);
}
if (ob.actionArray[0] == 2) {
if (_root.helpID != -1) {
_root.say_mc.gotoAndStop(8);
}
trace("check out\u6536\u94B1");
ob.actionArray.splice(0, 1);
trace(outArray[0].ynbullpen);
if (outArray[0].ynbullpen == false) {
fenArray.push(_root.housing_money);
} else {
fenArray.push(_root.bullpen_moneyFull);
}
outArray[0].removeMovieClip();
outArray.splice(0, 1);
var _local5 = 0;
while (_local5 < outArray.length) {
outArray[_local5]._x = out_mc._x + (_local5 * 50);
_local5++;
}
bookArray.splice(_local4, 1);
}
return(undefined);
}
if (ob._name == "w0") {
trace("\u642C\u884C\u674E=" + houseNo);
player_mc.gotoAndStop("\u642C\u884C\u674E");
bag_mc.gotoAndStop(bag_mc._totalframes);
bookArray.splice(_local4, 1);
bookArray.splice(_local4, 0, bedFu(houseNo, 1)._name);
gotoArray.splice(0, 0, bedFu(houseNo, 1));
inArray[0].removeMovieClip();
inArray.splice(0, 1);
_local4 = 0;
while (_local4 < inArray.length) {
inArray[_local4]._x = in_mc._x + (_local4 * 50);
_local4++;
}
return(undefined);
}
if (ob._name.charAt(0) == "f") {
if ((houseNo != -1) && (ob._name == bedFu(houseNo, 1)._name)) {
trace("\u642C\u5B8C\u884C\u674E=" + houseNo);
if (_root.helpID != -1) {
_root.say_mc.gotoAndStop(4);
}
player_mc.gotoAndStop("\u8D70\u8DEF");
this["sleep" + houseNo].man.play();
this["sleep" + houseNo].brow_mc.gotoAndStop(this["sleep" + houseNo].brow_mc._totalframes);
houseNo = -1;
} else {
if (_root.helpID != -1) {
_root.say_mc.gotoAndStop(9);
}
trace("\u6E05\u7406");
ynbook = true;
player_mc.gotoAndStop("\u6253\u626B");
if (ob._name == "f12") {
player_mc.player.gotoAndStop(2);
}
_root.cleaningSound.start();
this["clean" + bedFu(ob._name, 2)].gotoAndStop(2);
}
bookArray.splice(_local4, 1);
return(undefined);
}
if (ob._name == "c3") {
if (_root.helpID != -1) {
_root.say_mc.gotoAndStop(6);
}
_root.kitchenSound.start();
player_mc.gotoAndStop("\u505A\u996D");
ynbook = true;
var _local7 = 0;
var _local6 = bookArray.length - 1;
while (_local6 >= 0) {
if ((bookArray[_local6] == "c3") && (_local7 < 3)) {
trace("\u505A\u996D" + daisGoArray[0]);
_local7++;
bookArray.splice(_local6, 1);
daisGoArray[0].rice_mc.gotoAndStop(2);
daisGoArray.splice(0, 1);
}
_local6--;
}
return(undefined);
}
if (ob._name == "w4") {
ballBegin();
fenArray.push(_root.batting_money);
bookArray.splice(_local4, 1);
return(undefined);
}
if (ob._name == "w6") {
ynbook = true;
player_mc.gotoAndStop("\u6253\u626B\u6E38\u6CF3\u6C60");
natatorBegin();
this["natator" + naNum].gotoAndStop(natatorFull.id);
natatorFull.gotoAndStop(natatorFull._totalframes);
naNum++;
bookArray.splice(_local4, 1);
return(undefined);
}
if (ob._name == "j11") {
ynbook = true;
player_mc.gotoAndStop("\u8C03\u9152");
bookArray.splice(_local4, 1);
return(undefined);
}
if (ob._name == "j7") {
ynbook = true;
player_mc.gotoAndStop("\u653E\u7535\u5F71");
bookArray.splice(_local4, 1);
return(undefined);
}
if (ob._name == "j4") {
ynbook = true;
player_mc.gotoAndStop("\u6446\u53F0\u7403");
bookArray.splice(_local4, 1);
return(undefined);
}
if (ob._name == "s0") {
ynbook = true;
isJD = carArray[0].man._currentframe;
daisDup();
carArray[0].gotoAndStop("\u8FDB\u8F66" + carArray[0]._currentframe);
carArray[0].clew.gotoAndStop(2);
player_mc.gotoAndStop("\u505C\u8F66");
bookArray.splice(_local4, 1);
fenArray.push(_root.car_money);
return(undefined);
}
if (ob._name == "s1") {
ynbook = true;
isJD = carArray[1].man._currentframe;
daisDup();
carArray[1].gotoAndStop("\u8FDB\u8F66" + carArray[1]._currentframe);
carArray[1].clew.gotoAndStop(2);
player_mc.gotoAndStop("\u505C\u8F66");
bookArray.splice(_local4, 1);
fenArray.push(_root.car_money);
return(undefined);
}
if (ob._name == "s2") {
ynbook = true;
isJD = carArray[2].man._currentframe;
daisDup();
carArray[2].gotoAndStop("\u8FDB\u8F66" + carArray[2]._currentframe);
carArray[2].clew.gotoAndStop(2);
player_mc.gotoAndStop("\u505C\u8F66");
bookArray.splice(_local4, 1);
fenArray.push(_root.car_money);
return(undefined);
}
if (ob._name == "w1") {
dogBegin(1);
ynbook = true;
player_mc.gotoAndStop("\u5E26\u72D7");
bookArray.splice(_local4, 1);
return(undefined);
}
}
_local4++;
}
}
function setinFu() {
trace("\u663E\u793A\u5B8C\u623F\u5B50\u53F7\u540E\uFF0C\u5C31\u6267\u884C\u51FA\u73B0\u5728\u623F\u95F4\u91CC");
this["sleep" + houseNo].gotoAndStop(inArray[0].playerID);
this["sleep" + houseNo].yndie = false;
this["sleep" + houseNo].ynbag = inArray[0].ynbag;
this["sleep" + houseNo].houseNo = houseNo;
this["sleep" + houseNo].bag_mc.gotoAndStop(1);
if (inArray[0].ynbag == 0) {
bookArray.push("w0");
inArray[0].gotoAndStop(inArray[0]._totalframes);
} else {
trace("\u6CA1\u5305" + this["sleep" + houseNo].man);
this["sleep" + houseNo].brow_mc.gotoAndStop(this["sleep" + houseNo].brow_mc._totalframes);
this["sleep" + houseNo].man.gotoAndPlay(2);
inArray[0].removeMovieClip();
inArray.splice(0, 1);
var _local2 = 0;
while (_local2 < inArray.length) {
inArray[_local2]._x = in_mc._x + (_local2 * 50);
_local2++;
}
houseNo = -1;
}
}
function sleepKey() {
var _local1 = 0;
while (_local1 < sleepArray.length) {
if (sleepArray[_local1].yndie == true) {
sleepArray[_local1].yndie = false;
sleepArray[_local1].gotoAndStop(8);
trace("\u5305\u8FD8\u6CA1\u5728\u8DEF\u4E0A");
if (player_mc._currentframe != 50) {
reFu("w0");
bag_mc.gotoAndStop(bag_mc._totalframes);
inArray[0].removeMovieClip();
inArray.splice(0, 1);
_local1 = 0;
while (_local1 < inArray.length) {
inArray[_local1]._x = in_mc._x + (_local1 * 50);
_local1++;
}
} else {
player_mc.gotoAndStop("\u8D70\u8DEF");
reFu(bedFu(sleepArray[_local1].houseNo, 1)._name);
}
return(undefined);
}
_local1++;
}
}
function bedFu(noTemp, IDTemp) {
if (IDTemp == 1) {
switch (noTemp) {
case 1 :
return(f12);
case 2 :
return(f6);
case 3 :
return(f7);
case 4 :
return(f8);
case 5 :
return(f9);
case 6 :
return(f10);
case 7 :
return(f15);
switch (noTemp) {
case "f12" :
return(1);
case "f6" :
return(2);
case "f7" :
return(3);
case "f8" :
return(4);
case "f9" :
return(5);
case "f10" :
return(6);
case "f15" :
return(7);
}
}
}
switch (noTemp) {
case "f12" :
return(1);
case "f6" :
return(2);
case "f7" :
return(3);
case "f8" :
return(4);
case "f9" :
return(5);
case "f10" :
return(6);
case "f15" :
return(7);
}
}
function retSleepFu() {
if ((((this.room7._visible == true) && (random(4 - _root.bullpen_lv) == 0)) && (this.sleep7._currentframe == 8)) && (this.clean7._currentframe == 2)) {
return(7);
}
var _local3 = 1;
while (_local3 <= 7) {
if (((this["room" + _local3]._visible == true) && (this["sleep" + _local3]._currentframe == 8)) && (this["clean" + _local3]._currentframe == 2)) {
return(_local3);
}
_local3++;
}
return(-1);
}
function sleepEndFu(ob) {
outDup(ob._currentframe, ob.ynbullpen);
this["clean" + ob.houseNo].gotoAndStop(1);
bookArray.push(bedFu(ob.houseNo, 1)._name);
ob.gotoAndStop(ob._totalframes);
_root.deskbellSound.start();
deskbellSound_mc.gotoAndPlay(2);
}
function outDup(obID, ynbullpenTemp) {
inNum++;
ob = out_mc.duplicateMovieClip("out" + inNum, inNum);
ob.outID = obID;
ob.ynpush = false;
ob.gotoAndStop(obID);
ob.ynbullpen = ynbullpenTemp;
ob._x = ob._x + (outArray.length * 25);
ob._y = ob._y + (outArray.length * 25);
ob.swapDepths(ob._y);
outArray.push(ob);
}
function outKey() {
if (outArray[0].ynpush == false) {
outArray[0].ynpush = true;
t1.actionArray.push(2);
bookArray.push("t1");
}
if (outArray[0].yndie == true) {
outArray[0].removeMovieClip();
outArray.splice(0, 1);
var _local2 = 0;
while (_local2 < t1.actionArray.length) {
if (t1.actionArray[_local2] == 2) {
t1.actionArray.splice(_local2, 1);
}
_local2++;
}
var _local1 = 0;
while (_local1 < outArray.length) {
outArray[_local1]._x = out_mc._x + (_local1 * 50);
_local1++;
}
reFu("t1");
}
}
function daisBegin() {
daisFull_mc.gotoAndStop(_root.setDaisNum + 1);
daisArray = new Array();
var _local3 = 0;
while (_local3 <= daisNum) {
var _local2 = daisFull_mc["dais" + _local3];
_local2.gotoAndStop(_local2._totalframes);
daisArray.push(_local2);
_local3++;
}
}
function daisDup() {
trace("daisDup=" + daisTo);
daisTo = 0;
var _local2 = 0;
while (_local2 < daisArray.length) {
if (daisArray[_local2]._currentframe != daisArray[_local2]._totalframes) {
daisTo++;
}
_local2++;
}
if (daisTo < daisArray.length) {
if (_root.helpID == -1) {
var _local3 = random(daisNum + 1);
} else {
var _local3 = 0;
}
while (daisArray[_local3]._currentframe != daisArray[_local3]._totalframes) {
var _local3 = random(daisNum + 1);
}
if (isJD != -1) {
daisArray[_local3].id = isJD;
isJD = -1;
} else {
daisArray[_local3].id = random(7) + 1;
}
daisArray[_local3].yndie = false;
daisArray[_local3].gotoAndStop(daisArray[_local3].id);
daisGoArray.push(daisArray[_local3]);
if (_root.ynchef == false) {
bookArray.push("c3");
}
}
}
function daisKey() {
if (daisGoArray[0].yndie == true) {
daisGoArray[0].gotoAndStop(daisGoArray[0]._totalframes);
daisGoArray.splice(0, 1);
reFu("c3");
}
}
function daisWin(ob) {
ob.gotoAndStop(ob._totalframes);
fenArray.push(_root.dining_money);
}
function fenFu() {
if ((_root.ynfen == false) && (fenArray.length != 0)) {
_root.ynfen = true;
_root.fenAdd = fenArray[0];
_root.fen = _root.fen + int(fenArray[0]);
fenArray.splice(0, 1);
_root.fen_mc.gotoAndPlay(2);
_root.takingmoneySound.start();
}
}
function ballBegin() {
batting1.yndie = false;
batting1.gotoAndStop(batting1._totalframes);
batting1.brow_mc.gotoAndStop(batting1.brow_mc._totalframes);
batting2.gotoAndStop(batting2._totalframes);
batting2.brow_mc.gotoAndStop(batting2.brow_mc._totalframes);
ball_mc.gotoAndStop(ball_mc._totalframes);
ballClew_mc.gotoAndStop(ballClew_mc._totalframes);
}
function ballDup() {
if (batting1._currentframe == batting1._totalframes) {
batting1.gotoAndStop(random(7) + 1);
batting1.man.gotoAndStop(3);
batting1.brow_mc.gotoAndStop(batting1.brow_mc._totalframes);
batting2.gotoAndStop(random(7) + 1);
batting2.man.gotoAndStop(3);
batting2.brow_mc.gotoAndStop(batting2.brow_mc._totalframes);
ball_mc.gotoAndStop(1);
}
}
function ballKey() {
if ((batting1._currentframe != batting1._totalframes) && (ball_mc._currentframe == 1)) {
if (random(ranBall) == 1) {
batting1.man.gotoAndStop(1);
batting1.brow_mc.gotoAndStop(1);
batting2.man.gotoAndStop(1);
batting2.brow_mc.gotoAndStop(1);
ball_mc.gotoAndStop(2);
bookArray.push("w4");
}
}
if (batting1.yndie == true) {
ballBegin();
reFu("w4");
}
}
function ballWaiterFu() {
if ((((ballWaiter_mc._visible == true) && (random(10) == 1)) && (ballWaiter_mc._currentframe == 1)) && (ballClew_mc._currentframe == 1)) {
ballWaiter_mc.gotoAndStop(2);
}
}
function ballWaiterOver() {
ballBegin();
fenArray.push(_root.batting_money);
deleteBookArrayFu("w4");
}
function natatorBegin() {
natatorFull.swapDepths(natatorFull._y);
natatorFull.gotoAndStop(7);
natator0.gotoAndStop(7);
natator1.gotoAndStop(7);
natator2.gotoAndStop(7);
natatorClew_mc.gotoAndStop(2);
naNum = 0;
okNum = 0;
}
function natatorDup() {
if (naNum < 3) {
if (natatorFull._currentframe == natatorFull._totalframes) {
natatorFull.id = random(6) + 1;
natatorFull.gotoAndStop(natatorFull.id);
if ((natatorClew_mc._currentframe == 2) && (natatorWaiter_mc._currentframe == 1)) {
this["natator" + naNum].gotoAndStop(natatorFull.id);
natatorFull.gotoAndStop(natatorFull._totalframes);
naNum++;
}
}
} else if ((natatorFull._currentframe == natatorFull._totalframes) && (okNum >= 3)) {
natatorFull.id = random(6) + 1;
natatorFull.gotoAndStop(natatorFull.id);
natatorClew_mc.gotoAndStop(1);
_root.swimmingpoolSound.start();
if (okNum == 3) {
okNum++;
bookArray.push("w6");
}
}
}
function natatorKey() {
if (natatorFull.yndie == true) {
natatorFull.gotoAndStop(7);
}
}
function natatorWin(ob) {
okNum++;
fenArray.push(_root.swimming_money);
ob.gotoAndStop(ob._totalframes);
}
function outFu(ob) {
}
function reFu(str) {
_root.life--;
_root.life_mc.gotoAndStop(6 - _root.life);
if (_root.life <= 0) {
_root.gotoAndStop("\u5931\u8D25\u753B\u9762");
}
i = 0;
while (i < bookArray.length) {
if (bookArray[i] == str) {
bookArray.splice(i, 1);
return(undefined);
}
i++;
}
}
function wayFu() {
if (bookArray.length > 0) {
var _local4 = -1;
var _local3 = 0;
while (_local3 < bookArray.length) {
if (bookArray[_local3].charAt(0) != "f") {
_local4 = _local3;
_local3 = bookArray.length;
}
_local3++;
}
if (_local4 == -1) {
return(undefined);
}
bookX = this[bookArray[_local4] + ""]._x + _root.gameFull_mc._x;
bookY = this[bookArray[_local4] + ""]._y + _root.gameFull_mc._y;
if ((((bookX > 50) && (bookX < 650)) && (bookY > 80)) && (bookY < 550)) {
_root.way_mc.gotoAndStop(2);
_root.way_mc.way_clew_mc.gotoAndStop(1);
} else {
_l4 = _root.way_mc._y - bookY;
_l5 = _root.way_mc._x - bookX;
_l2 = Math.atan2(_l4, _l5) * 57.29578;
_root.way_mc._rotation = _l2 + 180;
_root.way_mc.gotoAndStop(1);
if (bookArray[_local4] == "j11") {
_root.way_mc.way_clew_mc.gotoAndStop(2);
} else if (bookArray[_local4] == "j4") {
_root.way_mc.way_clew_mc.gotoAndStop(3);
} else if (bookArray[_local4] == "j7") {
_root.way_mc.way_clew_mc.gotoAndStop(4);
} else {
_root.way_mc.way_clew_mc.gotoAndStop(1);
}
}
} else {
_root.way_mc.way_clew_mc.gotoAndStop(1);
_root.way_mc.gotoAndStop(2);
}
}
function bit(obFull, ob, xx, yy, bitSpeed) {
rootaddx = (((((-ob._x) * _root._xscale) / 100) - obFull._x) + xx) / (bitSpeed / (obFull._xscale / 100));
rootaddy = (((((-ob._y) * _root._xscale) / 100) - obFull._y) + yy) / (bitSpeed / (obFull._xscale / 100));
obFull._x = obFull._x + rootaddx;
obFull._y = obFull._y + rootaddy;
if ((obFull._x > 110) && (rootaddx > 0)) {
obFull._x = 110;
rootaddx = 1;
}
if ((obFull._x < -270) && (rootaddx < 0)) {
obFull._x = -270;
rootaddx = -1;
}
if ((obFull._y > 140) && (rootaddy > 0)) {
obFull._y = 140;
rootaddy = 1;
}
if ((obFull._y < -80) && (rootaddy < 0)) {
obFull._y = -80;
rootaddy = -1;
}
if ((Math.abs(rootaddx) < 10) && (Math.abs(rootaddy) < 10)) {
ynbit = true;
}
}
function bitKey() {
if (ynbit == false) {
bit(_root.gameFull_mc, bit_mc, 350, 300, 2);
}
}
function btnLFu() {
bit_mc._x = 288;
bit_mc._y = 224;
ynbit = true;
}
function btnRFu() {
bit_mc._x = 565;
bit_mc._y = 307;
ynbit = true;
}
function groggeryBegin(groggeryBeginID) {
groggeryMan.yndie = false;
groggeryMan.gotoAndStop(groggeryMan._totalframes);
groggeryMan.brow_mc.gotoAndStop(groggeryMan.brow_mc._totalframes);
groggeryClew_mc.gotoAndStop(groggeryClew_mc._totalframes);
if (groggeryBeginID == 1) {
fenArray.push(_root.groggery_money);
}
}
function groggeryDup() {
if (groggeryClew_mc._currentframe != 1) {
groggeryMan.id = random(6) + 1;
groggeryMan.gotoAndStop(groggeryMan.id);
groggeryClew_mc.gotoAndStop(1);
bookArray.push("j11");
}
}
function groggeryKey() {
}
function groggeryWaiterFu() {
if ((((groggeryWaiter_mc._visible == true) && (random(10) == 1)) && (groggeryWaiter_mc._currentframe == 1)) && (groggeryClew_mc._currentframe == 1)) {
groggeryWaiter_mc.gotoAndStop(2);
groggeryMan.yndie = true;
deleteBookArrayFu("j11");
}
}
function billiardsBegin(billiardsBeginID) {
billiardsMan1.yndie = false;
billiardsMan1.gotoAndStop(billiardsMan1._totalframes);
billiardsMan1.brow_mc.gotoAndStop(billiardsMan1.brow_mc._totalframes);
billiardsMan2.yndie = false;
billiardsMan2.gotoAndStop(billiardsMan2._totalframes);
billiardsMan2.brow_mc.gotoAndStop(billiardsMan2.brow_mc._totalframes);
billiardsClew_mc.gotoAndStop(billiardsClew_mc._totalframes);
if (billiardsBeginID == 1) {
fenArray.push(_root.billiards_money);
}
}
function billiardsDup() {
if (billiardsClew_mc._currentframe != 1) {
billiardsMan1.id = 1;
billiardsMan1.gotoAndStop(billiardsMan1.id);
billiardsMan1.man.gotoAndStop("\u6253\u53F0\u7403");
billiardsMan1.brow_mc.gotoAndStop(billiardsMan1.brow_mc._totalframes);
billiardsMan2.id = 1;
billiardsMan2.gotoAndStop(billiardsMan2.id);
billiardsMan2.man.gotoAndStop("\u6253\u53F0\u7403");
billiardsMan2.brow_mc.gotoAndStop(billiardsMan2.brow_mc._totalframes);
billiardsClew_mc.gotoAndStop(billiardsClew_mc._totalframes);
}
}
function billiardsKey() {
if ((billiardsMan1._currentframe != billiardsMan1._totalframes) && (billiardsClew_mc._currentframe == billiardsClew_mc._totalframes)) {
if (random(200) == 1) {
billiardsMan1.man.gotoAndStop(1);
billiardsMan1.brow_mc.gotoAndStop(1);
billiardsMan2.man.gotoAndStop(1);
billiardsMan2.brow_mc.gotoAndStop(1);
billiardsClew_mc.gotoAndStop(1);
bookArray.push("j4");
}
}
}
function billiardsWaiterFu() {
if ((((billiardsWaiter_mc._visible == true) && (random(10) == 1)) && (billiardsWaiter_mc._currentframe == 1)) && (billiardsClew_mc._currentframe == 1)) {
billiardsWaiter_mc.gotoAndStop(2);
billiardsMan1.yndie = true;
billiardsMan2.yndie = true;
deleteBookArrayFu("j4");
trace("\u53F0\u7403\u670D\u52A1\u751F\u7684\u63A7\u5236");
}
}
function cinemaBegin(cinemaBeginID) {
cinemaMan.yndie = false;
cinemaMan.gotoAndStop(cinemaMan._totalframes);
cinemaMan.brow_mc.gotoAndStop(cinemaMan.brow_mc._totalframes);
cinemaClew_mc.gotoAndStop(cinemaClew_mc._totalframes);
if (cinemaBeginID == 1) {
if (threeFull_mc.cinema_room.movie_mc._currentframe == threeFull_mc.cinema_room.movie_mc._totalframes) {
threeFull_mc.cinema_room.movie_mc.gotoAndStop(1);
} else {
threeFull_mc.cinema_room.movie_mc.nextFrame();
}
fenArray.push(_root.cinema_money);
}
}
function cinemaDup() {
if (cinemaClew_mc._currentframe != 1) {
cinemaMan.id = random(6) + 1;
cinemaMan.gotoAndStop(cinemaMan.id);
cinemaClew_mc.gotoAndStop(1);
bookArray.push("j7");
}
}
function cinemaKey() {
}
function cinemaWaiterFu() {
if ((((cinemaWaiter_mc._visible == true) && (random(10) == 1)) && (cinemaWaiter_mc._currentframe == 1)) && (cinemaClew_mc._currentframe == 1)) {
cinemaWaiter_mc.gotoAndStop(2);
cinemaMan.yndie = true;
deleteBookArrayFu("j7");
}
}
function parkBegin(parkBeginID) {
if (parkBeginID == -1) {
var _local1 = carArray.length - 1;
while (_local1 >= 0) {
carArray[_local1].id = _local1;
carArray[_local1].man.id = _local1;
carArray[_local1].gotoAndStop(carArray[_local1]._totalframes);
carArray[_local1].clew.gotoAndStop(carArray[_local1].clew._totalframes);
carArray[_local1].man.gotoAndStop(carArray[_local1].man._totalframes);
_local1--;
}
}
if (parkBeginID != -1) {
carArray[parkBeginID].gotoAndStop(carArray[parkBeginID]._totalframes);
carArray[parkBeginID].clew.gotoAndStop(carArray[parkBeginID].clew._totalframes);
carArray[parkBeginID].man.gotoAndStop(carArray[parkBeginID].man._totalframes);
}
}
function parkDup() {
if (_root.isParkRoom == true) {
$id = random(3);
if (carArray[$id]._currentframe == carArray[$id]._totalframes) {
carArray[$id].gotoAndStop("\u5F00\u8F66\u6765" + (random(4) + 1));
carArray[$id].clew.gotoAndStop(1);
bookArray.push("s" + $id);
}
}
}
function parkKey() {
}
function dogBegin(dogBeginID) {
if (dogBeginID == 1) {
isJD = dogMan.id;
daisDup();
fenArray.push(_root.dog_money);
}
dogMan.yndie = false;
dogMan.gotoAndStop(dogMan._totalframes);
dogMan.brow_mc.gotoAndStop(dogMan.brow_mc._totalframes);
dogClew_mc.gotoAndStop(dogClew_mc._totalframes);
}
function dogDup() {
if ((dogClew_mc._currentframe != 1) && (_root.isDogRoom == true)) {
dogMan.id = random(6) + 1;
dogMan.gotoAndStop(dogMan.id);
dogClew_mc.gotoAndStop(1);
bookArray.push("w1");
}
}
function dogKey() {
}
function dogWaiterFu() {
if ((((dogWaiter_mc._visible == true) && (random(10) == 1)) && (dogWaiter_mc._currentframe == 1)) && (dogClew_mc._currentframe == 1)) {
dogWaiter_mc.gotoAndStop(2);
dogMan.yndie = true;
deleteBookArrayFu("w1");
isJD = dogMan.id;
daisDup();
}
}
function natatorWaiterFu() {
if ((((natatorWaiter_mc._visible == true) && (random(10) == 1)) && (natatorWaiter_mc._currentframe == 1)) && (natatorClew_mc._currentframe == 1)) {
natatorWaiter_mc.gotoAndStop(2);
natatorMan.yndie = true;
natatorBegin();
this["natator" + naNum].gotoAndStop(natatorFull.id);
natatorFull.gotoAndStop(natatorFull._totalframes);
naNum++;
deleteBookArrayFu("w6");
}
}
function dustmanWaiterFu() {
if (((dustmanWaiter_mc._visible == true) && (random(10) == 1)) && (dustmanWaiter_mc._currentframe == dustmanWaiter_mc._totalframes)) {
trace("\u53EF\u4EE5\u6E05\u7406");
i = 0;
while (i < bookArray.length) {
if (bookArray[i].charAt(0) == "f") {
if (this["clean" + bedFu(bookArray[i], 2)]._currentframe == 1) {
trace("\u6E05\u7406");
_root.cleaningSound.start();
this["clean" + bedFu(bookArray[i], 2)].gotoAndStop(2);
dustmanWaiter_mc.gotoAndStop(bedFu(bookArray[i], 2));
bookArray.splice(i, 1);
}
}
i++;
}
}
}
function bellboyWaiterFu() {
if (((((bellboyWaiter_mc._visible == true) && (bag_mc._currentframe != bag_mc._totalframes)) && (houseNo != -1)) && (inArray[0]._currentframe == inArray[0]._totalframes)) && (bellboyWaiter_mc._currentframe == 1)) {
trace("\u642C\u884C\u674E=" + houseNo);
bellboyHouseNo = houseNo;
bellboyWaiter_mc.gotoAndStop(houseNo + 1);
bag_mc.gotoAndStop(bag_mc._totalframes);
deleteBookArrayFu("w0");
inArray[0].removeMovieClip();
inArray.splice(0, 1);
var _local1 = 0;
while (_local1 < inArray.length) {
inArray[_local1]._x = in_mc._x + (_local1 * 50);
_local1++;
}
}
}
function bellboyWaiterWinFu() {
fenArray.push(_root.bellboy_money);
trace("\u642C\u5B8C\u884C\u674E=" + bellboyHouseNo);
bellboyWaiter_mc.gotoAndStop(1);
this["sleep" + bellboyHouseNo].man.play();
this["sleep" + bellboyHouseNo].brow_mc.gotoAndStop(this["sleep" + bellboyHouseNo].brow_mc._totalframes);
if (bellboyHouseNo == houseNo) {
houseNo = -1;
}
bellboyHouseNo = -1;
}
function dieNewFu(ob) {
di = dieNewArray.length - 1;
while (di >= 0) {
if (dieNewArray[di] == ob) {
if (ob == carMan0) {
ob.beginFu(0);
} else if (ob == carMan1) {
ob.beginFu(1);
} else if (ob == carMan2) {
ob.beginFu(2);
} else {
ob.beginFu(-1);
}
reFu(ob.book);
}
di--;
}
}
function deleteBookArrayFu(str) {
i = 0;
while (i < bookArray.length) {
if (bookArray[i] == str) {
bookArray.splice(i, 1);
return(undefined);
}
i++;
}
}
stop();
ynaction = false;
ynplayerKey = false;
goto = z0;
into = z0;
player_mc._x = goto._x;
player_mc._y = goto._y;
next_mc = null;
gotoArray = new Array();
yngotoArray = false;
court_mc._visible = _root.yncourt;
natatorium_mc._visible = _root.ynnatatorium;
if (_root.ynnatatorium == false) {
natatorium_mc_on._y = -1000;
}
if (_root.yncourt == false) {
court_mc_on._y = -1000;
}
lift_mc._visible = _root.ynlift;
tt_mc._visible = _root.ynlift;
chef_mc._visible = _root.ynchef;
chef_mc.swapDepths(chef_mc._y);
ynsay5 = false;
ynbook = false;
bookArray = new Array();
in_mc.gotoAndStop(in_mc._totalframes);
inArray = new Array();
inNum = 0;
houseNo = -1;
sleepArray = new Array();
var i = 1;
while (i <= 6) {
this["clean" + i].swapDepths(this["clean" + i]._y);
this["clean" + i].gotoAndStop(2);
this["sleep" + i].gotoAndStop(this["sleep" + i]._totalframes);
this["sleep" + i].yndie = false;
this["room" + i]._visible = false;
this["sleep" + i].ynbullpen = false;
if (i <= _root.setSleepNum) {
this["room" + i]._visible = true;
sleepArray.push(this["sleep" + i]);
} else {
this[("sleep" + i) + "_on"]._y = -1000;
}
i++;
}
this.clean7.swapDepths(this.clean7._y);
this.clean7.gotoAndStop(2);
this.sleep7.gotoAndStop(this.sleep7._totalframes);
this.sleep7.yndie = false;
this.room7._visible = false;
dogRoomFull_mc.wall_mc._visible = false;
this.sleep7.ynbullpen = true;
if (_root.bullpen_lv != 0) {
this["room" + i]._visible = true;
sleepArray.push(this["sleep" + i]);
dogRoomFull_mc.wall_mc._visible = true;
} else {
this.sleep7_on._y = -1000;
}
outArray = new Array();
out_mc.gotoAndStop(out_mc._totalframes);
daisNum = 7 + (_root.setDaisNum * 2);
daisBegin();
daisTo = 0;
daisGoArray = new Array();
fenArray = new Array();
_root.ynfen = false;
ballBegin();
if (_root.yncourt == false) {
ballWaiter_mc._visible = false;
} else {
ballWaiter_mc._visible = _root.isBallWaiter;
}
if (_root.isBallWaiter == true) {
ranBall = 300;
} else {
ranBall = 200;
}
natatorBegin();
_root.life = 5;
backSpeed = 5;
ynbit = true;
dieNewArray = new Array();
groggeryMan.beginFu = groggeryBegin;
groggeryMan.book = "j11";
dieNewArray.push(groggeryMan);
groggeryBegin(-1);
if (_root.isGroggery == false) {
threeFull_mc.groggery_room._visible = false;
groggeryWaiter_mc._visible = false;
} else {
groggeryWaiter_mc._visible = _root.isGroggeryWaiter;
}
billiardsMan1.beginFu = billiardsBegin;
billiardsMan1.book = "j4";
dieNewArray.push(billiardsMan1);
billiardsBegin(-1);
if (_root.isBilliards == false) {
threeFull_mc.billiards_room._visible = false;
billiardsWaiter_mc._visible = false;
} else {
billiardsWaiter_mc._visible = _root.isBilliardsWaiter;
}
cinemaMan.beginFu = cinemaBegin;
cinemaMan.book = "j7";
dieNewArray.push(cinemaMan);
cinemaBegin(-1);
if (_root.isCinema == false) {
threeFull_mc.cinema_room._visible = false;
cinemaWaiter_mc._visible = false;
} else {
cinemaWaiter_mc._visible = _root.isCinemaWaiter;
}
parkRoom_mc._visible = _root.isParkRoom;
carArray = new Array();
carArray.push(car0);
carArray.push(car1);
carArray.push(car2);
car0.clew = carClew0_mc;
car1.clew = carClew1_mc;
car2.clew = carClew2_mc;
car0.man = carMan0;
car0.man.yndie = false;
car1.man = carMan1;
car1.man.yndie = false;
car2.man = carMan2;
car2.man.yndie = false;
_root.car_money = _root.park_money;
carMan0.beginFu = parkBegin;
carMan0.book = "s0";
carMan1.beginFu = parkBegin;
carMan1.book = "s1";
carMan2.beginFu = parkBegin;
carMan2.book = "s2";
dieNewArray.push(carMan0);
dieNewArray.push(carMan1);
dieNewArray.push(carMan2);
parkBegin(-1);
dogRoomFull_mc.dogRoom_mc._visible = _root.isDogRoom;
dogMan.beginFu = dogBegin;
dieNewArray.push(dogMan);
dogBegin(-1);
dogWaiter_mc._visible = _root.isDogWaiter;
if (_root.ynnatatorium == false) {
natatorWaiter_mc._visible = false;
} else {
natatorWaiter_mc._visible = _root.isNatatorWaiter;
}
dustmanWaiter_mc._visible = _root.isDustmanWaiter;
dustmanWaiter_mc.gotoAndStop(dustmanWaiter_mc._totalframes);
fi_mc.fiddleWaiter_mc._visible = _root.isFiddleWaiter;
fi_mc.pianoWaiter_mc._visible = _root.isPianoWaiter;
draw0_mc._visible = _root.isDraw0;
draw1_mc._visible = _root.isDraw1;
draw2_mc._visible = _root.isDraw2;
fi_mc.potted0_mc._visible = _root.isPotted0;
fi_mc.potted1_mc._visible = _root.isPotted1;
potted2_mc._visible = _root.isPotted2;
bellboyWaiter_mc._visible = _root.isDellboyWaiter;
bellboyHouseNo = -1;
isJD = -1;
if (((_root.isGroggery == true) || (_root.isBilliards == true)) || (_root.isCinema == true)) {
threeFull_mc.ladder_mc._visible = true;
} else {
threeFull_mc.ladder_mc._visible = false;
}
if ((_root.isBilliards == true) || (_root.isCinema == true)) {
threeFull_mc.TD_mc._visible = true;
} else {
threeFull_mc.TD_mc._visible = false;
}
Instance of Symbol 152 MovieClip in Symbol 1015 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 184 MovieClip "bag_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._totalframes);
}
Instance of Symbol 205 MovieClip in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y);
}
Instance of Symbol 226 MovieClip "fi_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y);
}
Instance of Symbol 320 MovieClip "sleep7_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f15);
}
Instance of Symbol 353 MovieClip "lift_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y + 200);
}
Instance of Symbol 355 MovieClip "j11" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "w1" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "z0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "c1" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "c3" in Symbol 1015 MovieClip Frame 1
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "w2" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "w5" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "f0" in Symbol 1015 MovieClip Frame 1
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "f14" in Symbol 1015 MovieClip Frame 1
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "w0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "c2" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "w3" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "w6" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "c0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "t1" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
actionArray = new Array();
}
Instance of Symbol 355 MovieClip "t0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "d0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "s0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "s1" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "s2" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j0" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j1" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j2" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j3" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j4" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j5" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j6" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j7" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j8" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j9" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j10" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 355 MovieClip "j12" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(this);
}
Instance of Symbol 357 MovieClip in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.t1);
}
Instance of Symbol 359 MovieClip "sleep1_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f12);
}
Instance of Symbol 359 MovieClip "sleep2_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f6);
}
Instance of Symbol 359 MovieClip "sleep3_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f7);
}
Instance of Symbol 359 MovieClip "sleep4_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f8);
}
Instance of Symbol 359 MovieClip "sleep5_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f9);
}
Instance of Symbol 359 MovieClip "sleep6_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.f10);
}
Instance of Symbol 361 MovieClip "court_mc_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.w4);
}
Instance of Symbol 363 MovieClip "natatorium_mc_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.w6);
}
Instance of Symbol 365 MovieClip "cinema_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.j7);
}
Instance of Symbol 365 MovieClip "groggery_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.j11);
}
Instance of Symbol 367 MovieClip "billiards_on" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.j4);
}
Instance of Symbol 365 MovieClip in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.s0);
}
Instance of Symbol 365 MovieClip in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.s1);
}
Instance of Symbol 365 MovieClip in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.s2);
}
Instance of Symbol 511 MovieClip "clew1_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._totalframes);
}
Instance of Symbol 583 MovieClip "daisFull_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y);
}
Instance of Symbol 771 MovieClip "dogMan" in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.w1);
}
Instance of Symbol 834 MovieClip "bellboyWaiter_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(this._y);
}
Instance of Symbol 849 MovieClip in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.c3);
}
Instance of Symbol 851 MovieClip in Symbol 1015 MovieClip Frame 1
on (release) {
_parent.key(_parent.w0);
}
Instance of Symbol 975 MovieClip "player_mc" in Symbol 1015 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ynmain == false) {
_parent.main();
}
this.swapDepths(this._y);
if (Key.isDown(38) || (Key.isDown(87))) {
_root.gameFull_mc._y = _root.gameFull_mc._y + 15;
}
if (Key.isDown(40) || (Key.isDown(83))) {
_root.gameFull_mc._y = _root.gameFull_mc._y - 15;
}
if (Key.isDown(39) || (Key.isDown(68))) {
_root.gameFull_mc._x = _root.gameFull_mc._x - 15;
}
if (Key.isDown(37) || (Key.isDown(65))) {
_root.gameFull_mc._x = _root.gameFull_mc._x + 15;
}
}
onClipEvent (keyDown) {
if (Key.isDown(80) && (_root.pp_mc._currentframe <= 2)) {
if (_root.pp_mc._currentframe == 1) {
_root.pp_mc.gotoAndStop(2);
} else if (_root.pp_mc._currentframe == 2) {
_root.pp_mc.gotoAndStop(1);
}
}
if (Key.isDown(32) && (_root.say_mc._currentframe == 11)) {
_root.gameFull_mc.undoFu();
}
}
Instance of Symbol 1013 MovieClip "lift_mc" in Symbol 1015 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(this._y + 200);
}
Instance of Symbol 355 MovieClip "w1" in Symbol 1015 MovieClip Frame 2
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "z0" in Symbol 1015 MovieClip Frame 2
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "c1" in Symbol 1015 MovieClip Frame 2
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "c2" in Symbol 1015 MovieClip Frame 2
on (release) {
_root.key(this);
}
Instance of Symbol 355 MovieClip "t0" in Symbol 1015 MovieClip Frame 2
on (release) {
_root.key(this);
}
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1023 MovieClip Frame 1
stop();
Symbol 1023 MovieClip Frame 30
_root.ynfen = false;
Symbol 1029 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1039 Button
on (release) {
_root.pp_mc.gotoAndStop(3);
}
Symbol 1042 Button
on (release) {
_root.pp_mc.gotoAndStop(4);
}
Symbol 1046 Button
on (release) {
_root.backSoundFu(2);
gotoAndStop (2);
}
Symbol 1047 Button
on (release) {
_root.backSoundFu(1);
gotoAndStop (1);
}
Symbol 1048 MovieClip Frame 1
stop();
Symbol 1051 Button
on (release) {
_root.soundFu(2);
gotoAndStop (2);
}
Symbol 1052 Button
on (release) {
_root.soundFu(1);
gotoAndStop (1);
}
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1058 Button
on (release) {
_root.gameFull_mc.undoFu();
}
Symbol 1063 MovieClip Frame 1
stop();
Symbol 1068 Button
on (release) {
if (kt_mc._currentframe == 1) {
kt_mc.gotoAndStop(2);
} else {
this.nextFrame();
}
}
Symbol 1071 Button
on (release) {
_root.gotoAndStop(19);
}
Symbol 1077 Button
on (release) {
this.nextFrame();
}
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1099 Button
on (release) {
gotoAndStop (1);
}
Symbol 1102 MovieClip Frame 1
stop();
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1111 MovieClip Frame 1
stop();
Symbol 1113 Button
on (press) {
_root._quality = _root._qualityText;
gotoAndStop (1);
}
Symbol 1115 Button
on (release) {
gotoAndStop (1);
}
Symbol 1119 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 1121 Button
on (release) {
gotoAndStop (1);
}
Symbol 1123 MovieClip Frame 75
if (_root.lv == 19) {
_root.gotoAndStop(32);
} else {
_root.gotoAndStop(21);
}
Symbol 1124 MovieClip Frame 1
stop();
_root.ynmain = false;
Symbol 1124 MovieClip Frame 2
_root.ynmain = true;
Symbol 1124 MovieClip Frame 3
_root._qualityText = _root._quality;
_root.ynmain = true;
if (_root._qualityText == "LOW") {
btn1.gotoAndStop(2);
} else if (_root._qualityText == "MEDIUM") {
btn2.gotoAndStop(2);
} else if (_root._qualityText == "HIGH") {
btn3.gotoAndStop(2);
} else if (_root._qualityText == "BEST") {
btn4.gotoAndStop(2);
}
Instance of Symbol 1102 MovieClip "btn1" in Symbol 1124 MovieClip Frame 3
on (release) {
_parent.btn1.gotoAndStop(2);
_parent.btn2.gotoAndStop(1);
_parent.btn3.gotoAndStop(1);
_parent.btn4.gotoAndStop(1);
_root._qualityText = "LOW";
_root._quality = "LOW";
}
Instance of Symbol 1105 MovieClip "btn2" in Symbol 1124 MovieClip Frame 3
on (release) {
_parent.btn1.gotoAndStop(1);
_parent.btn2.gotoAndStop(2);
_parent.btn3.gotoAndStop(1);
_parent.btn4.gotoAndStop(1);
_root._qualityText = "MEDIUM";
_root._quality = "MEDIUM";
}
Instance of Symbol 1108 MovieClip "btn3" in Symbol 1124 MovieClip Frame 3
on (release) {
_parent.btn1.gotoAndStop(1);
_parent.btn2.gotoAndStop(1);
_parent.btn3.gotoAndStop(2);
_parent.btn4.gotoAndStop(1);
_root._qualityText = "HIGH";
_root._quality = "HIGH";
}
Instance of Symbol 1111 MovieClip "btn4" in Symbol 1124 MovieClip Frame 3
on (release) {
_parent.btn1.gotoAndStop(1);
_parent.btn2.gotoAndStop(1);
_parent.btn3.gotoAndStop(1);
_parent.btn4.gotoAndStop(2);
_root._qualityText = "BEST";
_root._quality = "BEST";
}
Symbol 1124 MovieClip Frame 4
_root.ynmain = true;
Symbol 1124 MovieClip Frame 5
_root.ynmain = true;
Symbol 1132 MovieClip Frame 1
stop();
Symbol 1133 MovieClip Frame 1
stop();
Symbol 1142 Button
on (release) {
_root.shopGotoID--;
if (_root.shopGotoID <= 0) {
_root.shopGotoID = 1;
}
_root.shopFull_mc.gotoAndStop(_root.shopGotoID);
_root.shopBeginFu();
if (_root.shopGotoID == 1) {
btnL_mc._visible = false;
}
btnR_mc._visible = true;
}
Symbol 1144 Button
on (release) {
_root.shopGotoID++;
if (_root.shopGotoID >= 5) {
_root.shopGotoID = 5;
}
_root.shopFull_mc.gotoAndStop(_root.shopGotoID);
_root.shopBeginFu();
if (_root.shopGotoID == 5) {
btnR_mc._visible = false;
}
btnL_mc._visible = true;
}
Symbol 1146 Button
on (release) {
_root.lv++;
_root.gotoAndStop(20);
}
Symbol 1152 Button
on (release) {
_root.cashOKFu();
gotoAndStop (1);
}
Symbol 1154 Button
on (release) {
gotoAndStop (1);
}
Symbol 1160 MovieClip Frame 35
_parent.gotoAndStop(1);
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1170 MovieClip Frame 1
stop();
Symbol 1175 MovieClip Frame 2
stop();
Symbol 1178 MovieClip Frame 1
stop();
Symbol 1184 MovieClip Frame 2
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1192 MovieClip Frame 2
stop();
Symbol 1196 MovieClip Frame 2
stop();
Symbol 1199 MovieClip Frame 1
stop();
Symbol 1204 MovieClip Frame 2
stop();
Symbol 1205 Button
on (release) {
_root.keyid = 6;
_root.cashFu();
}
Symbol 1207 MovieClip Frame 1
stop();
Symbol 1210 MovieClip Frame 1
stop();
Symbol 1214 MovieClip Frame 2
stop();
Symbol 1215 Button
on (release) {
_root.keyid = 1;
_root.cashFu();
}
Symbol 1218 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 1
stop();
Symbol 1229 MovieClip Frame 2
stop();
Symbol 1230 Button
on (release) {
_root.keyid = 2;
_root.cashFu();
}
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1235 MovieClip Frame 1
stop();
Symbol 1240 MovieClip Frame 1
stop();
Symbol 1244 MovieClip Frame 1
stop();
Symbol 1247 MovieClip Frame 1
stop();
Symbol 1250 MovieClip Frame 1
stop();
Symbol 1255 MovieClip Frame 2
stop();
Symbol 1256 Button
on (release) {
_root.keyid = 7;
_root.cashFu();
}
Symbol 1258 MovieClip Frame 1
stop();
Symbol 1262 MovieClip Frame 1
stop();
Symbol 1266 MovieClip Frame 1
stop();
Symbol 1269 MovieClip Frame 1
stop();
Symbol 1272 MovieClip Frame 1
stop();
Symbol 1275 MovieClip Frame 1
stop();
Symbol 1278 MovieClip Frame 1
stop();
Symbol 1281 MovieClip Frame 1
stop();
Symbol 1285 MovieClip Frame 1
stop();
Symbol 1294 MovieClip Frame 1
stop();
Symbol 1301 MovieClip Frame 1
stop();
Symbol 1307 MovieClip Frame 1
stop();
Symbol 1309 MovieClip Frame 1
stop();
Symbol 1312 MovieClip Frame 1
stop();
Symbol 1315 MovieClip Frame 1
stop();
Symbol 1316 MovieClip Frame 1
stop();
Instance of Symbol 1170 MovieClip "shop8" in Symbol 1316 MovieClip Frame 1
onClipEvent (load) {
shopID = 8;
_root.shopBeginFu(this);
}
on (release) {
if (this._currentframe == 1) {
_root.cashFu(this);
}
}
on (rollOver) {
_root.showTextFu(this);
}
on (rollOut) {
_root.outFu(this);
}
Instance of Symbol 1178 MovieClip "shop3" in Symbol 1316 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1187 MovieClip "shop4" in Symbol 1316 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1199 MovieClip "shop5" in Symbol 1316 MovieClip Frame 1
/* no clip actions */
Symbol 1320 Button
on (release) {
_root.gotoAndStop(20);
_root.lv++;
}
Symbol 1358 Button
on (release) {
_root.fen = int(_root.thisFen);
_root.gotoAndStop(20);
}
Symbol 1362 Button
on (release) {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + _root._game_name, "_blank");
}
Symbol 1365 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games8/gameindex/noodleshop.htm", "_blank");
}
Symbol 1369 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 1374 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 1377 Button
on (release) {
if (_root.over_mc._currentframe == 38) {
_root.over_mc.gotoAndStop(39);
}
gotoAndStop ("submit");
}
Symbol 1384 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 1395 Button
on (release) {
viewHighscore();
}
Symbol 1397 MovieClip Frame 1
stop();
game_name = _root._game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + _root._game_name, "_blank");
};
if (highscore <= 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
if (_root.over_mc._currentframe == 39) {
_root.over_mc.gotoAndStop(38);
}
if (ynok == true) {
pl._visible = false;
}
Symbol 1397 MovieClip Frame 3
function sendData() {
ynok = true;
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 1397 MovieClip in Symbol 1412 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
_game_name = "bedandbreakfast2";
score_var = "_root.fen";
}
Symbol 1412 MovieClip Frame 38
stop();
Symbol 1418 Button
on (release) {
if (_root._currentframe == 32) {
_root.gotoAndStop(33);
}
if (_root._currentframe == 30) {
_root.gotoAndStop(31);
}
gotoAndStop ("submit");
}
Symbol 1420 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 1425 MovieClip Frame 1
stop();
game_name = _root._game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + _root._game_name, "_blank");
};
if (highscore <= 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
if (_root._currentframe == 33) {
_root.gotoAndStop(32);
}
if (_root._currentframe == 31) {
_root.gotoAndStop(30);
}
if (ynok == true) {
pl._visible = false;
}
Symbol 1425 MovieClip Frame 3
function sendData() {
ynok = true;
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Symbol 1428 Button
on (release) {
_root.fen = 0;
_root.gotoAndStop(20);
}
Symbol 1439 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games8/gameindex/noodleshop.htm", "_blank");
}
Symbol 1440 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 1441 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 1442 Button
on (release) {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + _root._game_name, "_blank");
}
Symbol 1462 MovieClip Frame 117
stop();
Symbol 1463 MovieClip Frame 157
stop();
Symbol 1468 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games8/gameindex/noodleshop.htm", "_blank");
}
Symbol 1471 Button
on (release) {
_root.fen = 0;
_root.gotoAndStop(20);
}