Section 1
//fury_eyes_look_60 (_fla.fury_eyes_look_60)
package _fla {
import flash.display.*;
public dynamic class fury_eyes_look_60 extends MovieClip {
public function fury_eyes_look_60(){
addFrameScript(25, frame26);
}
function frame26(){
stop();
}
}
}//package _fla
Section 2
//fury_preloader_4 (_fla.fury_preloader_4)
package _fla {
import flash.display.*;
public dynamic class fury_preloader_4 extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package _fla
Section 3
//preload_mc_2 (_fla.preload_mc_2)
package _fla {
import flash.display.*;
import flash.text.*;
public dynamic class preload_mc_2 extends MovieClip {
public var tf:TextField;
}
}//package _fla
Section 4
//Bucket (classes.Bucket)
package classes {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import gs.*;
import flash.utils.*;
public class Bucket extends bucket_mc {
var selection:Sprite;
var eff:Sprite;
var blik:Sprite;
public function Bucket(_arg1:String, _arg2:Number){
this.scaleX = (this.scaleY = 1.4);
this.name = _arg1;
var _local3:ColorTransform = new ColorTransform();
_local3.color = _arg2;
this.color.transform.colorTransform = _local3;
selection = new color_light();
addChild(selection);
selection.visible = false;
var _local4:* = selection.glow.filters[0];
_local4.color = _arg2;
selection.glow.filters = [_local4];
mouseChildren = false;
val = 0;
}
function get val():Number{
return (color.scaleY);
}
function set val(_arg1:Number):void{
var to = _arg1;
var newVal:Number = ((to > 1)) ? 1 : to;
if (((!((color.scaleY == 1))) && ((newVal == 1)))){
showEffect();
};
if (newVal == 0){
select(false);
try {
removeChild(blik);
} catch(e:Error) {
};
};
TweenMax.to(color, 0.2, {scaleY:newVal});
}
function select(_arg1:Boolean):void{
selection.visible = _arg1;
}
function showEffect():void{
SoundMan.playEffect("bottle");
eff = new paints_effect();
addChild(eff);
TweenMax.delayedCall(1, removeChild, [eff]);
blik = new paint_blik();
TweenMax.delayedCall(0.9, addChild, [blik]);
}
}
}//package classes
Section 5
//Clock (classes.Clock)
package classes {
import flash.events.*;
import flash.display.*;
import gs.*;
import flash.utils.*;
import flash.text.*;
import gs.easing.*;
public class Clock extends Sprite {
protected var curColor:String;
protected var clock:Clock_mc;
public function Clock(){
clock = new Clock_mc();
addChild(clock);
}
protected function setText(_arg1:String):void{
clock.border.timeTxt.text = _arg1;
}
protected function setFormat(_arg1:String):void{
if (_arg1 == curColor){
return;
};
trace("setFormat");
clock.border.timeTxt.embedFonts = true;
var _local2:Font = new Irina();
var _local3:TextFormat = clock.border.timeTxt.getTextFormat();
_local3.font = _local2.fontName;
clock.border.timeTxt.antiAliasType = AntiAliasType.ADVANCED;
_local3.size = 30;
if (_arg1 == "red"){
_local3.color = 0xFFFF00;
curColor = "red";
} else {
_local3.color = 0xFFFFFF;
curColor = "white";
};
clock.border.timeTxt.defaultTextFormat = _local3;
}
protected function warning(_arg1:Event=null):void{
var _local2:Number = 2.3;
TweenMax.sequence(clock.border, [{time:0.9, scaleX:_local2, scaleY:_local2, ease:Elastic.easeOut}, {time:0.1, scaleX:1, scaleY:1}]);
}
public function setTime(_arg1:uint=0):void{
if (_arg1 <= 30){
warning();
setFormat("red");
} else {
setFormat("white");
};
var _local2:uint = (_arg1 / 60);
var _local3:uint = (_arg1 % 60);
var _local4:String = _local2.toString();
if (_local4.length == 1){
_local4 = ("0" + _local4);
};
var _local5:String = _local3.toString();
if (_local5.length == 1){
_local5 = ("0" + _local5);
};
setText(((_local4 + ":") + _local5));
}
}
}//package classes
Section 6
//Cursor (classes.Cursor)
package classes {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
import flash.ui.*;
public class Cursor extends Sprite {
private var body;
private var _mod:String;// = "norm"
var bodies:Object;
var colors:Object;
private var col_;
public function Cursor(_arg1:String="norm"){
colors = {green:0xCC00, yellow:0xFFCC00, pink:16724889, blue:3381759, orange:0xFF3300};
bodies = {norm:new cursor_norm(), pause:new kursor_pauza(), brush:new cursor_brush()};
super();
addEventListener(Event.ADDED_TO_STAGE, appearHandler);
addEventListener(Event.REMOVED_FROM_STAGE, appearHandler);
mod = _arg1;
Mouse.hide();
}
private function timerHandler(_arg1:TimerEvent):void{
body.x = stage.mouseX;
body.y = stage.mouseY;
Mouse.hide();
}
function get mod():String{
return (_mod);
}
function get color():String{
return (col_);
}
function set mod(_arg1:String):void{
var to = _arg1;
try {
removeChild(body);
} catch(e:Error) {
};
switch (to){
case "norm":
color = null;
break;
case "brush":
break;
case "pause":
break;
};
_mod = to;
body = bodies[_mod];
trace(_mod, bodies[_mod]);
body.cacheAsBitmap = true;
addChild(body);
if (stage){
body.x = stage.mouseX;
body.y = stage.mouseY;
};
this.mouseEnabled = false;
this.mouseChildren = false;
body.filters = null;
}
function set color(_arg1:String):void{
var _local2:ColorTransform;
col_ = _arg1;
if (mod == "brush"){
_local2 = new ColorTransform();
trace("brush set color to", col_);
_local2.color = colors[col_];
body.paint_mc.transform.colorTransform = _local2;
};
}
private function appearHandler(_arg1:Event):void{
if (_arg1.type == Event.ADDED_TO_STAGE){
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
} else {
Mouse.show();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, moveHandler);
};
}
function moveHandler(_arg1:MouseEvent):void{
body.x = _arg1.stageX;
body.y = _arg1.stageY;
_arg1.updateAfterEvent();
}
function show(_arg1:Boolean):void{
if (_arg1){
mod = "norm";
} else {
mod = "pause";
};
}
}
}//package classes
Section 7
//Dancer (classes.Dancer)
package classes {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Dancer extends Sprite {
protected var statesAndPlaces:Object;
protected var place:String;
public var tmr:Timer;
public var dancer:MovieClip;
public static var states:Array = new Array("baraban", "dj", "hlop", "normal");
public function Dancer(_arg1:int=1){
initStates();
tmr = new Timer(6000);
tmr.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true);
tmr.start();
x = 200;
y = 200;
switch (_arg1){
case 1:
place = "forest";
break;
case 2:
place = "beach";
break;
case 3:
place = "castle";
break;
default:
place = "forest";
break;
};
dancer = new (statesAndPlaces[("Tanzus_dance_" + place)]);
addChild(dancer);
}
protected function onTimer(_arg1:Event):void{
var _local2:Number = randRange(0, 3);
var _local3:Number = randRange(0, 3);
if (_local2 == _local3){
trace("RANDOM");
changeState();
};
}
protected function changeState():void{
var _local1:Number = randRange(0, 2);
removeChild(dancer);
switch (states[_local1]){
case "baraban":
dancer = new (statesAndPlaces[("Tanzus_baraban_" + place)]);
break;
case "dj":
dancer = new (statesAndPlaces[("Tanzus_dj_" + place)]);
break;
case "hlop":
dancer = new (statesAndPlaces[("Tanzus_hlop_" + place)]);
break;
default:
break;
};
addChild(dancer);
dancer.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
protected function initStates():void{
statesAndPlaces = new Object();
statesAndPlaces["Tanzus_dance_beach"] = tanzus_dance_beach;
statesAndPlaces["Tanzus_dance_forest"] = Tanzus_dance_forest;
statesAndPlaces["Tanzus_dance_castle"] = tanzus_dance_castle;
statesAndPlaces["Tanzus_baraban_beach"] = tanzus_baraban_beach;
statesAndPlaces["Tanzus_baraban_forest"] = Tanzus_baraban_forest;
statesAndPlaces["Tanzus_baraban_castle"] = tanzus_baraban_castle;
statesAndPlaces["Tanzus_dj_beach"] = tanzus_dj_beach;
statesAndPlaces["Tanzus_dj_forest"] = Tanzus_dj_forest;
statesAndPlaces["Tanzus_dj_castle"] = tanzus_dj_castle;
statesAndPlaces["Tanzus_hlop_beach"] = tanzus_dj_beach;
statesAndPlaces["Tanzus_hlop_forest"] = Tanzus_dj_forest;
statesAndPlaces["Tanzus_hlop_castle"] = tanzus_dj_castle;
}
private function onEnterFrame(_arg1:Event):void{
if (dancer.currentFrame == dancer.totalFrames){
dancer.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
removeChild(dancer);
dancer = new (statesAndPlaces[("Tanzus_dance_" + place)]);
addChild(dancer);
};
}
protected function randRange(_arg1:Number, _arg2:Number):Number{
return ((Math.floor((Math.round((Math.random() * _arg2)) - _arg1)) + _arg1));
}
}
}//package classes
Section 8
//EndScreen (classes.EndScreen)
package classes {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class EndScreen extends MovieClip {
private var mode:String;
private var m_score:Number;
private var msgWnd:Sprite;
private var btnRestart:MyButton;
private var m_diff:Number;
private var btnExit:MyButton;
private var m_time:String;
public function EndScreen(_arg1:String="lose", _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:String="ru"){
var wndMode = _arg1;
var score = _arg2;
var time = _arg3;
var diff = _arg4;
var lng = _arg5;
super();
m_score = score;
m_time = parseTime(time);
m_diff = diff;
mode = wndMode;
trace("endscreen ", score, time, diff);
if (mode == "win"){
msgWnd = new Win_wnd();
SoundMan.playEffect("success");
};
if (mode == "lose"){
msgWnd = new Lose_wnd();
SoundMan.playEffect("fail");
};
switch (lng){
case "ru":
if (mode == "lose"){
btnExit = new MyButton("КАРТА");
};
msgWnd.score.text = "Очки:";
msgWnd.time.text = "Время игры:";
if (mode == "win"){
msgWnd.title.text = "ПОБЕДА!";
btnRestart = new MyButton("ДАЛЕЕ");
} else {
msgWnd.title.text = "Попробуй ещё!";
btnRestart = new MyButton("ПОВТОРИТЬ");
msgWnd.diff.text = "Тебе не хватило очков!";
};
break;
case "en":
if (mode == "lose"){
btnExit = new MyButton("MAP");
};
msgWnd.score.text = "Score:";
msgWnd.time.text = "Game time:";
if (mode == "win"){
msgWnd.title.text = "VICTORY!";
btnRestart = new MyButton("NEXT");
} else {
msgWnd.title.text = "Try again!";
btnRestart = new MyButton("REPLAY");
msgWnd.diff.text = " You lose points!";
};
break;
default:
break;
};
if (btnExit){
btnExit.x = 244.6;
btnExit.y = 255.8;
msgWnd.addChild(btnExit);
};
btnRestart.x = 555.5;
btnRestart.y = 255.8;
msgWnd.addChild(btnRestart);
try {
addChild(msgWnd);
} catch(e:Error) {
return;
};
btnRestart.addEventListener(MouseEvent.CLICK, onRestart);
if (btnExit){
btnExit.addEventListener(MouseEvent.CLICK, onExit);
};
msgWnd.scoreTxt.autoSize = TextFieldAutoSize.LEFT;
msgWnd.timeTxt.autoSize = TextFieldAutoSize.LEFT;
msgWnd.scoreTxt.mouseEnabled = false;
msgWnd.timeTxt.mouseEnabled = false;
msgWnd.scoreTxt.text = m_score;
msgWnd.timeTxt.text = m_time;
trace("??", msgWnd.scoreTxt.text);
try {
msgWnd.diffTxt.text = m_diff;
msgWnd.diffTxt.mouseEnabled = false;
} catch(e:Error) {
};
}
public function parseTime(_arg1:uint=0):String{
var _local2:uint = (_arg1 / 60);
var _local3:uint = (_arg1 % 60);
var _local4:String = _local2.toString();
if (_local4.length == 1){
_local4 = ("0" + _local4);
};
var _local5:String = _local3.toString();
if (_local5.length == 1){
_local5 = ("0" + _local5);
};
return (((_local4 + ":") + _local5));
}
protected function onRestart(_arg1:Event=null):void{
var _local2:GameEvent;
btnRestart.removeEventListener(MouseEvent.CLICK, onRestart);
if (btnExit){
btnExit.removeEventListener(MouseEvent.CLICK, onExit);
};
SoundMan.playEffect("button");
trace("OnRestart", mode);
switch (mode){
case "win":
_local2 = new GameEvent(GameEvent.NEXT_LEVEL);
break;
case "lose":
_local2 = new GameEvent(GameEvent.RESTART);
break;
};
dispatchEvent(_local2);
}
protected function onExit(_arg1:Event=null):void{
btnRestart.removeEventListener(MouseEvent.CLICK, onRestart);
if (btnExit){
btnExit.removeEventListener(MouseEvent.CLICK, onExit);
};
trace("OnExit");
SoundMan.playEffect("button");
var _local2:GameEvent = new GameEvent(GameEvent.MENU);
dispatchEvent(_local2);
}
}
}//package classes
Section 9
//Field (classes.Field)
package classes {
import flash.events.*;
import flash.display.*;
import gs.*;
import flash.utils.*;
import fl.transitions.easing.*;
import flash.ui.*;
public class Field extends Sprite {
protected var blackLimit:int;
var mock:Sprite;
var seq_mult:int;// = 1
var nquant:int;// = 0
protected var tmpFuryMax:int;
protected var tmr:Timer;
var firstTime:Boolean;// = true
var issueTracker:PosMove;
var path:Array;
var from:Square;// = null
var rb:Boolean;// = false
var palitra:Palitra;
var clv_Squares:Array;
private var refToMain:Main;
var marg:Number;
var blacks;// = 0
var to_delete:Array;
var noBlacks:int;// = 0
var to:Square;// = null
var currentSquare:Square;
var hintTimer:Timer;
static var BallTypes:Array = new Array("green", "yellow", "pink", "blue", "orange");
public function Field(_arg1:Sprite, _arg2:uint=6, _arg3:uint=6, _arg4:int=0, _arg5:int=1, _arg6:Main=null){
refToMain = _arg6;
tmpFuryMax = 0;
switch (_arg5){
case 1:
blackLimit = 1;
break;
case 2:
blackLimit = 3;
break;
case 3:
blackLimit = 5;
break;
default:
blackLimit = 1;
break;
};
hintTimer = new Timer(10000);
hintTimer.addEventListener(TimerEvent.TIMER, hintHandler, false, 0, true);
tmr = new Timer(2500);
tmr.addEventListener(TimerEvent.TIMER, onTimer, false, 0, true);
tmr.start();
var _local7:Sprite = _arg1;
var _local8:DisplayObjectContainer = _local7.parent;
_local8.removeChild(_local7);
_local7.x = (_local7.y = 0);
_local8.addChild(this);
this.addChild(_local7);
_local7.back.cacheAsBitmap = true;
_local7.back.mouseChildren = false;
_local7.back.mouseEnabled = false;
marg = _arg4;
mock = _local7.fld;
MovieClip(mock).stop();
mock.cacheAsBitmap = true;
createField(_arg2, _arg3);
enableField(false, "const");
issueTracker = new PosMove(this);
palitra = new Palitra(this, _local7.palitra_mock, BallTypes);
addEventListener(GameEvent.READY, readyHandler, false, 0, true);
addEventListener(MouseEvent.CLICK, fieldClickHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, fieldMouseHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, fieldMouseHandler, false, 0, true);
}
protected function fall(_arg1:Array):void{
var _local2:Fury;
trace("fall ", _arg1);
for each (_local2 in _arg1) {
if (_local2.under){
_local2.under.busy = null;
};
_local2.drop(_local2.toSet.y);
_local2.toSet.busy = _local2;
nquant++;
};
}
protected function checkAround(_arg1:Square):Array{
var _local2:Array = new Array();
_local2[0] = {pos:"left", fury:getSquare((_arg1.xPos - 1), _arg1.yPos)};
_local2[1] = {pos:"right", fury:getSquare((_arg1.xPos + 1), _arg1.yPos)};
_local2[2] = {pos:"up", fury:getSquare(_arg1.xPos, (_arg1.yPos - 1))};
_local2[3] = {pos:"down", fury:getSquare(_arg1.xPos, (_arg1.yPos + 1))};
return (_local2);
}
protected function place(_arg1:Array):void{
var _local2:Fury;
for each (_local2 in _arg1) {
mock.addChild(_local2);
_local2.y = (_local2.y - 300);
};
fall(_arg1);
}
public function fillAllField():void{
var _local1:Array = [6, 6, 6, 6, 6, 6];
afterGravity(_local1);
}
private function updatePoints(_arg1:Array):void{
var _local3:*;
var _local4:GameEvent;
palitra.updateColorContent(_arg1);
var _local2:int = ((seq_mult >= SoundMan.delEff.length)) ? (SoundMan.delEff.length - 1) : seq_mult;
SoundMan.playEffect("row", _local2);
for each (_local3 in _arg1) {
if (_local3 > 0){
_local4 = new GameEvent(GameEvent.POINTS);
_local4.obj = {pt:_local3, mult:seq_mult};
dispatchEvent(_local4);
};
};
}
protected function generate(_arg1:int, _arg2:int):Array{
var _local5:int;
var _local6:Fury;
var _local3:Array = new Array();
var _local4:int;
while (_local4 <= (_arg2 - 1)) {
_local5 = randRange(0, 4);
_local6 = createBall(_arg1, _local4, BallTypes[_local5]);
_local6.toSet = getSquare(_arg1, _local4);
_local6.under = _local6.toSet;
_local6.under.busy = _local6;
_local3[_local4] = _local6;
_local4++;
};
return (_local3);
}
protected function explore(_arg1:Array):void{
var _local5:Fury;
var _local6:*;
var _local2:Array = new Array();
var _local3:* = "-";
var _local4:int;
while (_local4 < _arg1.length) {
_local5 = _arg1[_local4].busy;
_local6 = ((_local5 == null)) ? "-" : _local5.color;
if (_local3 != _local6){
addToList(_local2);
_local2 = new Array();
};
if (_local5 != null){
_local2.push(_local5);
};
_local3 = _local6;
_local4++;
};
addToList(_local2);
}
private function randRange(_arg1:Number, _arg2:Number):Number{
return ((Math.floor((Math.round((Math.random() * _arg2)) - _arg1)) + _arg1));
}
protected function seek(_arg1:Boolean=false):Array{
var _local6:Array;
var _local7:Array;
to_delete = new Array();
var _local2:int;
while (_local2 < rowCount) {
_local6 = getRow(_local2);
explore(_local6);
_local2++;
};
var _local3:int;
while (_local3 < columnCount) {
_local7 = getColumn(_local3);
explore(_local7);
_local3++;
};
if (to_delete.length > 0){
if (!_arg1){
resultative = true;
};
} else {
if (!_arg1){
resultative = false;
};
};
trace("to_delete.length", to_delete.length);
var _local4:Array = new Array();
var _local5:int;
while (_local5 < to_delete.length) {
if (to_delete[_local5].color != "black"){
_local4.push(to_delete[_local5]);
};
_local5++;
};
to_delete = _local4;
if (!refToMain.gameJacket){
if ((((to_delete.length == 0)) && ((tmpFuryMax > 0)))){
trace("TMP FURY MAX:", tmpFuryMax);
refToMain.kongregate.stats.submit("Maximum_Reduce", tmpFuryMax);
};
};
return (to_delete);
}
public function createBall(_arg1:int, _arg2:int, _arg3:String):Fury{
var _local4:Fury;
_local4 = refToMain.provider.getMeFury();
_local4.changeColor(_arg3);
_local4.mouseEnabled = false;
_local4.mouseChildren = false;
_local4.addEventListener(GameEvent.READY, readyHandler, false, 0, true);
if (_arg1 != null){
_local4.x = clv_Squares[_arg1][_arg2].x;
_local4.y = clv_Squares[_arg1][_arg2].y;
_local4.under = clv_Squares[_arg1][_arg2];
clv_Squares[_arg1][_arg2].busy = _local4;
};
return (_local4);
}
protected function endExchange(_arg1:Array):void{
var _local2:Square;
var _local3:Object;
for each (_local2 in _arg1) {
_local2.select(false);
};
if (rb == false){
_local3 = seekAndDestroy(false, "endExchange");
if (_local3.res == 0){
rb = true;
SoundMan.playEffect("decline");
exchangeFurys(_arg1[0], _arg1[1], true);
};
} else {
rb = false;
};
pokeAll();
}
public function getSquare(_arg1:int, _arg2:int):Square{
if ((((_arg1 < 0)) || ((_arg2 < 0)))){
return (null);
};
if ((((_arg1 > (clv_Squares.length - 1))) || ((_arg2 > (clv_Squares[0].length - 1))))){
return (null);
};
var _local3:* = clv_Squares[_arg1][_arg2];
return (_local3);
}
private function getRow(_arg1:int):Array{
var _local3:*;
var _local2:Array = new Array();
for (_local3 in clv_Squares) {
_local2.push(clv_Squares[_local3][_arg1]);
};
return (_local2);
}
protected function onTimer(_arg1:Event):void{
var _local4:int;
var _local5:Number;
var _local6:Fury;
var _local7:Square;
var _local2:int;
while (_local2 < clv_Squares.length) {
_local4 = 0;
while (_local4 < clv_Squares.length) {
getSquare(_local2, _local4).turnToFriend();
_local4++;
};
_local2++;
};
var _local3:Number = 0;
while (_local3 < clv_Squares.length) {
_local5 = 0;
while (_local5 < clv_Squares[_local3].length) {
_local6 = clv_Squares[_local3][_local5].busy;
if (_local6 != null){
_local7 = getSquare(_local3, _local5);
_local6.takeAround(checkAround(_local7));
};
if (clv_Squares[_local3][_local5].busy == null){
} else {
clv_Squares[_local3][_local5].busy.onTimer();
};
_local5++;
};
_local3++;
};
}
protected function readyHandler(_arg1:Event):void{
var _local2:Object;
var _local3:GameEvent;
var _local4:GameEvent;
nquant--;
if (nquant == 0){
seq_mult++;
_local2 = seekAndDestroy(firstTime, "readyHandler");
if (_local2.res == 0){
if (firstTime){
_local3 = new GameEvent(GameEvent.START);
dispatchEvent(_local3);
} else {
_local4 = new GameEvent(GameEvent.RESUME);
dispatchEvent(_local4);
};
pokeAll();
seq_mult = 1;
if ((noBlacks > 0)){
noBlacks--;
//unresolved jump
};
firstTime = false;
};
};
}
function resume():void{
var _local1:*;
enableField(true, "resume");
if (Game.autoplay){
_local1 = issueTracker.possibleMove();
if (_local1 != null){
to = _local1[0];
from = _local1[1];
makeMove();
};
};
}
function enableField(_arg1:Boolean=true, _arg2:String="xz"):void{
trace(("enableField " + _arg1), _arg2);
mouseChildren = _arg1;
mouseEnabled = _arg1;
if (_arg1){
hintTimer.reset();
hintTimer.start();
} else {
hintTimer.stop();
};
if (palitra){
palitra.mouseChildren = _arg1;
palitra.mouseEnabled = _arg1;
};
if (Game.cursor){
Game.cursor.show(_arg1);
};
}
protected function seekAndDestroy(_arg1:Boolean=false, _arg2:String="xz"):Object{
var _local4:*;
var _local5:Array;
var _local6:Fury;
trace("seekAndDestroy calledBy:", _arg2);
var _local3:Array = new Array();
for (_local4 in BallTypes) {
_local3[BallTypes[_local4]] = 0;
};
_local5 = seek(_arg1);
for each (_local6 in _local5) {
_local3[_local6.color] = (_local3[_local6.color] + 1);
};
if (_local5.length > 0){
removeBalls(_local5, "seekAndDestroy");
enableField(false, "s&d");
if (_arg1 == false){
updatePoints(_local3);
};
} else {
enableField(true, "s&d");
};
return ({res:_local5.length, points:_local3});
}
protected function fieldClickHandler(_arg1:MouseEvent):void{
var morph:Sprite;
var evt = _arg1;
Mouse.hide();
try {
switch (evt.target.type){
case "square":
if (evt.target.busy != null){
if (Game.cursor.mod == "norm"){
if (evt.target.busy.color != "black"){
if (from == null){
from = evt.target;
to = null;
from.select(true);
} else {
if (from.hasNeighbour(evt.target)){
to = evt.target;
to.select(true);
} else {
if (to != null){
to.select(false);
to = null;
};
if (from == evt.target){
from.select(false);
from = null;
} else {
from.select(false);
from = evt.target;
from.select(true);
};
};
};
if (((from) && (to))){
tmpFuryMax = 0;
makeMove();
};
} else {
SoundMan.playEffect("decline");
};
} else {
if (Game.cursor.mod == "brush"){
if (evt.target.busy.color == "black"){
blacks--;
noBlacks = (noBlacks + 4);
};
SoundMan.playEffect("fpaint");
morph = new coloring_effect();
morph.x = evt.target.x;
morph.y = evt.target.y;
mock.addChild(morph);
TweenMax.delayedCall(0.3, evt.target.busy.changeColor, [Game.cursor.color]);
TweenMax.delayedCall(0.9, mock.removeChild, [morph]);
enableField(false, "brushClik");
Game.currentBucket.val = 0;
pokeAll();
TweenMax.delayedCall(1, seekAndDestroy, [false, "fieldClick"]);
};
};
};
break;
default:
break;
};
} catch(e:Error) {
};
}
protected function removeBalls(_arg1:Array, _arg2:String="xz"):void{
var _local4:Fury;
var _local3:Array = new Array();
for each (_local4 in _arg1) {
_local4.alpha = 0.5;
if (_local4.under != null){
if (_local4.under.busy != null){
if (_local3[_local4.under.xPos] == undefined){
_local3[_local4.under.xPos] = new Array();
};
_local3[_local4.under.xPos].push(_local4.under);
deleteBall(_local4);
tmpFuryMax++;
};
};
};
TweenMax.delayedCall(0.6, gravity, [_local3]);
}
private function addToList(_arg1:Array):void{
if (_arg1.length >= Game.sameInLine){
to_delete = to_delete.concat(_arg1);
};
}
protected function hintHandler(_arg1:TimerEvent):void{
var _local3:*;
var _local2:Array = issueTracker.possibleMove();
if (_local2 != null){
_local3 = new effect_help();
_local3.x = (_local2[0].x + 8);
_local3.y = (_local2[0].y + 12);
addChild(_local3);
TweenMax.delayedCall(1.7, removeChild, [_local3]);
};
}
function pokeAll():void{
var _local2:int;
var _local3:Fury;
var _local4:Square;
var _local1:int;
while (_local1 < clv_Squares.length) {
_local2 = 0;
while (_local2 < clv_Squares[0].length) {
_local3 = clv_Squares[_local1][_local2].busy;
if (_local3 != null){
_local4 = getSquare(_local1, _local2);
_local3.takeAround(checkAround(_local4));
};
_local2++;
};
_local1++;
};
}
private function getColumn(_arg1:int):Array{
var _local2:Array = clv_Squares[_arg1];
return (_local2);
}
function clear():void{
var _local2:Array;
var _local3:int;
var _local4:Fury;
firstTime = true;
var _local1:int;
while (_local1 < clv_Squares.length) {
_local2 = clv_Squares[_local1];
_local3 = 0;
while (_local3 < _local2.length) {
_local4 = Fury(_local2[_local3].busy);
if (_local4 != null){
deleteBall(_local4);
};
_local3++;
};
_local1++;
};
firstTime = true;
blacks = 0;
(noBlacks == 0);
palitra.clear();
enableField(false, "clear");
}
protected function gravity(_arg1:Array):void{
var _local4:*;
var _local5:*;
var _local6:Array;
var _local7:Dictionary;
var _local8:int;
var _local9:int;
var _local10:Square;
var _local11:Square;
var _local12:Fury;
var _local13:Square;
trace("\n gravity", _arg1);
nquant = 0;
var _local2:Array = new Array();
var _local3:Array = new Array();
for (_local4 in _arg1) {
_local5 = _arg1[_local4];
_local6 = getColumn(_local4);
_local7 = new Dictionary(true);
_local8 = 0;
_local9 = (_local6.length - 1);
while (_local9 >= 0) {
_local10 = _local6[_local9];
if (_local10.busy == null){
_local8++;
} else {
_local7[_local9] = _local8;
};
_local9--;
};
_local9 = (_local6.length - 1);
while (_local9 >= 0) {
if (((!((_local7[_local9] == undefined))) && ((_local7[_local9] > 0)))){
_local11 = getSquare(_local4, _local9);
_local12 = _local11.busy;
_local13 = getSquare(_local11.xPos, (_local11.yPos + _local7[_local9]));
if (_local13 != null){
_local12.toSet = _local13;
_local3.push(_local12);
};
};
_local9--;
};
_local2[_local4] = _local5.length;
};
fall(_local3);
afterGravity(_local2);
}
protected function deleteBall(_arg1:Fury):void{
var _local2:Sprite;
var _local3:Sprite;
if (_arg1){
_arg1.removeEventListener(GameEvent.READY, readyHandler);
};
if (((_arg1) && (_arg1.under))){
_arg1.under.busy = null;
_arg1.under = null;
_local2 = new effect_disapp();
_local2.x = _arg1.x;
_local2.y = _arg1.y;
_local2.mouseEnabled = false;
_local2.mouseChildren = false;
mock.addChild(_local2);
TweenMax.delayedCall(0.9, endDelete, [_local2]);
_arg1.destruct();
if (!firstTime){
_local3 = new pts();
_local3.tf.text = (Game.furyPrice * seq_mult);
addChild(_local3);
_local3.mouseEnabled = false;
_local3.mouseChildren = false;
_local3.x = (_arg1.x + 18);
_local3.y = (_arg1.y + 28);
_local3.alpha = 0;
TweenMax.sequence(_local3, [{ease:Regular.easeOut, time:0.6, y:"-30", autoAlpha:1, overwrite:false}, {ease:Regular.easeIn, time:0.7, delay:0.15, y:"-25", autoAlpha:0.1, overwrite:false}, {delay:0.1, onComplete:removeChild, onCompleteParams:[_local3]}]);
};
refToMain.provider.takeFuryBack(_arg1);
_arg1 = null;
};
}
protected function afterGravity(_arg1:Array):void{
var _local3:*;
var _local5:Array;
var _local6:Number;
var _local7:Fury;
from = null;
to = null;
var _local2:Array = new Array();
for (_local3 in _arg1) {
_local5 = generate(_local3, _arg1[_local3]);
_local2 = _local2.concat(_local5);
};
if (firstTime){
if (seek().length != 0){
trace("ПОЛНАЯ РЕГЕНЕРАЦИЯ");
_local6 = 0;
while (_local6 < _local2.length) {
refToMain.provider.takeFuryBack(_local2[_local6]);
_local6++;
};
afterGravity(_arg1);
return;
};
};
setBlacks(_local2);
var _local4:Array = issueTracker.possibleMove();
if (_local4 != null){
place(_local2);
} else {
trace("RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER RE GENER ");
_local6 = 0;
while (_local6 < _local2.length) {
_local7 = Fury(_local2[_local6]);
if (_local7.under){
_local7.under.busy = null;
};
_local7.destruct();
refToMain.provider.takeFuryBack(_local7);
_local6++;
};
afterGravity(_arg1);
};
}
private function get rowCount():int{
return (getRow(0).length);
}
protected function setBlacks(_arg1:Array):void{
var _local3:int;
if (blacks == blackLimit){
return;
};
var _local2:int;
while (_local2 <= (_arg1.length - 1)) {
if ((((Math.random() > 0.8)) && ((blacks < blackLimit)))){
_local3 = randRange(0, (_arg1.length - 1));
if (_arg1[_local3].color != "black"){
_arg1[_local3].changeColor("black");
blacks++;
} else {
setBlacks(_arg1);
};
};
_local2++;
};
}
private function get columnCount():int{
return (getColumn(0).length);
}
public function setFriendship():void{
var _local2:Number;
trace("Setting friendship");
var _local1:Number = 0;
while (_local1 < clv_Squares.length) {
_local2 = 0;
while (_local2 < clv_Squares[_local1].length) {
if (getSquare(_local1, _local2).busy){
getSquare(_local1, _local2).busy.resetFriends();
};
if (getSquare((_local1 - 1), _local2)){
if (((getSquare((_local1 - 1), _local2).busy) && (getSquare(_local1, _local2).busy))){
if (getSquare((_local1 - 1), _local2).busy.color == getSquare(_local1, _local2).busy.color){
getSquare(_local1, _local2).busy.addFriend(getSquare((_local1 - 1), _local2).busy);
};
};
};
if (getSquare((_local1 + 1), _local2)){
if (((getSquare((_local1 + 1), _local2).busy) && (getSquare(_local1, _local2).busy))){
if (getSquare((_local1 + 1), _local2).busy.color == getSquare(_local1, _local2).busy.color){
getSquare(_local1, _local2).busy.addFriend(getSquare((_local1 + 1), _local2).busy);
};
};
};
if (getSquare(_local1, (_local2 - 1))){
if (((getSquare(_local1, (_local2 - 1)).busy) && (getSquare(_local1, _local2).busy))){
if (getSquare(_local1, (_local2 - 1)).busy.color == getSquare(_local1, _local2).busy.color){
getSquare(_local1, _local2).busy.addFriend(getSquare(_local1, (_local2 - 1)).busy);
};
};
};
if (getSquare(_local1, (_local2 + 1))){
if (((getSquare(_local1, (_local2 + 1)).busy) && (getSquare(_local1, _local2).busy))){
if (getSquare(_local1, (_local2 + 1)).busy.color == getSquare(_local1, _local2).busy.color){
getSquare(_local1, _local2).busy.addFriend(getSquare(_local1, (_local2 + 1)).busy);
};
};
};
_local2++;
};
_local1++;
};
}
protected function makeMove():void{
exchangeFurys(from, to);
from = null;
to = null;
}
protected function createField(_arg1:uint, _arg2:uint):void{
var _local6:int;
var _local7:Square;
var _local8:Array;
var _local9:int;
var _local10:Array;
clv_Squares = new Array(_arg1);
var _local3 = 83;
var _local4:int;
while (_local4 < _arg1) {
clv_Squares[_local4] = new Array();
_local6 = 0;
while (_local6 < _arg2) {
_local7 = new Square(_local4, _local6, this, _local3);
_local7.x = Math.round(((_local4 * (_local3 + marg)) + (_local3 / 2)));
_local7.y = Math.round(((_local6 * (_local3 + marg)) + (_local3 / 2)));
clv_Squares[_local4][_local6] = _local7;
mock.addChild(clv_Squares[_local4][_local6]);
_local6++;
};
_local4++;
};
var _local5:int;
while (_local5 < clv_Squares.length) {
_local8 = clv_Squares[_local5];
_local9 = 0;
while (_local9 < _local8.length) {
_local7 = Square(_local8[_local9]);
_local10 = new Array();
_local10[0] = getSquare((_local7.xPos - 1), _local7.yPos);
_local10[1] = getSquare((_local7.xPos + 1), _local7.yPos);
_local10[2] = getSquare(_local7.xPos, (_local7.yPos - 1));
_local10[3] = getSquare(_local7.xPos, (_local7.yPos + 1));
_local7.near = _local10;
_local9++;
};
_local5++;
};
}
private function endDelete(_arg1:Sprite):void{
mock.removeChild(_arg1);
_arg1 = null;
}
protected function removedFromStage(_arg1:Event):void{
removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
protected function exchangeFurys(_arg1:Square, _arg2:Square, _arg3:Boolean=false):void{
var exchangeCounter:int;
var exchangePreComplete:*;
var one = _arg1;
var two = _arg2;
var rb = _arg3;
exchangePreComplete = function ():void{
exchangeCounter++;
if (exchangeCounter == 2){
endExchange([one, two]);
};
};
var vic1:Fury = one.busy;
var vic2:Fury = two.busy;
vic1.alpha = (vic2.alpha = 1);
enableField(rb, "exchangeFuryStart");
two.busy = vic1;
one.busy = vic2;
vic1.under = two;
vic2.under = one;
exchangeCounter = 0;
TweenMax.to(vic1, 0.4, {x:two.x, y:two.y, onComplete:exchangePreComplete});
TweenMax.to(vic2, 0.4, {x:one.x, y:one.y, onComplete:exchangePreComplete});
}
private function fieldMouseHandler(_arg1:MouseEvent):void{
var _local2:Fury;
if ((_arg1.target is Square)){
_local2 = _arg1.target.busy;
if (_local2 != null){
switch (_arg1.type){
case MouseEvent.MOUSE_OVER:
_local2.mouseIn();
break;
case MouseEvent.MOUSE_OUT:
_local2.mouseOut();
break;
};
};
};
}
}
}//package classes
Section 10
//FinalScreen (classes.FinalScreen)
package classes {
import flash.display.*;
public class FinalScreen extends Sprite {
var clip:FinalScreen_mc;
var nextButton:MyButton;
public function FinalScreen(_arg1:String="ru"){
clip = new FinalScreen_mc();
addChild(clip);
switch (_arg1){
case "ru":
nextButton = new MyButton("КАРТА");
clip.innerText.text = (((("Я получил эликсир! Путешествие завершилось успехом. " + "Зная, что дружба пушистиков теперь в безопасности, а колючки не могут им ") + "помешать, я могу спокойно продолжать ") + "свои весёлые вечеринки! Теперь у меня есть карта ") + "Пушляндии и я буду путешествовать по ней!");
break;
case "en":
nextButton = new MyButton("MAP");
clip.innerText.text = ((("I’ve got the elixir! My trip is a success! " + "Now the furries’ friendship is in safety and the prickles are not ") + "able to bother them. I can continue my rocking parties! Now I have the ") + "Furryland map and I will travel around!");
break;
default:
nextButton = new MyButton("MAP");
clip.innerText.text = ((("I’ve got the elixir! My trip is a success! " + "Now the furries’ friendship is in safety and the prickles are not ") + "able to bother them. I can continue my rocking parties! Now I have the ") + "Furryland map and I will travel around!");
break;
};
nextButton.x = 683.5;
nextButton.y = 540.9;
addChild(nextButton);
}
}
}//package classes
Section 11
//Fury (classes.Fury)
package classes {
import flash.events.*;
import flash.display.*;
import gs.*;
import gs.easing.*;
public class Fury extends Sprite {
protected var delay:Number;
protected var selection:Sprite;// = null
protected var currentPers:MovieClip;
protected var currentState:String;
protected var colorsAndStates:Object;
var tmpState:String;
var isInside:Boolean;
protected var sel:Boolean;
public var under:Square;
public var toAngry:Number;
var toSet:Square;
protected var currentColor:String;
protected var isCentral:Boolean;
public var lonelyCounter:Number;
public function Fury(_arg1:String="green", _arg2:String="normal"){
init(_arg1, _arg2);
}
protected function initColorsAndStates():void{
colorsAndStates = new Object();
colorsAndStates["Fury_mc_normal_green"] = Fury_mc_normal_green;
colorsAndStates["Fury_mc_normal_blue"] = Fury_mc_normal_blue;
colorsAndStates["Fury_mc_normal_orange"] = Fury_mc_normal_orange;
colorsAndStates["Fury_mc_normal_pink"] = Fury_mc_normal_pink;
colorsAndStates["Fury_mc_normal_yellow"] = Fury_mc_normal_yellow;
colorsAndStates["Fury_mc_boom_green"] = Fury_mc_boom_green;
colorsAndStates["Fury_mc_boom_blue"] = Fury_mc_boom_blue;
colorsAndStates["Fury_mc_boom_orange"] = Fury_mc_boom_orange;
colorsAndStates["Fury_mc_boom_pink"] = Fury_mc_boom_pink;
colorsAndStates["Fury_mc_boom_yellow"] = Fury_mc_boom_yellow;
colorsAndStates["Fury_mc_dance_green"] = Fury_mc_dance_green;
colorsAndStates["Fury_mc_dance_blue"] = Fury_mc_dance_blue;
colorsAndStates["Fury_mc_dance_orange"] = Fury_mc_dance_orange;
colorsAndStates["Fury_mc_dance_pink"] = Fury_mc_dance_pink;
colorsAndStates["Fury_mc_dance_yellow"] = Fury_mc_dance_yellow;
colorsAndStates["Fury_mc_down_green"] = Fury_mc_down_green;
colorsAndStates["Fury_mc_down_blue"] = Fury_mc_down_blue;
colorsAndStates["Fury_mc_down_orange"] = Fury_mc_down_orange;
colorsAndStates["Fury_mc_down_pink"] = Fury_mc_down_pink;
colorsAndStates["Fury_mc_down_yellow"] = Fury_mc_down_yellow;
colorsAndStates["Fury_mc_look_green"] = Fury_mc_look_green;
colorsAndStates["Fury_mc_look_blue"] = Fury_mc_look_blue;
colorsAndStates["Fury_mc_look_orange"] = Fury_mc_look_orange;
colorsAndStates["Fury_mc_look_pink"] = Fury_mc_look_pink;
colorsAndStates["Fury_mc_look_yellow"] = Fury_mc_look_yellow;
colorsAndStates["Fury_mc_lonely_green"] = Fury_mc_lonely_green;
colorsAndStates["Fury_mc_lonely_blue"] = Fury_mc_lonely_blue;
colorsAndStates["Fury_mc_lonely_orange"] = Fury_mc_lonely_orange;
colorsAndStates["Fury_mc_lonely_pink"] = Fury_mc_lonely_pink;
colorsAndStates["Fury_mc_lonely_yellow"] = Fury_mc_lonely_yellow;
colorsAndStates["Fury_mc_left_green"] = Fury_mc_left_green;
colorsAndStates["Fury_mc_left_blue"] = Fury_mc_left_blue;
colorsAndStates["Fury_mc_left_orange"] = Fury_mc_left_orange;
colorsAndStates["Fury_mc_left_pink"] = Fury_mc_left_pink;
colorsAndStates["Fury_mc_left_yellow"] = Fury_mc_left_yellow;
colorsAndStates["Fury_mc_right_green"] = Fury_mc_right_green;
colorsAndStates["Fury_mc_right_blue"] = Fury_mc_right_blue;
colorsAndStates["Fury_mc_right_orange"] = Fury_mc_right_orange;
colorsAndStates["Fury_mc_right_pink"] = Fury_mc_right_pink;
colorsAndStates["Fury_mc_right_yellow"] = Fury_mc_right_yellow;
colorsAndStates["Fury_mc_up_green"] = Fury_mc_up_green;
colorsAndStates["Fury_mc_up_blue"] = Fury_mc_up_blue;
colorsAndStates["Fury_mc_up_orange"] = Fury_mc_up_orange;
colorsAndStates["Fury_mc_up_pink"] = Fury_mc_up_pink;
colorsAndStates["Fury_mc_up_yellow"] = Fury_mc_up_yellow;
colorsAndStates["Fury_mc_angry_black"] = Fury_black_angry;
colorsAndStates["Fury_mc_boom_black"] = Fury_black_boom;
colorsAndStates["Fury_mc_look_black"] = Fury_black_look;
colorsAndStates["Fury_mc_normal_black"] = Fury_black_normal;
colorsAndStates["Fury_mc_tik_black"] = Fury_black_tik;
}
public function init(_arg1:String="green", _arg2:String="normal"):void{
var color = _arg1;
var state = _arg2;
selected = false;
isCentral = false;
toAngry = 0;
lonelyCounter = 0;
isInside = false;
initColorsAndStates();
currentState = state;
currentColor = color;
change();
delay = randRange(0, 10);
try {
if (currentPers){
currentPers.gotoAndPlay(delay);
};
} catch(e:Error) {
currentPers.gotoAndPlay(0);
};
}
public function get state():String{
return (currentState);
}
public function changeColor(_arg1:String):Boolean{
var curFrm:int;
var color = _arg1;
if (color == currentColor){
return (false);
};
currentColor = color;
if (currentColor == "black"){
if (((((((((!((currentState == "angry"))) && (!((currentState == "boom"))))) && (!((currentState == "look"))))) && (!((currentState == "normal"))))) && (!((currentState == "tik"))))){
currentState = "normal";
};
} else {
if ((((currentState == "angry")) || ((currentState == "tik")))){
currentState = "normal";
};
};
try {
curFrm = currentPers.currentFrame;
} catch(er:Error) {
curFrm = 0;
};
change();
try {
currentPers.gotoAndPlay(curFrm);
} catch(e:Error) {
currentPers.gotoAndPlay(1);
};
return (true);
}
public function destruct():void{
removeListeners();
try {
this.parent.removeChild(this);
} catch(e:Error) {
};
under = null;
toSet = null;
}
public function resetForReuse():void{
sel = false;
isCentral = false;
isInside = false;
visible = true;
alpha = 1;
x = (y = 0);
mouseEnabled = true;
toSet = null;
under = null;
}
protected function removeListeners():void{
try {
removeEventListener(MouseEvent.MOUSE_OUT, mouseOut);
} catch(e:Error) {
};
try {
removeEventListener(MouseEvent.MOUSE_OVER, mouseIn);
} catch(e:Error) {
};
try {
currentPers.fury_eyes.removeEventListener(Event.ENTER_FRAME, entFrame);
} catch(e:Error) {
};
try {
currentPers.removeEventListener(Event.ENTER_FRAME, reverseListener);
} catch(e:Error) {
};
try {
currentPers.removeEventListener(Event.ENTER_FRAME, blackAngryEnterFrame);
} catch(e:Error) {
};
try {
currentPers.removeEventListener(Event.ENTER_FRAME, fromLookToTickListener);
} catch(e:Error) {
};
}
public function stopAnimation():void{
try {
currentPers.stop();
} catch(e:Error) {
};
}
public function onTimer(_arg1:Event=null):void{
var ev = _arg1;
if (currentColor != "black"){
if (currentState == "normal"){
if (++lonelyCounter >= 8){
changeState("lonely");
lonelyCounter = 0;
};
};
};
var rndNum:Number = randRange(0, 2);
if (currentColor == "black"){
toAngry++;
if ((((toAngry >= 4)) && ((rndNum == 1)))){
toAngry = 0;
if (((!((currentState == "look"))) && (!((currentState == "tik"))))){
changeState("angry");
currentPers.addEventListener(Event.ENTER_FRAME, blackAngryEnterFrame, false, 0, true);
};
};
};
var num:Number = randRange(0, 5);
if ((((num == 1)) || ((num == 5)))){
if (!currentPers){
return;
};
if (currentState != "look"){
try {
currentPers.fury_eyes.play();
} catch(e:Error) {
};
};
};
}
protected function randRange(_arg1:Number, _arg2:Number):Number{
return ((Math.floor((Math.round((Math.random() * _arg2)) - _arg1)) + _arg1));
}
public function mouseIn(_arg1:Event=null):void{
if (((!((currentState == "lonely"))) && (!((currentColor == "black"))))){
return;
};
if (!isInside){
changeState("look");
};
if (currentColor == "black"){
currentPers.addEventListener(Event.ENTER_FRAME, fromLookToTickListener, false, 0, true);
};
isInside = true;
}
public function resetFilters():void{
currentPers.filters = null;
}
protected function reverseListener(_arg1:Event=null):void{
var ev = _arg1;
if (currentColor == "black"){
return;
};
if (currentPers.currentFrame != 1){
try {
currentPers.prevFrame();
currentPers.eyes_look.prevFrame();
} catch(e:Error) {
currentPers.removeEventListener(Event.ENTER_FRAME, reverseListener);
changeState("lonely");
};
} else {
currentPers.removeEventListener(Event.ENTER_FRAME, reverseListener);
changeState("lonely");
};
}
public function takeAround(_arg1:Array, _arg2:Object=null):void{
return;
if (arguments.length == 2){
changeState("dance");
isCentral = true;
return;
};
if (arguments.length == 1){
isCentral = false;
changeState(arguments[0].pos);
return;
};
if (arguments.length == 0){
if (((!((currentState == "lonely"))) && (!((currentState == "look"))))){
changeState("normal");
};
};
}
public function set selected(_arg1:Boolean):void{
if (currentPers == null){
sel = false;
return;
};
sel = _arg1;
if (((sel) && (!(selection)))){
selection = new Select();
selection.y = (selection.y - 1);
addChildAt(selection, 0);
} else {
if (selection){
if (selection.stage){
removeChild(selection);
};
};
selection = null;
};
if (((!(sel)) && (!(isInside)))){
currentPers.addEventListener(Event.ENTER_FRAME, reverseListener, false, 0, true);
};
}
protected function change():void{
if (currentPers != null){
removeListeners();
currentPers.stop();
removeChild(currentPers);
currentPers = null;
};
var FuryName:String = ((("Fury_mc_" + currentState) + "_") + currentColor);
try {
currentPers = new (colorsAndStates[FuryName]);
addChild(currentPers);
currentPers.play();
} catch(e:Error) {
return;
};
mouseChildren = false;
setListeners();
}
public function changeState(_arg1:String):void{
if (_arg1 == currentState){
return;
};
lonelyCounter = 0;
currentState = _arg1;
if (currentColor == "black"){
if (((((((((!((currentState == "angry"))) && (!((currentState == "boom"))))) && (!((currentState == "look"))))) && (!((currentState == "normal"))))) && (!((currentState == "tik"))))){
currentState = "normal";
};
};
if ((((currentState == "angry")) || ((currentState == "tik")))){
currentColor = "black";
};
isCentral = false;
change();
}
public function startAnimation():void{
try {
currentPers.play();
} catch(e:Error) {
TweenMax.delayedCall(0.1, startAnimation);
};
}
public function get selected():Boolean{
return (sel);
}
protected function entFrame(_arg1:Event):void{
if (_arg1.target.currentFrame == _arg1.target.totalFrames){
_arg1.target.gotoAndStop(1);
};
}
protected function fallPlace():void{
try {
currentPers.addEventListener(Event.ENTER_FRAME, entFramePers, false, 0, true);
} catch(e:Error) {
changeState("boom");
currentPers.addEventListener(Event.ENTER_FRAME, entFramePers, false, 0, true);
};
currentPers.play();
ask();
}
protected function fromLookToTickListener(_arg1:Event):void{
if (currentState != "look"){
currentPers.removeEventListener(Event.ENTER_FRAME, fromLookToTickListener);
};
if (currentPers.currentFrame == currentPers.totalFrames){
currentPers.removeEventListener(Event.ENTER_FRAME, fromLookToTickListener);
if (currentState == "look"){
changeState("tik");
};
};
}
protected function entFramePers(_arg1:Event):void{
var ev = _arg1;
if (!currentPers){
return;
};
if (currentPers.currentFrame == currentPers.totalFrames){
try {
currentPers.removeEventListener(Event.ENTER_FRAME, entFramePers);
} catch(er:Error) {
trace("DROPPING ERROR");
};
changeState("normal");
};
}
public function refresh():void{
var _local1:String = currentState;
currentState = "nonestate";
changeState(_local1);
startAnimation();
}
public function get color():String{
return (currentColor);
}
public function mouseOut(_arg1:Event=null):void{
if ((((currentColor == "black")) && (isInside))){
changeState("normal");
isInside = false;
return;
};
if (currentState != "look"){
return;
};
if (isInside){
isInside = false;
if (!selected){
currentPers.addEventListener(Event.ENTER_FRAME, reverseListener, false, 0, true);
};
};
}
public function drop(_arg1:Number):void{
var _local2:Number = 600;
var _local3:Number = (_arg1 - this.y);
var _local4:Number = (_local3 / _local2);
changeState("boom");
currentPers.gotoAndStop(1);
TweenMax.to(this, _local4, {y:_arg1, onComplete:fallPlace, ease:Linear.easeNone});
}
protected function blackAngryEnterFrame(_arg1:Event):void{
if (currentPers.currentFrame == currentPers.totalFrames){
currentPers.removeEventListener(Event.ENTER_FRAME, blackAngryEnterFrame);
changeState("normal");
};
}
function ask():void{
var _local1:Event = new GameEvent(GameEvent.READY);
dispatchEvent(_local1);
}
protected function setListeners():void{
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseIn, false, 0, true);
try {
currentPers.fury_eyes.addEventListener(Event.ENTER_FRAME, entFrame, false, 0, true);
} catch(e:Error) {
};
}
}
}//package classes
Section 12
//FuryProvider (classes.FuryProvider)
package classes {
public class FuryProvider {
protected var furyCounter:int;
protected var numOfFuries:int;// = 36
protected var furies:Array;
protected var isFree:Array;
public function FuryProvider(){
furies = new Array();
isFree = new Array();
createFuries();
furyCounter = numOfFuries;
}
public function getMeFury():Fury{
return (new Fury());
return (null);
}
public function takeFuryBack(_arg1:Fury):void{
_arg1.destruct();
_arg1 = null;
return;
}
protected function createFuries():void{
return;
}
public function resetAll():void{
return;
furyCounter = numOfFuries;
}
}
}//package classes
Section 13
//Game (classes.Game)
package classes {
import flash.events.*;
import flash.display.*;
import mx.events.*;
import gs.*;
import flash.utils.*;
import flash.net.*;
public class Game extends Sprite {
var started:Boolean;// = false
var current_ball;
var pauseScreen;
var helpScreen;
var to:Square;// = null
var myMove:int;// = 0
protected var finalScreen:FinalScreen;
var lastm:String;// = ""
var from:Square;// = null
var really;
var lastRes:int;// = 0
protected var mapNumber:int;
protected var refToMain:Main;
var resultative:Boolean;// = false
var time:int;// = 0
var sendObj:Object;
protected var clip:Sprite;
var tanzus:Dancer;
var firstTurn:int;
var sq_pool:Array;
public var single:int;// = 1
var end:EndScreen;
var points:int;// = 0
var _2091793159LogoGirl:Class;
var hud:Hud;
var busy:Boolean;// = false
var field:Field;
var moveTimer:Timer;
var _u:String;// = "you"
static var currentBucket:Bucket;
public static var autoplay:Boolean = false;
static var fieldDim:int = 6;
static var min:int = 180;
static var furyPrice:int = 5;
static var cursor:Cursor;
static var toHit:int;
static var sameInLine:int = 3;
public function Game(_arg1:int, _arg2:Main=null){
var _local3:Sprite;
sendObj = new Object();
sq_pool = new Array();
_2091793159LogoGirl = Game_LogoGirl;
super();
refToMain = _arg2;
mapNumber = _arg1;
toHit = (1000 + (refToMain.level * 50));
switch (mapNumber){
case 1:
clip = new game_mc_forest();
break;
case 2:
clip = new game_mc_beach();
break;
case 3:
clip = new game_mc_castle();
break;
default:
break;
};
switch (refToMain.lang){
case "ru":
_local3 = new LogoRus();
_local3.x = 667;
_local3.y = 72.7;
_local3.scaleX = (_local3.scaleY = 0.9);
break;
case "en":
_local3 = new LogoEng();
_local3.x = 641;
_local3.y = 72.7;
_local3.scaleX = (_local3.scaleY = 0.8);
break;
default:
_local3 = new LogoEng();
break;
};
clip.addChild(_local3);
addChild(clip);
tanzus = new Dancer(mapNumber);
clip.addChild(tanzus);
tanzus.x = (clip.tanz_mc.x + 120);
tanzus.y = (clip.tanz_mc.y + 120);
if (refToMain.placeNum == 1){
clip.setChildIndex(tanzus, clip.getChildIndex(clip.tanz_mc));
clip.setChildIndex(tanzus, (clip.getChildIndex(tanzus) - 1));
} else {
clip.swapChildren(tanzus, clip.tanz_mc);
};
clip.removeChild(clip.tanz_mc);
clip.tanz_mc = null;
trace((("field " + clip.field_mock) + " |"), clip.field_mock.x, clip.field_mock.y);
field = new Field(clip.field_mock, fieldDim, fieldDim, 0, mapNumber, refToMain);
field.addEventListener(GameEvent.POINTS, pointsHandler);
trace((("field " + field) + " |"), field.x, field.y);
field.x = 15;
field.y = 15;
hud = new Hud(mapNumber, refToMain);
hud.mouseChildren = false;
addChild(hud);
hud.time = min;
hud.addEventListener(GameEvent.END, exitHandler);
hud.addEventListener(GameEvent.HELP, showHelp);
hud.addEventListener(GameEvent.PAUSE, setPause);
time = min;
hud.points = points;
clip.back.cacheAsBitmap = true;
MovieClip(clip.back).stop();
_local3.cacheAsBitmap = true;
MovieClip(_local3).stop();
if (clip.shadow){
MovieClip(clip.grass).stop();
MovieClip(clip.shadow).stop();
clip.grass.cacheAsBitmap = true;
clip.shadow.cacheAsBitmap = true;
};
moveTimer = new Timer(1000);
moveTimer.addEventListener(TimerEvent.TIMER, secTickHandler);
addEventListener(GameEvent.SOUND, soundLisnener, true, 0, false);
var _local4:* = new LogoGirl();
var _local5:Sprite = new Sprite();
_local5.addChild(_local4);
_local5.x = 658;
_local5.y = 535;
_local5.useHandCursor = true;
addChild(_local5);
_local5.addEventListener(MouseEvent.CLICK, onLogoClick, false, 0, true);
addChild(new Frame_mc());
cursor = new Cursor();
addChild(cursor);
field.fillAllField();
field.addEventListener(GameEvent.START, fieldHandler);
field.addEventListener(GameEvent.RESUME, fieldHandler);
clip.field_mock.back.cacheAsBitmap = true;
}
function set mtime(_arg1:int):void{
time = _arg1;
}
function get LogoGirl():Class{
return (this._2091793159LogoGirl);
}
function restart(_arg1:Event):void{
end.removeEventListener(GameEvent.RESTART, restart);
field.clear();
hud.points = 0;
points = 0;
hud.mouseChildren = false;
trace("hud block restart");
hud.time = min;
time = min;
removeChild(end);
if (refToMain.soundOn){
SoundMan.start(true);
};
hud.soundBtn.reset();
TweenMax.delayedCall(1, reset);
}
function set LogoGirl(_arg1:Class):void{
var _local2:Object = this._2091793159LogoGirl;
if (_local2 !== _arg1){
this._2091793159LogoGirl = _arg1;
this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, "LogoGirl", _local2, _arg1));
};
}
function pause(_arg1=true){
if (_arg1){
TweenMax.pauseAll(true, true);
moveTimer.stop();
field.hintTimer.stop();
} else {
TweenMax.resumeAll(true, true);
moveTimer.start();
field.hintTimer.start();
};
field.mouseEnabled = !(_arg1);
field.mouseChildren = !(_arg1);
}
private function reallyHandler(_arg1:MouseEvent):void{
trace("o,rly?", _arg1.target.name);
switch (_arg1.target.name){
case "bt_yes":
endGame();
break;
case "bt_no":
pause(false);
break;
default:
return;
};
removeChild(really);
}
private function setPause(_arg1:GameEvent):void{
pause();
field.mouseEnabled = false;
field.mouseChildren = false;
pauseScreen = new PauseWindow(refToMain.lang);
addChild(pauseScreen);
swapChildren(pauseScreen, cursor);
pauseScreen.bt_back.addEventListener(MouseEvent.CLICK, unPause);
}
protected function switchSound(_arg1:Boolean):void{
trace("switching sound to:", _arg1);
refToMain.soundOn = _arg1;
if (_arg1){
SoundMan.start();
} else {
SoundMan.stop();
};
}
protected function nextFromWinListener(_arg1:MouseEvent):void{
finalScreen.nextButton.removeEventListener(MouseEvent.CLICK, nextFromWinListener);
removeChild(finalScreen);
refToMain.nextLevet();
SoundMan.playEffect("button");
}
function get mtime():int{
return (time);
}
function exitHandler(_arg1:Event):void{
SoundMan.playEffect("button");
pause();
really = new YesNoWindow(refToMain.lang);
addChild(really);
really.addEventListener(MouseEvent.CLICK, reallyHandler, false, 0, true);
swapChildren(really, cursor);
cursor.mod = "norm";
}
private function helpClick(_arg1):void{
helpScreen.backBtn.removeEventListener(MouseEvent.CLICK, helpClick);
trace("back");
SoundMan.playEffect("button");
removeChild(helpScreen);
pause(false);
}
private function showHelp(_arg1:GameEvent):void{
pause();
helpScreen = new HelpScreen(refToMain.lang);
addChild(helpScreen);
helpScreen.backBtn.addEventListener(MouseEvent.CLICK, helpClick);
cursor.mod = "norm";
swapChildren(helpScreen, cursor);
}
protected function soundLisnener(_arg1:GameEvent):void{
switchSound(_arg1.obj);
}
function secTickHandler(_arg1:Event):void{
mtime--;
hud.time = mtime;
if (mtime == 0){
moveTimer.stop();
if (field.mouseEnabled){
endGame();
};
trace("Время вышло!", hud.points, min);
};
}
function endGame():void{
trace("!!!!!!!ENDGAME");
var _local1:int = (toHit - hud.points);
_local1 = ((_local1 > 0)) ? _local1 : 0;
var _local2:String = ((hud.points >= toHit)) ? "win" : "lose";
var _local3:int = (min - mtime);
hud.mouseChildren = false;
trace("hud block end", hud.points, _local3, _local1);
if (!refToMain.gameJacket){
if (_local2 == "win"){
refToMain.kongregate.scores.submit(hud.points, "Level_Score");
if (!refToMain.finished){
refToMain.totalScore = (refToMain.totalScore + hud.points);
};
};
};
if ((((refToMain.level == 11)) && ((_local2 == "win")))){
trace("ПОБЕДА!!!!");
if (!refToMain.gameJacket){
refToMain.kongregate.scores.submit(refToMain.totalScore, "Campaign_Score");
trace("KONGREGATE TOTAL SCORE:", refToMain.totalScore);
};
finalScreen = new FinalScreen(refToMain.lang);
finalScreen.nextButton.addEventListener(MouseEvent.CLICK, nextFromWinListener);
addChild(finalScreen);
SoundMan.playEffect("success");
swapChildren(finalScreen, cursor);
} else {
end = new EndScreen(_local2, hud.points, _local3, _local1, refToMain.lang);
addChild(end);
end.addEventListener(GameEvent.RESTART, restart);
end.addEventListener(GameEvent.MENU, showMenu);
swapChildren(end, cursor);
};
cursor.mod = "norm";
field.enableField(false);
TweenMax.killAllTweens(true);
cursor.show(true);
mtime = min;
}
function fieldHandler(_arg1:GameEvent):void{
switch (_arg1.type){
case GameEvent.START:
moveTimer.start();
field.resume();
hud.mouseChildren = true;
trace("hud UNblock fieldStart");
break;
case GameEvent.RESUME:
if ((((mtime == 0)) && (!(autoplay)))){
endGame();
} else {
if (!end){
trace("~!!!! FIELD RESUME");
field.resume();
};
};
break;
};
}
function reset():void{
field.fillAllField();
}
function unPause(_arg1){
removeChild(pauseScreen);
pause(false);
}
function showMenu(_arg1:Event):void{
trace("showMenu");
removeChild(end);
removeChild(cursor);
dispatchEvent(_arg1);
}
private function onLogoClick(_arg1:MouseEvent):void{
trace("Clicking logo");
navigateToURL(new URLRequest("http://girlgames.com/"), "_blank");
}
function pointsHandler(_arg1:GameEvent):void{
var _local2:* = ((hud.points < toHit)) ? true : false;
hud.points = (hud.points + ((furyPrice * _arg1.obj.pt) * _arg1.obj.mult));
if ((((hud.points > toHit)) && (_local2))){
SoundMan.playEffect("score");
};
}
}
}//package classes
Section 14
//Game_LogoGirl (classes.Game_LogoGirl)
package classes {
import mx.core.*;
import flash.utils.*;
public class Game_LogoGirl extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function Game_LogoGirl(){
dataClass = Game_LogoGirl_dataClass;
super();
initialWidth = (2740 / 20);
initialHeight = (1300 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package classes
Section 15
//Game_LogoGirl_dataClass (classes.Game_LogoGirl_dataClass)
package classes {
import mx.core.*;
public class Game_LogoGirl_dataClass extends ByteArrayAsset {
}
}//package classes
Section 16
//GameEvent (classes.GameEvent)
package classes {
import flash.events.*;
public class GameEvent extends Event {
private var param:Object;
public static var AUTH:String = "netAuthor";
public static var HELP:String = "gameHelp";
public static var START:String = "start";
public static var READY:String = "ready";
public static var SEND:String = "netSend";
public static var RECEIVE:String = "netData";
public static var WHO_AROUND:String = "au_SOSEDI";
public static var SB:String = "startBattle";
public static var REPLY:String = "netReply";
public static var FINISH:String = "finish";
public static var PAUSE:String = "gamePause";
public static var CLOSE:String = "close";
public static var DESTROY:String = "destroy";
public static var END:String = "netEnd";
public static var MENU:String = "menu";
public static var POINTS:String = "points_arrived";
public static var NEXT_LEVEL:String = "next_level";
public static var RESUME:String = "resume";
public static var RESTART:String = "restartGame";
public static var PLAY:String = "gamePlay";
public static var SOUND:String = "sound";
public static var END_SCREEN:String = "endscreen";
public static var BLOCK:String = "noturn";
public static var TURN:String = "turn";
public function GameEvent(_arg1:String){
super(_arg1);
}
public function set obj(_arg1:Object):void{
param = _arg1;
}
public function get obj():Object{
return (param);
}
}
}//package classes
Section 17
//GameJacketAS3 (classes.GameJacketAS3)
package classes {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.system.*;
public class GameJacketAS3 extends Sprite {
private var _adOptions:Object;// = null
private var _IDataLoader:Loader;
private var _gameExclude:String;// = ""
private var _gameVar:String;
private var _gameHost:String;// = ""
private var _GJID:String;// = ""
private var _IDataHolder:Object;
private var _s:String;// = ""
private var _AS3Version:String;// = "0.7.1"
private var _nNumberSecurity:Number;// = 0
private var _gameDomain:String;// = ""
public function GameJacketAS3(){
_IDataLoader = new Loader();
_IDataHolder = new Object();
super();
Security.allowDomain("app.gamejacket.net", "app1.gamejacket.net", "app2.gamejacket.net", "app3.gamejacket.net", "app4.gamejacket.net", "app5.gamejacket.net", "app6.gamejacket.net", "app7.gamejacket.net", "app8.gamejacket.net", "app9.gamejacket.net");
}
private function checkIOError(_arg1:IOErrorEvent):void{
dispatchSecurityEvent();
}
public function setVariables(_arg1:LoaderInfo):void{
var _local3:String;
var _local4:String;
var _local2:Object = _arg1.parameters;
for (_local3 in _local2) {
_local4 = String(_local2[_local3]);
if (_local3 == "gameVar"){
_gameVar = _local4;
} else {
if (_local3 == "s"){
_s = _local4;
} else {
if (_local3 == "GJID"){
_GJID = _local4;
} else {
if (_local3 == "gameHost"){
_gameHost = _local4;
} else {
if (_local3 == "gameDomain"){
_gameDomain = _local4;
} else {
if (_local3 == "gameExclude"){
_gameExclude = _local4;
};
};
};
};
};
};
};
checkNumber();
}
private function initiateAdvert(_arg1:Event=null):void{
if (_arg1 != null){
_IDataHolder = _arg1.target;
};
if (_adOptions.bgAlpha == undefined){
_adOptions.bgAlpha = 1;
};
_IDataHolder.loader.content.loadDetails(_GJID, _adOptions.bgColour, _adOptions.bgAlpha, _s, this.root.stage);
_IDataHolder.loader.content.addEventListener("GameJacketAdError", advertError);
_IDataHolder.loader.content.addEventListener("GameJacketAdEnd", advertEnd);
_adOptions.adDisplayObject.addChild(_IDataLoader);
}
public function GJHostDomain():String{
return (_gameDomain);
}
private function ioErrorIDataSWF(_arg1:IOErrorEvent):void{
advertError();
}
private function advertError(_arg1:Event=null):void{
if ((_adOptions.errorFunction is Function)){
_adOptions.adDisplayObject.removeChild(_IDataLoader);
if ((_adOptions.errorParameters is Object)){
_adOptions.errorFunction(_adOptions.errorParameters);
} else {
_adOptions.errorFunction();
};
} else {
advertEnd(new Event(""));
};
}
private function callEndFunction():void{
if ((_adOptions.endFunction is Function)){
if ((_adOptions.endParameters is Object)){
_adOptions.endFunction(_adOptions.endParameters);
} else {
_adOptions.endFunction();
};
};
}
public function checkMe():Number{
return (1);
}
public function showAd(_arg1:Object=null):void{
var _local2:URLRequest;
_adOptions = _arg1;
if (_gameExclude != "pass"){
callEndFunction();
} else {
if (_IDataLoader.contentLoaderInfo.contentType == null){
_IDataLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeIDataSWF);
_IDataLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorIDataSWF);
_local2 = new URLRequest((_s + "GJIDataAS3.swf"));
_IDataLoader.load(_local2);
} else {
initiateAdvert();
};
};
}
private function dispatchSecurityEvent():void{
if (_nNumberSecurity == 1){
dispatchEvent(new Event("GameJacketPass"));
} else {
dispatchEvent(new Event("GameJacketFail"));
};
}
public function GJHost():String{
return (_gameHost);
}
private function checkLoaded(_arg1:Event):void{
var _local2:XML = new XML(_arg1.currentTarget.data);
_nNumberSecurity = Number(_local2.game.r);
dispatchSecurityEvent();
}
private function advertEnd(_arg1:Event):void{
_adOptions.adDisplayObject.removeChild(_IDataLoader);
callEndFunction();
}
private function completeIDataSWF(_arg1:Event):void{
initiateAdvert(_arg1);
}
private function checkNumber():void{
var _local1:URLLoader = new URLLoader();
_local1.addEventListener(Event.COMPLETE, checkLoaded);
_local1.addEventListener(IOErrorEvent.IO_ERROR, checkIOError);
var _local2:URLRequest = new URLRequest(((((_s + "gameCheck.asp?gameVar=") + _gameVar) + "&random=") + Math.random()));
_local1.load(_local2);
}
public function GJVersion():String{
return (_AS3Version);
}
}
}//package classes
Section 18
//HelpScreen (classes.HelpScreen)
package classes {
import flash.display.*;
public class HelpScreen extends Sprite {
var clip:help_window;
var backBtn:MyButton;
public function HelpScreen(_arg1:String="en"){
clip = new help_window();
addChild(clip);
switch (_arg1){
case "ru":
backBtn = new MyButton("НАЗАД");
clip.title.text = "Помощь";
clip.first.text = "Меняй местами пушистиков, чтобы друзья одного цвета оказались рядом.";
clip.second.text = "Это колючка, он не хочет ни с кем дружить.";
clip.third.text = "Когда баночка краски полна – используй её, чтобы перекрасить пушистика или колючку.";
clip.fourth.text = "Колючку можно превратить в пушистика, используя краску.";
break;
case "en":
backBtn = new MyButton("BACK");
clip.title.text = "Help";
clip.first.text = "Swap the furries so that friends of one color get together.";
clip.second.text = "This is a prickle, he wants to be friends with no one.";
clip.third.text = "When a jar is full – use it to paint a furry or a prickle.";
clip.fourth.text = "A prickle may become a furry, if you use the paint.";
break;
default:
break;
};
backBtn.x = 195.2;
backBtn.y = 448.6;
addChild(backBtn);
}
}
}//package classes
Section 19
//Hud (classes.Hud)
package classes {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Hud extends Sprite {
public var scorePane:Score;
protected var mapNumber:int;
protected var refToMain:Main;
public var soundBtn:SoundBtn;
protected var clip:Sprite;
public var clockPane:Clock;
public function Hud(_arg1:int=3, _arg2:Main=null){
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:Sprite;
var _local8:Sprite;
var _local9:Sprite;
var _local10:Sprite;
var _local11:Sprite;
super();
mapNumber = _arg1;
refToMain = _arg2;
switch (mapNumber){
case 1:
clip = new hud_mc_forest();
break;
case 2:
clip = new hud_mc_beach();
break;
case 3:
clip = new hud_mc_castle();
break;
default:
break;
};
addChild(clip);
switch (refToMain.lang){
case "ru":
_local3 = new LblExitRus();
_local4 = new LblExitRus();
new LblExitRus().x = (_local4.x - 2);
_local4.y = (_local4.y - 2);
_local5 = new LblExitRus();
_local6 = new LblPauseRus();
_local7 = new LblPauseRus();
new LblPauseRus().x = (_local7.x - 2);
_local7.y = (_local7.y - 2);
_local8 = new LblPauseRus();
_local9 = new LblHelpRus();
_local10 = new LblHelpRus();
new LblHelpRus().x = (_local10.x - 2);
_local10.y = (_local10.y - 2);
_local11 = new LblHelpRus();
break;
case "en":
_local3 = new lblExitEng();
_local4 = new lblExitEng();
new lblExitEng().x = (_local4.x - 2);
_local4.y = (_local4.y - 2);
_local5 = new lblExitEng();
_local6 = new lblPauseEng();
_local7 = new lblPauseEng();
new lblPauseEng().x = (_local7.x - 2);
_local7.y = (_local7.y - 2);
_local8 = new lblPauseEng();
_local9 = new lblHelpEng();
_local10 = new lblHelpEng();
new lblHelpEng().x = (_local10.x - 2);
_local10.y = (_local10.y - 2);
_local11 = new lblHelpEng();
break;
default:
break;
};
clip.bt_menu.upState.addChild(_local3);
clip.bt_menu.overState.addChild(_local4);
clip.bt_menu.downState.addChild(_local5);
clip.bt_pause.upState.addChild(_local6);
clip.bt_pause.overState.addChild(_local7);
clip.bt_pause.downState.addChild(_local8);
clip.bt_help.upState.addChild(_local9);
clip.bt_help.overState.addChild(_local10);
clip.bt_help.downState.addChild(_local11);
clip.cacheAsBitmap = true;
trace("HUD");
clip.addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
scorePane = new Score();
scorePane.x = int(clip.m_scorePane.x);
scorePane.y = int(clip.m_scorePane.y);
clip.addChild(scorePane);
clip.removeChild(clip.m_scorePane);
clockPane = new Clock();
clockPane.x = int(clip.m_clockPane.x);
clockPane.y = int(clip.m_clockPane.y);
clip.addChild(clockPane);
clip.removeChild(clip.m_clockPane);
clockPane.setTime(Game.min);
soundBtn = new SoundBtn(mapNumber, refToMain.soundOn);
soundBtn.x = 496;
soundBtn.y = 565;
addChild(soundBtn);
}
function clickHandler(_arg1:Event):void{
var _local2:GameEvent;
var _local3:GameEvent;
var _local4:GameEvent;
switch (_arg1.target){
case clip.bt_menu:
_local2 = new GameEvent(GameEvent.END);
dispatchEvent(_local2);
break;
case clip.bt_help:
_local3 = new GameEvent(GameEvent.HELP);
dispatchEvent(_local3);
break;
case clip.bt_pause:
_local4 = new GameEvent(GameEvent.PAUSE);
dispatchEvent(_local4);
break;
};
}
public function get points():Number{
return (scorePane.score);
}
public function set points(_arg1:Number):void{
scorePane.score = _arg1;
}
public function set time(_arg1:uint):void{
clockPane.setTime(_arg1);
}
}
}//package classes
Section 20
//Main (classes.Main)
package classes {
import flash.events.*;
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.*;
import flash.display.*;
import utils.*;
import flash.ui.*;
public class Main extends Sprite {
public var servUrl:String;// = "http://77.246.100.66/sportbox"
public var game_mc:Sprite;
var level:int;// = 11
public var langSelect:LangSelect;
var helpScreen:HelpScreen;
var memContr:MemoryController;
public var totalScore:int;// = 0
var spl:SplashScreen;
var es;
var nc;
var winner;
var log;
var copyright:Class;
var soundOn:Boolean;// = true
var kongregate:KongregateAPI;
public var gameJacket:Boolean;
var map:Map;
var introTxt:String;
var cp;
public var provider:FuryProvider;
public var finished:Boolean;
public var lang:String;
var loser;
var placeNum:int;
static var deb;
public function Main(){
copyright = Main_copyright;
super();
memContr = new MemoryController(1000, ((0x0400 * 0x0400) * 6), ((0x0400 * 0x0400) * 10), 8000, 3);
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
function game(_arg1:Event=null):void{
var evt = _arg1;
SoundMan.playEffect("button");
try {
removeChild(spl);
} catch(e:Error) {
};
placeNum = Math.ceil(((level + 1) / 4));
if (placeNum > 3){
placeNum = 3;
};
provider.resetAll();
game_mc = new Game(placeNum, this);
game_mc.addEventListener(GameEvent.NEXT_LEVEL, nextLevet, true, 0, false);
game_mc.addEventListener(GameEvent.MENU, menuHandler, true, 0, false);
game_mc.filters = null;
addChild(game_mc);
swapChildren(game_mc, cp);
}
protected function playFromMap(_arg1:Event):void{
map.btnPlay.removeEventListener(MouseEvent.CLICK, playFromMap);
map.btnExit.removeEventListener(MouseEvent.CLICK, exitToSplash);
map.removeEventListener(MouseEvent.CLICK, placeClickHandler);
removeChild(map);
map = null;
game();
}
protected function exitToSplash(_arg1:Event):void{
map.btnPlay.removeEventListener(MouseEvent.CLICK, playFromMap);
map.btnExit.removeEventListener(MouseEvent.CLICK, exitToSplash);
removeChild(map);
map = null;
splash();
}
protected function highlightListener(_arg1:MouseEvent):void{
if (((((!(map)) || (!(map.stage)))) || (!(finished)))){
return;
};
switch (_arg1.target.name){
case "first":
map.map.highlight.first.alpha = 1;
map.map.highlight.second.alpha = 0;
map.map.highlight.third.alpha = 0;
break;
case "second":
map.map.highlight.first.alpha = 0;
map.map.highlight.second.alpha = 1;
map.map.highlight.third.alpha = 0;
break;
case "third":
map.map.highlight.first.alpha = 0;
map.map.highlight.second.alpha = 0;
map.map.highlight.third.alpha = 1;
break;
default:
map.map.highlight.first.alpha = 0;
map.map.highlight.second.alpha = 0;
map.map.highlight.third.alpha = 0;
break;
};
trace(("ev.target.name: " + _arg1.target.name));
}
private function init(_arg1:Event=null):void{
var e = _arg1;
removeEventListener(Event.ADDED_TO_STAGE, init);
gameJacket = parent.gameJacket;
try {
MochiBot.track(this, "930a3b6d");
} catch(e:Error) {
};
provider = new FuryProvider();
cp = new copyright();
addChild(cp);
cp.visible = false;
lang = "en";
splash();
nc = null;
if (!gameJacket){
kongregate = new KongregateAPI();
kongregate.addEventListener(KongregateEvent.COMPLETE, congregateListener);
this.addChild(kongregate);
};
}
protected function menuHandler(_arg1:Event):void{
removeChild(game_mc);
game_mc.removeEventListener(GameEvent.NEXT_LEVEL, nextLevet, true);
game_mc.removeEventListener(GameEvent.MENU, menuHandler, true);
game_mc = null;
start();
}
protected function congregateListener(_arg1:KongregateEvent):void{
trace("YES!!! KONGREGATE LOADED");
}
function finishHandler(_arg1:Event):void{
}
protected function placeClickHandler(_arg1:MouseEvent):void{
if (finished){
switch (_arg1.target.name){
case "first":
level = 1;
break;
case "second":
level = 4;
break;
case "third":
level = 8;
break;
default:
break;
};
playFromMap(_arg1);
};
trace("placeClickHandler", _arg1.target.name);
}
function nextLevet(_arg1:GameEvent=null):void{
game_mc.removeEventListener(GameEvent.NEXT_LEVEL, nextLevet, true);
game_mc.removeEventListener(GameEvent.MENU, menuHandler, true);
removeChild(game_mc);
level++;
if (level == 12){
finished = true;
trace("GAME FINISHED");
};
start();
}
function helpClick(_arg1:MouseEvent):void{
helpScreen.backBtn.removeEventListener(MouseEvent.CLICK, helpClick);
SoundMan.playEffect("button");
removeChild(helpScreen);
if (((spl) && (spl.stage))){
spl.mouseEnabled = true;
spl.mouseChildren = true;
};
}
protected function langSelectListener(_arg1:MouseEvent):void{
trace("Clicking:", _arg1.target.name);
switch (_arg1.target.name){
case "btnRus":
lang = "ru";
break;
case "btnEng":
lang = "en";
break;
default:
lang = "en";
break;
};
langSelect.btnEng.removeEventListener(MouseEvent.CLICK, langSelectListener);
langSelect.btnRus.removeEventListener(MouseEvent.CLICK, langSelectListener);
removeChild(langSelect);
langSelect = null;
splash();
}
function splash():void{
furyMax = 0;
totalScore = 0;
switch (lang){
case "ru":
introTxt = (((((("Пушистики очень застенчивы, им тяжело знакомиться " + "самим даже на танцах. Помоги им, перемещая пушистиков одного ") + "цвета друг к другу. Ты можешь менять разноцветных друзей местами ") + "и окрашивать их в новый цвет, используя колбочки\tс краской. ") + "Если трое или больше пушистиков становятся в ряд – они дружатся и ") + "уходят с танцплощадки. Подружи как можно больше зверьков,") + "пока играет мелодия!");
break;
case "en":
introTxt = (((((("The Furries are very shy that’s why it’s hard for " + "them to make friends, even at discos. Help them by moving the ") + "Furries of one color towards one another. You can swap the ") + "friends and paint them in different colors using jars with paint. ") + "If three or more Furries get together - they become friends and ") + "leave the dance floor. Your task is to get as much Furries as ") + "possible together while the music is on! ");
default:
break;
};
finished = false;
placeNum = 1;
SoundMan.stop();
soundOn = true;
level = 0;
spl = new SplashScreen(lang);
spl.playButton.addEventListener(MouseEvent.CLICK, start);
spl.helpButton.addEventListener(MouseEvent.CLICK, showHelp);
addChild(spl);
swapChildren(spl, cp);
}
protected function start(_arg1:MouseEvent=null):void{
if (spl){
spl.playButton.removeEventListener(MouseEvent.CLICK, start);
spl.helpButton.removeEventListener(MouseEvent.CLICK, showHelp);
removeChild(spl);
spl = null;
};
map = new Map((finished) ? 12 : level, this);
map.btnPlay.addEventListener(MouseEvent.CLICK, playFromMap);
map.btnExit.addEventListener(MouseEvent.CLICK, exitToSplash);
map.addEventListener(MouseEvent.CLICK, placeClickHandler);
map.addEventListener(MouseEvent.MOUSE_MOVE, highlightListener, false, 0, true);
map.map.highlight.x = (map.map.highlight.x - 2);
map.map.highlight.first.alpha = 0;
map.map.highlight.second.alpha = 0;
map.map.highlight.third.alpha = 0;
addChild(map);
trace("Starting", soundOn);
if (soundOn){
SoundMan.start(true);
};
}
protected function setContextMenu():void{
var _local1:ContextMenu = new ContextMenu();
_local1.hideBuiltInItems();
var _local2:ContextMenuItem = new ContextMenuItem("Developed by TXV Media", true);
_local2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onAbout);
_local1.customItems = [_local2];
this.contextMenu = _local1;
}
protected function onAbout(_arg1:ContextMenuEvent=null):void{
trace("Opening about dialog....");
}
function showHelp(_arg1:Event):void{
SoundMan.playEffect("button");
if (((spl) && (spl.stage))){
spl.mouseEnabled = false;
spl.mouseChildren = false;
};
helpScreen = new HelpScreen(lang);
addChild(helpScreen);
helpScreen.backBtn.addEventListener(MouseEvent.CLICK, helpClick);
}
function replayHandler(_arg1:Event):void{
removeChild(es);
removeChild(game_mc);
es = null;
game_mc = null;
addChild(spl);
init();
nc.authorise();
}
}
}//package classes
Section 21
//Main_copyright (classes.Main_copyright)
package classes {
import mx.core.*;
public class Main_copyright extends BitmapAsset {
}
}//package classes
Section 22
//Map (classes.Map)
package classes {
import flash.events.*;
import flash.display.*;
public class Map extends Sprite {
protected var level:int;
protected var refToMain:Main;
public var btnPlay:Sprite;
public var btnExit:Sprite;
var map:Map_mc;
public function Map(_arg1:int, _arg2:Main){
refToMain = _arg2;
map = new Map_mc();
addChild(map);
switch (refToMain.lang){
case "ru":
btnPlay = new MyButton("ИГРАТЬ");
btnExit = new MyButton("ВЫХОД");
break;
case "en":
btnPlay = new MyButton("PLAY");
btnExit = new MyButton("EXIT");
break;
default:
btnPlay = new MyButton("PLAY");
btnExit = new MyButton("EXIT");
break;
};
btnPlay.x = 712.5;
btnPlay.y = 568.6;
btnExit.x = 554.7;
btnExit.y = 568.6;
addChild(btnPlay);
addChild(btnExit);
map.first.stop();
map.first.mouseChildren = false;
map.second.stop();
map.second.mouseChildren = false;
map.third.stop();
map.third.mouseChildren = false;
map.fourth.stop();
map.fourth.mouseChildren = false;
map.krest.stop();
map.krest.mouseEnabled = false;
setLevel(_arg1);
}
public function setLevel(_arg1:int):void{
var _local2:int;
if ((((_arg1 < 0)) || ((_arg1 > 12)))){
return;
};
level = _arg1;
if (_arg1 == 12){
btnPlay.visible = false;
};
map.krest.gotoAndStop((_arg1 + 1));
_local2 = Math.ceil(((_arg1 + 1) / 4));
var _local3:int = (_local2 - 1);
while (_local3 > 0) {
openMap(_local3, true);
_local3--;
};
openMap(_local2, (((((_arg1 % 4) == 0)) ? false : true) || (refToMain.finished)));
trace("Language in map:", refToMain.lang);
switch (refToMain.lang){
case "ru":
setRussianText();
break;
case "en":
setEnglishText();
break;
default:
break;
};
}
protected function openMap(_arg1:int, _arg2:Boolean=false):void{
if ((((_arg1 < 1)) && ((_arg1 > 4)))){
return;
};
SoundMan.playEffect("row", 1);
switch (_arg1){
case 1:
if (_arg2){
map.first.gotoAndStop("end");
} else {
map.first.play();
};
break;
case 2:
if (_arg2){
map.second.gotoAndStop("end");
} else {
map.second.play();
};
break;
case 3:
if (_arg2){
map.third.gotoAndStop("end");
} else {
map.third.play();
};
break;
case 4:
if (_arg2){
map.fourth.gotoAndStop("end");
} else {
map.fourth.play();
};
break;
default:
break;
};
}
protected function setEnglishText():void{
switch (level){
case 0:
map.board.mapText.text = ((((("Travelling about the Furryland and " + "arranging discos I learned about the magic elixir, which ") + "can unite all Furryland against noxious Prickles. But to ") + "find this elixir I have to go to the Prickly Mountain and ") + "to continue entertaining the furry buddies. ") + "We have to get 1,000 points.");
break;
case 1:
map.board.mapText.text = ((("At the forest disco the furries expressed " + "their gratitude to me and promised to present a segment of the ") + "map with the Furryland beaches, if I manage to amuse their other ") + "friends. We have to get 1,050 points.");
break;
case 2:
map.board.mapText.text = (((("I am still entertaining the furries and " + "gradually reaching the Furryland beaches. My discos are becoming ") + "more and more popular among the prickles, who prevent the furries ") + "from getting together. It’s great that I have my magic paints! ") + "We have to get 1,100points");
break;
case 3:
map.board.mapText.text = (((("Dreaming of my future beach parties I " + "didn’t notice that I got close to the second stage of my way to ") + "the Mountain. Leaving the forest I decided to organize a farewell ") + "disco hoping that the furries will give me their segment of the map. ") + "We have to get 1,150 points.");
break;
case 4:
map.board.mapText.text = (((("The beach, the sea and the palms… What " + "else does a furry need to be happy? Beach parties are special: ") + "coconut juice, female furries wearing bikini… I am glad that I ") + "got in this wonderful place on my way to the Prickly Mountain. ") + "We have to get 1,200 points.");
break;
case 5:
map.board.mapText.text = (((" I am a little anxious that I meet more " + "and more prickles. These naughty creatures are able to spoil my ") + "discos and they seem to do it on purpose. I think they know ") + "about my plans to find the magiс elixir.We have to get 1,250 points");
break;
case 6:
map.board.mapText.text = (("Beach furries like my parties. They promised " + "to present me with the next segment of the Furryland map when ") + "I leave the beaches. We have to get 1,300 points.");
break;
case 7:
map.board.mapText.text = ((((("All beach furries gathered on my last " + "disco. They left all their favourite activities – surfing, beach ") + "volleyball, and swimming – just to see me off. I must not let them ") + "down. If I am able to entertain them, I will get the next segment ") + "of the map and will be able to continue my trip to the Mountain. ") + "We have to get 1,350 points.");
break;
case 8:
map.board.mapText.text = (("I need to go through the last stage of my trip. " + "I have to rock on my parties to please the furries, and they will let ") + "me through the castle to the Prickly Mountain! We have to get 1,400 points");
break;
case 9:
map.board.mapText.text = ((("I am very close to reaching my goal, and this is " + "very inspiring especially when your friends are by your side! The only thing ") + "that is strange is that there are lots of prickles at my parties. But I welcome ") + "all guests - besides I’ve got my magic paints! We have to get 1,450 points");
break;
case 10:
map.board.mapText.text = ("The task is almost done! We start celebrating it! " + "We have to get 1,500 points");
break;
case 11:
map.board.mapText.text = (("When this party is over I will get " + "the cherished elixir! And when it’s time – I will use it! ") + "We have to get 1,550 points");
break;
case 12:
map.board.mapText.text = "Choose the city where we go to entertain the furries!";
break;
};
}
protected function setRussianText():void{
trace("Setting russian text");
switch (level){
case 0:
map.board.mapText.text = ((((("Разъезжая по Пушляндии и устраивая " + "весёлые дискотеки, я узнал о существовании волшебного эликсира, ") + "который способен подружить всех пушистиков и победить злобных ") + "колючек. Для того, чтобы найти этот эликсир, мне предстоит ") + "отправиться к Колючей Горе, по дороге продолжая развлекать ") + "пушистый народец. Нам нужно набрать 1000 очков!");
break;
case 1:
map.board.mapText.text = (((("Подружившиеся на лесной дискотеке " + "пушистики выразили мне свою признательность и обещали ") + "подарить кусочек карты, на котором начертаны пляжи Пушляндии, ") + "если я сумею развеселить оставшихся лесных друзей.") + "Нам нужно набрать 1050 очков!");
break;
case 2:
map.board.mapText.text = (((("Я продолжаю веселить пушистиков и " + "постепенно приближаюсь к пляжам Пушляндии. Мои дискотеки ") + "становятся популярными среди колючек, которые мешают пушистикам ") + "подружиться. Классно, что у меня есть мои волшебные краски. ") + "Нам нужно набрать 1100 очков!");
break;
case 3:
map.board.mapText.text = (((("Мечтая о предстоящих пляжных вечеринках, " + "я не заметил, как вплотную приблизился к завершению первого ") + "этапа своего пути. Покидая лес, я решил устроить прощальную ") + "дискотеку в надежде, что пушистики всё же подарят мне свой ") + "кусочек карты. Нам нужно набрать 1150 очков!");
break;
case 4:
map.board.mapText.text = ((("Пальмы, пляж, тёплое море. Что ещё " + "нужно пушистику для полного счастья? Пляжные вечеринки - это ") + "особенный кайф: кокосовый сок, песок и солнце… Я рад, что по ") + "пути попал в это чудное место. Нам нужно набрать 1200 очков!");
break;
case 5:
map.board.mapText.text = (((("Меня беспокоит, что с каждым днём я " + "встречаю всё больше колючек. Эти противные создания могут ") + "испортить любую дискотеку и, похоже, делают это намеренно. ") + "Кажется, они знают о моих планах найти волшебный эликсир. ") + "Нам нужно набрать 1250 очков!");
break;
case 6:
map.board.mapText.text = (("Пляжным пушисткам нравятся мои вечеринки. " + "Они обещали подарить мне следующий кусочек карты Пушляндии, ") + "когда я буду покидать пляжи. Нам нужно набрать 1300 очков!");
break;
case 7:
map.board.mapText.text = ((((("На последнюю дискотеку собрались все " + "пляжные пушистики. Они бросили все важные дела: сёрфинг, ") + "пляжный волейбол, купание, только ради того, чтобы проводить ") + "меня в путь. Я не должен их подвести. Если удастся их порадовать, ") + "мне достанется очередной кусочек карты и я смогу продолжить ") + "своё путешествие. Нам нужно набрать 1350 очков!");
break;
case 8:
map.board.mapText.text = ((("Мне предстоит пройти последний этап своего пути. " + "Для того, чтобы пушистики пропустили меня через замок к Колючей горе, ") + "мне нужно делать то же, что и всегда… Зажигать вечеринки!!!!!! Нам нужно ") + "набрать 1400 очков!");
break;
case 9:
map.board.mapText.text = ((("Близость к цели всегда вдохновляет, особенно, " + "когда вокруг тебя собираются друзья! Единственное, что меня смущает – ") + "на мои вечеринки приходит много колючек. Но я рад всем гостям и у меня ") + "есть мои волшебные краски! Нам нужно набрать 1450 очков!");
break;
case 10:
map.board.mapText.text = ("Цель почти выполнена! Начинаем праздновать! " + "Нам нужно набрать 1500 очков!");
break;
case 11:
map.board.mapText.text = (("После этой вечеринки я, наконец, получу " + "заветную колбочку эликсира! И, когда настанет время, обязательно ") + "использую её! Нам нужно набрать 1550 очков!");
break;
case 12:
map.board.mapText.text = "Выбери город, в который мы отправимся развлекать пушистиков!";
break;
};
}
}
}//package classes
Section 23
//MochiAd (classes.MochiAd)
package classes {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!_slot1.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
options.ad_finished();
};
var wh:Array = _slot1._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!_slot1.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
options.ad_finished();
};
var wh:Array = _slot1._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
_slot1.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _slot1._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = _slot1.getVersion();
clip = options.clip;
if (!_slot1._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = _slot1._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
_slot1.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
_slot1.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = _slot1.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = _slot1.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = _slot1._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!_slot1.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
_slot1._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = _slot1._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
_slot1.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
_slot1.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
_slot1.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local7:Number = ((100 * _local6) / _local5);
var _local8:Number = ((100 * _local3) / chk.ad_msec);
var _local9:Object = this._mochiad_bar._inside;
var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
_slot1.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
_slot1.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
_slot1.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package classes
Section 24
//MochiBot (classes.MochiBot)
package classes {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function ioError(_arg1:IOErrorEvent):void{
trace("IO Error");
}
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
trace("TRACK");
trace("sandboxType:", Security.sandboxType);
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
trace("Server is:", _local4);
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local3.visible = false;
_local8.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
_local8.load(_local7);
return (_local3);
}
}
}//package classes
Section 25
//MyButton (classes.MyButton)
package classes {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class MyButton extends Sprite {
var tf2:TextFormat;
var clipX:Number;
var clipY:Number;
var textField:TextField;
var clip:Sprite;
var currentState:String;
var label:Label;
var tf1:TextFormat;
public function MyButton(_arg1:String="BUTTON"){
mouseChildren = false;
label = new Label();
label.text1.text = (label.text2.text = _arg1);
tf1 = label.text1.getTextFormat();
tf1.align = TextFormatAlign.CENTER;
tf1.bold = true;
tf1.color = 0x444444;
tf1.font = "Tahoma";
label.text1.setTextFormat(tf1);
tf2 = new TextFormat();
tf2 = label.text2.getTextFormat();
tf2.align = TextFormatAlign.CENTER;
tf2.bold = true;
tf2.color = 0xFFFFFF;
tf2.font = "Tahoma";
label.text2.setTextFormat(tf2);
addChild(label);
clipX = x;
clipY = y;
changeTo("normal");
addEventListener(Event.ADDED_TO_STAGE, addedToStage);
addEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
protected function onMouseUp(_arg1:MouseEvent):void{
changeTo("over");
}
protected function changeTo(_arg1:String):void{
trace("CHANGING STATE:", _arg1);
if (_arg1 == currentState){
return;
};
currentState = _arg1;
if (clip){
if (clip.stage){
removeChild(clip);
};
clip = null;
};
switch (_arg1){
case "normal":
clip = new Normal();
clip.x = clipX;
clip.y = clipY;
label.y = clipY;
break;
case "over":
clip = new Over();
clip.x = clipX;
clip.y = clipY;
label.y = clipY;
break;
case "down":
clip = new Down();
clip.y = (clip.y + 3);
label.y = (label.y + 3);
break;
default:
clip = new Normal();
clip.x = clipX;
clip.y = clipY;
label.y = clipY;
break;
};
addChild(clip);
trace(clip.x, clip.y);
setChildIndex(label, (numChildren - 1));
}
protected function removeListeners():void{
removeEventListener(MouseEvent.MOUSE_OVER, overListener);
removeEventListener(MouseEvent.MOUSE_OUT, outListener);
removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
removeEventListener(MouseEvent.MOUSE_UP, onMouseUp);
removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStage);
}
protected function onDown(_arg1:MouseEvent):void{
changeTo("down");
}
protected function outListener(_arg1:MouseEvent):void{
changeTo("normal");
}
protected function addedToStage(_arg1:Event):void{
setListeners();
}
protected function overListener(_arg1:MouseEvent):void{
if (currentState != "down"){
changeTo("over");
};
}
protected function removedFromStage(_arg1:Event):void{
removeListeners();
}
protected function setListeners():void{
addEventListener(MouseEvent.MOUSE_OVER, overListener);
addEventListener(MouseEvent.MOUSE_OUT, outListener);
addEventListener(MouseEvent.MOUSE_DOWN, onDown);
addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
}
}
}//package classes
Section 26
//Palitra (classes.Palitra)
package classes {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Palitra extends Sprite {
var colors:Object;
var buckets:Array;
var rep;
public function Palitra(_arg1:Sprite, _arg2:Sprite, _arg3:Array){
var _local6:*;
var _local7:Bucket;
colors = {green:0xCC00, yellow:0xFFCC00, pink:16724889, blue:3381759, orange:0xFF3300};
super();
rep = _arg2;
var _local4:Sprite = rep.parent;
_local4.removeChild(rep);
_arg1.addChild(this);
this.x = rep.x;
this.y = rep.y;
rep.x = 0;
rep.y = 0;
this.addChild(rep);
trace(((rep.parent + " palitra added? ") + this.parent));
trace(this.x, this.y);
var _local5:int;
buckets = new Array();
for each (_local6 in _arg3) {
if (_local6 != "black"){
_local7 = new Bucket(_local6, colors[_local6]);
_local7.x = 31;
_local7.y = (-15 + ((_local7.height + 5) * _local5));
addChild(_local7);
buckets[_local6] = _local7;
_local5++;
};
};
addEventListener(MouseEvent.CLICK, mouseHandler, true, 0, true);
addEventListener(MouseEvent.MOUSE_MOVE, mouseHandler, false, 0, true);
}
function clear():void{
var _local1:*;
for (_local1 in buckets) {
buckets[_local1].val = 0;
};
}
private function mouseHandler(_arg1:Event):void{
trace("MOUSE CLICK ON PALITRA", _arg1.type, _arg1.target.name);
switch (_arg1.type){
case MouseEvent.CLICK:
if ((((_arg1.target is Bucket)) && ((_arg1.target.val == 1)))){
trace("paintLC ", _arg1.target.name);
Game.cursor.mod = "brush";
Game.cursor.color = _arg1.target.name;
if (Game.currentBucket){
Game.currentBucket.select(false);
};
if (Game.currentBucket != _arg1.target){
Game.currentBucket = _arg1.target;
_arg1.target.select(true);
} else {
Game.cursor.mod = "norm";
Game.currentBucket = null;
};
} else {
if (Game.currentBucket){
Game.currentBucket.select(false);
};
Game.cursor.mod = "norm";
};
_arg1.stopImmediatePropagation();
break;
case MouseEvent.MOUSE_MOVE:
break;
};
}
function updateColorContent(_arg1:Array):void{
var c:*;
var pts = _arg1;
trace("palitra update");
for (c in pts) {
try {
buckets[c].val = (buckets[c].val + (pts[c] / 10));
} catch(e:Error) {
};
};
}
}
}//package classes
Section 27
//PauseWindow (classes.PauseWindow)
package classes {
import flash.display.*;
public class PauseWindow extends Sprite {
protected var clip:pause_window;
var bt_back:MyButton;
public function PauseWindow(_arg1:String="ru"):void{
clip = new pause_window();
addChild(clip);
switch (_arg1){
case "ru":
clip.title.text = "Пауза";
clip.message.text = "Пушистикам по-прежнему нужна твоя помощь!\nСкорее возвращайся в игру!";
bt_back = new MyButton("НАЗАД");
break;
case "en":
clip.title.text = "Pause";
clip.message.text = "The furries still need your help!\nGet back to the game!";
bt_back = new MyButton("BACK");
break;
default:
clip.title.text = "Pause";
clip.message.text = "The furries still need your help!\nGet back to the game!";
bt_back = new MyButton("BACK");
break;
};
bt_back.x = 400;
bt_back.y = 217;
addChild(bt_back);
}
}
}//package classes
Section 28
//PosMove (classes.PosMove)
package classes {
public class PosMove {
protected var squares:Array;
protected var field:Field;
public function PosMove(_arg1:Field){
field = _arg1;
squares = _arg1.clv_Squares;
}
protected function figure2VB(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare(x, (y - 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare(x, (y - 3));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y - 2)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure2VB(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y - 2)));
arrRes.push(field.getSquare(x, (y - 3)));
return (arrRes);
}
public function possibleMove():Array{
var _local1:Array;
var _local3:Number;
var _local2:Number = 0;
while (_local2 < squares.length) {
_local3 = 0;
while (_local3 < squares[0].length) {
if (squares[_local2][_local3].busy.color == "black"){
} else {
_local1 = figure1HFB(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1HFT(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1HBB(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1HBT(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure2HF(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure2HB(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure3HB(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure3HT(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1VFR(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1VFL(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1VBR(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure1VBL(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure2VB(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure2VF(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure3VR(_local2, _local3);
if (_local1 != null){
return (_local1);
};
_local1 = figure3VL(_local2, _local3);
if (_local1 != null){
return (_local1);
};
};
_local3++;
};
_local2++;
};
return (null);
}
protected function figure2HF(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x + 1), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 3), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x + 2), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure2HF(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x + 2), y));
arrRes.push(field.getSquare((x + 3), y));
return (arrRes);
}
protected function figure3VL(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x - 1), (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare(x, (y + 2));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y + 1)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure3VL(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y + 1)));
arrRes.push(field.getSquare((x - 1), (y + 1)));
return (arrRes);
}
protected function figure2HB(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x - 1), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x - 3), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x - 2), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure2HB(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x - 2), y));
arrRes.push(field.getSquare((x - 3), y));
return (arrRes);
}
protected function figure1HFT(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x + 1), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 2), (y - 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x + 2), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1HFB(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x + 2), y));
arrRes.push(field.getSquare((x + 2), (y - 1)));
return (arrRes);
}
protected function figure3HT(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x + 1), (y - 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 2), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x + 1), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure3HT(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x + 1), y));
arrRes.push(field.getSquare((x + 1), (y - 1)));
return (arrRes);
}
protected function figure1VBL(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare(x, (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x - 1), (y + 2));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y + 2)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1VBL(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y + 2)));
arrRes.push(field.getSquare((x - 1), (y + 2)));
return (arrRes);
}
protected function figure1HBT(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x - 1), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x - 2), (y - 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x - 2), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1HBT(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x - 2), y));
arrRes.push(field.getSquare((x - 2), (y - 1)));
return (arrRes);
}
protected function figure1VFL(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare(x, (y - 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x - 1), (y - 2));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y - 2)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1VFL(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y - 2)));
arrRes.push(field.getSquare((x - 1), (y - 2)));
return (arrRes);
}
protected function figure3HB(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x + 1), (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 2), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x + 1), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure3HB(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x + 1), y));
arrRes.push(field.getSquare((x + 1), (y + 1)));
return (arrRes);
}
protected function figure3VR(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x + 1), (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare(x, (y + 2));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y + 1)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure3VR(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y + 1)));
arrRes.push(field.getSquare((x + 1), (y + 1)));
return (arrRes);
}
protected function figure1VFR(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare(x, (y - 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 1), (y - 2));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y - 2)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1VFR(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y - 2)));
arrRes.push(field.getSquare((x + 1), (y - 2)));
return (arrRes);
}
protected function figure1HFB(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x + 1), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 2), (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x + 2), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1HFB(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x + 2), y));
arrRes.push(field.getSquare((x + 2), (y + 1)));
return (arrRes);
}
protected function figure1VBR(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare(x, (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x + 1), (y + 2));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y + 2)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1VBR(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y + 2)));
arrRes.push(field.getSquare((x + 1), (y + 2)));
return (arrRes);
}
protected function figure1HBB(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare((x - 1), y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare((x - 2), (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare((x - 2), y).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure1HBB(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare((x - 2), y));
arrRes.push(field.getSquare((x - 2), (y + 1)));
return (arrRes);
}
protected function figure2VF(_arg1:int, _arg2:int):Array{
var tmpFury:Fury;
var tmpSq:Square;
var x = _arg1;
var y = _arg2;
tmpSq = field.getSquare(x, y);
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
var color:String = tmpFury.color;
tmpSq = field.getSquare(x, (y + 1));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
tmpSq = field.getSquare(x, (y + 3));
if (tmpSq == null){
return (null);
};
tmpFury = tmpSq.busy;
if (tmpFury == null){
return (null);
};
if (tmpFury.color != color){
return (null);
};
try {
if (field.getSquare(x, (y + 2)).busy.color == "black"){
return (null);
};
} catch(e:Error) {
figure2VF(x, y);
};
var arrRes:Array = new Array();
arrRes.push(field.getSquare(x, (y + 2)));
arrRes.push(field.getSquare(x, (y + 3)));
return (arrRes);
}
}
}//package classes
Section 29
//Preloader (classes.Preloader)
package classes {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public dynamic class Preloader extends MovieClip {
const gameJacket:Boolean = false;
protected var GameJacketSDK:GameJacketAS3;
private var loadScreen:preloader_eng_mc;
protected var called:Boolean;// = false
public function Preloader(){
var _local1:Object;
super();
if (gameJacket){
GameJacketSDK = new GameJacketAS3();
GameJacketSDK.addEventListener("GameJacketPass", secOK);
GameJacketSDK.addEventListener("GameJacketPass", secError);
GameJacketSDK.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadSecurError);
GameJacketSDK.setVariables(LoaderInfo(this.root.loaderInfo));
stage.scaleMode = StageScaleMode.SHOW_ALL;
} else {
_local1 = new Object();
_local1.id = "a0375abb5471d4e8";
_local1.clip = root;
_local1.res = "800x600";
_local1.background = 0xFFFFFF;
_local1.no_bg = true;
_local1.color = 15284070;
_local1.outline = 15284070;
_local1.ad_finished = startGameLoading;
_local1.ad_failed = startGameLoading;
_local1.ad_skipped = startGameLoading;
MochiAd.showPreGameAd(_local1);
};
}
public function startGameLoading():void{
if (called){
return;
};
called = true;
addEventListener(Event.ENTER_FRAME, progressHandler);
stage.quality = StageQuality.MEDIUM;
loadScreen = new preloader_eng_mc();
addChild(loadScreen);
}
protected function progressHandler(_arg1:Event):void{
var _local2:int = Math.floor(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
if (loadScreen.main.loader){
loadScreen.main.loader.loadbar.scaleX = (_local2 / 100);
};
if ((((_local2 >= 100)) && (!(loadScreen.main.loaded)))){
loadScreen.main.loaded = true;
loadScreen.main.play();
loadScreen.main.addEventListener(MouseEvent.CLICK, onClickPlay, false, 0, true);
};
if (loadScreen.main.currentFrame == loadScreen.main.totalFrames){
removeEventListener(Event.ENTER_FRAME, progressHandler);
gotoAndStop("start");
startup();
};
}
protected function secOK(_arg1:Event):void{
startGameLoading();
}
protected function loadSecurError(_arg1:SecurityErrorEvent):void{
trace("Error loadng");
}
private function onClickPlay(_arg1:MouseEvent):void{
if (_arg1.target.name == "playBtn"){
loadScreen.main.play();
};
}
protected function secError(_arg1:Event):void{
trace("Security FAILED");
}
private function startup():void{
var mainClass:Class;
removeChild(loadScreen);
loadScreen = null;
stop();
try {
mainClass = (getDefinitionByName("classes.Main") as Class);
addChild((new (mainClass) as DisplayObject));
} catch(e:Error) {
trace(("error " + e.message));
};
}
}
}//package classes
Section 30
//Score (classes.Score)
package classes {
import flash.text.*;
public class Score extends Score_mc {
protected var _score:Number;
public function Score(){
setFormat();
score = 0;
}
public function get score():Number{
return (_score);
}
public function set score(_arg1:Number):void{
_score = _arg1;
var _local2:String = _score.toString();
var _local3:Number = (4 - _local2.length);
if (_local3 < 0){
_local3 = 0;
};
var _local4:Number = 0;
while (_local4 < _local3) {
_local2 = ("0" + _local2);
_local4++;
};
scoreTxt.text = _local2;
}
protected function setFormat():void{
scoreTxt.embedFonts = true;
scoreTxt.antiAliasType = AntiAliasType.ADVANCED;
var _local1:Font = new Irina();
var _local2:TextFormat = scoreTxt.getTextFormat();
_local2.font = _local1.fontName;
trace(_local1.fontName);
_local2.size = 30;
scoreTxt.defaultTextFormat = _local2;
}
}
}//package classes
Section 31
//SoundBtn (classes.SoundBtn)
package classes {
import flash.events.*;
import flash.display.*;
public class SoundBtn extends Sprite {
var soundOn:Boolean;
var kolInst:Sprite;
public function SoundBtn(_arg1:int, _arg2:Boolean){
addEventListener(MouseEvent.CLICK, soundClick, false, 0, true);
mouseChildren = false;
soundOn = _arg2;
switch (_arg1){
case 1:
kolInst = new Kolokol_mc();
break;
case 2:
kolInst = new Kolokol_mc_beach();
break;
case 3:
kolInst = new Kolokol_mc();
break;
default:
break;
};
this.hitArea = kolInst.hit;
kolInst.hit.visible = false;
addChild(kolInst);
kolInst.inner_kolokol.gotoAndStop((soundOn) ? 1 : 2);
}
protected function soundClick(_arg1:MouseEvent):void{
soundOn = !(soundOn);
kolInst.inner_kolokol.gotoAndStop((soundOn) ? 1 : 2);
var _local2:GameEvent = new GameEvent(GameEvent.SOUND);
_local2.obj = soundOn;
dispatchEvent(_local2);
}
public function reset():void{
kolInst.inner_kolokol.gotoAndStop((soundOn) ? 1 : 2);
}
}
}//package classes
Section 32
//SoundMan (classes.SoundMan)
package classes {
import flash.media.*;
public class SoundMan {
protected static var sndEff:Sound;
protected static var snd_paint:Class = SoundMan_snd_paint;
protected static var theme:Sound;
protected static var stopped:Boolean = true;
protected static var snd_button:Class = SoundMan_snd_button;
protected static var snd_furpaint:Class = SoundMan_snd_furpaint;
protected static var snd_select:Class = SoundMan_snd_select;
private static var row1:Class = SoundMan_row1;
protected static var row2:Class = SoundMan_row2;
protected static var row3:Class = SoundMan_row3;
protected static var snd_decline:Class = SoundMan_snd_decline;
protected static var eff:Object = {decline:new snd_decline(), fail:new snd_fail(), fpaint:new snd_furpaint(), bottle:new snd_paint(), score:new snd_scores(), success:new snd_success(), button:new snd_button(), select:new snd_select()};
protected static var snd_success:Class = SoundMan_snd_success;
protected static var mp3:Class = SoundMan_mp3;
protected static var snd_fail:Class = SoundMan_snd_fail;
protected static var snd_scores:Class = SoundMan_snd_scores;
public static var delEff:Array = [new row1(), new row2(), new row3()];
public static function stop():void{
stopped = true;
SoundMixer.stopAll();
trace("SoundMan::stop()");
}
protected static function playTheme(_arg1:Number=0):void{
trace("Playin theme");
if (stopped){
return;
};
SoundMixer.stopAll();
theme = new mp3();
theme.play(_arg1, 99999999999);
}
public static function playEffect(_arg1:String, _arg2:uint=0):void{
if (stopped){
return;
};
if (_arg1 == "row"){
sndEff = delEff[_arg2];
} else {
sndEff = eff[_arg1];
};
if (sndEff){
sndEff.play(0, 0, new SoundTransform(0.8));
trace("soundMan plays", _arg1);
};
}
public static function start(_arg1:Boolean=false):void{
trace("Sound Stopped: ", stopped);
if (!stopped){
return;
};
stopped = false;
playTheme((_arg1) ? 0 : 1200);
}
}
}//package classes
Section 33
//SoundMan_mp3 (classes.SoundMan_mp3)
package classes {
import mx.core.*;
public class SoundMan_mp3 extends SoundAsset {
}
}//package classes
Section 34
//SoundMan_row1 (classes.SoundMan_row1)
package classes {
import mx.core.*;
public class SoundMan_row1 extends SoundAsset {
}
}//package classes
Section 35
//SoundMan_row2 (classes.SoundMan_row2)
package classes {
import mx.core.*;
public class SoundMan_row2 extends SoundAsset {
}
}//package classes
Section 36
//SoundMan_row3 (classes.SoundMan_row3)
package classes {
import mx.core.*;
public class SoundMan_row3 extends SoundAsset {
}
}//package classes
Section 37
//SoundMan_snd_button (classes.SoundMan_snd_button)
package classes {
import mx.core.*;
public class SoundMan_snd_button extends SoundAsset {
}
}//package classes
Section 38
//SoundMan_snd_decline (classes.SoundMan_snd_decline)
package classes {
import mx.core.*;
public class SoundMan_snd_decline extends SoundAsset {
}
}//package classes
Section 39
//SoundMan_snd_fail (classes.SoundMan_snd_fail)
package classes {
import mx.core.*;
public class SoundMan_snd_fail extends SoundAsset {
}
}//package classes
Section 40
//SoundMan_snd_furpaint (classes.SoundMan_snd_furpaint)
package classes {
import mx.core.*;
public class SoundMan_snd_furpaint extends SoundAsset {
}
}//package classes
Section 41
//SoundMan_snd_paint (classes.SoundMan_snd_paint)
package classes {
import mx.core.*;
public class SoundMan_snd_paint extends SoundAsset {
}
}//package classes
Section 42
//SoundMan_snd_scores (classes.SoundMan_snd_scores)
package classes {
import mx.core.*;
public class SoundMan_snd_scores extends SoundAsset {
}
}//package classes
Section 43
//SoundMan_snd_select (classes.SoundMan_snd_select)
package classes {
import mx.core.*;
public class SoundMan_snd_select extends SoundAsset {
}
}//package classes
Section 44
//SoundMan_snd_success (classes.SoundMan_snd_success)
package classes {
import mx.core.*;
public class SoundMan_snd_success extends SoundAsset {
}
}//package classes
Section 45
//SplashScreen (classes.SplashScreen)
package classes {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class SplashScreen extends Sprite {
var clip:splashClip;
public var helpButton:MyButton;
public var playButton:MyButton;
var logo:Sprite;
public function SplashScreen(_arg1:String="en"){
clip = new splashClip();
clip.btnLink.addEventListener(MouseEvent.CLICK, onGotoLink, false, 0, true);
addChild(clip);
switch (_arg1){
case "ru":
helpButton = new MyButton("ПОМОЩЬ");
playButton = new MyButton("ИГРАТЬ");
logo = new LogoRus();
clip.tf.text = (((((("Пушистики очень застенчивы, им тяжело знакомиться " + "самим даже на танцах. Помоги им, перемещая пушистиков одного ") + "цвета друг к другу. Ты можешь менять разноцветных друзей местами ") + "и окрашивать их в новый цвет, используя колбочки с краской. ") + "Если трое или больше пушистиков становятся в ряд они дружатся ") + "и уходят с танцплощадки. Подружи как можно больше зверьков и ") + "набери 1000 очков, пока играет мелодия!");
break;
case "en":
helpButton = new MyButton("HELP");
playButton = new MyButton("PLAY");
logo = new LogoEng();
clip.tf.text = ((((((("The furries are very shy that’s why it’s hard " + "for them to make friends, even at discos. Help them by ") + "moving the furries of one color towards one another. You ") + "can swap the friends and paint them in different colors ") + "using jars with paint. If three or more furries get ") + "together - they become friends and leave the dance floor. ") + "Your task is to get as much furries as possible together ") + "while the music is on! ");
break;
default:
helpButton = new MyButton("HELP");
playButton = new MyButton("PLAY");
break;
};
helpButton.x = 172;
helpButton.y = 123;
playButton.x = 628;
playButton.y = 123;
addChild(helpButton);
addChild(playButton);
logo.x = 390.6;
logo.y = 82.8;
addChild(logo);
}
private function onGotoLink(_arg1:Event):void{
navigateToURL(new URLRequest("http://girlgames.com/puzzle/"), "_blank");
}
}
}//package classes
Section 46
//Square (classes.Square)
package classes {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import gs.*;
import flash.filters.*;
import flash.text.*;
public class Square extends square_mc {
private var clv_busy:Fury;
var selection:Sprite;
var dw:Number;
var clv_checked:Boolean;
var parentClip:Field;
public var yPos:int;
public var parentSquare:Square;
var near:Array;
var tween:TweenMax;
var type:String;// = "square"
public var xPos:int;
public function Square(_arg1:uint, _arg2:uint, _arg3:Field, _arg4:Number){
trace("parentRef", _arg3);
dw = _arg4;
width = dw;
height = dw;
xPos = _arg1;
yPos = _arg2;
clv_busy = null;
clv_checked = false;
selection = new ramka_light();
addChild(selection);
selection.alpha = 0;
selection.mouseEnabled = false;
buttonMode = true;
parentClip = _arg3;
parentSquare = null;
}
public function select(_arg1:Boolean):void{
if (busy){
if (_arg1){
SoundMan.playEffect("select");
busy.selected = true;
} else {
busy.selected = false;
TweenMax.delayedCall(1, busy.startAnimation);
};
};
}
public function hasNeighbour(_arg1:Square):Boolean{
var _local2:*;
for each (_local2 in near) {
if (_local2 != null){
if (_arg1 == _local2){
return (true);
};
};
};
return (false);
}
public function turnToFriend():void{
var _local8:String;
if (!busy){
return;
};
if (busy.color == "black"){
return;
};
var _local1:Array = new Array();
var _local2:Square;
var _local3:Square;
var _local4:Square;
var _local5:Square;
_local2 = parentClip.getSquare((xPos - 1), yPos);
if (((_local2) && (_local2.busy))){
_local1.push(_local2);
};
_local3 = parentClip.getSquare((xPos + 1), yPos);
if (((_local3) && (_local3.busy))){
_local1.push(_local3);
};
_local4 = parentClip.getSquare(xPos, (yPos - 1));
if (((_local4) && (_local4.busy))){
_local1.push(_local4);
};
_local5 = parentClip.getSquare(xPos, (yPos + 1));
if (((_local5) && (_local5.busy))){
_local1.push(_local5);
};
if (_local1.length == 0){
return;
};
var _local6:Array = new Array();
var _local7:Number = 0;
while (_local7 < _local1.length) {
if (Square(_local1[_local7]).busy.color == busy.color){
_local6.push(_local1[_local7]);
};
_local7++;
};
if (_local6.length == 0){
if (((((!((busy.state == "lonely"))) && (!((busy.state == "look"))))) && (!((busy.state == "tik"))))){
busy.changeState("normal");
};
return;
};
if (_local6.length == 2){
busy.changeState("dance");
return;
};
if (_local6.length == 1){
if (Square(_local6[0]).xPos < xPos){
_local8 = "left";
};
if (Square(_local6[0]).xPos > xPos){
_local8 = "right";
};
if (Square(_local6[0]).yPos < yPos){
_local8 = "up";
};
if (Square(_local6[0]).yPos > yPos){
_local8 = "down";
};
busy.changeState(_local8);
return;
};
}
public function set busy(_arg1:Fury):void{
clv_busy = _arg1;
if (_arg1 != null){
_arg1.under = this;
};
}
public function get busy():Fury{
return (clv_busy);
}
}
}//package classes
Section 47
//YesNoWindow (classes.YesNoWindow)
package classes {
import flash.display.*;
public class YesNoWindow extends Sprite {
protected var clip:yes_no_window;
protected var bt_yes:MyButton;
protected var bt_no:MyButton;
public function YesNoWindow(_arg1:String="en"){
clip = new yes_no_window();
addChild(clip);
switch (_arg1){
case "ru":
bt_yes = new MyButton("ДА");
bt_no = new MyButton("НЕТ");
clip.message.text = "Вы действительно хотите выйти в карту?";
break;
case "en":
bt_yes = new MyButton("YES");
bt_no = new MyButton("NO");
clip.message.text = "Are you sure to quit to the map?";
break;
default:
bt_yes = new MyButton("YES");
bt_no = new MyButton("NO");
break;
};
bt_no.name = "bt_no";
bt_yes.name = "bt_yes";
bt_no.x = 311;
bt_no.y = 239.8;
bt_yes.x = 491.1;
bt_yes.y = 239.8;
clip.addChild(bt_no);
clip.addChild(bt_yes);
}
}
}//package classes
Section 48
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 49
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 50
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 51
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 52
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 53
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 54
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 55
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 56
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 57
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 58
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 59
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import com.kongregate.as3.client.events.*;
import com.kongregate.as3.client.services.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.errors.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 60
//splash_movie_2 (effects_light_fla.splash_movie_2)
package effects_light_fla {
import flash.display.*;
public dynamic class splash_movie_2 extends MovieClip {
public function splash_movie_2(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package effects_light_fla
Section 61
//star_movie_4 (effects_light_fla.star_movie_4)
package effects_light_fla {
import flash.display.*;
public dynamic class star_movie_4 extends MovieClip {
public function star_movie_4(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package effects_light_fla
Section 62
//all_plans_9 (final_fla.all_plans_9)
package final_fla {
import flash.display.*;
public dynamic class all_plans_9 extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package final_fla
Section 63
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 64
//Elastic (gs.easing.Elastic)
package gs.easing {
public class Elastic {
private static const _2PI:Number = (Math.PI * 2);
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2));
}
}
}//package gs.easing
Section 65
//Linear (gs.easing.Linear)
package gs.easing {
public class Linear {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package gs.easing
Section 66
//TweenEvent (gs.events.TweenEvent)
package gs.events {
import flash.events.*;
public class TweenEvent extends Event {
public var info:Object;
public static const UPDATE:String = "update";
public static const START:String = "start";
public static const version:Number = 0.9;
public static const COMPLETE:String = "complete";
public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){
super(_arg1, _arg3, _arg4);
this.info = _arg2;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable));
}
}
}//package gs.events
Section 67
//OverwriteManager (gs.OverwriteManager)
package gs {
import flash.utils.*;
public class OverwriteManager {
public static const ALL:int = 1;
public static const NONE:int = 0;
public static const AUTO:int = 2;
public static const CONCURRENT:int = 3;
public static const version:Number = 0.96;
public static var mode:int;
public static var enabled:Boolean;
public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Array, _arg5:Array):void{
var _local7:String;
var _local6:int = (_arg4.length - 1);
while (_local6 > -1) {
if (_arg1[_arg4[_local6].name] != undefined){
_arg4.splice(_local6, 1);
};
_local6--;
};
_local6 = (_arg3.length - 1);
while (_local6 > -1) {
if (_arg1[_arg3[_local6].name] != undefined){
_arg3.splice(_local6, 1);
};
_local6--;
};
_local6 = (_arg5.length - 1);
while (_local6 > -1) {
if (_arg1[_arg5[_local6].name] != undefined){
_arg5.splice(_local6, 1);
};
_local6--;
};
for (_local7 in _arg1) {
delete _arg2[_local7];
};
}
public static function manageOverwrites(_arg1:TweenLite, _arg2:Dictionary):void{
var _local5:Object;
var _local8:int;
var _local9:Object;
var _local10:String;
var _local3:Object = _arg1.vars;
var _local4:int = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite);
if (_local4 < 2){
return;
};
var _local6:Number = _arg1.startTime;
var _local7:Array = [];
for each (_local5 in _arg2) {
if (((!((_local5 == _arg1))) && ((_local5.startTime <= _local6)))){
_local7[_local7.length] = _local5;
};
};
if (_local7.length == 0){
return;
};
if (_local4 == AUTO){
if (_local3.isTV == true){
_local3 = _local3.exposedProps;
};
_local9 = {};
for (_local10 in _local3) {
if ((((((((((((((((((((((((((((((((((((((_local10 == "ease")) || ((_local10 == "delay")))) || ((_local10 == "overwrite")))) || ((_local10 == "onComplete")))) || ((_local10 == "onCompleteParams")))) || ((_local10 == "runBackwards")))) || ((_local10 == "persist")))) || ((_local10 == "onUpdate")))) || ((_local10 == "onUpdateParams")))) || ((_local10 == "timeScale")))) || ((_local10 == "onStart")))) || ((_local10 == "onStartParams")))) || ((_local10 == "renderOnStart")))) || ((_local10 == "proxiedEase")))) || ((_local10 == "easeParams")))) || ((_local10 == "onCompleteAll")))) || ((_local10 == "onCompleteAllParams")))) || ((_local10 == "yoyo")))) || ((_local10 == "loop")))){
} else {
_local9[_local10] = 1;
};
};
_local8 = (_local7.length - 1);
while (_local8 > -1) {
_local7[_local8].killVars(_local9);
_local8--;
};
} else {
_local8 = (_local7.length - 1);
while (_local8 > -1) {
_arg2[_local7[_local8]] = null;
delete _arg2[_local7[_local8]];
_local8--;
};
};
}
public static function init(_arg1:int=2):int{
if (TweenLite.version < 8.14){
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
};
TweenLite.overwriteManager = OverwriteManager;
mode = _arg1;
enabled = true;
return (mode);
}
}
}//package gs
Section 68
//TweenFilterLite (gs.TweenFilterLite)
package gs {
import flash.filters.*;
import flash.utils.*;
public class TweenFilterLite extends TweenLite {
protected var _matrix:Array;
protected var _hf:Boolean;// = false
protected var _cmf:ColorMatrixFilter;
protected var _uncombinedTimeScale:Number;
protected var _filters:Array;
protected var _endMatrix:Array;
protected var _originalEase:Function;
protected var _clrsa:Array;
public static var removeTween:Function = TweenLite.removeTween;
private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
private static var _lumB:Number = 0.072169;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var version:Number = 8.22;
private static var _lumG:Number = 0.71516;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _lumR:Number = 0.212671;
protected static var _globalTimeScale:Number = 1;
public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){
_filters = [];
super(_arg1, _arg2, _arg3);
_originalEase = this.vars.ease;
if (((!((_timeScale == 1))) && ((this.target is TweenFilterLite)))){
_uncombinedTimeScale = 1;
_timeScale = _globalTimeScale;
} else {
_uncombinedTimeScale = _timeScale;
_timeScale = (_timeScale * _globalTimeScale);
};
if (((!((_timeScale == 1))) && (!((this.delay == 0))))){
this.startTime = (this.initTime + (this.delay * (1000 / _timeScale)));
};
if (TweenLite.version < 8.16){
trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
};
if (_arg3.type != undefined){
trace((("TweenFilterLite error: " + _arg1) + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details."));
};
}
override public function killVars(_arg1:Object):void{
if (TweenLite.overwriteManager.enabled){
TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, _filters);
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:int;
var _local4:Object;
var _local5:Object;
var _local6:Object;
if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]);
};
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
_arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ");
if (_isDisplayObject){
if (this.vars.blurFilter != null){
_local4 = this.vars.blurFilter;
addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2))));
};
if (this.vars.glowFilter != null){
_local4 = this.vars.glowFilter;
addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout));
};
if (this.vars.colorMatrixFilter != null){
_local4 = this.vars.colorMatrixFilter;
_local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
_cmf = _local5.filter;
_matrix = ColorMatrixFilter(_cmf).matrix;
if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true){
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
};
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!isNaN(_local4.colorize)){
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else {
if (!isNaN(_local4.color)){
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
};
};
};
_local3 = 0;
while (_local3 < _endMatrix.length) {
if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){
this.tweens[this.tweens.length] = {o:_matrix, p:_local3.toString(), s:_matrix[_local3], c:(_endMatrix[_local3] - _matrix[_local3]), name:"colorMatrixFilter"};
};
_local3++;
};
};
if (this.vars.dropShadowFilter != null){
_local4 = this.vars.dropShadowFilter;
addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject));
};
if (this.vars.bevelFilter != null){
_local4 = this.vars.bevelFilter;
addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2))));
};
if (this.vars.runBackwards == true){
_local3 = (_clrsa.length - 1);
while (_local3 > -1) {
_local6 = _clrsa[_local3];
_clrsa[_local3].sr = (_local6.sr + _local6.cr);
_local6.cr = (_local6.cr * -1);
_local6.sg = (_local6.sg + _local6.cg);
_local6.cg = (_local6.cg * -1);
_local6.sb = (_local6.sb + _local6.cb);
_local6.cb = (_local6.cb * -1);
_local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb);
_local3--;
};
};
super.initTweenVals(true, _arg2);
} else {
super.initTweenVals(_arg1, _arg2);
};
}
public function set timeScale(_arg1:Number):void{
if (_arg1 < 1E-5){
_arg1 = (_uncombinedTimeScale = 1E-5);
} else {
_uncombinedTimeScale = _arg1;
_arg1 = (_arg1 * _globalTimeScale);
};
this.initTime = ((_curTime - ((((_curTime - this.initTime) - (this.delay * (1000 / _timeScale))) * _timeScale) * (1 / _arg1))) - (this.delay * (1000 / _arg1)));
if (this.startTime != 99999999999){
this.startTime = (this.initTime + (this.delay * (1000 / _arg1)));
};
_timeScale = _arg1;
}
public function get timeScale():Number{
return (_uncombinedTimeScale);
}
override public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local6:Array;
var _local7:int;
var _local2:Number = (((_arg1 - this.startTime) / 1000) * _timeScale);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((_originalEase == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
_local5--;
};
if (_hf){
_local5 = (_clrsa.length - 1);
while (_local5 > -1) {
_local4 = _clrsa[_local5];
_local4.f[_local4.p] = ((((_local4.sr + (_local3 * _local4.cr)) << 16) | ((_local4.sg + (_local3 * _local4.cg)) << 8)) | (_local4.sb + (_local3 * _local4.cb)));
_local5--;
};
if (_cmf != null){
ColorMatrixFilter(_cmf).matrix = _matrix;
};
_local6 = this.target.filters;
_local5 = 0;
while (_local5 < _filters.length) {
_local7 = (_local6.length - 1);
while (_local7 > -1) {
if ((_local6[_local7] is _filters[_local5].type)){
_local6.splice(_local7, 1, _filters[_local5].filter);
break;
};
_local7--;
};
_local5++;
};
this.target.filters = _local6;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{
var _local8:int;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
var _local6:Object = {type:_arg3, name:_arg1};
var _local7:Array = this.target.filters;
_local8 = 0;
while (_local8 < _local7.length) {
if ((_local7[_local8] is _arg3)){
_local6.filter = _local7[_local8];
break;
};
_local8++;
};
if (_local6.filter == undefined){
_local6.filter = _arg5;
_local7[_local7.length] = _local6.filter;
this.target.filters = _local7;
};
_local8 = 0;
while (_local8 < _arg4.length) {
_local9 = _arg4[_local8];
if (_arg2[_local9] != undefined){
if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){
_local11 = HEXtoRGB(_local6.filter[_local9]);
_local12 = HEXtoRGB(_arg2[_local9]);
_clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)};
} else {
if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){
_local6.filter[_local9] = _arg2[_local9];
} else {
if (typeof(_arg2[_local9]) == "number"){
_local10 = (_arg2[_local9] - _local6.filter[_local9]);
} else {
_local10 = Number(_arg2[_local9]);
};
this.tweens[this.tweens.length] = {o:_local6.filter, p:_local9, s:_local6.filter[_local9], c:_local10, name:_arg1};
};
};
};
_local8++;
};
_filters[_filters.length] = _local6;
_hf = true;
return (_local6);
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
var _local3:Number = Math.cos(_arg2);
var _local4:Number = Math.sin(_arg2);
var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
var _local3:Array = [];
var _local4:int;
var _local5:int;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF);
var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF);
var _local6:Number = ((_arg2 & 0xFF) / 0xFF);
var _local7:Number = (1 - _arg3);
var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Number = (1 - _arg2);
var _local4:Number = (_local3 * _lumR);
var _local5:Number = (_local3 * _lumG);
var _local6:Number = (_local3 * _lumB);
var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function setGlobalTimeScale(_arg1:Number):void{
var _local3:Object;
var _local4:Object;
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
var _local2:Dictionary = _all;
_globalTimeScale = _arg1;
for each (_local3 in _local2) {
for (_local4 in _local3) {
if ((_local3[_local4] is TweenFilterLite)){
_local3[_local4].timeScale = (_local3[_local4].timeScale * 1);
};
};
};
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
_arg3.runBackwards = true;
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function HEXtoRGB(_arg1:Number):Object{
return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)});
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 69
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _subTweens:Array;
protected var _initted:Boolean;
public var startTime:int;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
protected var _isDisplayObject:Boolean;
protected var _active:Boolean;
public var tweens:Array;
public var vars:Object;
public var initTime:int;
protected var _timeScale:Number;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 8.16;
protected static var _all:Dictionary = new Dictionary();
private static var _sprite:Sprite = new Sprite();
protected static var _curTime:uint;
public static var overwriteManager:Object;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _listening:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local5:*;
super();
if (_arg1 == null){
return;
};
if (!_classInitted){
_curTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_classInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
_timeScale = ((_arg3.timeScale) || (1));
_active = (((_arg2 == 0)) && ((this.delay == 0)));
this.target = _arg1;
_isDisplayObject = (_arg1 is DisplayObject);
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
this.vars.visible = (this.vars.alpha > 0);
};
this.tweens = [];
_subTweens = [];
_hst = (_initted = false);
this.initTime = _curTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if ((((_all[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){
delete _all[_arg1];
_all[_arg1] = new Dictionary(true);
} else {
if ((((_local4 > 1)) && ((this.delay == 0)))){
overwriteManager.manageOverwrites(this, _all[_arg1]);
};
};
_all[_arg1][this] = this;
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){
initTweenVals();
if (_active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
_local5 = this.vars.visible;
if (this.vars.isTV == true){
_local5 = this.vars.exposedProps.visible;
};
if (((((!((_local5 == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){
this.target.visible = Boolean(_local5);
};
};
if (((!(_listening)) && (!(_active)))){
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
};
}
protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{
var _local7:String;
var _local6:Object = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5};
_subTweens[_subTweens.length] = _local6;
for (_local7 in _arg4) {
if (typeof(_arg4[_local7]) == "number"){
this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:(_arg4[_local7] - _arg3[_local7]), sub:_local6, name:_arg1};
} else {
this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:Number(_arg4[_local7]), sub:_local6, name:_arg1};
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local6:Array;
var _local7:ColorTransform;
var _local8:ColorTransform;
var _local9:Object;
var _local5:Object = this.vars;
if (_local5.isTV == true){
_local5 = _local5.exposedProps;
};
if (((((!(_arg1)) && (!((this.delay == 0))))) && (overwriteManager.enabled))){
overwriteManager.manageOverwrites(this, _all[this.target]);
};
if ((this.target is Array)){
_local6 = ((this.vars.endArray) || ([]));
_local4 = 0;
while (_local4 < _local6.length) {
if (((!((this.target[_local4] == _local6[_local4]))) && (!((this.target[_local4] == undefined))))){
this.tweens[this.tweens.length] = {o:this.target, p:_local4.toString(), s:this.target[_local4], c:(_local6[_local4] - this.target[_local4]), name:_local4.toString()};
};
_local4++;
};
} else {
if (((((!((typeof(_local5.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){
_local7 = this.target.transform.colorTransform;
_local8 = new ColorTransform();
if (_local5.alpha != undefined){
_local8.alphaMultiplier = _local5.alpha;
delete _local5.alpha;
} else {
_local8.alphaMultiplier = this.target.alpha;
};
if (((!((this.vars.removeTint == true))) && (((((!((_local5.tint == null))) && (!((_local5.tint == ""))))) || ((_local5.tint == 0)))))){
_local8.color = _local5.tint;
};
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8});
};
if (((!((_local5.frame == null))) && (_isDisplayObject))){
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_local5.frame}, {target:this.target});
};
if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
};
for (_local3 in _local5) {
if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((((_local3 == "timeScale")) && (!((this.target is TweenLite))))))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){
} else {
if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){
if (typeof(_local5[_local3]) == "number"){
this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:(_local5[_local3] - this.target[_local3]), name:_local3};
} else {
this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:Number(_local5[_local3]), name:_local3};
};
};
};
};
};
if (this.vars.runBackwards == true){
_local4 = (this.tweens.length - 1);
while (_local4 > -1) {
_local9 = this.tweens[_local4];
this.tweens[_local4].s = (_local9.s + _local9.c);
_local9.c = (_local9.c * -1);
_local4--;
};
};
if ((((_local5.visible == true)) && (_isDisplayObject))){
this.target.visible = true;
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
_initted = true;
}
public function get active():Boolean{
if (_active){
return (true);
};
if (_curTime >= this.startTime){
_active = true;
if (!_initted){
initTweenVals();
} else {
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) / 1000);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = 1;
} else {
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
_local5--;
};
if (_hst){
_local5 = (_subTweens.length - 1);
while (_local5 > -1) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5--;
};
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!_initted){
initTweenVals();
};
this.startTime = (_curTime - ((this.duration * 1000) / _timeScale));
render(_curTime);
return;
};
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
if (((!(isNaN(this.vars.autoAlpha))) && ((this.target.alpha == 0)))){
this.target.visible = false;
} else {
if (this.vars.runBackwards != true){
this.target.visible = this.vars.visible;
};
};
};
if (this.vars.persist != true){
removeTween(this);
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function frameProxy(_arg1:Object):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite=null):void{
if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){
_all[_arg1.target][_arg1] = null;
delete _all[_arg1.target][_arg1];
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Object;
var _local4:*;
if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){
if (_arg2){
_local3 = _all[_arg1];
for (_local4 in _local3) {
_local3[_local4].complete(false);
};
};
delete _all[_arg1];
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function executeAll(_arg1:Event=null):void{
var _local3:Dictionary;
var _local4:Object;
var _local5:Object;
var _local2:uint = (_curTime = getTimer());
if (_listening){
_local3 = _all;
for each (_local4 in _local3) {
for (_local5 in _local4) {
if (((!((_local4[_local5] == undefined))) && (_local4[_local5].active))){
_local4[_local5].render(_local2);
};
};
};
};
}
public static function volumeProxy(_arg1:Object):void{
_arg1.info.target.soundTransform = _arg1.target;
}
public static function killGarbage(_arg1:TimerEvent):void{
var _local3:Boolean;
var _local4:Object;
var _local5:Object;
var _local6:Object;
var _local2:uint;
for (_local4 in _all) {
_local3 = false;
for (_local5 in _all[_local4]) {
_local3 = true;
break;
};
if (!_local3){
delete _all[_local4];
} else {
_local2++;
};
};
if (_local2 == 0){
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
};
}
public static function tintProxy(_arg1:Object):void{
var _local2:Number = _arg1.target.progress;
var _local3:Number = (1 - _local2);
var _local4:Object = _arg1.info.color;
var _local5:Object = _arg1.info.endColor;
_arg1.info.target.transform.colorTransform = new ColorTransform(((_local4.redMultiplier * _local3) + (_local5.redMultiplier * _local2)), ((_local4.greenMultiplier * _local3) + (_local5.greenMultiplier * _local2)), ((_local4.blueMultiplier * _local3) + (_local5.blueMultiplier * _local2)), ((_local4.alphaMultiplier * _local3) + (_local5.alphaMultiplier * _local2)), ((_local4.redOffset * _local3) + (_local5.redOffset * _local2)), ((_local4.greenOffset * _local3) + (_local5.greenOffset * _local2)), ((_local4.blueOffset * _local3) + (_local5.blueOffset * _local2)), ((_local4.alphaOffset * _local3) + (_local5.alphaOffset * _local2)));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 70
//TweenMax (gs.TweenMax)
package gs {
import flash.events.*;
import flash.utils.*;
import gs.events.*;
public class TweenMax extends TweenFilterLite implements IEventDispatcher {
protected var _dispatcher:EventDispatcher;
protected var _callbacks:Object;
protected var _pauseTime:int;
protected static const _RAD2DEG:Number = 57.2957795130823;
public static var removeTween:Function = TweenLite.removeTween;
private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init();
;
public static var setGlobalTimeScale:Function = TweenFilterLite.setGlobalTimeScale;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public static var version:Number = 2.34;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
_pauseTime = -1;
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
initDispatcher();
if ((((_arg2 == 0)) && ((this.delay == 0)))){
onUpdateDispatcher();
onCompleteDispatcher();
};
};
if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){
this.vars.persist = true;
};
if (TweenFilterLite.version < 8.22){
trace("TweenMax error! Please update your TweenFilterLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
};
}
public function dispatchEvent(_arg1:Event):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.dispatchEvent(_arg1));
}
public function get reversed():Boolean{
return ((this.vars.ease == reverseEase));
}
protected function enable():void{
if (_all[this.target] == undefined){
_all[this.target] = new Dictionary(true);
};
if (_all[this.target][this] != this){
_timeScale = (_uncombinedTimeScale * _globalTimeScale);
_all[this.target][this] = this;
};
}
public function set reversed(_arg1:Boolean):void{
if (this.reversed != _arg1){
reverse();
};
}
protected function onStartDispatcher(... _args):void{
if (_callbacks.onStart != null){
_callbacks.onStart.apply(null, this.vars.onStartParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START));
}
public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (_dispatcher == null){
initDispatcher();
};
if ((((_arg1 == TweenEvent.UPDATE)) && (!((this.vars.onUpdate == onUpdateDispatcher))))){
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
_dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (_dispatcher != null){
_dispatcher.removeEventListener(_arg1, _arg2, _arg3);
};
}
public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{
var _local5:Object;
var _local6:int;
var _local7:Object;
var _local8:Array;
var _local9:Array;
var _local4:Number = this.progress;
if (((!((this.vars[_arg1] == undefined))) && (_initted))){
if (((!(_arg3)) && (!((_local4 == 0))))){
_local6 = (this.tweens.length - 1);
while (_local6 > -1) {
if (this.tweens[_local6].name == _arg1){
this.tweens[_local6].o[this.tweens[_local6].p] = this.tweens[_local6].s;
};
_local6--;
};
};
_local5 = {};
_local5[_arg1] = 1;
killVars(_local5);
};
this.vars[_arg1] = _arg2;
if (_initted){
_local7 = this.vars;
_local8 = this.tweens;
_local9 = _subTweens;
this.vars = {};
this.tweens = [];
_subTweens = [];
this.vars[_arg1] = _arg2;
initTweenVals();
if (((_arg3) && (!((_local4 == 0))))){
this.vars.ease = _local7.ease;
adjustStartValues();
};
this.vars = _local7;
this.tweens = _local8.concat(this.tweens);
_subTweens = _local9.concat(_subTweens);
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Object;
var _local6:Object;
var _local7:Array;
_arg2 = (_arg2 + " hexColors bezier bezierThrough orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop onCompleteListener onUpdateListener onStartListener ");
if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){
TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]);
};
var _local8:Function = bezierProxy;
if (this.vars.orientToBezier == true){
this.vars.orientToBezier = [["x", "y", "rotation", 0]];
_local8 = bezierProxy2;
} else {
if ((this.vars.orientToBezier is Array)){
_local8 = bezierProxy2;
};
};
if (((!((this.vars.bezier == undefined))) && ((this.vars.bezier is Array)))){
_local6 = {};
_local7 = this.vars.bezier;
_local4 = 0;
while (_local4 < _local7.length) {
for (_local3 in _local7[_local4]) {
if (_local6[_local3] == undefined){
_local6[_local3] = [this.target[_local3]];
};
if (typeof(_local7[_local4][_local3]) == "number"){
_local6[_local3].push(_local7[_local4][_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3])));
};
};
_local4++;
};
for (_local3 in _local6) {
if (typeof(this.vars[_local3]) == "number"){
_local6[_local3].push(this.vars[_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(this.vars[_local3])));
};
delete this.vars[_local3];
};
addSubTween("bezier", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, false), target:this.target, orientToBezier:this.vars.orientToBezier});
};
if (((!((this.vars.bezierThrough == undefined))) && ((this.vars.bezierThrough is Array)))){
_local6 = {};
_local7 = this.vars.bezierThrough;
_local4 = 0;
while (_local4 < _local7.length) {
for (_local3 in _local7[_local4]) {
if (_local6[_local3] == undefined){
_local6[_local3] = [this.target[_local3]];
};
if (typeof(_local7[_local4][_local3]) == "number"){
_local6[_local3].push(_local7[_local4][_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3])));
};
};
_local4++;
};
for (_local3 in _local6) {
if (typeof(this.vars[_local3]) == "number"){
_local6[_local3].push(this.vars[_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(this.vars[_local3])));
};
delete this.vars[_local3];
};
addSubTween("bezierThrough", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, true), target:this.target, orientToBezier:this.vars.orientToBezier});
};
if (((!((this.vars.hexColors == undefined))) && ((typeof(this.vars.hexColors) == "object")))){
for (_local3 in this.vars.hexColors) {
addSubTween("hexColors", hexColorsProxy, {r:(this.target[_local3] >> 16), g:((this.target[_local3] >> 8) & 0xFF), b:(this.target[_local3] & 0xFF)}, {r:(this.vars.hexColors[_local3] >> 16), g:((this.vars.hexColors[_local3] >> 8) & 0xFF), b:(this.vars.hexColors[_local3] & 0xFF)}, {prop:_local3, target:this.target});
};
};
super.initTweenVals(true, _arg2);
}
protected function adjustStartValues():void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local1:Number = this.progress;
if (_local1 != 0){
_local2 = (1 / (1 - this.vars.ease((_local1 * this.duration), 0, 1, this.duration)));
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local3 = (_local4.s + _local4.c);
_local4.c = ((_local3 - _local4.o[_local4.p]) * _local2);
_local4.s = (_local3 - _local4.c);
_local5--;
};
};
}
public function restart(_arg1:Boolean=false):void{
if (_arg1){
this.initTime = _curTime;
this.startTime = (_curTime + (this.delay * (1000 / _timeScale)));
} else {
this.startTime = _curTime;
this.initTime = (_curTime - (this.delay * (1000 / _timeScale)));
};
if (this.target != this.vars.onComplete){
render(this.startTime);
};
_pauseTime = -1;
enable();
}
protected function initDispatcher():void{
var _local1:Object;
var _local2:String;
if (_dispatcher == null){
_dispatcher = new EventDispatcher(this);
_callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete};
_local1 = {};
for (_local2 in this.vars) {
_local1[_local2] = this.vars[_local2];
};
this.vars = _local1;
this.vars.onStart = onStartDispatcher;
this.vars.onComplete = onCompleteDispatcher;
if ((this.vars.onStartListener is Function)){
_dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true);
};
if ((this.vars.onUpdateListener is Function)){
_dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true);
this.vars.onUpdate = onUpdateDispatcher;
_hasUpdate = true;
};
if ((this.vars.onCompleteListener is Function)){
_dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true);
};
};
}
protected function onUpdateDispatcher(... _args):void{
if (_callbacks.onUpdate != null){
_callbacks.onUpdate.apply(null, this.vars.onUpdateParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE));
}
public function reverse(_arg1:Boolean=true):void{
this.vars.ease = ((this.vars.ease)==_originalEase) ? reverseEase : _originalEase;
var _local2:Number = this.progress;
if (_pauseTime != -1){
if (_local2 < 1){
resume();
} else {
_pauseTime = -1;
_active = true;
};
};
if (((_arg1) && ((_local2 > 0)))){
this.startTime = (_curTime - ((((1 - _local2) * this.duration) * 1000) / _timeScale));
this.initTime = (this.startTime - (this.delay * (1000 / _timeScale)));
};
enable();
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
pause();
} else {
resume();
};
}
public function willTrigger(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.willTrigger(_arg1));
}
override public function get active():Boolean{
if (_active){
return (true);
};
if (_pauseTime != -1){
return (false);
};
if (_curTime >= this.startTime){
_active = true;
if (!_initted){
initTweenVals();
} else {
if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function resume():void{
var _local1:Number;
var _local2:Boolean;
var _local3:Number;
if (_pauseTime != -1){
_local1 = (this.delay * (1000 / _timeScale));
_local2 = (_pauseTime > (this.initTime + _local1));
_local3 = (_curTime - _pauseTime);
this.initTime = (this.initTime + _local3);
this.startTime = (this.initTime + _local1);
_pauseTime = -1;
if (((!(_local2)) && ((_curTime >= this.startTime)))){
_local2 = this.active;
} else {
_active = _local2;
};
};
enable();
}
public function get paused():Boolean{
return (!((_pauseTime == -1)));
}
public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (_originalEase((_arg4 - _arg1), _arg2, _arg3, _arg4));
}
public function killProperties(_arg1:Array):void{
var _local3:int;
var _local2:Object = {};
_local3 = (_arg1.length - 1);
while (_local3 > -1) {
if (this.vars[_arg1[_local3]] != null){
_local2[_arg1[_local3]] = 1;
};
_local3--;
};
killVars(_local2);
}
public function set progress(_arg1:Number):void{
this.startTime = (_curTime - ((this.duration * _arg1) * 1000));
this.initTime = (this.startTime - (this.delay * (1000 / _timeScale)));
var _local2:Boolean = this.active;
render(_curTime);
if (_pauseTime != -1){
_pauseTime = _curTime;
this.startTime = 99999999999;
};
var _local3:* = this.vars.visible;
if (this.vars.isTV == true){
_local3 = this.vars.exposedProps.visible;
};
if (((((!((_local3 == null))) && (_isDisplayObject))) && ((_arg1 < 1)))){
this.target.visible = Boolean(_local3);
};
}
public function hasEventListener(_arg1:String):Boolean{
if (_dispatcher == null){
return (false);
};
return (_dispatcher.hasEventListener(_arg1));
}
public function pause():void{
if (_pauseTime == -1){
_pauseTime = _curTime;
this.startTime = 99999999999;
_active = false;
};
}
override public function complete(_arg1:Boolean=false):void{
if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){
if (this.vars.yoyo == true){
reverse(false);
};
this.startTime = _curTime;
this.initTime = (this.startTime - (this.delay * (1000 / _timeScale)));
} else {
if (this.vars.persist == true){
pause();
};
};
super.complete(_arg1);
}
public function invalidate(_arg1:Boolean=true):void{
var _local2:Number;
if (_initted){
_local2 = this.progress;
if (((!(_arg1)) && (!((_local2 == 0))))){
this.progress = 0;
};
this.tweens = [];
_subTweens = [];
initTweenVals();
_timeScale = (((this.vars.timeScale) || (1)) * _globalTimeScale);
if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){
if (_dispatcher != null){
this.vars.onStart = _callbacks.onStart;
this.vars.onUpdate = _callbacks.onUpdate;
this.vars.onComplete = _callbacks.onComplete;
_dispatcher = null;
};
initDispatcher();
};
if (_local2 != 0){
if (_arg1){
adjustStartValues();
} else {
this.progress = _local2;
};
};
};
}
public function get progress():Number{
var _local1:Number = ((_pauseTime)!=-1) ? _pauseTime : _curTime;
var _local2:Number = (((((_local1 - this.initTime) / 1000) - (this.delay / _timeScale)) / this.duration) * _timeScale);
if (_local2 > 1){
return (1);
};
if (_local2 < 0){
return (0);
};
return (_local2);
}
protected function onCompleteDispatcher(... _args):void{
if (_callbacks.onComplete != null){
_callbacks.onComplete.apply(null, this.vars.onCompleteParams);
};
_dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE));
}
public static function sequence(_arg1:Object, _arg2:Array):Array{
var _local3:uint;
while (_local3 < _arg2.length) {
_arg2[_local3].target = _arg1;
_local3++;
};
return (multiSequence(_arg2));
}
public static function bezierProxy(_arg1:Object):void{
var _local5:int;
var _local6:String;
var _local7:Object;
var _local8:Number;
var _local9:uint;
var _local2:Number = _arg1.target.t;
var _local3:Object = _arg1.info.props;
var _local4:Object = _arg1.info.target;
if (_local2 == 1){
for (_local6 in _local3) {
_local5 = (_local3[_local6].length - 1);
_local4[_local6] = _local3[_local6][_local5].e;
};
} else {
for (_local6 in _local3) {
_local9 = _local3[_local6].length;
if (_local2 < 0){
_local5 = 0;
} else {
if (_local2 >= 1){
_local5 = (_local9 - 1);
} else {
_local5 = int((_local9 * _local2));
};
};
_local8 = ((_local2 - (_local5 * (1 / _local9))) * _local9);
_local7 = _local3[_local6][_local5];
_local4[_local6] = (_local7.s + (_local8 * (((2 * (1 - _local8)) * (_local7.cp - _local7.s)) + (_local8 * (_local7.e - _local7.s)))));
};
};
}
public static function hexColorsProxy(_arg1:Object):void{
_arg1.info.target[_arg1.info.prop] = uint((((_arg1.target.r << 16) | (_arg1.target.g << 8)) | _arg1.target.b));
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5[_local5.length] = {s:_local4[0], cp:(_local4[1] - ((_local4[2] - _local4[0]) / 4)), e:_local4[1]};
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5[_local5.length] = {s:_local4[_local3], cp:(_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)].cp)), e:_local4[(_local3 + 1)]};
_local3++;
};
} else {
_local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]};
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:((_local4[1] + _local4[2]) / 2)};
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5.push({s:_local5[(_local3 - 2)].e, cp:_local4[_local3], e:((_local4[_local3] + _local4[(_local3 + 1)]) / 2)});
_local3++;
};
_local5[_local5.length] = {s:_local5[(_local5.length - 1)].e, cp:_local4[(_local4.length - 2)], e:_local4[(_local4.length - 1)]};
} else {
if (_local4.length == 3){
_local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:_local4[2]};
} else {
if (_local4.length == 2){
_local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]};
};
};
};
};
};
return (_local7);
}
public static function bezierProxy2(_arg1:Object):void{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
var _local9:Number;
bezierProxy(_arg1);
var _local2:Object = {};
var _local3:Object = _arg1.info.target;
_arg1.info.target = _local2;
_arg1.target.t = (_arg1.target.t + 0.01);
bezierProxy(_arg1);
var _local4:Array = _arg1.info.orientToBezier;
var _local10:uint;
while (_local10 < _local4.length) {
_local8 = _local4[_local10];
_local9 = ((_local8[3]) || (0));
_local6 = (_local2[_local8[0]] - _local3[_local8[0]]);
_local7 = (_local2[_local8[1]] - _local3[_local8[1]]);
_local3[_local8[2]] = ((Math.atan2(_local7, _local6) * _RAD2DEG) + _local9);
_local10++;
};
_arg1.info.target = _local3;
_arg1.target.t = (_arg1.target.t - 0.01);
}
public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(true, _arg1, _arg2);
}
public static function set globalTimeScale(_arg1:Number):void{
setGlobalTimeScale(_arg1);
}
public static function get globalTimeScale():Number{
return (_globalTimeScale);
}
public static function getTweensOf(_arg1:Object):Array{
var _local4:Object;
var _local2:Dictionary = _all[_arg1];
var _local3:Array = [];
if (_local2 != null){
for (_local4 in _local2) {
if (_local2[_local4].tweens != undefined){
_local3[_local3.length] = _local2[_local4];
};
};
};
return (_local3);
}
public static function killAllDelayedCalls(_arg1:Boolean=false):void{
killAll(_arg1, false, true);
}
public static function multiSequence(_arg1:Array):Array{
var _local6:Object;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:uint;
var _local11:Object;
var _local12:String;
var _local2:Dictionary = new Dictionary();
var _local3:Array = [];
var _local4:int = TweenLite.overwriteManager.mode;
var _local5:Number = 0;
_local10 = 0;
while (_local10 < _arg1.length) {
_local6 = _arg1[_local10];
_local9 = ((_local6.time) || (0));
_local11 = {};
for (_local12 in _local6) {
_local11[_local12] = _local6[_local12];
};
delete _local11.time;
_local8 = ((_local11.delay) || (0));
_local11.delay = (_local5 + _local8);
_local7 = _local11.target;
delete _local11.target;
if (_local4 == 1){
if (_local2[_local7] == undefined){
_local2[_local7] = _local11;
} else {
_local11.overwrite = 2;
};
};
_local3[_local3.length] = new TweenMax(_local7, _local9, _local11);
_local5 = (_local5 + (_local9 + _local8));
_local10++;
};
return (_local3);
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{
return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, persist:_arg4, overwrite:0}));
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array = getTweensOf(_arg1);
var _local3:int = (_local2.length - 1);
while (_local3 > -1) {
if (_local2[_local3].active){
return (true);
};
_local3--;
};
return (false);
}
public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){
if (_arg1){
_local4[_local6].complete();
} else {
TweenLite.removeTween(_local4[_local6]);
};
};
_local6--;
};
}
public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{
var _local5:Boolean;
var _local4:Array = getAllTweens();
var _local6:int = (_local4.length - 1);
while (_local6 > -1) {
_local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete);
if ((((_local4[_local6] is _slot1)) && ((((_local5 == _arg3)) || (!((_local5 == _arg2))))))){
_local4[_local6].paused = _arg1;
};
_local6--;
};
}
public static function callbackProxy(_arg1:Array, _arg2:Array=null):void{
var _local3:uint;
while (_local3 < _arg1.length) {
if (_arg1[_local3] != undefined){
_arg1[_local3].apply(null, _arg2[_local3]);
};
_local3++;
};
}
public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object):Array{
_arg3.runBackwards = true;
return (allTo(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function killAllTweens(_arg1:Boolean=false):void{
killAll(_arg1, true, false);
}
public static function getAllTweens():Array{
var _local3:Object;
var _local4:Object;
var _local1:Dictionary = _all;
var _local2:Array = [];
for each (_local3 in _local1) {
for (_local4 in _local3) {
if (_local3[_local4] != undefined){
_local2[_local2.length] = _local3[_local4];
};
};
};
return (_local2);
}
public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{
changePause(false, _arg1, _arg2);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object):Array{
var _local4:int;
var _local5:Object;
var _local6:String;
var _local7:Number;
var _local8:Object;
if (_arg1.length == 0){
return ([]);
};
var _local9:Array = [];
var _local10:Number = ((_arg3.delayIncrement) || (0));
delete _arg3.delayIncrement;
if (_arg3.onCompleteAll == undefined){
_local8 = _arg3;
} else {
_local8 = {};
for (_local6 in _arg3) {
_local8[_local6] = _arg3[_local6];
};
_local8.onCompleteParams = [[_arg3.onComplete, _arg3.onCompleteAll], [_arg3.onCompleteParams, _arg3.onCompleteAllParams]];
_local8.onComplete = _slot1.callbackProxy;
delete _arg3.onCompleteAll;
};
delete _arg3.onCompleteAllParams;
if (_local10 == 0){
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local5 = {};
for (_local6 in _arg3) {
_local5[_local6] = _arg3[_local6];
};
_local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5);
_local4++;
};
} else {
_local7 = ((_arg3.delay) || (0));
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local5 = {};
for (_local6 in _arg3) {
_local5[_local6] = _arg3[_local6];
};
_local5.delay = (_local7 + (_local4 * _local10));
_local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5);
_local4++;
};
_local8.delay = (_local7 + ((_arg1.length - 1) * _local10));
};
_local9[_local9.length] = new TweenMax(_arg1[(_arg1.length - 1)], _arg2, _local8);
if ((_arg3.onCompleteAllListener is Function)){
_local9[(_local9.length - 1)].addEventListener(TweenEvent.COMPLETE, _arg3.onCompleteAllListener);
};
return (_local9);
}
}
}//package gs
Section 71
//MapHighlight_55 (map_fla.MapHighlight_55)
package map_fla {
import flash.display.*;
public dynamic class MapHighlight_55 extends MovieClip {
public var third:MovieClip;
public var second:MovieClip;
public var first:MovieClip;
}
}//package map_fla
Section 72
//Timeline_15 (map_fla.Timeline_15)
package map_fla {
import flash.display.*;
public dynamic class Timeline_15 extends MovieClip {
public function Timeline_15(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package map_fla
Section 73
//Timeline_35 (map_fla.Timeline_35)
package map_fla {
import flash.display.*;
public dynamic class Timeline_35 extends MovieClip {
public function Timeline_35(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package map_fla
Section 74
//Timeline_4 (map_fla.Timeline_4)
package map_fla {
import flash.display.*;
public dynamic class Timeline_4 extends MovieClip {
public function Timeline_4(){
addFrameScript(110, frame111);
}
function frame111(){
stop();
}
}
}//package map_fla
Section 75
//Timeline_41 (map_fla.Timeline_41)
package map_fla {
import flash.display.*;
public dynamic class Timeline_41 extends MovieClip {
public function Timeline_41(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package map_fla
Section 76
//Timeline_50 (map_fla.Timeline_50)
package map_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Timeline_50 extends MovieClip {
public var mapText:TextField;
}
}//package map_fla
Section 77
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.0.0.0";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 78
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 79
//EdgeMetrics (mx.core.EdgeMetrics)
package mx.core {
public class EdgeMetrics {
public var top:Number;
public var left:Number;
public var bottom:Number;
public var right:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
;
public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.left = _arg1;
this.top = _arg2;
this.right = _arg3;
this.bottom = _arg4;
}
public function clone():EdgeMetrics{
return (new EdgeMetrics(left, top, right, bottom));
}
}
}//package mx.core
Section 80
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 81
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 82
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 83
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 84
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 85
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 86
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 87
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject {
protected var initialHeight:Number;// = 0
private var loader:Loader;// = null
private var initialized:Boolean;// = false
protected var initialWidth:Number;// = 0
private var requestedHeight:Number;
private var requestedWidth:Number;
mx_internal static const VERSION:String = "3.0.0.0";
public function MovieClipLoaderAsset(){
var _local1:LoaderContext = new LoaderContext();
_local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
if (("allowLoadBytesCodeExecution" in _local1)){
_local1["allowLoadBytesCodeExecution"] = true;
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.loadBytes(movieClipData, _local1);
addChild(loader);
}
override public function get width():Number{
if (!initialized){
return (initialWidth);
};
return (super.width);
}
override public function set width(_arg1:Number):void{
if (!initialized){
requestedWidth = _arg1;
} else {
loader.width = _arg1;
};
}
override public function get measuredHeight():Number{
return (initialHeight);
}
private function completeHandler(_arg1:Event):void{
initialized = true;
initialWidth = loader.width;
initialHeight = loader.height;
if (!isNaN(requestedWidth)){
loader.width = requestedWidth;
};
if (!isNaN(requestedHeight)){
loader.height = requestedHeight;
};
dispatchEvent(_arg1);
}
override public function set height(_arg1:Number):void{
if (!initialized){
requestedHeight = _arg1;
} else {
loader.height = _arg1;
};
}
override public function get measuredWidth():Number{
return (initialWidth);
}
override public function get height():Number{
if (!initialized){
return (initialHeight);
};
return (super.height);
}
public function get movieClipData():ByteArray{
return (null);
}
}
}//package mx.core
Section 88
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 89
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 90
//PropertyChangeEvent (mx.events.PropertyChangeEvent)
package mx.events {
import flash.events.*;
import mx.core.*;
public class PropertyChangeEvent extends Event {
public var newValue:Object;
public var kind:String;
public var property:Object;
public var oldValue:Object;
public var source:Object;
mx_internal static const VERSION:String = "3.0.0.0";
public static const PROPERTY_CHANGE:String = "propertyChange";
public function PropertyChangeEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Object=null){
super(_arg1, _arg2, _arg3);
this.kind = _arg4;
this.property = _arg5;
this.oldValue = _arg6;
this.newValue = _arg7;
this.source = _arg8;
}
override public function clone():Event{
return (new PropertyChangeEvent(type, bubbles, cancelable, kind, property, oldValue, newValue, source));
}
public static function createUpdateEvent(_arg1:Object, _arg2:Object, _arg3:Object, _arg4:Object):PropertyChangeEvent{
var _local5:PropertyChangeEvent = new PropertyChangeEvent(PROPERTY_CHANGE);
_local5.kind = PropertyChangeEventKind.UPDATE;
_local5.oldValue = _arg3;
_local5.newValue = _arg4;
_local5.source = _arg1;
_local5.property = _arg2;
return (_local5);
}
}
}//package mx.events
Section 91
//PropertyChangeEventKind (mx.events.PropertyChangeEventKind)
package mx.events {
import mx.core.*;
public final class PropertyChangeEventKind {
mx_internal static const VERSION:String = "3.0.0.0";
public static const UPDATE:String = "update";
public static const DELETE:String = "delete";
}
}//package mx.events
Section 92
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.0.0.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local4:String;
var _local5:Array;
var _local3:DisplayObject = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 93
//backgroundstars_3 (Preloader2_fla.backgroundstars_3)
package Preloader2_fla {
import flash.display.*;
public dynamic class backgroundstars_3 extends MovieClip {
public var star4:MovieClip;
public var star5:MovieClip;
public var star7:MovieClip;
public var star6:MovieClip;
public var star8:MovieClip;
public var star1:MovieClip;
public var star3:MovieClip;
public var star2:MovieClip;
}
}//package Preloader2_fla
Section 94
//girlgames_loader_2 (Preloader2_fla.girlgames_loader_2)
package Preloader2_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class girlgames_loader_2 extends MovieClip {
public var loaded:Boolean;
public var loader:MovieClip;
public var starBackground:MovieClip;
public var i;
public var u;
public var t;
public var r;
public var playBtn:SimpleButton;
public function girlgames_loader_2(){
addFrameScript(0, frame1, 60, frame61, 104, frame105, 148, frame149, 202, frame203, 236, frame237, 269, frame270, 300, frame301);
}
function frame270(){
stop();
}
function frame1(){
trace("First frame");
loaded = false;
}
function frame105(){
u = 1;
while (u <= 8) {
starBackground[("star" + u)].star.play();
u++;
};
}
function frame203(){
t = 1;
while (t <= 8) {
trace(starBackground[("star" + t)]);
starBackground[("star" + t)].star.play();
t++;
};
}
function frame237(){
if (!loaded){
stop();
};
}
function frame149(){
r = 1;
while (r <= 8) {
starBackground[("star" + r)].star.play();
r++;
};
}
function frame301(){
stop();
}
function frame61(){
i = 1;
while (i <= 8) {
trace(starBackground[("star" + i)]);
starBackground[("star" + i)].star.play();
i++;
};
}
}
}//package Preloader2_fla
Section 95
//loader_11 (Preloader2_fla.loader_11)
package Preloader2_fla {
import flash.display.*;
public dynamic class loader_11 extends MovieClip {
public var loadbar:MovieClip;
}
}//package Preloader2_fla
Section 96
//star_5 (Preloader2_fla.star_5)
package Preloader2_fla {
import flash.display.*;
public dynamic class star_5 extends MovieClip {
public function star_5(){
addFrameScript(0, frame1, 5, frame6, 10, frame11, 15, frame16, 20, frame21);
}
function frame6(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame21(){
stop();
}
function frame11(){
stop();
}
}
}//package Preloader2_fla
Section 97
//starClip_4 (Preloader2_fla.starClip_4)
package Preloader2_fla {
import flash.display.*;
public dynamic class starClip_4 extends MovieClip {
public var star:MovieClip;
}
}//package Preloader2_fla
Section 98
//Brd_103 (screens_fla.Brd_103)
package screens_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Brd_103 extends MovieClip {
public var timeTxt:TextField;
}
}//package screens_fla
Section 99
//pushistiki_for_pause_92 (screens_fla.pushistiki_for_pause_92)
package screens_fla {
import flash.display.*;
public dynamic class pushistiki_for_pause_92 extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package screens_fla
Section 100
//Timeline_61 (screens_fla.Timeline_61)
package screens_fla {
import flash.display.*;
public dynamic class Timeline_61 extends MovieClip {
public var fld:MovieClip;
public var palitra_mock:palitra_mc;
public var back:MovieClip;
}
}//package screens_fla
Section 101
//Timeline_2 (SoundBtn_fla.Timeline_2)
package SoundBtn_fla {
import flash.display.*;
public dynamic class Timeline_2 extends MovieClip {
public function Timeline_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SoundBtn_fla
Section 102
//Timeline_7 (SoundBtn_fla.Timeline_7)
package SoundBtn_fla {
import flash.display.*;
public dynamic class Timeline_7 extends MovieClip {
public function Timeline_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package SoundBtn_fla
Section 103
//all_plans_12 (Splash_fla.all_plans_12)
package Splash_fla {
import flash.display.*;
public dynamic class all_plans_12 extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package Splash_fla
Section 104
//star_for_invisible_movie_1_2_4 (UniButton_fla.star_for_invisible_movie_1_2_4)
package UniButton_fla {
import flash.display.*;
public dynamic class star_for_invisible_movie_1_2_4 extends MovieClip {
public function star_for_invisible_movie_1_2_4(){
addFrameScript(19, frame20);
}
function frame20(){
}
}
}//package UniButton_fla
Section 105
//star_for_invisible_movie_1_8 (UniButton_fla.star_for_invisible_movie_1_8)
package UniButton_fla {
import flash.display.*;
public dynamic class star_for_invisible_movie_1_8 extends MovieClip {
public function star_for_invisible_movie_1_8(){
addFrameScript(20, frame21);
}
function frame21(){
}
}
}//package UniButton_fla
Section 106
//star_for_invisible_movie_2_7 (UniButton_fla.star_for_invisible_movie_2_7)
package UniButton_fla {
import flash.display.*;
public dynamic class star_for_invisible_movie_2_7 extends MovieClip {
public function star_for_invisible_movie_2_7(){
addFrameScript(16, frame17);
}
function frame17(){
}
}
}//package UniButton_fla
Section 107
//MemoryController (utils.MemoryController)
package utils {
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class MemoryController {
private var mWarningFunction:Function;
private var mForcedCleanInterval:int;
private var mForcedIterationsNum:int;
private var mWarningMemoryLimit:int;
private var mInterval:int;
private var mCriticalMemoryLimit:int;
private var mAbortFunction:Function;
private var mIsAbleToForce:Boolean;
public function MemoryController(_arg1:int=1000, _arg2:int=62914560, _arg3:int=104857600, _arg4:int=60000, _arg5:int=1, _arg6:Function=null, _arg7:Function=null):void{
mInterval = _arg1;
mWarningMemoryLimit = _arg2;
mCriticalMemoryLimit = _arg3;
mAbortFunction = _arg6;
mWarningFunction = _arg7;
mForcedIterationsNum = _arg5;
mForcedCleanInterval = _arg4;
mIsAbleToForce = true;
setInterval(checkMemoryUsage, mInterval);
}
private function doForcedClean():void{
if (!mIsAbleToForce){
return;
};
var i:int;
i = 0;
while (i < mForcedIterationsNum) {
try {
new LocalConnection().connect("Crio");
new LocalConnection().connect("Crio");
} catch(e) {
};
i = (i + 1);
};
mIsAbleToForce = false;
setTimeout(MakeAbleToForce, mForcedCleanInterval);
}
private function doSimpleClean():void{
var _local1:Point = new Point();
_local1 = null;
var _local2:String = new String("1234567812345678");
_local2 = null;
var _local3:Array = new Array();
var _local4:int;
_local4 = 0;
while (_local4 < 0x0100) {
_local3.push(new String("a"));
_local4++;
};
_local4 = 0;
while (_local4 < 0x0100) {
delete _local3[_local4];
_local4++;
};
_local3 = null;
}
private function MakeAbleToForce():void{
mIsAbleToForce = true;
}
private function checkMemoryUsage():void{
if (System.totalMemory > mWarningMemoryLimit){
doForcedClean();
if (mWarningFunction){
mWarningFunction();
};
} else {
if (System.totalMemory > mCriticalMemoryLimit){
if (mAbortFunction){
mAbortFunction();
};
doForcedClean();
};
};
}
}
}//package utils
Section 108
//bucket_mc (bucket_mc)
package {
import flash.display.*;
public dynamic class bucket_mc extends Sprite {
public var color:MovieClip;
}
}//package
Section 109
//Clock_mc (Clock_mc)
package {
import flash.display.*;
public dynamic class Clock_mc extends MovieClip {
public var border:MovieClip;
}
}//package
Section 110
//color_light (color_light)
package {
import flash.display.*;
public dynamic class color_light extends MovieClip {
public var glow:MovieClip;
}
}//package
Section 111
//coloring_effect (coloring_effect)
package {
import flash.display.*;
public dynamic class coloring_effect extends MovieClip {
}
}//package
Section 112
//cursor_brush (cursor_brush)
package {
import flash.display.*;
public dynamic class cursor_brush extends Sprite {
public var paint_mc:paint;
}
}//package
Section 113
//cursor_norm (cursor_norm)
package {
import flash.display.*;
public dynamic class cursor_norm extends Sprite {
}
}//package
Section 114
//Down (Down)
package {
import flash.display.*;
public dynamic class Down extends MovieClip {
}
}//package
Section 115
//effect_disapp (effect_disapp)
package {
import flash.display.*;
public dynamic class effect_disapp extends MovieClip {
public function effect_disapp(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package
Section 116
//effect_help (effect_help)
package {
import flash.display.*;
public dynamic class effect_help extends MovieClip {
}
}//package
Section 117
//FinalScreen_mc (FinalScreen_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class FinalScreen_mc extends MovieClip {
public var innerText:TextField;
public var board:MovieClip;
}
}//package
Section 118
//Frame_mc (Frame_mc)
package {
import flash.display.*;
public dynamic class Frame_mc extends MovieClip {
}
}//package
Section 119
//Fury_black_angry (Fury_black_angry)
package {
import flash.display.*;
public dynamic class Fury_black_angry extends MovieClip {
}
}//package
Section 120
//Fury_black_boom (Fury_black_boom)
package {
import flash.display.*;
public dynamic class Fury_black_boom extends MovieClip {
}
}//package
Section 121
//Fury_black_look (Fury_black_look)
package {
import flash.display.*;
public dynamic class Fury_black_look extends MovieClip {
public var fury_eyes:MovieClip;
public function Fury_black_look(){
addFrameScript(11, frame12);
}
function frame12(){
stop();
fury_eyes.stop();
}
}
}//package
Section 122
//Fury_black_normal (Fury_black_normal)
package {
import flash.display.*;
public dynamic class Fury_black_normal extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 123
//Fury_black_tik (Fury_black_tik)
package {
import flash.display.*;
public dynamic class Fury_black_tik extends MovieClip {
}
}//package
Section 124
//Fury_mc_boom_blue (Fury_mc_boom_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_boom_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 125
//Fury_mc_boom_green (Fury_mc_boom_green)
package {
import flash.display.*;
public dynamic class Fury_mc_boom_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 126
//Fury_mc_boom_orange (Fury_mc_boom_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_boom_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 127
//Fury_mc_boom_pink (Fury_mc_boom_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_boom_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 128
//Fury_mc_boom_yellow (Fury_mc_boom_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_boom_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 129
//Fury_mc_dance_blue (Fury_mc_dance_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_dance_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 130
//Fury_mc_dance_green (Fury_mc_dance_green)
package {
import flash.display.*;
public dynamic class Fury_mc_dance_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 131
//Fury_mc_dance_orange (Fury_mc_dance_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_dance_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 132
//Fury_mc_dance_pink (Fury_mc_dance_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_dance_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 133
//Fury_mc_dance_yellow (Fury_mc_dance_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_dance_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 134
//Fury_mc_down_blue (Fury_mc_down_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_down_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 135
//Fury_mc_down_green (Fury_mc_down_green)
package {
import flash.display.*;
public dynamic class Fury_mc_down_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 136
//Fury_mc_down_orange (Fury_mc_down_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_down_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 137
//Fury_mc_down_pink (Fury_mc_down_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_down_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 138
//Fury_mc_down_yellow (Fury_mc_down_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_down_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 139
//Fury_mc_left_blue (Fury_mc_left_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_left_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 140
//Fury_mc_left_green (Fury_mc_left_green)
package {
import flash.display.*;
public dynamic class Fury_mc_left_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 141
//Fury_mc_left_orange (Fury_mc_left_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_left_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 142
//Fury_mc_left_pink (Fury_mc_left_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_left_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 143
//Fury_mc_left_yellow (Fury_mc_left_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_left_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 144
//Fury_mc_lonely_blue (Fury_mc_lonely_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_lonely_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 145
//Fury_mc_lonely_green (Fury_mc_lonely_green)
package {
import flash.display.*;
public dynamic class Fury_mc_lonely_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 146
//Fury_mc_lonely_orange (Fury_mc_lonely_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_lonely_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 147
//Fury_mc_lonely_pink (Fury_mc_lonely_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_lonely_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 148
//Fury_mc_lonely_yellow (Fury_mc_lonely_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_lonely_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 149
//Fury_mc_look_blue (Fury_mc_look_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_look_blue extends MovieClip {
public var eyes_look:MovieClip;
public function Fury_mc_look_blue(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package
Section 150
//Fury_mc_look_green (Fury_mc_look_green)
package {
import flash.display.*;
public dynamic class Fury_mc_look_green extends MovieClip {
public var eyes_look:MovieClip;
public function Fury_mc_look_green(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package
Section 151
//Fury_mc_look_orange (Fury_mc_look_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_look_orange extends MovieClip {
public var eyes_look:MovieClip;
public function Fury_mc_look_orange(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package
Section 152
//Fury_mc_look_pink (Fury_mc_look_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_look_pink extends MovieClip {
public var eyes_look:MovieClip;
public function Fury_mc_look_pink(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package
Section 153
//Fury_mc_look_yellow (Fury_mc_look_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_look_yellow extends MovieClip {
public var eyes_look:MovieClip;
public function Fury_mc_look_yellow(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package
Section 154
//Fury_mc_normal_blue (Fury_mc_normal_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_normal_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 155
//Fury_mc_normal_green (Fury_mc_normal_green)
package {
import flash.display.*;
public dynamic class Fury_mc_normal_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 156
//Fury_mc_normal_orange (Fury_mc_normal_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_normal_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 157
//Fury_mc_normal_pink (Fury_mc_normal_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_normal_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 158
//Fury_mc_normal_yellow (Fury_mc_normal_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_normal_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 159
//Fury_mc_right_blue (Fury_mc_right_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_right_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 160
//Fury_mc_right_green (Fury_mc_right_green)
package {
import flash.display.*;
public dynamic class Fury_mc_right_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 161
//Fury_mc_right_orange (Fury_mc_right_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_right_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 162
//Fury_mc_right_pink (Fury_mc_right_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_right_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 163
//Fury_mc_right_yellow (Fury_mc_right_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_right_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 164
//Fury_mc_up_blue (Fury_mc_up_blue)
package {
import flash.display.*;
public dynamic class Fury_mc_up_blue extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 165
//Fury_mc_up_green (Fury_mc_up_green)
package {
import flash.display.*;
public dynamic class Fury_mc_up_green extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 166
//Fury_mc_up_orange (Fury_mc_up_orange)
package {
import flash.display.*;
public dynamic class Fury_mc_up_orange extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 167
//Fury_mc_up_pink (Fury_mc_up_pink)
package {
import flash.display.*;
public dynamic class Fury_mc_up_pink extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 168
//Fury_mc_up_yellow (Fury_mc_up_yellow)
package {
import flash.display.*;
public dynamic class Fury_mc_up_yellow extends MovieClip {
public var fury_eyes:MovieClip;
}
}//package
Section 169
//game_mc_beach (game_mc_beach)
package {
import flash.display.*;
public dynamic class game_mc_beach extends MovieClip {
public var field_mock:MovieClip;
public var tanz_mc:MovieClip;
public var back:MovieClip;
}
}//package
Section 170
//game_mc_castle (game_mc_castle)
package {
import flash.display.*;
public dynamic class game_mc_castle extends MovieClip {
public var field_mock:MovieClip;
public var tanz_mc:MovieClip;
public var back:MovieClip;
}
}//package
Section 171
//game_mc_forest (game_mc_forest)
package {
import flash.display.*;
public dynamic class game_mc_forest extends Sprite {
public var shadow:MovieClip;
public var field_mock:MovieClip;
public var grass:MovieClip;
public var tanz_mc:MovieClip;
public var back:MovieClip;
}
}//package
Section 172
//help_window (help_window)
package {
import flash.display.*;
import flash.text.*;
public dynamic class help_window extends MovieClip {
public var fourth:TextField;
public var title:TextField;
public var third:TextField;
public var second:TextField;
public var first:TextField;
public var back:MovieClip;
}
}//package
Section 173
//hud_mc_beach (hud_mc_beach)
package {
import flash.display.*;
public dynamic class hud_mc_beach extends MovieClip {
public var bt_help:SimpleButton;
public var bt_menu:SimpleButton;
public var m_clockPane:Clock_mc;
public var bt_pause:SimpleButton;
public var m_scorePane:Score_mc;
}
}//package
Section 174
//hud_mc_castle (hud_mc_castle)
package {
import flash.display.*;
public dynamic class hud_mc_castle extends MovieClip {
public var bt_help:SimpleButton;
public var bt_menu:SimpleButton;
public var m_clockPane:Clock_mc;
public var bt_pause:SimpleButton;
public var m_scorePane:Score_mc;
}
}//package
Section 175
//hud_mc_forest (hud_mc_forest)
package {
import flash.display.*;
public dynamic class hud_mc_forest extends Sprite {
public var bt_help:SimpleButton;
public var bt_menu:Menu_button;
public var m_clockPane:Clock_mc;
public var m_scorePane:Score_mc;
public var bt_pause:SimpleButton;
}
}//package
Section 176
//Irina (Irina)
package {
import flash.text.*;
public dynamic class Irina extends Font {
}
}//package
Section 177
//Kolokol_mc (Kolokol_mc)
package {
import flash.display.*;
public dynamic class Kolokol_mc extends MovieClip {
public var inner_kolokol:MovieClip;
public var hit:MovieClip;
}
}//package
Section 178
//Kolokol_mc_beach (Kolokol_mc_beach)
package {
import flash.display.*;
public dynamic class Kolokol_mc_beach extends MovieClip {
public var inner_kolokol:MovieClip;
public var hit:MovieClip;
}
}//package
Section 179
//kursor_pauza (kursor_pauza)
package {
import flash.display.*;
public dynamic class kursor_pauza extends MovieClip {
}
}//package
Section 180
//Label (Label)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Label extends MovieClip {
public var text2:TextField;
public var text1:TextField;
}
}//package
Section 181
//LangSelect (LangSelect)
package {
import flash.display.*;
public dynamic class LangSelect extends MovieClip {
public var btnRus:SimpleButton;
public var btnEng:SimpleButton;
}
}//package
Section 182
//lblExitEng (lblExitEng)
package {
import flash.display.*;
public dynamic class lblExitEng extends MovieClip {
}
}//package
Section 183
//LblExitRus (LblExitRus)
package {
import flash.display.*;
public dynamic class LblExitRus extends MovieClip {
public var label:MovieClip;
}
}//package
Section 184
//lblHelpEng (lblHelpEng)
package {
import flash.display.*;
public dynamic class lblHelpEng extends MovieClip {
}
}//package
Section 185
//LblHelpRus (LblHelpRus)
package {
import flash.display.*;
public dynamic class LblHelpRus extends MovieClip {
}
}//package
Section 186
//lblPauseEng (lblPauseEng)
package {
import flash.display.*;
public dynamic class lblPauseEng extends MovieClip {
}
}//package
Section 187
//LblPauseRus (LblPauseRus)
package {
import flash.display.*;
public dynamic class LblPauseRus extends MovieClip {
}
}//package
Section 188
//LogoEng (LogoEng)
package {
import flash.display.*;
public dynamic class LogoEng extends MovieClip {
}
}//package
Section 189
//LogoRus (LogoRus)
package {
import flash.display.*;
public dynamic class LogoRus extends MovieClip {
}
}//package
Section 190
//Lose_wnd (Lose_wnd)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Lose_wnd extends MovieClip {
public var diff:TextField;
public var diffTxt:TextField;
public var title:TextField;
public var timeTxt:TextField;
public var score:TextField;
public var scoreTxt:TextField;
public var time:TextField;
public var back:MovieClip;
}
}//package
Section 191
//m2_splash (m2_splash)
package {
import flash.display.*;
public dynamic class m2_splash extends MovieClip {
}
}//package
Section 192
//m2_splash_movie (m2_splash_movie)
package {
import flash.display.*;
public dynamic class m2_splash_movie extends MovieClip {
public function m2_splash_movie(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package
Section 193
//m2_star (m2_star)
package {
import flash.display.*;
public dynamic class m2_star extends MovieClip {
}
}//package
Section 194
//m2_star_movie (m2_star_movie)
package {
import flash.display.*;
public dynamic class m2_star_movie extends MovieClip {
public function m2_star_movie(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package
Section 195
//Map_mc (Map_mc)
package {
import flash.display.*;
public dynamic class Map_mc extends MovieClip {
public var fourth:MovieClip;
public var third:MovieClip;
public var second:MovieClip;
public var first:MovieClip;
public var highlight:MovieClip;
public var krest:MovieClip;
public var board:MovieClip;
}
}//package
Section 196
//Menu_button (Menu_button)
package {
import flash.display.*;
public dynamic class Menu_button extends SimpleButton {
}
}//package
Section 197
//Normal (Normal)
package {
import flash.display.*;
public dynamic class Normal extends MovieClip {
}
}//package
Section 198
//Over (Over)
package {
import flash.display.*;
public dynamic class Over extends MovieClip {
}
}//package
Section 199
//paint (paint)
package {
import flash.display.*;
public dynamic class paint extends MovieClip {
}
}//package
Section 200
//paint_blik (paint_blik)
package {
import flash.display.*;
public dynamic class paint_blik extends MovieClip {
}
}//package
Section 201
//paints_effect (paints_effect)
package {
import flash.display.*;
public dynamic class paints_effect extends MovieClip {
}
}//package
Section 202
//palitra_mc (palitra_mc)
package {
import flash.display.*;
public dynamic class palitra_mc extends Sprite {
}
}//package
Section 203
//pause_window (pause_window)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pause_window extends Sprite {
public var message:TextField;
public var title:TextField;
public var back:MovieClip;
}
}//package
Section 204
//preloader_eng_mc (preloader_eng_mc)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class preloader_eng_mc extends MovieClip {
public var btnLink:SimpleButton;
public var main:MovieClip;
public var placement:MovieClip;
public function preloader_eng_mc(){
addFrameScript(0, frame1);
}
function frame1(){
placement.visible = false;
btnLink.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
}
public function onClick(_arg1){
trace("CLICKING");
navigateToURL(new URLRequest("http://www.girlgames.com"), "_blank");
}
}
}//package
Section 205
//pts (pts)
package {
import flash.display.*;
import flash.text.*;
public dynamic class pts extends Sprite {
public var tf:TextField;
}
}//package
Section 206
//ramka_light (ramka_light)
package {
import flash.display.*;
public dynamic class ramka_light extends MovieClip {
}
}//package
Section 207
//Score_mc (Score_mc)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Score_mc extends MovieClip {
public var scoreTxt:TextField;
}
}//package
Section 208
//Select (Select)
package {
import flash.display.*;
public dynamic class Select extends MovieClip {
}
}//package
Section 209
//splashClip (splashClip)
package {
import flash.display.*;
import flash.text.*;
public dynamic class splashClip extends Sprite {
public var tf:TextField;
public var btnLink:SimpleButton;
public var exit_btn:SimpleButton;
}
}//package
Section 210
//square_mc (square_mc)
package {
import flash.display.*;
public dynamic class square_mc extends Sprite {
}
}//package
Section 211
//tanzus_baraban_beach (tanzus_baraban_beach)
package {
import flash.display.*;
public dynamic class tanzus_baraban_beach extends MovieClip {
}
}//package
Section 212
//tanzus_baraban_castle (tanzus_baraban_castle)
package {
import flash.display.*;
public dynamic class tanzus_baraban_castle extends MovieClip {
}
}//package
Section 213
//Tanzus_baraban_forest (Tanzus_baraban_forest)
package {
import flash.display.*;
public dynamic class Tanzus_baraban_forest extends MovieClip {
}
}//package
Section 214
//tanzus_dance_beach (tanzus_dance_beach)
package {
import flash.display.*;
public dynamic class tanzus_dance_beach extends MovieClip {
public var unmoveable:MovieClip;
public function tanzus_dance_beach(){
addFrameScript(0, frame1);
}
function frame1(){
unmoveable.cacheAsBitmap = true;
}
}
}//package
Section 215
//tanzus_dance_castle (tanzus_dance_castle)
package {
import flash.display.*;
public dynamic class tanzus_dance_castle extends MovieClip {
public var unmoveable:MovieClip;
public function tanzus_dance_castle(){
addFrameScript(0, frame1);
}
function frame1(){
unmoveable.cacheAsBitmap = true;
}
}
}//package
Section 216
//Tanzus_dance_forest (Tanzus_dance_forest)
package {
import flash.display.*;
public dynamic class Tanzus_dance_forest extends MovieClip {
public var unmoveable:MovieClip;
public function Tanzus_dance_forest(){
addFrameScript(0, frame1);
}
function frame1(){
unmoveable.cacheAsBitmap = true;
}
}
}//package
Section 217
//tanzus_dj_beach (tanzus_dj_beach)
package {
import flash.display.*;
public dynamic class tanzus_dj_beach extends MovieClip {
public var unmoveable:MovieClip;
public function tanzus_dj_beach(){
addFrameScript(0, frame1);
}
function frame1(){
unmoveable.cacheAsBitmap = true;
}
}
}//package
Section 218
//tanzus_dj_castle (tanzus_dj_castle)
package {
import flash.display.*;
public dynamic class tanzus_dj_castle extends MovieClip {
public var unmoveable:MovieClip;
public function tanzus_dj_castle(){
addFrameScript(0, frame1);
}
function frame1(){
unmoveable.cacheAsBitmap = true;
}
}
}//package
Section 219
//Tanzus_dj_forest (Tanzus_dj_forest)
package {
import flash.display.*;
public dynamic class Tanzus_dj_forest extends MovieClip {
public var unmoveable:MovieClip;
public function Tanzus_dj_forest(){
addFrameScript(0, frame1);
}
function frame1(){
unmoveable.cacheAsBitmap = true;
}
}
}//package
Section 220
//Win_wnd (Win_wnd)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Win_wnd extends MovieClip {
public var title:TextField;
public var timeTxt:TextField;
public var score:TextField;
public var scoreTxt:TextField;
public var time:TextField;
public var back:MovieClip;
}
}//package
Section 221
//yes_no_window (yes_no_window)
package {
import flash.display.*;
import flash.text.*;
public dynamic class yes_no_window extends Sprite {
public var message:TextField;
public var back:MovieClip;
}
}//package