Section 1
//ExtButton (api.ExtButton)
package api {
import flash.display.*;
import sound.*;
import flash.events.*;
import data.*;
public class ExtButton extends MovieClip {
public var hitArea_mc:MovieClip;
private var hitMc:Sprite;
public var dis_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("pressSound", Data.value_event);
}
private function delDis():void{
this.removeChild(hitMc);
}
private function overSound():void{
SoundsManager.getInstance().playSound("overSound", Data.value_event);
}
private function rollOverFun(_arg1:MouseEvent):void{
overSound();
this.gotoAndStop(2);
}
}
}//package api
Section 2
//ExtLogo (api.ExtLogo)
package api {
import flash.display.*;
import data.*;
public class ExtLogo extends MovieClip {
public function ExtLogo(){
initDis();
}
private function initDis():void{
this.gotoAndStop(language.branding_nr);
}
}
}//package api
Section 3
//ExtTxt (api.ExtTxt)
package api {
import flash.display.*;
import data.*;
public class ExtTxt extends MovieClip {
public function ExtTxt(){
initDis();
}
private function initDis():void{
this.gotoAndStop(language.language_nr);
}
}
}//package api
Section 4
//Cookie (data.Cookie)
package data {
import flash.net.*;
public class Cookie {
private const id:String = "make_happy_umbrella_man";
private static var so:SharedObject;
public static var da:Object;
public function Cookie(){
initSo();
initData();
}
public function del():void{
so.close();
}
private function initData():void{
var _local1:Array;
da = so.data;
if (da["arr"] == null){
_local1 = [{name:"cpu", score:Data.cpu_1}, {name:"cpu", score:Data.cpu_2}, {name:"cpu", score:Data.cpu_3}, {name:"cpu", score:Data.cpu_4}, {name:"cpu", score:Data.cpu_5}, {name:"cpu", score:Data.cpu_6}, {name:"cpu", score:Data.cpu_7}, {name:"cpu", score:Data.cpu_8}, {name:"cpu", score:Data.cpu_9}, {name:"cpu", score:Data.cpu_10}];
da["arr"] = _local1;
};
if (da["highScore"] == null){
da["highScore"] = 0;
};
if (da["travelTotal"] == null){
da["travelTotal"] = 0;
};
if (da["travelTimes"] == null){
da["travelTimes"] = 0;
};
if (da["pickUpItemsTotal"] == null){
da["pickUpItemsTotal"] = 0;
};
if ((((da["pickUpWindmillOneRound"] < Data.pickUpWindmillOneRound)) || ((da["pickUpWindmillOneRound"] == null)))){
da["pickUpWindmillOneRound"] = 0;
};
}
private function initSo():void{
so = SharedObject.getLocal(id, "/");
}
public static function clear():void{
so.clear();
}
}
}//package data
Section 5
//Data (data.Data)
package data {
public class Data {
public static const flotage:Number = -0.4;
public static const openUmbInterval:int = 2000;
public static const manPos_x:Number = 100;
public static const manPos_y:Number = 200;
public static const speedX_add_winkmill:Number = 4;
public static const manMax_y:Number = 90;
public static const manMaxSpeedUp_y:Number = 4.5;
public static const inkUnliTimersArr:Array = [[25, 300], [25, 420], [25, 400]];
public static const manWinkTimes:int = 10000;
public static const manWinkSpeed:int = 300;
public static const lineWidth:Number = 8;
public static const bird_initX:Number = (Data.stageWidth + 300);
public static const sceneChangeTime:int = 40000;
public static const gravitation:Number = 0.49;
public static const sceneChangeSpeed:Number = 0.05;
public static const value_event:int = 1;
public static const rainbowScaleWave:Number = 0.2;
public static const unlimitedTime:int = 10;
public static const pointAtTime:int = 2000;
public static const sceneNum:int = 6;
public static const bird_frameRadian:Number = 0.05;
public static const inkTimersArr:Array = [[5, 120], [5, 100], [5, 150]];
public static const stageWidth:int = 550;
public static const lineMaxK:Number = 2;
public static const birdSpeed_x:Number = 1.8;
public static const speedUpTimersArr:Array = [[12, 80], [12, 160], [12, 240]];
public static const manInitSpeed_y:Number = -19;
public static const inkFullTimersArr:Array = [[18, 200], [18, 250], [18, 300]];
public static const inkTotalNum:Number = 2100;
public static const gameOverHeight:Number = 1000;
public static const cloudScaleWave:Number = 0.2;
public static const inertia:Number = 1;
public static const speedX_addTime:Number = 10;
public static const stageHeight:int = 400;
public static const lineColor:int = 0xFFFF00;
public static const value_bg:int = 1;
public static const lineThickness:Number = 15;
public static const bird_speed_down:Number = 7;
public static const speedX:Number = 4;
public static const birdTimersArr:Array = [[15, 150], [15, 80], [15, 230], [15, 30]];
public static const bird_speed_y:Number = 50;
public static var speedX_max:Number = 10;
public static var cpu_10:int = 5000;
public static var pickUpItemsTotal:int = 100;
public static var CREDITS_TXT_Y:Number = 100;
public static var openUmbSpeedY:Number = 0.25;
public static var speedX_add:Number = 2;
public static var cpu_2:int = 45000;
public static var cpu_4:int = 35000;
public static var cpu_5:int = 30000;
public static var cpu_6:int = 25000;
public static var cpu_7:int = 20000;
public static var cpu_1:int = 50000;
public static var cpu_9:int = 10000;
public static var cpu_3:int = 40000;
public static var CREDITS_BIRD:Number = 6;
public static var animationsScore:Array = [0, 3000, 7000, 11000, 16000];
public static var cpu_8:int = 15000;
public static var travelTotal_1:int = 100;
public static var travelTotal_2:int = 500;
public static var inkPercent:Number = 0.3;
public static var travelInOneRound_1:int = 10;
public static var CREDITS_BIRD_Y:Number = 200;
public static var travelInOneRound_2:int = 20;
public static var congratulationInterval:int = 3000;
public static var pickUpWindmillOneRound:int = 10;
public static var faceScoreSpace:Number = 3000;
public static var birdLaterTime:Number = 10000;
}
}//package data
Section 6
//DynamicText (data.DynamicText)
package data {
public class DynamicText {
public static const guTianCheng:String = "Gu Tian Cheng";
public static const animation:Array = ["Animation", "动画", "Animaties", "Animation", "Animation", "Animacja", "Animation", "Animazione", "Animación", "Animação", "Animação", "Анимация", "Animasi", "Animasyon", "Animasi", "Animation", "アニメーション"];
public static const great:Array = ["Great!", "太棒了!", "Super!", "Super !", "Großartig!", "Wspaniale!", "Bra!", "Grande!", "¡Fenomenal!", "Boa!", "Ótimo!", "Великолепно!", "Bagus!", "Mükemmel!", "Hebat!", "Great!", "最高!"];
public static const weeeee:Array = ["Weeeee!", "太棒了!", "Woehoe!", "Youhou !", "Wow!", "Naprzód!", "Weeee!", "Vaaaiii!", "¡Oleeeee!", "Weeeee!", "Legal!", "У-у-у-у-у!", "Weeeee!", "Heeeeey!", "Weeeee!", "Weeeee!", "進めー!"];
public static const breathXue:String = "Breath Xue";
public static const testing:Array = ["QA/LQA Testing", "测试", "Kwaliteitscontrole/Taalkwaliteitscontrole", "Test d'assurance qualité/d'assurance qualité de langue", "Qualitätssicherung", "Kontrola jakości", "QA/LQA-testning", "Controllo qualità", "Testeo de control de calidad/control de calidad lingüística", "Testes QA/LQA", "Testes de CQ/CQL", "Тестирование и отладка", "Uji QA/LQA", "QA/LQA Testi", "Ujian QA/LQA", "QA/LQA Testing", "品質保証/言語品質保証テスト"];
public static const gameConcept:Array = ["Game Concept", "游戏创意", "Spelconcept", "Concept du jeu", "Spielkonzept", "Pomysł gry", "Spelkoncept", "Ideazione", "Idea del juego", "Concepção do jogo", "Conceito", "Идея игры", "Konsep Permainan", "Oyun Konsepti", "Konsep Permainan", "Game Concept", "ゲームコンセプト"];
public static const yuZhiFeng:String = "Yu Zhi Feng";
public static const producer:Array = ["Producer", "制作人", "Producent", "Producteur", "Produzent", "Producent gry", "Producent", "Produzione ", "Productor", "Produtor", "Produtor do Jogo", "Продюсер", "Penghasil Permainan ", "Yapımcı", "Penerbit Permainan", "Producer", "プロデューサー"];
public static const soundFX:Array = ["Sound FX", "音效", "Geluidseffecten", "Effets de son", "Soundeffekte", "Efekty dźwiękowe", "Ljudeffekt", "Effetti sonori", "Efectos de sonido", "Efeitos sonoros", "Efeitos Sonoros", "Звуковые эффекты", "Efek Suara", "Ses Efektleri", "Kesan Bunyi", "Sound Effects", "サウンド調整"];
public static const illustrations:Array = ["Illustrations", "效果", "Illustraties", "Illustrations", "Illustrationen", "Obrazki", "Illustrationer", "Immagini", "Ilustraciones", "Ilustrações", "Ilustrações", "Иллюстрации", "Ilustrasi", "Grafikler", "Ilustrasi", "Illustrations", "イラスト"];
public static const yangYang:String = "Yang Yang";
public static const yahooo:Array = ["Yahooo!", "非常好!", "Jippie!", "Youpie !", "Prima!", "Juhuuuu!", "Tjohoo!", "Yahooo!", "¡Yuju!", "Yahooo!", "Obaaaaaa!", "Эге-гей!", "Yahooo!", "Yehooo!", "Yahoo!", "Yahooo!", "ヤッホー!"];
public static const wenGuangHui:String = "Wen Guang Hui";
public static const sunXin:String = "Sun Xin";
public static const yeah:Array = ["Yeah!", "耶耶耶!", "Jaaaa!", "Ouais !", "Yeah!", "O tak!", "Jättebra!", "Sìììììì!", "¡Sí!", "Fixe!", "Isso!", "О да!", "Yeah!", "İşte bu!", "Yeah!", "Yes!", "その調子!"];
public static const projectManagement:Array = ["Project Management", "项目经理", "Projectmanagement", "Gestion de projet", "Projektmanagement", "Zarządzanie projektem", "Projektledning", "Gestione progetto", "Coordinación del proyecto", "Gestão de projecto", "Administração do Projeto", "Руководитель проекта", "Manajemen Proyek", "Proje yönetimi", "Pengurusan projek", "Project Management", "プロジェクトマネージメント"];
public static const nielsWalta:String = "Niels Walta";
public static const saskia:String = "Saskia van 't Hoff";
public static const twoDArt:Array = ["2D Art", "美术", "2D-vormgeving", "Art 2D", "2D-Gestaltung", "Grafika 2D", "2D-form", "Grafica 2D", "Diseño 2D", "Arte 2D ", "Arte 2D", "Двухмерная графика", "Seni 2D", "2B Grafikler", "Seni 2D", "2D Art", "2Dアート"];
public static const gameDesign:Array = ["Game Design", "游戏设计", "Algemeen ontwerp", "Conception du jeu", "Spieldesign", "Projekt gry", "Speldesign", "Progettazione", "Diseño del juego", "Design do jogo", "Projeto", "Дизайн игры", "Desain Permainan", "Oyun Tasarımı", "Reka Bentuk Permainan", "Game Design", "ゲームデザイン"];
public static const thanks:Array = ["Special thanks to:", "特别感谢:", "Met dank aan:", "Un grand merci à :", "Danksagungen:", "Specjalne podziękowania dla:", "Särskilt tack till:", "Ringraziamenti speciali a:", "Agradecimientos especiales a:", "Agradecimentos especiais:", "Agradecimentos especiais a:", "Особо благодарим:", "Terima kasih khusus kepada:", "Teşekkürler:", "Ucapan terima kasih kepada:", "Special thanks to:", "Special thanks:"];
public static const programming:Array = ["Programming", "程序", "Programmering", "Programmation", "Programmierung", "Programowanie", "Programmering", "Programmazione", "Programación", "Programação", "Programação", "Программирование", "Program", "Programlama", "Pengaturcaraan", "Programming", "プログラミング"];
public static const conceptArt:Array = ["Concept Art", "美术设计", "Grafisch concept", "Concept art", "Konzeptgestaltung", "Concept Art", "Formkoncept", "Grafica di base", "Arte conceptual", "Arte (Concepção)", "Arte Conceitual", "Концепт-арт", "Konsep Seni", "Konsept Sanat", "Seni Konsep", "Concept Art", "アートコンセプト"];
public static const achievementCompleted:Array = ["ACHIEVEMENT COMPLETED!", "突破成就!", "PRESTATIE GEHAALD!", "PERFORMANCE ACHEVÉE !", "AUFGABE ERLEDIGT!", "CEL OSIĄGNIĘTY!", "BEDRIFT UTFÖRD!", "OBIETTIVO COMPLETATO", "¡LOGRO COMPLETADO!", "OBJECTIVO ALCANÇADO", "ATIVIDADE CONCLUÍDA!", "ЦЕЛЬ ДОСТИГНУТА!", "PRESTASI TERCAPAI!", "BAŞARI OYUNU TAMAMLANDI!", "PENCAPAIAN DILENGKAPKAN!", "ACHIEVEMENT ATTAINED!", "目標達成!"];
public static const zhangXiaoMing:String = "Zhang Xiao Ming";
public static const player:String = "player";
public static const levelDesign:Array = ["Level Design", "关卡设计", "Levelontwerp", "Conception des niveaux", "Leveldesign", "Projekty poziomów", "Nivådesign", "Progettazione livelli", "Diseño de los niveles", "Design dos níveis", "Projeto dos Níveis", "Дизайн уровней", "Desain Level", "Seviye Tasarımı", "Reka Bentuk Tahap", "Level Design", "レベルデザイン"];
public static const haHaHa:Array = ["Ha haaa!", "哈哈哈!", "Ha haaa!", "Ha haaa !", "Oh ja!", "Ha haaa!", "Ha haaa!", "Non mollare!", "¡Ja jaaaa!", "Ha haaaa!", "Ha haaa!", "Хо-хо-хо!", "Ha haaa!", "Ha haaa!", "Ha haaa!", "Ha haaa!", "いい感じ!"];
public static const kimVerbon:String = "Kim Verbon";
public static const artwork:Array = ["Artwork", "美术", "Grafische vormgeving", "Présentation graphique", "Bildgestaltung", "Opracowanie graficzne", "Form", "Grafica", "Diseño", "Arte (Produção)", "Arte", "Художественное оформление", "Hasil Seni", "Grafik Tasarımcılar", "Kerja Seni", "Artwork", "アート制作"];
public static const keepGoing:Array = ["Keep going!", "加油!加油!加油!", "Ga zo door!", "Continue comme ça !", "Weiter so!", "Tak trzymać!", "Fortsätt!", "Non fermarti!", "¡Continúa!", "Continue!", "Continue assim!", "Продолжаем!", "Teruskan!", "Devam et!", "Teruskan!", "Keep going!", "ゴーゴー!"];
public static const zhangRui:String = "Zhang Rui";
public static const fantastic:Array = ["Fantastic!", "不可思议!厉害!", "Fantastisch!", "Fantastique !", "Fantastisch!", "Fantastycznie!", "Fantastiskt!", "Fantastico!", "¡Fantástico!", "Fantástico!", "Fantástico!", "Просто фантастика!", "Luar biasa!", "Harika!", "Fantastik!", "Fantastic!", "素晴らしい!"];
public static const chuJiao:String = "Chu Jiao";
}
}//package data
Section 7
//language (data.language)
package data {
import flash.net.*;
public class language {
public static var spildomain:Array = new Array();
public static var localConnection:LocalConnection = new LocalConnection();
public static var spildomain_allowed:String = "";
public static var _languageBox:Array = new Array();
public static var _languageNum:uint = 0;
public static var SpillGroupUrl:Array = new Array();
public static function get url2():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url2);
}
public static function get language_nr():int{
return (_languageBox[_languageNum].language_nr);
}
public static function set Language(_arg1:Object):void{
var _local2:String;
var _local3:languageItem;
var _local4:languageItem;
var _local5:languageItem;
var _local6:languageItem;
var _local7:languageItem;
var _local8:languageItem;
var _local9:languageItem;
var _local10:languageItem;
var _local11:languageItem;
var _local12:languageItem;
var _local13:languageItem;
var _local14:languageItem;
var _local15:languageItem;
var _local16:languageItem;
var _local17:languageItem;
var _local18:languageItem;
var _local19:languageItem;
var _local20:languageItem;
var _local21:languageItem;
var _local22:Array;
var _local23:int;
var _local24:int;
if (localConnection.domain != "localhost"){
_local22 = localConnection.domain.split(".");
_local23 = (_local22.length - 1);
_local24 = (_local22.length - 2);
_local2 = ((_local22[_local24] + ".") + _local22[_local23]);
} else {
_local2 = "localhost";
};
_local3 = new languageItem();
_local3.url1 = ("http://www.gamesgames.com/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local3.url2 = "http://www.gamesgames.com/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local3.language_nr = 1;
_local3.branding_nr = 17;
_languageBox.push(_local3);
_local4 = new languageItem();
_local4.url1 = "http://www.game.com.cn/moregames/";
_local4.url2 = "http://www.game.com.cn/downloads/";
_local4.language_nr = 2;
_local4.branding_nr = 2;
_languageBox.push(_local4);
_local5 = new languageItem();
_local5.url1 = ("http://www.spelletjes.nl/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local5.url2 = "http://www.spelletjes.nl/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local5.language_nr = 3;
_local5.branding_nr = 18;
_languageBox.push(_local5);
_local6 = new languageItem();
_local6.url1 = ("http://www.jeux.fr/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local6.url2 = "http://www.jeux.fr/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local6.language_nr = 4;
_local6.branding_nr = 19;
_languageBox.push(_local6);
_local7 = new languageItem();
_local7.url1 = ("http://www.jetztspielen.de/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local7.url2 = "http://www.jetztspielen.de/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local7.language_nr = 5;
_local7.branding_nr = 20;
_languageBox.push(_local7);
_local8 = new languageItem();
_local8.url1 = ("http://www.gry.pl/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local8.url2 = "http://www.gry.pl/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local8.language_nr = 6;
_local8.branding_nr = 21;
_languageBox.push(_local8);
_local9 = new languageItem();
_local9.url1 = ("http://www.spela.se/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local9.url2 = "http://www.spela.se/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local9.language_nr = 7;
_local9.branding_nr = 22;
_languageBox.push(_local9);
_local10 = new languageItem();
_local10.url1 = ("http://www.gioco.it/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local10.url2 = "http://www.gioco.it/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local10.language_nr = 8;
_local10.branding_nr = 23;
_languageBox.push(_local10);
_local11 = new languageItem();
_local11.url1 = ("http://www.juegos.com/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local11.url2 = "http://www.juegos.com/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local11.language_nr = 9;
_local11.branding_nr = 24;
_languageBox.push(_local11);
_local12 = new languageItem();
_local12.url1 = ("http://www.ojogos.com.br/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local12.url2 = "http://www.ojogos.com.br/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local12.language_nr = 11;
_local12.branding_nr = 25;
_languageBox.push(_local12);
_local13 = new languageItem();
_local13.url1 = ("http://www.games.co.id/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local13.url2 = "http://www.games.co.id/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local13.language_nr = 13;
_local13.branding_nr = 13;
_languageBox.push(_local13);
_local14 = new languageItem();
_local14.url1 = ("http://www.ourgames.ru/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local14.url2 = "http://www.ourgames.ru/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local14.language_nr = 12;
_local14.branding_nr = 26;
_languageBox.push(_local14);
_local15 = new languageItem();
_local15.url1 = ("http://www.games.co.uk/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local15.url2 = "http://www.games.co.uk/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local15.language_nr = 16;
_local15.branding_nr = 27;
_languageBox.push(_local15);
_local16 = new languageItem();
_local16.url1 = ("http://www.game.co.in/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local16.url2 = "http://www.game.co.in/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local16.language_nr = 16;
_local16.branding_nr = 12;
_languageBox.push(_local16);
_local17 = new languageItem();
_local17.url1 = ("http://www.oyunlar123.com/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local17.url2 = "http://www.oyunlar123.com/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local17.language_nr = 14;
_local17.branding_nr = 28;
_languageBox.push(_local17);
_local18 = new languageItem();
_local18.url1 = ("http://www.game.com.my/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local18.url2 = "http://www.game.com.my/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local18.language_nr = 15;
_local18.branding_nr = 16;
_languageBox.push(_local18);
_local19 = new languageItem();
_local19.url1 = ("http://www.ojogos.pt/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local19.url2 = "http://www.ojogos.pt/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local19.language_nr = 10;
_local19.branding_nr = 42;
_languageBox.push(_local19);
_local20 = new languageItem();
_local20.url1 = ("http://www.laro.com.ph/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local20.url2 = "http://www.laro.com.ph/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local20.language_nr = 16;
_local20.branding_nr = 43;
_languageBox.push(_local20);
_local21 = new languageItem();
_local21.url1 = ("http://www.egames.jp/moregames/?utm_source=brandedgames_external&utm_medium=make_happy_umbrella_man&utm_campaign=" + _local2);
_local21.url2 = "http://www.egames.jp/moregames/?utm_source=brandedgames_internal&utm_medium=make_happy_umbrella_man";
_local21.language_nr = 17;
_local21.branding_nr = 44;
_languageBox.push(_local21);
SpillGroupUrl.push("www8.agame.com");
if ((((((_arg1 is Number)) || ((_arg1 is uint)))) || ((_arg1 is int)))){
_languageNum = (Number(_arg1) - 1);
};
}
public static function get url1():String{
var _local1:int;
_local1 = 0;
while (_local1 < SpillGroupUrl.length) {
if (localConnection.domain == SpillGroupUrl[_local1]){
return (_languageBox[_languageNum].url2);
};
_local1++;
};
return (_languageBox[_languageNum].url1);
}
public static function get branding_nr():int{
return (_languageBox[_languageNum].branding_nr);
}
}
}//package data
class languageItem {
public var url1:String;
public var url2:String;
public var branding_nr:int;
public var language_nr:int;
private function languageItem(){
}
}
Section 8
//ToUrl (data.ToUrl)
package data {
import flash.events.*;
import flash.net.*;
import flash.external.*;
public class ToUrl {
private static const spildomain: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", "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"];
private static var loc;
private static var request:URLRequest;
public function ToUrl():void{
super();
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";
};
}
public static function onCLick2(_arg1:Event):void{
var _local2:String;
_local2 = "http://www.gameportal.net";
request = new URLRequest(_local2);
navigateToURL(request, "_blank");
}
public static function onCLick3(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=logo_preloader"));
};
if (((!((searchForSite(returnDomain(loc)) == -1))) && (!((loc == "error"))))){
} else {
navigateToURL(request, "_blank");
};
}
public static function onCLick4(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=button_mainscreen_moregames"));
};
navigateToURL(request, "_blank");
}
public static function onCLick5(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=logo_mainscreen"));
};
navigateToURL(request, "_blank");
}
public static function onCLick6(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=button_gameover_moregames"));
};
navigateToURL(request, "_blank");
}
public static function onCLick7(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=logo_gameover"));
};
navigateToURL(request, "_blank");
}
private static function searchForSite(_arg1:String):Number{
var _local2:uint;
if (((spildomain) && (_arg1))){
_local2 = 0;
while (_local2 < spildomain.length) {
if (_arg1 == spildomain[_local2]){
return (_local2);
};
_local2++;
};
return (-1);
} else {
trace("cannot find site name");
};
return (-1);
}
public static function onCLick9(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=logo_level"));
};
navigateToURL(request, "_blank");
}
public static function onCLick8(_arg1:Event):void{
if (language.language_nr == 2){
request = new URLRequest(language.url1);
} else {
request = new URLRequest((language.url1 + "&utm_term=button_highscore_3000games"));
};
navigateToURL(request, "_blank");
}
private static 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);
}
}
}//package data
Section 9
//Sparkle (gam.eng.effect.Sparkle)
package gam.eng.effect {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tool.*;
public class Sparkle {
private const speed:Number = 1;
private var par:Sprite;
private var start:Point;
private var mc:MovieClip;
private var dynamicSpeed:Point;
private var end:Point;
public function Sparkle(_arg1:Sprite, _arg2:Point, _arg3:Point){
par = _arg1;
start = _arg2.clone();
end = _arg3.clone();
initDis();
initPro();
}
private function delDis():void{
par.removeChild(mc);
}
private function initEvent():void{
mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function delEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
private function frame_endScript():void{
mc.stop();
initEvent();
}
private function initPro():void{
dynamicSpeed = new Point(0, 0);
}
private function enterFrameHandler(_arg1:Event):void{
dynamicSpeed.x = (dynamicSpeed.x + (((end.x - start.x) * speed) / Point.distance(start, end)));
dynamicSpeed.y = (dynamicSpeed.y + (((end.y - start.y) * speed) / Point.distance(start, end)));
mc.x = (mc.x + dynamicSpeed.x);
mc.y = (mc.y + dynamicSpeed.y);
if (((mc.y - end.y) * (start.y - end.y)) <= 0){
delEvent();
delDis();
};
}
private function initDis():void{
mc = Attach.getMovieClip("Sparkle_2Mc");
par.addChild(mc);
mc.addFrameScript((mc.totalFrames - 1), frame_endScript);
mc.x = start.x;
mc.y = start.y;
mc.mouseEnabled = false;
mc.mouseChildren = false;
}
}
}//package gam.eng.effect
Section 10
//TextEffect (gam.eng.effect.TextEffect)
package gam.eng.effect {
import flash.display.*;
import sound.*;
import data.*;
import flash.text.*;
import tool.*;
public class TextEffect {
private var lastFrameDel:Boolean;
private var mc:MovieClip;
public function TextEffect(_arg1:Sprite, _arg2:String, _arg3:Boolean=true){
lastFrameDel = _arg3;
initDis(_arg1, _arg2);
initScript();
initSound();
}
private function frame_20Script():void{
mc.stop();
}
private function delDis():void{
mc.stop();
mc.parent.removeChild(mc);
mc = null;
}
public function del():void{
delDis();
}
private function frame_endScript():void{
mc.stop();
del();
}
public function set X(_arg1:Number):void{
mc.x = _arg1;
}
public function set Y(_arg1:Number):void{
mc.y = _arg1;
}
private function initScript():void{
if (!lastFrameDel){
mc.addFrameScript(19, frame_20Script);
} else {
mc.addFrameScript((mc.totalFrames - 1), frame_endScript);
};
}
private function initDis(_arg1:Sprite, _arg2:String):void{
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:TextField;
var _local6:TextField;
mc = Attach.getMovieClip("TextPointMc");
_arg1.addChild(mc);
mc.x = (Data.stageWidth / 2);
mc.y = (Data.stageHeight / 2);
mc.mouseEnabled = false;
mc.mouseChildren = false;
_local3 = (mc.getChildByName("pos1_mc") as MovieClip);
_local4 = (mc.getChildByName("pos2_mc") as MovieClip);
_local5 = (_local3.getChildByName("pos_txt") as TextField);
_local6 = (_local4.getChildByName("pos_txt") as TextField);
_local5.text = _arg2;
_local6.text = _arg2;
}
private function initSound():void{
SoundsManager.getInstance().playSound("TextEffectSound", Data.value_event);
}
}
}//package gam.eng.effect
Section 11
//AbstractObs (gam.eng.obst.AbstractObs)
package gam.eng.obst {
import flash.display.*;
import sound.*;
import data.*;
public class AbstractObs {
var par:Sprite;
public var lineArr:Array;
public var mc:Sprite;
public function AbstractObs(_arg1:Sprite){
par = _arg1;
initPro();
startSound();
}
public function del():void{
endSound();
mc.parent.removeChild(mc);
}
private function startSound():void{
SoundsManager.getInstance().playSound("startObsSound", Data.value_event);
}
private function endSound():void{
SoundsManager.getInstance().playSound("endObsSound", Data.value_event);
}
private function initPro():void{
lineArr = new Array();
}
}
}//package gam.eng.obst
Section 12
//BellTower (gam.eng.obst.BellTower)
package gam.eng.obst {
import flash.display.*;
import gam.eng.prop.*;
import flash.geom.*;
import data.*;
import tool.*;
public class BellTower extends AbstractObs {
public function BellTower(_arg1:Sprite){
super(_arg1);
initDis();
initPro();
}
private function initPro():void{
var _local1:Sprite;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:Sprite;
var _local8:Sprite;
var _local9:Sprite;
var _local10:Line;
var _local11:Line;
var _local12:Line;
var _local13:Line;
var _local14:Line;
var _local15:Line;
var _local16:Line;
_local1 = (mc.getChildByName("pt_1") as Sprite);
_local2 = (mc.getChildByName("pt_2") as Sprite);
_local3 = (mc.getChildByName("pt_3") as Sprite);
_local4 = (mc.getChildByName("pt_4") as Sprite);
_local5 = (mc.getChildByName("pt_5") as Sprite);
_local6 = (mc.getChildByName("pt_6") as Sprite);
_local7 = (mc.getChildByName("pt_7") as Sprite);
_local8 = (mc.getChildByName("pt_8") as Sprite);
_local9 = (mc.getChildByName("pt_9") as Sprite);
_local10 = new Line(new Point((_local1.x + mc.x), (_local1.y + mc.y)), new Point((_local2.x + mc.x), (_local2.y + mc.y)));
_local11 = new Line(new Point((_local2.x + mc.x), (_local2.y + mc.y)), new Point((_local3.x + mc.x), (_local3.y + mc.y)));
_local12 = new Line(new Point((_local3.x + mc.x), (_local3.y + mc.y)), new Point((_local4.x + mc.x), (_local4.y + mc.y)));
_local13 = new Line(new Point((_local4.x + mc.x), (_local4.y + mc.y)), new Point((_local5.x + mc.x), (_local5.y + mc.y)));
_local14 = new Line(new Point((_local5.x + mc.x), (_local5.y + mc.y)), new Point((_local6.x + mc.x), (_local6.y + mc.y)), null, false);
_local15 = new Line(new Point((_local7.x + mc.x), (_local7.y + mc.y)), new Point((_local8.x + mc.x), (_local8.y + mc.y)));
_local16 = new Line(new Point((_local8.x + mc.x), (_local8.y + mc.y)), new Point((_local9.x + mc.x), (_local9.y + mc.y)));
_local1.visible = false;
_local2.visible = false;
_local3.visible = false;
_local4.visible = false;
_local5.visible = false;
_local6.visible = false;
_local7.visible = false;
_local8.visible = false;
_local9.visible = false;
lineArr.push(_local10, _local11, _local12, _local13, _local14, _local15, _local16);
}
private function initDis():void{
mc = Attach.getSprite("BellTowerMc");
par.addChild(mc);
mc.x = Data.stageWidth;
mc.y = (Data.stageHeight - mc.height);
}
}
}//package gam.eng.obst
Section 13
//IronTower (gam.eng.obst.IronTower)
package gam.eng.obst {
import flash.display.*;
import gam.eng.prop.*;
import flash.geom.*;
import data.*;
import tool.*;
public class IronTower extends AbstractObs {
public function IronTower(_arg1:Sprite){
super(_arg1);
initDis();
initPro();
}
private function initPro():void{
var _local1:Sprite;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Line;
var _local7:Line;
var _local8:Line;
var _local9:Line;
_local1 = (mc.getChildByName("pt_1") as Sprite);
_local2 = (mc.getChildByName("pt_2") as Sprite);
_local3 = (mc.getChildByName("pt_3") as Sprite);
_local4 = (mc.getChildByName("pt_4") as Sprite);
_local5 = (mc.getChildByName("pt_5") as Sprite);
_local6 = new Line(new Point((_local1.x + mc.x), (_local1.y + mc.y)), new Point((_local2.x + mc.x), (_local2.y + mc.y)));
_local7 = new Line(new Point((_local2.x + mc.x), (_local2.y + mc.y)), new Point((_local3.x + mc.x), (_local3.y + mc.y)));
_local8 = new Line(new Point((_local3.x + mc.x), (_local3.y + mc.y)), new Point((_local4.x + mc.x), (_local4.y + mc.y)));
_local9 = new Line(new Point((_local4.x + mc.x), (_local4.y + mc.y)), new Point((_local5.x + mc.x), (_local5.y + mc.y)));
_local1.visible = false;
_local2.visible = false;
_local3.visible = false;
_local4.visible = false;
_local5.visible = false;
lineArr.push(_local6, _local7, _local8, _local9);
}
private function initDis():void{
mc = Attach.getSprite("IronTowerMc");
par.addChild(mc);
mc.x = Data.stageWidth;
mc.y = (Data.stageHeight - mc.height);
}
}
}//package gam.eng.obst
Section 14
//Pyramid (gam.eng.obst.Pyramid)
package gam.eng.obst {
import flash.display.*;
import gam.eng.prop.*;
import flash.geom.*;
import data.*;
import tool.*;
public class Pyramid extends AbstractObs {
private var doorMc:MovieClip;
public var door:Line;
public function Pyramid(_arg1:Sprite){
super(_arg1);
initDis();
initPro();
}
public function contactDoor():void{
door = null;
doorMc.gotoAndPlay(2);
}
private function initPro():void{
var _local1:Sprite;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:Sprite;
var _local8:Sprite;
var _local9:Sprite;
var _local10:Line;
var _local11:Line;
var _local12:Line;
var _local13:Line;
var _local14:Line;
var _local15:Line;
_local1 = (mc.getChildByName("pt_1") as Sprite);
_local2 = (mc.getChildByName("pt_2") as Sprite);
_local3 = (mc.getChildByName("pt_3") as Sprite);
_local4 = (mc.getChildByName("pt_4") as Sprite);
_local5 = (mc.getChildByName("pt_5") as Sprite);
_local6 = (mc.getChildByName("pt_6") as Sprite);
_local7 = (mc.getChildByName("pt_7") as Sprite);
_local8 = (mc.getChildByName("pt_8") as Sprite);
_local9 = (mc.getChildByName("pt_9") as Sprite);
_local10 = new Line(new Point((_local1.x + mc.x), (_local1.y + mc.y)), new Point((_local2.x + mc.x), (_local2.y + mc.y)));
_local11 = new Line(new Point((_local2.x + mc.x), (_local2.y + mc.y)), new Point((_local3.x + mc.x), (_local3.y + mc.y)), null, false);
_local12 = new Line(new Point((_local3.x + mc.x), (_local3.y + mc.y)), new Point((_local1.x + mc.x), (_local1.y + mc.y)));
_local13 = new Line(new Point((_local4.x + mc.x), (_local4.y + mc.y)), new Point((_local5.x + mc.x), (_local5.y + mc.y)));
_local14 = new Line(new Point((_local5.x + mc.x), (_local5.y + mc.y)), new Point((_local6.x + mc.x), (_local6.y + mc.y)));
_local15 = new Line(new Point((_local7.x + mc.x), (_local7.y + mc.y)), new Point((_local4.x + mc.x), (_local4.y + mc.y)));
_local1.visible = false;
_local2.visible = false;
_local3.visible = false;
_local4.visible = false;
_local5.visible = false;
_local6.visible = false;
_local7.visible = false;
_local8.visible = false;
_local9.visible = false;
lineArr.push(_local10, _local11, _local12, _local13, _local14, _local15);
door = new Line(new Point((_local9.x + mc.x), (_local9.y + mc.y)), new Point((_local8.x + mc.x), (_local8.y + mc.y)));
}
private function initDis():void{
mc = Attach.getSprite("PyramidMc");
par.addChild(mc);
mc.x = Data.stageWidth;
mc.y = (Data.stageHeight - mc.height);
doorMc = (mc.getChildByName("doorMc") as MovieClip);
}
}
}//package gam.eng.obst
Section 15
//Sailboat (gam.eng.obst.Sailboat)
package gam.eng.obst {
import flash.display.*;
import gam.eng.prop.*;
import flash.geom.*;
import data.*;
import tool.*;
public class Sailboat extends AbstractObs {
public var mastArr:Array;
public function Sailboat(_arg1:Sprite){
super(_arg1);
initDis();
initPro();
}
private function initPro():void{
var _local1:Sprite;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:Sprite;
var _local8:Line;
var _local9:Line;
var _local10:Line;
var _local11:Line;
var _local12:Line;
var _local13:Line;
var _local14:Sprite;
var _local15:Sprite;
var _local16:Sprite;
var _local17:Sprite;
var _local18:Sprite;
var _local19:Sprite;
var _local20:Line;
var _local21:Line;
var _local22:Line;
_local1 = (mc.getChildByName("pt_1") as Sprite);
_local2 = (mc.getChildByName("pt_2") as Sprite);
_local3 = (mc.getChildByName("pt_3") as Sprite);
_local4 = (mc.getChildByName("pt_4") as Sprite);
_local5 = (mc.getChildByName("pt_5") as Sprite);
_local6 = (mc.getChildByName("pt_6") as Sprite);
_local7 = (mc.getChildByName("pt_7") as Sprite);
_local8 = new Line(new Point((_local1.x + mc.x), (_local1.y + mc.y)), new Point((_local2.x + mc.x), (_local2.y + mc.y)));
_local9 = new Line(new Point((_local2.x + mc.x), (_local2.y + mc.y)), new Point((_local3.x + mc.x), (_local3.y + mc.y)));
_local10 = new Line(new Point((_local3.x + mc.x), (_local3.y + mc.y)), new Point((_local4.x + mc.x), (_local4.y + mc.y)));
_local11 = new Line(new Point((_local4.x + mc.x), (_local4.y + mc.y)), new Point((_local5.x + mc.x), (_local5.y + mc.y)));
_local12 = new Line(new Point((_local5.x + mc.x), (_local5.y + mc.y)), new Point((_local6.x + mc.x), (_local6.y + mc.y)));
_local13 = new Line(new Point((_local6.x + mc.x), (_local6.y + mc.y)), new Point((_local7.x + mc.x), (_local7.y + mc.y)), null, false);
_local1.visible = false;
_local2.visible = false;
_local3.visible = false;
_local4.visible = false;
_local5.visible = false;
_local6.visible = false;
_local7.visible = false;
lineArr.push(_local8, _local9, _local10, _local11, _local12, _local13);
_local14 = (mc.getChildByName("pt_21") as Sprite);
_local15 = (mc.getChildByName("pt_22") as Sprite);
_local16 = (mc.getChildByName("pt_23") as Sprite);
_local17 = (mc.getChildByName("pt_24") as Sprite);
_local18 = (mc.getChildByName("pt_25") as Sprite);
_local19 = (mc.getChildByName("pt_26") as Sprite);
_local14.visible = false;
_local15.visible = false;
_local16.visible = false;
_local17.visible = false;
_local18.visible = false;
_local19.visible = false;
_local20 = new Line(new Point((_local14.x + mc.x), (_local14.y + mc.y)), new Point((_local15.x + mc.x), (_local15.y + mc.y)));
_local21 = new Line(new Point((_local16.x + mc.x), (_local16.y + mc.y)), new Point((_local17.x + mc.x), (_local17.y + mc.y)));
_local22 = new Line(new Point((_local18.x + mc.x), (_local18.y + mc.y)), new Point((_local19.x + mc.x), (_local19.y + mc.y)));
mastArr = [_local20, _local21, _local22];
}
private function initDis():void{
mc = Attach.getSprite("SailboatMc");
par.addChild(mc);
mc.x = Data.stageWidth;
mc.y = (Data.stageHeight - mc.height);
}
}
}//package gam.eng.obst
Section 16
//Statue (gam.eng.obst.Statue)
package gam.eng.obst {
import flash.display.*;
import gam.eng.prop.*;
import flash.geom.*;
import data.*;
import tool.*;
public class Statue extends AbstractObs {
public function Statue(_arg1:Sprite){
super(_arg1);
initDis();
initPro();
}
private function initPro():void{
var _local1:Sprite;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:Line;
var _local8:Line;
var _local9:Line;
var _local10:Line;
var _local11:Line;
_local1 = (mc.getChildByName("pt_1") as Sprite);
_local2 = (mc.getChildByName("pt_2") as Sprite);
_local3 = (mc.getChildByName("pt_3") as Sprite);
_local4 = (mc.getChildByName("pt_4") as Sprite);
_local5 = (mc.getChildByName("pt_5") as Sprite);
_local6 = (mc.getChildByName("pt_6") as Sprite);
_local7 = new Line(new Point((_local1.x + mc.x), (_local1.y + mc.y)), new Point((_local2.x + mc.x), (_local2.y + mc.y)));
_local8 = new Line(new Point((_local2.x + mc.x), (_local2.y + mc.y)), new Point((_local3.x + mc.x), (_local3.y + mc.y)));
_local9 = new Line(new Point((_local3.x + mc.x), (_local3.y + mc.y)), new Point((_local4.x + mc.x), (_local4.y + mc.y)), null, false);
_local10 = new Line(new Point((_local4.x + mc.x), (_local4.y + mc.y)), new Point((_local5.x + mc.x), (_local5.y + mc.y)));
_local11 = new Line(new Point((_local5.x + mc.x), (_local5.y + mc.y)), new Point((_local6.x + mc.x), (_local6.y + mc.y)), null, false);
_local1.visible = false;
_local2.visible = false;
_local3.visible = false;
_local4.visible = false;
_local5.visible = false;
_local6.visible = false;
lineArr.push(_local7, _local8, _local9, _local10, _local11);
}
private function initDis():void{
mc = Attach.getSprite("StatueMc");
par.addChild(mc);
mc.x = Data.stageWidth;
mc.y = (Data.stageHeight - mc.height);
}
}
}//package gam.eng.obst
Section 17
//Windmill (gam.eng.obst.Windmill)
package gam.eng.obst {
import flash.display.*;
import flash.events.*;
import gam.eng.prop.*;
import flash.geom.*;
import data.*;
import tool.*;
public class Windmill extends AbstractObs {
private var wheel:Sprite;
private var pt_2:Sprite;
private var pt_3:Sprite;
private var pt_4:Sprite;
private var pt_1:Sprite;
public function Windmill(_arg1:Sprite){
super(_arg1);
initDis();
initEvent();
initPro();
}
private function delDis():void{
mc.parent.removeChild(mc);
}
private function initPro():void{
pt_1 = (wheel.getChildByName("pt_1") as Sprite);
pt_2 = (wheel.getChildByName("pt_2") as Sprite);
pt_3 = (wheel.getChildByName("pt_3") as Sprite);
pt_4 = (wheel.getChildByName("pt_4") as Sprite);
pt_1.visible = false;
pt_2.visible = false;
pt_3.visible = false;
pt_4.visible = false;
}
public function setLineArr():void{
var _local1:Line;
var _local2:Line;
_local1 = new Line(pt_1.localToGlobal(new Point(0, 0)), pt_3.localToGlobal(new Point(0, 0)));
_local2 = new Line(pt_4.localToGlobal(new Point(0, 0)), pt_2.localToGlobal(new Point(0, 0)));
lineArr.push(_local1, _local2);
}
override public function del():void{
delEvent();
delDis();
}
private function initDis():void{
mc = Attach.getSprite("WindmillMc");
par.addChild(mc);
mc.x = Data.stageWidth;
mc.y = (Data.stageHeight - mc.height);
wheel = (mc.getChildByName("wheel_mc") as Sprite);
}
private function enterFrameWheel(_arg1:Event):void{
wheel.rotation = (wheel.rotation - 1);
}
private function delEvent():void{
wheel.removeEventListener(Event.ENTER_FRAME, enterFrameWheel);
}
private function initEvent():void{
wheel.addEventListener(Event.ENTER_FRAME, enterFrameWheel);
}
}
}//package gam.eng.obst
Section 18
//Bird (gam.eng.prop.Bird)
package gam.eng.prop {
import flash.display.*;
import sound.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
import data.*;
import tool.*;
public class Bird {
public var hitArea:Sprite;
private var timer:Timer;
private var wave:Boolean;
public var mc:MovieClip;
private var radian:Number;
private var initPos:Point;
private var par:Sprite;
public function Bird(_arg1:Sprite, _arg2:Point, _arg3:Boolean){
par = _arg1;
initPos = _arg2.clone();
wave = _arg3;
initPro();
initDis();
}
private function delDis():void{
mc.stop();
par.removeChild(mc);
}
public function del():void{
if (timer != null){
delTimer();
};
delDis();
}
private function timerHandler(_arg1:TimerEvent):void{
mc.y = (mc.y + Data.bird_speed_down);
}
public function run(_arg1:Number):void{
if (wave){
radian = (radian + Data.bird_frameRadian);
mc.x = (mc.x + (Data.birdSpeed_x - _arg1));
mc.y = (initPos.y + (Math.sin(radian) * Data.bird_speed_y));
} else {
mc.x = (mc.x + (Data.birdSpeed_x - _arg1));
};
}
private function initTimer():void{
timer = new Timer((1000 / mc.stage.frameRate), 0);
timer.addEventListener(TimerEvent.TIMER, timerHandler);
timer.start();
}
private function initDis():void{
mc = Attach.getMovieClip("BirdMc");
par.addChild(mc);
mc.x = initPos.x;
mc.y = initPos.y;
hitArea = (mc.getChildByName("hitArea_mc") as Sprite);
}
public function contactBird():void{
SoundsManager.getInstance().playSound("birdSound", Data.value_event);
mc.gotoAndPlay(8);
initTimer();
}
private function delTimer():void{
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, timerHandler);
timer = null;
}
private function initPro():void{
radian = 0;
}
}
}//package gam.eng.prop
Section 19
//Ink (gam.eng.prop.Ink)
package gam.eng.prop {
import flash.display.*;
import tool.*;
public class Ink {
private var par:Sprite;
public var mc:Sprite;
public function Ink(_arg1:Sprite){
par = _arg1;
initPro();
initDis();
}
private function delDis():void{
par.removeChild(mc);
}
public function del():void{
delDis();
}
public function moveX(_arg1:Number):void{
mc.x = (mc.x + _arg1);
}
private function initPro():void{
}
private function initDis():void{
mc = Attach.getSprite("InkMc");
par.addChild(mc);
}
}
}//package gam.eng.prop
Section 20
//InkFull (gam.eng.prop.InkFull)
package gam.eng.prop {
import flash.display.*;
import tool.*;
public class InkFull {
private var par:Sprite;
public var mc:Sprite;
public function InkFull(_arg1:Sprite){
par = _arg1;
initPro();
initDis();
}
private function delDis():void{
par.removeChild(mc);
}
public function del():void{
delDis();
}
public function moveX(_arg1:Number):void{
mc.x = (mc.x + _arg1);
}
private function initPro():void{
}
private function initDis():void{
mc = Attach.getSprite("InkFullMc");
par.addChild(mc);
}
}
}//package gam.eng.prop
Section 21
//InkUnlimited (gam.eng.prop.InkUnlimited)
package gam.eng.prop {
import flash.display.*;
import tool.*;
public class InkUnlimited {
private var par:Sprite;
public var mc:Sprite;
public function InkUnlimited(_arg1:Sprite){
par = _arg1;
initPro();
initDis();
}
private function delDis():void{
par.removeChild(mc);
}
public function del():void{
delDis();
}
public function moveX(_arg1:Number):void{
mc.x = (mc.x + _arg1);
}
private function initPro():void{
}
private function initDis():void{
mc = Attach.getSprite("InkUnlimitedMc");
par.addChild(mc);
}
}
}//package gam.eng.prop
Section 22
//Line (gam.eng.prop.Line)
package gam.eng.prop {
import flash.display.*;
import flash.geom.*;
import data.*;
public class Line {
public var hitArea:Boolean;
public var min:Point;
private var mc:Sprite;
public var end:Point;
private var par:Sprite;
public var start:Point;
public var length:Number;
public var k:Number;
public var max:Point;
public function Line(_arg1:Point, _arg2:Point, _arg3:Sprite=null, _arg4:Boolean=true){
start = _arg1.clone();
end = _arg2.clone();
par = _arg3;
hitArea = _arg4;
initDis();
initPro();
}
public function getY(_arg1:Number):Number{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = (start.y - (k * start.x));
_local3 = _arg1;
_local4 = ((k * _local3) + _local2);
return (_local4);
}
private function display():void{
mc.graphics.clear();
mc.graphics.lineStyle(Data.lineWidth, Data.lineColor);
mc.graphics.moveTo(start.x, start.y);
mc.graphics.lineTo(end.x, end.y);
}
private function delDis():void{
if (par != null){
par.removeChild(mc);
};
}
public function del():void{
delDis();
}
public function clone(_arg1:Number=0, _arg2:Number=0):Line{
var _local3:Line;
_local3 = new Line(new Point((start.x + _arg1), (start.y + _arg2)), new Point((end.x + _arg1), (end.y + _arg2)));
return (_local3);
}
private function initDis():void{
if (par != null){
mc = new Sprite();
par.addChild(mc);
};
}
public function moveX(_arg1:Number):void{
start.x = (start.x + _arg1);
end.x = (end.x + _arg1);
if (par != null){
display();
};
}
private function initPro():void{
k = ((start.y - end.y) / (start.x - end.x));
length = Point.distance(start, end);
min = ((start.x < end.x)) ? start : end;
max = ((start.x > end.x)) ? start : end;
}
}
}//package gam.eng.prop
Section 23
//SpeedUp (gam.eng.prop.SpeedUp)
package gam.eng.prop {
import flash.display.*;
import tool.*;
public class SpeedUp {
private var par:Sprite;
public var mc:Sprite;
public function SpeedUp(_arg1:Sprite){
par = _arg1;
initPro();
initDis();
}
private function delDis():void{
par.removeChild(mc);
}
public function del():void{
delDis();
}
public function moveX(_arg1:Number):void{
mc.x = (mc.x + _arg1);
}
private function initPro():void{
}
private function initDis():void{
mc = Attach.getSprite("SpeedUpMc");
par.addChild(mc);
}
}
}//package gam.eng.prop
Section 24
//Engine (gam.eng.Engine)
package gam.eng {
import flash.display.*;
import sound.*;
import flash.events.*;
import gam.*;
import gam.eng.prop.*;
import flash.utils.*;
import data.*;
public class Engine {
var mc:Sprite;
private var subSpeedTimer:Timer;
private var obstacleContainer:ObstacleContainer;
public var inkNum:Number;
public var dynamicSpeed_x:Number;
var manContainer:ManContainer;
private var propContainer:PropContainer;
public var man:Man;
private var unlimitedTimer:Timer;
var unlimited:Boolean;
public var falled:Boolean;
private var lineContainer:LineContainer;
public var contact_curr:Boolean;
private var contact_prev:Boolean;
var game:Game;
public function Engine(_arg1:Game):void{
game = _arg1;
initDis();
initPro();
}
private function delDis():void{
game.mc.removeChild(mc);
}
private function contactDoor():void{
obstacleContainer.contactDoor();
}
public function setDepth(_arg1:int):void{
mc.parent.setChildIndex(mc, _arg1);
}
private function contactSpeedUp(_arg1:SpeedUp, _arg2:int):void{
_arg1.del();
propContainer.speedUpArr.splice(_arg2, 1);
setWindmillCookie();
windmillSound();
if (subSpeedTimer != null){
subSpeedTimer.delay = (subSpeedTimer.delay + (Data.speedX_addTime * 1000));
} else {
addSpeed();
initSubSpeedTimer();
};
}
private function startContactLine():void{
man.startContactLine();
lineContainer.startContactLine();
}
public function del():void{
delPro();
delDis();
}
private function hitTestInkFull():void{
var _local1:int;
var _local2:InkFull;
_local1 = 0;
while (_local1 < propContainer.inkFullArr.length) {
_local2 = propContainer.inkFullArr[_local1];
if (man.mc.hitTestObject(_local2.mc)){
contactInkFull(_local2, _local1);
_local1--;
};
_local1++;
};
}
public function setObstacle():void{
obstacleContainer.setObstacle();
}
private function setItemCookie():void{
var _local1 = Cookie.da;
var _local2 = "pickUpItemsTotal";
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
if (Cookie.da["pickUpItemsTotal"] == Data.pickUpItemsTotal){
achievementComplete();
};
}
private function hitTestDoor():void{
var _local1:Number;
var _local2:Number;
if (((!((obstacleContainer.pyramid == null))) && (!((obstacleContainer.pyramid.door == null))))){
if ((((obstacleContainer.pyramid.door.min.x <= Data.manPos_x)) && ((obstacleContainer.pyramid.door.max.x >= Data.manPos_x)))){
_local1 = obstacleContainer.pyramid.door.getY(Data.manPos_x);
_local2 = Math.abs((man.curr_y - _local1));
if ((((man.curr_y > _local1)) && ((_local2 <= Data.lineThickness)))){
contactDoor();
};
};
};
}
private function initUnlimitedTimer():void{
unlimitedTimer = new Timer((Data.unlimitedTime * 1000), 1);
unlimitedTimer.addEventListener(TimerEvent.TIMER, unlimitedTimerFun);
unlimitedTimer.start();
}
private function eatSound():void{
if (inkNum > Data.inkTotalNum){
SoundsManager.getInstance().playSound("inkFullSound", Data.value_event);
};
SoundsManager.getInstance().playSound("eatSound", Data.value_event);
}
private function subSpeedTimerFun(_arg1:TimerEvent):void{
delSubSpeedTimer();
subSpeed();
}
private function contactBird(_arg1:Bird):void{
falled = true;
_arg1.contactBird();
man.contactObs();
}
private function contactInkUnli(_arg1:InkUnlimited, _arg2:int):void{
game.addEnergy((_arg1.mc.x + (_arg1.mc.width / 2)), (_arg1.mc.y + (_arg1.mc.height / 2)));
_arg1.del();
propContainer.inkUnliArr.splice(_arg2, 1);
setItemCookie();
inkNum = Data.inkTotalNum;
eatSound();
if (unlimitedTimer != null){
unlimitedTimer.delay = (unlimitedTimer.delay + (Data.unlimitedTime * 1000));
} else {
unlimited = true;
initUnlimitedTimer();
};
}
private function unlimitedTimerFun(_arg1:TimerEvent):void{
unlimited = false;
delUnlimitedTimer();
}
private function achievementComplete():void{
game.disTextPoint(DynamicText.achievementCompleted[(language.language_nr - 1)]);
game.achievementComleted = true;
}
private function delPro():void{
manContainer.del();
manContainer = null;
lineContainer.del();
lineContainer = null;
propContainer.del();
propContainer = null;
obstacleContainer.del();
obstacleContainer = null;
}
private function checkFall():void{
if ((((man.prev_y < (Data.stageHeight + 5))) && ((man.curr_y > (Data.stageHeight + 5))))){
SoundsManager.getInstance().playSound("fallDownSound", Data.value_event);
};
if (man.curr_y > Data.gameOverHeight){
gameOver();
};
}
private function hitTestBird():void{
var _local1:int;
var _local2:Bird;
if (((!(falled)) && (!(man.protect)))){
_local1 = 0;
while (_local1 < propContainer.birdArr.length) {
_local2 = propContainer.birdArr[_local1];
if (man.mc.hitTestObject(_local2.hitArea)){
contactBird(_local2);
};
_local1++;
};
};
}
private function contactInk(_arg1:Ink, _arg2:int):void{
game.addEnergy((_arg1.mc.x + (_arg1.mc.width / 2)), (_arg1.mc.y + (_arg1.mc.height / 2)));
_arg1.del();
propContainer.inkArr.splice(_arg2, 1);
setItemCookie();
inkNum = (inkNum + (Data.inkTotalNum * Data.inkPercent));
if (inkNum > Data.inkTotalNum){
inkNum = Data.inkTotalNum;
};
eatSound();
}
private function setWindmillCookie():void{
var _local1 = Cookie.da;
var _local2 = "pickUpWindmillOneRound";
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
if (Cookie.da["pickUpWindmillOneRound"] == Data.pickUpWindmillOneRound){
achievementComplete();
};
}
function newPyramidInkUnli(_arg1:Number, _arg2:Number):void{
propContainer.newPyramidInkUnli(_arg1, _arg2);
}
private function addSpeed():void{
dynamicSpeed_x = (dynamicSpeed_x + Data.speedX_add_winkmill);
}
private function hitTestSpeedUp():void{
var _local1:int;
var _local2:SpeedUp;
_local1 = 0;
while (_local1 < propContainer.speedUpArr.length) {
_local2 = propContainer.speedUpArr[_local1];
if (man.mc.hitTestObject(_local2.mc)){
contactSpeedUp(_local2, _local1);
_local1--;
};
_local1++;
};
}
private function windmillSound():void{
SoundsManager.getInstance().playSound("getObjectSound", Data.value_event);
}
private function contactLine(_arg1:Number, _arg2:Number):void{
man.contactLine(_arg1, _arg2);
lineContainer.contactLine();
}
private function delUnlimitedTimer():void{
unlimitedTimer.stop();
unlimitedTimer.removeEventListener(TimerEvent.TIMER, unlimitedTimerFun);
unlimitedTimer = null;
}
private function delSubSpeedTimer():void{
subSpeedTimer.stop();
subSpeedTimer.removeEventListener(TimerEvent.TIMER, subSpeedTimerFun);
subSpeedTimer = null;
}
private function contactInkFull(_arg1:InkFull, _arg2:int):void{
game.addEnergy((_arg1.mc.x + (_arg1.mc.width / 2)), (_arg1.mc.y + (_arg1.mc.height / 2)));
_arg1.del();
propContainer.inkFullArr.splice(_arg2, 1);
setItemCookie();
inkNum = Data.inkTotalNum;
eatSound();
}
private function hitTestInkUnli():void{
var _local1:int;
var _local2:InkUnlimited;
_local1 = 0;
while (_local1 < propContainer.inkUnliArr.length) {
_local2 = propContainer.inkUnliArr[_local1];
if (man.mc.hitTestObject(_local2.mc)){
contactInkUnli(_local2, _local1);
_local1--;
};
_local1++;
};
}
private function contactObs():void{
falled = true;
man.contactObs();
}
private function hitTestLine():void{
var _local1:Array;
var _local2:Line;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Line;
var _local7:Number;
var _local8:int;
_local1 = new Array();
_local3 = 0;
while (_local3 < lineContainer.lineArr.length) {
_local2 = lineContainer.lineArr[_local3];
if ((((_local2.min.x <= Data.manPos_x)) && ((_local2.max.x >= Data.manPos_x)))){
_local1.push(_local2);
};
_local3++;
};
if (obstacleContainer.sailboat != null){
_local4 = 0;
while (_local4 < obstacleContainer.sailboat.mastArr.length) {
_local2 = obstacleContainer.sailboat.mastArr[_local4];
if ((((_local2.min.x <= Data.manPos_x)) && ((_local2.max.x >= Data.manPos_x)))){
_local1.push(_local2);
};
_local4++;
};
};
contact_prev = contact_curr;
contact_curr = false;
if (((!((_local1.length == 0))) && (!(falled)))){
_local8 = 0;
while (_local8 < _local1.length) {
_local6 = _local1[_local8];
_local5 = _local6.getY(Data.manPos_x);
_local7 = Math.abs((man.curr_y - _local5));
if ((((man.curr_y > _local5)) && ((_local7 <= Data.lineThickness)))){
contact_curr = true;
break;
};
_local8++;
};
};
if (((!(contact_prev)) && (contact_curr))){
startContactLine();
};
if (((contact_prev) && (!(contact_curr)))){
endContactLine();
};
if (contact_curr){
contactLine(_local5, _local6.k);
};
}
private function endContactLine():void{
if (!falled){
man.endContactLine();
};
lineContainer.endContactLine();
}
private function initDis():void{
mc = new Sprite();
game.mc.addChild(mc);
}
private function gameOver():void{
game.gameOver();
}
private function subSpeed():void{
dynamicSpeed_x = (dynamicSpeed_x - Data.speedX_add_winkmill);
}
private function initSubSpeedTimer():void{
subSpeedTimer = new Timer((Data.speedX_addTime * 1000), 1);
subSpeedTimer.addEventListener(TimerEvent.TIMER, subSpeedTimerFun);
subSpeedTimer.start();
}
private function hitTestInk():void{
var _local1:int;
var _local2:Ink;
_local1 = 0;
while (_local1 < propContainer.inkArr.length) {
_local2 = propContainer.inkArr[_local1];
if (man.mc.hitTestObject(_local2.mc)){
contactInk(_local2, _local1);
_local1--;
};
_local1++;
};
}
public function enterFrame():void{
man.enterFrame();
manContainer.enterFrame();
lineContainer.enterFrame();
propContainer.enterFrame();
obstacleContainer.enterFrame();
hitTestInk();
hitTestInkFull();
hitTestInkUnli();
hitTestSpeedUp();
hitTestLine();
hitTestDoor();
hitTestBird();
hitTestObs();
checkFall();
}
private function hitTestObs():void{
var _local1:Boolean;
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:Array;
var _local6:int;
var _local7:Line;
var _local8:Line;
var _local9:Number;
var _local10:Number;
var _local11:int;
if (((((!((obstacleContainer.currentObs == null))) && (!(falled)))) && (!(man.protect)))){
_local1 = false;
_local2 = 0;
while (_local2 < man.hitPointArr.length) {
_local3 = (man.hitPointArr[_local2].x + man.mc.x);
_local4 = (man.hitPointArr[_local2].y + man.mc.y);
if (((!((obstacleContainer.windmill == null))) && ((obstacleContainer.windmill.mc.x <= _local3)))){
obstacleContainer.windmill.setLineArr();
};
_local5 = new Array();
_local6 = 0;
while (_local6 < obstacleContainer.currentObs.lineArr.length) {
_local7 = obstacleContainer.currentObs.lineArr[_local6];
if ((((_local7.min.x <= _local3)) && ((_local7.max.x >= _local3)))){
_local5.push(_local7);
};
_local6++;
};
if (_local5.length > 0){
_local11 = 0;
while (_local11 < _local5.length) {
_local8 = _local5[_local11];
_local9 = _local8.getY(_local3);
_local10 = Math.abs((_local4 - _local9));
if (_local10 <= Data.lineThickness){
if ((((((_local4 > _local9)) && (_local8.hitArea))) || ((((_local4 < _local9)) && (!(_local8.hitArea)))))){
_local1 = true;
break;
};
};
_local11++;
};
};
_local2++;
};
if (_local1){
contactObs();
};
};
}
private function initPro():void{
inkNum = Data.inkTotalNum;
dynamicSpeed_x = Data.speedX;
obstacleContainer = new ObstacleContainer(this);
lineContainer = new LineContainer(this);
manContainer = new ManContainer(this);
propContainer = new PropContainer(this);
man = manContainer.man;
contact_prev = false;
contact_curr = false;
unlimited = false;
falled = false;
}
}
}//package gam.eng
Section 25
//LineContainer (gam.eng.LineContainer)
package gam.eng {
import flash.display.*;
import sound.*;
import flash.events.*;
import gam.eng.prop.*;
import flash.geom.*;
import flash.utils.*;
import data.*;
import tool.*;
public class LineContainer {
private var engine:Engine;
private var startPt:Point;
var lineArr:Array;
private var evtLabel:Boolean;
private var mc:Sprite;
private var sparkle:MovieClip;
private var sparkleTimer:Timer;
private var frame:int;
public function LineContainer(_arg1:Engine):void{
engine = _arg1;
initPro();
initDis();
initEvent();
}
private function delDis():void{
sparkle.stop();
engine.mc.removeChild(mc);
}
function del():void{
delEvent();
delDis();
}
private function initTimer():void{
sparkleTimer = new Timer(300, 1);
sparkleTimer.addEventListener(TimerEvent.TIMER, TimerHandler);
sparkleTimer.start();
}
private function mouseDownStage(_arg1:MouseEvent):void{
evtLabel = true;
SoundsManager.getInstance().playSound("DrawLineSound", Data.value_event, 100);
frame = 1;
startPt = new Point(mc.mouseX, mc.mouseY);
checkPoint(startPt);
mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
mc.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpStage);
}
function endContactLine():void{
initTimer();
}
private function TimerHandler(_arg1:TimerEvent):void{
sparkle.stop();
sparkle.visible = false;
delTimer();
}
private function checkPoint(_arg1:Point):void{
if (_arg1.x < 0){
_arg1.x = 0;
};
if (_arg1.x > Data.stageWidth){
_arg1.x = Data.stageWidth;
};
if (_arg1.y < 0){
_arg1.y = 0;
};
if (_arg1.y > Data.stageHeight){
_arg1.y = Data.stageHeight;
};
}
private function initEvent():void{
mc.stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownStage);
}
private function enterFrameMc(_arg1:Event):void{
var _local2:Point;
var _local3:Line;
if ((frame % 2) == 0){
_local2 = new Point(mc.mouseX, mc.mouseY);
checkPoint(_local2);
if (startPt != null){
_local3 = new Line(startPt, _local2, mc);
startPt = null;
} else {
_local3 = new Line(lineArr[(lineArr.length - 1)].end, _local2, mc);
};
if ((((Math.abs(_local3.k) < Data.lineMaxK)) && ((engine.inkNum > 0)))){
if (engine.inkNum < _local3.length){
_local3.end.x = (_local3.start.x + (Math.cos(Math.atan(_local3.k)) * engine.inkNum));
_local3.end.y = (_local3.start.y + (Math.sin(Math.atan(_local3.k)) * engine.inkNum));
};
addLine(_local3);
} else {
_local3.del();
startPt = new Point(mc.mouseX, mc.mouseY);
checkPoint(startPt);
};
};
frame++;
}
private function delEvent():void{
mc.stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownStage);
if (evtLabel){
mouseUpStage();
};
}
function startContactLine():void{
sparkle.visible = true;
sparkle.play();
if (sparkleTimer != null){
delTimer();
};
}
function contactLine():void{
sparkle.x = engine.man.curr_x;
sparkle.y = engine.man.curr_y;
}
function enterFrame():void{
var _local1:int;
var _local2:Line;
if (!engine.falled){
_local1 = 0;
while (_local1 < lineArr.length) {
_local2 = lineArr[_local1];
_local2.moveX(-(engine.dynamicSpeed_x));
if (_local2.max.x < 0){
_local2.del();
lineArr.splice(_local1, 1);
_local1--;
};
_local1++;
};
};
}
private function initDis():void{
mc = new Sprite();
engine.mc.addChild(mc);
sparkle = Attach.getMovieClip("Sparkle_1Mc");
mc.addChild(sparkle);
sparkle.visible = false;
sparkle.stop();
}
private function delTimer():void{
sparkleTimer.removeEventListener(TimerEvent.TIMER, TimerHandler);
sparkleTimer = null;
}
private function addLine(_arg1:Line):void{
if (!engine.unlimited){
engine.inkNum = (engine.inkNum - _arg1.length);
};
if (engine.inkNum < 0){
engine.inkNum = 0;
};
lineArr.push(_arg1);
}
private function initPro():void{
lineArr = new Array();
}
private function mouseUpStage(_arg1:MouseEvent=null):void{
evtLabel = false;
SoundsManager.getInstance().stopSound("DrawLineSound");
startPt = null;
mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
mc.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpStage);
}
}
}//package gam.eng
Section 26
//Man (gam.eng.Man)
package gam.eng {
import flash.display.*;
import sound.*;
import flash.events.*;
import flash.geom.*;
import flash.utils.*;
import data.*;
import tool.*;
public class Man {
private var openUm:Boolean;
var mc:MovieClip;
public var curr_y:Number;
var curr_x:Number;
private var protectTimer:Timer;
private var timer:Timer;
private var manContainer:ManContainer;
public var total_x:Number;
var protect:Boolean;
var hitPointArr:Array;
var prev_y:Number;
private var winkTimer:Timer;
public function Man(_arg1:ManContainer):void{
manContainer = _arg1;
initPro();
initDis();
reStart();
}
private function enterFrameMc(_arg1:TimerEvent):void{
if ((curr_y - prev_y) > Data.openUmbSpeedY){
delTimerOpenUmb();
openUmbrella();
};
}
function del():void{
delDis();
}
private function delDis():void{
manContainer.mc.removeChild(mc);
}
private function winkHandle(_arg1:TimerEvent):void{
if (mc.alpha == 1){
mc.alpha = 0.3;
} else {
mc.alpha = 1;
};
}
private function initProtect():void{
protect = true;
initWinkTimer();
initProtectTimer();
}
private function initSpeed():void{
prev_y = (Data.stageHeight - Data.manInitSpeed_y);
curr_y = Data.stageHeight;
}
private function delWinkTimer():void{
winkTimer.removeEventListener(TimerEvent.TIMER, winkHandle);
winkTimer = null;
mc.alpha = 1;
}
private function umbrellaState():void{
mc.gotoAndStop(2);
hitPointArr.length = 0;
hitPointArr = [new Point(-30, 17), new Point(-12, 33), new Point(-17, 52)];
}
private function openUmbrella():void{
openUm = true;
SoundsManager.getInstance().playSound("OpenUmbrellaSound", Data.value_event);
umbrellaState();
initTimerCloseUmb();
}
private function contactObsState():void{
SoundsManager.getInstance().playSound("hitObsSound", Data.value_event);
mc.gotoAndStop(4);
}
function contactLine(_arg1:Number, _arg2:Number):void{
if (_arg2 > 0){
prev_y = curr_y;
curr_y = _arg1;
} else {
curr_y = _arg1;
};
if ((prev_y - curr_y) > 8){
prev_y = curr_y;
} else {
if ((prev_y - curr_y) > Data.manMaxSpeedUp_y){
prev_y = (curr_y + Data.manMaxSpeedUp_y);
};
};
}
private function contactLineState():void{
mc.gotoAndStop(3);
hitPointArr.length = 0;
hitPointArr = [new Point(-20, 6), new Point(-3, 32), new Point(-11, 55)];
}
function contactObs():void{
if (timer != null){
timer.stop();
timer = null;
};
if (openUm){
openUm = false;
};
contactObsState();
prev_y = (curr_y - 8);
}
private function delProtect(_arg1:TimerEvent):void{
protect = false;
delWinkTimer();
delProtectTimer();
}
private function initWinkTimer():void{
winkTimer = new Timer(Data.manWinkSpeed, 0);
winkTimer.addEventListener(TimerEvent.TIMER, winkHandle);
winkTimer.start();
}
private function delTimerOpenUmb():void{
timer.removeEventListener(TimerEvent.TIMER, enterFrameMc);
timer = null;
}
private function delTimerCloseUmb():void{
timer.removeEventListener(TimerEvent.TIMER, closeUmbrella);
timer = null;
}
function endContactLine():void{
initTimerOpenumb();
}
private function closeUmbrella(_arg1:TimerEvent):void{
openUm = false;
normalState();
delTimerCloseUmb();
}
private function initDis():void{
mc = Attach.getMovieClip("ManMc");
manContainer.mc.addChild(mc);
mc.x = Data.manPos_x;
mc.y = Data.manPos_y;
}
private function delProtectTimer():void{
protectTimer.removeEventListener(TimerEvent.TIMER, delProtect);
protectTimer = null;
}
private function initProtectTimer():void{
protectTimer = new Timer(Data.manWinkTimes, 1);
protectTimer.addEventListener(TimerEvent.TIMER, delProtect);
protectTimer.start();
}
private function initTimerCloseUmb():void{
timer = new Timer(Data.openUmbInterval, 1);
timer.addEventListener(TimerEvent.TIMER, closeUmbrella);
timer.start();
}
private function normalState():void{
mc.gotoAndStop(1);
hitPointArr.length = 0;
hitPointArr = [new Point(-5, 30), new Point(10, 40), new Point(20, 60)];
}
private function initTimerOpenumb():void{
timer = new Timer((1000 / mc.stage.frameRate), 0);
timer.addEventListener(TimerEvent.TIMER, enterFrameMc);
timer.start();
}
function reStart():void{
initSpeed();
contactLineState();
initTimerOpenumb();
openUm = false;
initProtect();
}
function startContactLine():void{
contactLineState();
if (timer != null){
timer.stop();
timer = null;
};
}
function enterFrame():void{
var _local1:Number;
_local1 = curr_y;
curr_y = (curr_y + ((curr_y - prev_y) * Data.inertia));
curr_y = (curr_y + Data.gravitation);
if (openUm){
curr_y = (curr_y + Data.flotage);
};
prev_y = _local1;
if (curr_y < -(Data.manMax_y)){
prev_y = curr_y;
};
mc.y = curr_y;
if (!manContainer.engine.falled){
total_x = (total_x + manContainer.engine.dynamicSpeed_x);
};
}
private function initPro():void{
total_x = 0;
curr_x = Data.manPos_x;
protect = false;
hitPointArr = new Array();
}
}
}//package gam.eng
Section 27
//ManContainer (gam.eng.ManContainer)
package gam.eng {
import flash.display.*;
public class ManContainer {
var engine:Engine;
public var mc:Sprite;
var man:Man;
public function ManContainer(_arg1:Engine):void{
engine = _arg1;
initDis();
initPro();
}
private function delDis():void{
engine.mc.removeChild(mc);
}
private function delPro():void{
man.del();
man = null;
}
function del():void{
delPro();
delDis();
}
function enterFrame():void{
}
private function initPro():void{
man = new Man(this);
}
private function initDis():void{
mc = new Sprite();
engine.mc.addChild(mc);
}
}
}//package gam.eng
Section 28
//ObstacleContainer (gam.eng.ObstacleContainer)
package gam.eng {
import flash.display.*;
import gam.eng.prop.*;
import gam.eng.obst.*;
public class ObstacleContainer {
var bellTower:BellTower;
private var engine:Engine;
var currentObs:AbstractObs;
var pyramid:Pyramid;
private var mc:Sprite;
var ironTower:IronTower;
var statue:Statue;
var windmill:Windmill;
var sailboat:Sailboat;
public function ObstacleContainer(_arg1:Engine){
engine = _arg1;
initDis();
}
private function delDis():void{
engine.mc.removeChild(mc);
}
function del():void{
delDis();
}
function setObstacle():void{
switch (engine.game.scene){
case 1:
pyramid = new Pyramid(mc);
currentObs = pyramid;
break;
case 2:
statue = new Statue(mc);
currentObs = statue;
break;
case 3:
sailboat = new Sailboat(mc);
currentObs = sailboat;
break;
case 4:
windmill = new Windmill(mc);
currentObs = windmill;
break;
case 5:
bellTower = new BellTower(mc);
currentObs = bellTower;
break;
case 6:
ironTower = new IronTower(mc);
currentObs = ironTower;
break;
};
}
private function initDis():void{
mc = new Sprite();
engine.mc.addChild(mc);
}
function contactDoor():void{
pyramid.contactDoor();
}
function enterFrame():void{
var _local1:int;
var _local2:int;
var _local3:Line;
var _local4:Line;
if (((!((currentObs == null))) && (!(engine.falled)))){
if (sailboat != null){
_local2 = 0;
while (_local2 < sailboat.mastArr.length) {
_local3 = sailboat.mastArr[_local2];
_local3.start.x = (_local3.start.x - engine.dynamicSpeed_x);
_local3.end.x = (_local3.end.x - engine.dynamicSpeed_x);
_local2++;
};
} else {
if (((!((pyramid == null))) && (!((pyramid.door == null))))){
pyramid.door.start.x = (pyramid.door.start.x - engine.dynamicSpeed_x);
pyramid.door.end.x = (pyramid.door.end.x - engine.dynamicSpeed_x);
};
};
_local1 = 0;
while (_local1 < currentObs.lineArr.length) {
_local4 = currentObs.lineArr[_local1];
_local4.start.x = (_local4.start.x - engine.dynamicSpeed_x);
_local4.end.x = (_local4.end.x - engine.dynamicSpeed_x);
_local1++;
};
currentObs.mc.x = (currentObs.mc.x - engine.dynamicSpeed_x);
if ((currentObs.mc.x + currentObs.mc.width) < 0){
delObstacle();
};
};
}
private function delObstacle():void{
currentObs.del();
currentObs = null;
}
}
}//package gam.eng
Section 29
//PropContainer (gam.eng.PropContainer)
package gam.eng {
import flash.display.*;
import sound.*;
import flash.events.*;
import gam.eng.prop.*;
import flash.geom.*;
import flash.utils.*;
import data.*;
public class PropContainer {
var inkFullArr:Array;
private var birdTimer:Timer;
private var mc:Sprite;
var inkArr:Array;
private var speedUpTimerId:int;
private var speedUpTimer:Timer;
private var inkFullTimer:Timer;
private var birdLaterTimer:Timer;
var speedUpArr:Array;
private var engine:Engine;
private var inkUnliTimerId:int;
private var birdTimerId:int;
private var inkUnliTimer:Timer;
var inkUnliArr:Array;
var birdArr:Array;
private var inkFullTimerId:int;
private var inkTimerId:int;
private var inkTimer:Timer;
public function PropContainer(_arg1:Engine){
engine = _arg1;
initPro();
initDis();
initInkTimer();
initInkFullTimer();
initInkUnliTimer();
initSpeedUpTimer();
initBirdLaterTimer();
}
private function inkTimerFun(_arg1:TimerEvent):void{
inkTimerId++;
if (inkTimerId == Data.inkTimersArr.length){
inkTimerId = 0;
};
delInkTimer();
initInkTimer();
newInk();
}
private function newSpeedUp():void{
var _local1:SpeedUp;
_local1 = new SpeedUp(this.mc);
_local1.mc.x = Data.stageWidth;
_local1.mc.y = Data.speedUpTimersArr[speedUpTimerId][1];
if (!checkHit(_local1.mc)){
addSpeedUpArr(_local1);
} else {
_local1.del();
};
}
private function delDis():void{
engine.mc.removeChild(mc);
}
function del():void{
delInkTimer();
delInkFullTimer();
delInkUnliTimer();
delSpeedUpTimer();
if (birdTimer != null){
delBirdTimer();
} else {
delBirdLaterTimer();
};
delDis();
}
private function addInkFullArr(_arg1:InkFull):void{
inkFullArr.push(_arg1);
}
private function newBird():void{
var _local1:Bird;
SoundsManager.getInstance().playSound("birdSound", Data.value_event);
_local1 = new Bird(mc, new Point(Data.bird_initX, Data.birdTimersArr[birdTimerId][1]), Boolean(Math.round(Math.random())));
addBirdArr(_local1);
}
private function newInkUnli():void{
var _local1:InkUnlimited;
_local1 = new InkUnlimited(this.mc);
_local1.mc.x = Data.stageWidth;
_local1.mc.y = Data.inkUnliTimersArr[inkUnliTimerId][1];
if (!checkHit(_local1.mc)){
addInkUnliArr(_local1);
} else {
_local1.del();
};
}
private function delBirdLaterTimer():void{
birdLaterTimer.removeEventListener(TimerEvent.TIMER, birdLaterTimerFun);
birdTimer = null;
}
private function newInk():void{
var _local1:Ink;
_local1 = new Ink(this.mc);
_local1.mc.x = Data.stageWidth;
_local1.mc.y = Data.inkTimersArr[inkTimerId][1];
if (!checkHit(_local1.mc)){
addInkArr(_local1);
} else {
_local1.del();
};
}
private function addBirdArr(_arg1:Bird):void{
birdArr.push(_arg1);
}
private function delInkTimer():void{
inkTimer.removeEventListener(TimerEvent.TIMER, inkTimerFun);
inkTimer = null;
}
private function addInkArr(_arg1:Ink):void{
inkArr.push(_arg1);
}
private function initInkTimer():void{
inkTimer = new Timer((Data.inkTimersArr[inkTimerId][0] * 1000), 1);
inkTimer.addEventListener(TimerEvent.TIMER, inkTimerFun);
inkTimer.start();
}
function newPyramidInkUnli(_arg1:Number, _arg2:Number):void{
var _local3:InkUnlimited;
_local3 = new InkUnlimited(this.mc);
_local3.mc.x = _arg1;
_local3.mc.y = _arg2;
addInkUnliArr(_local3);
}
private function inkFullTimerFun(_arg1:TimerEvent):void{
inkFullTimerId++;
if (inkFullTimerId == Data.inkFullTimersArr.length){
inkFullTimerId = 0;
};
delInkFullTimer();
initInkFullTimer();
newInkFull();
}
private function addSpeedUpArr(_arg1:SpeedUp):void{
speedUpArr.push(_arg1);
}
private function delBirdTimer():void{
birdTimer.removeEventListener(TimerEvent.TIMER, birdTimerFun);
birdTimer = null;
}
private function delSpeedUpTimer():void{
speedUpTimer.removeEventListener(TimerEvent.TIMER, speedUpTimerFun);
speedUpTimer = null;
}
private function initSpeedUpTimer():void{
speedUpTimer = new Timer((Data.speedUpTimersArr[speedUpTimerId][0] * 1000), 1);
speedUpTimer.addEventListener(TimerEvent.TIMER, speedUpTimerFun);
speedUpTimer.start();
}
private function newInkFull():void{
var _local1:InkFull;
_local1 = new InkFull(this.mc);
_local1.mc.x = Data.stageWidth;
_local1.mc.y = Data.inkFullTimersArr[inkFullTimerId][1];
if (!checkHit(_local1.mc)){
addInkFullArr(_local1);
} else {
_local1.del();
};
}
private function birdTimerFun(_arg1:TimerEvent):void{
birdTimerId++;
if (birdTimerId == Data.speedUpTimersArr.length){
birdTimerId = 0;
};
delBirdTimer();
initBirdTimer();
newBird();
}
private function delInkFullTimer():void{
inkFullTimer.removeEventListener(TimerEvent.TIMER, inkFullTimerFun);
inkFullTimer = null;
}
private function initBirdTimer():void{
birdTimer = new Timer((Data.birdTimersArr[birdTimerId][0] * 1000), 1);
birdTimer.addEventListener(TimerEvent.TIMER, birdTimerFun);
birdTimer.start();
}
private function initDis():void{
mc = new Sprite();
engine.mc.addChild(mc);
}
private function initBirdLaterTimer():void{
birdLaterTimer = new Timer(Data.birdLaterTime, 1);
birdLaterTimer.addEventListener(TimerEvent.TIMER, birdLaterTimerFun);
birdLaterTimer.start();
}
private function speedUpTimerFun(_arg1:TimerEvent):void{
speedUpTimerId++;
if (speedUpTimerId == Data.speedUpTimersArr.length){
speedUpTimerId = 0;
};
delSpeedUpTimer();
initSpeedUpTimer();
newSpeedUp();
}
private function addInkUnliArr(_arg1:InkUnlimited):void{
inkUnliArr.push(_arg1);
}
private function initInkFullTimer():void{
inkFullTimer = new Timer((Data.inkFullTimersArr[inkFullTimerId][0] * 1000), 1);
inkFullTimer.addEventListener(TimerEvent.TIMER, inkFullTimerFun);
inkFullTimer.start();
}
private function birdLaterTimerFun(_arg1:TimerEvent):void{
delBirdLaterTimer();
initBirdTimer();
}
private function checkHit(_arg1:Sprite):Boolean{
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
_local2 = 0;
while (_local2 < inkArr.length) {
if (_arg1.hitTestObject(inkArr[_local2].mc)){
return (true);
};
_local2++;
};
_local3 = 0;
while (_local3 < inkFullArr.length) {
if (_arg1.hitTestObject(inkFullArr[_local3].mc)){
return (true);
};
_local3++;
};
_local4 = 0;
while (_local4 < inkUnliArr.length) {
if (_arg1.hitTestObject(inkUnliArr[_local4].mc)){
return (true);
};
_local4++;
};
_local5 = 0;
while (_local5 < speedUpArr.length) {
if (_arg1.hitTestObject(speedUpArr[_local5].mc)){
return (true);
};
_local5++;
};
return (false);
}
function enterFrame():void{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Ink;
var _local7:InkFull;
var _local8:InkUnlimited;
var _local9:SpeedUp;
var _local10:Bird;
if (!engine.falled){
_local1 = 0;
while (_local1 < inkArr.length) {
_local6 = inkArr[_local1];
_local6.moveX(-(engine.dynamicSpeed_x));
if ((_local6.mc.x + _local6.mc.width) < 0){
_local6.del();
inkArr.splice(_local1, 1);
_local1--;
};
_local1++;
};
_local2 = 0;
while (_local2 < inkFullArr.length) {
_local7 = inkFullArr[_local2];
_local7.moveX(-(engine.dynamicSpeed_x));
if ((_local7.mc.x + _local7.mc.width) < 0){
_local7.del();
inkFullArr.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local3 = 0;
while (_local3 < inkUnliArr.length) {
_local8 = inkUnliArr[_local3];
_local8.moveX(-(engine.dynamicSpeed_x));
if ((_local8.mc.x + _local8.mc.width) < 0){
_local8.del();
inkUnliArr.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local4 = 0;
while (_local4 < speedUpArr.length) {
_local9 = speedUpArr[_local4];
_local9.moveX(-(engine.dynamicSpeed_x));
if ((_local9.mc.x + _local9.mc.width) < 0){
_local9.del();
speedUpArr.splice(_local4, 1);
_local4--;
};
_local4++;
};
_local5 = 0;
while (_local5 < birdArr.length) {
_local10 = birdArr[_local5];
_local10.run(engine.dynamicSpeed_x);
if ((_local10.mc.x + _local10.mc.width) < 0){
_local10.del();
birdArr.splice(_local5, 1);
_local5--;
};
_local5++;
};
};
}
private function inkUnliTimerFun(_arg1:TimerEvent):void{
inkUnliTimerId++;
if (inkUnliTimerId == Data.inkUnliTimersArr.length){
inkUnliTimerId = 0;
};
delInkUnliTimer();
initInkUnliTimer();
newInkUnli();
}
private function initInkUnliTimer():void{
inkUnliTimer = new Timer((Data.inkUnliTimersArr[inkUnliTimerId][0] * 1000), 1);
inkUnliTimer.addEventListener(TimerEvent.TIMER, inkUnliTimerFun);
inkUnliTimer.start();
}
private function delInkUnliTimer():void{
inkUnliTimer.removeEventListener(TimerEvent.TIMER, inkUnliTimerFun);
inkUnliTimer = null;
}
private function initPro():void{
inkArr = new Array();
inkFullArr = new Array();
inkUnliArr = new Array();
speedUpArr = new Array();
birdArr = new Array();
birdTimerId = 0;
}
}
}//package gam.eng
Section 30
//BackGround (gam.BackGround)
package gam {
import flash.display.*;
import flash.events.*;
import data.*;
import tool.*;
public class BackGround {
private var parent:Sprite;
private var scene:int;
private var mc:MovieClip;
public function BackGround(_arg1:Sprite):void{
parent = _arg1;
initPro();
initDis();
}
function setDepth(_arg1:Number):void{
parent.setChildIndex(mc, _arg1);
}
private function delDis():void{
parent.removeChild(mc);
}
private function delAddEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, addAlpha);
}
private function delSubEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, subAlpha);
}
private function initAddEvent():void{
mc.addEventListener(Event.ENTER_FRAME, addAlpha);
}
function del():void{
delDis();
}
private function initDis():void{
mc = Attach.getMovieClip("BackGroundMc");
parent.addChild(mc);
setColor();
}
private function setColor():void{
switch (scene){
case 1:
mc.gotoAndStop(1);
break;
case 2:
mc.gotoAndStop(3);
break;
case 3:
mc.gotoAndStop(4);
break;
case 4:
mc.gotoAndStop(1);
break;
case 5:
mc.gotoAndStop(3);
break;
case 6:
mc.gotoAndStop(2);
break;
};
}
private function initSubEvent():void{
mc.addEventListener(Event.ENTER_FRAME, subAlpha);
}
private function initPro():void{
scene = 1;
}
function sceneChange(_arg1:int):void{
scene = _arg1;
initSubEvent();
}
private function addAlpha(_arg1:Event):void{
mc.alpha = (mc.alpha + Data.sceneChangeSpeed);
if (mc.alpha >= 1){
delAddEvent();
};
}
private function subAlpha(_arg1:Event):void{
mc.alpha = (mc.alpha - Data.sceneChangeSpeed);
if (mc.alpha <= 0){
delSubEvent();
setColor();
initAddEvent();
};
}
}
}//package gam
Section 31
//CloudsBack (gam.CloudsBack)
package gam {
import flash.display.*;
import data.*;
import tool.*;
public class CloudsBack {
private const disArea_bot:Number = 0.7;
private const percent:Number = 0.6;
private const disArea_top:Number = 0.1;
private const cloudNum:int = 2;
private var mc:Sprite;
private var parent:Sprite;
private var cloudArr:Array;
public function CloudsBack(_arg1:Sprite){
parent = _arg1;
initPro();
initDis();
initCloud();
}
function setDepth(_arg1:Number):void{
parent.setChildIndex(mc, _arg1);
}
private function overrideCloud(_arg1:Sprite):void{
_arg1.scaleX = Method.random((percent - Data.cloudScaleWave), (percent + Data.cloudScaleWave));
_arg1.scaleY = _arg1.scaleX;
_arg1.x = Data.stageWidth;
_arg1.y = Method.random((disArea_top * Data.stageHeight), (disArea_bot * Data.stageHeight));
}
function del():void{
delDis();
}
private function initCloud():void{
var _local1:int;
var _local2:Sprite;
_local1 = 0;
while (_local1 < cloudNum) {
_local2 = newCloud();
cloudArr.push(_local2);
_local1++;
};
}
function move(_arg1:Number):void{
var _local2:int;
_local2 = 0;
while (_local2 < cloudArr.length) {
cloudArr[_local2].x = (cloudArr[_local2].x - (_arg1 * percent));
if (cloudArr[_local2].x < -(cloudArr[_local2].width)){
overrideCloud(cloudArr[_local2]);
};
_local2++;
};
}
private function delDis():void{
parent.removeChild(mc);
}
private function initDis():void{
mc = new Sprite();
parent.addChild(mc);
}
private function newCloud():Sprite{
var _local1:Sprite;
_local1 = Attach.getMovieClip("CloudMc");
mc.addChild(_local1);
_local1.scaleX = Method.random((percent - Data.cloudScaleWave), (percent + Data.cloudScaleWave));
_local1.scaleY = _local1.scaleX;
_local1.x = Method.random(0, Data.stageWidth);
_local1.y = Method.random((disArea_top * Data.stageHeight), (disArea_bot * Data.stageHeight));
return (_local1);
}
private function initPro():void{
cloudArr = new Array();
}
}
}//package gam
Section 32
//CloudsFront (gam.CloudsFront)
package gam {
import flash.display.*;
import data.*;
import tool.*;
public class CloudsFront {
private const disArea_bot:Number = 0.7;
private const percent:Number = 1.3;
private const cloudTopNum:int = 8;
private const disArea_top:Number = 0.1;
private const cloudNum:int = 2;
private var mc:Sprite;
private var cloudTopArr:Array;
private var parent:Sprite;
private var cloudArr:Array;
public function CloudsFront(_arg1:Sprite){
parent = _arg1;
initPro();
initDis();
initCloud();
initCloudTop();
}
function setDepth(_arg1:Number):void{
parent.setChildIndex(mc, _arg1);
}
private function overrideCloud(_arg1:Sprite):void{
_arg1.scaleX = Method.random((percent - Data.cloudScaleWave), (percent + Data.cloudScaleWave));
_arg1.scaleY = _arg1.scaleX;
_arg1.x = Data.stageWidth;
_arg1.y = Method.random((disArea_top * Data.stageHeight), (disArea_bot * Data.stageHeight));
}
function del():void{
delDis();
}
private function initCloudTop():void{
var _local1:int;
var _local2:Sprite;
_local1 = 0;
while (_local1 < cloudTopNum) {
_local2 = Attach.getMovieClip("CloudTopMc");
mc.addChild(_local2);
_local2.scaleX = Method.random((percent - Data.cloudScaleWave), (percent + Data.cloudScaleWave));
_local2.scaleY = _local2.scaleX;
if (cloudTopArr.length == 0){
_local2.x = 0;
} else {
_local2.x = (cloudTopArr[(cloudTopArr.length - 1)].x + cloudTopArr[(cloudTopArr.length - 1)].width);
};
_local2.y = 0;
cloudTopArr.push(_local2);
_local1++;
};
}
function move(_arg1:Number):void{
var _local2:int;
var _local3:int;
_local2 = 0;
while (_local2 < cloudArr.length) {
cloudArr[_local2].x = (cloudArr[_local2].x - (_arg1 * percent));
if (cloudArr[_local2].x < -(cloudArr[_local2].width)){
overrideCloud(cloudArr[_local2]);
};
_local2++;
};
_local3 = 0;
while (_local3 < cloudTopArr.length) {
cloudTopArr[_local3].x = (cloudTopArr[_local3].x - (_arg1 * percent));
if (cloudTopArr[_local3].x < -(cloudTopArr[_local3].width)){
overrideCloudTop(cloudTopArr[_local3], _local3);
};
_local3++;
};
}
private function delDis():void{
parent.removeChild(mc);
}
private function overrideCloudTop(_arg1:Sprite, _arg2:int):void{
_arg1.scaleX = Method.random((percent - Data.cloudScaleWave), (percent + Data.cloudScaleWave));
_arg1.scaleY = _arg1.scaleX;
if (_arg2 == 0){
_arg2 = cloudTopArr.length;
};
_arg1.x = (cloudTopArr[(_arg2 - 1)].x + cloudTopArr[(_arg2 - 1)].width);
}
private function initCloud():void{
var _local1:int;
var _local2:Sprite;
_local1 = 0;
while (_local1 < cloudNum) {
_local2 = Attach.getMovieClip("CloudMc");
mc.addChild(_local2);
_local2.scaleX = Method.random((percent - Data.cloudScaleWave), (percent + Data.cloudScaleWave));
_local2.scaleY = _local2.scaleX;
_local2.x = Method.random(0, Data.stageWidth);
_local2.y = Method.random((disArea_top * Data.stageHeight), (disArea_bot * Data.stageHeight));
cloudArr.push(_local2);
_local1++;
};
}
private function initDis():void{
mc = new Sprite();
parent.addChild(mc);
}
private function initPro():void{
cloudArr = new Array();
cloudTopArr = new Array();
}
}
}//package gam
Section 33
//Credits (gam.Credits)
package gam {
import flash.display.*;
import flash.events.*;
import ui.*;
import data.*;
import flash.text.*;
import gam.eng.effect.*;
import tool.*;
public class Credits {
private var sceneBack:SceneBack;
private var mc:Sprite;
private var id:int;
private var manager:Manager;
private var rainbow:Rainbow;
private var job:TextEffect;
private var backGround:BackGround;
private var cloudsBack:CloudsBack;
private var back:Sprite;
private var birdArr:Array;
private var cloudsFront:CloudsFront;
private var sceneFront:SceneFront;
public function Credits(_arg1:Manager){
manager = _arg1;
initPro();
initDis();
initScene();
initBack();
initEvent();
initJobAndBird();
}
private function delDis():void{
manager.mc.removeChild(mc);
}
private function initPro():void{
id = 1;
birdArr = new Array();
}
private function addBird(_arg1:String):void{
var _local2:MovieClip;
_local2 = Attach.getMovieClip("CreditsTextMc");
mc.addChild(_local2);
TextField(_local2.getChildByName("txt")).text = _arg1;
if (birdArr.length == 0){
_local2.x = -(_local2.width);
} else {
_local2.x = ((birdArr[(birdArr.length - 1)].x - birdArr[(birdArr.length - 1)].width) - 10);
};
_local2.y = Data.CREDITS_BIRD_Y;
birdArr.push(_local2);
}
public function del():void{
delJobAndBird();
delEvent();
delScene();
delDis();
}
private function initBack():void{
back = Attach.getSprite("CreditsBackMc");
mc.addChild(back);
back.x = (Data.stageWidth / 2);
back.y = (Data.stageHeight - (back.height / 2));
}
private function createSceneFront():void{
sceneFront = new SceneFront(mc);
}
private function createRainbow():void{
rainbow = new Rainbow(mc);
}
private function delJobAndBird():void{
var _local1:int;
_local1 = 0;
while (_local1 < birdArr.length) {
birdArr[_local1].stop();
mc.removeChild(birdArr[_local1]);
_local1++;
};
birdArr = new Array();
job.del();
job = null;
}
private function clickBack(_arg1:MouseEvent):void{
manager.endCredits();
}
private function delRainbow():void{
rainbow.del();
rainbow = null;
}
private function delBackGround():void{
backGround.del();
backGround = null;
}
private function creaetCloudsBack():void{
cloudsBack = new CloudsBack(mc);
}
private function delScene():void{
delCloudsFront();
delSceneFront();
delCloudsBack();
delRainbow();
delBackGround();
delSceneBack();
}
private function delSceneBack():void{
sceneBack.del();
sceneBack = null;
}
private function delEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, enterFrame);
back.addEventListener(MouseEvent.CLICK, clickBack);
}
private function delCloudsBack():void{
cloudsBack.del();
cloudsBack = null;
}
private function initScene():void{
createBackGround();
createRainbow();
creaetCloudsBack();
createSceneBack();
createSceneFront();
createCloudsFront();
}
private function initDis():void{
mc = new Sprite();
manager.mc.addChild(mc);
}
private function delCloudsFront():void{
cloudsFront.del();
cloudsFront = null;
}
private function initJobAndBird():void{
switch (id){
case 1:
addJob(DynamicText.gameConcept[(language.language_nr - 1)]);
addBird(DynamicText.nielsWalta);
break;
case 2:
addJob(DynamicText.conceptArt[(language.language_nr - 1)]);
addBird(DynamicText.yangYang);
break;
case 3:
addJob(DynamicText.gameDesign[(language.language_nr - 1)]);
addBird(DynamicText.zhangRui);
break;
case 4:
addJob(DynamicText.levelDesign[(language.language_nr - 1)]);
addBird(DynamicText.zhangRui);
break;
case 5:
addJob(DynamicText.animation[(language.language_nr - 1)]);
addBird(DynamicText.yangYang);
addBird(DynamicText.yuZhiFeng);
break;
case 6:
addJob(DynamicText.illustrations[(language.language_nr - 1)]);
addBird(DynamicText.yangYang);
break;
case 7:
addJob(DynamicText.artwork[(language.language_nr - 1)]);
addBird(DynamicText.yangYang);
addBird(DynamicText.zhangXiaoMing);
break;
case 8:
addJob(DynamicText.twoDArt[(language.language_nr - 1)]);
addBird(DynamicText.yangYang);
addBird(DynamicText.zhangXiaoMing);
break;
case 9:
addJob(DynamicText.programming[(language.language_nr - 1)]);
addBird(DynamicText.wenGuangHui);
break;
case 10:
addJob(DynamicText.producer[(language.language_nr - 1)]);
addBird(DynamicText.breathXue);
break;
case 11:
addJob(DynamicText.projectManagement[(language.language_nr - 1)]);
addBird(DynamicText.sunXin);
addBird(DynamicText.saskia);
break;
case 12:
addJob(DynamicText.soundFX[(language.language_nr - 1)]);
addBird(DynamicText.guTianCheng);
break;
case 13:
addJob(DynamicText.testing[(language.language_nr - 1)]);
addBird(DynamicText.chuJiao);
break;
case 14:
addJob(DynamicText.thanks[(language.language_nr - 1)]);
addBird(DynamicText.kimVerbon);
break;
};
}
private function initEvent():void{
mc.addEventListener(Event.ENTER_FRAME, enterFrame);
back.addEventListener(MouseEvent.CLICK, clickBack);
}
private function delSceneFront():void{
sceneFront.del();
sceneFront = null;
}
private function createBackGround():void{
backGround = new BackGround(mc);
}
private function next():void{
id++;
delJobAndBird();
initJobAndBird();
}
private function addJob(_arg1:String):void{
job = new TextEffect(mc, _arg1, false);
job.Y = Data.CREDITS_TXT_Y;
}
private function enterFrame(_arg1:Event):void{
var _local2:int;
cloudsBack.move(Data.speedX);
sceneBack.move(Data.speedX);
sceneFront.move(Data.speedX);
cloudsFront.move(Data.speedX);
_local2 = 0;
while (_local2 < birdArr.length) {
birdArr[_local2].x = (birdArr[_local2].x + Data.CREDITS_BIRD);
_local2++;
};
if ((((birdArr.length > 0)) && ((birdArr[(birdArr.length - 1)].x > Data.stageWidth)))){
if (id == 14){
manager.endCredits();
} else {
next();
};
};
}
private function createSceneBack():void{
sceneBack = new SceneBack(mc);
}
private function createCloudsFront():void{
cloudsFront = new CloudsFront(mc);
}
}
}//package gam
Section 34
//DisplayData (gam.DisplayData)
package gam {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import data.*;
import flash.text.*;
import gam.eng.effect.*;
import tool.*;
public class DisplayData {
private var score_txt:TextField;
private var scoreId:int;
private var highScore_txt:TextField;
private var bar:Sprite;
private var upPointer:Sprite;
private var pointAt:MovieClip;
private var disScore:Sprite;
private var logo:Sprite;
private var upPointer_txt:TextField;
private var disInk:Sprite;
private var game:Game;
public function DisplayData(_arg1:Game){
game = _arg1;
initPro();
initDis();
initEvent();
}
function addEnergy(_arg1:Number, _arg2:Number):void{
new Sparkle(game.mc, new Point(_arg1, _arg2), new Point((disInk.x + (disInk.width / 2)), (disInk.y + (disInk.height / 2))));
}
private function delDis():void{
game.mc.removeChild(disInk);
disInk = null;
game.mc.removeChild(disScore);
disScore = null;
if (pointAt != null){
delPointAt();
};
game.mc.removeChild(logo);
}
function del():void{
delEvent();
delDis();
}
function disPointAt():void{
var _local1:Sprite;
pointAt = Attach.getMovieClip("PointMc");
game.mc.addChild(pointAt);
pointAt.gotoAndStop(game.scene);
switch (game.scene){
case 1:
_local1 = Attach.getSprite("PyramidMc");
break;
case 2:
_local1 = Attach.getSprite("StatueMc");
break;
case 3:
_local1 = Attach.getSprite("SailboatMc");
break;
case 4:
_local1 = Attach.getSprite("WindmillMc");
break;
case 5:
_local1 = Attach.getSprite("BellTowerMc");
break;
case 6:
_local1 = Attach.getSprite("IronTowerMc");
break;
};
pointAt.x = (Data.stageWidth - pointAt.width);
pointAt.y = (Data.stageHeight - _local1.height);
_local1 = null;
}
function delPointAt():void{
pointAt.stop();
game.mc.removeChild(pointAt);
pointAt = null;
}
private function initDis():void{
disInk = Attach.getSprite("DisInkMc");
game.mc.addChild(disInk);
disInk.x = 150;
disInk.y = 10;
bar = (disInk.getChildByName("bar") as Sprite);
disScore = Attach.getSprite("DisScoreMc");
game.mc.addChild(disScore);
disScore.x = 400;
disScore.y = 0;
score_txt = (disScore.getChildByName("score") as TextField);
highScore_txt = (disScore.getChildByName("highScore") as TextField);
highScore_txt.text = String(Cookie.da["highScore"]);
upPointer = Attach.getSprite("UpPointMc");
game.mc.addChild(upPointer);
upPointer.x = Data.manPos_x;
upPointer.y = 0;
upPointer.visible = false;
upPointer_txt = (upPointer.getChildByName("pos_txt") as TextField);
logo = Attach.getSprite("InGameLogoMc");
game.mc.addChild(logo);
logo.x = Data.stageWidth;
logo.y = Data.stageHeight;
}
private function disGreat():void{
var _local1:String;
var _local2:int;
_local2 = ((scoreId <= 7)) ? scoreId : Math.ceil((Math.random() * 7));
switch (_local2){
case 1:
_local1 = DynamicText.great[(language.language_nr - 1)];
break;
case 2:
_local1 = DynamicText.keepGoing[(language.language_nr - 1)];
break;
case 3:
_local1 = DynamicText.yahooo[(language.language_nr - 1)];
break;
case 4:
_local1 = DynamicText.weeeee[(language.language_nr - 1)];
break;
case 5:
_local1 = DynamicText.fantastic[(language.language_nr - 1)];
break;
case 6:
_local1 = DynamicText.haHaHa[(language.language_nr - 1)];
break;
case 7:
_local1 = DynamicText.yeah[(language.language_nr - 1)];
break;
};
new TextEffect(game.mc, _local1);
}
private function delEvent():void{
logo.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick9);
}
private function initEvent():void{
logo.addEventListener(MouseEvent.CLICK, ToUrl.onCLick9);
}
function enterFrame():void{
bar.scaleX = (game.engine.inkNum / Data.inkTotalNum);
score_txt.text = String(Math.round(game.engine.man.total_x));
if (game.engine.man.total_x > (scoreId * Data.congratulationInterval)){
scoreId++;
disGreat();
};
if ((game.engine.man.curr_y + 40) < 0){
upPointer.visible = true;
upPointer_txt.text = String(-(int((game.engine.man.curr_y + 40))));
} else {
upPointer.visible = false;
};
}
function disTextPoint(_arg1:String):void{
new TextEffect(game.mc, _arg1);
}
private function initPro():void{
scoreId = 1;
}
}
}//package gam
Section 35
//Game (gam.Game)
package gam {
import flash.display.*;
import sound.*;
import flash.events.*;
import ui.*;
import gam.eng.*;
import flash.utils.*;
import data.*;
import tool.*;
public class Game {
private const soundArr:Array;
public var scene:int;
private var sceneBack:SceneBack;
public var mc:Sprite;
private var sceneTimer:Timer;
private var displayData:DisplayData;
private var pointAtTimer:Timer;
private var sceneFront:SceneFront;
private var manager:Manager;
private var rainbow:Rainbow;
public var engine:Engine;
private var backGround:BackGround;
private var cloudsBack:CloudsBack;
public var achievementComleted:Boolean;
private var cloudsFront:CloudsFront;
private var obstacleTimer:Timer;
private var currSound:String;
public function Game(_arg1:Manager){
soundArr = ["music_1Music", "music_2Music", "music_3Music"];
super();
manager = _arg1;
initPro();
initTimer();
initEvent();
initSound();
}
private function delPointTimer():void{
pointAtTimer.removeEventListener(TimerEvent.TIMER, disPointAt);
pointAtTimer = null;
}
private function achievementComplete():void{
disTextPoint(DynamicText.achievementCompleted[(language.language_nr - 1)]);
achievementComleted = true;
}
public function addEnergy(_arg1:Number, _arg2:Number):void{
displayData.addEnergy(_arg1, _arg2);
}
public function del():void{
delPro();
delTimer();
delEvent();
delSound();
}
private function disPointAt(_arg1:TimerEvent):void{
delPointTimer();
displayData.disPointAt();
}
private function delDisplayData():void{
displayData.del();
displayData = null;
}
private function setObstacle(_arg1:TimerEvent):void{
delPointAt();
delObstacleTimer();
engine.setObstacle();
}
private function delTimer():void{
if (sceneTimer != null){
delSceneTimer();
};
if (obstacleTimer != null){
delObstacleTimer();
};
if (pointAtTimer != null){
delPointTimer();
};
}
private function initPro():void{
achievementComleted = false;
mc = manager.mc;
scene = 1;
currSound = String(Method.randomArray(soundArr));
createDisplayData();
createBackGround();
createRainbow();
creaetCloudsBack();
createSceneBack();
createEngine();
createSceneFront();
createCloudsFront();
backGround.setDepth(0);
rainbow.setDepth(1);
cloudsBack.setDepth(2);
sceneBack.setDepth(3);
engine.setDepth(4);
sceneFront.setDepth(5);
cloudsFront.setDepth(6);
}
private function createRainbow():void{
rainbow = new Rainbow(mc);
}
private function createSceneFront():void{
sceneFront = new SceneFront(mc);
}
private function delPro():void{
delDisplayData();
delCloudsFront();
delSceneFront();
delEngine();
delCloudsBack();
delRainbow();
delBackGround();
delSceneBack();
}
private function delObstacleTimer():void{
obstacleTimer.removeEventListener(TimerEvent.TIMER, setObstacle);
obstacleTimer = null;
}
public function bitmap():BitmapData{
var _local1:BitmapData;
_local1 = new BitmapData(Data.stageWidth, Data.stageHeight);
_local1.draw(mc);
return (_local1);
}
private function delSceneTimer():void{
sceneTimer.removeEventListener(TimerEvent.TIMER, sceneChange);
sceneTimer = null;
}
private function delEngine():void{
engine.del();
engine = null;
}
private function initTimer():void{
sceneTimer = new Timer(Data.sceneChangeTime, 1);
sceneTimer.addEventListener(TimerEvent.TIMER, sceneChange);
sceneTimer.start();
obstacleTimer = new Timer((Data.sceneChangeTime / 3), 1);
obstacleTimer.addEventListener(TimerEvent.TIMER, setObstacle);
obstacleTimer.start();
pointAtTimer = new Timer(((Data.sceneChangeTime / 3) - Data.pointAtTime), 1);
pointAtTimer.addEventListener(TimerEvent.TIMER, disPointAt);
pointAtTimer.start();
}
private function delBackGround():void{
backGround.del();
backGround = null;
}
private function delRainbow():void{
rainbow.del();
rainbow = null;
}
private function checkAchievementCompleted():void{
if ((((Cookie.da["highScore"] < (Data.travelInOneRound_1 * 1000))) && ((engine.man.total_x > (Data.travelInOneRound_1 * 1000))))){
Cookie.da["highScore"] = engine.man.total_x;
achievementComplete();
};
if ((((Cookie.da["highScore"] < (Data.travelInOneRound_2 * 1000))) && ((engine.man.total_x > (Data.travelInOneRound_2 * 1000))))){
Cookie.da["highScore"] = engine.man.total_x;
achievementComplete();
};
if ((((Cookie.da["travelTotal"] < (Data.travelTotal_1 * 1000))) && (((Cookie.da["travelTotal"] + engine.man.total_x) > (Data.travelTotal_1 * 1000))))){
Cookie.da["travelTotal"] = (Cookie.da["travelTotal"] + engine.man.total_x);
achievementComplete();
};
if ((((Cookie.da["travelTotal"] < (Data.travelTotal_2 * 1000))) && (((Cookie.da["travelTotal"] + engine.man.total_x) > (Data.travelTotal_2 * 1000))))){
Cookie.da["travelTotal"] = (Cookie.da["travelTotal"] + engine.man.total_x);
achievementComplete();
};
}
private function creaetCloudsBack():void{
cloudsBack = new CloudsBack(mc);
}
private function delSceneBack():void{
sceneBack.del();
sceneBack = null;
}
private function delSound():void{
SoundsManager.getInstance().stopMusic();
}
private function delEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, enterFrame);
}
private function newRound():void{
var _local1:Array;
var _local2:int;
scene = 1;
engine.dynamicSpeed_x = (engine.dynamicSpeed_x + Data.speedX_add);
if (engine.dynamicSpeed_x > Data.speedX_max){
engine.dynamicSpeed_x = Data.speedX_max;
};
_local1 = soundArr.concat();
_local2 = 0;
while (_local2 < _local1.length) {
if (_local1[_local2] == currSound){
_local1.splice(_local2, 1);
break;
};
_local2++;
};
currSound = String(Method.randomArray(_local1));
delSound();
initSound();
}
private function delCloudsBack():void{
cloudsBack.del();
cloudsBack = null;
}
private function delPointAt():void{
displayData.delPointAt();
}
private function sceneChange(_arg1:TimerEvent):void{
delSceneTimer();
scene++;
if (scene > Data.sceneNum){
newRound();
};
backGround.sceneChange(scene);
sceneBack.sceneChange(scene);
sceneFront.sceneChange(scene);
initTimer();
}
private function createEngine():void{
engine = new Engine(this);
}
private function initSound():void{
SoundsManager.getInstance().playMusic(currSound, Data.value_bg);
}
private function delCloudsFront():void{
cloudsFront.del();
cloudsFront = null;
}
public function gameOver():void{
manager.startGameOverPass();
}
private function createCloudsFront():void{
cloudsFront = new CloudsFront(mc);
}
private function initEvent():void{
mc.addEventListener(Event.ENTER_FRAME, enterFrame);
}
private function delSceneFront():void{
sceneFront.del();
sceneFront = null;
}
private function createDisplayData():void{
displayData = new DisplayData(this);
}
private function createBackGround():void{
backGround = new BackGround(mc);
}
public function disTextPoint(_arg1:String):void{
displayData.disTextPoint(_arg1);
}
private function createSceneBack():void{
sceneBack = new SceneBack(mc);
}
private function enterFrame(_arg1:Event):void{
checkAchievementCompleted();
if (!engine.falled){
cloudsBack.move(engine.dynamicSpeed_x);
sceneBack.move(engine.dynamicSpeed_x);
sceneFront.move(engine.dynamicSpeed_x);
cloudsFront.move(engine.dynamicSpeed_x);
};
displayData.enterFrame();
engine.enterFrame();
}
}
}//package gam
Section 36
//Rainbow (gam.Rainbow)
package gam {
import flash.display.*;
import data.*;
import tool.*;
public class Rainbow {
private var parent:Sprite;
private var mc:Sprite;
private var rainbow:Sprite;
public function Rainbow(_arg1:Sprite):void{
parent = _arg1;
initDis();
initPro();
}
private function delDis():void{
parent.removeChild(mc);
}
private function initPro():void{
newRainbow();
}
private function newRainbow():void{
rainbow = Attach.getSprite("RainbowMc");
mc.addChild(rainbow);
setRainbow();
}
function setDepth(_arg1:Number):void{
parent.setChildIndex(mc, _arg1);
}
function del():void{
delDis();
}
private function setRainbow():void{
rainbow.scaleX = Method.random((1 - Data.cloudScaleWave), (1 + Data.cloudScaleWave));
rainbow.scaleY = rainbow.scaleX;
rainbow.x = Method.random((-(rainbow.width) / 2), (rainbow.width / 2));
rainbow.y = (Data.stageHeight - (rainbow.width / 2));
}
private function initDis():void{
mc = new Sprite();
parent.addChild(mc);
}
}
}//package gam
Section 37
//SceneBack (gam.SceneBack)
package gam {
import flash.display.*;
import flash.events.*;
import data.*;
import tool.*;
public class SceneBack {
private const percent:Number = 0.8;
private const gap:Number = 10;
private var scene:int;
private var child_1:Sprite;
private var mc:Sprite;
private var child_2:Sprite;
private var parent:Sprite;
public function SceneBack(_arg1:Sprite){
parent = _arg1;
initPro();
initDis();
}
private function delDis():void{
parent.removeChild(mc);
}
private function addAlpha(_arg1:Event):void{
child_1.alpha = (child_1.alpha + Data.sceneChangeSpeed);
child_2.alpha = (child_2.alpha + Data.sceneChangeSpeed);
if (child_1.alpha >= 1){
delAddEvent();
};
}
function setDepth(_arg1:Number):void{
parent.setChildIndex(mc, _arg1);
}
function del():void{
delDis();
}
function move(_arg1:Number):void{
child_1.x = (child_1.x - (_arg1 * percent));
if (child_1.x <= -(child_1.width)){
child_1.x = ((child_2.x + child_2.width) - gap);
};
child_2.x = (child_2.x - (_arg1 * percent));
if (child_2.x <= -(child_2.width)){
child_2.x = ((child_1.x + child_1.width) - gap);
};
}
function sceneChange(_arg1:int):void{
scene = _arg1;
initSubEvent();
}
private function delAddEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, addAlpha);
}
private function initDis():void{
mc = new Sprite();
parent.addChild(mc);
newChild();
}
private function initAddEvent():void{
mc.addEventListener(Event.ENTER_FRAME, addAlpha);
}
private function newChild():void{
switch (scene){
case 1:
initChild("CaravanBackMc");
break;
case 2:
initChild("CityBackMc");
break;
case 3:
initChild("SeaBackMc");
break;
case 4:
initChild("HillBackMc");
break;
case 5:
initChild("TreeBackMc");
break;
case 6:
initChild("CityBackMc");
break;
};
}
private function initSubEvent():void{
mc.addEventListener(Event.ENTER_FRAME, subAlpha);
}
private function delSubEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, subAlpha);
}
private function initChild(_arg1:String):void{
child_1 = Attach.getSprite(_arg1);
mc.addChild(child_1);
child_1.x = 0;
child_1.y = Data.stageHeight;
child_2 = Attach.getSprite(_arg1);
mc.addChild(child_2);
child_2.x = (child_1.width - gap);
child_2.y = Data.stageHeight;
}
private function initPro():void{
scene = 1;
}
private function subAlpha(_arg1:Event):void{
child_1.alpha = (child_1.alpha - Data.sceneChangeSpeed);
child_2.alpha = (child_2.alpha - Data.sceneChangeSpeed);
if (child_1.alpha <= 0){
delSubEvent();
mc.removeChild(child_1);
mc.removeChild(child_2);
newChild();
child_1.alpha = 0;
child_2.alpha = 0;
initAddEvent();
};
}
}
}//package gam
Section 38
//SceneFront (gam.SceneFront)
package gam {
import flash.display.*;
import flash.events.*;
import data.*;
import tool.*;
public class SceneFront {
private const percent:Number = 1.2;
private const gap:Number = 10;
private var scene:int;
private var child_1:Sprite;
private var mc:Sprite;
private var child_2:Sprite;
private var parent:Sprite;
public function SceneFront(_arg1:Sprite){
parent = _arg1;
initPro();
initDis();
}
private function delDis():void{
parent.removeChild(mc);
}
private function addAlpha(_arg1:Event):void{
child_1.alpha = (child_1.alpha + Data.sceneChangeSpeed);
child_2.alpha = (child_2.alpha + Data.sceneChangeSpeed);
if (child_1.alpha >= 1){
delAddEvent();
};
}
function setDepth(_arg1:Number):void{
parent.setChildIndex(mc, _arg1);
}
function del():void{
delDis();
}
function move(_arg1:Number):void{
child_1.x = (child_1.x - (_arg1 * percent));
if (child_1.x <= -(child_1.width)){
child_1.x = ((child_2.x + child_2.width) - gap);
};
child_2.x = (child_2.x - (_arg1 * percent));
if (child_2.x <= -(child_2.width)){
child_2.x = ((child_1.x + child_1.width) - gap);
};
}
function sceneChange(_arg1:int):void{
scene = _arg1;
initSubEvent();
}
private function delAddEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, addAlpha);
}
private function initDis():void{
mc = new Sprite();
parent.addChild(mc);
newChild();
}
private function initAddEvent():void{
mc.addEventListener(Event.ENTER_FRAME, addAlpha);
}
private function newChild():void{
switch (scene){
case 1:
initChild("CaravanFrontMc");
break;
case 2:
initChild("CityFrontMc");
break;
case 3:
initChild("SeaFrontMc");
break;
case 4:
initChild("HillFrontMc");
break;
case 5:
initChild("TreeFrontMc");
break;
case 6:
initChild("CityFrontMc");
break;
};
}
private function initSubEvent():void{
mc.addEventListener(Event.ENTER_FRAME, subAlpha);
}
private function delSubEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, subAlpha);
}
private function initChild(_arg1:String):void{
child_1 = Attach.getSprite(_arg1);
mc.addChild(child_1);
child_1.x = 0;
child_1.y = Data.stageHeight;
child_2 = Attach.getSprite(_arg1);
mc.addChild(child_2);
child_2.x = (child_1.width - gap);
child_2.y = Data.stageHeight;
}
private function initPro():void{
scene = 1;
}
private function subAlpha(_arg1:Event):void{
child_1.alpha = (child_1.alpha - Data.sceneChangeSpeed);
child_2.alpha = (child_2.alpha - Data.sceneChangeSpeed);
if (child_1.alpha <= 0){
delSubEvent();
mc.removeChild(child_1);
mc.removeChild(child_2);
newChild();
child_1.alpha = 0;
child_2.alpha = 0;
initAddEvent();
};
}
}
}//package gam
Section 39
//Achievements_205 (make_happy_umbrella_man_fla.Achievements_205)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Achievements_205 extends MovieClip {
public var icon_2:MovieClip;
public var icon_1:MovieClip;
public var icon_3:MovieClip;
public var icon_4:MovieClip;
public var icon_5:MovieClip;
public var icon_6:MovieClip;
}
}//package make_happy_umbrella_man_fla
Section 40
//best_77 (make_happy_umbrella_man_fla.best_77)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class best_77 extends MovieClip {
public function best_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 41
//highscore__202 (make_happy_umbrella_man_fla.highscore__202)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class highscore__202 extends MovieClip {
public var moreGames:btn_3000game;
public var hs_btn:MovieClip;
public var s:MovieClip;
public var ac_btn:MovieClip;
public var back:btn_back;
public function highscore__202(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 42
//highscore_1_203 (make_happy_umbrella_man_fla.highscore_1_203)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class highscore_1_203 extends MovieClip {
public var hs:MovieClip;
public var ac:MovieClip;
public var point_mc:MovieClip;
}
}//package make_happy_umbrella_man_fla
Section 43
//highscore_218 (make_happy_umbrella_man_fla.highscore_218)
package make_happy_umbrella_man_fla {
import flash.display.*;
import flash.text.*;
public dynamic class highscore_218 extends MovieClip {
public var score_10:TextField;
public var name_10: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_9:TextField;
public var name_8:TextField;
public var name_2: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;
}
}//package make_happy_umbrella_man_fla
Section 44
//on_67 (make_happy_umbrella_man_fla.on_67)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class on_67 extends MovieClip {
public function on_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 45
//outcome_mc_300 (make_happy_umbrella_man_fla.outcome_mc_300)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class outcome_mc_300 extends MovieClip {
public function outcome_mc_300(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 46
//submit_01_326 (make_happy_umbrella_man_fla.submit_01_326)
package make_happy_umbrella_man_fla {
import flash.display.*;
import flash.text.*;
public dynamic class submit_01_326 extends MovieClip {
public var submit:btn_submit;
public var score_txt:TextField;
public var moreGames:btn_morefreeonlinegame;
public var name_txt:TextField;
}
}//package make_happy_umbrella_man_fla
Section 47
//Timeline_140 (make_happy_umbrella_man_fla.Timeline_140)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_140 extends MovieClip {
public function Timeline_140(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 48
//Timeline_142 (make_happy_umbrella_man_fla.Timeline_142)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_142 extends MovieClip {
public function Timeline_142(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 49
//Timeline_146 (make_happy_umbrella_man_fla.Timeline_146)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_146 extends MovieClip {
public var credits_mc:btn_sun;
public var start:MovieClip;
public function Timeline_146(){
addFrameScript(104, frame105);
}
function frame105(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 50
//Timeline_169 (make_happy_umbrella_man_fla.Timeline_169)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_169 extends MovieClip {
public var playAni:MovieClip;
public function Timeline_169(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 51
//Timeline_173 (make_happy_umbrella_man_fla.Timeline_173)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_173 extends MovieClip {
public function Timeline_173(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 52
//Timeline_176 (make_happy_umbrella_man_fla.Timeline_176)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_176 extends MovieClip {
public function Timeline_176(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 53
//Timeline_236 (make_happy_umbrella_man_fla.Timeline_236)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_236 extends MovieClip {
public var pt_2:MovieClip;
public var pt_4:MovieClip;
public var pt_1:MovieClip;
public var pt_3:MovieClip;
}
}//package make_happy_umbrella_man_fla
Section 54
//Timeline_239 (make_happy_umbrella_man_fla.Timeline_239)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_239 extends MovieClip {
public function Timeline_239(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 55
//Timeline_250 (make_happy_umbrella_man_fla.Timeline_250)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_250 extends MovieClip {
public function Timeline_250(){
addFrameScript(107, frame108);
}
function frame108(){
gotoAndPlay(39);
}
}
}//package make_happy_umbrella_man_fla
Section 56
//Timeline_252 (make_happy_umbrella_man_fla.Timeline_252)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_252 extends MovieClip {
public function Timeline_252(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package make_happy_umbrella_man_fla
Section 57
//Timeline_358 (make_happy_umbrella_man_fla.Timeline_358)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_358 extends MovieClip {
public var bar:MovieClip;
}
}//package make_happy_umbrella_man_fla
Section 58
//Timeline_364 (make_happy_umbrella_man_fla.Timeline_364)
package make_happy_umbrella_man_fla {
import flash.display.*;
public dynamic class Timeline_364 extends MovieClip {
public function Timeline_364(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(3);
}
}
}//package make_happy_umbrella_man_fla
Section 59
//txt_266 (make_happy_umbrella_man_fla.txt_266)
package make_happy_umbrella_man_fla {
import flash.display.*;
import flash.text.*;
public dynamic class txt_266 extends MovieClip {
public var pos_txt:TextField;
}
}//package make_happy_umbrella_man_fla
Section 60
//SoundsManager (sound.SoundsManager)
package sound {
import flash.media.*;
import flash.events.*;
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 61
//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 62
//Method (tool.Method)
package tool {
import flash.geom.*;
public class Method {
public static function random(_arg1:Number, _arg2:Number):Number{
var _local3:Number;
_local3 = (Math.random() * (_arg2 - _arg1));
return ((_local3 + _arg1));
}
public static function randomArray(_arg1:Array):Object{
return (_arg1[Math.floor((Math.random() * _arg1.length))]);
}
public static function judgeAcross(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point):Point{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local5 = ((_arg1.y - _arg2.y) / (_arg1.x - _arg2.x));
_local6 = (_arg1.y - (_local5 * _arg1.x));
_local7 = ((_arg3.y - _arg4.y) / (_arg3.x - _arg4.x));
_local8 = (_arg3.y - (_local7 * _arg3.x));
if (_local5 == _local7){
return (null);
};
_local9 = ((_local6 - _local8) / (_local7 - _local5));
_local10 = ((_local5 * _local9) + _local6);
if ((((((((((((((((_local9 < Math.max(_arg1.x, _arg2.x))) && ((_local9 > Math.min(_arg1.x, _arg2.x))))) && ((_local9 < Math.max(_arg3.x, _arg4.x))))) && ((_local9 > Math.min(_arg3.x, _arg4.x))))) && ((_local10 < Math.max(_arg1.y, _arg2.y))))) && ((_local10 > Math.min(_arg1.y, _arg2.y))))) && ((_local10 < Math.max(_arg3.y, _arg4.y))))) && ((_local10 > Math.min(_arg3.y, _arg4.y))))){
return (new Point(_local9, _local10));
};
return (null);
}
}
}//package tool
Section 63
//StageSetting (tool.StageSetting)
package tool {
import flash.display.*;
public class StageSetting {
public function StageSetting(_arg1:Sprite){
_arg1.stage.showDefaultContextMenu = false;
_arg1.stage.scaleMode = "noScale";
_arg1.stage.stageFocusRect = false;
_arg1.stage.tabChildren = false;
}
}
}//package tool
Section 64
//Document (ui.Document)
package ui {
import flash.display.*;
public class Document extends MovieClip {
private var _container:Sprite;
public function Document():void{
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 ui
Section 65
//GameOver (ui.GameOver)
package ui {
import flash.display.*;
import flash.events.*;
import data.*;
import flash.text.*;
import tool.*;
public class GameOver {
private var sub:MovieClip;
private var score_txt:TextField;
private var moreGames:MovieClip;
private var manager:Manager;
private var score:int;
private var mc:Sprite;
private var name_txt:TextField;
public function GameOver(_arg1:Manager, _arg2:BitmapData, _arg3:int){
manager = _arg1;
score = _arg3;
initDis(_arg2);
initEvent();
}
private function initDis(_arg1:BitmapData):void{
var _local2:Sprite;
var _local3:Bitmap;
mc = Attach.getSprite("GameOverMc");
manager.mc.addChild(mc);
mc.x = (Data.stageWidth / 2);
mc.y = (Data.stageHeight / 2);
_local2 = (mc.getChildByName("box") as Sprite);
moreGames = (_local2.getChildByName("moreGames") as MovieClip);
score_txt = (_local2.getChildByName("score_txt") as TextField);
score_txt.text = String(score);
name_txt = (_local2.getChildByName("name_txt") as TextField);
name_txt.text = DynamicText.player;
mc.stage.focus = name_txt;
name_txt.setSelection(0, name_txt.length);
sub = (_local2.getChildByName("submit") as MovieClip);
_local3 = new Bitmap(_arg1);
mc.addChildAt(_local3, 0);
_local3.x = (-(Data.stageWidth) / 2);
_local3.y = (-(Data.stageHeight) / 2);
}
private function delEvent():void{
sub.removeEventListener(MouseEvent.CLICK, clickSub);
moreGames.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick6);
}
private function delDis():void{
manager.mc.removeChild(mc);
}
function del():void{
delEvent();
delDis();
}
private function clickSub(_arg1:MouseEvent):void{
Cookie.da["arr"].push({name:name_txt.text, score:score});
Cookie.da["arr"].sortOn("score", (Array.DESCENDING | Array.NUMERIC));
Cookie.da["arr"].splice(10);
if (Cookie.da["highScore"] < score){
Cookie.da["highScore"] = score;
};
Cookie.da["travelTotal"] = (Cookie.da["travelTotal"] + score);
manager.startHighScore();
}
private function initEvent():void{
sub.addEventListener(MouseEvent.CLICK, clickSub);
moreGames.addEventListener(MouseEvent.CLICK, ToUrl.onCLick6);
}
}
}//package ui
Section 66
//GameOverPass (ui.GameOverPass)
package ui {
import flash.display.*;
import sound.*;
import data.*;
import tool.*;
public class GameOverPass {
private var container:Sprite;
private var manager:Manager;
private var mc:MovieClip;
private var ani:MovieClip;
public function GameOverPass(_arg1:Manager, _arg2:BitmapData, _arg3:int){
manager = _arg1;
initDis(_arg2, _arg3);
initSound();
}
private function delDis():void{
mc.stop();
manager.mc.removeChild(mc);
mc = null;
}
private function initDis(_arg1:BitmapData, _arg2:int):void{
mc = Attach.getMovieClip("GameOverPassMc");
manager.mc.addChild(mc);
mc.addFrameScript((mc.totalFrames - 1), frameScript_end);
container = (mc.getChildByName("container_mc") as Sprite);
container.addChild(new Bitmap(_arg1));
ani = (mc.getChildByName("ani_mc") as MovieClip);
ani.gotoAndStop(_arg2);
}
function del():void{
delDis();
}
private function frameScript_end():void{
mc.stop();
manager.startGameOver();
}
function bitmap():BitmapData{
var _local1:BitmapData;
_local1 = new BitmapData(Data.stageWidth, Data.stageHeight);
_local1.draw(mc);
return (_local1);
}
private function initSound():void{
SoundsManager.getInstance().playSound("gameOverSound", Data.value_bg);
}
}
}//package ui
Section 67
//Help (ui.Help)
package ui {
import flash.display.*;
import flash.events.*;
import tool.*;
public class Help {
private var back:MovieClip;
private var manager:Manager;
private var next:MovieClip;
private var mc:MovieClip;
private var skip:MovieClip;
public function Help(_arg1:Manager){
manager = _arg1;
initDis();
initEvent();
}
private function delDis():void{
manager.mc.removeChild(mc);
}
private function initDis():void{
mc = Attach.getMovieClip("HelpMc");
manager.mc.addChild(mc);
mc.stop();
back = (mc.getChildByName("back_mc") as MovieClip);
next = (mc.getChildByName("next_mc") as MovieClip);
skip = (mc.getChildByName("skip_mc") as MovieClip);
}
private function initEvent():void{
next.addEventListener(MouseEvent.CLICK, clickNext);
back.addEventListener(MouseEvent.CLICK, clickBack);
skip.addEventListener(MouseEvent.CLICK, clickSkip);
}
function del():void{
delEvent();
delDis();
}
private function delEvent():void{
next.removeEventListener(MouseEvent.CLICK, clickNext);
back.removeEventListener(MouseEvent.CLICK, clickBack);
skip.removeEventListener(MouseEvent.CLICK, clickSkip);
}
private function clickSkip(_arg1:MouseEvent):void{
manager.skipHelp();
}
private function clickNext(_arg1:MouseEvent):void{
if (mc.currentFrame == 3){
mc.gotoAndStop(1);
} else {
mc.nextFrame();
};
}
private function clickBack(_arg1:MouseEvent):void{
if (mc.currentFrame == 1){
mc.gotoAndStop(3);
} else {
mc.prevFrame();
};
}
}
}//package ui
Section 68
//HighScore (ui.HighScore)
package ui {
import flash.display.*;
import sound.*;
import flash.events.*;
import data.*;
import flash.text.*;
import tool.*;
public class HighScore {
private var box:MovieClip;
private var achievementsPoint:MovieClip;
private var hsBtn:Sprite;
private var acCard:Sprite;
private var cardContainer:Sprite;
private var mc:Sprite;
private var acBtn:Sprite;
private var back:MovieClip;
private var manager:Manager;
private var moreGames:MovieClip;
private var hsCard:Sprite;
public function HighScore(_arg1:Manager, _arg2:Boolean):void{
manager = _arg1;
initDis(_arg2);
initMusic();
}
private function boxLastFrameAction():void{
box.stop();
initEvent();
}
private function delDis():void{
achievementsPoint.stop();
manager.mc.removeChild(mc);
}
private function initMusic():void{
SoundsManager.getInstance().playMusic("trophyMusic", Data.value_bg);
}
private function initDis(_arg1:Boolean):void{
mc = Attach.getSprite("HighScoreMc");
manager.mc.addChild(mc);
box = (mc.getChildByName("box") as MovieClip);
box.addFrameScript((box.totalFrames - 1), boxLastFrameAction);
cardContainer = (box.getChildByName("s") as Sprite);
moreGames = (box.getChildByName("moreGames") as MovieClip);
back = (box.getChildByName("back") as MovieClip);
hsBtn = (box.getChildByName("hs_btn") as Sprite);
acBtn = (box.getChildByName("ac_btn") as Sprite);
initHsCard();
initAcCoard();
achievementsPoint = (cardContainer.getChildByName("point_mc") as MovieClip);
achievementsPoint.visible = _arg1;
}
function del():void{
delMusic();
delEvent();
delDis();
}
private function initEvent():void{
mc.addEventListener(MouseEvent.CLICK, clickMc);
back.addEventListener(MouseEvent.CLICK, clickBack);
moreGames.addEventListener(MouseEvent.CLICK, ToUrl.onCLick8);
}
private function initHsCard():void{
var _local1:int;
var _local2:TextField;
var _local3:TextField;
hsCard = (cardContainer.getChildByName("hs") as Sprite);
_local1 = 1;
while (_local1 <= 10) {
_local2 = (hsCard.getChildByName(("name_" + String(_local1))) as TextField);
_local3 = (hsCard.getChildByName(("score_" + String(_local1))) as TextField);
_local2.text = Cookie.da["arr"][(_local1 - 1)]["name"];
_local3.text = Cookie.da["arr"][(_local1 - 1)]["score"];
_local1++;
};
}
private function delEvent():void{
back.removeEventListener(MouseEvent.CLICK, clickMc);
back.removeEventListener(MouseEvent.CLICK, clickBack);
moreGames.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick8);
}
private function delMusic():void{
SoundsManager.getInstance().stopMusic();
}
private function initAcCoard():void{
acCard = (cardContainer.getChildByName("ac") as Sprite);
if (Cookie.da["highScore"] >= (Data.travelInOneRound_1 * 1000)){
Sprite(acCard.getChildByName("icon_1")).visible = true;
} else {
Sprite(acCard.getChildByName("icon_1")).visible = false;
};
if (Cookie.da["highScore"] >= (Data.travelInOneRound_2 * 1000)){
Sprite(acCard.getChildByName("icon_2")).visible = true;
} else {
Sprite(acCard.getChildByName("icon_2")).visible = false;
};
if (Cookie.da["travelTotal"] >= (Data.travelTotal_1 * 1000)){
Sprite(acCard.getChildByName("icon_3")).visible = true;
} else {
Sprite(acCard.getChildByName("icon_3")).visible = false;
};
if (Cookie.da["travelTotal"] >= (Data.travelTotal_2 * 1000)){
Sprite(acCard.getChildByName("icon_4")).visible = true;
} else {
Sprite(acCard.getChildByName("icon_4")).visible = false;
};
if (Cookie.da["pickUpItemsTotal"] >= Data.pickUpItemsTotal){
Sprite(acCard.getChildByName("icon_5")).visible = true;
} else {
Sprite(acCard.getChildByName("icon_5")).visible = false;
};
if (Cookie.da["pickUpWindmillOneRound"] >= Data.pickUpWindmillOneRound){
Sprite(acCard.getChildByName("icon_6")).visible = true;
} else {
Sprite(acCard.getChildByName("icon_6")).visible = false;
};
}
private function clickBack(_arg1:MouseEvent):void{
manager.backMenuFirst();
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case hsBtn:
SoundsManager.getInstance().playSound("turnCardSound", Data.value_event);
cardContainer.setChildIndex(hsCard, (cardContainer.numChildren - 1));
break;
case acBtn:
SoundsManager.getInstance().playSound("turnCardSound", Data.value_event);
cardContainer.setChildIndex(acCard, (cardContainer.numChildren - 1));
break;
};
}
}
}//package ui
Section 69
//Loading (ui.Loading)
package ui {
import flash.display.*;
import flash.events.*;
import data.*;
import flash.text.*;
import tool.*;
public class Loading {
private var logo:MovieClip;
private var manager:Manager;
private var txt:TextField;
private var _bar:MovieClip;
private var mc:Sprite;
public function Loading(_arg1:Manager){
manager = _arg1;
initDis();
initEvent();
}
private function delDis():void{
_bar.stop();
manager.mc.removeChild(mc);
}
private function removeEvent():void{
mc.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
logo.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick3);
}
private function initEvent():void{
mc.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
logo.addEventListener(MouseEvent.CLICK, ToUrl.onCLick3);
}
function del():void{
removeEvent();
delDis();
}
private function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = (mc.root.loaderInfo.bytesLoaded / mc.root.loaderInfo.bytesTotal);
_bar.gotoAndStop(Math.round((_local2 * 100)));
txt.text = String((Math.round((_local2 * 100)) + "%"));
if (_local2 == 1){
manager.startMenuFirst();
};
}
private function initDis():void{
var _local1:Sprite;
mc = Attach.getSprite("LoadingMc");
manager.mc.addChild(mc);
_local1 = (mc.getChildByName("rainbow") as Sprite);
_bar = (_local1.getChildByName("bar") as MovieClip);
txt = new TextField();
mc.addChild(txt);
txt.selectable = false;
txt.x = (_local1.x + (_local1.width / 2));
txt.y = (_local1.y + (_local1.height / 4));
logo = (mc.getChildByName("logo_mc") as MovieClip);
}
}
}//package ui
Section 70
//Manager (ui.Manager)
package ui {
import flash.display.*;
import sound.*;
import gam.*;
import data.*;
import tool.*;
public class Manager {
private var record_achievementCompleted:Boolean;
private var record_bmd:BitmapData;
private var menuPass:MenuPass;
private var menuFirst:MenuFirst;
public var mc:Sprite;
private var gameOverPass:GameOverPass;
private var credits:Credits;
private var highScore:HighScore;
private var record_score:Number;
private var menuSecond:MenuSecond;
private var loading:Loading;
private var help:Help;
private var gameOver:GameOver;
private var game:Game;
public function Manager(_arg1:Sprite):void{
mc = _arg1;
init();
initLoading();
}
private function initHelp():void{
help = new Help(this);
}
function clickHeightScore():void{
delMenuFirst();
initHighScore();
}
private function initLoading():void{
loading = new Loading(this);
}
function startMenuPass():void{
delMenuFirst();
initMenuPass();
}
private function delGameOver():void{
gameOver.del();
gameOver = null;
}
public function startGameOverPass():void{
delGame();
initGameOverPass();
}
private function delMenuSecond():void{
SoundsManager.getInstance().stopMusic();
menuSecond.del();
menuSecond = null;
}
private function initGameOver():void{
gameOver = new GameOver(this, record_bmd, record_score);
}
private function init():void{
new Cookie();
new StageSetting(mc);
new MouseStyle((mc.parent as Sprite));
new ToUrl();
language.Language = 1;
record_achievementCompleted = false;
}
private function initGame():void{
game = new Game(this);
}
private function delLoading():void{
loading.del();
loading = null;
}
function startMenuSecond():void{
delMenuPass();
initMenuSecond();
}
private function delMenuPass():void{
menuPass.del();
menuPass = null;
}
public function endCredits():void{
delCredits();
initMenuFirst();
}
private function initMenuPass():void{
menuPass = new MenuPass(this, record_bmd);
}
private function delGameOverPass():void{
record_bmd = gameOverPass.bitmap();
gameOverPass.del();
gameOverPass = null;
}
private function delHighScore():void{
highScore.del();
highScore = null;
}
private function delMenuFirst():void{
record_bmd = menuFirst.bitmap();
menuFirst.del();
menuFirst = null;
}
private function initGameOverPass():void{
var _local1:int;
var _local2:int;
_local2 = Data.animationsScore.length;
while (_local2 > 0) {
if (record_score > Data.animationsScore[(_local2 - 1)]){
_local1 = _local2;
break;
};
_local2--;
};
gameOverPass = new GameOverPass(this, record_bmd, _local1);
}
private function delGame():void{
record_score = game.engine.man.total_x;
record_bmd = game.bitmap();
record_achievementCompleted = game.achievementComleted;
game.del();
game = null;
}
function startHighScore():void{
if (gameOver != null){
delGameOver();
} else {
if (menuFirst != null){
delMenuFirst();
};
};
initHighScore();
}
function startMenuFirst():void{
(mc.parent as Document).sleek();
delLoading();
initMenuFirst();
}
private function delCredits():void{
credits.del();
credits = null;
}
function startCredits():void{
delMenuSecond();
initCredits();
}
function skipHelp():void{
delHelp();
initMenuFirst();
}
private function initMenuFirst():void{
SoundsManager.getInstance().overNewMusic("mainscreenMusic", Data.value_bg);
menuFirst = new MenuFirst(this);
}
private function initMenuSecond():void{
menuSecond = new MenuSecond(this);
}
private function initHighScore():void{
highScore = new HighScore(this, record_achievementCompleted);
record_achievementCompleted = false;
}
function startGameOver():void{
delGameOverPass();
initGameOver();
}
function clickHelp():void{
delMenuFirst();
initHelp();
}
function backMenuFirst():void{
delHighScore();
initMenuFirst();
}
private function delHelp():void{
help.del();
help = null;
}
private function initCredits():void{
credits = new Credits(this);
}
function startGame():void{
var _local1 = Cookie.da;
var _local2 = "travelTimes";
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
delMenuSecond();
initGame();
}
}
}//package ui
Section 71
//MenuFirst (ui.MenuFirst)
package ui {
import flash.display.*;
import sound.*;
import flash.events.*;
import data.*;
import api.*;
import tool.*;
public class MenuFirst {
private var help:MovieClip;
private var soundControl:MovieClip;
private var highScore:MovieClip;
private var disQuality:MovieClip;
private var mc:Sprite;
private var qualityControl:MovieClip;
private var copyright:SimpleButton;
private var disSound:MovieClip;
private var start:MovieClip;
private var logo:ExtLogo;
private var manager:Manager;
private var moreGames:MovieClip;
public function MenuFirst(_arg1:Manager){
manager = _arg1;
initDis();
initEvent();
initMusic();
}
private function delDis():void{
manager.mc.removeChild(mc);
}
private function clickQualityControl(_arg1:MouseEvent):void{
switch (disQuality.currentFrame){
case 1:
disQuality.gotoAndStop(2);
disQuality.stage.quality = StageQuality.MEDIUM;
break;
case 2:
disQuality.gotoAndStop(3);
disQuality.stage.quality = StageQuality.LOW;
break;
case 3:
disQuality.gotoAndStop(1);
disQuality.stage.quality = StageQuality.HIGH;
break;
};
}
private function clickHeightScore(_arg1:MouseEvent):void{
manager.clickHeightScore();
}
function del():void{
delMusic();
delEvent();
delDis();
}
private function clickStart(_arg1:MouseEvent):void{
manager.startMenuPass();
}
private function initDis():void{
mc = Attach.getSprite("MenuFirstMc");
manager.mc.addChild(mc);
start = (mc.getChildByName("start") as MovieClip);
help = (mc.getChildByName("howToPlay") as MovieClip);
highScore = (mc.getChildByName("highScore") as MovieClip);
moreGames = (mc.getChildByName("moreGames") as MovieClip);
soundControl = (mc.getChildByName("sound_mc") as MovieClip);
disSound = (soundControl.getChildByName("dis_mc") as MovieClip);
switch (SoundsManager.getInstance().Enabled){
case true:
disSound.gotoAndStop(1);
break;
case false:
disSound.gotoAndStop(2);
break;
};
qualityControl = (mc.getChildByName("quality_mc") as MovieClip);
disQuality = (qualityControl.getChildByName("dis_mc") as MovieClip);
switch (disQuality.stage.quality){
case "HIGH":
disQuality.gotoAndStop(1);
break;
case "MEDIUM":
disQuality.gotoAndStop(2);
break;
case "LOW":
disQuality.gotoAndStop(3);
break;
};
logo = (mc.getChildByName("logo_mc") as ExtLogo);
copyright = (mc.getChildByName("copyright_btn") as SimpleButton);
}
private function delEvent():void{
start.removeEventListener(MouseEvent.CLICK, clickStart);
help.removeEventListener(MouseEvent.CLICK, clickHelp);
highScore.removeEventListener(MouseEvent.CLICK, clickHeightScore);
soundControl.removeEventListener(MouseEvent.CLICK, clickSoundControl);
qualityControl.removeEventListener(MouseEvent.CLICK, clickQualityControl);
moreGames.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick4);
logo.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick5);
copyright.removeEventListener(MouseEvent.CLICK, ToUrl.onCLick2);
}
private function initEvent():void{
start.addEventListener(MouseEvent.CLICK, clickStart);
help.addEventListener(MouseEvent.CLICK, clickHelp);
highScore.addEventListener(MouseEvent.CLICK, clickHeightScore);
soundControl.addEventListener(MouseEvent.CLICK, clickSoundControl);
qualityControl.addEventListener(MouseEvent.CLICK, clickQualityControl);
moreGames.addEventListener(MouseEvent.CLICK, ToUrl.onCLick4);
logo.addEventListener(MouseEvent.CLICK, ToUrl.onCLick5);
copyright.addEventListener(MouseEvent.CLICK, ToUrl.onCLick2);
}
function bitmap():BitmapData{
var _local1:BitmapData;
_local1 = new BitmapData(Data.stageWidth, Data.stageHeight);
_local1.draw(mc);
return (_local1);
}
private function clickHelp(_arg1:MouseEvent):void{
manager.clickHelp();
}
private function delMusic():void{
SoundsManager.getInstance().stopSound("fireSound");
}
private function initMusic():void{
SoundsManager.getInstance().playSound("fireSound", Data.value_event, int.MAX_VALUE);
}
private function clickSoundControl(_arg1:MouseEvent):void{
if (disSound.currentFrame == 1){
disSound.nextFrame();
SoundsManager.getInstance().Enabled = false;
delMusic();
} else {
disSound.prevFrame();
SoundsManager.getInstance().Enabled = true;
initMusic();
};
}
}
}//package ui
Section 72
//MenuPass (ui.MenuPass)
package ui {
import flash.display.*;
import sound.*;
import data.*;
import tool.*;
public class MenuPass {
private var clouds:MovieClip;
private var manager:Manager;
private var mc:Sprite;
public function MenuPass(_arg1:Manager, _arg2:BitmapData){
manager = _arg1;
initDis(_arg2);
initSound();
}
private function delDis():void{
clouds.stop();
manager.mc.removeChild(mc);
}
private function cloudsLastestFrameScript():void{
clouds.stop();
manager.startMenuSecond();
}
function del():void{
delDis();
}
private function initDis(_arg1:BitmapData):void{
var _local2:Bitmap;
mc = Attach.getSprite("MenuPassMc");
manager.mc.addChild(mc);
clouds = (mc.getChildByName("clouds") as MovieClip);
clouds.addFrameScript((clouds.totalFrames - 1), cloudsLastestFrameScript);
_local2 = new Bitmap(_arg1);
mc.addChildAt(_local2, 0);
}
private function initSound():void{
SoundsManager.getInstance().playSound("CloudPassSound", Data.value_event);
}
}
}//package ui
Section 73
//MenuSecond (ui.MenuSecond)
package ui {
import flash.display.*;
import sound.*;
import flash.events.*;
import data.*;
import tool.*;
public class MenuSecond {
private var playAni:MovieClip;
private var credits:Sprite;
private var ani:MovieClip;
private var mc:Sprite;
private var start:MovieClip;
private var manager:Manager;
public function MenuSecond(_arg1:Manager){
manager = _arg1;
initDis();
}
private function sixtyTwoFrameScript():void{
initSound();
}
private function delDis():void{
ani.stop();
start.stop();
manager.mc.removeChild(mc);
}
private function mouseOverStart(_arg1:MouseEvent):void{
start.gotoAndStop(2);
}
private function startLastestFrameScript():void{
playAni = (start.getChildByName("playAni") as MovieClip);
playAni.addFrameScript((playAni.totalFrames - 1), playAniLastestFrameScript);
}
function del():void{
delDis();
delSound();
}
private function rollOutStart(_arg1:MouseEvent):void{
start.gotoAndStop(1);
}
private function aniLastestFrameScript():void{
ani.stop();
start = (ani.getChildByName("start") as MovieClip);
start.mouseChildren = false;
start.addFrameScript((start.totalFrames - 1), startLastestFrameScript);
credits = (ani.getChildByName("credits_mc") as Sprite);
if (Cookie.da["travelTimes"] <= 3){
credits.visible = false;
};
initEvent();
}
private function delEvent():void{
start.removeEventListener(MouseEvent.CLICK, clickStart);
start.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownStart);
start.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverStart);
start.removeEventListener(MouseEvent.ROLL_OUT, rollOutStart);
credits.removeEventListener(MouseEvent.CLICK, clickCredits);
}
private function firstFrameScript():void{
SoundsManager.getInstance().playSound("cloudUpSound", Data.value_event);
}
private function initDis():void{
mc = Attach.getSprite("MenuSecondMc");
manager.mc.addChild(mc);
ani = (mc.getChildByName("ani") as MovieClip);
ani.addFrameScript((ani.totalFrames - 1), aniLastestFrameScript);
ani.addFrameScript(61, sixtyTwoFrameScript);
ani.addFrameScript(0, firstFrameScript);
}
private function initSound():void{
SoundsManager.getInstance().playSound("MenuBirdSound", Data.value_bg, int.MAX_VALUE);
}
private function delSound():void{
SoundsManager.getInstance().stopSound("MenuBirdSound");
}
private function initEvent():void{
start.mouseChildren = false;
start.addEventListener(MouseEvent.CLICK, clickStart);
start.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownStart);
start.addEventListener(MouseEvent.MOUSE_OVER, mouseOverStart);
start.addEventListener(MouseEvent.ROLL_OUT, rollOutStart);
credits.addEventListener(MouseEvent.CLICK, clickCredits);
}
private function playAniLastestFrameScript():void{
playAni.stop();
manager.startGame();
}
private function clickCredits(_arg1:MouseEvent):void{
manager.startCredits();
}
private function clickStart(_arg1:MouseEvent):void{
start.gotoAndStop(4);
SoundsManager.getInstance().playSound("ManStartSound", Data.value_event);
delEvent();
}
private function mouseDownStart(_arg1:MouseEvent):void{
SoundsManager.getInstance().playSound("mouseDownStartSound", Data.value_event);
start.gotoAndStop(3);
}
}
}//package ui
Section 74
//MouseStyle (ui.MouseStyle)
package ui {
import flash.display.*;
import flash.events.*;
import tool.*;
import flash.ui.*;
public class MouseStyle {
private var mc:Sprite;
private var doc:Sprite;
public function MouseStyle(_arg1:Sprite):void{
doc = _arg1;
hideMouse();
initDis();
initEvent();
}
private function delDis():void{
doc.removeChild(mc);
}
private function hideMouse():void{
Mouse.hide();
}
public function del():void{
delEvent();
delDis();
}
private function initEvent():void{
doc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function enterFrameMc(_arg1:Event):void{
mc.x = doc.mouseX;
mc.y = doc.mouseY;
}
private function delEvent():void{
doc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function initDis():void{
mc = Attach.getSprite("MouseStyleMc");
doc.addChild(mc);
mc.mouseEnabled = false;
mc.mouseChildren = false;
}
}
}//package ui
Section 75
//BackGroundMc (BackGroundMc)
package {
import flash.display.*;
public dynamic class BackGroundMc extends MovieClip {
}
}//package
Section 76
//BellTowerMc (BellTowerMc)
package {
import flash.display.*;
public dynamic class BellTowerMc extends MovieClip {
public var pt_2:MovieClip;
public var pt_4:MovieClip;
public var pt_5:MovieClip;
public var pt_6:MovieClip;
public var pt_1:MovieClip;
public var pt_9:MovieClip;
public var pt_7:MovieClip;
public var pt_8:MovieClip;
public var pt_3:MovieClip;
}
}//package
Section 77
//BirdMc (BirdMc)
package {
import flash.display.*;
public dynamic class BirdMc extends MovieClip {
public var hitArea_mc:MovieClip;
public function BirdMc(){
addFrameScript(6, frame7, 12, frame13);
}
function frame7(){
gotoAndPlay(1);
}
function frame13(){
stop();
}
}
}//package
Section 78
//birdSound (birdSound)
package {
import flash.media.*;
public dynamic class birdSound extends Sound {
}
}//package
Section 79
//branding_aligned_center (branding_aligned_center)
package {
import api.*;
public dynamic class branding_aligned_center extends ExtLogo {
}
}//package
Section 80
//branding_aligned_right (branding_aligned_right)
package {
import api.*;
public dynamic class branding_aligned_right extends ExtLogo {
}
}//package
Section 81
//btn_3000game (btn_3000game)
package {
import api.*;
public dynamic class btn_3000game extends ExtButton {
}
}//package
Section 82
//btn_back (btn_back)
package {
import api.*;
public dynamic class btn_back extends ExtButton {
}
}//package
Section 83
//btn_BACK_ (btn_BACK_)
package {
import api.*;
public dynamic class btn_BACK_ extends ExtButton {
}
}//package
Section 84
//btn_highscore (btn_highscore)
package {
import api.*;
public dynamic class btn_highscore extends ExtButton {
}
}//package
Section 85
//btn_howtoplay (btn_howtoplay)
package {
import api.*;
public dynamic class btn_howtoplay extends ExtButton {
}
}//package
Section 86
//btn_morefreeonlinegame (btn_morefreeonlinegame)
package {
import api.*;
public dynamic class btn_morefreeonlinegame extends ExtButton {
}
}//package
Section 87
//btn_moregame (btn_moregame)
package {
import api.*;
public dynamic class btn_moregame extends ExtButton {
}
}//package
Section 88
//btn_NEXT (btn_NEXT)
package {
import api.*;
public dynamic class btn_NEXT extends ExtButton {
}
}//package
Section 89
//btn_quality (btn_quality)
package {
import api.*;
public dynamic class btn_quality extends ExtButton {
}
}//package
Section 90
//btn_skip (btn_skip)
package {
import api.*;
public dynamic class btn_skip extends ExtButton {
}
}//package
Section 91
//btn_sound (btn_sound)
package {
import api.*;
public dynamic class btn_sound extends ExtButton {
}
}//package
Section 92
//btn_start (btn_start)
package {
import api.*;
public dynamic class btn_start extends ExtButton {
}
}//package
Section 93
//btn_submit (btn_submit)
package {
import api.*;
public dynamic class btn_submit extends ExtButton {
}
}//package
Section 94
//btn_sun (btn_sun)
package {
import api.*;
public dynamic class btn_sun extends ExtButton {
}
}//package
Section 95
//CaravanBackMc (CaravanBackMc)
package {
import flash.display.*;
public dynamic class CaravanBackMc extends MovieClip {
}
}//package
Section 96
//CaravanFrontMc (CaravanFrontMc)
package {
import flash.display.*;
public dynamic class CaravanFrontMc extends MovieClip {
}
}//package
Section 97
//CityBackMc (CityBackMc)
package {
import flash.display.*;
public dynamic class CityBackMc extends MovieClip {
}
}//package
Section 98
//CityFrontMc (CityFrontMc)
package {
import flash.display.*;
public dynamic class CityFrontMc extends MovieClip {
}
}//package
Section 99
//CloudMc (CloudMc)
package {
import flash.display.*;
public dynamic class CloudMc extends MovieClip {
}
}//package
Section 100
//CloudPassSound (CloudPassSound)
package {
import flash.media.*;
public dynamic class CloudPassSound extends Sound {
}
}//package
Section 101
//CloudTopMc (CloudTopMc)
package {
import flash.display.*;
public dynamic class CloudTopMc extends MovieClip {
}
}//package
Section 102
//cloudUpSound (cloudUpSound)
package {
import flash.media.*;
public dynamic class cloudUpSound extends Sound {
}
}//package
Section 103
//CoinMc (CoinMc)
package {
import flash.display.*;
public dynamic class CoinMc extends MovieClip {
}
}//package
Section 104
//CreditsBackMc (CreditsBackMc)
package {
import api.*;
public dynamic class CreditsBackMc extends ExtButton {
}
}//package
Section 105
//CreditsTextMc (CreditsTextMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class CreditsTextMc extends MovieClip {
public var txt:TextField;
}
}//package
Section 106
//DisCoinMc (DisCoinMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class DisCoinMc extends MovieClip {
public var coinNum_txt:TextField;
}
}//package
Section 107
//DisInkMc (DisInkMc)
package {
import flash.display.*;
public dynamic class DisInkMc extends MovieClip {
public var bar:MovieClip;
}
}//package
Section 108
//DisLifes (DisLifes)
package {
import flash.display.*;
public dynamic class DisLifes extends MovieClip {
}
}//package
Section 109
//DisScoreMc (DisScoreMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class DisScoreMc extends MovieClip {
public var highScore:TextField;
public var score:TextField;
}
}//package
Section 110
//DrawLineSound (DrawLineSound)
package {
import flash.media.*;
public dynamic class DrawLineSound extends Sound {
}
}//package
Section 111
//eatSound (eatSound)
package {
import flash.media.*;
public dynamic class eatSound extends Sound {
}
}//package
Section 112
//endObsSound (endObsSound)
package {
import flash.media.*;
public dynamic class endObsSound extends Sound {
}
}//package
Section 113
//fallDownSound (fallDownSound)
package {
import flash.media.*;
public dynamic class fallDownSound extends Sound {
}
}//package
Section 114
//fireSound (fireSound)
package {
import flash.media.*;
public dynamic class fireSound extends Sound {
}
}//package
Section 115
//GameOverMc (GameOverMc)
package {
import flash.display.*;
public dynamic class GameOverMc extends MovieClip {
public var box:MovieClip;
public function GameOverMc(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package
Section 116
//GameOverPassMc (GameOverPassMc)
package {
import flash.display.*;
public dynamic class GameOverPassMc extends MovieClip {
public var container_mc:MovieClip;
public var ani_mc:MovieClip;
}
}//package
Section 117
//gameOverSound (gameOverSound)
package {
import flash.media.*;
public dynamic class gameOverSound extends Sound {
}
}//package
Section 118
//getObjectSound (getObjectSound)
package {
import flash.media.*;
public dynamic class getObjectSound extends Sound {
}
}//package
Section 119
//HelpMc (HelpMc)
package {
import flash.display.*;
public dynamic class HelpMc extends MovieClip {
public var skip_mc:btn_skip;
public var next_mc:btn_NEXT;
public var back_mc:btn_BACK_;
}
}//package
Section 120
//HighScoreMc (HighScoreMc)
package {
import flash.display.*;
public dynamic class HighScoreMc extends MovieClip {
public var box:MovieClip;
}
}//package
Section 121
//HillBackMc (HillBackMc)
package {
import flash.display.*;
public dynamic class HillBackMc extends MovieClip {
}
}//package
Section 122
//HillFrontMc (HillFrontMc)
package {
import flash.display.*;
public dynamic class HillFrontMc extends MovieClip {
}
}//package
Section 123
//hitObsSound (hitObsSound)
package {
import flash.media.*;
public dynamic class hitObsSound extends Sound {
}
}//package
Section 124
//InGameLogoMc (InGameLogoMc)
package {
import flash.display.*;
public dynamic class InGameLogoMc extends MovieClip {
}
}//package
Section 125
//InkFullMc (InkFullMc)
package {
import flash.display.*;
public dynamic class InkFullMc extends MovieClip {
}
}//package
Section 126
//inkFullSound (inkFullSound)
package {
import flash.media.*;
public dynamic class inkFullSound extends Sound {
}
}//package
Section 127
//InkMc (InkMc)
package {
import flash.display.*;
public dynamic class InkMc extends MovieClip {
}
}//package
Section 128
//InkUnlimitedMc (InkUnlimitedMc)
package {
import flash.display.*;
public dynamic class InkUnlimitedMc extends MovieClip {
}
}//package
Section 129
//IronTowerMc (IronTowerMc)
package {
import flash.display.*;
public dynamic class IronTowerMc extends MovieClip {
public var pt_2:MovieClip;
public var pt_4:MovieClip;
public var pt_5:MovieClip;
public var pt_1:MovieClip;
public var pt_3:MovieClip;
}
}//package
Section 130
//LoadingMc (LoadingMc)
package {
import flash.display.*;
public dynamic class LoadingMc extends MovieClip {
public var logo_mc:branding_aligned_center;
public var rainbow:MovieClip;
}
}//package
Section 131
//mainscreenMusic (mainscreenMusic)
package {
import flash.media.*;
public dynamic class mainscreenMusic extends Sound {
}
}//package
Section 132
//ManMc (ManMc)
package {
import flash.display.*;
public dynamic class ManMc extends MovieClip {
}
}//package
Section 133
//ManStartSound (ManStartSound)
package {
import flash.media.*;
public dynamic class ManStartSound extends Sound {
}
}//package
Section 134
//MenuBirdSound (MenuBirdSound)
package {
import flash.media.*;
public dynamic class MenuBirdSound extends Sound {
}
}//package
Section 135
//MenuFirstMc (MenuFirstMc)
package {
import flash.display.*;
public dynamic class MenuFirstMc extends MovieClip {
public var copyright_btn:SimpleButton;
public var highScore:btn_highscore;
public var start:btn_start;
public var moreGames:btn_moregame;
public var logo_mc:branding_aligned_right;
public var sound_mc:btn_sound;
public var howToPlay:btn_howtoplay;
public var quality_mc:btn_quality;
}
}//package
Section 136
//MenuPassMc (MenuPassMc)
package {
import flash.display.*;
public dynamic class MenuPassMc extends MovieClip {
public var clouds:MovieClip;
}
}//package
Section 137
//MenuSecondMc (MenuSecondMc)
package {
import flash.display.*;
public dynamic class MenuSecondMc extends MovieClip {
public var ani:MovieClip;
}
}//package
Section 138
//missSound (missSound)
package {
import flash.media.*;
public dynamic class missSound extends Sound {
}
}//package
Section 139
//mouseDownStartSound (mouseDownStartSound)
package {
import flash.media.*;
public dynamic class mouseDownStartSound extends Sound {
}
}//package
Section 140
//MouseStyleMc (MouseStyleMc)
package {
import flash.display.*;
public dynamic class MouseStyleMc extends MovieClip {
}
}//package
Section 141
//music_1Music (music_1Music)
package {
import flash.media.*;
public dynamic class music_1Music extends Sound {
}
}//package
Section 142
//music_2Music (music_2Music)
package {
import flash.media.*;
public dynamic class music_2Music extends Sound {
}
}//package
Section 143
//music_3Music (music_3Music)
package {
import flash.media.*;
public dynamic class music_3Music extends Sound {
}
}//package
Section 144
//OpenUmbrellaSound (OpenUmbrellaSound)
package {
import flash.media.*;
public dynamic class OpenUmbrellaSound extends Sound {
}
}//package
Section 145
//overSound (overSound)
package {
import flash.media.*;
public dynamic class overSound extends Sound {
}
}//package
Section 146
//PointMc (PointMc)
package {
import flash.display.*;
public dynamic class PointMc extends MovieClip {
}
}//package
Section 147
//pressSound (pressSound)
package {
import flash.media.*;
public dynamic class pressSound extends Sound {
}
}//package
Section 148
//PyramidMc (PyramidMc)
package {
import flash.display.*;
public dynamic class PyramidMc extends MovieClip {
public var doorMc:MovieClip;
public var pt_2:MovieClip;
public var pt_4:MovieClip;
public var pt_5:MovieClip;
public var pt_6:MovieClip;
public var pt_1:MovieClip;
public var pt_9:MovieClip;
public var pt_7:MovieClip;
public var pt_8:MovieClip;
public var pt_3:MovieClip;
}
}//package
Section 149
//RainbowMc (RainbowMc)
package {
import flash.display.*;
public dynamic class RainbowMc extends MovieClip {
}
}//package
Section 150
//SailboatMc (SailboatMc)
package {
import flash.display.*;
public dynamic class SailboatMc extends MovieClip {
public var pt_22:MovieClip;
public var pt_24:MovieClip;
public var pt_26:MovieClip;
public var pt_23:MovieClip;
public var pt_21:MovieClip;
public var pt_25:MovieClip;
public var pt_2:MovieClip;
public var pt_4:MovieClip;
public var pt_5:MovieClip;
public var pt_1:MovieClip;
public var pt_6:MovieClip;
public var pt_7:MovieClip;
public var pt_3:MovieClip;
}
}//package
Section 151
//SeaBackMc (SeaBackMc)
package {
import flash.display.*;
public dynamic class SeaBackMc extends MovieClip {
}
}//package
Section 152
//SeaFrontMc (SeaFrontMc)
package {
import flash.display.*;
public dynamic class SeaFrontMc extends MovieClip {
}
}//package
Section 153
//Sparkle_1Mc (Sparkle_1Mc)
package {
import flash.display.*;
public dynamic class Sparkle_1Mc extends MovieClip {
}
}//package
Section 154
//Sparkle_2Mc (Sparkle_2Mc)
package {
import flash.display.*;
public dynamic class Sparkle_2Mc extends MovieClip {
}
}//package
Section 155
//SpeedUpMc (SpeedUpMc)
package {
import flash.display.*;
public dynamic class SpeedUpMc extends MovieClip {
}
}//package
Section 156
//startObsSound (startObsSound)
package {
import flash.media.*;
public dynamic class startObsSound extends Sound {
}
}//package
Section 157
//StatueMc (StatueMc)
package {
import flash.display.*;
public dynamic class StatueMc extends MovieClip {
public var pt_2:MovieClip;
public var pt_4:MovieClip;
public var pt_5:MovieClip;
public var pt_6:MovieClip;
public var pt_1:MovieClip;
public var pt_3:MovieClip;
}
}//package
Section 158
//TextEffectSound (TextEffectSound)
package {
import flash.media.*;
public dynamic class TextEffectSound extends Sound {
}
}//package
Section 159
//TextPointMc (TextPointMc)
package {
import flash.display.*;
public dynamic class TextPointMc extends MovieClip {
public var pos2_mc:MovieClip;
public var pos1_mc:MovieClip;
public function TextPointMc(){
addFrameScript(49, frame50);
}
function frame50(){
}
}
}//package
Section 160
//TitalMc (TitalMc)
package {
import api.*;
public dynamic class TitalMc extends ExtTxt {
}
}//package
Section 161
//TreeBackMc (TreeBackMc)
package {
import flash.display.*;
public dynamic class TreeBackMc extends MovieClip {
}
}//package
Section 162
//TreeFrontMc (TreeFrontMc)
package {
import flash.display.*;
public dynamic class TreeFrontMc extends MovieClip {
}
}//package
Section 163
//trophyMusic (trophyMusic)
package {
import flash.media.*;
public dynamic class trophyMusic extends Sound {
}
}//package
Section 164
//turnCardSound (turnCardSound)
package {
import flash.media.*;
public dynamic class turnCardSound extends Sound {
}
}//package
Section 165
//txt_3000game (txt_3000game)
package {
import api.*;
public dynamic class txt_3000game extends ExtTxt {
}
}//package
Section 166
//txt_achievements (txt_achievements)
package {
import api.*;
public dynamic class txt_achievements extends ExtTxt {
}
}//package
Section 167
//txt_achievements_1 (txt_achievements_1)
package {
import api.*;
public dynamic class txt_achievements_1 extends ExtTxt {
}
}//package
Section 168
//txt_achievements_2 (txt_achievements_2)
package {
import api.*;
public dynamic class txt_achievements_2 extends ExtTxt {
}
}//package
Section 169
//txt_achievements_3 (txt_achievements_3)
package {
import api.*;
public dynamic class txt_achievements_3 extends ExtTxt {
}
}//package
Section 170
//txt_achievements_4 (txt_achievements_4)
package {
import api.*;
public dynamic class txt_achievements_4 extends ExtTxt {
}
}//package
Section 171
//txt_achievements_5 (txt_achievements_5)
package {
import api.*;
public dynamic class txt_achievements_5 extends ExtTxt {
}
}//package
Section 172
//txt_achievements_6 (txt_achievements_6)
package {
import api.*;
public dynamic class txt_achievements_6 extends ExtTxt {
}
}//package
Section 173
//txt_achievements_7 (txt_achievements_7)
package {
import api.*;
public dynamic class txt_achievements_7 extends ExtTxt {
}
}//package
Section 174
//txt_back (txt_back)
package {
import api.*;
public dynamic class txt_back extends ExtTxt {
}
}//package
Section 175
//txt_best (txt_best)
package {
import api.*;
public dynamic class txt_best extends ExtTxt {
}
}//package
Section 176
//txt_credits (txt_credits)
package {
import api.*;
public dynamic class txt_credits extends ExtTxt {
}
}//package
Section 177
//txt_haotoplay_01 (txt_haotoplay_01)
package {
import api.*;
public dynamic class txt_haotoplay_01 extends ExtTxt {
}
}//package
Section 178
//txt_haotoplay_02 (txt_haotoplay_02)
package {
import api.*;
public dynamic class txt_haotoplay_02 extends ExtTxt {
}
}//package
Section 179
//txt_haotoplay_03 (txt_haotoplay_03)
package {
import api.*;
public dynamic class txt_haotoplay_03 extends ExtTxt {
}
}//package
Section 180
//txt_haotoplay_04 (txt_haotoplay_04)
package {
import api.*;
public dynamic class txt_haotoplay_04 extends ExtTxt {
}
}//package
Section 181
//txt_haotoplay_07 (txt_haotoplay_07)
package {
import api.*;
public dynamic class txt_haotoplay_07 extends ExtTxt {
}
}//package
Section 182
//txt_haotoplay_08 (txt_haotoplay_08)
package {
import api.*;
public dynamic class txt_haotoplay_08 extends ExtTxt {
}
}//package
Section 183
//txt_haotoplay_09 (txt_haotoplay_09)
package {
import api.*;
public dynamic class txt_haotoplay_09 extends ExtTxt {
}
}//package
Section 184
//txt_haotoplay_10 (txt_haotoplay_10)
package {
import api.*;
public dynamic class txt_haotoplay_10 extends ExtTxt {
}
}//package
Section 185
//txt_highscore_1 (txt_highscore_1)
package {
import api.*;
public dynamic class txt_highscore_1 extends ExtTxt {
}
}//package
Section 186
//txt_highscore_2 (txt_highscore_2)
package {
import api.*;
public dynamic class txt_highscore_2 extends ExtTxt {
}
}//package
Section 187
//txt_highscore_3 (txt_highscore_3)
package {
import api.*;
public dynamic class txt_highscore_3 extends ExtTxt {
}
}//package
Section 188
//txt_hoetoplay (txt_hoetoplay)
package {
import api.*;
public dynamic class txt_hoetoplay extends ExtTxt {
}
}//package
Section 189
//txt_low (txt_low)
package {
import api.*;
public dynamic class txt_low extends ExtTxt {
}
}//package
Section 190
//txt_more (txt_more)
package {
import api.*;
public dynamic class txt_more extends ExtTxt {
}
}//package
Section 191
//txt_moreadventureat_right (txt_moreadventureat_right)
package {
import api.*;
public dynamic class txt_moreadventureat_right extends ExtTxt {
}
}//package
Section 192
//txt_moreadventuregameson (txt_moreadventuregameson)
package {
import api.*;
public dynamic class txt_moreadventuregameson extends ExtTxt {
}
}//package
Section 193
//txt_moregames_2 (txt_moregames_2)
package {
import api.*;
public dynamic class txt_moregames_2 extends ExtTxt {
}
}//package
Section 194
//txt_name (txt_name)
package {
import api.*;
public dynamic class txt_name extends ExtTxt {
}
}//package
Section 195
//txt_next (txt_next)
package {
import api.*;
public dynamic class txt_next extends ExtTxt {
}
}//package
Section 196
//txt_no (txt_no)
package {
import api.*;
public dynamic class txt_no extends ExtTxt {
}
}//package
Section 197
//txt_normal (txt_normal)
package {
import api.*;
public dynamic class txt_normal extends ExtTxt {
}
}//package
Section 198
//txt_off (txt_off)
package {
import api.*;
public dynamic class txt_off extends ExtTxt {
}
}//package
Section 199
//txt_on (txt_on)
package {
import api.*;
public dynamic class txt_on extends ExtTxt {
}
}//package
Section 200
//txt_play (txt_play)
package {
import api.*;
public dynamic class txt_play extends ExtTxt {
}
}//package
Section 201
//txt_quality (txt_quality)
package {
import api.*;
public dynamic class txt_quality extends ExtTxt {
}
}//package
Section 202
//txt_record (txt_record)
package {
import api.*;
public dynamic class txt_record extends ExtTxt {
}
}//package
Section 203
//txt_score (txt_score)
package {
import api.*;
public dynamic class txt_score extends ExtTxt {
}
}//package
Section 204
//txt_score_2 (txt_score_2)
package {
import api.*;
public dynamic class txt_score_2 extends ExtTxt {
}
}//package
Section 205
//txt_skip (txt_skip)
package {
import api.*;
public dynamic class txt_skip extends ExtTxt {
}
}//package
Section 206
//txt_sound (txt_sound)
package {
import api.*;
public dynamic class txt_sound extends ExtTxt {
}
}//package
Section 207
//txt_start (txt_start)
package {
import api.*;
public dynamic class txt_start extends ExtTxt {
}
}//package
Section 208
//txt_submit (txt_submit)
package {
import api.*;
public dynamic class txt_submit extends ExtTxt {
}
}//package
Section 209
//txt_youname (txt_youname)
package {
import api.*;
public dynamic class txt_youname extends ExtTxt {
}
}//package
Section 210
//txt_yourscore (txt_yourscore)
package {
import api.*;
public dynamic class txt_yourscore extends ExtTxt {
}
}//package
Section 211
//UpPointMc (UpPointMc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class UpPointMc extends MovieClip {
public var pos_txt:TextField;
}
}//package
Section 212
//WindmillMc (WindmillMc)
package {
import flash.display.*;
public dynamic class WindmillMc extends MovieClip {
public var wheel_mc:MovieClip;
}
}//package