Section 1
//ExtButton (basic.ExtButton)
package basic {
import flash.display.*;
import flash.events.*;
import sound.*;
import data.*;
public class ExtButton extends MovieClip {
public var hitArea_mc:MovieClip;
private var hitMc:Sprite;
public var state:MovieClip;
public var txt_mc:MovieClip;
public function ExtButton(){
initDis();
initEvent();
}
public function del():void{
delEvent();
delDis();
}
private function rollOutFun(_arg1:MouseEvent):void{
this.gotoAndStop(1);
}
private function mouseDownFun(_arg1:MouseEvent):void{
clickSound();
this.gotoAndStop(3);
}
private function mouseUpFun(_arg1:MouseEvent):void{
this.gotoAndStop(2);
}
private function initEvent():void{
hitMc.addEventListener(MouseEvent.ROLL_OVER, rollOverFun, false, 0, true);
hitMc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownFun, false, 0, true);
hitMc.addEventListener(MouseEvent.MOUSE_UP, mouseUpFun, false, 0, true);
hitMc.addEventListener(MouseEvent.ROLL_OUT, rollOutFun, false, 0, true);
}
private function initDis():void{
this.stop();
hitMc = (this.getChildByName("hitArea_mc") as MovieClip);
hitMc.alpha = 0;
}
private function delEvent():void{
hitMc.removeEventListener(MouseEvent.ROLL_OVER, rollOverFun);
hitMc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownFun);
hitMc.removeEventListener(MouseEvent.MOUSE_UP, mouseUpFun);
hitMc.removeEventListener(MouseEvent.ROLL_OUT, rollOutFun);
}
private function clickSound():void{
SoundsManager.getInstance().playSound("otherclick_wav", Data.value_event);
}
private function delDis():void{
this.removeChild(hitMc);
}
private function overSound():void{
SoundsManager.getInstance().playSound("othertouch_wav", Data.value_event);
}
private function rollOverFun(_arg1:MouseEvent):void{
overSound();
this.gotoAndStop(2);
}
}
}//package basic
Section 2
//Cookie (data.Cookie)
package data {
import flash.net.*;
public class Cookie {
private const name:Array;
public const socre:Array;
private const id:String = "jigsaw_puzzle";
private var so:SharedObject;
private var da:Object;
private static var ins:Cookie;
public function Cookie(){
name = ["Tommy L.", "Isabel R.", "Mike Strike", "Gina M.", "Antonio T.", "Alain C.", "Linda M.", "Santina Z.", "Susan D", "Richard BB"];
socre = [20000, 17000, 12000, 10000, 8000, 5000, 3000, 2000, 1000, 900];
super();
initPro();
}
public function set highScore(_arg1:Number):void{
da["highscore"] = _arg1;
}
public function getRank(_arg1:int, _arg2:int, _arg3:int):Array{
var _local4:String;
var _local5:Array;
_local4 = ((("rank_" + String(_arg1)) + String(_arg2)) + String(_arg3));
if (da[_local4] == null){
_local5 = name.concat();
da[_local4] = [{name:randomValue(_local5), score:socre[0]}, {name:randomValue(_local5), score:socre[1]}, {name:randomValue(_local5), score:socre[2]}, {name:randomValue(_local5), score:socre[3]}, {name:randomValue(_local5), score:socre[4]}, {name:randomValue(_local5), score:socre[5]}, {name:randomValue(_local5), score:socre[6]}, {name:randomValue(_local5), score:socre[7]}, {name:randomValue(_local5), score:socre[8]}, {name:randomValue(_local5), score:socre[9]}];
};
return (da[_local4]);
}
public function flush():void{
so.flush();
}
public function checkComplete(_arg1:int, _arg2:int, _arg3:int):Boolean{
return (!((da[((String(_arg1) + String(_arg2)) + String(_arg3))] == null)));
}
public function setComplete(_arg1:int, _arg2:int, _arg3:int):void{
da[((String(_arg1) + String(_arg2)) + String(_arg3))] = true;
}
private function initPro():void{
so = SharedObject.getLocal(id, "/");
da = so.data;
}
public function clear():void{
so.clear();
}
private function randomValue(_arg1:Array):Object{
var _local2:int;
var _local3:Object;
_local2 = Math.floor((Math.random() * _arg1.length));
_local3 = _arg1[_local2];
_arg1.splice(_local2, 1);
return (_local3);
}
public function get highScore():Number{
if (da["highscore"] == null){
da["highscore"] = 0;
};
return (da["highscore"]);
}
public function del():void{
so.close();
}
public static function get instance():Cookie{
if (ins == null){
ins = new (Cookie);
};
return (ins);
}
}
}//package data
Section 3
//Data (data.Data)
package data {
import flash.filters.*;
public class Data {
public static const stageHeight:int = 480;
public static const dropShadowFilter:DropShadowFilter = new DropShadowFilter(5, 45, 0, 1, 4, 4, 0.3, 1);
public static const pieceArray:Array = [{width:80, height:80}, {width:50, height:50}, {width:35, height:35}];
public static const value_event:int = 1;
public static const bitmapMaxWidth:Number = 448;
public static const bevelFilter:BevelFilter = new BevelFilter(2, 45, 0xFFFFFF, 1, 0, 1, 4, 4, 0.3, 1);
public static const value_bg:int = 1;
public static const gap:Number = 35;
public static const boxGlowFilter:GlowFilter = new GlowFilter(4720159, 0.4, 5, 5, 10, 1, false, false);
public static const musicValue:Number = 1;
public static const stageWidth:int = 640;
public static const soundValue:Number = 1;
public static const boxDropShadowFilter:DropShadowFilter = new DropShadowFilter(5, 45, 4720159, 0.4, 4, 4, 0.6);
public static const XMLURL:String = "http://www8.agame.com/games/flash/d/daily_jigsaw/img_girls.xml";
public static const bitmapMaxHeight:Number = 336;
public static var borderLineColor:uint = 10257257;
public static var pieceScore:Number = 1;
public static var borderLineThickness:Number = 2;
public static var combineDistance:Number = 4;
public static var rectangleScore:Number = 0.5;
public static var timeScore:Number = 2;
public static var pieceTime:int = 500;
public static var rotationScore:Number = 0.5;
public static var borderLineAlpha:Number = 100;
}
}//package data
Section 4
//DynamicText (data.DynamicText)
package data {
public class DynamicText {
public static const dayShort:Array = [["Sun", "Sun", "Sun", "Sun", "zon.", "Di.", "So.", "Dom.", "Dom", "Dom", "Dom", "Sön", "Nd", "Вс", "Pz", "Ming", "Ahad", "日曜日", "星期天"], ["Mon", "Mon", "Mon", "Mon", "ma.", "Lu.", "Mo.", "Lun.", "Seg", "2ª", "Lun", "Mån", "Pon", "Пн", "Pt", "Sen", "Isn", "月曜日", "星期一"], ["Tue", "Tue", "Tue", "Tue", "din.", "Ma.", "Di.", "Mar.", "Ter", "3ª", "Mar", "Tis", "Wt", "Вт", "Sa", "Sel", "Sel", "火曜日", "星期二"], ["Wed", "Wed", "Wed", "Wed", "woe.", "Me.", "Mi.", "Mié.", "Qua", "4ª", "Mer", "Ons", "Śr", "Ср", "Ça", "Rab", "Rabu", "水曜日", "星期三"], ["Thu", "Thu\t", "Thu", "Thu", "do.", "Je.", "Do.", "Jue.", "Qui", "5ª", "Gio", "Tor", "Cz", "Чт", "Pe", "Kam", "Kham", "木曜日", "星期四"], ["Fri", "Fri", "Fri", "Fri", "vrij.", "Ve.", "Fr.", "Vie.", "Sex", "6ª", "Ven", "Fre", "Pt", "Пт", "Cu", "Jumat", "Jum", "金曜日", "星期五"], ["Sat", "Sat", "Sat", "Sat", "zat.", "Sa.", "Sa.", "Sáb.", "Sab", "Sab", "Sab", "Lör", "So", "Сб", "Ct", "Sab", "Sab", "\t土曜日", "星期六"]];
public static const player:Array = ["Player", "Player", "Player", "Player", "Speler", "Joueur", "Spieler", "Jugador", "Jogador", "Jogador", "Giocatore", "Spelare", "Gracz", "Игрок", "Oyuncu", "Pemain", "Pemain", "プレイヤー", "姓名"];
public static const no:Array = ["no", "no", "no", "no", "nee", "non", "nein", "no", "não", "não", "no", "nej", "nie", "нет", "hayır", "tidak", "tidak", "いいえ", "否"];
public static const month:Array = [["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"], ["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"], ["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"], ["Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"], ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"], ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin", "Juil", "Août", "Sept", "Oct", "Nov", "Déc"], ["Jan", "Feb", "Mär", "Apr", "Mai", "Juni", "Juli", "Aug", "Sept", "Okt", "Nov", "Dez"], ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"], ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Sett", "Ott", "Nov", "Dic"], ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"], ["Sty", "Luty", "Marz", "Kwi", "Maj", "Czer", "Lip", "Sie", "Wrz", "Paź", "Lis", "Gru"], ["янв", "фев", "март", "апр", "май", "июнь", "июль", "авг", "сен", "окт", "ноя", "дек"], ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], ["Jan", "Peb", "Mar", "Apr", "Mei", "Juni", "Juli", "Ags", "Sep", "Okt", "Nov", "Des"], ["Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ogos", "Sept", "Okt", "Nov", "Dic"], ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"]];
public static const yes:Array = ["yes", "yes", "yes", "yes", "ja", "oui", "ja", "sí", "sim", "sim", "sì", "ja", "tak", "да", "evet", "ya", "ya", "はい", "是"];
public static const day:Array = [["Sunday", "Sunday", "Sunday", "Sunday", "Zondag", "Dimanche", "Sonntag", "Domingo", "Domingo", "Domingo", "Domenica", "Söndag", "Niedziela", "Воскресенье", "Pazar", "Minggu", "Ahad", "日曜日", "星期天"], ["Monday", "Monday", "Monday", "Monday", " Maandag", "Lundi", "Montag", "Lunes", "Segunda-Feira", "Segunda", "Lunedì", "Måndag", "Poniedziałek", "Понедельник", "Pazartesi", "Senin", "Isnin", "月曜日", "星期一"], ["Tuesday", "Tuesday", "Tuesday", "Tuesday", " Dinsdag", "Mardi", "Dienstag", "Martes", "Terça-Feira", "Terça", "Martedì", "Tisdag", "Wtorek", "Вторник", "Salı", "Selasa", "Selasa", "火曜日", "星期二"], ["Wednesday", "Wednesday", "Wednesday", "Wednesday", "Woensdag", "Mercredi", "Mittwoch", "Miércoles ", "Quarta-Feira", "Quarta", "Mercoledì", "Onsdag", "Środa", "Среда", "Çarşamba", "Rabu", "Rabu", "水曜日", "星期三"], ["Thursday", "Thursday", "Thursday", "Thursday", "Donderdag", "Jeudi", "Donnerstag", "Jueves", "Quinta-Feira", "Quinta", "Giovedì", "Torsdag", "Czwartek", "Четверг", "Perşembe", "Kamis", "Khamis", "木曜日", "星期四"], ["Friday", "Friday", "Friday", "Friday", "Vrijdag", "Vendredi", "Freitag", "Viernes", "Sexta-Feira", "Sexta", "Venerdì", "Fredag", "Piątek", "Пятница", "Cuma", " Jum'at", "Jumaat", "金曜日", "星期五"], ["Saturday", "Saturday", "Saturday", "Saturday", "Zaterdag", "Samedi", "Samstag", "Sábado", "Sábado ", "Sábado", "Sabato", "Lördag", "Sobota", "Суббота", "Cumartesi", "Sabtu", "Sabtu", "土曜日", "星期六"]];
}
}//package data
Section 5
//Line (data.Line)
package data {
public class Line {
public static const left_3:Array = [{x:0, y:500}, {x:0, y:0}];
public static const width:Number = 500;
public static const up_1:Array = [{x:0, y:0}, {x:8, y:2}, {x:25, y:5}, {x:38, y:8}, {x:54, y:12}, {x:74, y:15}, {x:100, y:18}, {x:127, y:21}, {x:153, y:21}, {x:166, y:18}, {x:173, y:15}, {x:176, y:8}, {x:179, y:-2}, {x:179, y:-15}, {x:176, y:-28}, {x:173, y:-44}, {x:171, y:-74}, {x:173, y:-107}, {x:176, y:-113}, {x:179, y:-120}, {x:183, y:-126}, {x:186, y:-130}, {x:189, y:-133}, {x:192, y:-136}, {x:196, y:-139}, {x:202, y:-143}, {x:206, y:-146}, {x:212, y:-149}, {x:219, y:-153}, {x:225, y:-156}, {x:245, y:-158}, {x:268, y:-156}, {x:281, y:-153}, {x:288, y:-149}, {x:294, y:-146}, {x:301, y:-143}, {x:304, y:-139}, {x:307, y:-136}, {x:311, y:-133}, {x:314, y:-126}, {x:317, y:-120}, {x:321, y:-113}, {x:324, y:-107}, {x:327, y:-97}, {x:330, y:-80}, {x:330, y:-67}, {x:327, y:-51}, {x:324, y:-34}, {x:321, y:-18}, {x:317, y:-5}, {x:316, y:7}, {x:317, y:18}, {x:321, y:21}, {x:327, y:25}, {x:344, y:26}, {x:363, y:25}, {x:377, y:23}, {x:390, y:21}, {x:403, y:18}, {x:419, y:15}, {x:435, y:12}, {x:452, y:8}, {x:472, y:5}, {x:488, y:2}, {x:495, y:1}, {x:500, y:0}];
public static const up_3:Array = [{x:0, y:0}, {x:500, y:0}];
public static const right_3:Array = [{x:500, y:0}, {x:500, y:500}];
public static const down_1:Array = [{x:500, y:500}, {x:495, y:499}, {x:488, y:498}, {x:472, y:495}, {x:452, y:492}, {x:435, y:488}, {x:419, y:485}, {x:403, y:482}, {x:390, y:479}, {x:377, y:477}, {x:363, y:475}, {x:344, y:474}, {x:327, y:475}, {x:321, y:479}, {x:317, y:482}, {x:316, y:493}, {x:317, y:505}, {x:321, y:518}, {x:324, y:534}, {x:327, y:551}, {x:330, y:567}, {x:330, y:580}, {x:327, y:597}, {x:324, y:607}, {x:321, y:613}, {x:317, y:620}, {x:314, y:626}, {x:311, y:633}, {x:307, y:636}, {x:304, y:640}, {x:301, y:643}, {x:294, y:646}, {x:288, y:649}, {x:281, y:653}, {x:268, y:656}, {x:245, y:658}, {x:225, y:656}, {x:219, y:653}, {x:212, y:649}, {x:206, y:646}, {x:202, y:643}, {x:196, y:640}, {x:192, y:636}, {x:189, y:633}, {x:186, y:630}, {x:183, y:626}, {x:179, y:620}, {x:176, y:613}, {x:173, y:607}, {x:171, y:574}, {x:173, y:544}, {x:176, y:528}, {x:179, y:515}, {x:179, y:502}, {x:176, y:492}, {x:173, y:485}, {x:166, y:482}, {x:153, y:479}, {x:127, y:479}, {x:100, y:482}, {x:74, y:485}, {x:54, y:488}, {x:38, y:492}, {x:25, y:495}, {x:8, y:498}, {x:0, y:500}];
public static const right_2:Array = [{x:500, y:0}, {x:502, y:8}, {x:505, y:25}, {x:508, y:38}, {x:0x0200, y:54}, {x:515, y:74}, {x:518, y:100}, {x:521, y:127}, {x:521, y:153}, {x:518, y:166}, {x:515, y:173}, {x:508, y:176}, {x:498, y:179}, {x:485, y:179}, {x:472, y:176}, {x:456, y:173}, {x:426, y:171}, {x:393, y:173}, {x:387, y:176}, {x:380, y:179}, {x:374, y:183}, {x:370, y:186}, {x:367, y:189}, {x:364, y:192}, {x:361, y:196}, {x:357, y:202}, {x:354, y:206}, {x:351, y:212}, {x:347, y:219}, {x:344, y:225}, {x:342, y:245}, {x:344, y:268}, {x:347, y:281}, {x:351, y:288}, {x:354, y:294}, {x:357, y:301}, {x:361, y:304}, {x:364, y:307}, {x:367, y:311}, {x:374, y:314}, {x:380, y:317}, {x:387, y:321}, {x:393, y:324}, {x:403, y:327}, {x:420, y:330}, {x:433, y:330}, {x:449, y:327}, {x:466, y:324}, {x:482, y:321}, {x:495, y:317}, {x:507, y:316}, {x:518, y:317}, {x:521, y:321}, {x:525, y:327}, {x:526, y:344}, {x:525, y:363}, {x:523, y:377}, {x:521, y:390}, {x:518, y:403}, {x:515, y:419}, {x:0x0200, y:435}, {x:508, y:452}, {x:505, y:472}, {x:502, y:488}, {x:501, y:495}, {x:500, y:500}];
public static const up_2:Array = [{x:0, y:0}, {x:8, y:-2}, {x:25, y:-5}, {x:38, y:-8}, {x:54, y:-12}, {x:74, y:-15}, {x:100, y:-18}, {x:127, y:-21}, {x:153, y:-21}, {x:166, y:-18}, {x:173, y:-15}, {x:176, y:-8}, {x:179, y:2}, {x:179, y:15}, {x:176, y:28}, {x:173, y:44}, {x:171, y:74}, {x:173, y:107}, {x:176, y:113}, {x:179, y:120}, {x:183, y:126}, {x:186, y:130}, {x:189, y:133}, {x:192, y:136}, {x:196, y:140}, {x:202, y:143}, {x:206, y:146}, {x:212, y:149}, {x:219, y:153}, {x:225, y:156}, {x:245, y:158}, {x:268, y:156}, {x:281, y:153}, {x:288, y:149}, {x:294, y:146}, {x:301, y:143}, {x:304, y:140}, {x:307, y:136}, {x:311, y:133}, {x:314, y:126}, {x:317, y:120}, {x:321, y:113}, {x:324, y:107}, {x:327, y:97}, {x:330, y:80}, {x:330, y:67}, {x:327, y:51}, {x:324, y:34}, {x:321, y:18}, {x:317, y:5}, {x:316, y:-7}, {x:317, y:-18}, {x:321, y:-21}, {x:327, y:-25}, {x:344, y:-26}, {x:363, y:-25}, {x:377, y:-23}, {x:390, y:-21}, {x:403, y:-18}, {x:419, y:-15}, {x:435, y:-12}, {x:452, y:-8}, {x:472, y:-5}, {x:488, y:-2}, {x:495, y:-1}, {x:500, y:0}];
public static const excursion:Number = 150;
public static const color:uint = 0x666666;
public static const down_2:Array = [{x:500, y:500}, {x:495, y:501}, {x:488, y:502}, {x:472, y:505}, {x:452, y:508}, {x:435, y:0x0200}, {x:419, y:515}, {x:403, y:518}, {x:390, y:521}, {x:377, y:523}, {x:363, y:525}, {x:344, y:526}, {x:327, y:525}, {x:321, y:521}, {x:317, y:518}, {x:316, y:507}, {x:317, y:495}, {x:321, y:482}, {x:324, y:466}, {x:327, y:449}, {x:330, y:433}, {x:330, y:420}, {x:327, y:403}, {x:324, y:393}, {x:321, y:387}, {x:317, y:380}, {x:314, y:374}, {x:311, y:367}, {x:307, y:364}, {x:304, y:361}, {x:301, y:357}, {x:294, y:354}, {x:288, y:351}, {x:281, y:347}, {x:268, y:344}, {x:245, y:342}, {x:225, y:344}, {x:219, y:347}, {x:212, y:351}, {x:206, y:354}, {x:202, y:357}, {x:196, y:361}, {x:192, y:364}, {x:189, y:367}, {x:186, y:370}, {x:183, y:374}, {x:179, y:380}, {x:176, y:387}, {x:173, y:393}, {x:171, y:426}, {x:173, y:456}, {x:176, y:472}, {x:179, y:485}, {x:179, y:498}, {x:176, y:508}, {x:173, y:515}, {x:166, y:518}, {x:153, y:521}, {x:127, y:521}, {x:100, y:518}, {x:74, y:515}, {x:54, y:0x0200}, {x:38, y:508}, {x:25, y:505}, {x:8, y:502}, {x:0, y:500}];
public static const right_1:Array = [{x:500, y:0}, {x:498, y:8}, {x:495, y:25}, {x:492, y:38}, {x:488, y:54}, {x:485, y:74}, {x:482, y:100}, {x:479, y:127}, {x:479, y:153}, {x:482, y:166}, {x:485, y:173}, {x:492, y:176}, {x:502, y:179}, {x:515, y:179}, {x:528, y:176}, {x:544, y:173}, {x:574, y:171}, {x:607, y:173}, {x:613, y:176}, {x:620, y:179}, {x:626, y:183}, {x:630, y:186}, {x:633, y:189}, {x:636, y:192}, {x:640, y:196}, {x:643, y:202}, {x:646, y:206}, {x:649, y:212}, {x:653, y:219}, {x:656, y:225}, {x:658, y:245}, {x:656, y:268}, {x:653, y:281}, {x:649, y:288}, {x:646, y:294}, {x:643, y:301}, {x:640, y:304}, {x:636, y:307}, {x:633, y:311}, {x:626, y:314}, {x:620, y:317}, {x:613, y:321}, {x:607, y:324}, {x:597, y:327}, {x:580, y:330}, {x:567, y:330}, {x:551, y:327}, {x:534, y:324}, {x:518, y:321}, {x:505, y:317}, {x:493, y:316}, {x:482, y:317}, {x:479, y:321}, {x:475, y:327}, {x:474, y:344}, {x:475, y:363}, {x:477, y:377}, {x:479, y:390}, {x:482, y:403}, {x:485, y:419}, {x:488, y:435}, {x:492, y:452}, {x:495, y:472}, {x:498, y:488}, {x:499, y:495}, {x:500, y:500}];
public static const height:Number = 500;
public static const alpha:Number = 0;
public static const down_3:Array = [{x:500, y:500}, {x:0, y:500}];
public static const thickness:Number = 0;
public static const left_1:Array = [{x:0, y:500}, {x:1, y:495}, {x:2, y:488}, {x:5, y:472}, {x:8, y:452}, {x:12, y:435}, {x:15, y:419}, {x:18, y:403}, {x:21, y:390}, {x:23, y:377}, {x:25, y:363}, {x:26, y:344}, {x:25, y:327}, {x:21, y:321}, {x:18, y:317}, {x:7, y:316}, {x:-5, y:317}, {x:-18, y:321}, {x:-34, y:324}, {x:-51, y:327}, {x:-67, y:330}, {x:-80, y:330}, {x:-97, y:327}, {x:-107, y:324}, {x:-113, y:321}, {x:-120, y:317}, {x:-126, y:314}, {x:-133, y:311}, {x:-136, y:307}, {x:-139, y:304}, {x:-143, y:301}, {x:-146, y:294}, {x:-149, y:288}, {x:-153, y:281}, {x:-156, y:268}, {x:-158, y:245}, {x:-156, y:225}, {x:-153, y:219}, {x:-149, y:212}, {x:-146, y:206}, {x:-143, y:202}, {x:-139, y:196}, {x:-136, y:192}, {x:-133, y:189}, {x:-130, y:186}, {x:-126, y:183}, {x:-120, y:179}, {x:-113, y:176}, {x:-107, y:173}, {x:-74, y:171}, {x:-44, y:173}, {x:-28, y:176}, {x:-15, y:179}, {x:-2, y:179}, {x:8, y:176}, {x:15, y:173}, {x:18, y:166}, {x:21, y:153}, {x:21, y:127}, {x:18, y:100}, {x:15, y:74}, {x:12, y:54}, {x:8, y:38}, {x:5, y:25}, {x:2, y:8}, {x:0, y:0}];
public static const left_2:Array = [{x:0, y:500}, {x:-1, y:495}, {x:-2, y:488}, {x:-5, y:472}, {x:-8, y:452}, {x:-12, y:435}, {x:-15, y:419}, {x:-18, y:403}, {x:-21, y:390}, {x:-23, y:377}, {x:-25, y:363}, {x:-26, y:344}, {x:-25, y:327}, {x:-21, y:321}, {x:-18, y:317}, {x:-7, y:316}, {x:5, y:317}, {x:18, y:321}, {x:34, y:324}, {x:51, y:327}, {x:67, y:330}, {x:80, y:330}, {x:97, y:327}, {x:107, y:324}, {x:113, y:321}, {x:120, y:317}, {x:126, y:314}, {x:133, y:311}, {x:136, y:307}, {x:140, y:304}, {x:143, y:301}, {x:146, y:294}, {x:149, y:288}, {x:153, y:281}, {x:156, y:268}, {x:158, y:245}, {x:156, y:225}, {x:153, y:219}, {x:149, y:212}, {x:146, y:206}, {x:143, y:202}, {x:140, y:196}, {x:136, y:192}, {x:133, y:189}, {x:130, y:186}, {x:126, y:183}, {x:120, y:179}, {x:113, y:176}, {x:107, y:173}, {x:74, y:171}, {x:44, y:173}, {x:28, y:176}, {x:15, y:179}, {x:2, y:179}, {x:-8, y:176}, {x:-15, y:173}, {x:-18, y:166}, {x:-21, y:153}, {x:-21, y:127}, {x:-18, y:100}, {x:-15, y:74}, {x:-12, y:54}, {x:-8, y:38}, {x:-5, y:25}, {x:-2, y:8}, {x:0, y:0}];
}
}//package data
Section 6
//Score (data.Score)
package data {
public class Score {
private static var ins:Score;
public function getRank(_arg1:int, _arg2:int, _arg3:int):Array{
return (Cookie.instance.getRank(_arg1, _arg2, _arg3));
}
public function submitScore(_arg1:int, _arg2:int, _arg3:int, _arg4:String, _arg5:Number):void{
var _local6:Object;
var _local7:Array;
_local6 = {name:_arg4, score:_arg5};
_local7 = Cookie.instance.getRank(_arg1, _arg2, _arg3);
_local7.push(_local6);
_local7.sortOn("score", (Array.DESCENDING | Array.NUMERIC));
if (Cookie.instance.highScore < _arg5){
Cookie.instance.highScore = _arg5;
};
}
public static function get instance():Score{
if (ins == null){
ins = new (Score);
};
return (ins);
}
}
}//package data
Section 7
//SoundList (data.SoundList)
package data {
public class SoundList {
private var _curr:int;
private var _list:Array;
private static var ins:SoundList;
public function SoundList(){
_curr = 0;
_list = ["music_1", "music_2", "music_3", "music_4"];
}
public function set curr(_arg1:int):void{
_curr = _arg1;
}
public function get curr():int{
return (_curr);
}
public function get list():Array{
return (_list);
}
public static function get instance():SoundList{
if (ins == null){
ins = new (SoundList);
};
return (ins);
}
}
}//package data
Section 8
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 9
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 10
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 11
//BG (game.BG)
package game {
import flash.display.*;
import flash.geom.*;
import tool.*;
public class BG {
private const border:int = 5;
private var engine:Engine;
private var _shape:Shape;
private var _mc:Sprite;
public function BG(_arg1:Engine):void{
engine = _arg1;
initDis();
}
private function delDis():void{
engine.mc.removeChild(_mc);
}
function change(_arg1:String):void{
initShape(_arg1);
}
private function initShape(_arg1:String):void{
var _local2:BitmapData;
var _local3:Matrix;
_local2 = Attach.getBitmapData(_arg1);
_local3 = new Matrix();
_local3.tx = border;
_local3.ty = -(border);
_shape.graphics.clear();
_shape.graphics.beginBitmapFill(_local2, _local3);
_shape.graphics.moveTo(border, border);
_shape.graphics.lineTo((_mc.width - border), border);
_shape.graphics.lineTo((_mc.width - border), (_mc.height - border));
_shape.graphics.lineTo(border, (_mc.height - border));
_shape.graphics.lineTo(border, border);
_shape.graphics.endFill();
}
function del():void{
delDis();
}
private function initDis():void{
_mc = Attach.getSprite("BGMC");
engine.mc.addChildAt(_mc, 0);
_shape = new Shape();
_mc.addChild(_shape);
}
}
}//package game
Section 12
//Engine (game.Engine)
package game {
import flash.display.*;
import data.*;
import tool.*;
public class Engine {
private var clickHelpToPause:Boolean;
private var toolBox:ToolBox;
private var sure:Sure;
private var timeManager:TimeManager;
private var materialBox:MaterialBox;
private var minimap:MiniMap;
private var gridBox:GridBox;
private var manager:Manager;
private var pausing:Pause;
private var _mc:Sprite;
private var help:Help;
private var bg:BG;
public var hand:Hand;
public function Engine(_arg1:Manager){
manager = _arg1;
initDis();
initBg();
initGridBox();
initMinimap();
initToolBox();
initTimeManager();
initDefault();
}
function hideMinimap():void{
minimap.hide();
toolBox.hideMinimapState();
}
private function initMinimap():void{
minimap = new MiniMap(this, manager.bmd);
}
function showHandle():void{
initHandler();
toolBox.showHandleState();
}
private function delToolBox():void{
toolBox.del();
toolBox = null;
}
function showBorder():void{
gridBox.showBorder();
toolBox.showBorderState();
}
public function del():void{
if (hand != null){
delHandler();
};
delTimeManager();
delToolBox();
delMinimap();
delGridBox();
delBg();
delDis();
}
function showBitmap():void{
gridBox.showBitmap();
}
function hideBorder():void{
gridBox.hideBorder();
toolBox.hideBorderState();
}
function hideHandle():void{
delHandler();
toolBox.hideHandleState();
}
function get mc():Sprite{
return (_mc);
}
private function initDefault():void{
changeBg("material_4");
updataTime();
}
function mouseUpHandler():void{
gridBox.mouseUpInHnadler();
}
private function delGridBox():void{
gridBox.del();
gridBox = null;
}
function closeMaterialBox():void{
delMaterialBox();
}
function changeBg(_arg1:String):void{
bg.change(_arg1);
toolBox.changeMeterialState(_arg1);
}
function restart():void{
delPause();
if (hand != null){
hand.restart();
};
if (minimap != null){
minimap.restart();
};
if (materialBox != null){
materialBox.restart();
};
gridBox.restart();
timeManager.restart();
toolBox.restartState();
}
private function delMinimap():void{
minimap.del();
minimap = null;
}
private function delMaterialBox():void{
materialBox.del();
materialBox = null;
}
private function initHandler():void{
hand = new Hand(this);
highestToolBox();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
function openHelp():void{
if (pausing == null){
pause();
clickHelpToPause = true;
};
initHelp();
}
function closeSure():void{
delSure();
}
private function delBg():void{
bg.del();
bg = null;
}
function updataTime():void{
toolBox.updataTime(timeManager.time);
}
private function delHandler():void{
hand.del();
hand = null;
GC.clear();
}
private function delTimeManager():void{
timeManager.del();
timeManager = null;
}
private function delPause():void{
pausing.del();
pausing = null;
}
private function initPause():void{
pausing = new Pause(this);
highestToolBox();
}
private function delSure():void{
sure.del();
sure = null;
}
private function initSure():void{
sure = new Sure(this);
}
private function highestToolBox():void{
_mc.setChildIndex(toolBox.mc, (_mc.numChildren - 1));
}
private function countScore():Number{
var _local1:Number;
_local1 = 0;
_local1 = (_local1 + ((((manager.hang * manager.lie) * manager.hang) * manager.lie) * Data.pieceScore));
_local1 = (_local1 + ((timeManager.time / 1000) * Data.timeScore));
if (manager.Rectangle){
_local1 = (_local1 + ((((manager.hang * manager.lie) * manager.hang) * manager.lie) * Data.rectangleScore));
};
if (manager.RotationEnabled){
_local1 = (_local1 + ((((manager.hang * manager.lie) * manager.hang) * manager.lie) * Data.rotationScore));
};
return (_local1);
}
function mouseMoveHandler(_arg1:Number, _arg2:Number):void{
gridBox.mouseMoveInHandler(_arg1, _arg2);
}
function closeHelp():void{
delHelp();
if (clickHelpToPause){
restart();
};
}
function complete():void{
manager.completeInEngine(countScore(), timeManager.time);
}
function mouseDownHandler():void{
gridBox.mouseDownInHandler();
}
private function initDis():void{
_mc = new Sprite();
manager.mc.addChild(_mc);
}
function showMinimap():void{
minimap.show();
toolBox.showMinimapState();
}
private function delHelp():void{
help.del();
help = null;
GC.clear();
}
private function initTimeManager():void{
timeManager = new TimeManager(this, ((((manager.hang * manager.lie) * manager.hang) * manager.lie) * Data.pieceTime));
}
private function initHelp():void{
help = new Help(this);
}
private function initToolBox():void{
toolBox = new ToolBox(this);
}
private function initMaterialBox():void{
materialBox = new MaterialBox(this);
}
private function initBg():void{
bg = new BG(this);
}
function pause():void{
initPause();
if (hand != null){
hand.pause();
};
if (minimap != null){
minimap.pause();
};
if (materialBox != null){
materialBox.pause();
};
gridBox.pause();
timeManager.pause();
toolBox.pauseState();
}
function backToChoose():void{
delSure();
manager.backToChoose();
}
function openMaterialBox():void{
initMaterialBox();
}
private function initGridBox():void{
gridBox = new GridBox(this, manager.bmd, manager.hang, manager.lie, manager.RotationEnabled, manager.Rectangle);
}
function openSure():void{
initSure();
}
}
}//package game
Section 13
//Grid (game.Grid)
package game {
import flash.display.*;
import data.*;
import flash.geom.*;
import tool.*;
public class Grid extends Sprite {
private var left:Grid;
private var right:Grid;
private var lineArrDown:Array;
private var leftCombined:Boolean;
private var rightCombined:Boolean;
private var lineArrUp:Array;
private var label:Boolean;
private var lineArrRight:Array;
private var start:Point;
private var lineArrLeft:Array;
private var downIsLine:Boolean;
private var rightIsLine:Boolean;
private var down:Grid;
private var gridBox:GridBox;
private var _shape:Shape;
private var up:Grid;
var pt_2:Point;
var pt_4:Point;
var pt_1:Point;
private var upCombined:Boolean;
private var lineArr:Array;
private var downCombined:Boolean;
var pt_3:Point;
private var excursion:Number;
public function Grid(_arg1:GridBox, _arg2:Point, _arg3:Grid, _arg4:Grid, _arg5:Boolean, _arg6:Boolean):void{
gridBox = _arg1;
start = _arg2;
left = _arg3;
up = _arg4;
rightIsLine = _arg5;
downIsLine = _arg6;
initPro();
initline();
initPoint();
initDis();
initShape();
}
private function initline():void{
var _local1:int;
var _local2:Object;
if (left != null){
lineArrLeft = new Array();
_local1 = (left.lineArrRight.length - 1);
while (_local1 >= 0) {
_local2 = {x:(left.lineArrRight[_local1].x - Line.width), y:left.lineArrRight[_local1].y};
lineArrLeft.push(_local2);
_local1--;
};
} else {
lineArrLeft = Line.left_3.concat();
};
if (up != null){
lineArrUp = new Array();
_local1 = (up.lineArrDown.length - 1);
while (_local1 >= 0) {
_local2 = {x:up.lineArrDown[_local1].x, y:(up.lineArrDown[_local1].y - Line.height)};
lineArrUp.push(_local2);
_local1--;
};
} else {
lineArrUp = Line.up_3.concat();
};
if (rightIsLine){
lineArrRight = Line.right_3.concat();
} else {
lineArrRight = ((Math.random() > 0.5)) ? Line.right_1.concat() : Line.right_2.concat();
_local1 = 0;
while (_local1 < (lineArrRight.length / 2)) {
lineArrRight[_local1] = {x:(lineArrRight[_local1].x + (excursion * _local1)), y:(lineArrRight[_local1].y + (excursion * _local1))};
lineArrRight[((lineArrRight.length - _local1) - 1)] = {x:(lineArrRight[((lineArrRight.length - _local1) - 1)].x + (excursion * _local1)), y:(lineArrRight[((lineArrRight.length - _local1) - 1)].y + (excursion * _local1))};
_local1++;
};
};
if (downIsLine){
lineArrDown = Line.down_3.concat();
} else {
lineArrDown = ((Math.random() > 0.5)) ? Line.down_1.concat() : Line.down_2.concat();
_local1 = 0;
while (_local1 < (lineArrDown.length / 2)) {
lineArrDown[_local1] = {x:(lineArrDown[_local1].x + (excursion * _local1)), y:(lineArrDown[_local1].y + (excursion * _local1))};
lineArrDown[((lineArrDown.length - _local1) - 1)] = {x:(lineArrDown[((lineArrDown.length - _local1) - 1)].x + (excursion * _local1)), y:(lineArrDown[((lineArrDown.length - _local1) - 1)].y + (excursion * _local1))};
_local1++;
};
};
lineArr = [lineArrUp, lineArrRight, lineArrDown, lineArrLeft];
}
function check():void{
Label = true;
if (((((leftCombined) && (!((left == null))))) && (!(left.Label)))){
left.check();
};
if (((((upCombined) && (!((up == null))))) && (!(up.Label)))){
up.check();
};
if (((((rightCombined) && (!((right == null))))) && (!(right.Label)))){
right.check();
};
if (((((downCombined) && (!((down == null))))) && (!(down.Label)))){
down.check();
};
}
function del():void{
delDis();
}
private function checkLeftCombine():void{
if ((((Point.distance(left.localToGlobal(left.pt_2), this.localToGlobal(this.pt_1)) < Data.combineDistance)) && ((Point.distance(left.localToGlobal(left.pt_3), this.localToGlobal(this.pt_4)) < Data.combineDistance)))){
leftCombine();
};
}
function randomPosition():void{
this.x = Method.random(0, (Data.stageWidth - gridBox.GridWidth));
this.y = Method.random(Data.gap, (Data.stageHeight - gridBox.GridHeight));
}
function checkCombine():void{
Label = true;
if (this.visible){
if (((!((left == null))) && (!(leftCombined)))){
checkLeftCombine();
};
if (((!((up == null))) && (!(upCombined)))){
checkUpCombine();
};
if (((!((right == null))) && (!(rightCombined)))){
checkRightCombine();
};
if (((!((down == null))) && (!(downCombined)))){
checkDownCombine();
};
};
if (((((leftCombined) && (!((left == null))))) && (!(left.Label)))){
left.checkCombine();
};
if (((((upCombined) && (!((up == null))))) && (!(up.Label)))){
up.checkCombine();
};
if (((((rightCombined) && (!((right == null))))) && (!(right.Label)))){
right.checkCombine();
};
if (((((downCombined) && (!((down == null))))) && (!(down.Label)))){
down.checkCombine();
};
}
function mouseUp():void{
if (((((((!(leftCombined)) && (!(upCombined)))) && (!(rightCombined)))) && (!(downCombined)))){
this.filters = [Data.bevelFilter];
};
}
private function checkUpCombine():void{
if ((((Point.distance(up.localToGlobal(up.pt_4), this.localToGlobal(this.pt_1)) < Data.combineDistance)) && ((Point.distance(up.localToGlobal(up.pt_3), this.localToGlobal(this.pt_2)) < Data.combineDistance)))){
upCombine();
};
}
private function upCombine():void{
gridBox.moveGrid((up.localToGlobal(up.pt_4).x - this.x), (up.localToGlobal(up.pt_4).y - this.y));
upCombined = true;
up.downCombined = true;
gridBox.combine();
}
private function checkDownCombine():void{
if ((((Point.distance(down.localToGlobal(down.pt_1), this.localToGlobal(this.pt_4)) < Data.combineDistance)) && ((Point.distance(down.localToGlobal(down.pt_2), this.localToGlobal(this.pt_3)) < Data.combineDistance)))){
downCombine();
};
}
private function leftCombine():void{
gridBox.moveGrid((left.localToGlobal(left.pt_2).x - this.x), (left.localToGlobal(left.pt_2).y - this.y));
leftCombined = true;
left.rightCombined = true;
gridBox.combine();
}
private function downCombine():void{
gridBox.moveGrid((down.x - this.localToGlobal(this.pt_4).x), (down.y - this.localToGlobal(this.pt_4).y));
downCombined = true;
down.upCombined = true;
gridBox.combine();
}
private function initPoint():void{
pt_1 = new Point((lineArrUp[0].x * gridBox.GridScale_x), (lineArrUp[0].y * gridBox.GridScale_y));
pt_2 = new Point((lineArrRight[0].x * gridBox.GridScale_x), (lineArrRight[0].y * gridBox.GridScale_y));
pt_3 = new Point((lineArrDown[0].x * gridBox.GridScale_x), (lineArrDown[0].y * gridBox.GridScale_y));
pt_4 = new Point((lineArrLeft[0].x * gridBox.GridScale_x), (lineArrLeft[0].y * gridBox.GridScale_y));
}
private function initShape():void{
var _local1:Matrix;
var _local2:int;
var _local3:int;
var _local4:Array;
_shape = new Shape();
this.addChild(_shape);
_shape.graphics.moveTo(lineArr[0][0].x, lineArr[0][0].y);
_local1 = new Matrix();
_local1.createBox(gridBox.bitmap.scaleX, gridBox.bitmap.scaleY, 0, (gridBox.bitmap.x - this.x), (gridBox.bitmap.y - this.y));
_shape.graphics.beginBitmapFill(gridBox.bitmap.bitmapData, _local1);
_shape.graphics.lineStyle(Line.thickness, Line.color, Line.alpha);
_local2 = 0;
while (_local2 < lineArr.length) {
_local4 = lineArr[_local2];
_local3 = 0;
while (_local3 < _local4.length) {
_shape.graphics.lineTo((_local4[_local3].x * gridBox.GridScale_x), (_local4[_local3].y * gridBox.GridScale_y));
_local3++;
};
_local2++;
};
_shape.graphics.endFill();
}
function disBorderLine():void{
var _local1:Boolean;
_local1 = false;
if ((((((((left == null)) || ((up == null)))) || ((right == null)))) || ((down == null)))){
_local1 = true;
};
this.visible = _local1;
}
private function initDis():void{
gridBox.mc.addChild(this);
this.x = start.x;
this.y = start.y;
this.filters = [Data.bevelFilter];
}
function clearBorderLine():void{
this.visible = true;
}
function randomRotation():void{
var _local1:Point;
var _local2:Point;
var _local3:Point;
_local1 = new Point(((pt_1.x + pt_3.x) / 2), ((pt_1.y + pt_3.y) / 2));
_local2 = this.localToGlobal(_local1);
this.rotation = (Math.round(Method.random(0, 4)) * 90);
_local3 = this.localToGlobal(_local1);
this.x = (this.x + (_local2.x - _local3.x));
this.y = (this.y + (_local2.y - _local3.y));
}
function turn(_arg1:Point):void{
var _local2:Sprite;
var _local3:Point;
Label = true;
_local2 = new Sprite();
this.addChild(_local2);
_local2.x = this.globalToLocal(_arg1).x;
_local2.y = this.globalToLocal(_arg1).y;
this.rotation = (this.rotation + 90);
_local3 = this.localToGlobal(new Point(_local2.x, _local2.y));
this.x = (this.x + (_arg1.x - _local3.x));
this.y = (this.y + (_arg1.y - _local3.y));
this.removeChild(_local2);
if (((((leftCombined) && (!((left == null))))) && (!(left.Label)))){
left.turn(_arg1);
};
if (((((upCombined) && (!((up == null))))) && (!(up.Label)))){
up.turn(_arg1);
};
if (((((rightCombined) && (!((right == null))))) && (!(right.Label)))){
right.turn(_arg1);
};
if (((((downCombined) && (!((down == null))))) && (!(down.Label)))){
down.turn(_arg1);
};
}
private function initPro():void{
if (left != null){
left.right = this;
};
if (up != null){
up.down = this;
};
excursion = ((Method.random(-(Line.excursion), Line.excursion) / Line.left_1.length) / 2);
leftCombined = false;
upCombined = false;
rightCombined = false;
downCombined = false;
}
function highest():void{
Label = true;
this.parent.setChildIndex(this, (this.parent.numChildren - 1));
if (((((leftCombined) && (!((left == null))))) && (!(left.Label)))){
left.highest();
};
if (((((upCombined) && (!((up == null))))) && (!(up.Label)))){
up.highest();
};
if (((((rightCombined) && (!((right == null))))) && (!(right.Label)))){
right.highest();
};
if (((((downCombined) && (!((down == null))))) && (!(down.Label)))){
down.highest();
};
}
function set Label(_arg1:Boolean):void{
label = _arg1;
}
private function delDis():void{
this.parent.removeChild(this);
}
private function checkRightCombine():void{
if ((((Point.distance(right.localToGlobal(right.pt_1), this.localToGlobal(this.pt_2)) < Data.combineDistance)) && ((Point.distance(right.localToGlobal(right.pt_4), this.localToGlobal(this.pt_3)) < Data.combineDistance)))){
rightCombine();
};
}
function lowest():void{
Label = true;
this.parent.setChildIndex(this, 1);
if (((((leftCombined) && (!((left == null))))) && (!(left.Label)))){
left.lowest();
};
if (((((upCombined) && (!((up == null))))) && (!(up.Label)))){
up.lowest();
};
if (((((rightCombined) && (!((right == null))))) && (!(right.Label)))){
right.lowest();
};
if (((((downCombined) && (!((down == null))))) && (!(down.Label)))){
down.lowest();
};
}
private function rightCombine():void{
gridBox.moveGrid((right.x - this.localToGlobal(this.pt_2).x), (right.y - this.localToGlobal(this.pt_2).y));
rightCombined = true;
right.leftCombined = true;
gridBox.combine();
}
function move(_arg1:Number, _arg2:Number):void{
this.x = (this.x + _arg1);
this.y = (this.y + _arg2);
Label = true;
if (((((leftCombined) && (!((left == null))))) && (!(left.Label)))){
left.move(_arg1, _arg2);
};
if (((((upCombined) && (!((up == null))))) && (!(up.Label)))){
up.move(_arg1, _arg2);
};
if (((((rightCombined) && (!((right == null))))) && (!(right.Label)))){
right.move(_arg1, _arg2);
};
if (((((downCombined) && (!((down == null))))) && (!(down.Label)))){
down.move(_arg1, _arg2);
};
}
function get Label():Boolean{
return (label);
}
function mouseDown():void{
if (((((((!(leftCombined)) && (!(upCombined)))) && (!(rightCombined)))) && (!(downCombined)))){
this.filters = [Data.bevelFilter, Data.dropShadowFilter];
};
}
}
}//package game
Section 14
//GridBox (game.GridBox)
package game {
import flash.display.*;
import flash.events.*;
import sound.*;
import data.*;
import fl.transitions.*;
import flash.geom.*;
import flash.filters.*;
import fl.transitions.easing.*;
public class GridBox {
private var gridHeight:Number;
private var prePt:Point;
private var gridScale_x:Number;
private var gridScale_y:Number;
private var gridWidth:Number;
private var gridInHandlerArr:Array;
private var hangNum:int;
private var _mc:Sprite;
private var complete:Boolean;
private var tweenAlpha:Tween;
private var gridArr:Array;
private var blurFilter:BlurFilter;
private var engine:Engine;
private var tweenX:Tween;
private var _bitmap:Bitmap;
private var tweenY:Tween;
private var lieNum:int;
private var rotationEnabled:Boolean;
private var rectangle:Boolean;
private var _currGrid:Grid;
public function GridBox(_arg1:Engine, _arg2:BitmapData, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:Boolean){
blurFilter = new BlurFilter(64, 64, 1);
super();
engine = _arg1;
hangNum = _arg3;
lieNum = _arg4;
rotationEnabled = _arg5;
rectangle = _arg6;
initPro();
initDis();
initBitmap(_arg2);
initGridScale();
initGrid();
initEvent();
}
function get GridWidth():Number{
return (gridWidth);
}
private function initCompleteTween():void{
tweenX = new Tween(_bitmap, "x", Regular.easeOut, _bitmap.x, ((Data.stageWidth - _bitmap.width) / 2), 2.3, true);
tweenY = new Tween(_bitmap, "y", Regular.easeOut, _bitmap.y, ((Data.stageHeight - _bitmap.height) / 2), 2.3, true);
tweenX.addEventListener(TweenEvent.MOTION_FINISH, tweenFinishHandler);
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
function showBorder():void{
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
gridArr[_local1][_local2].disBorderLine();
_local2++;
};
_local1++;
};
}
private function mouseUpHandler(_arg1:MouseEvent):void{
checkGridOut(_currGrid);
_currGrid.mouseUp();
_mc.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_mc.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
checkCombine();
}
public function del():void{
if (tweenAlpha != null){
delTweenAlpha();
};
delEvent();
delDis();
}
function showBitmap():void{
if (tweenAlpha == null){
initTweenAlpha();
};
}
private function keyUpHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
if (_currGrid != null){
turnGrid();
};
};
}
function mouseMoveInHandler(_arg1:Number, _arg2:Number):void{
var _local3:int;
clearLabel();
_local3 = 0;
while (_local3 < gridInHandlerArr.length) {
if (!gridInHandlerArr[_local3].Label){
gridInHandlerArr[_local3].move(_arg1, _arg2);
};
_local3++;
};
}
private function tweenFinishHandler(_arg1:TweenEvent):void{
delCompleteTween();
engine.complete();
}
function hideBorder():void{
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
gridArr[_local1][_local2].clearBorderLine();
_local2++;
};
_local1++;
};
}
private function checkCombine():void{
clearLabel();
_currGrid.checkCombine();
}
function pause():void{
_mc.mouseEnabled = false;
_mc.mouseChildren = false;
_mc.filters = [blurFilter];
}
private function highestGrid():void{
clearLabel();
_currGrid.highest();
}
private function initPro():void{
prePt = new Point();
complete = false;
}
function get mc():Sprite{
return (_mc);
}
function restart():void{
_mc.mouseEnabled = true;
_mc.mouseChildren = true;
_mc.filters = null;
}
private function turnGrid():void{
clearLabel();
_currGrid.turn(prePt);
}
function mouseUpInHnadler():void{
var _local1:int;
_local1 = 0;
while (_local1 < gridInHandlerArr.length) {
checkGridOut(gridInHandlerArr[_local1]);
_local1++;
};
}
function get GridHeight():Number{
return (gridHeight);
}
private function clearLabel():void{
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
gridArr[_local1][_local2].Label = false;
_local2++;
};
_local1++;
};
}
function get bitmap():Bitmap{
return (_bitmap);
}
private function lowestGrid():void{
clearLabel();
_currGrid.lowest();
}
private function delTweenAlpha():void{
tweenAlpha.removeEventListener(TweenEvent.MOTION_FINISH, tweenAlphaFinishHandler);
tweenAlpha = null;
_bitmap.alpha = 1;
_bitmap.visible = false;
}
function moveGrid(_arg1:Number, _arg2:Number):void{
clearLabel();
_currGrid.move(_arg1, _arg2);
}
private function getCombineNum():int{
var _local1:int;
var _local2:int;
var _local3:int;
clearLabel();
_currGrid.check();
_local1 = 0;
_local2 = 0;
while (_local2 < gridArr.length) {
_local3 = 0;
while (_local3 < gridArr[_local2].length) {
if (gridArr[_local2][_local3].Label){
_local1++;
};
_local3++;
};
_local2++;
};
return (_local1);
}
function mouseDownInHandler():void{
var _local1:int;
var _local2:int;
gridInHandlerArr = new Array();
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
if (engine.hand.mc.hitTestObject(gridArr[_local1][_local2])){
gridInHandlerArr.push(gridArr[_local1][_local2]);
};
_local2++;
};
_local1++;
};
}
private function updataPrePt():void{
prePt.x = _mc.mouseX;
prePt.y = _mc.mouseY;
}
private function initGrid():void{
var _local1:int;
var _local2:int;
var _local3:Grid;
var _local4:Point;
var _local5:Grid;
var _local6:Grid;
var _local7:Boolean;
var _local8:Boolean;
gridArr = new Array();
_local1 = 0;
while (_local1 < hangNum) {
gridArr[_local1] = new Array();
_local2 = 0;
while (_local2 < lieNum) {
_local4 = new Point((_bitmap.x + (_local2 * gridWidth)), (_bitmap.y + (_local1 * gridHeight)));
_local5 = ((_local2 == 0)) ? null : gridArr[_local1][(_local2 - 1)];
_local6 = ((_local1 == 0)) ? null : gridArr[(_local1 - 1)][_local2];
_local7 = (rectangle) ? rectangle : (_local2 == (lieNum - 1));
_local8 = (rectangle) ? rectangle : (_local1 == (hangNum - 1));
_local3 = new Grid(this, _local4, _local5, _local6, _local7, _local8);
_local3.randomPosition();
if (rotationEnabled){
_local3.randomRotation();
};
gridArr[_local1].push(_local3);
_local2++;
};
_local1++;
};
}
private function tweenAlphaFinishHandler(_arg1:TweenEvent):void{
delTweenAlpha();
}
private function delEvent():void{
_mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
if (rotationEnabled){
_mc.stage.removeEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
}
private function completeHandler():void{
var _local1:int;
var _local2:int;
complete = true;
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
gridArr[_local1][_local2].visible = false;
_local2++;
};
_local1++;
};
_bitmap.visible = true;
_bitmap.x = gridArr[0][0].x;
_bitmap.y = gridArr[0][0].y;
initCompleteTween();
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
_arg1.updateAfterEvent();
moveGrid((_mc.mouseX - prePt.x), (_mc.mouseY - prePt.y));
updataPrePt();
}
private function initTweenAlpha():void{
_bitmap.visible = true;
tweenAlpha = new Tween(_bitmap, "alpha", Regular.easeOut, 50, 0, 3, true);
tweenAlpha.addEventListener(TweenEvent.MOTION_FINISH, tweenAlphaFinishHandler);
}
function combine():void{
setGridDepth();
checkComplete();
}
private function setGridDepth():void{
if ((getCombineNum() >= ((hangNum * lieNum) / 3))){
lowestGrid();
} else {
highestGrid();
};
}
private function initBitmap(_arg1:BitmapData):void{
_bitmap = new Bitmap(_arg1);
if (_bitmap.height > Data.bitmapMaxHeight){
_bitmap.height = Data.bitmapMaxHeight;
_bitmap.scaleX = _bitmap.scaleY;
};
if (_bitmap.width > Data.bitmapMaxWidth){
_bitmap.width = Data.bitmapMaxWidth;
_bitmap.scaleY = _bitmap.scaleX;
};
_mc.addChildAt(_bitmap, 0);
_bitmap.x = ((Data.stageWidth - _bitmap.width) / 2);
_bitmap.y = ((Data.stageHeight - _bitmap.height) / 2);
_bitmap.visible = false;
}
private function checkComplete():void{
var _local1:int;
var _local2:int;
var _local3:Boolean;
if (!complete){
clearLabel();
gridArr[0][0].check();
_local3 = true;
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
if (gridArr[_local1][_local2].Label == false){
_local3 = false;
break;
};
_local2++;
};
_local1++;
};
if (_local3){
completeHandler();
};
};
}
private function delCompleteTween():void{
tweenX.removeEventListener(TweenEvent.MOTION_FINISH, tweenFinishHandler);
tweenX = null;
tweenY = null;
}
private function initDis():void{
_mc = new Sprite();
engine.mc.addChild(_mc);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
if (rotationEnabled){
_mc.stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
}
private function checkGridOut(_arg1:Grid):void{
var _local2:Number;
var _local3:Number;
clearLabel();
_local2 = _arg1.x;
_local3 = _arg1.y;
if (_arg1.x < 0){
_local2 = 0;
} else {
if (_arg1.x > (Data.stageWidth - gridWidth)){
_local2 = (Data.stageWidth - gridWidth);
};
};
if (_arg1.y < Data.gap){
_local3 = Data.gap;
} else {
if (_arg1.y > (Data.stageHeight - gridHeight)){
_local3 = (Data.stageHeight - gridHeight);
};
};
if (((!((_local2 == _arg1.x))) || (!((_local3 == _arg1.y))))){
_arg1.move((_local2 - _arg1.x), (_local3 - _arg1.y));
};
}
private function initGridScale():void{
gridWidth = (_bitmap.width / lieNum);
gridHeight = (_bitmap.height / hangNum);
gridScale_x = (gridWidth / Line.width);
gridScale_y = (gridHeight / Line.height);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if ((_arg1.target as Grid) != null){
SoundsManager.getInstance().playSound("take_wav", Data.soundValue);
_currGrid = (_arg1.target as Grid);
_currGrid.mouseDown();
setGridDepth();
updataPrePt();
_mc.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_mc.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
} else {
_currGrid = null;
};
}
function get GridScale_x():Number{
return (gridScale_x);
}
function get GridScale_y():Number{
return (gridScale_y);
}
}
}//package game
Section 15
//Hand (game.Hand)
package game {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tool.*;
public class Hand {
private var engine:Engine;
private var mouseDownPt:Point;
private var _circle:Sprite;
private var _mc:Sprite;
public function Hand(_arg1:Engine){
engine = _arg1;
initPro();
initDis();
initEvent();
}
private function delDis():void{
engine.mc.removeChild(_mc);
}
private function updataMouseDownPt():void{
mouseDownPt.x = _mc.parent.mouseX;
mouseDownPt.y = _mc.parent.mouseY;
}
private function mouseUpHandler(_arg1:MouseEvent):void{
engine.mouseUpHandler();
_mc.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_mc.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
private function delEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
_mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
function del():void{
delEvent();
delDis();
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
engine.mouseMoveHandler((_mc.parent.mouseX - mouseDownPt.x), (_mc.parent.mouseY - mouseDownPt.y));
updataMouseDownPt();
}
private function enterFrameHandler(_arg1:Event):void{
_mc.x = _mc.parent.mouseX;
_mc.y = _mc.parent.mouseY;
}
private function initDis():void{
_mc = Attach.getSprite("HandlerMC");
engine.mc.addChild(_mc);
_circle = _mc["circle"];
_circle.alpha = 0;
}
private function mouseDownHandler(_arg1:MouseEvent):void{
engine.mouseDownHandler();
updataMouseDownPt();
_mc.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_mc.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
function get mc():Sprite{
return (_circle);
}
function restart():void{
initEvent();
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
function pause():void{
delEvent();
}
private function initPro():void{
mouseDownPt = new Point();
}
}
}//package game
Section 16
//Help (game.Help)
package game {
import flash.display.*;
import flash.events.*;
import tool.*;
public class Help {
private var engine:Engine;
private var _back:MovieClip;
private var _mc:Sprite;
public function Help(_arg1:Engine){
engine = _arg1;
initDis();
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
public function del():void{
delEvent();
delDis();
}
private function initEvent():void{
_back.addEventListener(MouseEvent.CLICK, clickBack);
}
private function delEvent():void{
_back.removeEventListener(MouseEvent.CLICK, clickBack);
}
private function clickBack(_arg1:MouseEvent):void{
engine.closeHelp();
}
private function initDis():void{
_mc = Attach.getSprite("HelpMC");
engine.mc.addChild(_mc);
_back = (_mc.getChildByName("back") as MovieClip);
}
}
}//package game
Section 17
//MaterialBox (game.MaterialBox)
package game {
import flash.display.*;
import flash.events.*;
import tool.*;
public class MaterialBox {
private var engine:Engine;
private var _back:Sprite;
private var _material0:Sprite;
private var _material1:Sprite;
private var _material2:Sprite;
private var _material3:Sprite;
private var _material4:Sprite;
private var _material5:Sprite;
private var _material6:Sprite;
private var _material7:Sprite;
private var _mc:MovieClip;
public function MaterialBox(_arg1:Engine):void{
engine = _arg1;
initDis();
}
private function delDis():void{
engine.mc.removeChild(_mc);
}
private function clickMaterial4(_arg1:MouseEvent):void{
engine.changeBg("material_4");
}
private function clickMaterial0(_arg1:MouseEvent):void{
engine.changeBg("material_0");
}
private function clickMaterial1(_arg1:MouseEvent):void{
engine.changeBg("material_1");
}
private function clickMaterial2(_arg1:MouseEvent):void{
engine.changeBg("material_2");
}
function del():void{
delEvent();
delDis();
}
private function clickMaterial5(_arg1:MouseEvent):void{
engine.changeBg("material_5");
}
private function clickMaterial6(_arg1:MouseEvent):void{
engine.changeBg("material_6");
}
private function clickMaterial3(_arg1:MouseEvent):void{
engine.changeBg("material_3");
}
private function clickBack(_arg1:MouseEvent):void{
engine.closeMaterialBox();
}
private function initEvent():void{
_material0.addEventListener(MouseEvent.CLICK, clickMaterial0);
_material1.addEventListener(MouseEvent.CLICK, clickMaterial1);
_material2.addEventListener(MouseEvent.CLICK, clickMaterial2);
_material3.addEventListener(MouseEvent.CLICK, clickMaterial3);
_material4.addEventListener(MouseEvent.CLICK, clickMaterial4);
_material5.addEventListener(MouseEvent.CLICK, clickMaterial5);
_material6.addEventListener(MouseEvent.CLICK, clickMaterial6);
_material7.addEventListener(MouseEvent.CLICK, clickMaterial7);
_back.addEventListener(MouseEvent.CLICK, clickBack);
}
private function frameLast():void{
var _local1:Sprite;
_mc.stop();
_local1 = _mc["box"];
_material0 = _local1["material_0"];
_material1 = _local1["material_1"];
_material2 = _local1["material_2"];
_material3 = _local1["material_3"];
_material4 = _local1["material_4"];
_material5 = _local1["material_5"];
_material6 = _local1["material_6"];
_material7 = _local1["material_7"];
_back = _local1["back"];
initEvent();
}
private function initDis():void{
_mc = Attach.getMovieClip("MaterialBoxMC");
engine.mc.addChild(_mc);
_mc.addFrameScript((_mc.totalFrames - 1), frameLast);
}
function restart():void{
initEvent();
}
function pause():void{
delEvent();
}
private function clickMaterial7(_arg1:MouseEvent):void{
engine.changeBg("material_7");
}
private function delEvent():void{
_material0.removeEventListener(MouseEvent.CLICK, clickMaterial0);
_material1.removeEventListener(MouseEvent.CLICK, clickMaterial1);
_material2.removeEventListener(MouseEvent.CLICK, clickMaterial2);
_material3.removeEventListener(MouseEvent.CLICK, clickMaterial3);
_material4.removeEventListener(MouseEvent.CLICK, clickMaterial4);
_material5.removeEventListener(MouseEvent.CLICK, clickMaterial5);
_material6.removeEventListener(MouseEvent.CLICK, clickMaterial6);
_material7.removeEventListener(MouseEvent.CLICK, clickMaterial7);
_back.removeEventListener(MouseEvent.CLICK, clickBack);
}
}
}//package game
Section 18
//MiniMap (game.MiniMap)
package game {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tool.*;
public class MiniMap {
private const width:Number = 140;
private const initY:Number = 37.6;
private const scaleNum:Number = 0.2;
private var engine:Engine;
private var _big:Sprite;
private var _bitmap:Bitmap;
private var prePt:Point;
private var _small:Sprite;
private var id:int;
private var _mc:Sprite;
private var _close:Sprite;
public function MiniMap(_arg1:Engine, _arg2:BitmapData):void{
engine = _arg1;
initDis(_arg2);
initPro();
initEvent();
hide();
}
private function delDis():void{
engine.mc.removeChild(_mc);
}
function pause():void{
delEvent();
}
private function mouseUpHandler(_arg1:MouseEvent):void{
_mc.stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_mc.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
function del():void{
delEvent();
delDis();
}
private function mouseMoveHandler(_arg1:MouseEvent):void{
_arg1.updateAfterEvent();
_mc.x = (_mc.x + (_mc.parent.mouseX - prePt.x));
_mc.y = (_mc.y + (_mc.parent.mouseY - prePt.y));
updataPrePt();
}
private function clickBig(_arg1:MouseEvent):void{
if (id != 1){
id++;
updataScale();
};
}
function hide():void{
_mc.visible = false;
}
private function updataScale():void{
_mc.scaleX = (1 + (id * scaleNum));
_mc.scaleY = _mc.scaleX;
}
function restart():void{
initEvent();
}
private function initPro():void{
id = 0;
prePt = new Point();
}
private function updataPrePt():void{
prePt.x = _mc.parent.mouseX;
prePt.y = _mc.parent.mouseY;
}
private function initDis(_arg1:BitmapData):void{
_mc = Attach.getSprite("MinimapMC");
engine.mc.addChild(_mc);
_mc.x = 0;
_mc.y = initY;
_bitmap = new Bitmap(_arg1);
_bitmap.width = width;
_bitmap.scaleY = _bitmap.scaleX;
_mc.addChildAt(_bitmap, 0);
_big = _mc["big"];
_small = _mc["small"];
_close = _mc["close"];
}
private function clickSmall(_arg1:MouseEvent):void{
if (id != -1){
id--;
updataScale();
};
}
private function delEvent():void{
_big.removeEventListener(MouseEvent.CLICK, clickBig);
_small.removeEventListener(MouseEvent.CLICK, clickSmall);
_close.removeEventListener(MouseEvent.CLICK, clickClose);
_mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
private function clickClose(_arg1:MouseEvent):void{
engine.hideMinimap();
}
private function initEvent():void{
_big.addEventListener(MouseEvent.CLICK, clickBig);
_small.addEventListener(MouseEvent.CLICK, clickSmall);
_close.addEventListener(MouseEvent.CLICK, clickClose);
_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
private function mouseDownHandler(_arg1:MouseEvent):void{
updataPrePt();
_mc.stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
_mc.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
}
function show():void{
_mc.visible = true;
}
}
}//package game
Section 19
//Pause (game.Pause)
package game {
import flash.display.*;
import flash.events.*;
import data.*;
import tool.*;
public class Pause {
private var engine:Engine;
private var _mc:Sprite;
public function Pause(_arg1:Engine):void{
engine = _arg1;
initDis();
initEvent();
}
private function delDis():void{
engine.mc.removeChild(_mc);
}
private function clickHandler(_arg1:MouseEvent):void{
engine.restart();
}
function del():void{
delEvent();
delDis();
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickHandler);
}
function get mc():Sprite{
return (_mc);
}
private function delEvent():void{
_mc.removeEventListener(MouseEvent.CLICK, clickHandler);
}
private function initDis():void{
_mc = Attach.getSprite("PauseMC");
engine.mc.addChild(_mc);
_mc.x = (Data.stageWidth / 2);
_mc.y = (Data.stageHeight / 2);
}
}
}//package game
Section 20
//Sure (game.Sure)
package game {
import flash.display.*;
import flash.events.*;
import data.*;
import tool.*;
public class Sure {
private var engine:Engine;
private var _yes:Sprite;
private var _no:Sprite;
private var _mc:Sprite;
public function Sure(_arg1:Engine){
engine = _arg1;
initDis();
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function clickNo(_arg1:MouseEvent):void{
engine.closeSure();
}
public function del():void{
delEvent();
delDis();
}
private function initEvent():void{
_yes.addEventListener(MouseEvent.CLICK, clickYes);
_no.addEventListener(MouseEvent.CLICK, clickNo);
}
private function delEvent():void{
_yes.removeEventListener(MouseEvent.CLICK, clickYes);
_no.removeEventListener(MouseEvent.CLICK, clickNo);
}
private function initDis():void{
_mc = Attach.getSprite("SureMC");
engine.mc.addChild(_mc);
_mc.x = (Data.stageWidth / 2);
_mc.y = (Data.stageHeight / 2);
_yes = _mc["yes_mc"];
_no = _mc["no_mc"];
}
private function clickYes(_arg1:MouseEvent):void{
engine.backToChoose();
}
}
}//package game
Section 21
//TimeManager (game.TimeManager)
package game {
import flash.events.*;
import flash.utils.*;
public class TimeManager {
private const delay:int = 1000;
private var engine:Engine;
private var timer:Timer;
private var totalTime:int;
public function TimeManager(_arg1:Engine, _arg2:int){
engine = _arg1;
totalTime = (int((_arg2 / 1000)) * 1000);
initTimer();
}
function del():void{
if (timer != null){
delTimer();
};
}
private function timerHandler(_arg1:TimerEvent):void{
totalTime = (totalTime - delay);
engine.updataTime();
}
function get time():int{
return (totalTime);
}
private function initTimer():void{
timer = new Timer(delay, (totalTime / delay));
timer.start();
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerCompleteHandler);
}
function pause():void{
if (timer != null){
timer.stop();
};
}
private function delTimer():void{
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerCompleteHandler);
timer.stop();
timer = null;
}
private function timerCompleteHandler(_arg1:TimerEvent):void{
delTimer();
}
function restart():void{
if (timer != null){
timer.start();
};
}
}
}//package game
Section 22
//ToolBox (game.ToolBox)
package game {
import flash.display.*;
import flash.events.*;
import sound.*;
import data.*;
import flash.text.*;
import tool.*;
import zlong.navigate.*;
public class ToolBox {
private var _overText:MovieClip;
private var _logo:MovieClip;
private var _sound:MovieClip;
private var _help:MovieClip;
private var _time:TextField;
private var _mc:Sprite;
private var _soundLeft:MovieClip;
private var engine:Engine;
private var _handle:MovieClip;
private var _materailState:Sprite;
private var _border:MovieClip;
private var _bitmap:MovieClip;
private var _soundTxt:TextField;
private var _minimap:MovieClip;
private var _soundRight:MovieClip;
private var _materail:MovieClip;
private var _pause:MovieClip;
private var _backChoose:MovieClip;
public function ToolBox(_arg1:Engine):void{
engine = _arg1;
initDis();
initEvent();
}
private function delDis():void{
engine.mc.removeChild(_mc);
}
private function clickBackChoose(_arg1:MouseEvent):void{
engine.openSure();
}
function showBorderState():void{
_border.gotoAndStop(2);
}
function showMinimapState():void{
_minimap.gotoAndStop(2);
}
function del():void{
delEvent();
delDis();
}
function showHandleState():void{
_handle.gotoAndStop(2);
}
private function rollOutHandler(_arg1:MouseEvent):void{
hideOverText();
}
private function hideOverText():void{
_overText.visible = false;
}
private function updateSoundText():void{
_soundTxt.text = ((String((SoundList.instance.curr + 1)) + "/") + String(SoundList.instance.list.length));
}
private function clickMinimap(_arg1:MouseEvent):void{
if (_minimap.currentFrame == 1){
engine.showMinimap();
} else {
engine.hideMinimap();
};
}
function get mc():Sprite{
return (_mc);
}
private function rollOverBorder(_arg1:MouseEvent):void{
disOverText(_border, 4);
}
function hideBorderState():void{
_border.gotoAndStop(1);
}
private function clickSoundLeft(_arg1:MouseEvent):void{
if (SoundsManager.getInstance().Enabled){
SoundsManager.getInstance().stopMusic();
if (SoundList.instance.curr == 0){
SoundList.instance.curr = (SoundList.instance.list.length - 1);
} else {
SoundList.instance.curr--;
};
SoundsManager.getInstance().playMusic(SoundList.instance.list[SoundList.instance.curr], Data.musicValue);
updateSoundText();
};
}
private function rollOverMaterail(_arg1:MouseEvent):void{
disOverText(_materail, 5);
}
private function rollOverBitmap(_arg1:MouseEvent):void{
disOverText(_bitmap, 3);
}
function hideHandleState():void{
_handle.gotoAndStop(1);
}
function updataTime(_arg1:Number):void{
_time.text = String((_arg1 / 1000));
}
function pauseState():void{
_materail.mouseEnabled = false;
_minimap.mouseEnabled = false;
_bitmap.mouseEnabled = false;
_border.mouseEnabled = false;
_handle.mouseEnabled = false;
_materail.mouseChildren = false;
_minimap.mouseChildren = false;
_bitmap.mouseChildren = false;
_border.mouseChildren = false;
_handle.mouseChildren = false;
_pause.gotoAndStop(2);
}
private function rollOverPause(_arg1:MouseEvent):void{
disOverText(_pause, ((_pause.currentFrame == 1)) ? 6 : ((_overText.totalFrames + 1) - 6));
}
private function clickMaterail(_arg1:MouseEvent):void{
engine.openMaterialBox();
}
function restartState():void{
_materail.mouseEnabled = true;
_minimap.mouseEnabled = true;
_bitmap.mouseEnabled = true;
_border.mouseEnabled = true;
_handle.mouseEnabled = true;
_materail.mouseChildren = true;
_minimap.mouseChildren = true;
_bitmap.mouseChildren = true;
_border.mouseChildren = true;
_handle.mouseChildren = true;
_pause.gotoAndStop(1);
}
private function clickHandle(_arg1:MouseEvent):void{
if (_handle.currentFrame == 1){
engine.showHandle();
} else {
engine.hideHandle();
};
disOverText(_handle, ((_handle.currentFrame == 1)) ? 1 : ((_overText.totalFrames + 1) - 1));
}
private function rollOverHelp(_arg1:MouseEvent):void{
disOverText(_help, 8);
}
private function disOverText(_arg1:MovieClip, _arg2:int):void{
_overText.visible = true;
_overText.x = (_arg1.x + (_arg1.width / 2));
_overText.y = (_arg1.y + _arg1.height);
_overText.gotoAndStop(_arg2);
}
private function clickBorder(_arg1:MouseEvent):void{
if (_border.currentFrame == 1){
engine.showBorder();
} else {
engine.hideBorder();
};
}
function hideMinimapState():void{
_minimap.gotoAndStop(1);
}
function changeMeterialState(_arg1:String):void{
var _local2:Number;
var _local3:Number;
var _local4:String;
var _local5:Bitmap;
_local2 = _materailState.width;
_local3 = _materailState.height;
for (_local4 in _materailState) {
_materailState.removeChild(_materailState[_local4]);
};
_local5 = new Bitmap(Attach.getBitmapData(_arg1));
_local5.width = _local2;
_local5.height = _local3;
_materailState.addChild(_local5);
}
private function clickBitmap(_arg1:MouseEvent):void{
engine.showBitmap();
}
private function clickPause(_arg1:MouseEvent):void{
if (_pause.currentFrame == 1){
engine.pause();
} else {
engine.restart();
};
disOverText(_pause, ((_pause.currentFrame == 1)) ? 6 : ((_overText.totalFrames + 1) - 6));
}
private function initDis():void{
_mc = Attach.getSprite("ToolBoxMc");
engine.mc.addChild(_mc);
_materail = _mc["materail"];
_materailState = _materail["state"];
_minimap = _mc["minimap"];
_minimap.gotoAndStop(1);
_bitmap = _mc["bitmap"];
_bitmap.gotoAndStop(1);
_backChoose = _mc["backChoose"];
_border = _mc["border"];
_border.gotoAndStop(1);
_help = _mc["help_mc"];
_handle = _mc["handle"];
_handle.gotoAndStop(1);
_time = _mc["time_txt"];
_pause = _mc["pause"];
_pause.gotoAndStop(1);
_overText = _mc["overText_mc"];
_overText.visible = false;
_overText.mouseEnabled = false;
_overText.mouseChildren = false;
_logo = _mc["logo_mc"];
_logo.buttonMode = true;
_soundLeft = _mc["soundLeft_mc"];
_soundRight = _mc["soundRight_mc"];
_sound = _mc["sound_mc"];
_sound.gotoAndStop((SoundsManager.getInstance().Enabled) ? 1 : 2);
_soundTxt = _mc["sound_txt"];
updateSoundText();
}
private function delEvent():void{
_backChoose.removeEventListener(MouseEvent.CLICK, clickBackChoose);
_minimap.removeEventListener(MouseEvent.CLICK, clickMinimap);
_bitmap.removeEventListener(MouseEvent.CLICK, clickBitmap);
_materail.removeEventListener(MouseEvent.CLICK, clickMaterail);
_border.removeEventListener(MouseEvent.CLICK, clickBorder);
_help.removeEventListener(MouseEvent.CLICK, clickHelp);
_handle.removeEventListener(MouseEvent.CLICK, clickHandle);
_pause.removeEventListener(MouseEvent.CLICK, clickPause);
_handle.removeEventListener(MouseEvent.ROLL_OVER, rollOverHandle);
_minimap.removeEventListener(MouseEvent.ROLL_OVER, rollOverMinimap);
_bitmap.removeEventListener(MouseEvent.ROLL_OVER, rollOverBitmap);
_border.removeEventListener(MouseEvent.ROLL_OVER, rollOverBorder);
_materail.removeEventListener(MouseEvent.ROLL_OVER, rollOverMaterail);
_pause.removeEventListener(MouseEvent.MOUSE_OVER, rollOverPause);
_backChoose.removeEventListener(MouseEvent.ROLL_OVER, rollOverBack);
_help.removeEventListener(MouseEvent.ROLL_OVER, rollOverHelp);
_handle.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_minimap.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_bitmap.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_border.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_materail.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_pause.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_backChoose.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_help.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_logo.removeEventListener(MouseEvent.CLICK, Handler.click_level_logo);
}
private function clickHelp(_arg1:MouseEvent):void{
engine.openHelp();
}
private function initEvent():void{
_backChoose.addEventListener(MouseEvent.CLICK, clickBackChoose);
_minimap.addEventListener(MouseEvent.CLICK, clickMinimap);
_bitmap.addEventListener(MouseEvent.CLICK, clickBitmap);
_materail.addEventListener(MouseEvent.CLICK, clickMaterail);
_border.addEventListener(MouseEvent.CLICK, clickBorder);
_help.addEventListener(MouseEvent.CLICK, clickHelp);
_handle.addEventListener(MouseEvent.CLICK, clickHandle);
_pause.addEventListener(MouseEvent.CLICK, clickPause);
_handle.addEventListener(MouseEvent.ROLL_OVER, rollOverHandle);
_minimap.addEventListener(MouseEvent.ROLL_OVER, rollOverMinimap);
_bitmap.addEventListener(MouseEvent.ROLL_OVER, rollOverBitmap);
_border.addEventListener(MouseEvent.ROLL_OVER, rollOverBorder);
_materail.addEventListener(MouseEvent.ROLL_OVER, rollOverMaterail);
_pause.addEventListener(MouseEvent.MOUSE_OVER, rollOverPause);
_backChoose.addEventListener(MouseEvent.ROLL_OVER, rollOverBack);
_help.addEventListener(MouseEvent.ROLL_OVER, rollOverHelp);
_handle.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_minimap.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_bitmap.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_border.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_materail.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_pause.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_backChoose.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_help.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_logo.addEventListener(MouseEvent.CLICK, Handler.click_level_logo);
_soundLeft.addEventListener(MouseEvent.CLICK, clickSoundLeft);
_soundRight.addEventListener(MouseEvent.CLICK, clickSoundRight);
_sound.addEventListener(MouseEvent.CLICK, clickSound);
}
private function rollOverMinimap(_arg1:MouseEvent):void{
disOverText(_minimap, 2);
}
private function rollOverBack(_arg1:MouseEvent):void{
disOverText(_backChoose, 7);
}
private function rollOverHandle(_arg1:MouseEvent):void{
disOverText(_handle, ((_handle.currentFrame == 1)) ? 1 : ((_overText.totalFrames + 1) - 1));
}
private function clickSoundRight(_arg1:MouseEvent):void{
if (SoundsManager.getInstance().Enabled){
SoundsManager.getInstance().stopMusic();
if (SoundList.instance.curr == (SoundList.instance.list.length - 1)){
SoundList.instance.curr = 0;
} else {
SoundList.instance.curr++;
};
SoundsManager.getInstance().playMusic(SoundList.instance.list[SoundList.instance.curr], Data.musicValue);
updateSoundText();
};
}
private function clickSound(_arg1:MouseEvent):void{
switch (_sound.currentFrame){
case 1:
_sound.gotoAndStop(2);
SoundsManager.getInstance().Enabled = false;
break;
case 2:
_sound.gotoAndStop(1);
SoundsManager.getInstance().Enabled = true;
break;
};
}
}
}//package game
Section 23
//handle_66 (jigsaw_puzzle_fla.handle_66)
package jigsaw_puzzle_fla {
import flash.display.*;
public dynamic class handle_66 extends MovieClip {
public var handle:handle_1;
}
}//package jigsaw_puzzle_fla
Section 24
//label_197 (jigsaw_puzzle_fla.label_197)
package jigsaw_puzzle_fla {
import flash.display.*;
public dynamic class label_197 extends MovieClip {
public var flag:MovieClip;
}
}//package jigsaw_puzzle_fla
Section 25
//LanguageSelectPopup_196 (jigsaw_puzzle_fla.LanguageSelectPopup_196)
package jigsaw_puzzle_fla {
import flash.display.*;
public dynamic class LanguageSelectPopup_196 extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn:MovieClip;
public var l_tr:MovieClip;
public var l_de:MovieClip;
public var l_my:MovieClip;
public var _blank:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_ph:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package jigsaw_puzzle_fla
Section 26
//logoani1_2 (jigsaw_puzzle_fla.logoani1_2)
package jigsaw_puzzle_fla {
import flash.display.*;
public dynamic class logoani1_2 extends MovieClip {
public function logoani1_2(){
addFrameScript(239, frame240);
}
function frame240(){
stop();
}
}
}//package jigsaw_puzzle_fla
Section 27
//Timeline_201 (jigsaw_puzzle_fla.Timeline_201)
package jigsaw_puzzle_fla {
import flash.display.*;
public dynamic class Timeline_201 extends MovieClip {
public var material_2:兰色_01;
public var material_3:白色_01;
public var material_4:粉色_01;
public var material_6:深红_01;
public var material_5:深灰_01;
public var material_7:黄色_01;
public var material_0:紫色_01;
public var material_1:绿色_01;
public var back:close_按钮;
}
}//package jigsaw_puzzle_fla
Section 28
//txtmc_98 (jigsaw_puzzle_fla.txtmc_98)
package jigsaw_puzzle_fla {
import flash.display.*;
import flash.text.*;
public dynamic class txtmc_98 extends MovieClip {
public var txt:TextField;
}
}//package jigsaw_puzzle_fla
Section 29
//LoadImg (net.LoadImg)
package net {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class LoadImg {
private var urlRequest:URLRequest;
private var loader:Loader;
private var listener:LoadListener;
public function LoadImg(_arg1:LoadListener, _arg2:String){
listener = _arg1;
urlRequest = new URLRequest(_arg2);
initLoader();
}
private function initLoader():void{
loader = new Loader();
loader.load(urlRequest);
loader.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
}
public function del():void{
delLoader();
listener = null;
urlRequest = null;
}
private function completeHandler(_arg1:Event):void{
listener.loadCompleteHandler(_arg1.target["content"]["bitmapData"]);
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
if (loader.contentLoaderInfo.bytesTotal != 0){
_local2 = (loader.contentLoaderInfo.bytesLoaded / loader.contentLoaderInfo.bytesTotal);
listener.loadProgressHandler(_local2);
};
}
private function delLoader():void{
loader.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
loader = null;
}
}
}//package net
Section 30
//LoadListener (net.LoadListener)
package net {
import flash.display.*;
public interface LoadListener {
function loadProgressHandler(_arg1:Number):void;
function loadCompleteHandler(_arg1:BitmapData):void;
}
}//package net
Section 31
//XMLData (net.XMLData)
package net {
public class XMLData {
private var xmlInstance:XML;
private static var ins:XMLData;
public function smallURL(_arg1:int, _arg2:int, _arg3:int):String{
var year = _arg1;
var month = _arg2;
var date = _arg3;
return (xmlInstance.week.item.(((((int(@year) == year)) && ((int(@month) == (month + 1))))) && ((int(@date) == date))).@small);
}
public function leftDate():Date{
return (new Date(int(xmlInstance.week.item[0].@year), (int(xmlInstance.week.item[0].@month) - 1), int(xmlInstance.week.item[0].@date)));
}
public function bigURL(_arg1:int, _arg2:int, _arg3:int):String{
var year = _arg1;
var month = _arg2;
var date = _arg3;
return (xmlInstance.week.item.(((((int(@year) == year)) && ((int(@month) == (month + 1))))) && ((int(@date) == date))).@big);
}
public function themeURL(_arg1:int, _arg2:int, _arg3:int):String{
var year = _arg1;
var month = _arg2;
var date = _arg3;
return (xmlInstance.week.item.(((((int(@year) == year)) && ((int(@month) == (month + 1))))) && ((int(@date) == date))).parent().@themeurl);
}
public function rightDate():Date{
var _local1:int;
_local1 = XMLList(xmlInstance.week.item).length();
return (new Date(int(xmlInstance.week.item[(_local1 - 1)].@year), (int(xmlInstance.week.item[(_local1 - 1)].@month) - 1), int(xmlInstance.week.item[(_local1 - 1)].@date)));
}
public function set xml(_arg1:XML):void{
xmlInstance = _arg1;
}
public static function get instance():XMLData{
if (ins == null){
ins = new (XMLData);
};
return (ins);
}
}
}//package net
Section 32
//Check (safe.Check)
package safe {
import flash.net.*;
import flash.external.*;
public class Check {
private var _swfDomain:String;
private var _swfBelongSpill:Boolean;
private var _siteDomain:String;
private var _siteBelongSpill:Boolean;
private static var _instance:Check;
public function Check():void{
_siteDomain = returnDomain(returnURL());
_siteBelongSpill = searchForSite(_siteDomain);
_swfDomain = new LocalConnection().domain;
_swfBelongSpill = searchForSwf(_swfDomain);
}
private function returnDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
public function get siteBelongSpill():Boolean{
return (_siteBelongSpill);
}
private function searchForSite(_arg1:String):Boolean{
var _local2:uint;
_local2 = 0;
while (_local2 < Data.spilSite.length) {
if (_arg1 == Data.spilSite[_local2]){
return (true);
};
_local2++;
};
return (false);
}
public function get siteDomain():String{
return (_siteDomain);
}
public function get swfDomain():String{
return (_swfDomain);
}
private function searchForSwf(_arg1:String):Boolean{
var _local2:int;
_local2 = 0;
while (_local2 < Data.domain.length) {
if (_arg1 == Data.domain[_local2]){
return (true);
};
_local2++;
};
return (false);
}
public function get swfBelongSpill():Boolean{
return (_swfBelongSpill);
}
private function returnURL():String{
var loc:String;
try {
loc = ExternalInterface.call("window.location.href.toString");
} catch(e) {
loc = "error";
};
if ((((loc == null)) || ((loc == "")))){
loc = "error";
};
if (String(loc).indexOf(".swf") != -1){
loc = "error";
};
return (loc);
}
public static function get instance():Check{
if (_instance == null){
_instance = new (Check);
};
return (_instance);
}
}
}//package safe
Section 33
//Data (safe.Data)
package safe {
public class Data {
static const domain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com"];
static const spilSite:Array = ["gamedev.dev.spillgroup.com", "www.agame.com", "www.girlsgogames.com", "www.games.co.uk", "www.mygames.co.uk", "www.girlsgogames.co.uk", "www.spel.nl", "www.spelletjes.nl", "www.girlsgogames.nl", "www.jetztspielen.de", "www.spielen.com", "www.girlsgogames.de", "www.jeux.fr", "www.jeu.fr", "www.girlsgogames.fr", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.gioco.it", "www.giocaregratis.it", "www.girlsgogames.it", "www.gry.pl", "www.minigry.pl", "www.girlsgogames.pl", "www.spela.se", "www.spel.eu", "www.girlsgogames.se", "www.ojogos.pt", "www.ourgames.ru", "www.flashgames.ru", "www.girlsgogames.ru", "www.oyunlar123.com", "www.asoyun.com", "www.girlsgogamestr.com", "www.gamesgames.com", "www.agame.com", "www.girlsgogames.com", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.ojogos.com.br", "www.clickjogos.com", "www.girlsgogames.com.br", "www.game.com.cn", "files.game.com.cn", "www.xiaoyouxi.com", "www.egames.jp", "www.game.co.in", "www.game.co.in", "www.girlsgogames.in", "www.games.co.id", "www.laro.com.ph", "www.game.com.my", "www.onrpg.com", "www.zlonggames.com", "www.zlonggamestest.com", "www.girlsgogames.es", "www.a10.com", "gamedev.dev.spilgames.com", "www.spel.se"];
}
}//package safe
Section 34
//Random (safe.Random)
package safe {
import flash.display.*;
import flash.net.*;
public class Random {
var randomStr;
private static var hexcase:Number = 0;
public static var gameID:int = 10000;
public static var strqq:String;
private static var chrsz:Number = 8;
private static var b64pad:String = "";
public function Random(){
randomStr = Randoms(10);
super();
}
public static function average_ii(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
return (average_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function SortT(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
_local2 = "";
_local3 = 0;
while (_local3 < 10) {
_local2 = (_local2 + _local1.substr(Math.floor((Math.random() * _local1.length)), 1));
_local3++;
};
return (_local2);
}
public static function b64_hmac_average(_arg1, _arg2){
return (binl2b64(core_hmac_average(_arg1, _arg2)));
}
public static function md5(_arg1:String){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
var _local15:*;
var _local16:*;
var _local17:*;
var _local18:*;
var _local19:*;
_local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32)));
_local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3;
_local5 = 1732584193;
_local6 = -271733879;
_local7 = -1732584194;
_local8 = 271733878;
_local9 = str2binl(_local4);
if (_local9.length > 16){
_local9 = core_average(_local9, (_local4.length * chrsz));
};
_local10 = new Array(16);
_local11 = new Array(16);
_local12 = 0;
while (_local12 < 16) {
_local10[_local12] = (_local9[_local12] ^ 909522486);
_local11[_local12] = (_local9[_local12] ^ 1549556828);
_local12++;
};
_local14 = core_average(_local10.concat(str2binl(_local13)), (0x0200 + (_local13.length * chrsz)));
return (core_average(_local11.concat(_local14), (0x0200 + 128)));
return (new Array(_local5, _local6, _local7, _local8));
}
public static function average_gg(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
return (average_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function average_hh(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
return (average_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function binl2b64(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
_local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local3 = "";
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local5 = (((((_arg1[(_local4 >> 2)] >> (8 * (_local4 % 4))) & 0xFF) << 16) | (((_arg1[((_local4 + 1) >> 2)] >> (8 * ((_local4 + 1) % 4))) & 0xFF) << 8)) | ((_arg1[((_local4 + 2) >> 2)] >> (8 * ((_local4 + 2) % 4))) & 0xFF));
_local6 = 0;
while (_local6 < 4) {
if (((_local4 * 8) + (_local6 * 6)) > (_arg1.length * 32)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local5 >> (6 * (3 - _local6))) & 63)));
};
_local6++;
};
_local4 = (_local4 + 3);
};
return (_local3);
}
public static function senturl(_arg1, _arg2, _arg3, _arg4):void{
var _local5:String;
var _local6:URLRequest;
_local5 = ((((((((("http://user.game.com.cn/game/?action=highscore&id=" + gameID) + "&s=") + _arg1) + "&a=") + _arg2) + "&t=") + _arg4) + "&r=") + _arg3);
_local6 = new URLRequest(_local5);
navigateToURL(_local6, "_blank");
}
public static function geturl():void{
var _local1:String;
var _local2:URLRequest;
_local1 = ("http://user.game.com.cn/game/?action=highscore&id=" + gameID);
_local2 = new URLRequest(_local1);
navigateToURL(_local2, "_blank");
}
public static function bit_rol(_arg1, _arg2){
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
public static function core_hmac_average(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
_local3 = str2binl(_arg1);
if (_local3.length > 16){
_local3 = core_average(_local3, (_arg1.length * chrsz));
};
_local4 = new Array(16);
_local5 = new Array(16);
_local6 = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
_local7 = core_average(_local4.concat(str2binl(_arg2)), (0x0200 + (_arg2.length * chrsz)));
return (core_average(_local5.concat(_local7), (0x0200 + 128)));
}
public static function average_ff(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
return (average_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
public static function str2binl(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = new Array();
_local3 = ((1 << chrsz) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * chrsz)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / chrsz)) & _local3) << (_local4 % 32)));
_local4 = (_local4 + chrsz);
};
return (_local2);
}
public static function binl2hex(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef";
_local3 = "";
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local3 = (_local3 + (_local2.charAt(((_arg1[(_local4 >> 2)] >> (((_local4 % 4) * 8) + 4)) & 15)) + _local2.charAt(((_arg1[(_local4 >> 2)] >> ((_local4 % 4) * 8)) & 15))));
_local4++;
};
return (_local3);
}
public static function calcaverage(_arg1){
return (binl2hex(core_average(str2binl(_arg1), (_arg1.length * chrsz))));
}
public static function hex_hmac_average(_arg1, _arg2){
return (binl2hex(core_hmac_average(_arg1, _arg2)));
}
public static function safe_add(_arg1, _arg2){
var _local3:*;
var _local4:*;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
public static function Randoms(_arg1:Number){
var _local2:*;
var _local3:*;
var _local4:String;
var _local5:*;
_local2 = "123098938487634asdflskafgpoipALKGAISFH:LKHAODG";
_local3 = "";
_local4 = "";
_local5 = 0;
while (_local5 < _arg1) {
_local3 = (_local3 + _local2.substr(Math.floor((Math.random() * _local2.length)), 1));
_local5++;
};
return (_local3);
}
public static function average_vm_test(){
return ((hex_average("abc") == "900150983cd24fb0d6963f7d28e17f72"));
}
public static function hex_average(_arg1){
return (binl2hex(core_average(str2binl(_arg1), (_arg1.length * chrsz))));
}
public static function average_cmn(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6){
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
public static function core_average(_arg1, _arg2){
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = average_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = average_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = average_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = average_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = average_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = average_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = average_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = average_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = average_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = average_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = average_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = average_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = average_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = average_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = average_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = average_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = average_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = average_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = average_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = average_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = average_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = average_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = average_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = average_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = average_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = average_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = average_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = average_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = average_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = average_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = average_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = average_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = average_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = average_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = average_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = average_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = average_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = average_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = average_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = average_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = average_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = average_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = average_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = average_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = average_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = average_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = average_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = average_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = average_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = average_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = average_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = average_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = average_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = average_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = average_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = average_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = average_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = average_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = average_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = average_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = average_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = average_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = average_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = average_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return (new Array(_local3, _local4, _local5, _local6));
}
public static function b64_average(_arg1){
return (binl2b64(core_average(str2binl(_arg1), (_arg1.length * chrsz))));
}
public static function DrawLine(_arg1, _arg2, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var point1:Vector;
var point:Vector;
var current:*;
var nextdot:*;
var minX:Number;
var minY:Number;
var maxX:Number;
var maxY:Number;
var verts:Array;
var center:Vector;
var normal:Vector;
var dmc:MovieClip;
var isVisible:Boolean;
var isActivated:Boolean;
var AbstractTile:Function;
var initializeContainer:Function;
var createBoundingRect:Function;
var testIntervals:Function;
var k:*;
var i:*;
var point2:Vector;
var point3:Vector;
var point4:Vector;
var point5:Vector;
var b:*;
var j:*;
var l:*;
var c:*;
var position = _arg1;
var line = _arg2;
var x1 = _arg3;
var x2 = _arg4;
var y1 = _arg5;
var y2 = _arg6;
AbstractTile = function (_arg1:Number, _arg2:Number){
center = new Vector(_arg1, _arg2);
verts = new Array();
normal = new Vector(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
};
initializeContainer = function (){
var _local1:String;
_local1 = "_oooo";
dmc = new MovieClip();
dmc.name = _local1;
};
createBoundingRect = function (_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local3 = (center.y - (_arg2 / 2));
_local4 = (center.y + (_arg2 / 2));
_local5 = (center.x - (_arg1 / 2));
_local6 = (center.x + (_arg1 / 2));
verts.push(new Vector(_local6, _local4));
verts.push(new Vector(_local6, _local3));
verts.push(new Vector(_local5, _local3));
verts.push(new Vector(_local5, _local4));
};
testIntervals = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
if (_arg2 < _arg3){
return (0);
};
if (_arg4 < _arg1){
return (0);
};
_local5 = (_arg4 - _arg1);
_local6 = (_arg3 - _arg2);
if (Math.abs(_local5) < Math.abs(_local6)){
return (_local5);
};
return (_local6);
};
point1 = new Vector(x1, y1);
point = new Vector(x2, y2);
current = point1.dot(point);
nextdot = point1.cross(point);
current = (current + nextdot);
k = [];
strqq = "";
i = 0;
while (i < 8) {
b = 0;
j = 0;
while (j < 10) {
c = line.substr(j, 1).charCodeAt();
c = String(c).substr((String(c).length - 2), 1);
b = (b + Number(c));
j = (j + 1);
};
trace(b);
if (b > 10){
b = (b % 10);
};
k[i] = Math.round((((i + b) * (i + b)) - ((b * b) / 2)));
while (k[i] >= 32) {
k[i] = Math.round((k[i] / 2));
};
l = 0;
l = 0;
while (l < (k.length - 1)) {
if (k[i] == k[l]){
k[i] = (k[i] + 1);
};
l = (l + 1);
};
trace(k[i]);
strqq = (strqq + position.substr(k[i], 1));
i = (i + 1);
};
point2 = new Vector(x1, y1);
current = point2.dot(point);
nextdot = point2.cross(point);
current = (current + nextdot);
point3 = new Vector(x1, y1);
current = point3.dot(point);
nextdot = point3.cross(point);
current = (current + nextdot);
point4 = new Vector(x1, y1);
current = point4.dot(point);
nextdot = point4.cross(point);
current = (current + nextdot);
point5 = new Vector(x1, y1);
current = point5.dot(point);
nextdot = point5.cross(point);
current = (current + nextdot);
current = Math.round(Math.sqrt((current * 2)));
if (current > 20){
current = Math.round(Math.sqrt(current));
};
return (current);
}
}
}//package safe
Section 35
//Vector (safe.Vector)
package safe {
public class Vector {
public var x:Number;
public var y:Number;
public function Vector(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
}
public function cross(_arg1:Vector):Number{
return (((x * _arg1.y) - (y * _arg1.x)));
}
public function magnitude():Number{
return (Math.sqrt(((x * x) + (y * y))));
}
public function plusNew(_arg1:Vector):Vector{
return (new Vector((x + _arg1.x), (y + _arg1.y)));
}
public function mult(_arg1:Number):Vector{
x = (x * _arg1);
y = (y * _arg1);
return (this);
}
public function dot(_arg1:Vector):Number{
return (((x * _arg1.x) + (y * _arg1.y)));
}
public function normalize():Vector{
var _local1:Number;
_local1 = Math.sqrt(((x * x) + (y * y)));
x = (x / _local1);
y = (y / _local1);
return (this);
}
public function project(_arg1:Vector):Vector{
var _local2:Number;
var _local3:Number;
var _local4:Vector;
_local2 = this.dot(_arg1);
_local3 = ((_arg1.x * _arg1.x) + (_arg1.y * _arg1.y));
_local4 = new Vector(0, 0);
_local4.x = ((_local2 / _local3) * _arg1.x);
_local4.y = ((_local2 / _local3) * _arg1.y);
return (_local4);
}
public function copy(_arg1:Vector):void{
x = _arg1.x;
y = _arg1.y;
}
public function multNew(_arg1:Number):Vector{
return (new Vector((x * _arg1), (y * _arg1)));
}
public function minus(_arg1:Vector):Vector{
x = (x - _arg1.x);
y = (y - _arg1.y);
return (this);
}
public function plus(_arg1:Vector):Vector{
x = (x + _arg1.x);
y = (y + _arg1.y);
return (this);
}
public function distance(_arg1:Vector):Number{
var _local2:Number;
var _local3:Number;
_local2 = (x - _arg1.x);
_local3 = (y - _arg1.y);
return (Math.sqrt(((_local2 * _local2) + (_local3 * _local3))));
}
public function setTo(_arg1:Number, _arg2:Number):void{
x = _arg1;
y = _arg2;
}
public function minusNew(_arg1:Vector):Vector{
return (new Vector((x - _arg1.x), (y - _arg1.y)));
}
}
}//package safe
Section 36
//Box (screen.Box)
package screen {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
import sound.*;
import data.*;
import net.*;
import fl.transitions.*;
import zlong.localization.display.*;
import flash.text.*;
import tool.*;
import fl.transitions.easing.*;
public class Box implements LoadListener {
private const scaleTime:Number = 0.5;
private const moveTime:Number = 2;
private const scaleNum:Number = 1.3;
private var _percent:TextField;
private var _completedLabel:Sprite;
private var _lock:Sprite;
private var _play:Sprite;
private var tweenScaleX:Tween;
private var _daily:TextField;
private var allowPlay:Boolean;
private var tweenScaleY:Tween;
public var date:Date;
private var _mc:Sprite;
private var _picture:Sprite;
private var width:Number;
private var tweenX:Tween;
private var _winnerTF:TextField;
private var _day:TextField;
private var _winnerMC:Sprite;
private var option:Option;
public var x:Number;
private var loadImg:LoadImg;
public static const WIDTH:Number = 75.3;
public function Box(_arg1:Option, _arg2:Number, _arg3:Number, _arg4:Date){
date = _arg4;
option = _arg1;
initAllowPlay();
initDis(_arg2, _arg3);
initPro();
if (allowPlay){
initEvent();
};
initLoadImg();
initCountryChangeEvent();
}
private function rollOutHandler(_arg1:MouseEvent):void{
if (!_percent.visible){
_play.visible = false;
_daily.visible = true;
_winnerMC.visible = true;
_winnerTF.visible = true;
if (tweenScaleX != null){
delTweenScale();
};
initTweenScale(1);
};
}
private function tweenXFinishHandler(_arg1:TweenEvent):void{
delTweenX();
option.moveFinish();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function initPro():void{
width = _mc.width;
x = _mc.x;
}
public function del():void{
delCountryChangeEvent();
if (loadImg != null){
delLoadImg();
};
if (tweenScaleX != null){
delTweenScale();
};
if (allowPlay){
delEvent();
};
delDis();
}
public function rightMove(_arg1:int):void{
initTweenX(((_arg1 * (Box.WIDTH + Option.BOXDIS)) + (Option.BOXDIS + (Box.WIDTH / 2))));
}
private function delTweenScale():void{
tweenScaleX.removeEventListener(TweenEvent.MOTION_FINISH, tweenFinishHandler);
tweenScaleX.removeEventListener(TweenEvent.MOTION_CHANGE, tweenChangeHandler);
tweenScaleX = null;
tweenScaleY = null;
}
public function loadCompleteHandler(_arg1:BitmapData):void{
_percent.visible = false;
_winnerTF.visible = allowPlay;
_winnerMC.visible = allowPlay;
_lock.visible = !(allowPlay);
_picture.visible = true;
initPicture(_arg1);
delLoadImg();
}
private function initTweenX(_arg1:Number):void{
if (allowPlay){
delEvent();
};
tweenX = new Tween(_mc, "x", Regular.easeOut, _mc.x, _arg1, moveTime, true);
tweenX.addEventListener(TweenEvent.MOTION_CHANGE, tweenXChangeHandler);
tweenX.addEventListener(TweenEvent.MOTION_FINISH, tweenXFinishHandler);
}
public function get mc():Sprite{
return (_mc);
}
public function loadProgressHandler(_arg1:Number):void{
_percent.text = String((Math.round((_arg1 * 100)) + "%"));
}
private function initCountryChangeEvent():void{
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function clickHandler(_arg1:MouseEvent):void{
if (!_percent.visible){
option.clickPlay();
SoundsManager.getInstance().playSound("menu_press_wav", Data.soundValue);
};
}
private function tweenFinishHandler(_arg1:TweenEvent):void{
delTweenScale();
}
public function leftMove(_arg1:int):void{
initTweenX(((_arg1 * (Box.WIDTH + Option.BOXDIS)) + (Option.BOXDIS + (Box.WIDTH / 2))));
}
private function rollOverHandler(_arg1:MouseEvent):void{
if (!_percent.visible){
SoundsManager.getInstance().playSound("menu_touch_wav", Data.soundValue);
_play.visible = true;
option.overHandler(date);
_daily.visible = false;
_winnerMC.visible = false;
_winnerTF.visible = false;
if (tweenScaleX != null){
delTweenScale();
};
initTweenScale(scaleNum);
};
}
private function langChangeHandler(_arg1:Event):void{
var _local2:String;
_local2 = DynamicText.dayShort[date.day][(CountryInfo.instance.language - 1)];
_day.text = ((_local2.length <= 4)) ? _local2 : (_local2.substr(0, 3) + ".");
}
private function tweenXChangeHandler(_arg1:TweenEvent):void{
x = _mc.x;
}
private function delTweenX():void{
if (allowPlay){
initEvent();
};
tweenX.removeEventListener(TweenEvent.MOTION_CHANGE, tweenXChangeHandler);
tweenX.removeEventListener(TweenEvent.MOTION_FINISH, tweenXFinishHandler);
tweenX = null;
}
private function initPicture(_arg1:BitmapData):void{
var _local2:Bitmap;
_local2 = new Bitmap(_arg1);
_local2.width = _picture.width;
_local2.height = _picture.height;
_picture.addChild(_local2);
_picture.alpha = (allowPlay) ? 1 : 0.2;
}
private function delEvent():void{
_mc.removeEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
_mc.removeEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_mc.addEventListener(MouseEvent.CLICK, clickHandler);
}
public function move(_arg1:Number):void{
x = (x + _arg1);
_mc.x = x;
}
private function initLoadImg():void{
var _local1:String;
_local1 = XMLData.instance.smallURL(date.fullYear, date.month, date.date);
loadImg = new LoadImg(this, _local1);
}
private function initTweenScale(_arg1:Number):void{
tweenScaleX = new Tween(_mc, "scaleX", Regular.easeOut, _mc.scaleX, _arg1, scaleTime, true);
tweenScaleY = new Tween(_mc, "scaleY", Regular.easeOut, _mc.scaleY, _arg1, scaleTime, true);
tweenScaleX.addEventListener(TweenEvent.MOTION_FINISH, tweenFinishHandler);
tweenScaleX.addEventListener(TweenEvent.MOTION_CHANGE, tweenChangeHandler);
}
private function delCountryChangeEvent():void{
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function initDis(_arg1:Number, _arg2:Number):void{
var _local3:String;
var _local4:String;
_mc = Attach.getSprite("BoxMC");
_mc.x = _arg1;
_mc.y = _arg2;
_mc.filters = [Data.boxDropShadowFilter];
option.mc.addChild(_mc);
_local3 = DynamicText.dayShort[date.day][(CountryInfo.instance.language - 1)];
_day = _mc["day_txt"];
_day.text = ((_local3.length <= 4)) ? _local3 : (_local3.substr(0, 3) + ".");
_daily = _mc["daily_txt"];
_daily.text = ((String((date.month + 1)) + ".") + String(date.date));
_play = _mc["play_mc"];
_play.visible = false;
_percent = _mc["percent_txt"];
_winnerTF = _mc["winner_txt"];
_local4 = Score.instance.getRank(date.fullYear, date.month, date.date)[0]["name"];
_winnerTF.text = ((_local4.length <= 6)) ? _local4 : (_local4.substr(0, 5) + ".");
_winnerTF.visible = false;
_winnerMC = _mc["winner_mc"];
_winnerMC.visible = false;
_picture = _mc["picture_mc"];
_picture.visible = false;
_lock = _mc["lock_mc"];
_lock.visible = false;
_completedLabel = _mc["completedLabel_mc"];
_completedLabel.visible = Cookie.instance.checkComplete(date.fullYear, date.month, date.date);
}
private function tweenChangeHandler(_arg1:TweenEvent):void{
option.move(this, ((_mc.width - width) / 2));
width = _mc.width;
}
private function initAllowPlay():void{
var _local1:Date;
_local1 = new Date();
allowPlay = !((Date.UTC(date.fullYear, date.month, date.date) > Date.UTC(_local1.fullYear, _local1.month, _local1.date)));
}
public function isCurrent():void{
_mc.filters = [Data.boxDropShadowFilter, Data.boxGlowFilter];
}
private function delLoadImg():void{
loadImg.del();
loadImg = null;
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler);
_mc.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler);
_mc.addEventListener(MouseEvent.CLICK, clickHandler);
}
public function noCurrent():void{
_mc.filters = [Data.boxDropShadowFilter];
}
}
}//package screen
Section 37
//Choose (screen.Choose)
package screen {
import flash.display.*;
import flash.events.*;
import data.*;
import flash.geom.*;
import tool.*;
import zlong.navigate.*;
public class Choose {
private var _view:Sprite;
private var _type_1:MovieClip;
private var _type_2:MovieClip;
private var _pieces_2:MovieClip;
private var _pieces_3:MovieClip;
private var _labelPieces:Sprite;
private var _pieces_1:MovieClip;
private var currentPieces:MovieClip;
private var _labelRotation:Sprite;
private var _yes:Sprite;
private var _jiaodai_1:Sprite;
private var _mc:Sprite;
private var _jiaodai_2:Sprite;
private var gridArr:Array;
private var manager:Manager;
private var _back:MovieClip;
private var _bitmap:Bitmap;
private var _labelType:Sprite;
private var currentType:MovieClip;
private var _no:Sprite;
private var _line:Shape;
private var _start:MovieClip;
private var _moreGames:MovieClip;
public function Choose(_arg1:Manager){
manager = _arg1;
initDis();
initBitmap();
initView();
initLine();
initJiaodai();
initEvent();
initDefault();
}
private function setRotation(_arg1:Sprite):void{
_labelRotation.x = _arg1.x;
_labelRotation.y = _arg1.y;
switch (_arg1){
case _yes:
manager.RotationEnabled = true;
break;
case _no:
manager.RotationEnabled = false;
break;
};
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function initGrid():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:ViewGrid;
var _local8:Point;
var _local9:ViewGrid;
var _local10:ViewGrid;
var _local11:Boolean;
var _local12:Boolean;
gridArr = new Array();
_local1 = (_bitmap.width / manager.lie);
_local2 = (_bitmap.height / manager.hang);
_local3 = (_local1 / Line.width);
_local4 = (_local2 / Line.height);
_local5 = 0;
while (_local5 < manager.hang) {
gridArr[_local5] = new Array();
_local6 = 0;
while (_local6 < manager.lie) {
_local8 = new Point((_local6 * _local1), (_local5 * _local2));
_local9 = ((_local6 == 0)) ? null : gridArr[_local5][(_local6 - 1)];
_local10 = ((_local5 == 0)) ? null : gridArr[(_local5 - 1)][_local6];
_local11 = (manager.Rectangle) ? manager.Rectangle : (_local6 == (manager.lie - 1));
_local12 = (manager.Rectangle) ? manager.Rectangle : (_local5 == (manager.hang - 1));
_local7 = new ViewGrid(_view, _local8, _local3, _local4, _local9, _local10, _local11, _local12);
gridArr[_local5].push(_local7);
_local6++;
};
_local5++;
};
}
private function initDefault():void{
setPieces(_pieces_1);
setType(_type_2);
setRotation(_no);
}
public function del():void{
removeEvent();
delDis();
}
private function clickType_1(_arg1:MouseEvent):void{
setType(_type_1);
}
private function clickType_2(_arg1:MouseEvent):void{
setType(_type_2);
}
private function initLine():void{
_line = new Shape();
_mc.addChild(_line);
_line.graphics.moveTo(_bitmap.x, _bitmap.y);
_line.graphics.lineStyle(5, 0xFFFFFF);
_line.graphics.lineTo((_bitmap.x + _bitmap.width), _bitmap.y);
_line.graphics.lineTo((_bitmap.x + _bitmap.width), (_bitmap.y + _bitmap.height));
_line.graphics.lineTo(_bitmap.x, (_bitmap.y + _bitmap.height));
_line.graphics.lineTo(_bitmap.x, _bitmap.y);
}
private function initJiaodai():void{
_jiaodai_1.x = (_bitmap.x + _bitmap.width);
_jiaodai_1.y = _bitmap.y;
_jiaodai_2.x = _bitmap.x;
_jiaodai_2.y = (_bitmap.y + _bitmap.height);
_mc.setChildIndex(_jiaodai_1, (_mc.numChildren - 1));
_mc.setChildIndex(_jiaodai_2, (_mc.numChildren - 1));
}
private function updataGrid():void{
delGrid();
initGrid();
}
private function clickYes(_arg1:MouseEvent):void{
setRotation(_yes);
}
private function clickStart(_arg1:MouseEvent):void{
manager.clickStartInChoose();
}
private function cilckBack(_arg1:MouseEvent):void{
manager.clickBackInChoose();
}
private function setPieces(_arg1:MovieClip):void{
if (currentPieces != _arg1){
currentPieces = _arg1;
_labelPieces.y = (currentPieces.y + (currentPieces.height / 2));
switch (_arg1){
case _pieces_1:
manager.PieceId = 0;
break;
case _pieces_2:
manager.PieceId = 1;
break;
case _pieces_3:
manager.PieceId = 2;
break;
};
updataGrid();
};
}
private function setType(_arg1:MovieClip):void{
if (currentType != _arg1){
currentType = _arg1;
_labelType.x = currentType.x;
_labelType.y = currentType.y;
switch (_arg1){
case _type_1:
manager.Rectangle = true;
break;
case _type_2:
manager.Rectangle = false;
break;
};
updataGrid();
};
}
private function initView():void{
_view = new Sprite();
_mc.addChild(_view);
_view.x = _bitmap.x;
_view.y = _bitmap.y;
}
private function initDis():void{
_mc = Attach.getSprite("ChooseMC");
manager.mc.addChild(_mc);
_pieces_1 = _mc["pieces_1"];
_pieces_2 = _mc["pieces_2"];
_pieces_3 = _mc["pieces_3"];
_pieces_1["txt_mc"]["txt"].text = (manager.PicecArr[0]["hang"] * manager.PicecArr[0]["lie"]);
_pieces_2["txt_mc"]["txt"].text = (manager.PicecArr[1]["hang"] * manager.PicecArr[1]["lie"]);
_pieces_3["txt_mc"]["txt"].text = (manager.PicecArr[2]["hang"] * manager.PicecArr[2]["lie"]);
_type_1 = _mc["type_1"];
_type_2 = _mc["type_2"];
_yes = _mc["yes"];
_no = _mc["no"];
_start = _mc["start"];
_back = _mc["back"];
_moreGames = _mc["moreGames_mc"];
_labelPieces = _mc["labelPieces"];
_labelType = _mc["labelType"];
_labelRotation = _mc["labelRotation"];
_jiaodai_1 = _mc["jiaodai_1"];
_jiaodai_2 = _mc["jiaodai_2"];
}
private function initBitmap():void{
_bitmap = new Bitmap(manager.bmd);
if (_bitmap.width > _bitmap.height){
_bitmap.width = (_jiaodai_1.x - _jiaodai_2.x);
_bitmap.scaleY = _bitmap.scaleX;
} else {
_bitmap.height = (_jiaodai_2.y - _jiaodai_1.y);
_bitmap.scaleX = _bitmap.scaleY;
};
_bitmap.x = _jiaodai_2.x;
_bitmap.y = _jiaodai_1.y;
_mc.addChild(_bitmap);
}
private function clickPieces_2(_arg1:MouseEvent):void{
setPieces(_pieces_2);
}
private function clickPieces_3(_arg1:MouseEvent):void{
setPieces(_pieces_3);
}
private function clickNo(_arg1:MouseEvent):void{
setRotation(_no);
}
private function clickPieces_1(_arg1:MouseEvent):void{
setPieces(_pieces_1);
}
private function initEvent():void{
_pieces_1.addEventListener(MouseEvent.CLICK, clickPieces_1);
_pieces_2.addEventListener(MouseEvent.CLICK, clickPieces_2);
_pieces_3.addEventListener(MouseEvent.CLICK, clickPieces_3);
_type_1.addEventListener(MouseEvent.CLICK, clickType_1);
_type_2.addEventListener(MouseEvent.CLICK, clickType_2);
_yes.addEventListener(MouseEvent.CLICK, clickYes);
_no.addEventListener(MouseEvent.CLICK, clickNo);
_start.addEventListener(MouseEvent.CLICK, clickStart);
_back.addEventListener(MouseEvent.CLICK, cilckBack);
_moreGames.addEventListener(MouseEvent.CLICK, Handler.click_mainscreen_button);
}
private function delGrid():void{
var _local1:int;
var _local2:int;
if (gridArr != null){
_local1 = 0;
while (_local1 < gridArr.length) {
_local2 = 0;
while (_local2 < gridArr[_local1].length) {
gridArr[_local1][_local2].del();
_local2++;
};
_local1++;
};
gridArr = new Array();
};
}
private function removeEvent():void{
_pieces_1.removeEventListener(MouseEvent.CLICK, clickPieces_1);
_pieces_2.removeEventListener(MouseEvent.CLICK, clickPieces_2);
_pieces_3.removeEventListener(MouseEvent.CLICK, clickPieces_3);
_type_1.removeEventListener(MouseEvent.CLICK, clickType_1);
_type_2.removeEventListener(MouseEvent.CLICK, clickType_2);
_yes.removeEventListener(MouseEvent.CLICK, clickYes);
_no.removeEventListener(MouseEvent.CLICK, clickNo);
_start.removeEventListener(MouseEvent.CLICK, clickStart);
_moreGames.removeEventListener(MouseEvent.CLICK, Handler.click_mainscreen_button);
}
}
}//package screen
Section 38
//Credits (screen.Credits)
package screen {
import flash.display.*;
import flash.events.*;
import tool.*;
public class Credits {
private var _bg:Sprite;
private var _back:MovieClip;
private var manager:Manager;
private var _mc:Sprite;
public function Credits(_arg1:Manager){
manager = _arg1;
initDis();
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
public function del():void{
delEvent();
delDis();
}
private function initEvent():void{
_bg.addEventListener(MouseEvent.CLICK, clickBg);
_back.addEventListener(MouseEvent.CLICK, clickBack);
}
private function clickBg(_arg1:MouseEvent):void{
}
private function delEvent():void{
_bg.removeEventListener(MouseEvent.CLICK, clickBg);
_back.removeEventListener(MouseEvent.CLICK, clickBack);
}
private function clickBack(_arg1:MouseEvent):void{
manager.clickBackInCredits();
}
private function initDis():void{
_mc = Attach.getSprite("CreditsMC");
manager.mc.addChild(_mc);
_bg = _mc["bg"];
_back = _mc["back_mc"];
}
}
}//package screen
Section 39
//GameCn (screen.GameCn)
package screen {
import flash.display.*;
import flash.events.*;
import data.*;
import flash.net.*;
import tool.*;
public class GameCn {
private var manager:Manager;
private var _mc:MovieClip;
public function GameCn(_arg1:Manager, _arg2:Sprite){
manager = _arg1;
initDis(_arg2);
initEvent();
}
private function clickMc(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.game.com.cn/"), "_blank");
}
private function delMc():void{
_mc.stop();
_mc.parent.removeChild(_mc);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickMc);
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
public function del():void{
delEvent();
delMc();
}
private function enterFrameMc(_arg1:Event):void{
if (_mc.totalFrames == _mc.currentFrame){
manager.endInGameCn();
};
}
private function delEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
}
private function initDis(_arg1:Sprite):void{
_mc = Attach.getMovieClip("GameCnMc");
_arg1.addChild(_mc);
_mc.x = (Data.stageWidth / 2);
_mc.y = (Data.stageHeight / 2);
}
}
}//package screen
Section 40
//HighScore (screen.HighScore)
package screen {
import flash.display.*;
import flash.events.*;
import data.*;
import flash.text.*;
import tool.*;
import zlong.navigate.*;
public class HighScore {
private var _back:MovieClip;
private var _time:TextField;
private var manager:Manager;
private var rank:Array;
private var _moreGames:MovieClip;
private var _mc:Sprite;
public function HighScore(_arg1:Manager):void{
manager = _arg1;
initRank();
initDis();
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function clickBack(_arg1:MouseEvent):void{
manager.clickBackInHighScore();
}
public function del():void{
delEvent();
delDis();
}
private function initEvent():void{
_back.addEventListener(MouseEvent.CLICK, clickBack);
_moreGames.addEventListener(MouseEvent.CLICK, Handler.click_highscore_button);
}
private function delEvent():void{
_back.removeEventListener(MouseEvent.CLICK, clickBack);
_moreGames.removeEventListener(MouseEvent.CLICK, Handler.click_highscore_button);
}
private function initRank():void{
rank = Score.instance.getRank(manager.date.fullYear, manager.date.month, manager.date.date);
}
private function initDis():void{
var _local1:int;
var _local2:TextField;
var _local3:TextField;
_mc = Attach.getSprite("HighScoreMC");
manager.mc.addChild(_mc);
_time = _mc["time_txt"];
_time.text = ((((String((manager.date.month + 1)) + "/") + manager.date.date.toString()) + "/") + manager.date.fullYear.toString());
_moreGames = (_mc.getChildByName("moreGames_mc") as MovieClip);
_back = (_mc.getChildByName("back") as MovieClip);
_local1 = 0;
while (_local1 < 10) {
_local2 = (_mc.getChildByName(("name_" + String(_local1))) as TextField);
_local3 = (_mc.getChildByName(("score_" + String(_local1))) as TextField);
_local2.text = rank[_local1]["name"];
_local3.text = rank[_local1]["score"];
_local1++;
};
}
}
}//package screen
Section 41
//LoadingBigImg (screen.LoadingBigImg)
package screen {
import flash.display.*;
import net.*;
import flash.text.*;
import tool.*;
public class LoadingBigImg implements LoadListener {
private var loadImg:LoadImg;
private var _progress:TextField;
private var manager:Manager;
private var _mc:Sprite;
private var _ani:MovieClip;
public function LoadingBigImg(_arg1:Manager){
manager = _arg1;
initDis();
initLoadImg();
}
public function loadCompleteHandler(_arg1:BitmapData):void{
manager.loadBigImgComplete(_arg1);
delLoadImg();
}
private function initDis():void{
_mc = Attach.getMovieClip("LoadingBigImgMC");
manager.mc.addChild(_mc);
_progress = _mc["progress_txt"];
_ani = _mc["ani_mc"];
}
public function del():void{
delDis();
}
private function initLoadImg():void{
var _local1:String;
_local1 = XMLData.instance.bigURL(manager.date.fullYear, manager.date.month, manager.date.date);
loadImg = new LoadImg(this, _local1);
}
public function loadProgressHandler(_arg1:Number):void{
_progress.text = String((Math.round((_arg1 * 100)) + "%"));
}
private function delLoadImg():void{
loadImg.del();
loadImg = null;
}
private function delDis():void{
_ani.stop();
manager.mc.removeChild(_mc);
}
}
}//package screen
Section 42
//LoadingSWF (screen.LoadingSWF)
package screen {
import flash.display.*;
import flash.events.*;
import flash.text.*;
import tool.*;
import zlong.navigate.*;
public class LoadingSWF {
private var manager:Manager;
private var _logo:MovieClip;
private var _mc:Sprite;
private var _progress_txt:TextField;
public function LoadingSWF(_arg1:Manager, _arg2:Sprite){
manager = _arg1;
initDis(_arg2);
initEvent();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
public function del():void{
removeEvent();
delDis();
}
private function removeEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
_logo.removeEventListener(MouseEvent.CLICK, Handler.click_preloader_logo);
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
_logo.addEventListener(MouseEvent.CLICK, Handler.click_preloader_logo);
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = (_mc.root.loaderInfo.bytesLoaded / _mc.root.loaderInfo.bytesTotal);
_progress_txt.text = String((Math.round((_local2 * 100)) + "%"));
if (_local2 == 1){
manager.loadSWFComplete();
};
}
private function initDis(_arg1:Sprite):void{
_mc = Attach.getSprite("LoadingMc");
_arg1.addChild(_mc);
_progress_txt = (_mc.getChildByName("progress_txt") as TextField);
_logo = _mc["logo_mc"];
}
}
}//package screen
Section 43
//LoadingXML (screen.LoadingXML)
package screen {
import flash.display.*;
import flash.events.*;
import data.*;
import net.*;
import flash.text.*;
import flash.net.*;
import tool.*;
public class LoadingXML {
private var manager:Manager;
private var _name:TextField;
private var loader:URLLoader;
private var _mc:Sprite;
private var _progress_txt:TextField;
public function LoadingXML(_arg1:Manager){
manager = _arg1;
initDis();
initLoader();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function delLoader():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
loader = null;
}
public function del():void{
delLoader();
delDis();
}
private function initLoader():void{
_name.text = Data.XMLURL.substring((Data.XMLURL.length - 6));
loader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.load(new URLRequest(Data.XMLURL));
_mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
if (loader.bytesTotal != 0){
_local2 = (loader.bytesLoaded / loader.bytesTotal);
_progress_txt.text = String((Math.round((_local2 * 100)) + "%"));
if (_local2 == 1){
XMLData.instance.xml = new XML(loader.data);
manager.loadXMLComplete();
};
};
}
private function initDis():void{
_mc = Attach.getSprite("LoadingXMLMC");
manager.mc.addChild(_mc);
_progress_txt = (_mc.getChildByName("progress_txt") as TextField);
_name = _mc["name_txt"];
}
}
}//package screen
Section 44
//Option (screen.Option)
package screen {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
import sound.*;
import data.*;
import net.*;
import zlong.localization.display.*;
import flash.text.*;
import tool.*;
import zlong.navigate.*;
public class Option {
private const boxY:Number = 235;
private var _month:TextField;
private var _date:TextField;
private var boxArr:Array;
private var _sound:MovieClip;
private var _year:TextField;
private var _right:MovieClip;
private var manager:Manager;
private var _highestScore:TextField;
private var _mc:Sprite;
private var _copyright:SimpleButton;
private var theme:Theme;
private var _day:TextField;
private var _highscores:MovieClip;
private var _left:MovieClip;
private var _moreGames:MovieClip;
private var countriesBox:Sprite;
private static const BOXNUM:Number = 7;
public static const BOXDIS:Number = ((Data.stageWidth - (Box.WIDTH * BOXNUM)) / (BOXNUM + 1));
public function Option(_arg1:Manager){
XMLData.instance.rightDate();
manager = _arg1;
initPro();
initDis();
initTheme(manager.date);
initBox();
updateChildDepth();
initEvent();
updataDate();
}
private function delDis():void{
_mc.parent.removeChild(countriesBox);
_mc.parent.removeChild(_mc);
}
public function del():void{
delTheme();
delEvent();
delDis();
}
private function updataDate():void{
updataCurr();
updataText();
}
private function rightMove():void{
var _local1:int;
_local1 = 0;
while (_local1 < boxArr.length) {
boxArr[_local1].rightMove(_local1);
_local1++;
};
}
private function updataText():void{
_year.text = manager.date.fullYear.toString();
_month.text = DynamicText.month[(CountryInfo.instance.language - 1)][manager.date.month];
_date.text = manager.date.date.toString();
_day.text = DynamicText.day[manager.date.day][(CountryInfo.instance.language - 1)];
_highestScore.text = Score.instance.getRank(manager.date.fullYear, manager.date.month, manager.date.date)[0]["score"];
}
private function initBox():void{
var _local1:Box;
var _local2:int;
_local2 = 0;
while (_local2 < 7) {
_local1 = new Box(this, ((_local2 * (Box.WIDTH + BOXDIS)) + (BOXDIS + (Box.WIDTH / 2))), boxY, new Date(manager.date.fullYear, manager.date.month, ((manager.date.date - manager.date.day) + _local2)));
boxArr.push(_local1);
_local2++;
};
}
private function updataCurr():void{
var _local1:Box;
var _local2:int;
_local2 = 0;
while (_local2 < boxArr.length) {
_local1 = boxArr[_local2];
if (_local1.date.date == manager.date.date){
_local1.isCurrent();
} else {
_local1.noCurrent();
};
_local2++;
};
}
public function get mc():Sprite{
return (_mc);
}
private function addBoxToRight():void{
var _local1:Date;
var _local2:Date;
var _local3:Box;
_local1 = boxArr[(boxArr.length - 1)].date;
_local2 = new Date(_local1.fullYear, _local1.month, (_local1.date + 1));
_local3 = new Box(this, (boxArr[(boxArr.length - 1)].x + (Box.WIDTH + BOXDIS)), boxY, _local2);
boxArr.push(_local3);
}
private function initTheme(_arg1:Date):void{
theme = new Theme(this, _arg1);
}
private function clickLeft(_arg1:MouseEvent):void{
var _local2:Date;
var _local3:Date;
SoundsManager.getInstance().playSound("scroll_wav", Data.soundValue);
if (boxArr.length == BOXNUM){
_local2 = XMLData.instance.leftDate();
_local3 = new Date(boxArr[0].date.fullYear, boxArr[0].date.month, (boxArr[0].date.date - 7));
if (Date.UTC(_local2.fullYear, _local2.month, _local2.date) <= Date.UTC(_local3.fullYear, _local3.month, _local3.date)){
addBoxToLeft();
addBoxToLeft();
addBoxToLeft();
addBoxToLeft();
addBoxToLeft();
addBoxToLeft();
addBoxToLeft();
delTheme();
initTheme(boxArr[0].date);
updateChildDepth();
rightMove();
};
};
}
private function updateChildDepth():void{
var _local1:int;
var _local2:int;
_local1 = (_mc.numChildren - 1);
_mc.setChildIndex(theme.mc, _local1);
_local2 = 0;
while (_local2 < boxArr.length) {
_mc.setChildIndex(boxArr[_local2].mc, _local1);
_local2++;
};
_mc.setChildIndex(_left, _local1);
_mc.setChildIndex(_right, _local1);
}
private function langChangeHandler(_arg1:Event):void{
_month.text = DynamicText.month[(CountryInfo.instance.language - 1)][manager.date.month];
_day.text = DynamicText.day[manager.date.day][(CountryInfo.instance.language - 1)];
}
public function moveFinish():void{
var _local1:Box;
var _local2:int;
_local2 = 0;
while (_local2 < boxArr.length) {
_local1 = boxArr[_local2];
if ((((_local1.x > (Data.stageWidth - BOXDIS))) || ((_local1.x < BOXDIS)))){
_local1.del();
boxArr.splice(_local2, 1);
_local2--;
};
_local2++;
};
}
private function addBoxToLeft():void{
var _local1:Date;
var _local2:Date;
var _local3:Box;
_local1 = boxArr[0].date;
_local2 = new Date(_local1.fullYear, _local1.month, (_local1.date - 1));
_local3 = new Box(this, (boxArr[0].x - (Box.WIDTH + BOXDIS)), boxY, _local2);
boxArr.unshift(_local3);
}
private function delEvent():void{
_highscores.removeEventListener(MouseEvent.CLICK, clickHighsores);
_left.removeEventListener(MouseEvent.CLICK, clickLeft);
_right.removeEventListener(MouseEvent.CLICK, clickRight);
_moreGames.removeEventListener(MouseEvent.CLICK, Handler.click_mainscreen_button);
_copyright.removeEventListener(MouseEvent.CLICK, Handler.click_copyright);
_sound.removeEventListener(MouseEvent.CLICK, clickSound);
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
public function move(_arg1:Box, _arg2:Number):void{
var _local3:int;
var _local4:int;
_local3 = 0;
while (_local3 < boxArr.length) {
if (boxArr[_local3] == _arg1){
_local4 = _local3;
break;
};
_local3++;
};
_local3 = 0;
while (_local3 < _local4) {
boxArr[_local3].move(-(_arg2));
_local3++;
};
_local3 = (boxArr.length - 1);
while (_local3 > _local4) {
boxArr[_local3].move(_arg2);
_local3--;
};
}
private function clickHighsores(_arg1:MouseEvent):void{
manager.clickHighsoresInOption();
}
public function overHandler(_arg1:Date):void{
manager.date = _arg1;
updataDate();
}
private function initDis():void{
_mc = Attach.getSprite("OptionMC");
manager.mc.addChild(_mc);
countriesBox = Attach.getSprite("CountriesBox");
countriesBox.x = 36;
countriesBox.y = 450;
manager.mc.addChild(countriesBox);
_left = _mc["left"];
_right = _mc["right"];
_highscores = _mc["highscores"];
_moreGames = _mc["moreGames_mc"];
_copyright = _mc["copyright_btn"];
_year = _mc["year_txt"];
_month = _mc["month_txt"];
_date = _mc["date_txt"];
_day = _mc["day_txt"];
_highestScore = _mc["highestScore_txt"];
_sound = _mc["sound_mc"];
_sound.gotoAndStop((SoundsManager.getInstance().Enabled) ? 1 : 2);
}
public function clickPlay():void{
manager.clickPlayInOption();
}
private function clickSound(_arg1:MouseEvent):void{
switch (_sound.currentFrame){
case 1:
_sound.gotoAndStop(2);
SoundsManager.getInstance().Enabled = false;
break;
case 2:
_sound.gotoAndStop(1);
SoundsManager.getInstance().Enabled = true;
break;
};
}
private function initEvent():void{
_highscores.addEventListener(MouseEvent.CLICK, clickHighsores);
_left.addEventListener(MouseEvent.CLICK, clickLeft);
_right.addEventListener(MouseEvent.CLICK, clickRight);
_moreGames.addEventListener(MouseEvent.CLICK, Handler.click_mainscreen_button);
_copyright.addEventListener(MouseEvent.CLICK, Handler.click_copyright);
_sound.addEventListener(MouseEvent.CLICK, clickSound);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function clickRight(_arg1:MouseEvent):void{
var _local2:Date;
var _local3:Date;
var _local4:Date;
var _local5:Date;
SoundsManager.getInstance().playSound("scroll_wav", Data.soundValue);
if (boxArr.length == BOXNUM){
_local2 = new Date();
_local3 = new Date(boxArr[(boxArr.length - 1)].date.fullYear, boxArr[(boxArr.length - 1)].date.month, (boxArr[(boxArr.length - 1)].date.date + 1));
_local4 = XMLData.instance.rightDate();
_local5 = new Date(boxArr[(boxArr.length - 1)].date.fullYear, boxArr[(boxArr.length - 1)].date.month, (boxArr[(boxArr.length - 1)].date.date + 7));
if ((((Date.UTC(_local4.fullYear, _local4.month, _local4.date) >= Date.UTC(_local5.fullYear, _local5.month, _local5.date))) && ((Date.UTC(_local2.fullYear, _local2.month, _local2.date) >= Date.UTC(_local3.fullYear, _local3.month, _local3.date))))){
addBoxToRight();
addBoxToRight();
addBoxToRight();
addBoxToRight();
addBoxToRight();
addBoxToRight();
addBoxToRight();
delTheme();
initTheme(boxArr[(boxArr.length - 1)].date);
updateChildDepth();
leftMove();
};
};
}
private function leftMove():void{
var _local1:int;
_local1 = 0;
while (_local1 < boxArr.length) {
boxArr[_local1].leftMove((_local1 - (boxArr.length - BOXNUM)));
_local1++;
};
}
private function initPro():void{
boxArr = new Array();
}
private function delTheme():void{
theme.del();
theme = null;
}
}
}//package screen
Section 45
//Protection (screen.Protection)
package screen {
import flash.display.*;
import flash.events.*;
import tool.*;
import zlong.navigate.*;
public class Protection {
private var _start:Sprite;
private var _logo:MovieClip;
private var manager:Manager;
private var _mc:Sprite;
public function Protection(_arg1:Manager){
manager = _arg1;
initDis();
initEvent();
}
public function del():void{
delEvent();
delDis();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
private function delEvent():void{
_start.removeEventListener(MouseEvent.CLICK, manager.clickStartInProtection);
_logo.removeEventListener(MouseEvent.CLICK, Handler.click_siteLocked_thisgame);
}
private function initEvent():void{
_start.addEventListener(MouseEvent.CLICK, manager.clickStartInProtection);
_logo.addEventListener(MouseEvent.CLICK, Handler.click_siteLocked_thisgame);
}
private function initDis():void{
_mc = Attach.getSprite("ProtectionMC");
manager.mc.addChild(_mc);
_logo = _mc["logo_mc"];
_logo.mouseChildren = false;
_start = _mc["start"];
}
}
}//package screen
Section 46
//SubmitScore (screen.SubmitScore)
package screen {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
import safe.*;
import data.*;
import zlong.localization.data.*;
import flash.text.*;
import tool.*;
import zlong.navigate.*;
public class SubmitScore {
private const beginDate:Date;
private var _back:Sprite;
private var _bitmapPos:Sprite;
private var time:Number;
private var _bitmap:Bitmap;
private var score:Number;
private var _score:TextField;
private var _credits:Sprite;
private var _rotation:TextField;
private var _shape:MovieClip;
private var _number:TextField;
private var _time:TextField;
private var manager:Manager;
private var _name:TextField;
private var _moreGames:Sprite;
private var _mc:MovieClip;
private var _submit:Sprite;
public function SubmitScore(_arg1:Manager, _arg2:Number, _arg3:Number):void{
beginDate = new Date(2008, 11, 14);
super();
manager = _arg1;
score = _arg2;
time = _arg3;
initDis();
initBitmap();
initEvent();
}
private function clickSubmit(_arg1:MouseEvent):void{
if (!GameInfo.cnversion){
subDataToCookie();
} else {
subDataToWeb();
};
manager.clickSubmitInSubmitScore();
}
private function delDis():void{
manager.mc.removeChild(_mc);
}
public function del():void{
delEvent();
delDis();
}
private function delEvent():void{
_submit.removeEventListener(MouseEvent.CLICK, clickSubmit);
_back.removeEventListener(MouseEvent.CLICK, clickBack);
_moreGames.removeEventListener(MouseEvent.CLICK, Handler.click_gameover_button);
_credits.removeEventListener(MouseEvent.CLICK, clickCredits);
}
private function initDis():void{
_mc = Attach.getMovieClip("SubmitScoreMC");
manager.mc.addChild(_mc);
_credits = _mc["credits"];
_credits.visible = (((Cookie.instance.highScore > 10000)) || ((score > 10000)));
_submit = _mc["submit"];
_back = _mc["back"];
_moreGames = _mc["moreGames_mc"];
_score = _mc["score_txt"];
_score.text = String(score);
_name = _mc["name_txt"];
_name.text = DynamicText.player[(CountryInfo.instance.language - 1)];
_name.setSelection(0, _name.length);
_name.stage.focus = _name;
_rotation = _mc["rotation_txt"];
_rotation.text = (manager.RotationEnabled) ? DynamicText.yes[(CountryInfo.instance.language - 1)] : DynamicText.no[(CountryInfo.instance.language - 1)];
_number = _mc["number_txt"];
_number.text = String((manager.hang * manager.lie));
_time = _mc["time_txt"];
_time.text = String((time / 1000));
_shape = _mc["shape_mc"];
_shape.gotoAndStop((manager.Rectangle) ? 1 : 2);
_bitmapPos = _mc["bitmapPos_mc"];
_bitmapPos.alpha = 0;
}
private function initBitmap():void{
_bitmap = new Bitmap(manager.bmd);
if (_bitmap.width > _bitmap.height){
_bitmap.width = _bitmapPos.width;
_bitmap.scaleY = _bitmap.scaleX;
} else {
_bitmap.height = _bitmapPos.height;
_bitmap.scaleX = _bitmap.scaleY;
};
_bitmap.x = (_bitmapPos.x + ((_bitmapPos.width - _bitmap.width) / 2));
_bitmap.y = (_bitmapPos.y + ((_bitmapPos.height - _bitmap.height) / 2));
_mc.addChild(_bitmap);
}
private function clickBack(_arg1:MouseEvent):void{
manager.clickBackInSubmitScore();
}
private function subDataToWeb():void{
var _local1:int;
var _local2:Number;
var _local3:String;
var _local4:String;
var _local5:String;
_local1 = Math.round(((manager.date.getTime() - beginDate.getTime()) / ((24 * 3600) * 1000)));
Random.gameID = (Random.gameID + (_local1 + 1));
_local2 = new Date().getTime();
_local3 = Random.SortT();
_local4 = Random.hex_average((((String(Random.gameID) + score) + _local3) + _local2));
Random.DrawLine(_local4, _local3, 10, 10, 15, 15);
_local5 = Random.strqq;
Random.senturl(score, _local3, _local5, _local2);
}
private function subDataToCookie():void{
Score.instance.submitScore(manager.date.fullYear, manager.date.month, manager.date.date, _name.text, score);
}
private function clickCredits(_arg1:MouseEvent):void{
manager.clickCreditsInSubmitScore();
}
private function initEvent():void{
_submit.addEventListener(MouseEvent.CLICK, clickSubmit);
_back.addEventListener(MouseEvent.CLICK, clickBack);
_moreGames.addEventListener(MouseEvent.CLICK, Handler.click_gameover_button);
_credits.addEventListener(MouseEvent.CLICK, clickCredits);
}
}
}//package screen
Section 47
//Theme (screen.Theme)
package screen {
import flash.display.*;
import net.*;
import flash.text.*;
import tool.*;
public class Theme implements LoadListener {
private const bitmapPosX:Number = 175;
private const bitmapPosY:Number = 7;
private const X:Number = 21.7;
private const Y:Number = 48.6;
private var _percent:TextField;
public var date:Date;
private var option:Option;
private var _mc:Sprite;
private var loadImg:LoadImg;
public function Theme(_arg1:Option, _arg2:Date){
date = _arg2;
option = _arg1;
initDis();
initLoadImg();
}
private function delDis():void{
_mc.parent.removeChild(_mc);
}
public function del():void{
if (loadImg != null){
delLoadImg();
};
delDis();
}
private function initLoadImg():void{
var _local1:String;
_local1 = XMLData.instance.themeURL(date.fullYear, date.month, date.date);
loadImg = new LoadImg(this, _local1);
}
public function loadCompleteHandler(_arg1:BitmapData):void{
_percent.visible = false;
initBitmap(_arg1);
delLoadImg();
}
public function get mc():Sprite{
return (_mc);
}
public function loadProgressHandler(_arg1:Number):void{
_percent.text = String((Math.round((_arg1 * 100)) + "%"));
}
private function initBitmap(_arg1:BitmapData):void{
var _local2:Bitmap;
_local2 = new Bitmap(_arg1);
_local2.x = bitmapPosX;
_local2.y = bitmapPosY;
_mc.addChild(_local2);
}
private function initDis():void{
_mc = Attach.getSprite("ThemeMC");
_mc.x = X;
_mc.y = Y;
option.mc.addChild(_mc);
_percent = _mc["percent_txt"];
}
private function delLoadImg():void{
loadImg.del();
loadImg = null;
}
}
}//package screen
Section 48
//ViewGrid (screen.ViewGrid)
package screen {
import flash.display.*;
import data.*;
import flash.geom.*;
import tool.*;
public class ViewGrid extends Sprite {
private var left:ViewGrid;
private var right:ViewGrid;
private var lineArrDown:Array;
private var lineArrUp:Array;
private var start:Point;
private var lineArrRight:Array;
private var lineArrLeft:Array;
private var downIsLine:Boolean;
private var rightIsLine:Boolean;
private var down:ViewGrid;
private var _shape:Shape;
private var up:ViewGrid;
private var scale_x:Number;
private var lineArr:Array;
private var scale_y:Number;
private var excursion:Number;
public function ViewGrid(_arg1:Sprite, _arg2:Point, _arg3:Number, _arg4:Number, _arg5:ViewGrid, _arg6:ViewGrid, _arg7:Boolean, _arg8:Boolean):void{
start = _arg2;
scale_x = _arg3;
scale_y = _arg4;
left = _arg5;
up = _arg6;
rightIsLine = _arg7;
downIsLine = _arg8;
initPro();
initline();
initDis(_arg1);
initShape();
}
private function initline():void{
var _local1:int;
var _local2:Object;
if (left != null){
lineArrLeft = new Array();
_local1 = (left.lineArrRight.length - 1);
while (_local1 >= 0) {
_local2 = {x:(left.lineArrRight[_local1].x - Line.width), y:left.lineArrRight[_local1].y};
lineArrLeft.push(_local2);
_local1--;
};
} else {
lineArrLeft = Line.left_3.concat();
};
if (up != null){
lineArrUp = new Array();
_local1 = (up.lineArrDown.length - 1);
while (_local1 >= 0) {
_local2 = {x:up.lineArrDown[_local1].x, y:(up.lineArrDown[_local1].y - Line.height)};
lineArrUp.push(_local2);
_local1--;
};
} else {
lineArrUp = Line.up_3.concat();
};
if (rightIsLine){
lineArrRight = Line.right_3.concat();
} else {
lineArrRight = ((Math.random() > 0.5)) ? Line.right_1.concat() : Line.right_2.concat();
_local1 = 0;
while (_local1 < (lineArrRight.length / 2)) {
lineArrRight[_local1] = {x:(lineArrRight[_local1].x + (excursion * _local1)), y:(lineArrRight[_local1].y + (excursion * _local1))};
lineArrRight[((lineArrRight.length - _local1) - 1)] = {x:(lineArrRight[((lineArrRight.length - _local1) - 1)].x + (excursion * _local1)), y:(lineArrRight[((lineArrRight.length - _local1) - 1)].y + (excursion * _local1))};
_local1++;
};
};
if (downIsLine){
lineArrDown = Line.down_3.concat();
} else {
lineArrDown = ((Math.random() > 0.5)) ? Line.down_1.concat() : Line.down_2.concat();
_local1 = 0;
while (_local1 < (lineArrDown.length / 2)) {
lineArrDown[_local1] = {x:(lineArrDown[_local1].x + (excursion * _local1)), y:(lineArrDown[_local1].y + (excursion * _local1))};
lineArrDown[((lineArrDown.length - _local1) - 1)] = {x:(lineArrDown[((lineArrDown.length - _local1) - 1)].x + (excursion * _local1)), y:(lineArrDown[((lineArrDown.length - _local1) - 1)].y + (excursion * _local1))};
_local1++;
};
};
lineArr = [lineArrUp, lineArrRight, lineArrDown, lineArrLeft];
}
public function del():void{
this.parent.removeChild(this);
}
private function initShape():void{
var _local1:int;
var _local2:int;
var _local3:Array;
_shape = new Shape();
this.addChild(_shape);
_shape.graphics.moveTo(lineArr[0][0].x, lineArr[0][0].y);
_shape.graphics.lineStyle(Line.thickness, Line.color, 0.3);
_local1 = 0;
while (_local1 < lineArr.length) {
_local3 = lineArr[_local1];
_local2 = 0;
while (_local2 < _local3.length) {
_shape.graphics.lineTo((_local3[_local2].x * scale_x), (_local3[_local2].y * scale_y));
_local2++;
};
_local1++;
};
_shape.graphics.endFill();
}
private function initDis(_arg1:Sprite):void{
_arg1.addChild(this);
this.x = start.x;
this.y = start.y;
}
private function initPro():void{
if (left != null){
left.right = this;
};
if (up != null){
up.down = this;
};
excursion = ((Method.random(-(Line.excursion), Line.excursion) / Line.left_1.length) / 2);
}
}
}//package screen
Section 49
//SoundsManager (sound.SoundsManager)
package sound {
import flash.events.*;
import flash.media.*;
import flash.utils.*;
import tool.*;
public class SoundsManager {
private const VALUE_FADE:Number = 0.02;
private var fadeInTimer:Timer;
private var curMusic_sc:SoundChannel;
private var curMusic_so:Sound;
private var valueSound:Number;
private var valueGroupSound:Number;
private var curMusic_st:String;
private var fadeTimes:int;
private var fadeInLabel:String;
private var valueMusic:Number;
private var fadeOutTimer:Timer;
private var enabled:Boolean;
private var soundArr:Array;
private var currGroupSoundId:int;
private var groupSoundArr:Array;
private var pausePos:Number;
private static var instance:SoundsManager;
public function SoundsManager(){
init();
}
private function initGroupSound():void{
var _local1:Object;
_local1 = groupSoundArr[currGroupSoundId];
_local1["soundChannel"] = _local1["sound"].play(0, 0, new SoundTransform(valueGroupSound));
initGroupSoundChannelEvent(_local1["soundChannel"]);
}
public function set ValueSound(_arg1:Number):void{
var _local2:int;
valueSound = _arg1;
if (soundArr != null){
_local2 = 0;
while (_local2 < soundArr.length) {
soundArr[_local2]["soundChannel"].soundTransform.volume = _arg1;
_local2++;
};
};
}
public function get ValueGroupSound():Number{
return (valueGroupSound);
}
public function set ValueGroupSound(_arg1:Number):void{
valueGroupSound = _arg1;
if (groupSoundArr != null){
groupSoundArr[currGroupSoundId]["soundChannel"].soundTransform.volume = _arg1;
};
}
private function remSoundArr(_arg1:SoundChannel):void{
var _local2:Object;
var _local3:int;
_local3 = 0;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["soundChannel"] == _arg1){
_local2["soundChannel"].stop();
_local2["label"] = null;
_local2["sound"] = null;
_local2["soundChannel"] = null;
soundArr.splice(_local3, 1);
};
_local3++;
};
}
public function stopAllSound():void{
var _local1:int;
_local1 = 0;
while (_local1 < soundArr.length) {
delSound(soundArr[_local1]["soundChannel"]);
_local1++;
};
}
public function get FadeTimes():int{
return (fadeTimes);
}
public function fadeOutMusic():void{
if (curMusic_sc != null){
startFadeOut();
};
}
public function set FadeTimes(_arg1:int):void{
fadeTimes = _arg1;
}
private function addSoundArr(_arg1:Object):void{
soundArr.push(_arg1);
}
public function overOldSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (_local4){
delSound(_local5["soundChannel"]);
};
playSound(_arg1, _arg2, _arg3);
};
}
private function init():void{
FadeTimes = (1000 * 4);
Enabled = true;
ValueMusic = 1;
ValueSound = 1;
valueGroupSound = 1;
soundArr = new Array();
groupSoundArr = new Array();
}
private function startFadeIn(_arg1:String):void{
initMusic(_arg1, 0);
initFadeInTimer();
}
public function set ValueMusic(_arg1:Number):void{
valueMusic = _arg1;
if (curMusic_sc != null){
curMusic_sc.soundTransform.volume = _arg1;
};
}
public function stopSound(_arg1:String):void{
var _local2:Object;
var _local3:int;
_local3 = 0;
while (_local3 < soundArr.length) {
_local2 = soundArr[_local3];
if (_local2["label"] == _arg1){
delSound(_local2["soundChannel"]);
break;
};
_local3++;
};
}
public function get Enabled():Boolean{
return (enabled);
}
private function delGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.removeEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function fadeOut(_arg1:TimerEvent):void{
curMusic_sc.soundTransform.volume = (curMusic_sc.soundTransform.volume - VALUE_FADE);
if (curMusic_sc.soundTransform.volume <= 0){
stopFadeOut();
};
}
public function playSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
if (enabled){
initSound(_arg1, _arg2, _arg3);
};
}
public function get ValueSound():Number{
return (valueSound);
}
public function overNewSound(_arg1:String, _arg2:Number, _arg3:int=0):void{
var _local4:Boolean;
var _local5:Object;
var _local6:int;
if (enabled){
_local4 = false;
_local6 = 0;
while (_local6 < soundArr.length) {
_local5 = soundArr[_local6];
if (_local5["label"] == _arg1){
_local4 = true;
break;
};
_local6++;
};
if (!_local4){
playSound(_arg1, _arg2, _arg3);
};
};
}
private function delSound(_arg1:SoundChannel):void{
delSoundChannelEvent(_arg1);
remSoundArr(_arg1);
}
private function fadeIn(_arg1:TimerEvent):void{
curMusic_sc.soundTransform.volume = (curMusic_sc.soundTransform.volume + VALUE_FADE);
if (curMusic_sc.soundTransform.volume >= valueMusic){
stopFadeIn();
};
}
public function set Enabled(_arg1:Boolean):void{
enabled = _arg1;
if (curMusic_st != null){
if (_arg1){
restartMusic();
} else {
pauseMusic();
stopAllSound();
};
};
}
public function stopMusic():void{
if (curMusic_sc != null){
delMusic();
};
}
public function pauseMusic():void{
if (curMusic_sc != null){
pausePos = curMusic_sc.position;
curMusic_sc.stop();
curMusic_sc = null;
};
}
private function stopFadeOut():void{
delFadeOutTimer();
delMusic();
if (fadeInLabel != null){
fadeInLabel = null;
initMusic(fadeInLabel, 0);
initFadeInTimer();
};
}
public function playMusic(_arg1:String, _arg2:Number):void{
if (enabled){
if (curMusic_sc != null){
stopMusic();
};
initMusic(_arg1, _arg2);
};
}
private function delGroupSound():void{
var _local1:Object;
_local1 = groupSoundArr[currGroupSoundId];
_local1["soundChannel"].stop();
_local1["soundChannel"] = null;
}
public function restartMusic():void{
curMusic_sc = curMusic_so.play(pausePos, int.MAX_VALUE, new SoundTransform(valueMusic));
if (curMusic_sc == null){
curMusic_sc = curMusic_so.play(1, int.MAX_VALUE, new SoundTransform(valueMusic));
};
pausePos = NaN;
}
public function overNewMusic(_arg1:String, _arg2:Number):void{
if (((!((curMusic_st == _arg1))) && (enabled))){
playMusic(_arg1, _arg2);
};
}
private function delMusic():void{
curMusic_sc.stop();
curMusic_st = null;
curMusic_so = null;
curMusic_sc = null;
}
private function delFadeOutTimer():void{
fadeOutTimer.removeEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer = null;
}
private function initSound(_arg1:String, _arg2:Number, _arg3:int):void{
var _local4:Object;
_local4 = new Object();
_local4["label"] = _arg1;
_local4["sound"] = Attach.getSound(_arg1);
_local4["soundChannel"] = _local4["sound"].play(0, _arg3, new SoundTransform(_arg2));
initSoundChannelEvent(_local4["soundChannel"]);
addSoundArr(_local4);
}
private function groupSoundCompleteHandler(_arg1:Event):void{
delGroupSound();
currGroupSoundId++;
if (currGroupSoundId == groupSoundArr.length){
currGroupSoundId = 0;
};
initGroupSound();
}
public function setOneValueSound(_arg1:String, _arg2:Number):void{
var _local3:int;
_local3 = 0;
while (_local3 < soundArr.length) {
if (_arg1 == soundArr[_local3]["label"]){
soundArr[_local3]["soundChannel"].soundTransform.volume = _arg2;
};
_local3++;
};
}
public function get ValueMusic():Number{
return (valueMusic);
}
public function fadeInMusic(_arg1:String):void{
if (enabled){
if (curMusic_sc != null){
startFadeOut();
fadeInLabel = _arg1;
} else {
startFadeIn(_arg1);
};
};
}
private function initSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
private function initFadeOutTimer():void{
fadeOutTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeOutTimer.addEventListener(TimerEvent.TIMER, fadeOut);
fadeOutTimer.start();
}
private function initFadeInTimer():void{
fadeInTimer = new Timer((fadeTimes / (valueMusic / VALUE_FADE)));
fadeInTimer.addEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer.start();
}
private function soundCompleteHandler(_arg1:Event):void{
delSound((_arg1.target as SoundChannel));
}
private function startFadeOut():void{
initFadeOutTimer();
}
public function stopGroupSound():void{
var _local1:Object;
if (groupSoundArr != null){
_local1 = groupSoundArr[currGroupSoundId];
if (_local1 != null){
delGroupSoundChannelEvent(_local1["soundChannel"]);
delGroupSound();
};
groupSoundArr = new Array();
currGroupSoundId = NaN;
};
}
private function delSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
private function initMusic(_arg1:String, _arg2:Number):void{
curMusic_st = _arg1;
curMusic_so = Attach.getSound(_arg1);
curMusic_sc = curMusic_so.play(0, int.MAX_VALUE, new SoundTransform(_arg2));
}
private function initGroupSoundChannelEvent(_arg1:SoundChannel):void{
_arg1.addEventListener(Event.SOUND_COMPLETE, groupSoundCompleteHandler);
}
private function delFadeInTimer():void{
fadeInTimer.removeEventListener(TimerEvent.TIMER, fadeIn);
fadeInTimer = null;
}
private function stopFadeIn():void{
curMusic_sc.soundTransform.volume = valueMusic;
delFadeInTimer();
}
public static function getInstance():SoundsManager{
if (instance == null){
instance = new (SoundsManager);
};
return (instance);
}
}
}//package sound
Section 50
//Attach (tool.Attach)
package tool {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
public static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class;
var _local3:Sprite;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class;
var _local3:BitmapData;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new _local2(null, null);
return (_local3);
}
}
}//package tool
Section 51
//BackDoor (tool.BackDoor)
package tool {
import flash.display.*;
import flash.events.*;
import data.*;
public class BackDoor {
private const key:String = "7374767173817381";
private var allKey:String;
private var listener:Stage;
public static var open:Boolean;
public function BackDoor(_arg1:Stage):void{
listener = _arg1;
allKey = "";
open = false;
initEvent();
}
private function initEvent():void{
listener.focus = listener;
listener.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
}
private function delEvent():void{
listener.removeEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
}
private function keyUpHandler(_arg1:KeyboardEvent):void{
allKey = (allKey + _arg1.keyCode);
ckeckKey();
}
private function openDoor():void{
open = true;
delEvent();
Data.combineDistance = 2000;
}
private function ckeckKey():void{
if (String(allKey).indexOf(key) != -1){
openDoor();
};
}
}
}//package tool
Section 52
//GC (tool.GC)
package tool {
import flash.net.*;
public class GC {
public static function clear():void{
try {
new LocalConnection().connect("haha");
new LocalConnection().connect("haha");
} catch(error:Error) {
};
}
}
}//package tool
Section 53
//Method (tool.Method)
package tool {
public class Method {
public static function random(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.random() * (_arg2 - _arg1));
return ((_local3 + _arg1));
}
}
}//package tool
Section 54
//StageSetting (tool.StageSetting)
package tool {
import flash.display.*;
public class StageSetting {
public function StageSetting(_arg1:Sprite){
_arg1.stage.stageFocusRect = false;
_arg1.stage.tabChildren = false;
}
}
}//package tool
Section 55
//DomainData (zlong.domain.DomainData)
package zlong.domain {
final class DomainData {
static const allowedDomain:Array = ["www8.agame.com", "www.zlonggamestest.com", "gamedev.dev.spilgames.com", "localhost"];
}
}//package zlong.domain
Section 56
//DomainInfo (zlong.domain.DomainInfo)
package zlong.domain {
import flash.net.*;
public final class DomainInfo {
private var _domain:String;
private var _domainAb:String;
private var _allowed:Boolean;
private static var _instance:DomainInfo;
public function DomainInfo(){
_domain = new LocalConnection().domain;
initAllowed();
initAb();
}
public function get domainAb():String{
return (_domainAb);
}
public function get allowed():Boolean{
return (_allowed);
}
public function get domain():String{
return (_domain);
}
private function initAb():void{
var _local1:Array;
var _local2:int;
var _local3:int;
if (_domain != "localhost"){
_local1 = _domain.split(".");
_local2 = (_local1.length - 1);
_local3 = (_local1.length - 2);
_domainAb = ((_local1[_local3] + ".") + _local1[_local2]);
} else {
_domainAb = "offline_play";
};
}
private function initAllowed():void{
var _local1:int;
_local1 = 0;
while (_local1 < DomainData.allowedDomain.length) {
if (_domain == DomainData.allowedDomain[_local1]){
_allowed = true;
break;
};
_local1++;
};
}
public static function get instance():DomainInfo{
if (_instance == null){
_instance = new (DomainInfo);
};
return (_instance);
}
}
}//package zlong.domain
Section 57
//Countries (zlong.localization.country.Countries)
package zlong.localization.country {
import zlong.localization.country.*;
class Countries {
private var _countryGroup:Array;
private var _portal:String;
private var _portalGroup:Array;
private var _countries:Object;
private var _country:String;
function Countries(){
initPortalGroup();
}
private function initPortalGroup():void{
var _local1:int;
_portalGroup = new Array();
_local1 = 0;
while (_local1 < CountriesData.DATA.children().length()) {
_portalGroup.push(CountriesData.DATA.children()[_local1].name());
_local1++;
};
}
private function initCountries():void{
var _local1:CountryItem;
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:int;
var _local6:int;
_countries = new Object();
_countryGroup = new Array();
_local6 = 0;
while (_local6 < CountriesData.DATA[_portal]["country"].length()) {
_local2 = CountriesData.DATA[_portal]["country"][_local6].@name;
_local3 = CountriesData.DATA[_portal]["country"][_local6].@domain;
_local4 = CountriesData.DATA[_portal]["country"][_local6].@game;
_local5 = int(CountriesData.DATA[_portal]["country"][_local6].@language);
_local1 = new CountryItem();
_local1.name = _local2;
_local1.domain = _local3;
_local1.game = _local4;
_local1.language = _local5;
_countries[_local1.name] = _local1;
_countryGroup.push(_local2);
_local6++;
};
}
function get countryGroup():Array{
if (_countryGroup == null){
throw (new ArgumentError("Please set portal"));
};
return (_countryGroup);
}
function set country(_arg1:String):void{
if (((!((_countryGroup == null))) && (!(inArray(_arg1, _countryGroup))))){
_country = _countryGroup[0];
trace(("Error in the country value,set country with default value : " + _countryGroup[0]));
trace(("Please set country with value : " + _countryGroup.toString()));
} else {
_country = _arg1;
};
}
function set portal(_arg1:String):void{
if (!inArray(_arg1, _portalGroup)){
throw (new ArgumentError(("Please set portal with value : " + _portalGroup.toString())));
};
_portal = _arg1;
initCountries();
if (((!((_country == null))) && (!(inArray(_country, _countryGroup))))){
throw (new ArgumentError(("Please reset country with value : " + _countryGroup.toString())));
};
}
function get current():CountryItem{
if (_portal == null){
throw (new ArgumentError("Please set portal"));
};
if (_country == null){
throw (new ArgumentError("Please set country"));
};
return (_countries[_country]);
}
private function inArray(_arg1:String, _arg2:Array):Boolean{
var _local3:int;
_local3 = 0;
while (_local3 < _arg2.length) {
if (_arg1 == _arg2[_local3]){
return (true);
};
_local3++;
};
return (false);
}
}
}//package zlong.localization.country
Section 58
//CountriesData (zlong.localization.country.CountriesData)
package zlong.localization.country {
class CountriesData {
static const DATA:XML = <data>
<family>
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.09.03-->
<country name="br" domain="www.ojogos.com.br" game="jogo" language="9"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="19"/><!-- Chinese -->
<country name="de" domain="www.jetztspielen.de" game="spiel" language="7"/><!-- German -->
<country name="es" domain="www.juegos.com" game="juego" language="8"/><!-- Spanish -->
<country name="fr" domain="www.jeux.fr" game="jeu" language="6"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="16"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.gioco.it" game="gioco" language="11"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="18"/><!-- Japanese -->
<country name="nl" domain="www.spelletjes.nl" game="spel" language="5"/><!-- Dutch -->
<country name="pl" domain="www.gry.pl" game="gra" language="13"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="10"/><!-- Portuguese -->
<country name="ru" domain="www.ourgames.ru" game="igra" language="14"/><!-- Russian -->
<country name="se" domain="www.spela.se" game="spel_" language="12"/><!-- Swedish -->
<country name="en_uk" domain="www.games.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.gamesgames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
//<!--country name="ph" domain="www.laro.com.ph" game="game" language="2"/--><!-- English UK -->
//<!--country name="tr" domain="www.oyunlar123.com" game="oyun" language="15"/--><!-- Turkish -->
//<!--country name="my" domain="www.game.com.my" game="permainan_" language="17"/--><!-- Malaysian -->
</family>
<tween>
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.09.03-->
<country name="br" domain="www.clickjogos.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="15"/><!-- Chinese -->
<country name="de" domain="www.spielen.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.zapjuegos.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.jeu.fr" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="13"/><!-- Indonesian -->
<country name="in" domain="www.game.co.in" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.giocaregratis.it" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="14"/><!-- Japanese -->
<country name="nl" domain="www.spel.nl" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.minigry.pl" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.flashgames.ru" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.spel.se" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.mygames.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.agame.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
//<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
//<!-- country name="tr" domain="www.asoyun.com" game="oyun" language="13"/ --><!-- Turkish -->
//<!-- country name="my" domain="www.game.com.my" game="permainan_" language="15"/ --><!-- Malaysian -->
</tween>
<girl>
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.09.03-->
<country name="br" domain="www.girlsgogames.com.br" game="jogo" language="9"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="19"/><!-- Chinese -->
<country name="de" domain="www.girlsgogames.de" game="spiel" language="7"/><!-- German -->
<country name="es" domain="www.girlsgogames.es" game="juego" language="8"/><!-- Spanish -->
<country name="fr" domain="www.girlsgogames.fr" game="jeu" language="6"/><!-- French -->
<country name="id" domain="www.games.co.id" game="permainanme" language="16"/><!-- Indonesian -->
<country name="it" domain="www.girlsgogames.it" game="gioco" language="11"/><!-- Italian -->
<country name="jp" domain="www.egames.jp" game="game" language="18"/><!-- Japanese -->
<country name="nl" domain="www.girlsgogames.nl" game="spel" language="5"/><!-- Dutch -->
<country name="pl" domain="www.girlsgogames.pl" game="gra" language="13"/><!-- Polish -->
<country name="pt" domain="www.ojogos.pt" game="jogo" language="10"/><!-- Portuguese -->
<country name="ru" domain="www.girlsgogames.ru" game="igra" language="14"/><!-- Russian -->
<country name="se" domain="www.girlsgogames.se" game="spel_" language="12"/><!-- Swedish -->
<country name="en_uk" domain="www.girlsgogames.co.uk" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.girlsgogames.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
//<!-- country name="in" domain="www.girlsgogames.in" game="game" language="2"/ --><!-- English UK -->
//<!-- country name="es" domain="www.juegosdechicas.com" game="juego" language="8"/ --><!-- Spanish -->
//<!-- country name="ph" domain="www.laro.com.ph" game="game" language="2"/ --><!-- English UK -->
//<!-- country name="tr" domain="www.girlsgogamestr.com" game="oyun" language="15"/--><!-- Turkish -->
//<!-- country name="my" domain="www.game.com.my" game="permainan_" language="17"/--><!-- Malaysian -->
</girl>
<teen>
<country name="ar" domain="www.dailygame.com" game="game" language="1"/><!-- Arabic(English US) 2009.09.03-->
<country name="br" domain="www.a10.com" game="jogo" language="7"/><!-- Brazillian -->
<country name="cn" domain="www.game.com.cn" game="moregames" language="15"/><!-- Chinese -->
<country name="de" domain="www.a10.com" game="spiel" language="5"/><!-- German -->
<country name="es" domain="www.a10.com" game="juego" language="6"/><!-- Spanish -->
<country name="fr" domain="www.a10.com" game="jeu" language="4"/><!-- French -->
<country name="id" domain="www.a10.com" game="permainanme" language="13"/><!-- Indonesian -->
<country name="in" domain="www.a10.com" game="game" language="2"/><!-- English UK -->
<country name="it" domain="www.a10.com" game="gioco" language="9"/><!-- Italian -->
<country name="jp" domain="www.a10.com" game="game" language="14"/><!-- Japanese -->
<country name="nl" domain="www.a10.com" game="spel" language="3"/><!-- Dutch -->
<country name="pl" domain="www.a10.com" game="gra" language="11"/><!-- Polish -->
<country name="pt" domain="www.a10.com" game="jogo" language="8"/><!-- Portuguese -->
<country name="ru" domain="www.a10.com" game="igra" language="12"/><!-- Russian -->
<country name="se" domain="www.a10.com" game="spel_" language="10"/><!-- Swedish -->
<country name="en_uk" domain="www.a10.com" game="game" language="2"/><!-- English UK -->
<country name="en_us" domain="www.a10.com" game="game" language="1"/><!-- English US -->
<!-- removed -->
//<!-- country name="ph" domain="www.a10.com" game="game" language="2"/ --><!-- English UK -->
//<!-- country name="tr" domain="www.a10.com" game="oyun" language="13"/ --><!-- Turkish -->
//<!-- country name="my" domain="www.a10.com" game="permainan_" language="15"/ --><!-- Malaysian -->
</teen>
</data>
;
}
}//package zlong.localization.country
Section 59
//CountryInfo (zlong.localization.country.CountryInfo)
package zlong.localization.country {
import zlong.domain.*;
import zlong.localization.data.*;
public class CountryInfo {
private var countries:Countries;
private static var _instance:CountryInfo;
public function CountryInfo(){
countries = new Countries();
}
public function get domain():String{
return (countries.current.domain);
}
public function get countryGroup():Array{
return (countries.countryGroup);
}
public function get thisGameLink():String{
var _local1:String;
_local1 = ("http://" + domain);
_local1 = (_local1 + ((("/" + countries.current.game) + "/") + GameInfo.html));
if (countries.current.name != "cn"){
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
};
return (_local1);
}
public function set country(_arg1:String):void{
countries.country = _arg1;
}
public function get moreGameLink():String{
var _local1:String;
_local1 = ("http://" + domain);
if (countries.current.name != "cn"){
_local1 = (_local1 + "/");
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (DomainInfo.instance.allowed) ? "internal" : "external"));
_local1 = (_local1 + ("&utm_campaign=" + GameInfo.name));
_local1 = (_local1 + ("&utm_source=" + DomainInfo.instance.domainAb));
} else {
_local1 = (_local1 + "/");
_local1 = (_local1 + "moregames");
_local1 = (_local1 + "/");
};
return (_local1);
}
public function get country():String{
return (countries.current.name);
}
public function set portal(_arg1:String):void{
countries.portal = _arg1;
}
public function get language():int{
return (countries.current.language);
}
public static function get instance():CountryInfo{
if (_instance == null){
_instance = new (CountryInfo);
};
return (_instance);
}
}
}//package zlong.localization.country
Section 60
//CountryItem (zlong.localization.country.CountryItem)
package zlong.localization.country {
final class CountryItem {
var domain:String;
var game:String;
var language:int;
var name:String;
}
}//package zlong.localization.country
Section 61
//CountryCookie (zlong.localization.data.CountryCookie)
package zlong.localization.data {
import flash.net.*;
public class CountryCookie {
private static const countryName:String = "savedLang";
private static const name:String = "spilgames_language_v100";
private static var so:SharedObject;
public function CountryCookie():void{
so = SharedObject.getLocal(name, "/");
}
public static function set country(_arg1:String):void{
so.data[countryName] = _arg1;
}
public static function get country():String{
return (so.data[countryName]);
}
}
}//package zlong.localization.data
Section 62
//GameInfo (zlong.localization.data.GameInfo)
package zlong.localization.data {
public class GameInfo {
public static var width:int = 550;
public static var height:int = 400;
public static var html:String = "Game-Name.html";
public static var cnversion:Boolean = false;
public static var name:String = "Game_Name";
public static var portal:String = "family";
}
}//package zlong.localization.data
Section 63
//CountriesBox (zlong.localization.display.CountriesBox)
package zlong.localization.display {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import zlong.localization.data.*;
public class CountriesBox extends Sprite {
private var flagMc:MovieClip;
private var selectBox:MovieClip;
public var countryName:countryMc;
public var selectbox:MovieClip;
private var i:uint;
public var flag:MovieClip;
private var pop:Sprite;
public var popList:MovieClip;
private var baseX:Number;// = 0
private var baseY:Number;// = 0
private var country_name:TranText;
private var nameGroup:Array;
private var mul:int;// = 1
private var obj:Object;
public function CountriesBox(){
mul = 1;
baseX = 0;
baseY = 0;
nameGroup = [];
super();
obj = new Object();
addEventListener(Event.ADDED_TO_STAGE, addToStageHandler);
addEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
}
private function init():void{
initPos();
setFlag();
setPop();
initEvent();
initPoPEvent();
}
private function initPoPEvent():void{
pop.addEventListener(MouseEvent.MOUSE_OVER, overPoPHandler);
pop.addEventListener(MouseEvent.MOUSE_OUT, outPoPHandler);
}
private function delPoPEvent():void{
pop.removeEventListener(MouseEvent.MOUSE_OVER, overPoPHandler);
pop.removeEventListener(MouseEvent.MOUSE_OUT, outPoPHandler);
}
private function outHandler(_arg1:MouseEvent):void{
pop.visible = false;
}
private function initPos():void{
var _local1:Point;
_local1 = new Point();
_local1 = this.localToGlobal(new Point(x, y));
if (_local1.y > (GameInfo.height / 2)){
mul = 1;
} else {
mul = -1;
};
}
private function initEvent():void{
addEventListener(MouseEvent.ROLL_OVER, overHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, outHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
}
private function setPop():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:MovieClip;
var _local6:String;
var _local7:int;
_local3 = 0;
_local4 = 0;
pop = (getChildByName("popList") as Sprite);
selectBox = (getChildByName("selectbox") as MovieClip);
_local1 = pop["_blank"].width;
_local2 = (pop["_blank"].height - 1);
baseX = selectBox.x;
nameGroup = CountryInfo.instance.countryGroup;
_local7 = nameGroup.length;
if (mul == 1){
baseY = ((selectBox.y - (Math.round((_local7 / 2)) * _local2)) + _local2);
} else {
baseY = ((selectBox.y + selectBox.height) + _local2);
};
pop.y = baseY;
pop.visible = false;
pop["_blank"].visible = false;
i = 0;
while (i < _local7) {
_local6 = nameGroup[i];
if (pop.getChildByName(("l_" + _local6)) != null){
_local5 = (pop.getChildByName(("l_" + _local6)) as MovieClip);
_local5.mouseChildren = false;
_local5.buttonMode = true;
_local5.stop();
_local5["flag"].mouseEnable = false;
_local5["flag"].mouseChildren = false;
_local5["flag"].gotoAndStop(_local6);
obj[("l_" + _local6)] = true;
_local3 = (((i % 2) == 0)) ? 0 : 1;
_local5.x = ((_local1 * (i % 2)) - _local3);
_local5.y = ((_local2 * Math.floor((i / 2))) - _local2);
};
i++;
};
i = 0;
while (i < pop.numChildren) {
if (pop.getChildAt(i).name.indexOf("l_") != -1){
if (obj[pop.getChildAt(i).name] == undefined){
pop.getChildAt(i).visible = false;
};
};
i++;
};
if ((nameGroup.length % 2) == 0){
pop["_blank"].visible = false;
} else {
pop["_blank"].visible = true;
pop["_blank"].x = (_local1 - 1);
pop["_blank"].y = (((_local2 * Math.floor((nameGroup.length / 2))) - _local2) - _local4);
};
}
private function addToStageHandler(_arg1:Event):void{
init();
}
private function clickHandler(_arg1:MouseEvent):void{
var _local2:String;
var _local3:MovieClip;
_local2 = _arg1.target["name"];
if (_local2 == "_blank"){
return;
};
if (_local2.indexOf("l_") != -1){
_local3 = (_arg1.target["getChildByName"]("flag") as MovieClip);
flagMc.gotoAndStop(_local2.substr(2));
country_name.gotoAndStop(_local3.currentFrame);
setLanguage(_local2.substr(2));
pop.visible = false;
};
}
private function outPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](1);
}
private function overPoPHandler(_arg1:MouseEvent):void{
var _local2 = _arg1.target;
_local2["gotoAndStop"](2);
}
private function overHandler(_arg1:MouseEvent):void{
pop.visible = true;
}
private function setLanguage(_arg1:String):void{
CountryInfo.instance.country = _arg1;
CountryCookie.country = _arg1;
Dispatcher.langChanged();
}
private function removeFromStageHandler(_arg1:Event):void{
removeEventListener(MouseEvent.ROLL_OVER, overHandler);
removeEventListener(MouseEvent.ROLL_OUT, outHandler);
removeEventListener(MouseEvent.CLICK, clickHandler);
removeEventListener(Event.ADDED_TO_STAGE, addToStageHandler);
removeEventListener(Event.REMOVED_FROM_STAGE, removeFromStageHandler);
delPoPEvent();
}
private function setFlag():void{
country_name = (getChildByName("countryName") as TranText);
country_name.change = false;
flagMc = (getChildByName("flag") as MovieClip);
flagMc.gotoAndStop(CountryInfo.instance.country);
country_name.gotoAndStop(CountryInfo.instance.country);
}
}
}//package zlong.localization.display
Section 64
//Dispatcher (zlong.localization.display.Dispatcher)
package zlong.localization.display {
import flash.events.*;
public class Dispatcher {
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static var dispatcher:EventDispatcher = new EventDispatcher();
public static function langChanged():void{
dispatcher.dispatchEvent(new Event(LANGUAGE_CHANGED));
}
}
}//package zlong.localization.display
Section 65
//Logo (zlong.localization.display.Logo)
package zlong.localization.display {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
public class Logo extends MovieClip {
public function Logo(){
init();
}
private function init():void{
stop();
buttonMode = true;
gotoAndStop(CountryInfo.instance.domain);
addEvent();
}
private function langChangeHandler(_arg1:Event):void{
gotoAndStop(CountryInfo.instance.domain);
}
private function removeHandler(_arg1:Event):void{
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function addEvent():void{
addEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
}
}//package zlong.localization.display
Section 66
//Menu (zlong.localization.display.Menu)
package zlong.localization.display {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
import zlong.navigate.*;
import flash.ui.*;
public class Menu {
private var item:ContextMenuItem;
private var document:Sprite;
private var menu:ContextMenu;
public function Menu(_arg1:Sprite){
document = _arg1;
init();
initEvent();
}
private function changeLang(_arg1:Event):void{
item.caption = CountryInfo.instance.domain;
}
private function initEvent():void{
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Handler.click_menu_item);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, changeLang);
}
private function init():void{
var _local1:ContextMenuBuiltInItems;
menu = new ContextMenu();
menu.hideBuiltInItems();
_local1 = menu.builtInItems;
_local1.print = true;
_local1.zoom = true;
_local1.quality = true;
item = new ContextMenuItem(CountryInfo.instance.domain);
menu.customItems.push(item);
document.contextMenu = menu;
}
}
}//package zlong.localization.display
Section 67
//TranText (zlong.localization.display.TranText)
package zlong.localization.display {
import zlong.localization.country.*;
import flash.display.*;
import flash.events.*;
public class TranText extends MovieClip {
private var isChange:Boolean;// = true
public function TranText(){
isChange = true;
super();
init();
}
private function init():void{
changeLang();
addEvent();
}
private function langChangeHandler(_arg1:Event):void{
if (isChange){
changeLang();
};
}
private function removeHandler(_arg1:Event):void{
Dispatcher.dispatcher.removeEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
private function addEvent():void{
addEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
Dispatcher.dispatcher.addEventListener(Dispatcher.LANGUAGE_CHANGED, langChangeHandler);
}
public function set change(_arg1:Boolean):void{
isChange = _arg1;
}
private function changeLang():void{
gotoAndStop(CountryInfo.instance.language);
}
}
}//package zlong.localization.display
Section 68
//GameSetting (zlong.localization.GameSetting)
package zlong.localization {
import zlong.localization.country.*;
import flash.display.*;
import zlong.localization.data.*;
import zlong.localization.display.*;
public class GameSetting {
public function GameSetting(_arg1:Sprite, _arg2:Boolean, _arg3:String, _arg4:String, _arg5:String, _arg6:int, _arg7:int){
GameInfo.cnversion = _arg2;
GameInfo.portal = _arg3;
GameInfo.name = _arg4;
GameInfo.html = _arg5;
GameInfo.width = _arg6;
GameInfo.height = _arg7;
init();
initMenu(_arg1);
}
private function init():void{
new CountryCookie();
CountryInfo.instance.portal = GameInfo.portal;
if (CountryCookie.country == null){
CountryInfo.instance.country = "en_us";
} else {
CountryInfo.instance.country = String(CountryCookie.country);
};
}
private function initMenu(_arg1:Sprite):void{
new Menu(_arg1);
}
}
}//package zlong.localization
Section 69
//Handler (zlong.navigate.Handler)
package zlong.navigate {
import zlong.localization.country.*;
import flash.events.*;
import zlong.site.*;
import flash.net.*;
import flash.external.*;
public class Handler {
public static function click_sendtofriend_moregame(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=button_sendtofriend_moregames"));
};
navigateToURL(_local2, "_blank");
}
public static function click_siteLocked_thisgame(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.thisGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.thisGameLink + "&utm_content=sitelocked"));
};
trace(_local2.url);
navigateToURL(_local2, "_blank");
}
public static function click_preloader_logo(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=logo_preloader"));
};
if (!SiteInfo.instance.allowed){
navigateToURL(_local2, "_blank");
};
}
public static function refurbish(_arg1:Event=null):void{
var e = _arg1;
try {
ExternalInterface.call("location.reload");
navigateToURL(new URLRequest(ExternalInterface.call("window.location.href.toString")), "_top");
} catch(myError:Error) {
};
}
public static function click_gameover_logo(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=logo_gameover"));
};
navigateToURL(_local2, "_blank");
}
public static function click_mainscreen_logo(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=logo_mainscreen"));
};
navigateToURL(_local2, "_blank");
}
public static function click_copyright(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest("http://www.game.com.cn/downloads/");
} else {
_local2 = new URLRequest("http://www.gameportal.net");
};
navigateToURL(_local2, "_blank");
}
public static function click_gameover_button(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=button_gameover_moregames"));
};
navigateToURL(_local2, "_blank");
}
public static function click_mainscreen_button(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=button_mainscreen_moregames"));
};
navigateToURL(_local2, "_blank");
}
public static function click_highscore_button(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=button_highscore_3000games"));
};
navigateToURL(_local2, "_blank");
}
public static function click_menu_item(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "utm_content=send_to_friend"));
};
navigateToURL(_local2, "_blank");
}
public static function click_level_logo(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=logo_level"));
};
navigateToURL(_local2, "_blank");
}
public static function click_siteLocked_moregame(_arg1:Event=null):void{
var _local2:URLRequest;
if (CountryInfo.instance.country == "cn"){
_local2 = new URLRequest(CountryInfo.instance.moreGameLink);
} else {
_local2 = new URLRequest((CountryInfo.instance.moreGameLink + "&utm_content=sitelocked"));
};
navigateToURL(_local2, "_blank");
}
}
}//package zlong.navigate
Section 70
//SiteData (zlong.site.SiteData)
package zlong.site {
final class SiteData {
static const allowedSite:Array = ["gamedev.dev.spillgroup.com", "www.agame.com", "www.girlsgogames.com", "www.games.co.uk", "www.mygames.co.uk", "www.girlsgogames.co.uk", "www.spel.nl", "www.spelletjes.nl", "www.girlsgogames.nl", "www.jetztspielen.de", "www.spielen.com", "www.girlsgogames.de", "www.jeux.fr", "www.jeu.fr", "www.girlsgogames.fr", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.gioco.it", "www.giocaregratis.it", "www.girlsgogames.it", "www.gry.pl", "www.minigry.pl", "www.girlsgogames.pl", "www.spela.se", "www.spel.eu", "www.girlsgogames.se", "www.ojogos.pt", "www.ourgames.ru", "www.flashgames.ru", "www.girlsgogames.ru", "www.oyunlar123.com", "www.gamesgames.com", "www.agame.com", "www.girlsgogames.com", "www.juegos.com", "www.zapjuegos.com", "www.juegosdechicas.com", "www.ojogos.com.br", "www.clickjogos.com", "www.girlsgogames.com.br", "www.game.com.cn", "files.game.com.cn", "www.xiaoyouxi.com", "www.egames.jp", "www.game.co.in", "www.game.co.in", "www.games.co.id", "www.onrpg.com", "www.zlonggames.com", "www.zlonggamestest.com", "www.girlsgogames.es", "www.a10.com", "gamedev.dev.spilgames.com", "www.spel.se", "www.dailygame.com", "www.agame.co.uk"];
}
}//package zlong.site
Section 71
//SiteInfo (zlong.site.SiteInfo)
package zlong.site {
import zlong.localization.data.*;
import flash.external.*;
public class SiteInfo {
private var _domain:String;
private var _allowed:Boolean;
private static var _instance:SiteInfo;
public function SiteInfo():void{
_domain = returnDomain(returnURL());
_allowed = searchForSite(_domain);
}
private function searchForSite(_arg1:String):Boolean{
var _local2:uint;
_local2 = 0;
while (_local2 < SiteData.allowedSite.length) {
if (_arg1 == SiteData.allowedSite[_local2]){
return (true);
};
_local2++;
};
return (false);
}
private function returnDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
return (_local2);
}
public function get allowed():Boolean{
if (GameInfo.cnversion){
return (true);
};
return (_allowed);
}
private function returnURL():String{
var loc:String;
try {
loc = ExternalInterface.call("window.location.href.toString");
} catch(e) {
loc = "error";
};
if ((((loc == null)) || ((loc == "")))){
loc = "error";
};
if (String(loc).indexOf(".swf") != -1){
loc = "error";
};
return (loc);
}
public static function get instance():SiteInfo{
if (_instance == null){
_instance = new (SiteInfo);
};
return (_instance);
}
}
}//package zlong.site
Section 72
//Back_按钮 (Back_按钮)
package {
import basic.*;
public dynamic class Back_按钮 extends ExtButton {
}
}//package
Section 73
//backInChoose (backInChoose)
package {
import basic.*;
public dynamic class backInChoose extends ExtButton {
}
}//package
Section 74
//BGMC (BGMC)
package {
import flash.display.*;
public dynamic class BGMC extends Sprite {
}
}//package
Section 75
//bitmap_btn (bitmap_btn)
package {
import basic.*;
public dynamic class bitmap_btn extends ExtButton {
}
}//package
Section 76
//border_1 (border_1)
package {
import basic.*;
public dynamic class border_1 extends ExtButton {
}
}//package
Section 77
//border_2 (border_2)
package {
import basic.*;
public dynamic class border_2 extends ExtButton {
}
}//package
Section 78
//BoxMC (BoxMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class BoxMC extends MovieClip {
public var completedLabel_mc:MovieClip;
public var lock_mc:MovieClip;
public var winner_txt:TextField;
public var percent_txt:TextField;
public var daily_txt:TextField;
public var play_mc:wz_playButton;
public var picture_mc:MovieClip;
public var winner_mc:MovieClip;
public var day_txt:TextField;
}
}//package
Section 79
//branding_aligned_center (branding_aligned_center)
package {
import zlong.localization.display.*;
public dynamic class branding_aligned_center extends Logo {
}
}//package
Section 80
//branding_aligned_right (branding_aligned_right)
package {
import zlong.localization.display.*;
public dynamic class branding_aligned_right extends Logo {
}
}//package
Section 81
//ChooseMC (ChooseMC)
package {
import flash.display.*;
public dynamic class ChooseMC extends MovieClip {
public var moreGames_mc:moreGameInChoose;
public var labelType:MovieClip;
public var start:startInChoose;
public var type_2:piecesType_2;
public var type_1:piecesType_1;
public var labelPieces:MovieClip;
public var labelRotation:MovieClip;
public var jiaodai_1:MovieClip;
public var pieces_1:Easy_按钮;
public var jiaodai_2:MovieClip;
public var pieces_2:Medium_按钮;
public var pieces_3:Hard_按钮;
public var no:MovieClip;
public var yes:MovieClip;
public var back:backInChoose;
}
}//package
Section 82
//close_按钮 (close_按钮)
package {
import basic.*;
public dynamic class close_按钮 extends ExtButton {
}
}//package
Section 83
//CountriesBox (CountriesBox)
package {
import zlong.localization.display.*;
public dynamic class CountriesBox extends CountriesBox {
}
}//package
Section 84
//countryMc (countryMc)
package {
import zlong.localization.display.*;
public dynamic class countryMc extends TranText {
}
}//package
Section 85
//Credits_按钮 (Credits_按钮)
package {
import basic.*;
public dynamic class Credits_按钮 extends ExtButton {
}
}//package
Section 86
//CreditsMC (CreditsMC)
package {
import flash.display.*;
public dynamic class CreditsMC extends MovieClip {
public var bg:MovieClip;
public var back_mc:Back_按钮;
}
}//package
Section 87
//Document (Document)
package {
import flash.display.*;
import zlong.localization.*;
public class Document extends MovieClip {
private var _container:Sprite;
public var bg:CreditsMC;
public function Document():void{
new GameSetting(this, false, "girl", "Jigsaw_Puzzle", "Jigsaw-Puzzle.html", 640, 480);
initDis();
new Manager(_container);
}
private function initDis():void{
this.stop();
_container = new Sprite();
this.addChildAt(_container, 0);
}
function sleek():void{
this.gotoAndStop(3);
this.gotoAndStop(1);
}
}
}//package
Section 88
//Easy_按钮 (Easy_按钮)
package {
import basic.*;
public dynamic class Easy_按钮 extends ExtButton {
}
}//package
Section 89
//finish_wav (finish_wav)
package {
import flash.media.*;
public dynamic class finish_wav extends Sound {
}
}//package
Section 90
//GameCnMc (GameCnMc)
package {
import flash.display.*;
public dynamic class GameCnMc extends MovieClip {
}
}//package
Section 91
//handle_1 (handle_1)
package {
import basic.*;
public dynamic class handle_1 extends ExtButton {
}
}//package
Section 92
//handle_2 (handle_2)
package {
import basic.*;
public dynamic class handle_2 extends ExtButton {
}
}//package
Section 93
//HandlerMC (HandlerMC)
package {
import flash.display.*;
public dynamic class HandlerMC extends MovieClip {
public var circle:MovieClip;
}
}//package
Section 94
//Hard_按钮 (Hard_按钮)
package {
import basic.*;
public dynamic class Hard_按钮 extends ExtButton {
}
}//package
Section 95
//HelpMC (HelpMC)
package {
import flash.display.*;
public dynamic class HelpMC extends MovieClip {
public var back:Back_按钮;
}
}//package
Section 96
//HighScoreMC (HighScoreMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class HighScoreMC extends MovieClip {
public var time_txt:TextField;
public var moreGames_mc:按钮3000;
public var name_0:TextField;
public var name_3:TextField;
public var name_7:TextField;
public var name_1:TextField;
public var name_4:TextField;
public var name_5:TextField;
public var name_6:TextField;
public var name_8:TextField;
public var name_9:TextField;
public var name_2:TextField;
public var score_0:TextField;
public var score_2:TextField;
public var score_6:TextField;
public var score_7:TextField;
public var score_9:TextField;
public var score_3:TextField;
public var score_4:TextField;
public var score_5:TextField;
public var score_8:TextField;
public var score_1:TextField;
public var back:Back_按钮;
}
}//package
Section 97
//Higscores_按钮 (Higscores_按钮)
package {
import basic.*;
public dynamic class Higscores_按钮 extends ExtButton {
}
}//package
Section 98
//LoadingBigImgMC (LoadingBigImgMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LoadingBigImgMC extends MovieClip {
public var progress_txt:TextField;
public var ani_mc:MovieClip;
}
}//package
Section 99
//LoadingMc (LoadingMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LoadingMc extends MovieClip {
public var progress_txt:TextField;
public var logo_mc:branding_aligned_right;
}
}//package
Section 100
//LoadingXMLMC (LoadingXMLMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LoadingXMLMC extends MovieClip {
public var progress_txt:TextField;
public var name_txt:TextField;
}
}//package
Section 101
//Manager (Manager)
package {
import flash.display.*;
import flash.events.*;
import sound.*;
import screen.*;
import safe.*;
import data.*;
import net.*;
import game.*;
import zlong.localization.data.*;
import tool.*;
import zlong.navigate.*;
public class Manager {
public var bmd:BitmapData;
private var highScore:HighScore;
private var pieceArr:Array;
private var choose:Choose;
private var credits:Credits;
private var bmdArr:Array;
private var pieceId:int;
private var loadingSWF:LoadingSWF;
public var date:Date;
private var _mc:Sprite;
private var engine:Engine;
private var loadingXML:LoadingXML;
private var protection:Protection;
private var submitScore:SubmitScore;
private var rotationEnabled:Boolean;
private var rectangle:Boolean;
private var option:Option;
private var gameCn:GameCn;
private var loadingBigImg:LoadingBigImg;
public function Manager(_arg1:Sprite){
_mc = _arg1;
init();
initLoadingSWF();
}
public function loadBigImgComplete(_arg1:BitmapData):void{
bmd = _arg1;
initPieceArr();
delLoadingBigImg();
initChoose();
}
private function initLoadingXML():void{
loadingXML = new LoadingXML(this);
}
public function clickPlayInOption():void{
delOption();
initLoadingBigImg();
}
public function set RotationEnabled(_arg1:Boolean):void{
rotationEnabled = _arg1;
}
public function get lie():int{
return (pieceArr[pieceId]["lie"]);
}
private function delChoose():void{
choose.del();
choose = null;
GC.clear();
}
private function initEngine():void{
engine = new Engine(this);
}
public function del():void{
}
public function endInGameCn():void{
delGameCn();
initOption();
if (!Check.instance.siteBelongSpill){
initProtection();
};
}
public function clickStartInChoose():void{
delChoose();
initEngine();
}
public function backToChoose():void{
delEngine();
initChoose();
}
public function set PieceId(_arg1:int):void{
pieceId = _arg1;
}
public function loadSWFComplete():void{
delLoadingSWF();
Document(_mc.parent).sleek();
initLoadingXML();
}
public function get mc():Sprite{
return (_mc);
}
private function delLoadingSWF():void{
loadingSWF.del();
loadingSWF = null;
GC.clear();
}
public function clickSubmitInSubmitScore():void{
Cookie.instance.setComplete(date.fullYear, date.month, date.date);
delSubmitScore();
if (!GameInfo.cnversion){
initHighScore();
} else {
initOption();
};
}
public function set Rectangle(_arg1:Boolean):void{
rectangle = _arg1;
}
private function init():void{
new BackDoor(_mc.stage);
new StageSetting(_mc);
bmdArr = new Array();
}
private function initProtection():void{
protection = new Protection(this);
}
public function clickCreditsInSubmitScore():void{
initCredits();
}
private function initOption():void{
SoundsManager.getInstance().playMusic(SoundList.instance.list[SoundList.instance.curr], Data.musicValue);
option = new Option(this);
}
public function completeInEngine(_arg1:Number, _arg2:Number):void{
SoundsManager.getInstance().playSound("finish_wav", Data.soundValue);
delEngine();
initSubmitScore(_arg1, _arg2);
}
public function loadXMLComplete():void{
initData();
delLoadingXML();
if (!GameInfo.cnversion){
initOption();
if (!Check.instance.siteBelongSpill){
initProtection();
};
} else {
initGameCn();
};
}
private function initGameCn():void{
gameCn = new GameCn(this, _mc);
}
private function initCredits():void{
credits = new Credits(this);
}
private function initSubmitScore(_arg1:Number, _arg2:Number):void{
submitScore = new SubmitScore(this, _arg1, _arg2);
}
public function clickStartInProtection(_arg1:Event=null):void{
if (BackDoor.open){
delProtection();
} else {
Handler.click_siteLocked_thisgame();
};
}
public function get PicecArr():Array{
return (pieceArr);
}
public function clickBackInSubmitScore():void{
delSubmitScore();
initOption();
}
public function get RotationEnabled():Boolean{
return (rotationEnabled);
}
private function delProtection():void{
protection.del();
protection = null;
}
private function delHighScore():void{
highScore.del();
highScore = null;
GC.clear();
}
private function initChoose():void{
choose = new Choose(this);
}
private function delLoadingXML():void{
loadingXML.del();
loadingXML = null;
GC.clear();
}
public function clickBackInChoose():void{
if (!GameInfo.cnversion){
delChoose();
initOption();
} else {
Handler.refurbish();
};
}
public function get Rectangle():Boolean{
return (rectangle);
}
public function clickHighsoresInOption():void{
delOption();
initHighScore();
}
private function delCredits():void{
credits.del();
credits = null;
}
private function initLoadingSWF():void{
loadingSWF = new LoadingSWF(this, _mc);
}
private function initPieceArr():void{
var _local1:Number;
var _local2:Number;
var _local3:int;
var _local4:Object;
pieceArr = new Array();
if ((bmd.width / bmd.height) > (Data.bitmapMaxWidth / Data.bitmapMaxHeight)){
_local1 = Data.bitmapMaxWidth;
_local2 = (bmd.height * (_local1 / bmd.width));
} else {
_local2 = Data.bitmapMaxHeight;
_local1 = (bmd.width * (_local2 / bmd.height));
};
_local3 = 0;
while (_local3 < Data.pieceArray.length) {
_local4 = {hang:Math.round((_local2 / Data.pieceArray[_local3].height)), lie:Math.round((_local1 / Data.pieceArray[_local3].width))};
pieceArr.push(_local4);
_local3++;
};
}
private function delOption():void{
option.del();
option = null;
GC.clear();
}
private function delLoadingBigImg():void{
loadingBigImg.del();
loadingBigImg = null;
GC.clear();
}
public function clickBackInCredits():void{
delCredits();
}
private function initLoadingBigImg():void{
loadingBigImg = new LoadingBigImg(this);
}
private function delGameCn():void{
gameCn.del();
gameCn = null;
GC.clear();
}
private function initData():void{
var _local1:Date;
var _local2:Date;
date = new Date();
_local1 = XMLData.instance.leftDate();
_local2 = XMLData.instance.rightDate();
if (Date.UTC(date.fullYear, date.month, date.date) > Date.UTC(_local2.fullYear, _local2.month, _local2.date)){
date = _local2;
} else {
if (Date.UTC(date.fullYear, date.month, date.date) < Date.UTC(_local1.fullYear, _local1.month, _local1.date)){
date = _local1;
};
};
}
public function clickBackInHighScore():void{
if (!GameInfo.cnversion){
delHighScore();
initOption();
} else {
Handler.refurbish();
};
}
private function delEngine():void{
engine.del();
engine = null;
GC.clear();
}
private function initHighScore():void{
highScore = new HighScore(this);
}
public function get hang():int{
return (pieceArr[pieceId]["hang"]);
}
private function delSubmitScore():void{
submitScore.del();
submitScore = null;
GC.clear();
}
}
}//package
Section 102
//material (material)
package {
import basic.*;
public dynamic class material extends ExtButton {
}
}//package
Section 103
//material_0 (material_0)
package {
import flash.display.*;
public dynamic class material_0 extends BitmapData {
public function material_0(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 104
//material_1 (material_1)
package {
import flash.display.*;
public dynamic class material_1 extends BitmapData {
public function material_1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 105
//material_2 (material_2)
package {
import flash.display.*;
public dynamic class material_2 extends BitmapData {
public function material_2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 106
//material_3 (material_3)
package {
import flash.display.*;
public dynamic class material_3 extends BitmapData {
public function material_3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 107
//material_4 (material_4)
package {
import flash.display.*;
public dynamic class material_4 extends BitmapData {
public function material_4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 108
//material_5 (material_5)
package {
import flash.display.*;
public dynamic class material_5 extends BitmapData {
public function material_5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 109
//material_6 (material_6)
package {
import flash.display.*;
public dynamic class material_6 extends BitmapData {
public function material_6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 110
//material_7 (material_7)
package {
import flash.display.*;
public dynamic class material_7 extends BitmapData {
public function material_7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 111
//MaterialBoxMC (MaterialBoxMC)
package {
import flash.display.*;
public dynamic class MaterialBoxMC extends MovieClip {
public var box:MovieClip;
}
}//package
Section 112
//Medium_按钮 (Medium_按钮)
package {
import basic.*;
public dynamic class Medium_按钮 extends ExtButton {
}
}//package
Section 113
//menu_press_wav (menu_press_wav)
package {
import flash.media.*;
public dynamic class menu_press_wav extends Sound {
}
}//package
Section 114
//menu_touch_wav (menu_touch_wav)
package {
import flash.media.*;
public dynamic class menu_touch_wav extends Sound {
}
}//package
Section 115
//minimap_1 (minimap_1)
package {
import basic.*;
public dynamic class minimap_1 extends ExtButton {
}
}//package
Section 116
//minimap_2 (minimap_2)
package {
import basic.*;
public dynamic class minimap_2 extends ExtButton {
}
}//package
Section 117
//MinimapMC (MinimapMC)
package {
import flash.display.*;
public dynamic class MinimapMC extends MovieClip {
public var big:放大;
public var small:缩小;
public var close:关闭;
}
}//package
Section 118
//moreGameInChoose (moreGameInChoose)
package {
import basic.*;
public dynamic class moreGameInChoose extends ExtButton {
}
}//package
Section 119
//moreGameInOption (moreGameInOption)
package {
import basic.*;
public dynamic class moreGameInOption extends ExtButton {
}
}//package
Section 120
//music_1 (music_1)
package {
import flash.media.*;
public dynamic class music_1 extends Sound {
}
}//package
Section 121
//music_2 (music_2)
package {
import flash.media.*;
public dynamic class music_2 extends Sound {
}
}//package
Section 122
//music_3 (music_3)
package {
import flash.media.*;
public dynamic class music_3 extends Sound {
}
}//package
Section 123
//music_4 (music_4)
package {
import flash.media.*;
public dynamic class music_4 extends Sound {
}
}//package
Section 124
//NO (NO)
package {
import basic.*;
public dynamic class NO extends ExtButton {
}
}//package
Section 125
//OptionMC (OptionMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class OptionMC extends MovieClip {
public var copyright_btn:SimpleButton;
public var left:按钮_001;
public var right:按钮_001;
public var month_txt:TextField;
public var highscores:Higscores_按钮;
public var moreGames_mc:moreGameInOption;
public var date_txt:TextField;
public var year_txt:TextField;
public var winner_mc:MovieClip;
public var day_txt:TextField;
public var sound_mc:MovieClip;
public var highestScore_txt:TextField;
}
}//package
Section 126
//otherclick_wav (otherclick_wav)
package {
import flash.media.*;
public dynamic class otherclick_wav extends Sound {
}
}//package
Section 127
//othertouch_wav (othertouch_wav)
package {
import flash.media.*;
public dynamic class othertouch_wav extends Sound {
}
}//package
Section 128
//pause_1 (pause_1)
package {
import basic.*;
public dynamic class pause_1 extends ExtButton {
}
}//package
Section 129
//pause_2 (pause_2)
package {
import basic.*;
public dynamic class pause_2 extends ExtButton {
}
}//package
Section 130
//PauseMC (PauseMC)
package {
import flash.display.*;
public dynamic class PauseMC extends MovieClip {
}
}//package
Section 131
//piecesType_1 (piecesType_1)
package {
import basic.*;
public dynamic class piecesType_1 extends ExtButton {
}
}//package
Section 132
//piecesType_2 (piecesType_2)
package {
import basic.*;
public dynamic class piecesType_2 extends ExtButton {
}
}//package
Section 133
//ProtectionMC (ProtectionMC)
package {
import flash.display.*;
public dynamic class ProtectionMC extends MovieClip {
public var start:startInChoose;
public var logo_mc:branding_aligned_center;
}
}//package
Section 134
//scroll_wav (scroll_wav)
package {
import flash.media.*;
public dynamic class scroll_wav extends Sound {
}
}//package
Section 135
//sound_left (sound_left)
package {
import basic.*;
public dynamic class sound_left extends ExtButton {
}
}//package
Section 136
//startInChoose (startInChoose)
package {
import basic.*;
public dynamic class startInChoose extends ExtButton {
}
}//package
Section 137
//Subit_按钮 (Subit_按钮)
package {
import basic.*;
public dynamic class Subit_按钮 extends ExtButton {
}
}//package
Section 138
//SubmitScoreMC (SubmitScoreMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SubmitScoreMC extends MovieClip {
public var time_txt:TextField;
public var submit:Subit_按钮;
public var rotation_txt:TextField;
public var score_txt:TextField;
public var shape_mc:MovieClip;
public var moreGames_mc:moreGameInOption;
public var bitmapPos_mc:MovieClip;
public var credits:Credits_按钮;
public var number_txt:TextField;
public var name_txt:TextField;
public var back:Back_按钮;
}
}//package
Section 139
//SureMC (SureMC)
package {
import flash.display.*;
public dynamic class SureMC extends MovieClip {
public var no_mc:NO;
public var yes_mc:YES;
}
}//package
Section 140
//take_wav (take_wav)
package {
import flash.media.*;
public dynamic class take_wav extends Sound {
}
}//package
Section 141
//ThemeMC (ThemeMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ThemeMC extends MovieClip {
public var percent_txt:TextField;
}
}//package
Section 142
//ToolBoxMc (ToolBoxMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class ToolBoxMc extends MovieClip {
public var time_txt:TextField;
public var materail:material;
public var border:MovieClip;
public var bitmap:bitmap_btn;
public var help_mc:按钮08;
public var overText_mc:MovieClip;
public var handle:MovieClip;
public var minimap:MovieClip;
public var logo_mc:branding_aligned_right;
public var sound_txt:TextField;
public var sound_mc:MovieClip;
public var soundLeft_mc:sound_left;
public var soundRight_mc:sound_left;
public var backChoose:按钮04;
public var pause:MovieClip;
}
}//package
Section 143
//wz_3000 (wz_3000)
package {
import zlong.localization.display.*;
public dynamic class wz_3000 extends TranText {
}
}//package
Section 144
//wz_Allow_piece_rotation (wz_Allow_piece_rotation)
package {
import zlong.localization.display.*;
public dynamic class wz_Allow_piece_rotation extends TranText {
}
}//package
Section 145
//wz_Allow_piece_rotation__01 (wz_Allow_piece_rotation__01)
package {
import zlong.localization.display.*;
public dynamic class wz_Allow_piece_rotation__01 extends TranText {
}
}//package
Section 146
//wz_Are_you_sure_you_want_to_back (wz_Are_you_sure_you_want_to_back)
package {
import zlong.localization.display.*;
public dynamic class wz_Are_you_sure_you_want_to_back extends TranText {
}
}//package
Section 147
//wz_back (wz_back)
package {
import zlong.localization.display.*;
public dynamic class wz_back extends TranText {
}
}//package
Section 148
//wz_back_01 (wz_back_01)
package {
import zlong.localization.display.*;
public dynamic class wz_back_01 extends TranText {
}
}//package
Section 149
//wz_Change_the_background (wz_Change_the_background)
package {
import zlong.localization.display.*;
public dynamic class wz_Change_the_background extends TranText {
}
}//package
Section 150
//wz_Choose_your_lever_of_difficulty (wz_Choose_your_lever_of_difficulty)
package {
import zlong.localization.display.*;
public dynamic class wz_Choose_your_lever_of_difficulty extends TranText {
}
}//package
Section 151
//wz_CLICK_TO_CONTINUE (wz_CLICK_TO_CONTINUE)
package {
import zlong.localization.display.*;
public dynamic class wz_CLICK_TO_CONTINUE extends TranText {
}
}//package
Section 152
//wz_close (wz_close)
package {
import zlong.localization.display.*;
public dynamic class wz_close extends TranText {
}
}//package
Section 153
//wz_Completed_picture (wz_Completed_picture)
package {
import zlong.localization.display.*;
public dynamic class wz_Completed_picture extends TranText {
}
}//package
Section 154
//wz_conratulations (wz_conratulations)
package {
import zlong.localization.display.*;
public dynamic class wz_conratulations extends TranText {
}
}//package
Section 155
//wz_Credits (wz_Credits)
package {
import zlong.localization.display.*;
public dynamic class wz_Credits extends TranText {
}
}//package
Section 156
//wz_Credits_01 (wz_Credits_01)
package {
import zlong.localization.display.*;
public dynamic class wz_Credits_01 extends TranText {
}
}//package
Section 157
//wz_Credits_02 (wz_Credits_02)
package {
import zlong.localization.display.*;
public dynamic class wz_Credits_02 extends TranText {
}
}//package
Section 158
//wz_DIFFICULTY (wz_DIFFICULTY)
package {
import zlong.localization.display.*;
public dynamic class wz_DIFFICULTY extends TranText {
}
}//package
Section 159
//wz_Edge_pieces_only (wz_Edge_pieces_only)
package {
import zlong.localization.display.*;
public dynamic class wz_Edge_pieces_only extends TranText {
}
}//package
Section 160
//wz_game_basics (wz_game_basics)
package {
import zlong.localization.display.*;
public dynamic class wz_game_basics extends TranText {
}
}//package
Section 161
//wz_GAME_PAUSED (wz_GAME_PAUSED)
package {
import zlong.localization.display.*;
public dynamic class wz_GAME_PAUSED extends TranText {
}
}//package
Section 162
//wz_GAME_PAUSED_011 (wz_GAME_PAUSED_011)
package {
import zlong.localization.display.*;
public dynamic class wz_GAME_PAUSED_011 extends TranText {
}
}//package
Section 163
//wz_GAME_PAUSED_02 (wz_GAME_PAUSED_02)
package {
import zlong.localization.display.*;
public dynamic class wz_GAME_PAUSED_02 extends TranText {
}
}//package
Section 164
//wz_Go_to_Main_Menu (wz_Go_to_Main_Menu)
package {
import zlong.localization.display.*;
public dynamic class wz_Go_to_Main_Menu extends TranText {
}
}//package
Section 165
//wz_help (wz_help)
package {
import zlong.localization.display.*;
public dynamic class wz_help extends TranText {
}
}//package
Section 166
//wz_High_Scores (wz_High_Scores)
package {
import zlong.localization.display.*;
public dynamic class wz_High_Scores extends TranText {
}
}//package
Section 167
//wz_High_Scores_01 (wz_High_Scores_01)
package {
import zlong.localization.display.*;
public dynamic class wz_High_Scores_01 extends TranText {
}
}//package
Section 168
//wz_highscoress (wz_highscoress)
package {
import zlong.localization.display.*;
public dynamic class wz_highscoress extends TranText {
}
}//package
Section 169
//wz_how_to_play_01 (wz_how_to_play_01)
package {
import zlong.localization.display.*;
public dynamic class wz_how_to_play_01 extends TranText {
}
}//package
Section 170
//wz_how_to_play_02 (wz_how_to_play_02)
package {
import zlong.localization.display.*;
public dynamic class wz_how_to_play_02 extends TranText {
}
}//package
Section 171
//wz_loading (wz_loading)
package {
import zlong.localization.display.*;
public dynamic class wz_loading extends TranText {
}
}//package
Section 172
//wz_More_puzzle_games_at (wz_More_puzzle_games_at)
package {
import zlong.localization.display.*;
public dynamic class wz_More_puzzle_games_at extends TranText {
}
}//package
Section 173
//wz_More_puzzle_games_at_copy (wz_More_puzzle_games_at_copy)
package {
import zlong.localization.display.*;
public dynamic class wz_More_puzzle_games_at_copy extends TranText {
}
}//package
Section 174
//wz_Move_a_piece (wz_Move_a_piece)
package {
import zlong.localization.display.*;
public dynamic class wz_Move_a_piece extends TranText {
}
}//package
Section 175
//wz_Move_multiple_pieces (wz_Move_multiple_pieces)
package {
import zlong.localization.display.*;
public dynamic class wz_Move_multiple_pieces extends TranText {
}
}//package
Section 176
//wz_name (wz_name)
package {
import zlong.localization.display.*;
public dynamic class wz_name extends TranText {
}
}//package
Section 177
//wz_NO (wz_NO)
package {
import zlong.localization.display.*;
public dynamic class wz_NO extends TranText {
}
}//package
Section 178
//wz_NO黑 (wz_NO黑)
package {
import zlong.localization.display.*;
public dynamic class wz_NO黑 extends TranText {
}
}//package
Section 179
//wz_Picture_preview (wz_Picture_preview)
package {
import zlong.localization.display.*;
public dynamic class wz_Picture_preview extends TranText {
}
}//package
Section 180
//wz_PIECE_SHAPE (wz_PIECE_SHAPE)
package {
import zlong.localization.display.*;
public dynamic class wz_PIECE_SHAPE extends TranText {
}
}//package
Section 181
//wz_PIECE_SHAPE_01 (wz_PIECE_SHAPE_01)
package {
import zlong.localization.display.*;
public dynamic class wz_PIECE_SHAPE_01 extends TranText {
}
}//package
Section 182
//wz_pieces (wz_pieces)
package {
import zlong.localization.display.*;
public dynamic class wz_pieces extends TranText {
}
}//package
Section 183
//wz_play__controls (wz_play__controls)
package {
import zlong.localization.display.*;
public dynamic class wz_play__controls extends TranText {
}
}//package
Section 184
//wz_playButton (wz_playButton)
package {
import zlong.localization.display.*;
public dynamic class wz_playButton extends TranText {
}
}//package
Section 185
//wz_score (wz_score)
package {
import zlong.localization.display.*;
public dynamic class wz_score extends TranText {
}
}//package
Section 186
//wz_score_01 (wz_score_01)
package {
import zlong.localization.display.*;
public dynamic class wz_score_01 extends TranText {
}
}//package
Section 187
//wz_start (wz_start)
package {
import zlong.localization.display.*;
public dynamic class wz_start extends TranText {
}
}//package
Section 188
//wz_start_011 (wz_start_011)
package {
import zlong.localization.display.*;
public dynamic class wz_start_011 extends TranText {
}
}//package
Section 189
//wz_start_02 (wz_start_02)
package {
import zlong.localization.display.*;
public dynamic class wz_start_02 extends TranText {
}
}//package
Section 190
//wz_Subit (wz_Subit)
package {
import zlong.localization.display.*;
public dynamic class wz_Subit extends TranText {
}
}//package
Section 191
//wz_Theme_of_the_week (wz_Theme_of_the_week)
package {
import zlong.localization.display.*;
public dynamic class wz_Theme_of_the_week extends TranText {
}
}//package
Section 192
//wz_time (wz_time)
package {
import zlong.localization.display.*;
public dynamic class wz_time extends TranText {
}
}//package
Section 193
//wz_time_01 (wz_time_01)
package {
import zlong.localization.display.*;
public dynamic class wz_time_01 extends TranText {
}
}//package
Section 194
//wz_TIME_LEFT_ (wz_TIME_LEFT_)
package {
import zlong.localization.display.*;
public dynamic class wz_TIME_LEFT_ extends TranText {
}
}//package
Section 195
//wz_YES (wz_YES)
package {
import zlong.localization.display.*;
public dynamic class wz_YES extends TranText {
}
}//package
Section 196
//wz_YES_黑 (wz_YES_黑)
package {
import zlong.localization.display.*;
public dynamic class wz_YES_黑 extends TranText {
}
}//package
Section 197
//wz_名次 (wz_å次)
package {
import zlong.localization.display.*;
public dynamic class wz_名次 extends TranText {
}
}//package
Section 198
//wz_标题 (wz_æ ‡é¢˜)
package {
import zlong.localization.display.*;
public dynamic class wz_标题 extends TranText {
}
}//package
Section 199
//YES (YES)
package {
import basic.*;
public dynamic class YES extends ExtButton {
}
}//package
Section 200
//兰色_01 (兰色_01)
package {
import basic.*;
public dynamic class 兰色_01 extends ExtButton {
}
}//package
Section 201
//关闭 (å…³é—)
package {
import basic.*;
public dynamic class 关闭 extends ExtButton {
}
}//package
Section 202
//按钮_001 (按钮_001)
package {
import basic.*;
public dynamic class 按钮_001 extends ExtButton {
}
}//package
Section 203
//按钮04 (按钮04)
package {
import basic.*;
public dynamic class 按钮04 extends ExtButton {
}
}//package
Section 204
//按钮08 (按钮08)
package {
import basic.*;
public dynamic class 按钮08 extends ExtButton {
}
}//package
Section 205
//按钮3000 (按钮3000)
package {
import basic.*;
public dynamic class 按钮3000 extends ExtButton {
}
}//package
Section 206
//放大 (放大)
package {
import basic.*;
public dynamic class 放大 extends ExtButton {
}
}//package
Section 207
//深灰_01 (æ·±ç°_01)
package {
import basic.*;
public dynamic class 深灰_01 extends ExtButton {
}
}//package
Section 208
//深红_01 (深红_01)
package {
import basic.*;
public dynamic class 深红_01 extends ExtButton {
}
}//package
Section 209
//白色_01 (白色_01)
package {
import basic.*;
public dynamic class 白色_01 extends ExtButton {
}
}//package
Section 210
//粉色_01 (粉色_01)
package {
import basic.*;
public dynamic class 粉色_01 extends ExtButton {
}
}//package
Section 211
//紫色_01 (紫色_01)
package {
import basic.*;
public dynamic class 紫色_01 extends ExtButton {
}
}//package
Section 212
//绿色_01 (绿色_01)
package {
import basic.*;
public dynamic class 绿色_01 extends ExtButton {
}
}//package
Section 213
//缩小 (缩å°)
package {
import basic.*;
public dynamic class 缩小 extends ExtButton {
}
}//package
Section 214
//黄色_01 (黄色_01)
package {
import basic.*;
public dynamic class 黄色_01 extends ExtButton {
}
}//package