Section 1
//3_209 (_fla.3_209)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class 3_209 extends MovieClip {
public var dog_mc:MovieClip;
public function 3_209(){
addFrameScript(0, frame1);
}
function frame1(){
dog_mc.gotoAndStop(MovieClip(root).dogId);
}
}
}//package _fla
Section 2
//ddd_238 (_fla.ddd_238)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class ddd_238 extends MovieClip {
public var dog_mc:MovieClip;
public function ddd_238(){
addFrameScript(0, frame1);
}
function frame1(){
dog_mc.gotoAndStop(MovieClip(root).dogId);
}
}
}//package _fla
Section 3
//dog_name_178 (_fla.dog_name_178)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class dog_name_178 extends MovieClip {
public var _txt:TextField;
public function dog_name_178(){
addFrameScript(0, frame1);
}
function frame1(){
_txt.text = MovieClip(root).nick;
}
}
}//package _fla
Section 4
//flag_icon_347 (_fla.flag_icon_347)
package _fla {
import flash.display.*;
public dynamic class flag_icon_347 extends MovieClip {
public function flag_icon_347(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 5
//geksodf_116 (_fla.geksodf_116)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class geksodf_116 extends MovieClip {
public var next_btn:SimpleButton;
public var exit_btn:SimpleButton;
public function geksodf_116(){
addFrameScript(0, frame1, 1, frame2);
}
public function next_handler(_arg1:MouseEvent):void{
next_btn.removeEventListener(MouseEvent.CLICK, next_handler);
this.play();
}
public function exit_handler(_arg1:MouseEvent):void{
exit_btn.removeEventListener(MouseEvent.CLICK, exit_handler);
(this.parent as MovieClip).show_help(false);
this.gotoAndStop(1);
}
function frame1(){
stop();
next_btn.addEventListener(MouseEvent.CLICK, next_handler);
}
function frame2(){
stop();
exit_btn.addEventListener(MouseEvent.CLICK, exit_handler);
}
}
}//package _fla
Section 6
//givename_172 (_fla.givename_172)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class givename_172 extends MovieClip {
public function givename_172(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 7
//gou2toilet_267 (_fla.gou2toilet_267)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class gou2toilet_267 extends MovieClip {
public function gou2toilet_267(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
MovieClip(root).addV(7);
}
}
}//package _fla
Section 8
//gou3toilet_292 (_fla.gou3toilet_292)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class gou3toilet_292 extends MovieClip {
public function gou3toilet_292(){
addFrameScript(76, frame77);
}
function frame77(){
stop();
MovieClip(root).addV(7);
}
}
}//package _fla
Section 9
//gouquan_239 (_fla.gouquan_239)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class gouquan_239 extends MovieClip {
public var m3:MovieClip;
public var m1:MovieClip;
public var m2:MovieClip;
public function gouquan_239(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
MovieClip(root).dog_mc = m3;
}
function frame1(){
stop();
MovieClip(root).dog_mc = m1;
}
function frame2(){
stop();
MovieClip(root).dog_mc = m2;
}
}
}//package _fla
Section 10
//hellpad_113 (_fla.hellpad_113)
package _fla {
import flash.display.*;
import com.greensock.*;
import com.greensock.easing.*;
public dynamic class hellpad_113 extends MovieClip {
public function hellpad_113(){
addFrameScript(0, frame1);
}
public function show_help(_arg1:Boolean):void{
if (_arg1){
TweenLite.to(this, 0.5, {scaleX:1, scaleY:1, ease:Back.easeOut});
} else {
TweenLite.to(this, 0.5, {scaleX:0, scaleY:0});
};
}
function frame1(){
this.scaleX = (this.scaleY = 0);
}
}
}//package _fla
Section 11
//l_br_345 (_fla.l_br_345)
package _fla {
import flash.display.*;
import flash.text.*;
public dynamic class l_br_345 extends MovieClip {
public var text:TextField;
public var flag:MovieClip;
}
}//package _fla
Section 12
//lostmc_320 (_fla.lostmc_320)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class lostmc_320 extends MovieClip {
public var replay_btn:SimpleButton;
public var more_btn:SimpleButton;
public var dog_mc:MovieClip;
public var main:MovieClip;
public function lostmc_320(){
addFrameScript(0, frame1);
}
public function replay_handler(_arg1:MouseEvent):void{
main.replay();
}
function frame1(){
dog_mc.gotoAndStop(MovieClip(root).dogId);
main = MovieClip(root);
replay_btn.addEventListener(MouseEvent.CLICK, replay_handler);
more_btn.addEventListener(MouseEvent.CLICK, more);
this.addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
public function more(_arg1:MouseEvent):void{
main.More();
}
public function onRemoved(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
replay_btn.removeEventListener(MouseEvent.CLICK, replay_handler);
more_btn.removeEventListener(MouseEvent.CLICK, more);
}
}
}//package _fla
Section 13
//MainTimeline (_fla.MainTimeline)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import spill.localisation.*;
import com.greensock.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class MainTimeline extends MovieClip {
public const STATE_TREATMENT:String = "st_treatment";
public const STATE_EAT:String = "st_eat";
public const STATE_NORMAL:String = "st_normal";
public const STATE_FUN:String = "st_fun";
public const STATE_TRAINING:String = "st_training";
public const STATE_TEACH:String = "st_teach";
public const STATE_DRINK:String = "st_drink";
public const STATE_SLEEP:String = "st_sleep";
public const STATE_HAND:String = "st_hand";
public const STATE_WASH:String = "st_wash";
public const STATE_TOILET:String = "st_toilet";
public var state_1:MovieClip;
public var state_2:MovieClip;
public var item_1:MovieClip;
public var item_3:MovieClip;
public var item_5:MovieClip;
public var item_7:MovieClip;
public var item_2:MovieClip;
public var state_5:MovieClip;
public var item_4:MovieClip;
public var state_9:MovieClip;
public var state_6:MovieClip;
public var state_7:MovieClip;
public var item_9:MovieClip;
public var state_4:MovieClip;
public var item_8:MovieClip;
public var pauseOffset:int;
public var item_6:MovieClip;
public var state_3:MovieClip;
public var state_8:MovieClip;
public var hasFood:Boolean;
public var isPassed:Boolean;
public var btn_moregamesat:BrandingLogo;
public var help_btn:SimpleButton;
public var startTime:int;
public var i:int;
public var state1_mc:MovieClip;
public var pause_mc:MovieClip;
public var more_btn:SimpleButton;
public var lost_mc:MovieClip;
public var state_10:MovieClip;
public var currentState:String;
public var pause2_btn:SimpleButton;
public var lastClick:int;
public var item_10:MovieClip;
public var time:int;
public var play_btn:SimpleButton;
public var TIME:int;
public var win_mc:MovieClip;
public var gameData:Array;
public var m_1:MovieClip;
public var m_2:MovieClip;
public var go2_btn:SimpleButton;
public var start_btn:SimpleButton;
public var next_btn:SimpleButton;
public var moreGameURI:String;
public var dog5_mc:MovieClip;
public var isPaused:Boolean;
public var pause1_btn:SimpleButton;
public var outRoom:Boolean;
public var 新建符号_1:MovieClip;
public var help_mc:MovieClip;
public var d_mc:MovieClip;
public var pointData:Object;
public var isStart:Boolean;
public var nick:String;
public var go1_btn:SimpleButton;
public var hint1_mc:MovieClip;
public var isLost:Boolean;
public var dogId:int;
public var dog_mc:MovieClip;
public var sel_3:MovieClip;
public var sel_1:MovieClip;
public var sel_2:MovieClip;
public var inRoom:Boolean;
public var nick_txt:TextField;
public var fontList:Array;
public var hasMilk:Boolean;
public var lang:String;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function pause_handler(_arg1:MouseEvent):void{
pause_mc.show_pause(true);
}
public function $(_arg1:MovieClip, _arg2:Function, _arg3:String, _arg4:String="", _arg5:int=1, _arg6:int=-1):void{
var _local7:InteractiveObject;
var _local8:int;
if (_arg6 != -1){
_local8 = _arg5;
while (_local8 <= _arg6) {
_local7 = _arg1[((_arg3 + _local8) + _arg4)];
_arg2.apply(null, [_local7, _local8]);
_local8++;
};
} else {
_local8 = _arg5;
while ((_local7 = _arg1[((_arg3 + _local8) + _arg4)])) {
_arg2.apply(null, [_local7, _local8]);
_local8++;
};
};
}
public function handle_btnMoreGames(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getMoreGamesLink("Mainscreen")), "_blank");
}
public function game_win():void{
isPassed = true;
this.removeEventListener(Event.ENTER_FRAME, tick);
TweenLite.to(win_mc, 0.5, {scaleX:1, scaleY:1});
}
public function init_select_dog():void{
$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = true;
_arg1.buttonMode = true;
_arg1.lightColor = 6697779;
_arg1.initData = {scaleX:_arg1.scaleX, scaleY:_arg1.scaleY};
_arg1.addEventListener(MouseEvent.ROLL_OUT, sel_out);
_arg1.addEventListener(MouseEvent.ROLL_OVER, sel_over);
_arg1.addEventListener(MouseEvent.CLICK, sel_click);
}, "sel_");
dogId = -1;
next_btn.addEventListener(MouseEvent.CLICK, next_handler);
}
public function next_handler(_arg1:MouseEvent):void{
if (dogId < 1){
return;
};
clear_select_dog();
this.play();
}
public function help_handler(_arg1:MouseEvent):void{
help_mc.show_help(true);
}
public function clear_state(_arg1:String):void{
switch (_arg1){
case STATE_EAT:
break;
case STATE_DRINK:
break;
case STATE_SLEEP:
break;
case STATE_WASH:
if (inRoom){
item_4.clear_wash();
dog_mc.visible = true;
};
break;
case STATE_TREATMENT:
break;
case STATE_HAND:
break;
case STATE_TOILET:
break;
case STATE_FUN:
if (outRoom){
item_8.visible = true;
};
break;
case STATE_TEACH:
break;
case STATE_TRAINING:
if (outRoom){
item_10.visible = true;
};
break;
};
}
public function more_handler(_arg1:MouseEvent):void{
}
public function init_room_ui():void{
if (hasMilk){
m_2.gotoAndStop(m_2.totalFrames);
};
if (hasFood){
m_1.gotoAndStop(m_1.totalFrames);
};
lost_mc.scaleX = (lost_mc.scaleY = 0);
win_mc.scaleX = (win_mc.scaleY = 0);
d_mc.x = (750 / 2);
d_mc.y = 537;
hint1_mc.x = 262;
hint1_mc.y = 332;
hint1_mc.scaleX = (hint1_mc.scaleY = 0);
hint1_mc.scaleX = (hint1_mc.scaleY = 0);
}
public function clear_eat():void{
}
function frame5(){
stop();
init_room();
}
function frame1(){
moreGameURI = "http://www";
lang = "en";
nick = "";
TIME = 300;
pauseOffset = 0;
startTime = 0;
pointData = {eat:{x:265, y:524}, drink:{x:163, y:524}, sleep:{x:104, y:446}, teach:{x:353, y:390}, toilet:{x:633, y:300}, ball:{x:565, y:355}};
gameData = [undefined, {initV:100, speed:0.03, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}, {initV:100, speed:0.02, v:0, supply:30}];
isStart = false;
fontList = Font.enumerateFonts();
i = 0;
while (i < fontList.length) {
trace(fontList[i].fontName);
i++;
};
contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
Languages.initialize();
Languages.getLanguage("jp").textLanguage = "en_us";
Languages.getLanguage("cn").textLanguage = "en_us";
SpilGame.initialize("cute-puppy-daycare.html", PortalGroup.GIRL, "cute-puppy-daycare.html", this, true);
}
public function start_handler(_arg1:MouseEvent):void{
if (nick_txt.text == ""){
return;
};
nick = nick_txt.text;
start_btn.removeEventListener(MouseEvent.CLICK, start_handler);
play();
}
public function in_toilet():void{
if (((outRoom) && ((currentState == STATE_TOILET)))){
dog_mc.gotoAndStop("toilet");
};
}
function frame6(){
stop();
init_outroom();
}
public function enter_state(_arg1:String):void{
}
public function init_start():void{
play_btn.addEventListener(MouseEvent.CLICK, play_handler);
help_btn.addEventListener(MouseEvent.CLICK, help_handler);
isStart = false;
}
function frame4(){
stop();
init_nickname();
}
public function try_2_fill(_arg1:int):void{
switch (_arg1){
case 1:
if (((((inRoom) && (hasFood))) && ((currentState == STATE_NORMAL)))){
currentState = STATE_EAT;
dog_mc.gotoAndStop("walk_left");
TweenLite.to(d_mc, 0.5, {x:pointData.eat.x, y:pointData.eat.y, onComplete:in_eat});
};
break;
case 2:
if (((((inRoom) && (hasMilk))) && ((currentState == STATE_NORMAL)))){
currentState = STATE_DRINK;
dog_mc.gotoAndStop("walk_left");
TweenLite.to(d_mc, 0.5, {x:pointData.drink.x, y:pointData.drink.y, onComplete:in_drink});
};
break;
};
}
function frame3(){
stop();
init_select_dog();
}
public function in_state_eat():void{
}
public function show_warning(_arg1:int):void{
var _local2:MovieClip;
if (_arg1 == 0){
return;
};
_local2 = null;
if (hint1_mc){
hint1_mc.gotoAndStop(_arg1);
hint1_mc.scaleX = (hint1_mc.scaleY = 1);
};
}
public function get_id(_arg1:String, _arg2:int=1):int{
var _local3:Array;
_local3 = _arg1.split("_");
return (int(_local3[_arg2]));
}
public function clear_select_dog():void{
next_btn.removeEventListener(MouseEvent.CLICK, next_handler);
$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.removeEventListener(MouseEvent.ROLL_OUT, sel_out);
_arg1.removeEventListener(MouseEvent.ROLL_OVER, sel_over);
_arg1.removeEventListener(MouseEvent.CLICK, sel_click);
}, "sel_");
}
public function init_room():void{
inRoom = true;
init_room_ui();
init_room_event();
currentState = STATE_NORMAL;
if (!isStart){
start_game();
};
}
function frame2(){
stop();
more_btn.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
btn_moregamesat.buttonMode = true;
btn_moregamesat.mouseEnabled = true;
btn_moregamesat.addEventListener(MouseEvent.CLICK, handle_btnMoreGames);
stop();
init_start();
}
public function init_nickname():void{
nick = "";
nick_txt.text = "";
dog5_mc.gotoAndStop(dogId);
start_btn.addEventListener(MouseEvent.CLICK, start_handler);
}
public function init_room_event():void{
pause1_btn.addEventListener(MouseEvent.CLICK, pause_handler);
go1_btn.addEventListener(MouseEvent.CLICK, go_handler);
$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, item_click_handler);
}, "item_");
$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, d_click);
}, "m_", "", 1, 2);
}
public function in_teach():void{
if (((outRoom) && ((currentState == STATE_TEACH)))){
dog_mc.gotoAndStop("teach");
};
}
public function update_pause(_arg1:int):void{
pauseOffset = (pauseOffset + _arg1);
}
public function addLight(_arg1:MovieClip):void{
_arg1.lightData = {speed:1, blur:5, color:0xFFFFFF};
if (_arg1.hasOwnProperty("lightColor")){
_arg1.lightData.color = _arg1.lightColor;
};
_arg1.addEventListener(Event.ENTER_FRAME, lightHandler);
}
public function in_ball():void{
if (((outRoom) && ((currentState == STATE_FUN)))){
dog_mc.gotoAndStop("ball");
};
}
public function go_handler(_arg1:MouseEvent):void{
clear_state(currentState);
if (inRoom){
inRoom = false;
this.nextFrame();
} else {
outRoom = false;
this.prevFrame();
};
}
public function in_drink():void{
if (((inRoom) && ((currentState == STATE_DRINK)))){
dog_mc.gotoAndStop("drink");
};
}
public function init_gameData():void{
var _local1:int;
startTime = getTimer();
pauseOffset = 0;
isLost = false;
isPassed = false;
isPaused = false;
lastClick = 0;
hasFood = false;
hasMilk = false;
_local1 = 1;
while (_local1 <= 10) {
gameData[_local1].v = (gameData[_local1].initV / 2);
_local1++;
};
}
public function init_outroom_event():void{
pause2_btn.addEventListener(MouseEvent.CLICK, pause_handler);
go2_btn.addEventListener(MouseEvent.CLICK, go_handler);
$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, item_click_handler);
}, "item_", "", 7);
}
public function init_outroom():void{
outRoom = true;
hint1_mc.x = 547;
hint1_mc.y = 0x0200;
hint1_mc.scaleX = (hint1_mc.scaleY = 0);
init_outroom_event();
d_mc.x = (750 / 2);
d_mc.y = 464;
dog_mc.gotoAndStop("normal");
}
public function removeLight(_arg1:MovieClip):void{
_arg1.removeEventListener(Event.ENTER_FRAME, lightHandler);
_arg1.filters = [];
}
public function in_sleep():void{
if (((inRoom) && ((currentState == STATE_SLEEP)))){
dog_mc.gotoAndStop("sleep");
};
}
public function in_eat():void{
if (((inRoom) && ((currentState == STATE_EAT)))){
dog_mc.gotoAndStop("eat");
};
}
public function leave_state_eat():void{
}
public function play_handler(_arg1:MouseEvent):void{
clear_start();
this.play();
}
public function top(_arg1:DisplayObject):void{
_arg1.parent.setChildIndex(_arg1, (_arg1.parent.numChildren - 1));
}
public function lightHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.lightData.blur = (_local2.lightData.blur + _local2.lightData.speed);
_local2.filters = [getBitmapFilter(_local2.lightData)];
if (_local2.lightData.blur >= 16){
_local2.lightData.speed = -1;
} else {
if (_local2.lightData.blur <= 5){
_local2.lightData.speed = 1;
};
};
}
public function sel_click(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
sel_dog(get_id(_local2.name));
}
public function game_lost():void{
if (((isLost) || (isPassed))){
return;
};
isLost = true;
this.removeEventListener(Event.ENTER_FRAME, tick);
TweenLite.to(lost_mc, 0.5, {scaleX:1, scaleY:1});
}
public function More(_arg1:MouseEvent=null):void{
navigateToURL(new URLRequest(moreGameURI), "_blank");
}
public function item_click_handler(_arg1:MouseEvent):void{
var _local2:int;
_local2 = get_id(_arg1.currentTarget.name);
lastClick = _local2;
switch (_local2){
case 1:
m_1.gotoAndPlay(2);
hasFood = true;
break;
case 2:
m_2.gotoAndPlay(2);
hasMilk = true;
break;
case 3:
if (currentState != STATE_NORMAL){
return;
};
clear_state(currentState);
currentState = STATE_SLEEP;
dog_mc.gotoAndStop("walk_left");
TweenLite.to(d_mc, 0.5, {x:pointData.sleep.x, y:pointData.sleep.y, onComplete:in_sleep});
break;
case 4:
if (currentState != STATE_NORMAL){
return;
};
clear_state(currentState);
currentState = STATE_WASH;
dog_mc.visible = false;
item_4.gotoAndStop(1);
item_4.visible = true;
item_4.start();
break;
case 5:
if (currentState != STATE_NORMAL){
return;
};
clear_state(currentState);
currentState = STATE_TREATMENT;
dog_mc.gotoAndStop("treatment");
break;
case 6:
if (currentState != STATE_NORMAL){
return;
};
clear_state(currentState);
currentState = STATE_HAND;
dog_mc.gotoAndStop("hand");
break;
case 7:
if (currentState != STATE_NORMAL){
return;
};
clear_state(currentState);
currentState = STATE_TOILET;
d_mc.x = (750 / 2);
d_mc.y = 464;
dog_mc.gotoAndStop("toilet");
break;
case 8:
if (currentState != STATE_NORMAL){
return;
};
item_8.visible = false;
clear_state(currentState);
currentState = STATE_FUN;
dog_mc.gotoAndStop("walk_right");
TweenLite.to(d_mc, 0.5, {x:pointData.ball.x, y:pointData.ball.y, onComplete:in_ball});
break;
case 9:
if (currentState != STATE_NORMAL){
return;
};
clear_state(currentState);
currentState = STATE_TEACH;
dog_mc.gotoAndStop("walk_left");
TweenLite.to(d_mc, 0.5, {x:pointData.teach.x, y:pointData.teach.y, onComplete:in_teach});
break;
case 10:
if (currentState != STATE_NORMAL){
return;
};
item_10.visible = false;
clear_state(currentState);
currentState = STATE_TRAINING;
dog_mc.gotoAndStop("train");
break;
};
}
public function sel_over(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.scaleX = (_local2.scaleY = (_local2.initData.scaleX * 1.05));
}
public function tick(_arg1:Event):void{
var e = _arg1;
if (((isLost) || (isPassed))){
this.removeEventListener(Event.ENTER_FRAME, tick);
return;
};
if (isPaused){
return;
};
$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.tick();
}, "state_");
state1_mc.tick();
if (outRoom){
};
time = (TIME - Math.round((((getTimer() - startTime) - pauseOffset) / 1000)));
if (time <= 0){
check_over();
};
}
public function handle_btnSpil(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()));
}
public function start_game():void{
init_gameData();
isStart = true;
this.addEventListener(Event.ENTER_FRAME, tick);
}
public function clear_room():void{
}
public function check_over():void{
if (state1_mc.value < 0.6){
game_lost();
} else {
game_win();
};
}
public function sel_dog(_arg1:int):void{
if (dogId == _arg1){
return;
};
if (dogId > 0){
removeLight(this[("sel_" + dogId)]);
};
dogId = _arg1;
if (dogId > 0){
addLight(this[("sel_" + dogId)]);
};
}
public function addV(_arg1:int):void{
var _local2:int;
var _local3:MovieClip;
_local2 = (gameData[_arg1].v + gameData[_arg1].supply);
_local2 = Math.min(_local2, gameData[_arg1].initV);
gameData[_arg1].v = _local2;
dog_mc.gotoAndStop("normal");
dog_mc.visible = true;
currentState = STATE_NORMAL;
if (inRoom){
if (_arg1 == 1){
d_mc.x = (d_mc.x + 40);
hasFood = false;
m_1.gotoAndStop(1);
} else {
if (_arg1 == 2){
hasMilk = false;
m_2.gotoAndStop(1);
};
};
d_mc.x = (750 / 2);
d_mc.y = 537;
};
if (outRoom){
if (_arg1 == 10){
item_10.visible = true;
} else {
if (_arg1 == 8){
item_8.visible = true;
d_mc.x = (d_mc.x - 50);
};
};
d_mc.x = (750 / 2);
d_mc.y = 464;
};
_local3 = null;
_local3 = hint1_mc;
_local3.scaleX = (_local3.scaleY = 0);
}
public function replay():void{
BgMusic.try2stop();
this.gotoAndStop("start");
}
public function sel_out(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.scaleX = (_local2.scaleY = _local2.initData.scaleX);
}
public function d_click(_arg1:MouseEvent):void{
var _local2:int;
_local2 = get_id(_arg1.currentTarget.name);
try_2_fill(_local2);
}
public function clear_start():void{
play_btn.removeEventListener(MouseEvent.CLICK, play_handler);
help_btn.removeEventListener(MouseEvent.CLICK, help_handler);
more_btn.removeEventListener(MouseEvent.CLICK, more_handler);
}
public function getBitmapFilter(_arg1:Object):BitmapFilter{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Number;
_local2 = _arg1.color;
_local3 = 1;
_local4 = _arg1.blur;
_local5 = _arg1.blur;
_local6 = 2;
_local7 = false;
_local8 = false;
_local9 = BitmapFilterQuality.HIGH;
return (new GlowFilter(_local2, _local3, _local4, _local5, _local6, _local9, _local7, _local8));
}
}
}//package _fla
Section 14
//pausemc_327 (_fla.pausemc_327)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import com.greensock.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class pausemc_327 extends MovieClip {
public var isPaused:Boolean;
public var pauseTime:int;
public var dog_mc:MovieClip;
public var main:MovieClip;
public var pauseTimer:int;
public var start_btn:SimpleButton;
public function pausemc_327(){
addFrameScript(0, frame1);
}
public function show_pause(_arg1:Boolean):void{
if (isPaused == _arg1){
return;
};
isPaused = _arg1;
main.isPaused = _arg1;
if (_arg1){
pauseTimer = getTimer();
TweenLite.to(this, 0.3, {scaleX:1, scaleY:1});
} else {
TweenLite.to(this, 0.3, {scaleX:0, scaleY:0});
main.update_pause((getTimer() - pauseTimer));
};
}
function frame1(){
main = MovieClip(root);
this.scaleX = (this.scaleY = 0);
isPaused = false;
start_btn.addEventListener(MouseEvent.CLICK, start_handler);
this.addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
public function onDeactived(_arg1:Event):void{
if (((((main.isLost) || (main.isPassed))) || (main.isPaused))){
return;
};
show_pause(true);
}
public function start_handler(_arg1:MouseEvent):void{
show_pause(false);
}
public function onRemoved(_arg1:Event):void{
stage.removeEventListener(Event.DEACTIVATE, onDeactived);
start_btn.removeEventListener(MouseEvent.CLICK, start_handler);
this.removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
}
}//package _fla
Section 15
//pleasetakeacute_152 (_fla.pleasetakeacute_152)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class pleasetakeacute_152 extends MovieClip {
public function pleasetakeacute_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 16
//Timeline_10 (_fla.Timeline_10)
package _fla {
import flash.display.*;
public dynamic class Timeline_10 extends MovieClip {
public function Timeline_10(){
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package _fla
Section 17
//Timeline_211 (_fla.Timeline_211)
package _fla {
import flash.display.*;
public dynamic class Timeline_211 extends MovieClip {
public var m_2:MovieClip;
public var m_3:MovieClip;
public var m_1:MovieClip;
public var m_4:MovieClip;
public function Timeline_211(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
m_1.stop();
}
}
}//package _fla
Section 18
//Timeline_212 (_fla.Timeline_212)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_212 extends MovieClip {
public function Timeline_212(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
MovieClip(parent.parent).wash_stepover(1);
}
}
}//package _fla
Section 19
//Timeline_213 (_fla.Timeline_213)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_213 extends MovieClip {
public function Timeline_213(){
addFrameScript(34, frame35);
}
function frame35(){
stop();
MovieClip(parent.parent).wash_stepover(2);
}
}
}//package _fla
Section 20
//Timeline_216 (_fla.Timeline_216)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_216 extends MovieClip {
public function Timeline_216(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(parent.parent).wash_stepover(2);
}
}
}//package _fla
Section 21
//Timeline_225 (_fla.Timeline_225)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_225 extends MovieClip {
public function Timeline_225(){
addFrameScript(85, frame86);
}
function frame86(){
stop();
MovieClip(parent.parent).wash_stepover(4);
}
}
}//package _fla
Section 22
//Timeline_229 (_fla.Timeline_229)
package _fla {
import flash.display.*;
public dynamic class Timeline_229 extends MovieClip {
public function Timeline_229(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package _fla
Section 23
//Timeline_234 (_fla.Timeline_234)
package _fla {
import flash.display.*;
public dynamic class Timeline_234 extends MovieClip {
public function Timeline_234(){
addFrameScript(0, frame1, 28, frame29);
}
function frame1(){
stop();
}
function frame29(){
stop();
}
}
}//package _fla
Section 24
//Timeline_240 (_fla.Timeline_240)
package _fla {
import flash.display.*;
public dynamic class Timeline_240 extends MovieClip {
public function Timeline_240(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 25
//Timeline_241 (_fla.Timeline_241)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_241 extends MovieClip {
public function Timeline_241(){
addFrameScript(77, frame78);
}
function frame78(){
stop();
MovieClip(root).addV(7);
}
}
}//package _fla
Section 26
//Timeline_244 (_fla.Timeline_244)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_244 extends MovieClip {
public function Timeline_244(){
addFrameScript(77, frame78);
}
function frame78(){
stop();
MovieClip(root).addV(9);
}
}
}//package _fla
Section 27
//Timeline_245 (_fla.Timeline_245)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_245 extends MovieClip {
public var item_8:MovieClip;
public function Timeline_245(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
MovieClip(root).addV(8);
}
}
}//package _fla
Section 28
//Timeline_252 (_fla.Timeline_252)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_252 extends MovieClip {
public function Timeline_252(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
MovieClip(root).addV(6);
}
}
}//package _fla
Section 29
//Timeline_255 (_fla.Timeline_255)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_255 extends MovieClip {
public function Timeline_255(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
MovieClip(root).addV(1);
}
}
}//package _fla
Section 30
//Timeline_256 (_fla.Timeline_256)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_256 extends MovieClip {
public function Timeline_256(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
MovieClip(root).addV(2);
}
}
}//package _fla
Section 31
//Timeline_257 (_fla.Timeline_257)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_257 extends MovieClip {
public function Timeline_257(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
MovieClip(root).addV(3);
}
}
}//package _fla
Section 32
//Timeline_259 (_fla.Timeline_259)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_259 extends MovieClip {
public function Timeline_259(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
MovieClip(root).addV(10);
}
}
}//package _fla
Section 33
//Timeline_261 (_fla.Timeline_261)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_261 extends MovieClip {
public function Timeline_261(){
addFrameScript(106, frame107);
}
function frame107(){
stop();
MovieClip(root).addV(5);
}
}
}//package _fla
Section 34
//Timeline_266 (_fla.Timeline_266)
package _fla {
import flash.display.*;
public dynamic class Timeline_266 extends MovieClip {
public function Timeline_266(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 35
//Timeline_273 (_fla.Timeline_273)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_273 extends MovieClip {
public function Timeline_273(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
MovieClip(root).addV(9);
}
}
}//package _fla
Section 36
//Timeline_276 (_fla.Timeline_276)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_276 extends MovieClip {
public var item_8:MovieClip;
public function Timeline_276(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
MovieClip(root).addV(8);
}
}
}//package _fla
Section 37
//Timeline_280 (_fla.Timeline_280)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_280 extends MovieClip {
public function Timeline_280(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
MovieClip(root).addV(6);
}
}
}//package _fla
Section 38
//Timeline_282 (_fla.Timeline_282)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_282 extends MovieClip {
public function Timeline_282(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
MovieClip(root).addV(1);
}
}
}//package _fla
Section 39
//Timeline_283 (_fla.Timeline_283)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_283 extends MovieClip {
public function Timeline_283(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
MovieClip(root).addV(2);
}
}
}//package _fla
Section 40
//Timeline_284 (_fla.Timeline_284)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_284 extends MovieClip {
public function Timeline_284(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
MovieClip(root).addV(3);
}
}
}//package _fla
Section 41
//Timeline_288 (_fla.Timeline_288)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_288 extends MovieClip {
public function Timeline_288(){
addFrameScript(80, frame81);
}
function frame81(){
stop();
MovieClip(root).addV(10);
}
}
}//package _fla
Section 42
//Timeline_291 (_fla.Timeline_291)
package _fla {
import flash.display.*;
public dynamic class Timeline_291 extends MovieClip {
public function Timeline_291(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 43
//Timeline_294 (_fla.Timeline_294)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_294 extends MovieClip {
public function Timeline_294(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
MovieClip(root).addV(9);
}
}
}//package _fla
Section 44
//Timeline_297 (_fla.Timeline_297)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_297 extends MovieClip {
public var item_8:MovieClip;
public function Timeline_297(){
addFrameScript(47, frame48);
}
function frame48(){
stop();
MovieClip(root).addV(8);
}
}
}//package _fla
Section 45
//Timeline_302 (_fla.Timeline_302)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_302 extends MovieClip {
public function Timeline_302(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
MovieClip(root).addV(6);
}
}
}//package _fla
Section 46
//Timeline_304 (_fla.Timeline_304)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_304 extends MovieClip {
public function Timeline_304(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
MovieClip(root).addV(1);
}
}
}//package _fla
Section 47
//Timeline_306 (_fla.Timeline_306)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_306 extends MovieClip {
public function Timeline_306(){
addFrameScript(35, frame36);
}
function frame36(){
stop();
MovieClip(root).addV(2);
}
}
}//package _fla
Section 48
//Timeline_307 (_fla.Timeline_307)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_307 extends MovieClip {
public function Timeline_307(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
MovieClip(root).addV(3);
}
}
}//package _fla
Section 49
//Timeline_309 (_fla.Timeline_309)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_309 extends MovieClip {
public function Timeline_309(){
addFrameScript(81, frame82);
}
function frame82(){
stop();
MovieClip(root).addV(10);
}
}
}//package _fla
Section 50
//Timeline_31 (_fla.Timeline_31)
package _fla {
import flash.display.*;
public dynamic class Timeline_31 extends MovieClip {
public function Timeline_31(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package _fla
Section 51
//Timeline_314 (_fla.Timeline_314)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class Timeline_314 extends MovieClip {
public var rect:Rectangle;
public var id:int;
public var warningState:Object;
public var a:Array;
public var value:Number;
public var g:Graphics;
public var bar_mc:MovieClip;
public var o:Object;
public var r:Array;
public var _txt:TextField;
public var main:MovieClip;
public var normalState:Object;
public function Timeline_314(){
addFrameScript(0, frame1);
}
function frame1(){
warningState = {c:[16731530, 0xFF0000, 16731530]};
normalState = {c:[0xD100, 0x8000, 0xD100]};
a = [0xFF, 0xFF, 0xFF];
g = bar_mc.graphics;
rect = bar_mc.getRect(bar_mc);
r = [64, 127, 191];
_txt.visible = false;
bar_mc.removeChildAt(0);
main = MovieClip(root);
id = main.get_id(this.name);
if (id != 0){
o = main.gameData[id];
};
}
public function tick():void{
var _local1:Number;
if (id != 0){
o.v = (o.v - o.speed);
if (o.v < 0){
o.v = 0;
};
_local1 = (o.v / o.initV);
draw_state(_local1);
if (_local1 <= 0.1){
main.show_warning(id);
};
} else {
draw_state(get_avg());
};
}
public function get_avg():Number{
var _local1:Number;
var _local2:Number;
_local1 = 0;
_local2 = 1;
while (_local2 <= 10) {
_local1 = (_local1 + (main.gameData[_local2].v / main.gameData[_local2].initV));
_local2++;
};
return ((_local1 / 10));
}
public function draw_state(_arg1:Number):void{
var _local2:Matrix;
var _local3:Object;
_local2 = new Matrix();
_txt.text = (Math.round((_arg1 * 100)).toString() + "%");
_local2.createGradientBox((rect.width * _arg1), rect.height, (Math.PI / 2));
g.clear();
if (_arg1 <= 0){
main.game_lost();
return;
};
_local3 = normalState;
if (_arg1 < 0.4){
_local3 = warningState;
};
value = _arg1;
g.beginGradientFill("linear", _local3.c, a, r, _local2);
g.drawRoundRect(0, 0, (rect.width * _arg1), rect.height, 6, 6);
g.endFill();
}
}
}//package _fla
Section 52
//times_319 (_fla.times_319)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class times_319 extends MovieClip {
public var _txt:TextField;
public var main:MovieClip;
public function times_319(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
_txt.text = "";
this.addEventListener(Event.ENTER_FRAME, do_update);
this.addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
public function onRemoved(_arg1:Event):void{
this.removeEventListener(Event.ENTER_FRAME, do_update);
this.removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
public function do_update(_arg1:Event):void{
_txt.text = main.time.toString();
}
}
}//package _fla
Section 53
//winmc_325 (_fla.winmc_325)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class winmc_325 extends MovieClip {
public var replay_btn:SimpleButton;
public var more_btn:SimpleButton;
public var dog_mc:MovieClip;
public var main:MovieClip;
public function winmc_325(){
addFrameScript(0, frame1);
}
public function replay_handler(_arg1:MouseEvent):void{
main.replay();
}
function frame1(){
dog_mc.gotoAndStop(MovieClip(root).dogId);
main = MovieClip(root);
replay_btn.addEventListener(MouseEvent.CLICK, replay_handler);
more_btn.addEventListener(MouseEvent.CLICK, more);
this.addEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
}
public function more(_arg1:MouseEvent):void{
main.More();
}
public function onRemoved(_arg1:Event):void{
this.removeEventListener(Event.REMOVED_FROM_STAGE, onRemoved);
replay_btn.removeEventListener(MouseEvent.CLICK, replay_handler);
more_btn.removeEventListener(MouseEvent.CLICK, more);
}
}
}//package _fla
Section 54
//words_in_175 (_fla.words_in_175)
package _fla {
import flash.display.*;
public dynamic class words_in_175 extends MovieClip {
public function words_in_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 55
//xiao_204 (_fla.xiao_204)
package _fla {
import flash.xml.*;
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.media.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.printing.*;
public dynamic class xiao_204 extends MovieClip {
public var wash_mc:MovieClip;
public var isRuning:Boolean;
public var step_2:MovieClip;
public var dog_mc:MovieClip;
public var step_1:MovieClip;
public var main:MovieClip;
public var step:int;
public function xiao_204(){
addFrameScript(0, frame1);
}
public function item_click(_arg1:MouseEvent):void{
var _local2:int;
_local2 = main.get_id(_arg1.currentTarget.name);
step = _local2;
main.removeLight(this[("step_" + _local2)]);
this[("step_" + _local2)].mouseEnabled = false;
if (_local2 == 1){
wash_mc.m_1.gotoAndPlay(2);
} else {
wash_mc.gotoAndStop(_local2);
this[("step_" + _local2)].visible = false;
};
wash_mc.visible = true;
}
public function start():void{
step = 0;
isRuning = true;
dog_mc.visible = true;
main.addLight(step_1);
wash_mc.gotoAndStop(1);
step_1.visible = true;
this.mouseEnabled = false;
this.mouseChildren = true;
step_1.mouseEnabled = true;
}
function frame1(){
main = MovieClip(root);
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.visible = false;
_arg1.lightColor = 0x990099;
_arg1.addEventListener(MouseEvent.CLICK, item_click);
}, "step_");
this.mouseEnabled = true;
this.mouseChildren = false;
step = 0;
isRuning = false;
wash_mc.gotoAndStop(1);
wash_mc.visible = false;
dog_mc.visible = false;
}
public function wash_stepover(_arg1:int):void{
if (_arg1 == 2){
main.addV(4);
isRuning = false;
wash_mc.visible = false;
wash_mc.gotoAndStop(1);
dog_mc.visible = false;
clear_wash();
} else {
this[("step_" + _arg1)].visible = false;
this[("step_" + _arg1)].mouseEnabled = true;
_arg1++;
this[("step_" + _arg1)].visible = true;
this[("step_" + _arg1)].mouseEnabled = true;
main.addLight(this[("step_" + _arg1)]);
};
}
public function clear_wash():void{
wash_mc.visible = false;
wash_mc.gotoAndStop(1);
isRuning = false;
this.mouseEnabled = true;
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.visible = false;
}, "step_");
dog_mc.visible = false;
}
}
}//package _fla
Section 56
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var start:Number;
public var name:String;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var priority:int;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 57
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:TweenCore;
var _local5:Number;
var _local6:TweenCore;
_local4 = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.cachedOrphan)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
_arg1.cachedOrphan = false;
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.cachedOrphan){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
_arg1.cachedOrphan = true;
}
}
}//package com.greensock.core
Section 58
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
public var cachedTime:Number;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var data;
public var timeline:SimpleTimeline;
public var cachedOrphan:Boolean;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
public var cachedPauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.5;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
var _local3:SimpleTimeline;
_rawPrevTime = -1;
super();
this.vars = ((_arg2)!=null) ? _arg2 : {};
if (this.vars.isGSVars){
this.vars = this.vars.vars;
};
this.cachedDuration = (this.cachedTotalDuration = _arg1);
_delay = (this.vars.delay) ? Number(this.vars.delay) : 0;
this.cachedTimeScale = (this.vars.timeScale) ? Number(this.vars.timeScale) : 1;
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
_local3 = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean;
_local2 = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
var _local2:Number;
_local2 = (_arg1 / this.cachedDuration);
this.cachedDuration = (this.cachedTotalDuration = _arg1);
if (((((this.active) && (!(this.cachedPaused)))) && (!((_arg1 == 0))))){
this.setTotalTime((this.cachedTotalTime * _local2), true);
};
setDirtyCache(false);
}
public function invalidate():void{
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.totalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime >= this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore;
_local2 = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
this.cachedPauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - this.cachedPauseTime));
this.cachedPauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((this.cachedPauseTime) || ((this.cachedPauseTime == 0)))) ? this.cachedPauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
this.gc = !(_arg1);
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.cachedOrphan))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (((!(_arg2)) && (!(this.cachedOrphan)))){
this.timeline.remove(this, true);
};
};
return (false);
}
}
}//package com.greensock.core
Section 59
//Back (com.greensock.easing.Back)
package com.greensock.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 * 0.5) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package com.greensock.easing
Section 60
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.display.*;
import flash.events.*;
import com.greensock.core.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
public var target:Object;
public var ratio:Number;// = 0
protected var _overwrite:int;
protected var _notifyPluginsOfEnabled:Boolean;
protected var _hasPlugins:Boolean;
public var cachedPT1:PropTween;
protected var _overwrittenProps:Object;
public var propTweenLookup:Object;
protected var _ease:Function;
public static const version:Number = 11.52;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:Array;
var _local5:TweenLite;
ratio = 0;
super(_arg2, _arg3);
if (_arg1 == null){
throw (new Error("Cannot tween a null object."));
};
this.target = _arg1;
if ((((this.target is TweenCore)) && (this.vars.timeScale))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
_local4 = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number;
var _local6:PropTween;
_local5 = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime >= 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
_local6 = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (((_local4) && (!(this.gc)))){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (this.vars.onInit){
this.vars.onInit.apply(null, this.vars.onInitParams);
};
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (--_local2 > -1) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInitAllProps", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
if (((!((_local3 == _local4.target.propName))) || ((_local4.name == "")))){
delete propTweenLookup[_local3];
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (((_arg2) && (!((_arg1 == _overwrittenProps))))){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
if ((_arg1 in masterList)){
_local4 = masterList[_arg1];
_local5 = _local4.length;
while (--_local5 > -1) {
_local6 = _local4[_local5];
if (!_local6.gc){
if (_arg2){
_local6.complete(false, false);
};
if (_arg3 != null){
_local6.killVars(_arg3);
};
if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){
_local6.setEnabled(false, false);
};
};
};
if (_arg3 == null){
delete masterList[_arg1];
};
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame = (rootFrame + 1);
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (--_local5 > -1) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 61
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var useGoogleAnalitics:Boolean;// = true
public var emailPage:String;
public var name:String;
public var site_id:uint;
public var isExternal:Boolean;// = false
public var id:Number;
public var hostingDomain:String;// = ""
public var preferedLanguage:String;// = ""
public var moreLink:String;// = ""
public var hasSendToFriendLink:Boolean;// = true
public var portalGroup:uint;
public var emailLink:String;// = "game"
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
public function Brand(){
moreLink = "";
emailLink = "game";
useGoogleAnalitics = true;
hasSendToFriendLink = true;
preferedLanguage = "";
isExternal = false;
hostingDomain = "";
super();
}
public function exportXML():XML{
var _local1:XML;
var _local2:XML;
var _local3:XML;
_local1 = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
_local2 = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String;
_local5 = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String;
_local6 = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
private function get utm_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
var _local5:String;
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
_local5 = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
public static function stripSubDomain(_arg1:String):String{
var _local2:Array;
if (!_arg1){
return ("");
};
_local2 = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 62
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.display.*;
import flash.events.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
addFrameScript(0, frame1);
super();
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
function frame1(){
stop();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
}
}//package spill.localisation
Section 63
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
public static function getBrandsArray():Array{
var _local1:Array;
var _local2:Brand;
_local1 = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local1:XML;
var _local2:Brand;
_local1 = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
}
}//package spill.localisation
Section 64
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var forceFont:String;// = null
public var id:uint;
public var portal_groups:Array;
public var textLanguage:String;
public var bwcId:int;
public var embedFonts:Boolean;// = true
public var displayName:String;// = ""
public var dname:String;
public function Language(_arg1:String, _arg2:String=null){
embedFonts = true;
embedInputFonts = true;
forceFont = null;
references = [];
displayName = "";
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:XMLNode;
var _local3:Array;
var _local4:Array;
var _local5:int;
_local1 = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
_local2 = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
_local3 = [];
_local4 = PortalGroup.channelNames;
_local5 = 0;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 65
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
public static var languages:Object = new Object();
private static var _init:Boolean = false;
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("nl");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.bwcId = 3;
addLanguage(_local1);
_local1 = new Language("es");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.girlsgogames.es";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 9;
addLanguage(_local1);
_local1 = new Language("pl");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.gry.pl";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 6;
addLanguage(_local1);
_local1 = new Language("fr");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 4;
addLanguage(_local1);
_local1 = new Language("en_us", "us");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 1;
addLanguage(_local1);
addReference(_local1, "en");
_local1 = new Language("id");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.games.co.id";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.games.co.id";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 11;
addLanguage(_local1);
_local1 = new Language("ru");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 12;
addLanguage(_local1);
_local1 = new Language("se");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 7;
addLanguage(_local1);
addReference(_local1, "sv");
_local1 = new Language("it");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.gioco.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 8;
addLanguage(_local1);
_local1 = new Language("en_uk", "uk");
_local1.displayName = "English";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 13;
addLanguage(_local1);
_local1 = new Language("cn");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_teen = "www.game.com.cn";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 2;
_local1.embedInputFonts = false;
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedInputFonts = false;
_local1.bwcId = 19;
addLanguage(_local1);
addReference(_local1, "ja");
_local1 = new Language("ar");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.dailygame.com";
_local1.p_girl = "www.dailygame.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 20;
addLanguage(_local1);
addReference(_local1, "ar");
_local1 = new Language("es_mx", "mx");
_local1.displayName = "Español (mx)";
_local1.p_family = "www.juegos.mx";
_local1.p_tween = "www.juegos.mx";
_local1.p_girl = "www.juegosdechicas.mx";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español (ar)";
_local1.p_family = "www.juegos.com.ar";
_local1.p_tween = "www.juegos.com.ar";
_local1.p_girl = "www.juegosdechicas.com.ar";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function exportXML():XMLNode{
var _local1:Array;
var _local2:XMLNode;
var _local3:Language;
_local1 = getLanguagesArray();
_local2 = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local1:Array;
var _local2:Object;
var _local3:Language;
_local1 = new Array();
_local2 = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
}
}//package spill.localisation
Section 66
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
public class LanguageSelectBox extends MovieClip {
private var flag:MovieClip;
private var mc:MovieClip;
private var popup:MovieClip;
private var languageName_text:TextField;
public function LanguageSelectBox(){
trace("new langselecbox");
super();
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
private function added(_arg1:Event=null):void{
trace("addedselebnox");
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
public function init():void{
var _local1:Array;
var _local2:int;
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
_local1 = new Array(popup.l_br, popup.l_de, popup.l_en_us, popup.l_fr, popup.l_in, popup.l_jp, popup.l_pt, popup.l_ru, popup.l_ar, popup.l_cn, popup.l_en_uk, popup.l_es, popup.l_id, popup.l_it, popup.l_nl, popup.l_pl, popup.l_se, popup.l_es_mx, popup.l_es_ar);
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl")))){
this.visible = false;
return;
};
this.visible = true;
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
languageName_text.embedFonts = SpilGame.currentLanguage.embedInputFonts;
};
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
}
}//package spill.localisation
Section 67
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var flag:MovieClip;
public var languageName_text:TextField;
}
}//package spill.localisation
Section 68
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_se:MovieClip;
public var l_ar:MovieClip;
public var l_br:MovieClip;
public var l_in:MovieClip;
public var l_cn:MovieClip;
public var l_de:MovieClip;
public var l_es_mx:MovieClip;
public var l_es:MovieClip;
public var l_en_uk:MovieClip;
public var l_fr:MovieClip;
public var l_en_us:MovieClip;
public var l_pl:MovieClip;
public var l_pt:MovieClip;
public var l_nl:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_it:MovieClip;
public var l_jp:MovieClip;
public var l_ru:MovieClip;
}
}//package spill.localisation
Section 69
//LocalizedTextField (spill.localisation.LocalizedTextField)
package spill.localisation {
import flash.events.*;
public class LocalizedTextField extends TextFieldFit {
private var regex:RegExp;
private var originalText:String;
public function LocalizedTextField(){
regex = /{([^{}]*)}/g;
super();
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
added();
}
private function languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
trace(super.text);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
private function replaceFn():String{
var _local2:String;
_local2 = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
}
}//package spill.localisation
Section 70
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const YOUNG_ADULTS:uint = 3;
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local1:XMLNode;
var _local2:int;
var _local3:XMLNode;
_local1 = new XMLNode(1, "channels");
_local2 = 0;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 71
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 72
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.ui.*;
import flash.net.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookieName:String = "spilgames_language_v100";
private static const cookiePath:String = "/";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
private static var strings:Object = new Object();
public static var currentBranding:Brand;
private static var contexMenuItem:ContextMenuItem;
spil_internal static var gameName:String;
spil_internal static var debugHostDomain:String = "";
private static var localDomains:Object = new Object();
spil_internal static var emailPage:String;
private static var channelLock:Boolean = false;
spil_internal static var debugEmbedDomain:String = "";
private static var eventDispatcher:EventDispatcher;
private static var _init:Boolean = false;
public static var currentLanguage:Language;
spil_internal static var portalGroup:uint;
private static var stage:Sprite;
public static function getSpilCompanyLink():String{
var _local1:String;
_local1 = "http://www.gameportal.net/";
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (isExternal) ? "external" : "internal"));
_local1 = (_local1 + ("&utm_campaign=" + gameName));
_local1 = (_local1 + ("&utm_source=" + Brand.stripSubDomain((embedDomain) ? embedDomain : hostingDomain)));
_local1 = (_local1 + "&utm_content=Branding_Link");
return (_local1);
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String;
_local2 = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getString(_arg1:String):String{
var _local2:Object;
_local2 = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String;
_local2 = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language;
_local2 = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function get systemLanguage():Language{
return (Languages.getLanguage(Capabilities.language));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject;
_local2 = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
public static function exportXML():XML{
var _local1:XML;
_local1 = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public static function outputAllBrands():String{
var _local1:Array;
var _local2:String;
var _local3:Brand;
_local1 = Brandings.getBrandsArray();
_local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String;
_local2 = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String;
_local1 = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject;
var _local2:String;
_local1 = SharedObject.getLocal(cookieName, cookiePath);
_local2 = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
}
}//package spill.localisation
Section 73
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 74
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.filters.*;
import flash.utils.*;
public class TextFieldFit extends MovieClip {
protected var _text:String;// = "default"
protected var _textSize:Number;// = 12
protected var _embedFonts:Boolean;// = true
protected var _glowColor:uint;// = 0
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var w:Number;
protected var _useGlowFilter:Boolean;// = false
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
private var field:TextField;
protected var _gridFitType:String;// = "pixel"
protected var _glowQuality:Number;// = 1
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _bold:Boolean;// = false
private var sizeChanged:Boolean;// = true
private var embeddedFonts:Array;
protected var _selectable:Boolean;// = false
private var format:TextFormat;
private var valid:Boolean;// = true
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceAAType:String = null;
spil_internal static var forceFont:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean;
var _local2:Number;
var _local3:Number;
sizeChanged = true;
valid = true;
_text = "default";
_textColor = 0;
_textSize = 12;
_multiline = false;
_disableWordwrap = false;
_hAlign = "left";
_vAlign = "top";
_bold = false;
_underline = false;
_italic = false;
_selectable = false;
_font = "";
_embedFonts = true;
_antiAliasType = "advanced";
_gridFitType = "pixel";
_useGlowFilter = false;
_glowBlur = 3;
_glowColor = 0;
_glowStrength = 5;
_glowQuality = 1;
super();
_local1 = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
_local2 = width;
_local3 = height;
if (numChildren > 0){
removeChildAt(0);
};
if (!field){
field = new TextField();
addChild(field);
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_local2, _local3);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
public function get italic():Boolean{
return (_italic);
}
public function get textColor():uint{
return (_textColor);
}
public function get vAlign():String{
return (_vAlign);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
public function get bold():Boolean{
return (_bold);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textSize():Number{
return (_textSize);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
private function doesTextFit():Boolean{
if (((((field.textHeight + (gutter * 2)) > h)) || (((((field.textWidth + (gutter * 2)) > w)) && (((!(field.multiline)) || (alwaysCheckWidth))))))){
return (false);
};
return (true);
}
public function get glowStrength():Number{
return (_glowStrength);
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function get text():String{
return (_text);
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
public function get hAlign():String{
return (_hAlign);
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function get textField():TextField{
return (field);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
}
}//package spill.localisation
Section 75
//bg_sound (bg_sound)
package {
import flash.media.*;
public dynamic class bg_sound extends Sound {
}
}//package
Section 76
//BgMusic (BgMusic)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public class BgMusic extends MovieClip {
public static var bMusic:Boolean = true;
public static var autoStoped:Boolean = false;
public static var position:Number = 0;
private static var channel:SoundChannel;
public static var sound:Sound;
public function BgMusic(){
this.addEventListener(MouseEvent.CLICK, clickHandler);
this.addEventListener(Event.ADDED_TO_STAGE, init);
this.addEventListener(Event.REMOVED_FROM_STAGE, removeHandler);
sound = new bg_sound();
stop();
this.buttonMode = true;
this.mouseChildren = false;
}
public function autoStart():void{
if (autoStoped){
autoStoped = false;
bMusic = true;
action();
};
}
private function init(_arg1:Event):void{
if (bMusic){
this.gotoAndStop(1);
channel = sound.play(position, 9999);
channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
} else {
this.gotoAndStop(2);
};
}
private function removeHandler(_arg1:Event):void{
autoStoped = false;
if (channel){
position = channel.position;
channel.stop();
};
}
private function action():void{
if (bMusic){
this.gotoAndStop(1);
if (channel){
channel.stop();
};
channel = sound.play(position, 9999);
channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
} else {
this.gotoAndStop(2);
position = channel.position;
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
}
private function clickHandler(_arg1:MouseEvent):void{
bMusic = !(bMusic);
autoStoped = false;
action();
}
public function forceStop():void{
if (bMusic){
autoStoped = true;
bMusic = false;
action();
};
}
private function soundCompleteHandler(_arg1:Event):void{
position = 0;
channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
channel = sound.play(0, 9999);
channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
}
public static function try2stop():void{
if (channel){
channel.stop();
};
}
}
}//package