STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228086
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/18347989?noj=FRM18347989-2DC" width="1" height="1"></div>

Ragged-House.swf

This is the info page for
Flash #119422

(Click the ID number above for more basic data on this flash file.)


Text
<p align="left"><font face="_sans" size="14" color="#e883b1" letterSpacing="0.000000" kerning="1">Loading... 00%</font></p>

MENU

SOUND

HELP

Created by Csharks

Clean up the mess by clicking on highlighted
items. You will get get more points if you
complete it quickly. You will lose points if
you fail to fix it in time.
Some things require more steps. For eg:
Washing cloths - Take cloth, put it in
washing machine, After washing, take it
and place it in the wardrobe.
Finish the jobs and get enough money  for
the next day. As day progress you can buy
some upgrades like fast washing machine,
stove, energy pills etc. which make your
jobs easy.

BUY

BUY

PLAY

Locked

Today's Jobs Finished

s

h

a

r

e

g

m

s

h

a

r

e

g

m

+25

ActionScript [AS3]

Section 1
//Debug (com.carlcalderon.arthropod.Debug) package com.carlcalderon.arthropod { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.system.*; import flash.net.*; public class Debug { private static const MEMORY_OPERATION:String = "debugMemory"; public static const NAME:String = "Debug"; private static const ERROR_OPERATION:String = "debugError"; private static const CLEAR_OPERATION:String = "debugClear"; private static const BITMAP_OPERATION:String = "debugBitmapData"; public static const VERSION:String = "0.74"; private static const TYPE:String = "app"; private static const ARRAY_OPERATION:String = "debugArray"; private static const DOMAIN:String = "com.carlcalderon.Arthropod"; private static const OBJECT_OPERATION:String = "debugObject"; private static const WARNING_OPERATION:String = "debugWarning"; private static const CONNECTION:String = "arthropod"; private static const CHECK:String = ".161E714B6C1A76DE7B9865F88B32FCCE8FABA7B5.1"; private static const LOG_OPERATION:String = "debug"; public static var LIGHT_BLUE:uint = 0xCCCC; public static var secureDomain:String = "*"; public static var password:String = "CDC309AF"; public static var allowLog:Boolean = true; public static var BLUE:uint = 6710988; public static var GREEN:uint = 0xCC00; public static var ignoreStatus:Boolean = true; public static var RED:uint = 0xCC0000; public static var secure:Boolean = false; public static var YELLOW:uint = 0xCCCC00; public static var PINK:uint = 0xCC00CC; private static var lc:LocalConnection = new LocalConnection(); private static var hasEventListeners:Boolean = false; public static function memory():Boolean{ return (send(MEMORY_OPERATION, System.totalMemory, null)); } public static function error(_arg1):Boolean{ return (send(ERROR_OPERATION, String(_arg1), 0xCC0000)); } public static function warning(_arg1):Boolean{ return (send(WARNING_OPERATION, String(_arg1), 0xCCCC00)); } private static function send(_arg1:String, _arg2, _arg3):Boolean{ var operation = _arg1; var value = _arg2; var prop = _arg3; if (!secure){ lc.allowInsecureDomain("*"); } else { lc.allowDomain(secureDomain); }; if (!hasEventListeners){ if (ignoreStatus){ lc.addEventListener(StatusEvent.STATUS, ignore); } else { lc.addEventListener(StatusEvent.STATUS, status); }; hasEventListeners = true; }; if (allowLog){ try { lc.send((((((TYPE + "#") + DOMAIN) + CHECK) + ":") + CONNECTION), operation, password, value, prop); return (true); } catch(e) { return (false); }; }; return (false); } public static function bitmap(_arg1, _arg2:String=null):Boolean{ var _local3:BitmapData = new BitmapData(100, 100, true, 0xFFFFFF); var _local4:Matrix = new Matrix(); var _local5:Number = (100 / ((_arg1.width)>=_arg1.height) ? _arg1.width : _arg1.height); _local4.scale(_local5, _local5); _local3.draw(_arg1, _local4, null, null, null, true); var _local6:Rectangle = new Rectangle(0, 0, Math.floor((_arg1.width * _local5)), Math.floor((_arg1.height * _local5))); return (send(BITMAP_OPERATION, _local3.getPixels(_local6), {bounds:_local6, lbl:_arg2})); } public static function object(_arg1):Boolean{ return (send(OBJECT_OPERATION, _arg1, null)); } public static function clear():Boolean{ return (send(CLEAR_OPERATION, 0, 0)); } private static function ignore(_arg1:StatusEvent):void{ } public static function log(_arg1, _arg2:uint=0xFEFEFE):Boolean{ return (send(LOG_OPERATION, String(_arg1), _arg2)); } public static function array(_arg1:Array):Boolean{ return (send(ARRAY_OPERATION, _arg1, null)); } public static function snapshot(_arg1:Stage, _arg2:String=null):Boolean{ if (_arg1){ return (bitmap(_arg1, _arg2)); }; return (false); } private static function status(_arg1:StatusEvent):void{ trace(("Arthropod status:\n" + _arg1.toString())); } } }//package com.carlcalderon.arthropod
Section 2
//State (com.csharks.juwalbose.cFlashtory.core.State) package com.csharks.juwalbose.cFlashtory.core { public class State { public var exit:Function; public var _parent:State; public var from:Object; public var name:String; public var enter:Function; public var children:Array; public function State(_arg1:String, _arg2:Object=null, _arg3:Function=null, _arg4:Function=null, _arg5:State=null){ this.name = _arg1; if (!_arg2){ _arg2 = "*"; }; this.from = _arg2; this.enter = _arg3; this.exit = _arg4; this.children = []; if (_arg5){ _parent = _arg5; _parent.children.push(this); }; } public function get parents():Array{ var _local1:Array = []; var _local2:State = _parent; if (_local2){ _local1.push(_local2); while (_local2.parent) { _local2 = _local2.parent; _local1.push(_local2); }; }; return (_local1); } public function get root():State{ var _local1:State = _parent; if (_local1){ while (_local1.parent) { _local1 = _local1.parent; }; }; return (_local1); } public function toString():String{ return (this.name); } public function get parent():State{ return (_parent); } public function set parent(_arg1:State):void{ _parent = _arg1; _parent.children.push(this); } } }//package com.csharks.juwalbose.cFlashtory.core
Section 3
//StateMachine (com.csharks.juwalbose.cFlashtory.core.StateMachine) package com.csharks.juwalbose.cFlashtory.core { import flash.utils.*; import org.osflash.signals.*; public class StateMachine { public var response:Signal; public var parentState:State; public var parentStates:Array; public var _state:String; private var changeCallback:Function; public var id:String; public var _states:Dictionary; public var path:Array; public function StateMachine(){ response = new Signal(); super(); _states = new Dictionary(); } public function set onStateChange(_arg1:Function):void{ changeCallback = _arg1; } public function changeState(_arg1:String):void{ var _local3:Object; var _local4:int; var _local5:Object; var _local6:int; if (!(_arg1 in _states)){ trace("[StateMachine]", id, (("Cannot make transition: State " + _arg1) + " is not defined")); return; }; if (!canChangeStateTo(_arg1)){ trace("[StateMachine]", id, (("Transition to " + _arg1) + " denied")); response.dispatch("TRANSITION_DENIED", _arg1, _state, _states[_arg1].from); return; }; if (changeCallback != null){ changeCallback(); }; path = findPath(_state, _arg1); if (path[0] > 0){ _local3 = new Object(); _local3.toState = _arg1; _local3.fromState = _state; _local3.event = "EXIT_CALLBACK"; _local3.currentTarget = this; if (_states[_state].exit){ _local3.currentState = _state; _states[_state].exit.call(null, _local3); }; parentState = _states[_state]; _local4 = 0; while (_local4 < (path[0] - 1)) { parentState = parentState.parent; if (parentState.exit != null){ _local3.currentState = parentState.name; parentState.exit.call(null, _local3); }; _local4++; }; }; var _local2:String = _state; _state = _arg1; if (path[1] > 0){ _local5 = new Object(); _local5.toState = _arg1; _local5.fromState = _local2; _local5.event = "ENTER_CALLBACK"; _local5.currentTarget = this; if (_states[_arg1].root){ parentStates = _states[_arg1].parents; _local6 = (path[1] - 2); while (_local6 >= 0) { if (((parentStates[_local6]) && (parentStates[_local6].enter))){ _local5.currentState = parentStates[_local6].name; parentStates[_local6].enter.call(null, _local5); }; _local6--; }; }; if (_states[_state].enter){ _local5.currentState = _state; _states[_state].enter.call(null, _local5); }; }; trace("[StateMachine]", id, ("State Changed to " + _state)); response.dispatch("TRANSITION_COMPLETE", _arg1, _local2); } public function get state():String{ return (_states[_state]); } public function get states():Dictionary{ return (_states); } public function set initialState(_arg1:String):void{ var _local2:Object; var _local3:int; if ((((_state == null)) && ((_arg1 in _states)))){ _state = _arg1; _local2 = new Object(); _local2.toState = _arg1; _local2.event = "ENTER_CALLBACK"; _local2.currentTarget = this; if (_states[_state].root){ parentStates = _states[_state].parents; _local3 = (_states[_state].parents.length - 1); while (_local3 >= 0) { if (parentStates[_local3].enter){ _local2.currentState = parentStates[_local3].name; parentStates[_local3].enter.call(null, _local2); }; _local3--; }; }; if (_states[_state].enter){ _local2.currentState = _state; _states[_state].enter.call(null, _local2); }; response.dispatch("TRANSITION_COMPLETE", _arg1); }; } public function canChangeStateTo(_arg1:String):Boolean{ return (((!((_arg1 == _state))) && (((!((_states[_arg1].from.indexOf(_state) == -1))) || ((_states[_arg1].from == "*")))))); } public function addState(_arg1:String, _arg2:Object=null):void{ if ((_arg1 in _states)){ trace("[StateMachine]", id, ("Overriding existing state " + _arg1)); }; if (_arg2 == null){ _arg2 = {}; }; _states[_arg1] = new State(_arg1, _arg2.from, _arg2.enter, _arg2.exit, _states[_arg2.parent]); } public function getStateByName(_arg1:String):State{ var _local2:State; for each (_local2 in _states) { if (_local2.name == _arg1){ return (_local2); }; }; return (null); } public function findPath(_arg1:String, _arg2:String):Array{ var _local6:State; var _local3:State = _states[_arg1]; var _local4:int; var _local5:int; while (_local3) { _local5 = 0; _local6 = _states[_arg2]; while (_local6) { if (_local3 == _local6){ return ([_local4, _local5]); }; _local5++; _local6 = _local6.parent; }; _local4++; _local3 = _local3.parent; }; return ([_local4, _local5]); } } }//package com.csharks.juwalbose.cFlashtory.core
Section 4
//PreloaderG2G (com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G) package com.csharks.juwalbose.cFlashtory.preloaders { import flash.events.*; import com.inruntime.utils.*; import flash.display.*; import flash.utils.*; import flash.net.*; public class PreloaderG2G extends MovieClip { private var PreloaderClip:Class; private var loaderFrames:Number; private var gameVars:Global; private var preloader_mc:MovieClip; public static const ButtonFont:Class = PreloaderG2G_ButtonFont; public static const MenuFont:Class = PreloaderG2G_MenuFont; public function PreloaderG2G(){ PreloaderClip = PreloaderG2G_PreloaderClip; super(); Config.initialise(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; gameVars = Global.getInstance(); gameVars.menuFont = new MenuFont().fontName; gameVars.buttonFont = new ButtonFont().fontName; addEventListener(Event.ENTER_FRAME, checkFrame); loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress); loaderInfo.addEventListener(Event.COMPLETE, proceed); preloader_mc = new PreloaderClip(); preloader_mc.x = (gameVars.stageMiddleX + 70); preloader_mc.y = (gameVars.stageMiddleY - 120); preloader_mc.addEventListener(Event.ADDED_TO_STAGE, addClick); addChild(preloader_mc); loaderFrames = preloader_mc.totalFrames; preloader_mc.gotoAndStop(1); } private function addClick(_arg1:Event):void{ preloader_mc.removeEventListener(Event.ADDED_TO_STAGE, addClick); preloader_mc.fSitebutton.addEventListener(MouseEvent.CLICK, fSiteButtonClicked); } private function fSiteButtonClicked(_arg1:MouseEvent):void{ var urlRequest:URLRequest; var e = _arg1; try { urlRequest = new URLRequest("http://www.games2girls.com/"); navigateToURL(urlRequest, "_blank"); } catch(e:Error) { }; } private function progress(_arg1:ProgressEvent):void{ var _local2:Number = _arg1.target.bytesLoaded; var _local3:Number = _arg1.target.bytesTotal; var _local4:Number = (_local2 / _local3); preloader_mc.loaderBase.loaderTxt.text = (("Loading... " + Math.round((_local4 * 100))) + "%"); preloader_mc.loaderBase.logoMask.y = (60 - (_local4 * 70)); } private function proceed(_arg1:Event):void{ loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress); loaderInfo.removeEventListener(Event.COMPLETE, proceed); preloader_mc.loaderBase.loaderTxt.x = -3000; preloader_mc.loaderBase.loaderTxt.y = -3000; preloader_mc.gotoAndPlay(2); } private function checkFrame(_arg1:Event):void{ if (preloader_mc.currentFrame == loaderFrames){ removeEventListener(Event.ENTER_FRAME, checkFrame); startup(); }; } private function startup():void{ var _local2:Object; removeChild(preloader_mc); nextFrame(); var _local1:Class = Class(getDefinitionByName(gameVars.gameName)); if (_local1){ _local2 = new (_local1); addChild((_local2 as DisplayObject)); }; } } }//package com.csharks.juwalbose.cFlashtory.preloaders
Section 5
//PreloaderG2G_ButtonFont (com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_ButtonFont) package com.csharks.juwalbose.cFlashtory.preloaders { import mx.core.*; public class PreloaderG2G_ButtonFont extends FontAsset { } }//package com.csharks.juwalbose.cFlashtory.preloaders
Section 6
//PreloaderG2G_MenuFont (com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_MenuFont) package com.csharks.juwalbose.cFlashtory.preloaders { import mx.core.*; public class PreloaderG2G_MenuFont extends FontAsset { } }//package com.csharks.juwalbose.cFlashtory.preloaders
Section 7
//PreloaderG2G_PreloaderClip (com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_PreloaderClip) package com.csharks.juwalbose.cFlashtory.preloaders { import flash.display.*; import mx.core.*; public class PreloaderG2G_PreloaderClip extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var logoMask:DisplayObject; public var help_Btn:DisplayObject; public var fSitebutton:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var loaderTxt:DisplayObject; public var text_txt:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var loaderBase:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory.preloaders
Section 8
//cFlashtory (com.csharks.juwalbose.cFlashtory.cFlashtory) package com.csharks.juwalbose.cFlashtory { import flash.events.*; import flash.display.*; import com.csharks.juwalbose.utils.ui.*; import com.greensock.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import flash.media.*; import mochi.as3.*; import com.inruntime.utils.*; import com.senocular.utils.*; import net.hires.debug.*; import com.greensock.easing.*; import com.carlcalderon.arthropod.*; import flash.net.*; public dynamic class cFlashtory extends Sprite { protected var game_mc; protected var Music:Class; protected var GameOver:Class; protected var musicIsPlaying:Boolean;// = false protected var HelpDisplay:Class; protected var gameMusicChannel:SoundChannel; protected var gameVars:Global; protected var creditLogo:Sprite; protected var HelpClip:Class; protected var helpDisplay_mc; protected var help_mc:Sprite; protected var key:KeyObject; protected var invincibleMode:Boolean;// = false protected var menu:MovieClip; protected var GameWin:Class; protected var gameWin_mc:MovieClip; protected var intro:MovieClip; protected var MenuClip:Class; protected var gameMusic_snd:Sound; protected var TemplateBg:Class; protected var GameClip:Class; protected var gameOver_mc:MovieClip; protected var levelUp_mc:MovieClip; protected var helpDisplayed:Boolean; protected var logo:Sprite; protected var templateMc:MovieClip; protected var LeveUp:Class; protected var gameStats:Stats; protected var focusSoundMute:Boolean; protected var gameSequence:StateMachine; protected var gameEngine:StateMachine; protected var finalCreditText:UiBox; protected var pauseTime:uint; protected var shareBtn:SimpleButton; public function cFlashtory():void{ MenuClip = cFlashtory_MenuClip; HelpClip = cFlashtory_HelpClip; Music = cFlashtory_Music; GameClip = cFlashtory_GameClip; HelpDisplay = cFlashtory_HelpDisplay; LeveUp = cFlashtory_LeveUp; GameOver = cFlashtory_GameOver; GameWin = cFlashtory_GameWin; TemplateBg = cFlashtory_TemplateBg; super(); } protected function highscoresExit(_arg1:Object):void{ removeChild(templateMc); } protected function gotoHelpPage(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); gameSequence.changeState("Help"); } protected function levelUpAdded(_arg1:Event):void{ } protected function gameoverExit(_arg1:Object):void{ Debug.log("game over exit"); SceneManager.removeButton(gameOver_mc, "Play Again", gameOver2Game); if (gameVars.mochiEnabled){ SceneManager.removeButton(gameOver_mc, "Submit Score", submitScore); }; removeChild(gameOver_mc); } protected function menuInit(_arg1:Object):void{ Debug.log("menu init"); menu = new MenuClip(); menu.addEventListener(Event.ENTER_FRAME, assignMenu); addChild(menu); } protected function gameHelpExit(_arg1:Object=null):void{ Debug.log("game help exit"); SceneManager.removeButton(helpDisplay_mc, "Back to Game", backToGame); helpDisplayed = false; removeChild(helpDisplay_mc); } protected function gameHelpInit(_arg1:Object):void{ Debug.log("game help init"); helpDisplayed = true; helpDisplay_mc = new HelpDisplay(); helpDisplay_mc.x = (gameVars.stageMiddleX - (helpDisplay_mc.width / 2)); helpDisplay_mc.y = (gameVars.stageMiddleY - (helpDisplay_mc.height / 2)); helpDisplay_mc.addEventListener(Event.ADDED_TO_STAGE, helpAdded); addChild(helpDisplay_mc); } protected function gameEngineInit(_arg1:Object):void{ game_mc = new GameClip(); game_mc.addEventListener(Event.ADDED_TO_STAGE, initGameUI); addChild(game_mc); } protected function clearCanvas():void{ if (helpDisplayed){ gameHelpExit(); }; if (this.hasEventListener(Event.ENTER_FRAME)){ removeEventListener(Event.ENTER_FRAME, action); }; if (stage.hasEventListener(Event.DEACTIVATE)){ stage.removeEventListener(Event.DEACTIVATE, windowNotActive); }; if (stage.hasEventListener(Event.ACTIVATE)){ stage.removeEventListener(Event.ACTIVATE, windowActive); }; key = null; if (gameVars.developerMode){ if (gameStats != null){ removeChild(gameStats); }; gameStats = null; }; SceneManager.removeAllChildren(game_mc); removeChild(game_mc); } protected function levelUpExit(_arg1:Object):void{ Debug.log("level up exit"); SceneManager.removeButton(levelUp_mc, "Next Level", levelUp2Game); setVariable("level", String((gameVars.level + 1)), "levelUpExit", "N"); removeChild(levelUp_mc); } protected function windowActive(_arg1:Event):void{ Debug.log("Window focus return", Debug.RED); if (!helpDisplayed){ unpauseGame(); }; } protected function pauseGame(_arg1:Object=null):void{ removeEventListener(Event.ENTER_FRAME, action); key = null; if (gameVars.developerMode){ removeChild(gameStats); gameStats = null; }; } protected function gameWin2Game(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); gameSequence.changeState("Game"); } protected function menuExit(_arg1:Object):void{ Debug.log("menu exit"); if (logo){ logo.removeEventListener(MouseEvent.CLICK, gotoSite); SceneManager.removeItem(menu, "Logo"); }; if (gameVars.brandUsed != "Csharks"){ if (gameVars.showCredits != null){ SceneManager.removeItem(menu, "CreditText"); creditLogo.removeEventListener(MouseEvent.CLICK, gotoCsharksSite); SceneManager.removeItem(menu, "Credit Logo"); }; }; if (shareBtn){ shareBtn.removeEventListener(MouseEvent.CLICK, postToStream); SceneManager.removeItem(menu, "Share"); }; if (gameVars.mochiEnabled){ SceneManager.removeButton(menu, "Leaderboard", showHighScores); }; removeChild(menu); } protected function gameInit(_arg1:Object):void{ gameEngine = new StateMachine(); gameEngine.addState("GameInit", {enter:gameEngineInit}); gameEngine.addState("LevelInit", {enter:levelInit, from:["LevelUp", "GameInit"]}); gameEngine.addState("Action", {enter:unpauseGame, exit:pauseGame, from:["Paused", "LevelInit", "GameHelp"]}); gameEngine.addState("GameHelp", {enter:gameHelpInit, exit:gameHelpExit, from:"Action"}); gameEngine.addState("Paused", {enter:unpauseGame, exit:pauseGame, from:"Action"}); gameEngine.addState("LevelUp", {enter:levelUpInit, exit:levelUpExit, from:"Action"}); gameEngine.response.add(transitionFunction); } protected function gameOver2Game(_arg1:MouseEvent):void{ gameSequence.changeState("Game"); } protected function checkAddMochiAds(_arg1:Event):void{ } protected function setVariable(_arg1:String, _arg2:String, _arg3:String, _arg4:String):void{ if (((invincibleMode) && ((_arg1 == "life")))){ return; }; if (_arg4 == "N"){ gameVars[_arg1] = Number(_arg2); } else { if (_arg4 == "S"){ gameVars[_arg1] = String(_arg2); } else { if (_arg4 == "B"){ gameVars[_arg1] = Boolean(_arg2); }; }; }; } protected function soundRollOver(_arg1:MouseEvent):void{ if (gameVars.soundReady){ _arg1.currentTarget.gotoAndStop(4); } else { _arg1.currentTarget.gotoAndStop(3); }; } protected function action(_arg1:Event):void{ } protected function gameExit(_arg1:Object=null):void{ clearCanvas(); gameEngine = null; } protected function toggleGlobalSound(_arg1:MouseEvent=null):void{ var _local3:MultiStateUiButton; var _local2:SoundTransform = new SoundTransform(); if (gameVars.soundReady){ gameVars.soundReady = false; _local2.volume = 0; if (_arg1 != null){ if (getQualifiedClassName(_arg1.currentTarget).split("::")[1] == "MovieClip"){ _arg1.currentTarget.gotoAndStop(2); } else { _local3 = (_arg1.currentTarget as MultiStateUiButton); _local3.label = "Sound On"; }; }; } else { gameVars.soundReady = true; _local2.volume = 1; if (_arg1 != null){ if (getQualifiedClassName(_arg1.currentTarget).split("::")[1] == "MovieClip"){ _arg1.currentTarget.gotoAndStop(1); } else { _local3 = (_arg1.currentTarget as MultiStateUiButton); _local3.label = "Sound Off"; }; }; }; SoundMixer.soundTransform = _local2; } protected function initGameUI(_arg1:Event):void{ _arg1.currentTarget.sound_Mc.buttonMode = true; if (gameVars.soundReady){ _arg1.currentTarget.sound_Mc.gotoAndStop(2); } else { _arg1.currentTarget.sound_Mc.gotoAndStop(1); }; helpDisplayed = false; pauseTime = getTimer(); _arg1.currentTarget.sound_Mc.addEventListener(MouseEvent.CLICK, toggleGlobalSound); _arg1.currentTarget.sound_Mc.addEventListener(MouseEvent.ROLL_OVER, soundRollOver); _arg1.currentTarget.sound_Mc.addEventListener(MouseEvent.ROLL_OUT, soundRollOut); _arg1.currentTarget.help_Btn.addEventListener(MouseEvent.CLICK, helpDisplay); _arg1.currentTarget.menu_Btn.addEventListener(MouseEvent.CLICK, menuDisplay); _arg1.currentTarget.removeEventListener(Event.ADDED_TO_STAGE, initGameUI); gameEngine.changeState("LevelInit"); } protected function helpAdded(_arg1:Event):void{ } protected function helpDisplay(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); if (!helpDisplayed){ gameEngine.changeState("GameHelp"); }; } protected function showHighScores(_arg1:MouseEvent):void{ if (!MochiServices.connected){ return; }; gameSequence.changeState("Highscores"); } protected function removeIntro(_arg1:Event):void{ if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){ _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, removeIntro); gameSequence.changeState("Menu"); }; } protected function gotoSite(_arg1:MouseEvent):void{ var evntm = _arg1; Debug.log(("Checking " + gameVars.siteUrl)); var request:URLRequest = new URLRequest(gameVars.siteUrl); try { navigateToURL(request, "_blank"); } catch(e:Error) { }; } protected function transitionFunction():void{ switch (arguments[0]){ case "TRANSITION_DENIED": Debug.error(((((("Tried change to " + arguments[1]) + " from ") + arguments[2]) + ". Can only transition from the following state/s: ") + arguments[3])); break; case "TRANSITION_COMPLETE": break; }; } protected function submitScore(_arg1:MouseEvent):void{ if (!MochiServices.connected){ return; }; gameSequence.changeState("SubmitScore"); } protected function menuDisplay(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); setVariable("level", "1", "menuDisplay", "N"); Debug.log("back"); gameSequence.changeState("Menu"); } protected function levelUp2Game(_arg1:MouseEvent):void{ gameEngine.changeState("GameInit"); } protected function showLevelUp():void{ levelUp_mc.gotoAndPlay(1); levelUp_mc.addEventListener(Event.ENTER_FRAME, levelUpAdded); } protected function cFlashtoryInit():void{ gameVars = Global.getInstance(); if (gameVars.developerMode){ gameStats = new Stats(); }; gameSequence = new StateMachine(); gameSequence.addState("Intro", {enter:introInit, exit:introExit}); gameSequence.addState("Help", {enter:helpInit, exit:helpExit, from:"Menu"}); gameSequence.addState("Menu", {enter:menuInit, exit:menuExit, from:["Intro", "Help", "Game", "GameWin", "GameOver", "Highscores", "SubmitScore"]}); gameSequence.addState("Game", {enter:gameInit, exit:gameExit, from:["Menu", "LevelUp", "GameWin", "GameOver"]}); gameSequence.addState("GameWin", {enter:gamewinInit, exit:gamewinExit, from:"Game"}); gameSequence.addState("GameOver", {enter:gameoverInit, exit:gameoverExit, from:"Game"}); if (gameVars.mochiEnabled){ gameSequence.addState("Highscores", {enter:highscoresInit, exit:highscoresExit, from:"Menu"}); gameSequence.addState("SubmitScore", {enter:submitscoreInit, exit:highscoresExit, from:["GameWin", "GameOver"]}); }; gameSequence.response.add(transitionFunction); } protected function gameStart(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); gameSequence.changeState("Game"); } protected function soundRollOut(_arg1:MouseEvent):void{ if (gameVars.soundReady){ _arg1.currentTarget.gotoAndStop(2); } else { _arg1.currentTarget.gotoAndStop(1); }; } protected function introInit(_arg1:Object):void{ if (gameVars.brandUsed == "Csharks"){ intro = (new IntroCgs_mc() as MovieClip); } else { if (gameVars.brandUsed == "OIG"){ intro = (new IntroOIG_mc() as MovieClip); } else { Debug.error("No Custom Intro found, skipping intro"); gameSequence.changeState("Menu"); return; }; }; intro.x = gameVars.stageMiddleX; intro.y = gameVars.stageMiddleY; intro.addEventListener(Event.ENTER_FRAME, removeIntro); addChild(intro); } protected function gameWinAdded(_arg1:Event):void{ } protected function unpauseGame(_arg1:Object=null):void{ var _local2:MouseEvent; Debug.log("action"); addEventListener(Event.ENTER_FRAME, action); key = new KeyObject(this.stage); stage.focus = stage; if (gameVars.developerMode){ if (gameStats == null){ gameStats = new Stats(); }; addChild(gameStats); }; if ((((_arg1 == null)) || (((!((_arg1 == null))) && ((((_arg1.fromState == "Paused")) || ((_arg1.fromState == "GameHelp")))))))){ SceneManager.removeItem(game_mc, "PausedText"); }; if (focusSoundMute){ _local2 = new MouseEvent(MouseEvent.CLICK); game_mc.sound_Mc.dispatchEvent(_local2); focusSoundMute = false; }; setVariable("Paused", "", "unpauseGame", "B"); Debug.log((("Game was paused for " + (getTimer() - pauseTime)) + " Millisecs"), Debug.PINK); } protected function backBtnFn(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); if (((!((gameVars.showCredits == null))) && ((_arg1.currentTarget.parent == templateMc)))){ _arg1.currentTarget.parent.removeChild(finalCreditText); finalCreditText.removeEventListener(MouseEvent.CLICK, gotoSite); }; Debug.log("back to menu after submit"); SceneManager.removeButton(_arg1.currentTarget.parent, "Back to Menu", backBtnFn); gameSequence.changeState("Menu"); } protected function windowNotActive(_arg1:Event):void{ var _local2:MouseEvent; Debug.log("Window focus lost", Debug.RED); if (!helpDisplayed){ if (((musicIsPlaying) && (gameVars.soundReady))){ _local2 = new MouseEvent(MouseEvent.CLICK); game_mc.sound_Mc.dispatchEvent(_local2); focusSoundMute = true; }; pauseGame(); }; } protected function introExit(_arg1:Object):void{ if (intro){ removeChild(intro); }; } protected function submitscoreInit(_arg1:Object):void{ templateMc = new TemplateBg(); templateMc.addEventListener(Event.ADDED_TO_STAGE, assignSubmitScore); addChild(templateMc); } protected function assignHighScores(_arg1:Event):void{ } protected function levelInit(_arg1:Object):void{ Debug.log("level init"); stage.addEventListener(Event.DEACTIVATE, windowNotActive); stage.addEventListener(Event.ACTIVATE, windowActive); focusSoundMute = false; gameEngine.changeState("Action"); } protected function gameOverAdded(_arg1:Event):void{ } protected function checkTemplate(_arg1:Event):void{ var _local2:UiButton; var _local3:String; if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){ if (gameVars.showCredits != null){ _local3 = gameVars.siteUrl.toString().split("//")[1]; finalCreditText = new UiBox(gameVars.showCredits, 300, 70, UiBoxTypes.TextOnly, 25, 0xFFFFFF, _local3); finalCreditText.name = "CreditText"; finalCreditText.x = (gameVars.stageMiddleX - (finalCreditText.width / 2)); finalCreditText.y = (gameVars.stageMiddleY - (finalCreditText.height / 2)); _arg1.currentTarget.addChild(finalCreditText); finalCreditText.addEventListener(MouseEvent.CLICK, gotoSite); finalCreditText.buttonMode = true; }; _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, checkTemplate); _local2 = SceneManager.addButton(_arg1.currentTarget, "Back to Menu", backBtnFn); _local2.x = (gameVars.stageMiddleX - (_local2.width / 2)); _local2.y = (2 * gameVars.stageMiddleY); TweenLite.to(_local2, 1, {y:350, ease:Elastic.easeOut}); }; } protected function gotoCsharksSite(_arg1:MouseEvent):void{ var evntm = _arg1; var request:URLRequest = new URLRequest("http://www.csharks.com"); try { navigateToURL(request, "_blank"); } catch(e:Error) { }; } protected function assignHelp(_arg1:Event):void{ _arg1.currentTarget.removeEventListener(Event.ADDED_TO_STAGE, assignHelp); var _local2:UiButton = SceneManager.addButton(_arg1.currentTarget, "Back to Menu", backBtnFn); _local2.x = (gameVars.stageMiddleX - (_local2.width / 2)); _local2.y = (2 * gameVars.stageMiddleY); TweenLite.to(_local2, 1, {y:500, ease:Elastic.easeOut}); } protected function gamewinInit(_arg1:Object):void{ Debug.log("game win init"); gameWin_mc = new GameWin(); gameWin_mc.addEventListener(Event.ENTER_FRAME, gameWinAdded); addChild(gameWin_mc); } protected function gamewinExit(_arg1:Object):void{ Debug.log("game win exit"); SceneManager.removeButton(gameWin_mc, "Play Again", gameWin2Game); if (gameVars.mochiEnabled){ SceneManager.removeButton(gameWin_mc, "Submit Score", submitScore); }; removeChild(gameWin_mc); } protected function assignSubmitScore(_arg1:Event):void{ } protected function backToGame(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("defaultClick"); gameEngine.changeState("Action"); stage.focus = stage; } protected function assignMenu(_arg1:Event):void{ } protected function levelUpInit(_arg1:Object):void{ Debug.log("level up init"); clearCanvas(); levelUp_mc = new LeveUp(); levelUp_mc.addEventListener(Event.ADDED_TO_STAGE, checkAddMochiAds); addChild(levelUp_mc); } protected function helpInit(_arg1:Object):void{ help_mc = new HelpClip(); help_mc.addEventListener(Event.ADDED_TO_STAGE, assignHelp); addChild(help_mc); } protected function highscoresInit(_arg1:Object):void{ templateMc = new TemplateBg(); templateMc.addEventListener(Event.ADDED_TO_STAGE, assignHighScores); addChild(templateMc); } protected function gameoverInit(_arg1:Object):void{ Debug.log("game over init"); gameOver_mc = new GameOver(); gameOver_mc.addEventListener(Event.ENTER_FRAME, gameOverAdded); addChild(gameOver_mc); } protected function musicCompleteHandler(_arg1:Event):void{ } protected function helpExit(_arg1:Object):void{ removeChild(help_mc); } protected static function postToStream(_arg1=null):void{ MochiSocial.postToStream({message:"Enjoying this awesome game, check it out!"}); MochiSocial.addEventListener(MochiSocial.ACTION_COMPLETE, actionComplete); MochiSocial.addEventListener(MochiSocial.ACTION_CANCELED, actionCanceled); } protected static function actionCanceled(_arg1:Object):void{ MochiSocial.removeEventListener(MochiSocial.ACTION_COMPLETE, actionComplete); MochiSocial.removeEventListener(MochiSocial.ACTION_CANCELED, actionCanceled); } protected static function actionComplete(_arg1:Object):void{ MochiSocial.removeEventListener(MochiSocial.ACTION_COMPLETE, actionComplete); MochiSocial.removeEventListener(MochiSocial.ACTION_CANCELED, actionCanceled); } } }//package com.csharks.juwalbose.cFlashtory
Section 9
//cFlashtory_GameClip (com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_GameClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 10
//cFlashtory_GameOver (com.csharks.juwalbose.cFlashtory.cFlashtory_GameOver) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_GameOver extends MovieClipAsset { public var games2girls_button:DisplayObject; public var g2gLogo_mc:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 11
//cFlashtory_GameWin (com.csharks.juwalbose.cFlashtory.cFlashtory_GameWin) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_GameWin extends MovieClipAsset { public var games2girls_button:DisplayObject; public var g2gLogo_mc:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 12
//cFlashtory_HelpClip (com.csharks.juwalbose.cFlashtory.cFlashtory_HelpClip) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_HelpClip extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 13
//cFlashtory_HelpDisplay (com.csharks.juwalbose.cFlashtory.cFlashtory_HelpDisplay) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_HelpDisplay extends MovieClipAsset { public var games2girls_button:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 14
//cFlashtory_LeveUp (com.csharks.juwalbose.cFlashtory.cFlashtory_LeveUp) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_LeveUp extends MovieClipAsset { public var games2girls_button:DisplayObject; public var g2gLogo_mc:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 15
//cFlashtory_MenuClip (com.csharks.juwalbose.cFlashtory.cFlashtory_MenuClip) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_MenuClip extends MovieClipAsset { public var games2girls_button:DisplayObject; public var g2gLogo_mc:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 16
//cFlashtory_Music (com.csharks.juwalbose.cFlashtory.cFlashtory_Music) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_Music extends SoundAsset { public var games2girls_button:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 17
//cFlashtory_TemplateBg (com.csharks.juwalbose.cFlashtory.cFlashtory_TemplateBg) package com.csharks.juwalbose.cFlashtory { import flash.display.*; import mx.core.*; public class cFlashtory_TemplateBg extends MovieClipAsset { public var games2girls_button:DisplayObject; } }//package com.csharks.juwalbose.cFlashtory
Section 18
//LibraryFontTextField (com.csharks.juwalbose.utils.ui.LibraryFontTextField) package com.csharks.juwalbose.utils.ui { import flash.text.*; public class LibraryFontTextField extends TextField { private var formatting:TextFormat; public function LibraryFontTextField(_arg1:String, _arg2:uint=8, _arg3:int=0, _arg4:String=""){ formatting = new TextFormat(); formatting.font = _arg1; formatting.align = TextFormatAlign.CENTER; formatting.size = _arg2; formatting.color = _arg3; defaultTextFormat = formatting; embedFonts = true; antiAliasType = AntiAliasType.ADVANCED; text = _arg4; } public function set size(_arg1:uint):void{ var _local2:String = this.text; var _local3:int = this.textColor; formatting.size = _arg1; defaultTextFormat = formatting; this.text = _local2; this.textColor = _local3; } } }//package com.csharks.juwalbose.utils.ui
Section 19
//MultiStateUiButton (com.csharks.juwalbose.utils.ui.MultiStateUiButton) package com.csharks.juwalbose.utils.ui { import flash.display.*; public class MultiStateUiButton extends UiButton { private var newTextUpColor:uint; private var newText:String; private var newTextSize:uint; public function MultiStateUiButton(_arg1:Class, _arg2:Class, _arg3:Class, _arg4:int, _arg5:int, _arg6:String="Button", _arg7:uint=20, _arg8:uint=0, _arg9:uint=0xFFFFFF, _arg10:uint=0xFF00FF){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); newText = _arg6; newTextSize = _arg7; newTextUpColor = _arg8; } public function changeButton(_arg1:Class, _arg2:String="", _arg3:uint=0, _arg4=-1):void{ setState("up", _arg1, _arg2, _arg3, _arg4); setState("over", _arg1, _arg2, _arg3, _arg4); setState("down", _arg1, _arg2, _arg3, _arg4); enabled = true; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; this.mouseEnabled = enabled; if (enabled){ this.alpha = 1; } else { this.alpha = 0.5; }; } public function setState(_arg1:String, _arg2:Class, _arg3:String="", _arg4:uint=0, _arg5=-1):void{ var _local6:uint; var _local7:uint; var _local8:uint; var _local11:Sprite; if (_arg3 != ""){ newText = _arg3; }; if (_arg4 != 0){ newTextSize = _arg4; }; if (_arg5 > -1){ newTextUpColor = _arg5; }; _local6 = super.sizeX; _local7 = super.sizeY; _local8 = newTextSize; var _local9:uint = 2; var _local10:uint = 5; switch (_arg1){ case "up": upState = (hitTestState = (new UiBox("", super.sizeX, super.sizeY, UiBoxTypes.TextWithBackground, newTextSize, newTextUpColor, newText, _arg2, null, null, super.ButtonFont) as Sprite)); break; case "down": _local8 = (newTextSize - _local9); _local6 = (super.sizeX - _local10); _local7 = (super.sizeY - _local10); _local11 = (new UiBox("", _local6, _local7, UiBoxTypes.TextWithBackground, _local8, newTextUpColor, newText, _arg2, null, null, super.ButtonFont) as Sprite); _local11.x = ((super.sizeX / 2) - (_local6 / 2)); _local11.y = ((super.sizeY / 2) - (_local7 / 2)); downState = _local11; break; case "over": _local6 = (super.sizeX + _local10); _local7 = (super.sizeY + _local10); _local8 = (newTextSize + _local9); _local11 = (new UiBox("", _local6, _local7, UiBoxTypes.TextWithBackground, _local8, newTextUpColor, newText, _arg2, null, null, super.ButtonFont) as Sprite); _local11.x = ((super.sizeX / 2) - (_local6 / 2)); _local11.y = ((super.sizeY / 2) - (_local7 / 2)); overState = _local11; break; }; } } }//package com.csharks.juwalbose.utils.ui
Section 20
//Scale9Helper (com.csharks.juwalbose.utils.ui.Scale9Helper) package com.csharks.juwalbose.utils.ui { import flash.display.*; import flash.geom.*; public class Scale9Helper { public static function showScaleGrid(_arg1:Sprite, _arg2:uint=0xFF00):void{ var _local3:Rectangle = _arg1.scale9Grid; _arg1.graphics.lineStyle(2, _arg2); _arg1.graphics.moveTo(0, _local3.y); _arg1.graphics.lineTo(_arg1.width, _local3.y); _arg1.graphics.moveTo(_local3.x, 0); _arg1.graphics.lineTo(_local3.x, _arg1.height); _arg1.graphics.moveTo(0, (_local3.y + _local3.height)); _arg1.graphics.lineTo(_arg1.width, (_local3.y + _local3.height)); _arg1.graphics.moveTo((_local3.x + _local3.width), 0); _arg1.graphics.lineTo((_local3.x + _local3.width), _arg1.height); } public static function setScaleGrid(_arg1:Sprite, _arg2:uint):void{ var _local3:Rectangle = new Rectangle(_arg2, _arg2, (_arg1.width - (_arg2 << 1)), (_arg1.height - (_arg2 << 1))); _arg1.scale9Grid = _local3; } } }//package com.csharks.juwalbose.utils.ui
Section 21
//SceneManager (com.csharks.juwalbose.utils.ui.SceneManager) package com.csharks.juwalbose.utils.ui { import flash.events.*; import flash.display.*; import com.inruntime.utils.*; public class SceneManager { private static var ButtonDownClip:Class = SceneManager_ButtonDownClip; private static var ButtonUpClip:Class = SceneManager_ButtonUpClip; private static var ButtonOverClip:Class = SceneManager_ButtonOverClip; public static function getCircle(_arg1:uint, _arg2:uint=0, _arg3:uint=1):Sprite{ var _local4:Sprite = new Sprite(); _local4.graphics.lineStyle(_arg3, _arg2); _local4.graphics.drawCircle(0, 0, _arg1); return (_local4); } public static function addMultiStateButton(_arg1, _arg2:String="Button", _arg3:Function=null, _arg4:Boolean=false, _arg5:uint=130, _arg6:uint=45):MultiStateUiButton{ var _local8:MultiStateUiButton; var _local7:Global = Global.getInstance(); if (_arg4){ _local8 = new MultiStateUiButton(ButtonUpClip, ButtonOverClip, ButtonDownClip, _arg5, _arg6, _arg2, _local7.buttonFontSize, _local7.buttonFontNormalColor, _local7.buttonFontOverColor, _local7.buttonFontDownColor); } else { _local8 = new MultiStateUiButton(ButtonUpClip, ButtonOverClip, ButtonDownClip, -1, -1, _arg2, _local7.buttonFontSize, _local7.buttonFontNormalColor, _local7.buttonFontOverColor, _local7.buttonFontDownColor); }; _local8.name = _arg2; if (_arg3 != null){ _local8.addEventListener(MouseEvent.CLICK, _arg3); }; _arg1.addChild(_local8); return (_local8); } public static function removeMultiStateButton(_arg1, _arg2:String="Button", _arg3:Function=null):void{ var _local4:UiButton; if (_arg1.getChildByName(_arg2)){ _local4 = (_arg1.getChildByName(_arg2) as UiButton); if (_arg3 != null){ _local4.removeEventListener(MouseEvent.CLICK, _arg3); }; _arg1.removeChild(_local4); }; } public static function resizeThis(_arg1:DisplayObject, _arg2:Number, _arg3:Number=0, _arg4:Boolean=true):void{ _arg3 = ((_arg3 == 0)) ? _arg2 : _arg3; _arg1.width = _arg2; _arg1.height = _arg3; if (_arg4){ if ((_arg1.scaleX < _arg1.scaleY)){ _arg1.scaleY = _arg1.scaleX; } else { _arg1.scaleX = _arg1.scaleY; }; }; } public static function addButton(_arg1, _arg2:String="Button", _arg3:Function=null, _arg4:Boolean=false, _arg5:uint=130, _arg6:uint=45):UiButton{ var _local8:UiButton; var _local7:Global = Global.getInstance(); if (_arg4){ _local8 = new UiButton(ButtonUpClip, ButtonOverClip, ButtonDownClip, _arg5, _arg6, _arg2, _local7.buttonFontSize, _local7.buttonFontNormalColor, _local7.buttonFontOverColor, _local7.buttonFontDownColor); } else { _local8 = new UiButton(ButtonUpClip, ButtonOverClip, ButtonDownClip, -1, -1, _arg2, _local7.buttonFontSize, _local7.buttonFontNormalColor, _local7.buttonFontOverColor, _local7.buttonFontDownColor); }; _local8.name = _arg2; if (_arg3 != null){ _local8.addEventListener(MouseEvent.CLICK, _arg3); }; _arg1.addChild(_local8); return (_local8); } public static function addTitleBox(_arg1, _arg2:uint=1, _arg3:String="Title", _arg4:uint=130, _arg5:uint=45):UiBox{ var _local6:Global = Global.getInstance(); var _local7:String = _arg3; var _local8:UiBox = new UiBox("", _arg4, _arg5, _arg2, _local6.buttonFontSize, _local6.buttonFontNormalColor, _local7, ButtonUpClip); _local8.name = _arg3; _arg1.addChild(_local8); return (_local8); } public static function removeButton(_arg1, _arg2:String="Button", _arg3:Function=null):void{ var _local4:UiButton; if (_arg1.getChildByName(_arg2)){ _local4 = (_arg1.getChildByName(_arg2) as UiButton); if (_arg3 != null){ _local4.removeEventListener(MouseEvent.CLICK, _arg3); }; _arg1.removeChild(_local4); }; } public static function removeItem(_arg1, _arg2:String="Button"):void{ var _local3:*; if (_arg1.getChildByName(_arg2)){ _local3 = _arg1.getChildByName(_arg2); _arg1.removeChild(_local3); }; } public static function getRectangle(_arg1:uint, _arg2:uint=0, _arg3:uint=1):Sprite{ var _local4:Sprite = new Sprite(); _local4.graphics.lineStyle(_arg3, _arg2); _local4.graphics.drawRect(-(_arg1), (-(_arg1) / 2), (_arg1 * 2), _arg1); return (_local4); } public static function removeAllChildren(_arg1):void{ while (_arg1.numChildren) { _arg1.removeChildAt(0); }; } } }//package com.csharks.juwalbose.utils.ui
Section 22
//SceneManager_ButtonDownClip (com.csharks.juwalbose.utils.ui.SceneManager_ButtonDownClip) package com.csharks.juwalbose.utils.ui { import flash.display.*; import mx.core.*; public class SceneManager_ButtonDownClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.juwalbose.utils.ui
Section 23
//SceneManager_ButtonOverClip (com.csharks.juwalbose.utils.ui.SceneManager_ButtonOverClip) package com.csharks.juwalbose.utils.ui { import flash.display.*; import mx.core.*; public class SceneManager_ButtonOverClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.juwalbose.utils.ui
Section 24
//SceneManager_ButtonUpClip (com.csharks.juwalbose.utils.ui.SceneManager_ButtonUpClip) package com.csharks.juwalbose.utils.ui { import flash.display.*; import mx.core.*; public class SceneManager_ButtonUpClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.juwalbose.utils.ui
Section 25
//UiBox (com.csharks.juwalbose.utils.ui.UiBox) package com.csharks.juwalbose.utils.ui { import flash.events.*; import flash.display.*; import com.inruntime.utils.*; public class UiBox extends Sprite { private var heading:String; private var itemClip:Class; private var barClip:Class; private var myBg:Sprite; private var destinationValue:Number; private var offset:Number; private var headingTxt:LibraryFontTextField; private var myClip:Sprite; private var myTxt:LibraryFontTextField; private var boxType:uint; private var maxBarValue; private var bgClip:Class; private var textColor:uint; private var updating:Boolean;// = false private var myBar:MovieClip; private var textSize:uint; private var iWidth:uint; public var runningUpdate:Boolean;// = false private var MenuFont:String; private var increment:int; private var iHeight:uint; private var currentValue; private var barUpdating:Boolean;// = false public function UiBox(_arg1:String="", _arg2:uint=100, _arg3:uint=20, _arg4:uint=1, _arg5:uint=8, _arg6:uint=0, _arg7=null, _arg8:Class=null, _arg9:Class=null, _arg10:Class=null, _arg11:String=null, _arg12:Number=0){ var _local13:Global = Global.getInstance(); MenuFont = (_local13.menuFont as String); boxType = _arg4; iWidth = _arg2; iHeight = _arg3; textSize = _arg5; textColor = _arg6; bgClip = _arg8; barClip = _arg10; itemClip = _arg9; heading = _arg1; offset = _arg12; if (_arg11 != null){ MenuFont = _arg11; }; if (heading != ""){ headingTxt = new LibraryFontTextField(MenuFont, textSize, textColor, heading); headingTxt.selectable = false; headingTxt.mouseEnabled = false; headingTxt.width = _arg2; headingTxt.x = ((iWidth / 2) - (headingTxt.width / 2)); headingTxt.y = offset; }; switch (_arg4){ case UiBoxTypes.BackgroundOnly: addBG(); if (heading != ""){ addChild(headingTxt); }; break; case UiBoxTypes.BarOnly: addBar(_arg7); break; case UiBoxTypes.BarWithBackground: addBG(); addBar(_arg7); break; case UiBoxTypes.ClipOnly: myClip = new Sprite(); addChild(myClip); addClip(_arg7); break; case UiBoxTypes.ClipWithBackground: addBG(); myClip = new Sprite(); addChild(myClip); addClip(_arg7.toString()); break; case UiBoxTypes.TextOnly: addText(_arg7); break; case UiBoxTypes.TextWithBackground: addBG(); addText(_arg7.toString()); break; }; } private function clearSprite(_arg1:Sprite):void{ while (_arg1.numChildren) { _arg1.removeChildAt(0); }; } private function addClip(_arg1=null):void{ var _local4:Sprite; if (_arg1 <= 0){ return; }; if (isNaN(_arg1)){ _arg1 = 1; } else { _arg1 = int(_arg1); }; if (maxBarValue == null){ maxBarValue = _arg1; if (heading != ""){ addChild(headingTxt); }; }; var _local2:Number = (iWidth / maxBarValue); var _local3:uint; while (_local3 < maxBarValue) { _local4 = (new itemClip() as Sprite); myClip.addChild(_local4); if (heading != ""){ _local4.y = ((headingTxt.y + headingTxt.textHeight) + 5); } else { _local4.y = ((iHeight / 2) - (_local4.height / 2)); }; if ((_local3 + 1) > _arg1){ _local4.alpha = 0.5; }; _local4.x = (((_local3 * _local2) / 2) + ((((_local3 + 1) * _local2) / 2) - (_local4.width / 2))); _local3++; }; } private function updateBar(_arg1:Event):void{ currentValue = myBar.currentFrame; myBar.gotoAndStop((currentValue + increment)); if ((((((myBar.currentFrame == destinationValue)) || ((((increment > 0)) && ((destinationValue < currentValue)))))) || ((((increment < 0)) && ((destinationValue > currentValue)))))){ currentValue = null; barUpdating = false; myBar.gotoAndStop(destinationValue); removeEventListener(Event.ENTER_FRAME, updateBar); }; } private function addBG():void{ myBg = (new bgClip() as Sprite); addChild(myBg); Scale9Helper.setScaleGrid(myBg, 12); myBg.width = iWidth; myBg.height = iHeight; } private function updateField(_arg1:Event):void{ var _local2:int = increment; increment = int(((destinationValue - currentValue) / 2)); currentValue = Number(myTxt.text); myTxt.text = String((currentValue + increment)); if ((((currentValue == destinationValue)) || (!(((increment / _local2) == Math.abs((increment / _local2))))))){ currentValue = null; updating = false; myTxt.text = destinationValue.toString(); removeEventListener(Event.ENTER_FRAME, updateField); }; myTxt.x = ((iWidth / 2) - (myTxt.width / 2)); } private function addBar(_arg1=null):void{ if (_arg1 <= 0){ return; }; if (isNaN(_arg1)){ _arg1 = 1; }; if (maxBarValue == null){ maxBarValue = _arg1; }; myBar = (new barClip() as MovieClip); addChild(myBar); if (heading != ""){ addChild(headingTxt); myBar.y = ((headingTxt.y + headingTxt.textHeight) + 5); } else { myBar.y = ((iHeight / 2) - (myBar.height / 2)); }; myBar.x = ((iWidth / 2) - (myBar.width / 2)); myBar.addEventListener(Event.ADDED_TO_STAGE, initBar); } public function update(_arg1):void{ if ((((boxType == UiBoxTypes.TextOnly)) || ((boxType == UiBoxTypes.TextWithBackground)))){ if (((((runningUpdate) && (!(isNaN(_arg1))))) && (!((Number(myTxt.text) == Number(_arg1)))))){ if (!updating){ updating = true; if (currentValue == null){ currentValue = Number(myTxt.text); destinationValue = Number(_arg1); increment = int(((destinationValue - currentValue) / 2)); addEventListener(Event.ENTER_FRAME, updateField); }; } else { destinationValue = Number(_arg1); currentValue = Number(myTxt.text); increment = int(((destinationValue - currentValue) / 2)); }; } else { myTxt.text = _arg1; myTxt.x = ((iWidth / 2) - (myTxt.width / 2)); }; } else { if ((((((boxType == UiBoxTypes.BarOnly)) || ((boxType == UiBoxTypes.BarWithBackground)))) && (!(isNaN(_arg1))))){ if (((runningUpdate) && (!(isNaN(_arg1))))){ if (!barUpdating){ barUpdating = true; if (currentValue == null){ currentValue = myBar.currentFrame; destinationValue = (1 + int(((_arg1 / maxBarValue) * (myBar.totalFrames - 1)))); if (Math.max(destinationValue, currentValue) == destinationValue){ increment = 1; } else { increment = -1; }; addEventListener(Event.ENTER_FRAME, updateBar); }; } else { destinationValue = (1 + int(((_arg1 / maxBarValue) * (myBar.totalFrames - 1)))); if (Math.max(destinationValue, currentValue) == destinationValue){ increment = 1; } else { increment = -1; }; }; } else { myBar.gotoAndStop((1 + int(((_arg1 / maxBarValue) * (myBar.totalFrames - 1))))); }; } else { if ((((boxType == UiBoxTypes.ClipOnly)) || ((boxType == UiBoxTypes.ClipWithBackground)))){ clearSprite(myClip); addClip(_arg1); }; }; }; } private function initBar(_arg1:Event):void{ _arg1.currentTarget.removeEventListener(Event.ADDED_TO_STAGE, initBar); _arg1.currentTarget.gotoAndStop(_arg1.currentTarget.totalFrames); } private function addText(_arg1:String):void{ myTxt = new LibraryFontTextField(MenuFont, textSize, textColor, _arg1); addChild(myTxt); myTxt.selectable = false; myTxt.mouseEnabled = false; myTxt.multiline = true; myTxt.wordWrap = true; myTxt.width = (iWidth - 5); myTxt.height = (iHeight - 5); myTxt.x = ((iWidth / 2) - (myTxt.width / 2)); if (heading != ""){ addChild(headingTxt); myTxt.y = (((iHeight - (headingTxt.y + headingTxt.textHeight)) / 2) - (myTxt.textHeight / 2)); if ((headingTxt.y + headingTxt.textHeight) > myTxt.y){ myTxt.y = (headingTxt.y + headingTxt.textHeight); }; } else { myTxt.y = (((iHeight / 2) - (myTxt.textHeight / 2)) + offset); }; } } }//package com.csharks.juwalbose.utils.ui
Section 26
//UiBoxTypes (com.csharks.juwalbose.utils.ui.UiBoxTypes) package com.csharks.juwalbose.utils.ui { public class UiBoxTypes { public static const TextWithBackground:uint = 3; public static const ClipWithBackground:uint = 7; public static const BarWithBackground:uint = 5; public static const TextOnly:uint = 1; public static const BackgroundOnly:uint = 2; public static const ClipOnly:uint = 6; public static const BarOnly:uint = 4; } }//package com.csharks.juwalbose.utils.ui
Section 27
//UiButton (com.csharks.juwalbose.utils.ui.UiButton) package com.csharks.juwalbose.utils.ui { import flash.display.*; import com.inruntime.utils.*; public class UiButton extends SimpleButton { public var ButtonFont:String; private var ButtonDownClip:Class; private var textOverColor:uint; private var ButtonUpClip:Class; private var textSize:uint; private var title:String; private var textUpColor:uint; private var textDownColor:uint; public var sizeY:uint; private var ButtonOverClip:Class; public var sizeX:uint; public function UiButton(_arg1:Class, _arg2:Class, _arg3:Class, _arg4:int=-1, _arg5:int=-1, _arg6:String="Button", _arg7:uint=20, _arg8:uint=0, _arg9:uint=0xFFFFFF, _arg10:uint=0xFF00FF){ var _local11:Global = Global.getInstance(); ButtonFont = (_local11.buttonFont as String); ButtonUpClip = _arg1; ButtonOverClip = _arg2; ButtonDownClip = _arg3; textDownColor = _arg10; textOverColor = _arg9; textUpColor = _arg8; textSize = _arg7; title = _arg6; var _local12:LibraryFontTextField = new LibraryFontTextField(ButtonFont, textSize, _arg8, _arg6); if (_arg4 == -1){ sizeX = (_local12.textWidth + 30); } else { sizeX = _arg4; }; if (_arg5 == -1){ sizeY = (_local12.textHeight + 15); } else { sizeY = _arg5; }; _local12 = null; upState = (hitTestState = setGraphics(ButtonUpClip, textUpColor)); overState = setGraphics(ButtonOverClip, textOverColor); downState = setGraphics(ButtonDownClip, textDownColor); } private function setGraphics(_arg1:Class, _arg2:uint):Sprite{ var _local3:uint; var _local4:uint; var _local5:uint = textSize; var _local6:uint = 1; var _local7:uint = 1; if (_arg1 == ButtonUpClip){ _local3 = sizeX; _local4 = sizeY; } else { if (_arg1 == ButtonOverClip){ _local3 = (sizeX + _local7); _local4 = (sizeY + _local7); _local5 = (_local5 + _local6); } else { if (_arg1 == ButtonDownClip){ _local3 = (sizeX - _local7); _local4 = (sizeY - _local7); _local5 = (_local5 - _local6); }; }; }; var _local8:Sprite = (new UiBox("", _local3, _local4, UiBoxTypes.TextWithBackground, _local5, _arg2, title, _arg1, null, null, ButtonFont) as Sprite); _local8.x = ((sizeX / 2) - (_local3 / 2)); _local8.y = ((sizeY / 2) - (_local4 / 2)); return (_local8); } public function set label(_arg1:String):void{ title = _arg1; upState = (hitTestState = setGraphics(ButtonUpClip, textUpColor)); overState = setGraphics(ButtonOverClip, textOverColor); downState = setGraphics(ButtonDownClip, textDownColor); } } }//package com.csharks.juwalbose.utils.ui
Section 28
//Counter (com.csharks.juwalbose.utils.Counter) package com.csharks.juwalbose.utils { import flash.events.*; import flash.utils.*; public class Counter { private var callbackFunction:Function; private var counterType:String; private var _timer:Timer; private var counterMax:uint; public var currentTime:uint; private var counterMin:uint; private var range:uint; public function Counter(_arg1:uint, _arg2:uint=0, _arg3:String="down", _arg4:Function=null){ counterMax = _arg1; counterMin = 0; counterType = _arg3; callbackFunction = _arg4; range = (counterMax - counterMin); if (counterType == "up"){ currentTime = 0; } else { currentTime = range; }; } public function start(_arg1:Number=1):void{ _timer = new Timer((_arg1 * 1000)); _timer.addEventListener(TimerEvent.TIMER, timerTick); _timer.start(); } private function timerTick(_arg1:TimerEvent):void{ counterMin++; if (counterType == "up"){ currentTime = counterMin; if (currentTime >= counterMax){ timerComplete(); }; } else { currentTime = (range - counterMin); if (currentTime <= 0){ timerComplete(); }; }; } public function unPause():void{ _timer.start(); } public function pause():void{ _timer.stop(); } private function timerComplete():void{ _timer.stop(); _timer.removeEventListener(TimerEvent.TIMER, timerTick); _timer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerComplete); if (callbackFunction != null){ callbackFunction.call(); }; } public function dispose():void{ _timer.stop(); _timer.removeEventListener(TimerEvent.TIMER, timerTick); _timer.removeEventListener(TimerEvent.TIMER_COMPLETE, timerComplete); } } }//package com.csharks.juwalbose.utils
Section 29
//Environment (com.csharks.juwalbose.utils.Environment) package com.csharks.juwalbose.utils { import flash.system.*; import flash.net.*; public class Environment { public static function get IS_IN_BROWSER():Boolean{ return ((((Capabilities.playerType == "PlugIn")) || ((Capabilities.playerType == "ActiveX")))); } public static function get DOMAIN():String{ return (new LocalConnection().domain); } public static function get IS_IN_AIR():Boolean{ return ((Capabilities.playerType == "Desktop")); } public static function get IS_OIG():Boolean{ return ((DOMAIN == "onlineindiangames.com")); } public static function get IS_CSHARKS():Boolean{ return ((((((((DOMAIN == "www.csharks.com")) || ((DOMAIN == "csharks.com")))) || ((DOMAIN == "www.csharksgames.com")))) || ((DOMAIN == "csharksgames.com")))); } public static function get IS_ON_SERVER():Boolean{ return ((Security.sandboxType == Security.REMOTE)); } } }//package com.csharks.juwalbose.utils
Section 30
//RandomHelper (com.csharks.juwalbose.utils.RandomHelper) package com.csharks.juwalbose.utils { public class RandomHelper { public static function randomSign():int{ var _local1:int = ((2 * int((Math.random() * 2))) - 1); return (_local1); } public static function randomIntTill(_arg1:uint):int{ var _local2:int = int((Math.random() * _arg1)); return (_local2); } public static function randomWithProbability(_arg1:Array, _arg2:Array, _arg3:uint):Array{ var _local11:uint; var _local12:uint; var _local4:Array = new Array(); var _local5:uint = (_arg1.length - 1); var _local6:Number = 0; var _local7:Number = 0; _local11 = 0; while (_local11 < _arg2.length) { _local6 = (_local6 + _arg2[_local11]); _local11++; }; if (_local6 < 1){ _local7 = (1 - _local6); if (_arg2.length < _local5){ _local12 = 0; while (_local12 < (_local5 - _arg2.length)) { _arg2.push(_local7); _local12++; }; trace("recalculated result: ", _arg2); }; } else { if (_local6 > 1){ _local11 = 0; while (_local11 < _arg2.length) { _arg2[_local11] = (_arg2[_local11] / _local6); _local11++; }; trace("recalculated result: ", _arg2); }; }; var _local8:uint = 1; var _local9:int = int((_arg3 * _arg2[(_local8 - 1)])); var _local10:uint; _local11 = 0; while (_local11 < _arg3) { if (_local10 == _local9){ _local8++; _local10 = 0; _local9 = int((_arg3 * _arg2[(_local8 - 1)])); }; _local4.push(randomBetween(_arg1[(_local8 - 1)], _arg1[_local8])); _local10++; _local11++; }; return (_local4); } public static function randomBetween(_arg1:Number, _arg2:Number):Number{ var _local3:Number; if (_arg2 < _arg1){ _local3 = _arg1; _arg1 = _arg2; _arg2 = _local3; }; _local3 = (_arg1 + (Math.random() * (_arg2 - _arg1))); return (_local3); } public static function randomSignWithZero():int{ var _local1:int = (int((Math.random() * 3)) - 1); return (_local1); } } }//package com.csharks.juwalbose.utils
Section 31
//SoundManager (com.csharks.juwalbose.utils.SoundManager) package com.csharks.juwalbose.utils { import com.greensock.*; import flash.utils.*; import flash.media.*; import flash.net.*; public class SoundManager { private var _sounds:Array; private var _soundsDict:Dictionary; private static var _instance:SoundManager; private static var _allowInstance:Boolean; public function SoundManager(){ this._soundsDict = new Dictionary(true); this._sounds = new Array(); if (!SoundManager._allowInstance){ throw (new Error("Error: Use SoundManager.getInstance() instead of the new keyword.")); }; } public function pauseSound(_arg1:String):void{ var _local2:Object = this._soundsDict[_arg1]; _local2.paused = true; _local2.position = _local2.channel.position; _local2.channel.stop(); } public function fadeSound(_arg1:String, _arg2:Number=0, _arg3:Number=1):void{ var _local4:SoundChannel = this._soundsDict[_arg1].channel; TweenLite.to(_local4, _arg3, {volume:_arg2}); } public function get sounds():Array{ return (this._sounds); } public function setSoundVolume(_arg1:String, _arg2:Number):void{ var _local3:Object = this._soundsDict[_arg1]; var _local4:SoundTransform = _local3.channel.soundTransform; _local4.volume = _arg2; _local3.channel.soundTransform = _local4; } public function getSoundDuration(_arg1:String):Number{ return (this._soundsDict[_arg1].sound.length); } public function toString():String{ return (getQualifiedClassName(this)); } public function getSoundVolume(_arg1:String):Number{ return (this._soundsDict[_arg1].channel.soundTransform.volume); } public function addLibrarySound(_arg1, _arg2:String):Boolean{ var _local3:int; while (_local3 < this._sounds.length) { if (this._sounds[_local3].name == _arg2){ return (false); }; _local3++; }; var _local4:Object = new Object(); var _local5:Sound = new (_arg1); _local4.name = _arg2; _local4.sound = _local5; _local4.channel = new SoundChannel(); _local4.position = 0; _local4.paused = true; _local4.volume = 1; _local4.startTime = 0; _local4.loops = 0; _local4.pausedByAll = false; this._soundsDict[_arg2] = _local4; this._sounds.push(_local4); return (true); } public function isSoundPaused(_arg1:String):Boolean{ return (this._soundsDict[_arg1].paused); } public function removeAllSounds():void{ var _local1:int; while (_local1 < this._sounds.length) { this._sounds[_local1] = null; _local1++; }; this._sounds = new Array(); this._soundsDict = new Dictionary(true); } public function getSoundPosition(_arg1:String):Number{ var $name = _arg1; var returnPos:Number = 0; try { returnPos = this._soundsDict[$name].channel.position; } catch(e:Error) { returnPos = 0; }; return (returnPos); } public function stopAllSounds(_arg1:Boolean=true):void{ var _local3:String; var _local2:int; while (_local2 < this._sounds.length) { _local3 = this._sounds[_local2].name; if (_arg1){ if (!this._soundsDict[_local3].paused){ this._soundsDict[_local3].pausedByAll = true; this.stopSound(_local3); }; } else { this.stopSound(_local3); }; _local2++; }; } public function removeSound(_arg1:String):void{ var _local2:int; while (_local2 < this._sounds.length) { if (this._sounds[_local2].name == _arg1){ this._sounds[_local2] = null; this._sounds.splice(_local2, 1); }; _local2++; }; delete this._soundsDict[_arg1]; } public function muteAllSounds():void{ var _local2:String; var _local1:int; while (_local1 < this._sounds.length) { _local2 = this._sounds[_local1].name; this.setSoundVolume(_local2, 0); _local1++; }; } public function stopSound(_arg1:String):void{ var _local2:Object = this._soundsDict[_arg1]; _local2.paused = true; _local2.channel.stop(); _local2.position = _local2.channel.position; } public function pauseAllSounds(_arg1:Boolean=true):void{ var _local3:String; var _local2:int; while (_local2 < this._sounds.length) { _local3 = this._sounds[_local2].name; if (_arg1){ if (!this._soundsDict[_local3].paused){ this._soundsDict[_local3].pausedByAll = true; this.pauseSound(_local3); }; } else { this.pauseSound(_local3); }; _local2++; }; } public function playAllSounds(_arg1:Boolean=false):void{ var _local3:String; var _local2:int; while (_local2 < this._sounds.length) { _local3 = this._sounds[_local2].name; if (_arg1){ if (this._soundsDict[_local3].pausedByAll){ this._soundsDict[_local3].pausedByAll = false; this.playSound(_local3); }; } else { this.playSound(_local3); }; _local2++; }; } public function addExternalSound(_arg1:String, _arg2:String, _arg3:Number=1000, _arg4:Boolean=false):Boolean{ var _local5:int; while (_local5 < this._sounds.length) { if (this._sounds[_local5].name == _arg2){ return (false); }; _local5++; }; var _local6:Object = new Object(); var _local7:Sound = new Sound(new URLRequest(_arg1), new SoundLoaderContext(_arg3, _arg4)); _local6.name = _arg2; _local6.sound = _local7; _local6.channel = new SoundChannel(); _local6.position = 0; _local6.paused = true; _local6.volume = 1; _local6.startTime = 0; _local6.loops = 0; _local6.pausedByAll = false; this._soundsDict[_arg2] = _local6; this._sounds.push(_local6); return (true); } public function unmuteAllSounds():void{ var _local2:String; var _local3:Object; var _local4:SoundTransform; var _local1:int; while (_local1 < this._sounds.length) { _local2 = this._sounds[_local1].name; _local3 = this._soundsDict[_local2]; _local4 = _local3.channel.soundTransform; _local4.volume = _local3.volume; _local3.channel.soundTransform = _local4; _local1++; }; } public function isSoundPausedByAll(_arg1:String):Boolean{ return (this._soundsDict[_arg1].pausedByAll); } public function getSoundObject(_arg1:String):Sound{ return (this._soundsDict[_arg1].sound); } public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{ var $name = _arg1; var $volume = _arg2; var $startTime = _arg3; var $loops = _arg4; var snd:Object = this._soundsDict[$name]; snd.volume = $volume; snd.startTime = $startTime; snd.loops = $loops; if (snd.paused){ try { snd.channel = snd.sound.play(snd.position, snd.loops, new SoundTransform(snd.volume)); } catch(e:Error) { }; } else { try { snd.channel = snd.sound.play($startTime, snd.loops, new SoundTransform(snd.volume)); } catch(e:Error) { }; }; snd.paused = false; } public static function getInstance():SoundManager{ if (SoundManager._instance == null){ SoundManager._allowInstance = true; SoundManager._instance = new (SoundManager); SoundManager._allowInstance = false; }; return (SoundManager._instance); } } }//package com.csharks.juwalbose.utils
Section 32
//Tick (com.csharks.juwalbose.utils.Tick) package com.csharks.juwalbose.utils { import flash.utils.*; public class Tick { public static var fps:uint = 0; public static var timeMultiplier:Number = 0; public static var secs:uint = getTimer(); public static var fps_txt:uint = 0; private static var oldtime:int = 0; public static function run():void{ timeMultiplier = ((getTimer() - oldtime) / 1000); fps++; if ((getTimer() - secs) > 1000){ secs = getTimer(); fps_txt = fps; fps = 0; }; oldtime = getTimer(); } public static function reset():void{ oldtime = getTimer(); } } }//package com.csharks.juwalbose.utils
Section 33
//Grid (com.csharks.vinod.pathfinding.Grid) package com.csharks.vinod.pathfinding { import flash.geom.*; public class Grid { private var _nodes:Object; public function Grid(){ _nodes = new Object(); } public function findPath(_arg1:String, _arg2:String):Path{ var searchPath:Path; var searchNode:Node; var j:int; var priority:Function; var branch:Path; var expandNode:String; var prevCoord:Node; var currentCoord:Node; var goalCoord:Node; var shortest:Number; var startId = _arg1; var goalId = _arg2; var stack:Array = new Array(new Path(0, 0, [startId])); var best:Path = new Path(); var reachedNodes:Object = new Object(); var cyc:int; while (stack.length > 0) { searchPath = (stack.shift() as Path); searchNode = getNodeById(searchPath.lastElement); j = 0; while (j < searchNode.numNeighbors) { branch = searchPath.clone(); expandNode = searchNode.getNeighbor(j); if (!branch.containsNode(expandNode)){ prevCoord = getNodeById(branch.lastElement); currentCoord = getNodeById(expandNode); goalCoord = getNodeById(goalId); branch.addNode(expandNode); branch.length = (branch.length + Point.distance(prevCoord, currentCoord)); branch.bestCase = (branch.length + Point.distance(currentCoord, goalCoord)); shortest = reachedNodes[expandNode]; if (isNaN(shortest)){ shortest = branch.length; }; if ((((branch.length <= shortest)) && (((!(best.hasLength)) || ((branch.bestCase < best.length)))))){ reachedNodes[expandNode] = branch.length; if (expandNode == goalId){ best = branch; } else { stack.push(branch); }; }; }; j = (j + 1); }; priority = function (_arg1:Path, _arg2:Path):int{ if (_arg1.bestCase < _arg2.bestCase){ return (-1); }; if (_arg1.bestCase > _arg2.bestCase){ return (1); }; return (0); }; stack.sort(priority); cyc = (cyc + 1); }; return (best); } public function getNodeById(_arg1:String):Node{ if (_nodes[_arg1] != undefined){ return ((_nodes[_arg1] as Node)); }; return (null); } public function parseXML(_arg1:XML):void{ var _local2:*; var _local3:Node; for each (_local2 in _arg1.children()) { _local3 = new Node(_local2.@id, _local2.@x, _local2.@y); _local3.parseNeighbors(_local2.@join); _nodes[_local3.id] = _local3; }; } public function getPathPoints(_arg1:String, _arg2:String):Array{ var _local6:Object; var _local3:Path = findPath(_arg1, _arg2); var _local4:Array = []; var _local5:int; while (_local5 < _local3.computedPath.length) { _local6 = {id:_local3.computedPath[_local5], x:getNodeById(_local3.computedPath[_local5]).x, y:getNodeById(_local3.computedPath[_local5]).y}; _local4.push(_local6); _local5++; }; return (_local4); } } }//package com.csharks.vinod.pathfinding
Section 34
//Node (com.csharks.vinod.pathfinding.Node) package com.csharks.vinod.pathfinding { import flash.geom.*; public class Node extends Point { private var _neighbors:Array; public var id:String;// = "" public function Node(_arg1:String="", _arg2:int=0, _arg3:int=0){ super(_arg2, _arg3); id = _arg1; _neighbors = new Array(); } public function expandNamespace(_arg1:String):void{ var _local2:String; id = (id + _arg1); for each (_local2 in _neighbors) { _local2 = (_local2 + _arg1); }; } public function getNeighbor(_arg1:int):String{ if ((((_arg1 >= 0)) && ((_arg1 < _neighbors.length)))){ return (_neighbors[_arg1]); }; return (null); } public function get numNeighbors():int{ return (_neighbors.length); } override public function toString():String{ return ((((((((("[Node] id:" + id) + ", x:") + x) + ", y:") + y) + ", neighbors:(") + _neighbors) + ")")); } public function parseNeighbors(_arg1:String):void{ var _local2:String; for each (_local2 in _arg1.split(",")) { addNeighbor(_local2); }; } public function containsNeighbor(_arg1:String):Boolean{ return ((_neighbors.indexOf(_arg1) > -1)); } public function addNeighbor(_arg1:String):void{ if (((!(containsNeighbor(_arg1))) && (!((_arg1 == ""))))){ _neighbors.push(_arg1); }; } public function cloneNode():Node{ var _local1:Node = new Node(id, x, y); _local1.parseNeighbors(_neighbors.join(",")); return (_local1); } } }//package com.csharks.vinod.pathfinding
Section 35
//Path (com.csharks.vinod.pathfinding.Path) package com.csharks.vinod.pathfinding { public class Path { private var _path:Array; public var length:int;// = -1 public var nodes:Array; public var bestCase:int;// = -1 public function Path(_arg1:Number=-1, _arg2:Number=-1, _arg3:Array=null){ length = _arg1; bestCase = _arg2; _path = _arg3; } public function get hasLength():Boolean{ return (((length + bestCase) >= 0)); } public function containsNode(_arg1:String):Boolean{ return ((_path.indexOf(_arg1) > -1)); } public function addNode(_arg1:String):void{ if (!containsNode(_arg1)){ _path.push(_arg1); }; } public function get lastElement():String{ return (_path.slice(-1)[0]); } public function get computedPath():Array{ return (_path); } public function destroy():void{ _path = null; nodes = null; } public function toString():String{ return ((((("[Path] length:" + length) + ", nodes:(") + _path) + ")")); } public function clone():Path{ return (new Path(length, bestCase, _path.slice())); } } }//package com.csharks.vinod.pathfinding
Section 36
//CreatorObject (com.csharks.vinod.CreatorObject) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.inruntime.utils.*; public class CreatorObject extends MovieClip implements iObject { private var Kid1:Class; private var Kid2:Class; public var state:StateMachine; public var ready:Boolean;// = true private var object_mc:MovieClip; public var objectId:String; public var afterCreated:String; private var gameVars:Global; public function CreatorObject(_arg1:String){ Kid1 = CreatorObject_Kid1; Kid2 = CreatorObject_Kid2; super(); gameVars = Global.getInstance(); this.objectId = _arg1; if (_arg1 == "kid1"){ object_mc = new Kid1(); object_mc.scaleX = (object_mc.scaleX * -1); } else { if (_arg1 == "kid2"){ object_mc = new Kid2(); }; }; state = new StateMachine(); state.addState("idle", {enter:idle}); state.addState("work", {enter:work}); state.addState("create", {enter:create}); state.addState("absent", {enter:absent}); state.initialState = "absent"; state.onStateChange = removeListeners; } override public function get y():Number{ return (object_mc.y); } public function get clip():MovieClip{ return (object_mc); } private function work(_arg1:Object):void{ var d:uint; var o = _arg1; object_mc.gotoAndPlay("work"); dispatchEvent(new Event("workStarted")); ready = false; object_mc.addEventListener(Event.ENTER_FRAME, checkForRepeat, false, 0, true); d = setTimeout(function ():void{ clearTimeout(d); if (Math.random() < gameVars.probability[objectId]){ state.changeState("create"); } else { ready = true; dispatchEvent(new Event("problemRemoved")); state.changeState("absent"); }; }, gameVars.timeNeeded[objectId]); } private function idle(_arg1:Object):void{ object_mc.gotoAndStop("idle"); } public function reset(_arg1=null):void{ state.changeState("absent"); } private function removeListeners():void{ if (object_mc.hasEventListener(Event.ENTER_FRAME)){ object_mc.removeEventListener(Event.ENTER_FRAME, checkForRepeat); }; } private function checkForRepeat(_arg1:Event):void{ if (_arg1.currentTarget.currentLabel == "workRepeat"){ object_mc.gotoAndPlay("work"); } else { if (_arg1.currentTarget.currentLabel == "created"){ dispatchEvent(new Event("created")); if (afterCreated){ state.changeState(afterCreated); } else { state.changeState("absent"); }; }; }; } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } override public function get x():Number{ return (object_mc.x); } private function absent(_arg1:Object):void{ object_mc.gotoAndStop("absent"); } private function create(_arg1:Object):void{ object_mc.gotoAndPlay("create"); object_mc.addEventListener(Event.ENTER_FRAME, checkForRepeat, false, 0, true); } } }//package com.csharks.vinod
Section 37
//CreatorObject_Kid1 (com.csharks.vinod.CreatorObject_Kid1) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class CreatorObject_Kid1 extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 38
//CreatorObject_Kid2 (com.csharks.vinod.CreatorObject_Kid2) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class CreatorObject_Kid2 extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 39
//DroppedObject (com.csharks.vinod.DroppedObject) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import flash.filters.*; import com.inruntime.utils.*; public class DroppedObject extends MovieClip { public var objectId:String; private var _parent; public var state:StateMachine; private var object_mc:MovieClip; private var WashedCloth:Class; public var ready:Boolean;// = true private var stopWatch:StopWatch; private var _target:String; private var PenguinToy:Class; private var t:Timer; public var failed:Boolean;// = false private var gameVars:Global; private var BallToy:Class; public function DroppedObject(_arg1:String, _arg2:String=null, _arg3=null){ WashedCloth = DroppedObject_WashedCloth; PenguinToy = DroppedObject_PenguinToy; BallToy = DroppedObject_BallToy; super(); gameVars = Global.getInstance(); this.objectId = _arg1; this._parent = _arg3; this._target = _arg2; switch (_arg1){ case "washedCloth": object_mc = new WashedCloth(); break; case "penguinToy": object_mc = new PenguinToy(); break; case "ballToy": object_mc = new BallToy(); break; }; state = new StateMachine(); state.addState("idle", {enter:idle}); state.addState("wrongState", {enter:wrong}); state.addState("absent", {enter:absent}); state.initialState = "idle"; } override public function get y():Number{ return (object_mc.y); } override public function get x():Number{ return (object_mc.x); } private function toggleGlow(_arg1:TimerEvent):void{ if (object_mc.filters.length == 0){ object_mc.filters = [new DropShadowFilter(0, 45, 0xFF0000, 1, 5, 5, 10, 1)]; } else { object_mc.filters = []; }; } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } public function glowOn():void{ if (t == null){ t = new Timer(500); object_mc.buttonMode = true; t.addEventListener(TimerEvent.TIMER, toggleGlow, false, 0, true); t.reset(); t.start(); }; } override public function get width():Number{ return (object_mc.width); } override public function get scaleX():Number{ return (object_mc.scaleX); } public function jobFinished():void{ var d:uint; var thisScore:int; if (objectId != "washedCloth"){ ready = false; d = setTimeout(function ():void{ clearTimeout(d); ready = true; }, 3000); dispatchEvent(new Event("problemRemoved")); thisScore = int(Utils.minMaxPerc(gameVars.globalWait, 0, stopWatch.timeTaken, 1, gameVars.scores["kid"])); new VapourText().showText(("+" + thisScore), object_mc); gameVars.levelScore = (gameVars.levelScore + thisScore); }; state.changeState("idle"); } public function get clip():MovieClip{ return (object_mc); } override public function set width(_arg1:Number):void{ object_mc.width = _arg1; } private function idle(_arg1:Object):void{ object_mc.gotoAndStop("idle"); glowOff(); if (stopWatch){ stopWatch.dispose(); stopWatch = null; }; } override public function set height(_arg1:Number):void{ object_mc.height = _arg1; } public function removeListeners():void{ if (object_mc.hasEventListener(MouseEvent.CLICK)){ object_mc.removeEventListener(MouseEvent.CLICK, clicked); }; if (t){ t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; } public function reset(_arg1=null):void{ var d:uint; var e = _arg1; failed = true; ready = false; d = setTimeout(function ():void{ clearTimeout(d); ready = true; }, 3000); dispatchEvent(new Event("problemRemoved")); gameVars.missedItems++; removeListeners(); state.changeState("idle"); } private function wrong(_arg1:Object):void{ object_mc.gotoAndStop("wrongState"); glowOn(); failed = false; stopWatch = new StopWatch(objectId); object_mc.addChild(stopWatch.clip); stopWatch.addEventListener("timerComplete", reset, false, 0, true); object_mc.addEventListener(MouseEvent.CLICK, clicked, false, 0, true); } private function clicked(_arg1:MouseEvent):void{ glowOff(); SoundManager.getInstance().playSound("clickSound"); _arg1.currentTarget.removeEventListener(MouseEvent.CLICK, clicked); if (objectId == "washedCloth"){ _parent[_target].glowOn(); gameVars.itemsInHand.push(objectId); gameVars.commands.push("goto|node_w0", "turn|right", "washedCloth|0"); } else { if (objectId == "penguinToy"){ gameVars.commands.push("goto|node_k2", "turn|up", "penguinToy|0"); } else { if (objectId == "ballToy"){ gameVars.commands.push("goto|node_k3", "turn|right", "ballToy|0"); }; }; }; } public function glowOff():void{ object_mc.filters = []; if (t){ object_mc.buttonMode = false; t.reset(); t.stop(); t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; t = null; } override public function set scaleX(_arg1:Number):void{ object_mc.scaleX = _arg1; } override public function get height():Number{ return (object_mc.height); } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } private function absent(_arg1:Object):void{ object_mc.gotoAndStop("absent"); glowOff(); } } }//package com.csharks.vinod
Section 40
//DroppedObject_BallToy (com.csharks.vinod.DroppedObject_BallToy) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class DroppedObject_BallToy extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 41
//DroppedObject_PenguinToy (com.csharks.vinod.DroppedObject_PenguinToy) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class DroppedObject_PenguinToy extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 42
//DroppedObject_WashedCloth (com.csharks.vinod.DroppedObject_WashedCloth) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class DroppedObject_WashedCloth extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 43
//FoodSystem (com.csharks.vinod.FoodSystem) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import com.inruntime.utils.*; public class FoodSystem extends MovieClip { public var objectId:String;// = "foodSystem" private var fridge:SimpleObject; private var timeTaken:Number; private var table:SimpleObject; private var waitTimer:Timer; public var state:StateMachine; private var stove:SimpleObject; private var washBasin:SimpleObject; public var clickState:StateMachine; private var stopWatch:MovieClip; public var failed:Boolean;// = false private var gameVars:Global; public function FoodSystem(_arg1, _arg2, _arg3, _arg4){ gameVars = Global.getInstance(); this.table = _arg1; this.washBasin = _arg2; this.fridge = _arg3; this.stove = _arg4; state = new StateMachine(); state.addState("idle"); state.addState("platesOnStove"); state.addState("openFridge"); state.addState("rawOnStove"); state.addState("closeFridge"); state.addState("openFood"); state.addState("platesOnTable"); state.addState("eating"); state.addState("platesOnWash"); state.addState("washingPlate"); state.addState("afterWash"); state.response.add(stateChanged); state.initialState = "idle"; clickState = new StateMachine(); clickState.addState("idle"); clickState.addState("platesToStove"); clickState.addState("openFridge"); clickState.addState("fillVessel"); clickState.addState("closeFridge"); clickState.addState("openFood"); clickState.addState("platesToTable"); clickState.addState("foodToTable"); clickState.addState("washReady"); clickState.addState("washPlates"); clickState.response.add(clickStateChanged); clickState.initialState = "idle"; } public function init2():void{ clickState.changeState("openFood"); } private function clickStateChanged():void{ switch (arguments[1]){ case "idle": washBasin.state.changeState("idle"); table.state.changeState("idle"); fridge.state.changeState("idle"); stove.state.changeState("idle"); break; case "platesToStove": washBasin.glowOn(); washBasin.clip.buttonMode = true; removeListeners(); washBasin.clip.addEventListener(MouseEvent.CLICK, washBasinClicked, false, 0, true); break; case "openFridge": fridge.glowOn(); fridge.clip.buttonMode = true; removeListeners(); fridge.clip.addEventListener(MouseEvent.CLICK, fridgeClicked, false, 0, true); break; case "fillVessel": stove.glowOn(); stove.clip.buttonMode = true; removeListeners(); stove.clip.addEventListener(MouseEvent.CLICK, stoveClicked, false, 0, true); break; case "closeFridge": fridge.glowOn(); fridge.clip.buttonMode = true; removeListeners(); fridge.clip.addEventListener(MouseEvent.CLICK, fridgeClicked, false, 0, true); break; case "openFood": stove.glowOn(); stove.clip.buttonMode = true; removeListeners(); stove.clip.addEventListener(MouseEvent.CLICK, stoveClicked, false, 0, true); break; case "platesToTable": table.glowOn(); table.clip.buttonMode = true; removeListeners(); table.clip.addEventListener(MouseEvent.CLICK, tableClicked, false, 0, true); break; case "foodToTable": stove.glowOn(); stove.clip.buttonMode = true; removeListeners(); stove.clip.addEventListener(MouseEvent.CLICK, stoveClicked, false, 0, true); break; case "washReady": table.glowOn(); table.clip.buttonMode = true; removeListeners(); table.clip.addEventListener(MouseEvent.CLICK, tableClicked, false, 0, true); break; case "washPlates": washBasin.glowOn(); washBasin.clip.buttonMode = true; removeListeners(); washBasin.clip.addEventListener(MouseEvent.CLICK, washBasinClicked, false, 0, true); break; }; } public function jobFinished():void{ dispatchEvent(new Event("problemRemoved")); var _local1:int = int(Utils.minMaxPerc(gameVars.globalWait, 0, timeTaken, 1, gameVars.scores["foodPreparation"])); new VapourText().showText(("+" + _local1), washBasin); gameVars.levelScore = (gameVars.levelScore + _local1); state.changeState("afterWash"); } public function init():void{ failed = false; clickState.changeState("platesToStove"); stopWatch = new StopWatch("foodSystem"); washBasin.addChild(stopWatch.clip); stopWatch.addEventListener("timerComplete", cancelRequest, false, 0, true); } private function stoveClicked(_arg1:MouseEvent):void{ removeListeners(); stove.glowOff(); stove.clip.buttonMode = false; SoundManager.getInstance().playSound("clickSound"); switch (clickState.state){ case "fillVessel": gameVars.commands.push("goto|node_f2", "turn|left", "fillVessel|0"); clickState.changeState("closeFridge"); break; case "openFood": gameVars.commands.push("goto|node_f2", "turn|left", "openFood|0"); clickState.changeState("platesToTable"); break; case "foodToTable": gameVars.commands.push("goto|node_f2", "turn|left", "foodToTable|0"); break; }; } public function removeListeners():void{ washBasin.clip.removeEventListener(MouseEvent.CLICK, washBasinClicked); stove.clip.removeEventListener(MouseEvent.CLICK, stoveClicked); fridge.clip.removeEventListener(MouseEvent.CLICK, fridgeClicked); table.clip.removeEventListener(MouseEvent.CLICK, tableClicked); } private function washBasinClicked(_arg1:MouseEvent):void{ removeListeners(); washBasin.glowOff(); washBasin.clip.buttonMode = false; SoundManager.getInstance().playSound("clickSound"); switch (clickState.state){ case "platesToStove": stopWatch.removeEventListener("timerComplete", cancelRequest); gameVars.commands.push("goto|node_f3", "turn|down", "platesToStove|0"); clickState.changeState("openFridge"); break; case "washPlates": gameVars.commands.push("goto|node_f3", "turn|down", "washPlates|0"); break; }; } private function stateChanged():void{ var thisReqTime:Number; var d:uint; var d2:uint; var d3:uint; var arguments = arguments; switch (arguments[1]){ case "idle": washBasin.state.changeState("idle"); table.state.changeState("idle"); fridge.state.changeState("idle"); stove.state.changeState("idle"); washBasin.glowOff(); washBasin.clip.buttonMode = true; break; case "platesOnStove": washBasin.state.changeState("noVessel"); stove.state.changeState("emptyVessel"); if (stopWatch){ timeTaken = stopWatch.timeTaken; stopWatch.dispose(); stopWatch = null; }; break; case "openFridge": fridge.state.changeState("opened"); break; case "rawOnStove": stove.state.changeState("cookingStarted"); thisReqTime = gameVars.timeNeeded[arguments[1]]; if (stove.status == "new"){ thisReqTime = (thisReqTime / 2); }; d = setTimeout(function ():void{ clearTimeout(d); dispatchEvent(new Event("cookingFinished")); }, thisReqTime); break; case "closeFridge": fridge.state.changeState("idle"); break; case "openFood": stove.state.changeState("cooked"); break; case "platesOnTable": stove.state.changeState("ready"); table.state.changeState("plate"); break; case "eating": table.state.changeState("food"); d2 = setTimeout(function ():void{ clearTimeout(d2); table.state.changeState("eaten"); dispatchEvent(new Event("eatingFinished")); }, gameVars.timeNeeded[arguments[1]]); break; case "platesOnWash": stove.state.changeState("idle"); table.state.changeState("idle"); washBasin.state.changeState("beforeWash"); break; case "afterWash": d3 = setTimeout(function ():void{ clearTimeout(d3); gameVars.foodBusy = false; state.changeState("idle"); }, gameVars.timeNeeded[arguments[1]]); break; }; } private function fridgeClicked(_arg1:MouseEvent):void{ removeListeners(); fridge.glowOff(); fridge.clip.buttonMode = false; SoundManager.getInstance().playSound("clickSound"); switch (clickState.state){ case "openFridge": gameVars.commands.push("goto|node_f5", "turn|right", "openFridge|0"); clickState.changeState("fillVessel"); break; case "closeFridge": gameVars.commands.push("goto|node_f5", "turn|right", "closeFridge|0"); break; }; } public function init3():void{ clickState.changeState("washReady"); } private function cancelRequest(_arg1=null):void{ failed = true; gameVars.foodBusy = false; _arg1.currentTarget.removeEventListener(TimerEvent.TIMER, cancelRequest); stopWatch.dispose(); removeListeners(); state.changeState("idle"); dispatchEvent(new Event("problemRemoved")); } private function tableClicked(_arg1:MouseEvent):void{ removeListeners(); table.glowOff(); table.clip.buttonMode = false; SoundManager.getInstance().playSound("clickSound"); switch (clickState.state){ case "platesToTable": gameVars.commands.push("goto|node_f1", "turn|right", "platesToTable|0"); clickState.changeState("foodToTable"); break; case "washReady": gameVars.commands.push("goto|node_f1", "turn|right", "platesToWash|0"); clickState.changeState("washPlates"); break; }; } } }//package com.csharks.vinod
Section 44
//InteractiveCreatorObject (com.csharks.vinod.InteractiveCreatorObject) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import flash.filters.*; import com.inruntime.utils.*; public class InteractiveCreatorObject extends MovieClip { public var objectId:String; private var WashingMachine:Class; private var gameVars:Global; public var state:StateMachine; private var object_mc:MovieClip; private var mode:uint; public var status:String;// = "old" private var t:Timer; public var failed:Boolean;// = false private var requiredObject:String; public function InteractiveCreatorObject(_arg1:String, _arg2:String){ WashingMachine = InteractiveCreatorObject_WashingMachine; super(); gameVars = Global.getInstance(); this.objectId = _arg1; this.requiredObject = _arg2; if (_arg1 == "washingMachine"){ object_mc = new WashingMachine(); }; state = new StateMachine(); state.onStateChange = removeListeners; state.addState("idle", {enter:idle}); state.addState("work", {enter:work}); state.addState("finished", {enter:finished}); state.initialState = "idle"; } override public function get y():Number{ return (object_mc.y); } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } public function glowOn():void{ if (t == null){ t = new Timer(500); object_mc.buttonMode = true; t.addEventListener(TimerEvent.TIMER, toggleGlow, false, 0, true); t.reset(); t.start(); }; } public function reset():void{ state.changeState("idle"); } private function toggleGlow(_arg1:TimerEvent):void{ if (object_mc.filters.length == 0){ object_mc.filters = [new DropShadowFilter(0, 45, 0xFF0000, 1, 5, 5, 10, 1)]; } else { object_mc.filters = []; }; } private function idle(_arg1:Object):void{ object_mc.gotoAndStop("idle"); object_mc.addEventListener(MouseEvent.CLICK, clicked, false, 0, true); } public function get clip():MovieClip{ return (object_mc); } private function work(_arg1:Object):void{ var d:uint; var o = _arg1; dispatchEvent(new Event("problemRemoved")); object_mc.removeEventListener(MouseEvent.CLICK, clicked); gameVars.itemsInHand.splice(gameVars.itemsInHand.indexOf(requiredObject), 1); var thisReqTime:Number = gameVars.timeNeeded[objectId]; if (status == "new"){ thisReqTime = (thisReqTime / 2); SoundManager.getInstance().playSound("washSound", 0.6, 0, 1); } else { SoundManager.getInstance().playSound("washSound", 0.6, 0, 3); }; d = setTimeout(function ():void{ clearTimeout(d); dispatchEvent(new Event("workCompleted")); state.changeState("finished"); }, thisReqTime); object_mc.addEventListener(Event.ENTER_FRAME, checkForRepeat, false, 0, true); object_mc.gotoAndPlay("work"); } private function removeListeners():void{ if (object_mc.hasEventListener(Event.ENTER_FRAME)){ object_mc.removeEventListener(Event.ENTER_FRAME, checkForRepeat); }; if (object_mc.hasEventListener(MouseEvent.CLICK)){ object_mc.removeEventListener(MouseEvent.CLICK, clicked); }; if (t){ t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; } private function checkForRepeat(_arg1:Event):void{ if (_arg1.currentTarget.currentLabel == "workRepeat"){ object_mc.gotoAndPlay("work"); }; } private function clicked(_arg1:MouseEvent):void{ glowOff(); SoundManager.getInstance().playSound("clickSound"); if (requiredObject != null){ if (gameVars.itemsInHand.indexOf(requiredObject) != -1){ if (state.state == "idle"){ switch (objectId){ case "washingMachine": gameVars.commands.push("goto|node_w0", "turn|right", "washingMachine|0"); break; default: break; }; }; }; }; } public function glowOff():void{ object_mc.filters = []; if (t){ object_mc.buttonMode = false; t.reset(); t.stop(); t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; t = null; } public function baseStatus(_arg1:String):void{ object_mc.machine_mc.gotoAndStop(_arg1); status = _arg1; } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } override public function get x():Number{ return (object_mc.x); } private function finished(_arg1:Object):void{ var o = _arg1; object_mc.addFrameScript((object_mc.totalFrames - 1), function ():void{ state.changeState("idle"); }); object_mc.gotoAndStop("finished"); } } }//package com.csharks.vinod
Section 45
//InteractiveCreatorObject_WashingMachine (com.csharks.vinod.InteractiveCreatorObject_WashingMachine) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveCreatorObject_WashingMachine extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 46
//InteractiveObject (com.csharks.vinod.InteractiveObject) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import flash.filters.*; import com.inruntime.utils.*; public class InteractiveObject extends MovieClip implements iObject { private var Books:Class; public var state:StateMachine; private var timeTaken:Number;// = 10 private var object_mc:MovieClip; private var Bucket:Class; private var BedGirl:Class; private var MirrorGirl:Class; public var ready:Boolean;// = true public var objectId:String; public var failed:Boolean;// = false public var gameVars:Global; private var Man:Class; private var GrandMother:Class; private var FlowerVase:Class; private var stopWatch:MovieClip; private var GrandFather:Class; private var TelephoneClass:Class; private var t:Timer; public function InteractiveObject(_arg1:String){ TelephoneClass = InteractiveObject_TelephoneClass; BedGirl = InteractiveObject_BedGirl; MirrorGirl = InteractiveObject_MirrorGirl; Books = InteractiveObject_Books; Bucket = InteractiveObject_Bucket; GrandMother = InteractiveObject_GrandMother; GrandFather = InteractiveObject_GrandFather; Man = InteractiveObject_Man; FlowerVase = InteractiveObject_FlowerVase; super(); this.objectId = _arg1; gameVars = Global.getInstance(); if (_arg1 == "telephone"){ object_mc = new TelephoneClass(); } else { if (_arg1 == "bedGirl"){ object_mc = new BedGirl(); } else { if (_arg1 == "mirrorGirl"){ object_mc = new MirrorGirl(); } else { if (_arg1 == "books"){ object_mc = new Books(); } else { if (_arg1 == "bucket"){ object_mc = new Bucket(); } else { if (_arg1 == "grandMother"){ object_mc = new GrandMother(); } else { if (_arg1 == "grandFather"){ object_mc = new GrandFather(); } else { if (_arg1 == "man"){ object_mc = new Man(); } else { if (_arg1 == "flowerVase"){ object_mc = new FlowerVase(); }; }; }; }; }; }; }; }; }; state = new StateMachine(); state.onStateChange = removeListeners; state.addState("idle", {enter:idle}); state.addState("pre-messed", {enter:premessed}); state.addState("messed", {enter:messed}); state.addState("clearing", {enter:clearing}); state.addState("finished", {enter:finished}); state.initialState = "idle"; } private function toggleGlow(_arg1:TimerEvent):void{ if (object_mc.filters.length == 0){ object_mc.filters = [new DropShadowFilter(0, 45, 0xFF0000, 1, 5, 5, 10, 1)]; } else { object_mc.filters = []; }; } override public function set width(_arg1:Number):void{ object_mc.width = _arg1; } private function messed(_arg1:Object):void{ object_mc.gotoAndPlay("messed"); glowOn(); if (objectId == "telephone"){ SoundManager.getInstance().playSound("ringSound", 0.5, 0, 99); } else { if (objectId == "bucket"){ SoundManager.getInstance().playSound("splashSound"); }; }; stopWatch = new StopWatch(objectId); object_mc.addChild(stopWatch.clip); stopWatch.addEventListener("timerComplete", reset, false, 0, true); object_mc.addEventListener(MouseEvent.CLICK, clicked, false, 0, true); object_mc.addEventListener(Event.ENTER_FRAME, checkForRepeat, false, 0, true); } public function removeListeners():void{ if (object_mc.hasEventListener(Event.ENTER_FRAME)){ object_mc.removeEventListener(Event.ENTER_FRAME, checkForRepeat); }; if (object_mc.hasEventListener(MouseEvent.CLICK)){ object_mc.removeEventListener(MouseEvent.CLICK, clicked); }; if (t){ t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; } private function checkForRepeat(_arg1:Event):void{ if (_arg1.currentTarget.currentLabel == "messedRepeat"){ object_mc.gotoAndPlay("messed"); } else { if (_arg1.currentTarget.currentLabel == "clearingRepeat"){ object_mc.gotoAndPlay("clearing"); }; }; } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } private function clicked(_arg1:MouseEvent):void{ glowOff(); SoundManager.getInstance().playSound("clickSound"); object_mc.removeEventListener(MouseEvent.CLICK, clicked); if (state.state == "messed"){ switch (objectId){ case "telephone": gameVars.commands.push("goto|node_p0", "turn|left", "phone|0"); break; case "bedGirl": gameVars.commands.push("goto|node_g6", "turn|right", "bed|0"); break; case "mirrorGirl": gameVars.commands.push("goto|node_g2", "turn|right", "mirror|0"); break; case "books": gameVars.commands.push("goto|node_g3", "turn|right", "book|0"); break; case "bucket": gameVars.commands.push("goto|node_w0", "turn|right", "bucket|0"); break; case "grandMother": gameVars.commands.push("goto|node_d2", "turn|up", "grandMother|0"); break; case "grandFather": gameVars.commands.push("goto|node_f0", "turn|left", "grandFather|0"); break; case "man": gameVars.commands.push("goto|node_f0", "turn|down", "man|0"); break; case "flowerVase": gameVars.commands.push("goto|node_v0", "turn|left", "flower|0"); break; default: break; }; }; } override public function set scaleX(_arg1:Number):void{ object_mc.scaleX = _arg1; } override public function get height():Number{ return (object_mc.height); } public function glowOff():void{ object_mc.filters = []; if (t){ object_mc.buttonMode = false; t.reset(); t.stop(); t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; t = null; } public function glowOn():void{ if (t == null){ t = new Timer(500); object_mc.buttonMode = true; t.addEventListener(TimerEvent.TIMER, toggleGlow, false, 0, true); t.reset(); t.start(); }; } override public function get width():Number{ return (object_mc.width); } override public function get scaleX():Number{ return (object_mc.scaleX); } public function idle(_arg1:Object):void{ object_mc.gotoAndStop("idle"); glowOff(); } override public function set height(_arg1:Number):void{ object_mc.height = _arg1; } public function get clip():MovieClip{ return (object_mc); } public function jobFinished():void{ var thisScore:int = int(Utils.minMaxPerc(gameVars.globalWait, 0, timeTaken, 1, gameVars.scores[objectId])); new VapourText().showText(("+" + thisScore), object_mc, gameVars.clockPosition[objectId].x, gameVars.clockPosition[objectId].y, ((objectId)=="man") ? true : false); gameVars.levelScore = (gameVars.levelScore + thisScore); state.changeState("finished"); ready = false; var d:uint = setTimeout(function ():void{ var d:*; clearTimeout(d); d = setTimeout(function ():void{ clearTimeout(d); ready = true; }, 5000); dispatchEvent(new Event("problemRemoved")); }, 2000); } public function reset(_arg1=null):void{ var d:uint; var e = _arg1; if (stopWatch){ stopWatch.dispose(); stopWatch = null; }; removeListeners(); failed = true; ready = false; d = setTimeout(function ():void{ clearTimeout(d); ready = true; }, 5000); if (objectId == "telephone"){ SoundManager.getInstance().stopSound("ringSound"); }; dispatchEvent(new Event("problemRemoved")); state.changeState("idle"); } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } private function finished(_arg1:Object):void{ var o = _arg1; object_mc.gotoAndPlay("finished"); object_mc.addFrameScript((object_mc.totalFrames - 1), function ():void{ state.changeState("idle"); }); } private function clearing(_arg1:Object):void{ if (stopWatch){ timeTaken = stopWatch.timeTaken; stopWatch.dispose(); stopWatch = null; }; if (objectId == "telephone"){ SoundManager.getInstance().stopSound("ringSound"); }; object_mc.gotoAndPlay("clearing"); object_mc.addEventListener(Event.ENTER_FRAME, checkForRepeat, false, 0, true); } override public function get x():Number{ return (object_mc.x); } override public function get y():Number{ return (object_mc.y); } private function premessed(_arg1:Object):void{ var d:uint; var o = _arg1; failed = false; object_mc.gotoAndStop("pre-messed"); d = setTimeout(function ():void{ clearTimeout(d); state.changeState("messed"); }, gameVars.timeNeeded[objectId]); } } }//package com.csharks.vinod
Section 47
//InteractiveObject_BedGirl (com.csharks.vinod.InteractiveObject_BedGirl) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_BedGirl extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 48
//InteractiveObject_Books (com.csharks.vinod.InteractiveObject_Books) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_Books extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 49
//InteractiveObject_Bucket (com.csharks.vinod.InteractiveObject_Bucket) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_Bucket extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 50
//InteractiveObject_FlowerVase (com.csharks.vinod.InteractiveObject_FlowerVase) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_FlowerVase extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 51
//InteractiveObject_GrandFather (com.csharks.vinod.InteractiveObject_GrandFather) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_GrandFather extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 52
//InteractiveObject_GrandMother (com.csharks.vinod.InteractiveObject_GrandMother) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_GrandMother extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 53
//InteractiveObject_Man (com.csharks.vinod.InteractiveObject_Man) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_Man extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 54
//InteractiveObject_MirrorGirl (com.csharks.vinod.InteractiveObject_MirrorGirl) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_MirrorGirl extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 55
//InteractiveObject_TelephoneClass (com.csharks.vinod.InteractiveObject_TelephoneClass) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class InteractiveObject_TelephoneClass extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 56
//iObject (com.csharks.vinod.iObject) package com.csharks.vinod { import flash.display.*; public interface iObject { function get clip():MovieClip; function reset(_arg1=null):void; } }//package com.csharks.vinod
Section 57
//MusicManager (com.csharks.vinod.MusicManager) package com.csharks.vinod { import flash.events.*; import com.greensock.*; import flash.media.*; import com.carlcalderon.arthropod.*; public class MusicManager { private var sceneMusic:Sound; private var smc:SoundChannel; private var SceneMusic:Class; private var st:SoundTransform; private var gameMusic:Sound; private var playing:String; private var gt:SoundTransform; private var GameMusic:Class; private var gmc:SoundChannel; public function MusicManager(){ GameMusic = MusicManager_GameMusic; SceneMusic = MusicManager_SceneMusic; super(); sceneMusic = new SceneMusic(); gameMusic = new GameMusic(); gt = new SoundTransform(); st = new SoundTransform(); playSceneSound(); } private function stopSceneSound():void{ TweenLite.to(st, 2, {volume:0, onUpdate:changesmcVolume}); } private function changegmcVolume():void{ gmc.soundTransform = gt; if (gt.volume <= 0){ gmc.stop(); gmc.removeEventListener(Event.SOUND_COMPLETE, repeatGmc); gmc = null; }; } private function changesmcVolume():void{ smc.soundTransform = st; if (st.volume <= 0){ smc.stop(); smc.removeEventListener(Event.SOUND_COMPLETE, repeatSmc); smc = null; }; } private function stopGameSound():void{ TweenLite.to(gt, 2, {volume:0, onUpdate:changegmcVolume}); } private function repeatGmc(_arg1:Event):void{ gmc = gameMusic.play(); gmc.addEventListener(Event.SOUND_COMPLETE, repeatGmc); } public function playGameSound():void{ Debug.log(("playing " + playing)); if (playing == "game"){ return; }; if (playing == "scene"){ stopSceneSound(); }; if (!gmc){ gmc = gameMusic.play(); gmc.addEventListener(Event.SOUND_COMPLETE, repeatGmc); }; playing = "game"; gt.volume = 0; gmc.soundTransform = gt; TweenLite.to(gt, 2, {volume:1, onUpdate:changegmcVolume}); } private function repeatSmc(_arg1:Event):void{ smc = sceneMusic.play(); smc.addEventListener(Event.SOUND_COMPLETE, repeatSmc); } public function playSceneSound():void{ Debug.log(("playing " + playing)); if (playing == "scene"){ return; }; if (playing == "game"){ stopGameSound(); }; if (!smc){ smc = sceneMusic.play(); smc.addEventListener(Event.SOUND_COMPLETE, repeatSmc); }; playing = "scene"; st.volume = 0; smc.soundTransform = st; TweenLite.to(st, 2, {volume:1, onUpdate:changesmcVolume}); } } }//package com.csharks.vinod
Section 58
//MusicManager_GameMusic (com.csharks.vinod.MusicManager_GameMusic) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class MusicManager_GameMusic extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.vinod
Section 59
//MusicManager_SceneMusic (com.csharks.vinod.MusicManager_SceneMusic) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class MusicManager_SceneMusic extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.vinod
Section 60
//PickupObject (com.csharks.vinod.PickupObject) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import flash.filters.*; import com.inruntime.utils.*; public class PickupObject extends MovieClip implements iObject { private var Cloth:Class; public var dropper:String; public var state:StateMachine; public var object_mc:MovieClip; private var triggerGlowElement; private var target; public var ready:Boolean;// = true private var stopWatch:MovieClip; private var t:Timer; public var objectId:String; public var failed:Boolean;// = false private var gameVars:Global; public function PickupObject(_arg1:String, _arg2:String, _arg3, _arg4){ Cloth = PickupObject_Cloth; super(); gameVars = Global.getInstance(); this.objectId = _arg1; this.dropper = _arg2; this.triggerGlowElement = _arg3; this.target = _arg4; state = new StateMachine(); state.addState("idle", {enter:idle}); state.addState("used", {enter:used}); state.addState("absent", {enter:absent}); if (_arg1 == "cloth"){ object_mc = new Cloth(); state.initialState = "absent"; }; } override public function get y():Number{ return (object_mc.y); } private function used(_arg1:Object):void{ var o = _arg1; object_mc.gotoAndPlay("used"); ready = false; object_mc.addFrameScript((object_mc.totalFrames - 1), function ():void{ state.changeState("absent"); }); if (stopWatch){ stopWatch.dispose(); stopWatch = null; }; } private function toggleGlow(_arg1:TimerEvent):void{ if (object_mc.filters.length == 0){ object_mc.filters = [new DropShadowFilter(0, 45, 0xFF0000, 1, 5, 5, 10, 1)]; } else { object_mc.filters = []; }; } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } public function glowOn():void{ if (t == null){ t = new Timer(500); object_mc.buttonMode = true; t.addEventListener(TimerEvent.TIMER, toggleGlow, false, 0, true); t.reset(); t.start(); }; } public function reset(_arg1=null):void{ var d:uint; var e = _arg1; failed = true; target[triggerGlowElement].failed = true; if (object_mc.hasEventListener(MouseEvent.CLICK)){ object_mc.removeEventListener(MouseEvent.CLICK, pickUp); }; removeListeners(); if (stopWatch){ stopWatch.dispose(); }; ready = false; d = setTimeout(function ():void{ clearTimeout(d); ready = true; }, 3000); dispatchEvent(new Event("problemRemoved")); state.changeState("absent"); } public function get clip():MovieClip{ return (object_mc); } private function idle(_arg1:Object):void{ object_mc.gotoAndStop("idle"); glowOn(); failed = false; } public function removeListeners():void{ if (object_mc.hasEventListener(MouseEvent.CLICK)){ object_mc.removeEventListener(MouseEvent.CLICK, clicked); }; if (t){ t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; } public function removeFromHand():void{ gameVars.itemsInHand.splice(gameVars.itemsInHand.indexOf(objectId), 1); } public function enablePickup():void{ state.changeState("idle"); stopWatch = new StopWatch(objectId); object_mc.addChild(stopWatch.clip); stopWatch.addEventListener("timerComplete", reset, false, 0, true); object_mc.addEventListener(MouseEvent.CLICK, clicked, false, 0, true); } private function clicked(_arg1:MouseEvent):void{ glowOff(); SoundManager.getInstance().playSound("clickSound"); object_mc.removeEventListener(MouseEvent.CLICK, pickUp); gameVars.itemsInHand.push(objectId); switch (objectId){ case "cloth": target[triggerGlowElement].glowOn(); target[triggerGlowElement].failed = false; gameVars.commands.push("goto|node_g3", "turn|up", "cloth|0"); break; default: break; }; } public function pickUp():void{ var d:uint; target[triggerGlowElement].failed = false; state.changeState("used"); if (stopWatch){ stopWatch.dispose(); stopWatch = null; }; d = setTimeout(function ():void{ clearTimeout(d); removeListeners(); if (stopWatch){ stopWatch.dispose(); }; state.changeState("absent"); }, 200); } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } public function glowOff():void{ object_mc.filters = []; if (t){ object_mc.buttonMode = false; t.reset(); t.stop(); t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; t = null; } override public function get x():Number{ return (object_mc.x); } private function absent(_arg1:Object):void{ object_mc.gotoAndStop("absent"); glowOff(); } } }//package com.csharks.vinod
Section 61
//PickupObject_Cloth (com.csharks.vinod.PickupObject_Cloth) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class PickupObject_Cloth extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 62
//Player (com.csharks.vinod.Player) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import com.csharks.vinod.pathfinding.*; import com.inruntime.utils.*; public class Player extends MovieClip { private var grid:Grid; public var speed:Number;// = 8 private var gameVars:Global; public var nextNodeId:String; public var state:StateMachine; public var currentNodeId:String; private var currentIndex:Number; private var targetNodeId:String; public var workingOn:String; private var PlayerClip:Class; private var player_mc:MovieClip; public var phoneDelay:Number;// = 6000 private var currentPath:Array; private var direction:String; public function Player(_arg1:String, _arg2:XML){ PlayerClip = Player_PlayerClip; grid = new Grid(); state = new StateMachine(); super(); player_mc = new PlayerClip(); gameVars = Global.getInstance(); speed = ((speed + gameVars.playerSpeed) + gameVars.energy); grid.parseXML(_arg2); x = grid.getNodeById(_arg1).x; y = grid.getNodeById(_arg1).y; currentNodeId = _arg1; direction = "Left"; state.addState("stand"); state.addState("walk"); state.addState("work"); state.addState("phone"); state.addState("sleep"); state.initialState = "stand"; stand(); } override public function set y(_arg1:Number):void{ player_mc.y = _arg1; } public function turn(_arg1:String):void{ direction = (_arg1.charAt(0).toUpperCase() + _arg1.substr(1)); } private function walk():void{ var _local1:Number = (currentPath[currentIndex].x - x); var _local2:Number = (currentPath[currentIndex].y - y); var _local3:Number = Math.atan2(_local2, _local1); x = (x + (Math.cos(_local3) * speed)); y = (y + (Math.sin(_local3) * speed)); if (Utils.almostEqual(Utils.toDegrees(_local3), 40, 15)){ turn("down"); } else { if (Utils.almostEqual(Utils.toDegrees(_local3), 130, 25)){ turn("left"); } else { if (Utils.almostEqual(Utils.toDegrees(_local3), 220, 15)){ turn("up"); } else { if (Utils.almostEqual(Utils.toDegrees(_local3), 315, 25)){ turn("right"); }; }; }; }; if (player_mc.currentLabel != ("walk" + direction)){ player_mc.gotoAndStop(("walk" + direction)); }; if (Utils.distBetween(this, currentPath[currentIndex]) < 10){ currentNodeId = currentPath[currentIndex].id; currentIndex++; if (currentIndex >= currentPath.length){ state.changeState("stand"); dispatchEvent(new Event("walkCompleted")); return; }; nextNodeId = currentPath[currentIndex].id; dispatchEvent(new Event("nodeReached")); }; } public function sleep():void{ if (state.state != "sleep"){ dispatchEvent(new Event("sleeping")); player_mc.char_mc.addFrameScript((player_mc.char_mc.totalFrames - 1), player_mc.char_mc.stop); player_mc.gotoAndStop("sleep"); player_mc.char_mc.visible = true; player_mc.char_mc.gotoAndPlay(1); state.changeState("sleep"); }; } public function work(_arg1:String="", _arg2:Number=1000):void{ var d:uint; var subject = _arg1; var time = _arg2; if (state.state != "work"){ state.changeState("work"); SoundManager.getInstance().playSound("wooshSound"); if (player_mc.currentLabel != ("do" + direction)){ player_mc.gotoAndStop(("do" + direction)); }; workingOn = subject; d = setTimeout(function ():void{ clearTimeout(d); state.changeState("stand"); dispatchEvent(new Event("workCompleted")); }, time); }; } public function stand():void{ if (player_mc.currentLabel != ("stand" + direction)){ player_mc.gotoAndStop(("stand" + direction)); player_mc.char_mc.stop(); player_mc.char_mc.visible = false; }; } public function get clip():MovieClip{ return (player_mc); } public function update():void{ switch (state.state){ case "stand": stand(); break; case "walk": walk(); break; case "work": work(); break; case "phone": phone(); break; case "sleep": sleep(); break; default: stand(); break; }; } public function goto(_arg1:String):void{ targetNodeId = _arg1; if (currentNodeId == targetNodeId){ state.changeState("stand"); dispatchEvent(new Event("walkCompleted")); return; }; currentPath = grid.getPathPoints(currentNodeId, targetNodeId); currentIndex = 0; state.changeState("walk"); } override public function set x(_arg1:Number):void{ player_mc.x = _arg1; } override public function get x():Number{ return (player_mc.x); } override public function get y():Number{ return (player_mc.y); } public function phone(_arg1:Number=0):void{ var d:uint; var delay = _arg1; if (state.state != "phone"){ state.changeState("phone"); if (delay == 0){ delay = phoneDelay; }; player_mc.gotoAndStop("usePhone"); d = setTimeout(function ():void{ clearTimeout(d); state.changeState("stand"); dispatchEvent(new Event("phoneCompleted")); }, delay); }; } } }//package com.csharks.vinod
Section 63
//Player_PlayerClip (com.csharks.vinod.Player_PlayerClip) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class Player_PlayerClip extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 64
//SimpleObject (com.csharks.vinod.SimpleObject) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import flash.filters.*; public class SimpleObject extends MovieClip { private var states:Array; public var objectId:String; public var state:StateMachine; private var WashBasin:Class; private var object_mc:MovieClip; private var Fridge:Class; public var status:String;// = "old" private var t:Timer; private var DiningTable:Class; private var Stove:Class; public function SimpleObject(_arg1:String, _arg2:Array){ var _local3:String; WashBasin = SimpleObject_WashBasin; DiningTable = SimpleObject_DiningTable; Fridge = SimpleObject_Fridge; Stove = SimpleObject_Stove; super(); this.objectId = _arg1; this.states = _arg2; switch (_arg1){ case "washbasin": object_mc = new WashBasin(); break; case "diningTable": object_mc = new DiningTable(); break; case "fridge": object_mc = new Fridge(); break; case "stove": object_mc = new Stove(); break; }; state = new StateMachine(); state.addState("idle"); for each (_local3 in _arg2) { state.addState(_local3); }; state.response.add(onStateChange); state.initialState = "idle"; } private function toggleGlow(_arg1:TimerEvent):void{ if (object_mc.filters.length == 0){ object_mc.filters = [new DropShadowFilter(0, 45, 0xFF0000, 1, 5, 5, 10, 1)]; } else { object_mc.filters = []; }; } override public function get width():Number{ return (object_mc.width); } public function glowOn():void{ t = new Timer(500); t.addEventListener(TimerEvent.TIMER, toggleGlow, false, 0, true); t.reset(); t.start(); } override public function get scaleX():Number{ return (object_mc.scaleX); } public function reset():void{ state.changeState("idle"); } public function get clip():MovieClip{ return (object_mc); } override public function set width(_arg1:Number):void{ object_mc.width = _arg1; } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } override public function set height(_arg1:Number):void{ object_mc.height = _arg1; } private function onStateChange():void{ var arguments = arguments; switch (arguments[1]){ case "idle": object_mc.gotoAndStop("idle"); break; case "noVessel": object_mc.gotoAndStop("noVessel"); break; case "beforeWash": object_mc.gotoAndStop("beforeWash"); break; case "afterWash": object_mc.gotoAndPlay("afterWash"); break; case "opened": object_mc.gotoAndStop("opened"); break; case "plate": object_mc.gotoAndPlay("plate"); object_mc.addFrameScript(12, object_mc.stop); break; case "food": object_mc.gotoAndPlay("food"); object_mc.addFrameScript(25, object_mc.stop); break; case "eaten": object_mc.gotoAndPlay("eaten"); object_mc.addFrameScript(35, object_mc.stop); break; case "finished": object_mc.gotoAndPlay("finished"); object_mc.addFrameScript((object_mc.totalFrames - 1), function ():void{ state.changeState("idle"); }); break; case "emptyVessel": object_mc.gotoAndStop("emptyVessel"); break; case "cookingStarted": object_mc.gotoAndPlay("cookingStarted"); object_mc.addFrameScript(6, object_mc.stop); break; case "cooked": object_mc.gotoAndPlay("cooked"); object_mc.addFrameScript(11, object_mc.stop); break; case "ready": object_mc.gotoAndStop("ready"); break; }; } public function removeListeners():void{ if (t){ t.removeEventListener(TimerEvent.TIMER_COMPLETE, toggleGlow); }; } override public function set scaleX(_arg1:Number):void{ object_mc.scaleX = _arg1; } public function baseStatus(_arg1:String):void{ object_mc.base_mc.gotoAndStop(_arg1); status = _arg1; } override public function get height():Number{ return (object_mc.height); } public function glowOff():void{ object_mc.filters = []; if (t){ t.reset(); t.stop(); t.removeEventListener(TimerEvent.TIMER, toggleGlow); t = null; }; } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } override public function get x():Number{ return (object_mc.x); } override public function get y():Number{ return (object_mc.y); } } }//package com.csharks.vinod
Section 65
//SimpleObject_DiningTable (com.csharks.vinod.SimpleObject_DiningTable) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class SimpleObject_DiningTable extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.vinod
Section 66
//SimpleObject_Fridge (com.csharks.vinod.SimpleObject_Fridge) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class SimpleObject_Fridge extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package com.csharks.vinod
Section 67
//SimpleObject_Stove (com.csharks.vinod.SimpleObject_Stove) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class SimpleObject_Stove extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 68
//SimpleObject_WashBasin (com.csharks.vinod.SimpleObject_WashBasin) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class SimpleObject_WashBasin extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 69
//StopWatch (com.csharks.vinod.StopWatch) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.inruntime.utils.*; import com.carlcalderon.arthropod.*; public class StopWatch extends MovieClip { private var object_mc:MovieClip; private var timeout:Boolean;// = true private var d:uint; private var StopWatchClass:Class; public var timeTaken:Number;// = 0 private var gameVars:Global; public function StopWatch(_arg1:String=""){ var i:uint; var objectId = _arg1; StopWatchClass = StopWatch_StopWatchClass; super(); timeout = true; gameVars = Global.getInstance(); object_mc = new StopWatchClass(); object_mc.gotoAndStop(1); width = 25.1; height = 28.7; if (objectId == "man"){ scaleX = (scaleX * -1); }; try { x = gameVars.clockPosition[objectId].x; y = gameVars.clockPosition[objectId].y; } catch(e:Error) { Debug.log(e); }; i = 0; d = setInterval(function ():void{ if (gameVars.Paused){ return; }; if (i == gameVars.globalWait){ if (timeout){ dispatchEvent(new Event("timerComplete")); }; clearInterval(d); } else { object_mc.nextFrame(); }; timeTaken = i; i++; }, 1000); } override public function get width():Number{ return (object_mc.width); } public function cancelTimeout():void{ timeout = false; } override public function set width(_arg1:Number):void{ object_mc.width = _arg1; } override public function get scaleX():Number{ return (object_mc.scaleX); } public function get clip():MovieClip{ return (object_mc); } override public function set height(_arg1:Number):void{ object_mc.height = _arg1; } override public function set scaleX(_arg1:Number):void{ object_mc.scaleX = _arg1; } public function dispose():void{ if (d){ clearInterval(d); }; MovieClip(object_mc.parent).removeChild(object_mc); } override public function get height():Number{ return (object_mc.height); } override public function set x(_arg1:Number):void{ object_mc.x = _arg1; } override public function set y(_arg1:Number):void{ object_mc.y = _arg1; } override public function get x():Number{ return (object_mc.x); } override public function get y():Number{ return (object_mc.y); } } }//package com.csharks.vinod
Section 70
//StopWatch_StopWatchClass (com.csharks.vinod.StopWatch_StopWatchClass) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class StopWatch_StopWatchClass extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 71
//VapourText (com.csharks.vinod.VapourText) package com.csharks.vinod { import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.utils.*; public class VapourText { private var TextTemplate:Class; private var text_mc:MovieClip; public function VapourText(){ TextTemplate = VapourText_TextTemplate; super(); } public function showText(_arg1:String, _arg2, _arg3:Number=0, _arg4:Number=0, _arg5:Boolean=false):void{ var i:int; var d:uint; var textValue = _arg1; var target = _arg2; var x = _arg3; var y = _arg4; var flipped = _arg5; text_mc = new TextTemplate(); text_mc.x = x; text_mc.y = y; text_mc.alpha = 1; if (flipped){ text_mc.scaleX = (text_mc.scaleX * -1); }; target.addChild(text_mc); text_mc.text_txt.text = textValue; i = 0; SoundManager.getInstance().playSound("clingSound"); d = setInterval(function ():void{ if (i >= 100){ clearInterval(d); target.removeChild(text_mc); }; text_mc.alpha = (text_mc.alpha - 0.01); text_mc.y = (text_mc.y - 0.2); i++; }, 10); } } }//package com.csharks.vinod
Section 72
//VapourText_TextTemplate (com.csharks.vinod.VapourText_TextTemplate) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class VapourText_TextTemplate extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var text_txt:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 73
//Wardrobe (com.csharks.vinod.Wardrobe) package com.csharks.vinod { import flash.events.*; import flash.display.*; import flash.utils.*; import com.csharks.juwalbose.cFlashtory.core.*; import com.csharks.juwalbose.utils.*; import flash.filters.*; import com.inruntime.utils.*; public class Wardrobe extends MovieClip { public var objectId:String;// = "wardrobe" public var state:StateMachine; private var t:Timer; public var staticMode:Boolean;// = false private var wardrobe_mc:MovieClip; private var WardrobeClass:Class; public var failed:Boolean;// = false private var gameVars:Global; public function Wardrobe(_arg1:Boolean=false){ WardrobeClass = Wardrobe_WardrobeClass; super(); gameVars = Global.getInstance(); wardrobe_mc = new WardrobeClass(); state = new StateMachine(); state.addState("idle", {enter:idleEnter}); if (_arg1){ this.staticMode = _arg1; return; }; state.addState("open-empty", {enter:emptyEnter}); state.addState("open-cloth", {enter:clothEnter}); state.addState("closed-empty", {enter:emptyCloseEnter}); state.initialState = "idle"; } override public function get y():Number{ return (wardrobe_mc.y); } private function toggleGlow(_arg1:TimerEvent):void{ if (wardrobe_mc.filters.length == 0){ wardrobe_mc.filters = [new DropShadowFilter(0, 45, 0xFF0000, 1, 5, 5, 10, 1)]; } else { wardrobe_mc.filters = []; }; } override public function get x():Number{ return (wardrobe_mc.x); } override public function set y(_arg1:Number):void{ wardrobe_mc.y = _arg1; } private function emptyEnter(_arg1:Object):void{ wardrobe_mc.gotoAndStop("emptyOpen"); glowOn(); } public function glowOn():void{ if (t == null){ t = new Timer(500); wardrobe_mc.buttonMode = true; t.addEventListener(TimerEvent.TIMER, toggleGlow, false, 0, true); t.reset(); t.start(); if (!wardrobe_mc.hasEventListener(MouseEvent.CLICK)){ wardrobe_mc.addEventListener(MouseEvent.CLICK, clicked, false, 0, true); }; }; } public function jobFinished():void{ dispatchEvent(new Event("problemRemoved")); new VapourText().showText(("+" + gameVars.scores["clothWashing"]), wardrobe_mc); gameVars.levelScore = (gameVars.levelScore + gameVars.scores["clothWashing"]); state.changeState("closed-empty"); } public function get clip():MovieClip{ return (wardrobe_mc); } public function removeListeners():void{ if (wardrobe_mc.hasEventListener(MouseEvent.CLICK)){ wardrobe_mc.removeEventListener(MouseEvent.CLICK, clicked); }; if (t){ t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; } private function clothEnter(_arg1:Object):void{ wardrobe_mc.gotoAndStop("clothesOpen"); glowOn(); } private function idleEnter(_arg1:Object):void{ wardrobe_mc.gotoAndStop("idle"); glowOff(); } private function clicked(_arg1:MouseEvent):void{ SoundManager.getInstance().playSound("clickSound"); if (state.state == "open-empty"){ if (gameVars.itemsInHand.indexOf("washedCloth") == -1){ gameVars.commands.push("goto|node_g4", "turn|right", "closeWE|0"); } else { gameVars.itemsInHand.splice(gameVars.itemsInHand.indexOf("washedCloth"), 1); gameVars.commands.push("goto|node_g4", "turn|right", "openWC|0"); }; } else { if (state.state == "closed-empty"){ gameVars.commands.push("goto|node_g4", "turn|right", "openWE|0"); } else { if (state.state == "open-cloth"){ wardrobe_mc.removeEventListener(MouseEvent.CLICK, clicked); gameVars.commands.push("goto|node_g4", "turn|right", "closeWC|0"); }; }; }; } private function emptyCloseEnter(_arg1:Object):void{ wardrobe_mc.gotoAndStop("closed"); wardrobe_mc.removeEventListener(MouseEvent.CLICK, clicked); glowOff(); } override public function set x(_arg1:Number):void{ wardrobe_mc.x = _arg1; } public function glowOff():void{ wardrobe_mc.filters = []; if (t){ wardrobe_mc.buttonMode = false; t.reset(); t.stop(); t.removeEventListener(TimerEvent.TIMER, toggleGlow); }; t = null; } } }//package com.csharks.vinod
Section 74
//Wardrobe_WardrobeClass (com.csharks.vinod.Wardrobe_WardrobeClass) package com.csharks.vinod { import flash.display.*; import mx.core.*; public class Wardrobe_WardrobeClass extends MovieClipAsset { public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var char_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var chair_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var stove_btn:DisplayObject; public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k2:DisplayObject; public var node_k3:DisplayObject; public var machine_mc:DisplayObject; public var close_btn:DisplayObject; public var moneyLabel_mc:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var boyIcon_mc:DisplayObject; public var base_mc:DisplayObject; public var close2_btn:DisplayObject; public var motherIcon_mc:DisplayObject; public var node_v0:DisplayObject; public var girlIcon_mc:DisplayObject; public var main_mc:DisplayObject; public var successLabel_mc:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_w0:DisplayObject; } }//package com.csharks.vinod
Section 75
//PropTween (com.greensock.core.PropTween) package com.greensock.core { public class PropTween { public var priority:int; public var start:Number; public var prevNode:PropTween; public var change:Number; public var target:Object; public var name:String; public var property:String; public var nextNode:PropTween; public var isPlugin:Boolean; public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){ this.target = _arg1; this.property = _arg2; this.start = _arg3; this.change = _arg4; this.name = _arg5; this.isPlugin = _arg6; if (_arg7){ _arg7.prevNode = this; this.nextNode = _arg7; }; this.priority = _arg8; } } }//package com.greensock.core
Section 76
//SimpleTimeline (com.greensock.core.SimpleTimeline) package com.greensock.core { public class SimpleTimeline extends TweenCore { public var autoRemoveChildren:Boolean; protected var _lastChild:TweenCore; protected var _firstChild:TweenCore; public function SimpleTimeline(_arg1:Object=null){ super(0, _arg1); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local5:Number; var _local6:TweenCore; var _local4:TweenCore = _firstChild; this.cachedTotalTime = _arg1; this.cachedTime = _arg1; while (_local4) { _local6 = _local4.nextNode; if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){ if (!_local4.cachedReversed){ _local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false); } else { _local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration; _local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false); }; }; _local4 = _local6; }; } public function addChild(_arg1:TweenCore):void{ if (((!(_arg1.gc)) && (_arg1.timeline))){ _arg1.timeline.remove(_arg1, true); }; _arg1.timeline = this; if (_arg1.gc){ _arg1.setEnabled(true, true); }; if (_firstChild){ _firstChild.prevNode = _arg1; }; _arg1.nextNode = _firstChild; _firstChild = _arg1; _arg1.prevNode = null; } public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{ if (_arg1.gc){ return; }; if (!_arg2){ _arg1.setEnabled(false, true); }; if (_arg1.nextNode){ _arg1.nextNode.prevNode = _arg1.prevNode; } else { if (_lastChild == _arg1){ _lastChild = _arg1.prevNode; }; }; if (_arg1.prevNode){ _arg1.prevNode.nextNode = _arg1.nextNode; } else { if (_firstChild == _arg1){ _firstChild = _arg1.nextNode; }; }; } public function get rawTime():Number{ return (this.cachedTotalTime); } } }//package com.greensock.core
Section 77
//TweenCore (com.greensock.core.TweenCore) package com.greensock.core { import com.greensock.*; public class TweenCore { public var initted:Boolean; protected var _hasUpdate:Boolean; public var active:Boolean; protected var _delay:Number; public var cachedTime:Number; public var cachedReversed:Boolean; public var nextNode:TweenCore; protected var _rawPrevTime:Number;// = -1 public var vars:Object; public var cachedTotalTime:Number; public var timeline:SimpleTimeline; public var data; public var cachedStartTime:Number; public var prevNode:TweenCore; public var cachedDuration:Number; public var gc:Boolean; protected var _pauseTime:Number; public var cacheIsDirty:Boolean; public var cachedPaused:Boolean; public var cachedTimeScale:Number; public var cachedTotalDuration:Number; public static const version:Number = 1.13; protected static var _classInitted:Boolean; public function TweenCore(_arg1:Number=0, _arg2:Object=null){ this.vars = ((_arg2) || ({})); this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0))); _delay = ((this.vars.delay) || (0)); this.cachedTimeScale = ((this.vars.timeScale) || (1)); this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false))))); this.cachedTotalTime = (this.cachedTime = 0); this.data = this.vars.data; if (!_classInitted){ if (isNaN(TweenLite.rootFrame)){ TweenLite.initClass(); _classInitted = true; } else { return; }; }; var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline; this.cachedStartTime = (_local3.cachedTotalTime + _delay); _local3.addChild(this); if (this.vars.reversed){ this.cachedReversed = true; }; if (this.vars.paused){ this.paused = true; }; } public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ } public function get delay():Number{ return (_delay); } public function get duration():Number{ return (this.cachedDuration); } public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{ this.reversed = false; this.paused = false; this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2); } public function set reversed(_arg1:Boolean):void{ if (_arg1 != this.cachedReversed){ this.cachedReversed = _arg1; setTotalTime(this.cachedTotalTime, true); }; } public function set startTime(_arg1:Number):void{ var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc))))); this.cachedStartTime = _arg1; if (_local2){ this.timeline.addChild(this); }; } public function set delay(_arg1:Number):void{ this.startTime = (this.startTime + (_arg1 - _delay)); _delay = _arg1; } public function resume():void{ this.paused = false; } public function get paused():Boolean{ return (this.cachedPaused); } public function play():void{ this.reversed = false; this.paused = false; } public function set duration(_arg1:Number):void{ this.cachedDuration = (this.cachedTotalDuration = _arg1); setDirtyCache(false); } public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{ if (!_arg1){ renderTime(this.cachedTotalDuration, _arg2, false); return; }; if (this.timeline.autoRemoveChildren){ this.setEnabled(false, false); } else { this.active = false; }; if (!_arg2){ if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); } else { if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){ this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams); }; }; }; } public function invalidate():void{ } public function get totalTime():Number{ return (this.cachedTotalTime); } public function get reversed():Boolean{ return (this.cachedReversed); } public function get startTime():Number{ return (this.cachedStartTime); } public function set currentTime(_arg1:Number):void{ setTotalTime(_arg1, false); } protected function setDirtyCache(_arg1:Boolean=true):void{ var _local2:TweenCore = (_arg1) ? this : this.timeline; while (_local2) { _local2.cacheIsDirty = true; _local2 = _local2.timeline; }; } public function reverse(_arg1:Boolean=true):void{ this.reversed = true; if (_arg1){ this.paused = false; } else { if (this.gc){ this.setEnabled(true, false); }; }; } public function set paused(_arg1:Boolean):void{ if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){ if (_arg1){ _pauseTime = this.timeline.rawTime; } else { this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime)); _pauseTime = NaN; setDirtyCache(false); }; this.cachedPaused = _arg1; this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration)))); }; if (((!(_arg1)) && (this.gc))){ this.setTotalTime(this.cachedTotalTime, false); this.setEnabled(true, false); }; } public function kill():void{ setEnabled(false, false); } public function set totalTime(_arg1:Number):void{ setTotalTime(_arg1, false); } public function get currentTime():Number{ return (this.cachedTime); } protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; var _local4:Number; if (this.timeline){ _local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime; if (this.cachedReversed){ _local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration; this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale)); } else { this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale)); }; if (!this.timeline.cacheIsDirty){ setDirtyCache(false); }; if (this.cachedTotalTime != _arg1){ renderTime(_arg1, _arg2, false); }; }; } public function pause():void{ this.paused = true; } public function set totalDuration(_arg1:Number):void{ this.duration = _arg1; } public function get totalDuration():Number{ return (this.cachedTotalDuration); } public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ if (_arg1){ this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration)))); if (((!(_arg2)) && (this.gc))){ this.timeline.addChild(this); }; } else { this.active = false; if (!_arg2){ this.timeline.remove(this, true); }; }; this.gc = !(_arg1); return (false); } } }//package com.greensock.core
Section 78
//Elastic (com.greensock.easing.Elastic) package com.greensock.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)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_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 * 0.5)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * (0.3 * 1.5)); }; if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_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)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_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 com.greensock.easing
Section 79
//Strong (com.greensock.easing.Strong) package com.greensock.easing { public class Strong { public static const power:uint = 4; public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 * 0.5)); if (_arg1 < 1){ return ((((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 * 0.5) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } } }//package com.greensock.easing
Section 80
//TweenEvent (com.greensock.events.TweenEvent) package com.greensock.events { import flash.events.*; public class TweenEvent extends Event { public static const COMPLETE:String = "complete"; public static const START:String = "start"; public static const UPDATE:String = "change"; public static const REVERSE_COMPLETE:String = "reverseComplete"; public static const INIT:String = "init"; public static const VERSION:Number = 1.1; public static const REPEAT:String = "repeat"; public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ return (new TweenEvent(this.type, this.bubbles, this.cancelable)); } } }//package com.greensock.events
Section 81
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _target:Object; protected var _ignoreVisible:Boolean; public static const API:Number = 1; public function AutoAlphaPlugin(){ this.propName = "autoAlpha"; this.overwriteProps = ["alpha", "visible"]; } override public function killProps(_arg1:Object):void{ super.killProps(_arg1); _ignoreVisible = Boolean(("visible" in _arg1)); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); if (!_ignoreVisible){ _target.visible = Boolean(!((_target.alpha == 0))); }; } } }//package com.greensock.plugins
Section 82
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"]; public function BevelFilterPlugin(){ this.propName = "bevelFilter"; this.overwriteProps = ["bevelFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BevelFilter; initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))), _propNames); return (true); } } }//package com.greensock.plugins
Section 83
//BezierPlugin (com.greensock.plugins.BezierPlugin) package com.greensock.plugins { import com.greensock.*; import com.greensock.core.*; public class BezierPlugin extends TweenPlugin { protected var _future:Object; protected var _orient:Boolean; protected var _orientData:Array; protected var _target:Object; protected var _beziers:Object; public static const API:Number = 1; protected static const _RAD2DEG:Number = 57.2957795130823; public function BezierPlugin(){ _future = {}; super(); this.propName = "bezier"; this.overwriteProps = []; } override public function killProps(_arg1:Object):void{ var _local2:String; for (_local2 in _beziers) { if ((_local2 in _arg1)){ delete _beziers[_local2]; }; }; super.killProps(_arg1); } protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{ var _local6:int; var _local7:String; var _local8:Object; _target = _arg1.target; var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars : _arg1.vars; if (_local4.orientToBezier == true){ _orientData = [["x", "y", "rotation", 0, 0.01]]; _orient = true; } else { if ((_local4.orientToBezier is Array)){ _orientData = _local4.orientToBezier; _orient = true; }; }; var _local5:Object = {}; _local6 = 0; while (_local6 < _arg2.length) { for (_local7 in _arg2[_local6]) { if (_local5[_local7] == undefined){ _local5[_local7] = [_arg1.target[_local7]]; }; if (typeof(_arg2[_local6][_local7]) == "number"){ _local5[_local7].push(_arg2[_local6][_local7]); } else { _local5[_local7].push((_arg1.target[_local7] + Number(_arg2[_local6][_local7]))); }; }; _local6++; }; for (_local7 in _local5) { this.overwriteProps[this.overwriteProps.length] = _local7; if (_local4[_local7] != undefined){ if (typeof(_local4[_local7]) == "number"){ _local5[_local7].push(_local4[_local7]); } else { _local5[_local7].push((_arg1.target[_local7] + Number(_local4[_local7]))); }; _local8 = {}; _local8[_local7] = true; _arg1.killVars(_local8, false); delete _local4[_local7]; }; }; _beziers = parseBeziers(_local5, _arg3); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), false); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:String; var _local4:Object; var _local5:Number; var _local6:uint; var _local7:Number; var _local8:Object; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Number; var _local13:Object; var _local14:Boolean; if (_arg1 == 1){ for (_local3 in _beziers) { _local2 = (_beziers[_local3].length - 1); _target[_local3] = _beziers[_local3][_local2][2]; }; } else { for (_local3 in _beziers) { _local6 = _beziers[_local3].length; if (_arg1 < 0){ _local2 = 0; } else { if (_arg1 >= 1){ _local2 = (_local6 - 1); } else { _local2 = int((_local6 * _arg1)); }; }; _local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6); _local4 = _beziers[_local3][_local2]; if (this.round){ _local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); _target[_local3] = ((_local7)>0) ? int((_local7 + 0.5)) : int((_local7 - 0.5)); } else { _target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); }; }; }; if (_orient){ _local2 = _orientData.length; _local8 = {}; while (_local2--) { _local11 = _orientData[_local2]; _local8[_local11[0]] = _target[_local11[0]]; _local8[_local11[1]] = _target[_local11[1]]; }; _local13 = _target; _local14 = this.round; _target = _future; this.round = false; _orient = false; _local2 = _orientData.length; while (_local2--) { _local11 = _orientData[_local2]; this.changeFactor = (_arg1 + ((_local11[4]) || (0.01))); _local12 = ((_local11[3]) || (0)); _local9 = (_future[_local11[0]] - _local8[_local11[0]]); _local10 = (_future[_local11[1]] - _local8[_local11[1]]); _local13[_local11[2]] = ((Math.atan2(_local10, _local9) * _RAD2DEG) + _local12); }; _target = _local13; this.round = _local14; _orient = true; }; } 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] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]]; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]]; _local3++; }; } else { _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)]; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)]; _local3++; }; _local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]]; } else { if (_local4.length == 3){ _local5[_local5.length] = [_local4[0], _local4[1], _local4[2]]; } else { if (_local4.length == 2){ _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; }; }; }; return (_local7); } } }//package com.greensock.plugins
Section 84
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin) package com.greensock.plugins { import com.greensock.*; public class BezierThroughPlugin extends BezierPlugin { public static const API:Number = 1; public function BezierThroughPlugin(){ this.propName = "bezierThrough"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), true); return (true); } } }//package com.greensock.plugins
Section 85
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["blurX", "blurY", "quality"]; public function BlurFilterPlugin(){ this.propName = "blurFilter"; this.overwriteProps = ["blurFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BlurFilter; initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))), _propNames); return (true); } } }//package com.greensock.plugins
Section 86
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 1; private static var _propNames:Array = []; protected static var _lumG:Number = 0.71516; protected static var _lumR:Number = 0.212671; protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; protected static var _lumB:Number = 0.072169; public function ColorMatrixFilterPlugin(){ this.propName = "colorMatrixFilter"; this.overwriteProps = ["colorMatrixFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = ColorMatrixFilter; var _local4:Object = _arg2; initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()), _propNames); _matrix = ColorMatrixFilter(_filter).matrix; var _local5:Array = []; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _local5 = _local4.matrix; } else { if (_local4.relative == true){ _local5 = _matrix.slice(); } else { _local5 = _idMatrix.slice(); }; _local5 = setBrightness(_local5, _local4.brightness); _local5 = setContrast(_local5, _local4.contrast); _local5 = setHue(_local5, _local4.hue); _local5 = setSaturation(_local5, _local4.saturation); _local5 = setThreshold(_local5, _local4.threshold); if (!isNaN(_local4.colorize)){ _local5 = colorize(_local5, _local4.colorize, _local4.amount); }; }; _matrixTween = new EndArrayPlugin(); _matrixTween.init(_matrix, _local5); return (true); } override public function set changeFactor(_arg1:Number):void{ _matrixTween.changeFactor = _arg1; ColorMatrixFilter(_filter).matrix = _matrix; super.changeFactor = _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 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 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 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)); } } }//package com.greensock.plugins
Section 87
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.geom.*; public class ColorTransformPlugin extends TintPlugin { public static const API:Number = 1; public function ColorTransformPlugin(){ this.propName = "colorTransform"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local5:String; var _local6:Number; if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = _arg1.transform.colorTransform; for (_local5 in _arg2) { if ((((_local5 == "tint")) || ((_local5 == "color")))){ if (_arg2[_local5] != null){ _local4.color = int(_arg2[_local5]); }; } else { if ((((((_local5 == "tintAmount")) || ((_local5 == "exposure")))) || ((_local5 == "brightness")))){ } else { _local4[_local5] = _arg2[_local5]; }; }; }; if (!isNaN(_arg2.tintAmount)){ _local6 = (_arg2.tintAmount / (1 - (((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3))); _local4.redOffset = (_local4.redOffset * _local6); _local4.greenOffset = (_local4.greenOffset * _local6); _local4.blueOffset = (_local4.blueOffset * _local6); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - _arg2.tintAmount))); } else { if (!isNaN(_arg2.exposure)){ _local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = (0xFF * (_arg2.exposure - 1)))); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = 1)); } else { if (!isNaN(_arg2.brightness)){ _local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF)))); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1))))); }; }; }; _ignoreAlpha = Boolean(((!((_arg3.vars.alpha == undefined))) && ((_arg2.alphaMultiplier == undefined)))); init((_arg1 as DisplayObject), _local4); return (true); } } }//package com.greensock.plugins
Section 88
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"]; public function DropShadowFilterPlugin(){ this.propName = "dropShadowFilter"; this.overwriteProps = ["dropShadowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = DropShadowFilter; initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject), _propNames); return (true); } } }//package com.greensock.plugins
Section 89
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class EndArrayPlugin extends TweenPlugin { protected var _a:Array; protected var _info:Array; public static const API:Number = 1; public function EndArrayPlugin(){ _info = []; super(); this.propName = "endArray"; this.overwriteProps = ["endArray"]; } public function init(_arg1:Array, _arg2:Array):void{ _a = _arg1; var _local3:int = _arg2.length; while (_local3--) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ _info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (false); }; init((_arg1 as Array), _arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local3:ArrayTweenInfo; var _local4:Number; var _local2:int = _info.length; if (this.round){ while (_local2--) { _local3 = _info[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _a[_local3.index] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5)); }; } else { while (_local2--) { _local3 = _info[_local2]; _a[_local3.index] = (_local3.start + (_local3.change * _arg1)); }; }; } } }//package com.greensock.plugins class ArrayTweenInfo { public var change:Number; public var start:Number; public var index:uint; private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.index = _arg1; this.start = _arg2; this.change = _arg3; } }
Section 90
//FilterPlugin (com.greensock.plugins.FilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import com.greensock.core.*; import flash.filters.*; public class FilterPlugin extends TweenPlugin { protected var _remove:Boolean; protected var _target:Object; protected var _index:int; protected var _filter:BitmapFilter; protected var _type:Class; public static const VERSION:Number = 2.03; public static const API:Number = 1; public function onCompleteTween():void{ var _local1:Array; var _local2:int; if (_remove){ _local1 = _target.filters; if (!(_local1[_index] is _type)){ _local2 = _local1.length; while (_local2--) { if ((_local1[_local2] is _type)){ _local1.splice(_local2, 1); break; }; }; } else { _local1.splice(_index, 1); }; _target.filters = _local1; }; } protected function initFilter(_arg1:Object, _arg2:BitmapFilter, _arg3:Array):void{ var _local5:String; var _local6:int; var _local7:HexColorsPlugin; var _local4:Array = _target.filters; var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1; _index = -1; if (_local8.index != null){ _index = _local8.index; } else { _local6 = _local4.length; while (_local6--) { if ((_local4[_local6] is _type)){ _index = _local6; break; }; }; }; if ((((((_index == -1)) || ((_local4[_index] == null)))) || ((_local8.addFilter == true)))){ _index = ((_local8.index)!=null) ? _local8.index : _local4.length; _local4[_index] = _arg2; _target.filters = _local4; }; _filter = _local4[_index]; if (_local8.remove == true){ _remove = true; this.onComplete = onCompleteTween; }; _local6 = _arg3.length; while (_local6--) { _local5 = _arg3[_local6]; if ((((_local5 in _arg1)) && (!((_filter[_local5] == _arg1[_local5]))))){ if ((((((_local5 == "color")) || ((_local5 == "highlightColor")))) || ((_local5 == "shadowColor")))){ _local7 = new HexColorsPlugin(); _local7.initColor(_filter, _local5, _filter[_local5], _arg1[_local5]); _tweens[_tweens.length] = new PropTween(_local7, "changeFactor", 0, 1, _local5, false); } else { if ((((((((_local5 == "quality")) || ((_local5 == "inner")))) || ((_local5 == "knockout")))) || ((_local5 == "hideObject")))){ _filter[_local5] = _arg1[_local5]; } else { addTween(_filter, _local5, _filter[_local5], _arg1[_local5], _local5); }; }; }; }; } override public function set changeFactor(_arg1:Number):void{ var _local3:PropTween; var _local2:int = _tweens.length; var _local4:Array = _target.filters; while (_local2--) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; if (!(_local4[_index] is _type)){ _local2 = (_index = _local4.length); while (_local2--) { if ((_local4[_local2] is _type)){ _index = _local2; break; }; }; }; _local4[_index] = _filter; _target.filters = _local4; } } }//package com.greensock.plugins
Section 91
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class FrameLabelPlugin extends FramePlugin { public static const API:Number = 1; public function FrameLabelPlugin(){ this.propName = "frameLabel"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if ((!(_arg3.target) is MovieClip)){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; var _local4:Array = _target.currentLabels; var _local5:String = _arg2; var _local6:int = _target.currentFrame; var _local7:int = _local4.length; while (_local7--) { if (_local4[_local7].name == _local5){ _local6 = _local4[_local7].frame; break; }; }; if (this.frame != _local6){ addTween(this, "frame", this.frame, _local6, "frame"); }; return (true); } } }//package com.greensock.plugins
Section 92
//FramePlugin (com.greensock.plugins.FramePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class FramePlugin extends TweenPlugin { protected var _target:MovieClip; public var frame:int; public static const API:Number = 1; public function FramePlugin(){ this.propName = "frame"; this.overwriteProps = ["frame", "frameLabel"]; this.round = true; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; addTween(this, "frame", this.frame, _arg2, "frame"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.gotoAndStop(this.frame); } } }//package com.greensock.plugins
Section 93
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"]; public function GlowFilterPlugin(){ this.propName = "glowFilter"; this.overwriteProps = ["glowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = GlowFilter; initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout), _propNames); return (true); } } }//package com.greensock.plugins
Section 94
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const API:Number = 1; public function HexColorsPlugin(){ this.propName = "hexColors"; this.overwriteProps = []; _colors = []; } override public function killProps(_arg1:Object):void{ var _local2:int = (_colors.length - 1); while (_local2 > -1) { if (_arg1[_colors[_local2][1]] != undefined){ _colors.splice(_local2, 1); }; _local2--; }; super.killProps(_arg1); } public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{ var _local5:Number; var _local6:Number; var _local7:Number; if (_arg3 != _arg4){ _local5 = (_arg3 >> 16); _local6 = ((_arg3 >> 8) & 0xFF); _local7 = (_arg3 & 0xFF); _colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)]; this.overwriteProps[this.overwriteProps.length] = _arg2; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:Array; _local2 = (_colors.length - 1); while (_local2 > -1) { _local3 = _colors[_local2]; _local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7]))); _local2--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; for (_local4 in _arg2) { initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4])); }; return (true); } } }//package com.greensock.plugins
Section 95
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin) package com.greensock.plugins { public class RemoveTintPlugin extends TintPlugin { public static const API:Number = 1; public function RemoveTintPlugin(){ this.propName = "removeTint"; } } }//package com.greensock.plugins
Section 96
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class RoundPropsPlugin extends TweenPlugin { public static const API:Number = 1; public function RoundPropsPlugin(){ this.propName = "roundProps"; this.overwriteProps = []; this.round = true; } public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package com.greensock.plugins
Section 97
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class ShortRotationPlugin extends TweenPlugin { public static const API:Number = 1; public function ShortRotationPlugin(){ this.propName = "shortRotation"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; if (typeof(_arg2) == "number"){ return (false); }; for (_local4 in _arg2) { initRotation(_arg1, _local4, _arg1[_local4], ((typeof(_arg2[_local4]))=="number") ? Number(_arg2[_local4]) : (_arg1[_local4] + Number(_arg2[_local4]))); }; return (true); } public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ var _local5:Number = ((_arg4 - _arg3) % 360); if (((_arg4 - _arg3) % 360) != (_local5 % 180)){ _local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360); }; addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package com.greensock.plugins
Section 98
//TintPlugin (com.greensock.plugins.TintPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import com.greensock.core.*; import flash.geom.*; public class TintPlugin extends TweenPlugin { protected var _ct:ColorTransform; protected var _transform:Transform; protected var _ignoreAlpha:Boolean; public static const API:Number = 1; protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"]; public function TintPlugin(){ this.propName = "tint"; this.overwriteProps = ["tint"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = new ColorTransform(); if (((!((_arg2 == null))) && (!((_arg3.vars.removeTint == true))))){ _local4.color = uint(_arg2); }; _ignoreAlpha = true; init((_arg1 as DisplayObject), _local4); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:ColorTransform; updateTweens(_arg1); if (_ignoreAlpha){ _local2 = _transform.colorTransform; _ct.alphaMultiplier = _local2.alphaMultiplier; _ct.alphaOffset = _local2.alphaOffset; }; _transform.colorTransform = _ct; } public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{ var _local4:String; _transform = _arg1.transform; _ct = _transform.colorTransform; var _local3:int = _props.length; while (_local3--) { _local4 = _props[_local3]; if (_ct[_local4] != _arg2[_local4]){ _tweens[_tweens.length] = new PropTween(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false); }; }; } } }//package com.greensock.plugins
Section 99
//TweenPlugin (com.greensock.plugins.TweenPlugin) package com.greensock.plugins { import com.greensock.*; import com.greensock.core.*; public class TweenPlugin { public var activeDisable:Boolean; protected var _changeFactor:Number;// = 0 protected var _tweens:Array; public var onDisable:Function; public var propName:String; public var round:Boolean; public var onEnable:Function; public var priority:int;// = 0 public var overwriteProps:Array; public var onComplete:Function; public static const VERSION:Number = 1.31; public static const API:Number = 1; public function TweenPlugin(){ _tweens = []; super(); } protected function updateTweens(_arg1:Number):void{ var _local3:PropTween; var _local4:Number; var _local2:int = _tweens.length; if (this.round){ while (--_local2 > -1) { _local3 = _tweens[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local3.target[_local3.property] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5)); }; } else { while (--_local2 > -1) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; }; } protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{ var _local6:Number; if (_arg4 != null){ _local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4); if (_local6 != 0){ _tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false); }; }; } public function get changeFactor():Number{ return (_changeFactor); } public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName); return (true); } public function killProps(_arg1:Object):void{ var _local2:int = this.overwriteProps.length; while (--_local2 > -1) { if ((this.overwriteProps[_local2] in _arg1)){ this.overwriteProps.splice(_local2, 1); }; }; _local2 = _tweens.length; while (--_local2 > -1) { if ((PropTween(_tweens[_local2]).name in _arg1)){ _tweens.splice(_local2, 1); }; }; } public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _changeFactor = _arg1; } public static function activate(_arg1:Array):Boolean{ var _local3:Object; TweenLite.onPluginEvent = TweenPlugin.onTweenEvent; var _local2:int = _arg1.length; while (--_local2 > -1) { if (_arg1[_local2].hasOwnProperty("API")){ _local3 = new ((_arg1[_local2] as Class)); TweenLite.plugins[_local3.propName] = _arg1[_local2]; }; }; return (true); } private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{ var _local4:Boolean; var _local5:Array; var _local6:int; var _local3:PropTween = _arg2.cachedPT1; if (_arg1 == "onInit"){ _local5 = []; while (_local3) { _local5[_local5.length] = _local3; _local3 = _local3.nextNode; }; _local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING)); _local6 = _local5.length; while (--_local6 > -1) { PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)]; PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)]; }; _arg2.cachedPT1 = _local5[0]; } else { while (_local3) { if (((_local3.isPlugin) && (_local3.target[_arg1]))){ if (_local3.target.activeDisable){ _local4 = true; }; var _local7 = _local3.target; _local7[_arg1](); }; _local3 = _local3.nextNode; }; }; return (_local4); } } }//package com.greensock.plugins
Section 100
//VisiblePlugin (com.greensock.plugins.VisiblePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class VisiblePlugin extends TweenPlugin { protected var _target:Object; protected var _initVal:Boolean; protected var _visible:Boolean; protected var _tween:TweenLite; public static const API:Number = 1; public function VisiblePlugin(){ this.propName = "visible"; this.overwriteProps = ["visible"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _initVal = _target.visible; _visible = Boolean(_arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ if ((((_arg1 == 1)) && ((((_tween.cachedDuration == _tween.cachedTime)) || ((_tween.cachedTime == 0)))))){ _target.visible = _visible; } else { _target.visible = _initVal; }; } } }//package com.greensock.plugins
Section 101
//VolumePlugin (com.greensock.plugins.VolumePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _target:Object; protected var _st:SoundTransform; public static const API:Number = 1; public function VolumePlugin(){ this.propName = "volume"; this.overwriteProps = ["volume"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){ return (false); }; _target = _arg1; _st = _target.soundTransform; addTween(_st, "volume", _st.volume, _arg2, "volume"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.soundTransform = _st; } } }//package com.greensock.plugins
Section 102
//OverwriteManager (com.greensock.OverwriteManager) package com.greensock { import flash.utils.*; import com.greensock.core.*; import flash.errors.*; public class OverwriteManager { public static const ALL_ONSTART:int = 4; public static const CONCURRENT:int = 3; public static const ALL_IMMEDIATE:int = 1; public static const PREEXISTING:int = 5; public static const AUTO:int = 2; public static const version:Number = 6.02; public static const NONE:int = 0; public static var enabled:Boolean; public static var mode:int; public static function getGlobalPaused(_arg1:TweenCore):Boolean{ while (_arg1) { if (_arg1.cachedPaused){ return (true); }; _arg1 = _arg1.timeline; }; return (false); } public static function init(_arg1:int=2):int{ if (TweenLite.version < 11.1){ throw (new Error("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); } public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{ var _local5:int; var _local6:Boolean; var _local7:TweenLite; var _local13:uint; var _local14:Number; var _local15:Number; var _local16:TweenCore; var _local17:Number; var _local18:SimpleTimeline; if (_arg4 >= 4){ _local13 = _arg3.length; _local5 = 0; while (_local5 < _local13) { _local7 = _arg3[_local5]; if (_local7 != _arg1){ if (_local7.setEnabled(false, false)){ _local6 = true; }; } else { if (_arg4 == 5){ break; }; }; _local5++; }; return (_local6); }; var _local8:Number = (_arg1.cachedStartTime + 1E-10); var _local9:Array = []; var _local10:Array = []; var _local11:uint; var _local12:uint; _local5 = _arg3.length; while (--_local5 > -1) { _local7 = _arg3[_local5]; if ((((_local7 == _arg1)) || (_local7.gc))){ } else { if (_local7.timeline != _arg1.timeline){ if (!getGlobalPaused(_local7)){ var _temp1 = _local11; _local11 = (_local11 + 1); var _local19 = _temp1; _local10[_local19] = _local7; }; } else { if ((((((_local7.cachedStartTime <= _local8)) && ((((_local7.cachedStartTime + _local7.totalDuration) + 1E-10) > _local8)))) && (!(getGlobalPaused(_local7))))){ var _temp2 = _local12; _local12 = (_local12 + 1); _local19 = _temp2; _local9[_local19] = _local7; }; }; }; }; if (_local11 != 0){ _local14 = _arg1.cachedTimeScale; _local15 = _local8; _local18 = _arg1.timeline; while (_local18) { _local14 = (_local14 * _local18.cachedTimeScale); _local15 = (_local15 + _local18.cachedStartTime); _local18 = _local18.timeline; }; _local8 = (_local14 * _local15); _local5 = _local11; while (--_local5 > -1) { _local16 = _local10[_local5]; _local14 = _local16.cachedTimeScale; _local15 = _local16.cachedStartTime; _local18 = _local16.timeline; while (_local18) { _local14 = (_local14 * _local18.cachedTimeScale); _local15 = (_local15 + _local18.cachedStartTime); _local18 = _local18.timeline; }; _local17 = (_local14 * _local15); if ((((_local17 <= _local8)) && ((((((_local17 + (_local16.totalDuration * _local14)) + 1E-10) > _local8)) || ((_local16.cachedDuration == 0)))))){ var _temp3 = _local12; _local12 = (_local12 + 1); _local19 = _temp3; _local9[_local19] = _local16; }; }; }; if (_local12 == 0){ return (_local6); }; _local5 = _local12; if (_arg4 == 2){ while (--_local5 > -1) { _local7 = _local9[_local5]; if (_local7.killVars(_arg2)){ _local6 = true; }; if ((((_local7.cachedPT1 == null)) && (_local7.initted))){ _local7.setEnabled(false, false); }; }; } else { while (--_local5 > -1) { if (TweenLite(_local9[_local5]).setEnabled(false, false)){ _local6 = true; }; }; }; return (_local6); } } }//package com.greensock
Section 103
//TweenLite (com.greensock.TweenLite) package com.greensock { import flash.events.*; import flash.display.*; import flash.utils.*; import com.greensock.core.*; import com.greensock.plugins.*; public class TweenLite extends TweenCore { protected var _hasPlugins:Boolean; public var propTweenLookup:Object; public var cachedPT1:PropTween; protected var _overwrite:uint; protected var _ease:Function; public var target:Object; public var ratio:Number;// = 0 protected var _overwrittenProps:Object; protected var _notifyPluginsOfEnabled:Boolean; public static const version:Number = 11.32; public static var rootTimeline:SimpleTimeline; public static var fastEaseLookup:Dictionary = new Dictionary(false); public static var onPluginEvent:Function; public static var rootFramesTimeline:SimpleTimeline; public static var defaultEase:Function = TweenLite.easeOut; public static var plugins:Object = {}; public static var masterList:Dictionary = new Dictionary(false); public static var overwriteManager:Object; public static var rootFrame:Number; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _shape:Shape = new Shape(); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onInit:1, onInitParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1}; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local5:TweenLite; super(_arg2, _arg3); this.target = _arg1; if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){ this.cachedTimeScale = 1; }; propTweenLookup = {}; _ease = defaultEase; _overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); var _local4:Array = masterList[_arg1]; if (!_local4){ masterList[_arg1] = [this]; } else { if (_overwrite == 1){ for each (_local5 in _local4) { if (!_local5.gc){ _local5.setEnabled(false, false); }; }; masterList[_arg1] = [this]; } else { _local4[_local4.length] = this; }; }; if (((this.active) || (this.vars.immediateRender))){ renderTime(0, false, true); }; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local4:Boolean; var _local5:Number = this.cachedTime; if (_arg1 >= this.cachedDuration){ this.cachedTotalTime = (this.cachedTime = this.cachedDuration); this.ratio = 1; _local4 = true; if (this.cachedDuration == 0){ if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){ _arg3 = true; }; _rawPrevTime = _arg1; }; } else { if (_arg1 <= 0){ this.cachedTotalTime = (this.cachedTime = (this.ratio = 0)); if (_arg1 < 0){ this.active = false; if (this.cachedDuration == 0){ if (_rawPrevTime > 0){ _arg3 = true; _local4 = true; }; _rawPrevTime = _arg1; }; }; if (((this.cachedReversed) && (!((_local5 == 0))))){ _local4 = true; }; } else { this.cachedTotalTime = (this.cachedTime = _arg1); this.ratio = _ease(_arg1, 0, 1, this.cachedDuration); }; }; if ((((this.cachedTime == _local5)) && (!(_arg3)))){ return; }; if (!this.initted){ init(); if (((!(_local4)) && (this.cachedTime))){ this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration); }; }; if (((!(this.active)) && (!(this.cachedPaused)))){ this.active = true; }; if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){ this.vars.onStart.apply(null, this.vars.onStartParams); }; var _local6:PropTween = this.cachedPT1; while (_local6) { _local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change)); _local6 = _local6.nextNode; }; if (((_hasUpdate) && (!(_arg2)))){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local4){ if (((_hasPlugins) && (this.cachedPT1))){ onPluginEvent("onComplete", this); }; complete(true, _arg2); }; } override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ var _local3:Array; if (_arg1){ _local3 = TweenLite.masterList[this.target]; if (!_local3){ TweenLite.masterList[this.target] = [this]; } else { _local3[_local3.length] = this; }; }; super.setEnabled(_arg1, _arg2); if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){ return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this)); }; return (false); } protected function init():void{ var _local1:String; var _local2:int; var _local3:*; var _local4:Boolean; var _local5:Array; var _local6:PropTween; if (this.vars.onInit){ this.vars.onInit.apply(null, this.vars.onInitParams); }; if (typeof(this.vars.ease) == "function"){ _ease = this.vars.ease; }; if (this.vars.easeParams){ this.vars.proxiedEase = _ease; _ease = easeProxy; }; this.cachedPT1 = null; this.propTweenLookup = {}; for (_local1 in this.vars) { if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){ } else { if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){ this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1); if (this.cachedPT1.name == "_MULTIPLE_"){ _local2 = _local3.overwriteProps.length; while (--_local2 > -1) { this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1; }; } else { this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1; }; if (_local3.priority){ this.cachedPT1.priority = _local3.priority; _local4 = true; }; if (((_local3.onDisable) || (_local3.onEnable))){ _notifyPluginsOfEnabled = true; }; _hasPlugins = true; } else { this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1); this.propTweenLookup[_local1] = this.cachedPT1; }; }; }; if (_local4){ onPluginEvent("onInit", this); }; if (this.vars.runBackwards){ _local6 = this.cachedPT1; while (_local6) { _local6.start = (_local6.start + _local6.change); _local6.change = -(_local6.change); _local6 = _local6.nextNode; }; }; _hasUpdate = Boolean(!((this.vars.onUpdate == null))); if (_overwrittenProps){ killVars(_overwrittenProps); if (this.cachedPT1 == null){ this.setEnabled(false, false); }; }; if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){ if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){ init(); }; }; this.initted = true; } public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{ var _local3:String; var _local4:PropTween; var _local5:Boolean; if (_overwrittenProps == null){ _overwrittenProps = {}; }; for (_local3 in _arg1) { if ((_local3 in propTweenLookup)){ _local4 = propTweenLookup[_local3]; if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){ _local4.target.killProps(_arg1); if (_local4.target.overwriteProps.length == 0){ _local4.name = ""; }; }; if (_local4.name != "_MULTIPLE_"){ if (_local4.nextNode){ _local4.nextNode.prevNode = _local4.prevNode; }; if (_local4.prevNode){ _local4.prevNode.nextNode = _local4.nextNode; } else { if (this.cachedPT1 == _local4){ this.cachedPT1 = _local4.nextNode; }; }; if (((_local4.isPlugin) && (_local4.target.onDisable))){ _local4.target.onDisable(); if (_local4.target.activeDisable){ _local5 = true; }; }; delete propTweenLookup[_local3]; }; }; if (((_arg2) && (!((_arg1 == _overwrittenProps))))){ _overwrittenProps[_local3] = 1; }; }; return (_local5); } override public function invalidate():void{ if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){ onPluginEvent("onDisable", this); }; this.cachedPT1 = null; _overwrittenProps = null; _hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false))); this.propTweenLookup = {}; } public static function initClass():void{ rootFrame = 0; rootTimeline = new SimpleTimeline(null); rootFramesTimeline = new SimpleTimeline(null); rootTimeline.cachedStartTime = (getTimer() * 0.001); rootFramesTimeline.cachedStartTime = rootFrame; rootTimeline.autoRemoveChildren = true; rootFramesTimeline.autoRemoveChildren = true; _shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; } public static function killTweensOf(_arg1:Object, _arg2:Boolean=false, _arg3:Object=null):void{ var _local4:Array; var _local5:int; var _local6:TweenLite; if ((_arg1 in masterList)){ _local4 = masterList[_arg1]; _local5 = _local4.length; while (--_local5 > -1) { _local6 = _local4[_local5]; if (!_local6.gc){ if (_arg2){ _local6.complete(false, false); }; if (_arg3 != null){ _local6.killVars(_arg3); }; if ((((_arg3 == null)) || ((((_local6.cachedPT1 == null)) && (_local6.initted))))){ _local6.setEnabled(false, false); }; }; }; if (_arg3 == null){ delete masterList[_arg1]; }; }; } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (new TweenLite(_arg1, _arg2, _arg3)); } protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (1 - (_arg1 / _arg4)); return ((1 - (_arg1 * _arg1))); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0})); } protected static function updateAll(_arg1:Event=null):void{ var _local2:Dictionary; var _local3:Object; var _local4:Array; var _local5:int; rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false); rootFrame++; rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false); if (!(rootFrame % 60)){ _local2 = masterList; for (_local3 in _local2) { _local4 = _local2[_local3]; _local5 = _local4.length; while (--_local5 > -1) { if (TweenLite(_local4[_local5]).gc){ _local4.splice(_local5, 1); }; }; if (_local4.length == 0){ delete _local2[_local3]; }; }; }; } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package com.greensock
Section 104
//TweenMax (com.greensock.TweenMax) package com.greensock { import flash.events.*; import flash.display.*; import flash.utils.*; import com.greensock.core.*; import com.greensock.plugins.*; import com.greensock.events.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _cyclesComplete:uint;// = 0 protected var _dispatcher:EventDispatcher; protected var _hasUpdateListener:Boolean; protected var _easeType:uint; protected var _repeatDelay:Number;// = 0 public var yoyo:Boolean; protected var _easePower:uint; protected var _repeat:int;// = 0 public static const version:Number = 11.21; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2); ; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (TweenLite.version < 11.2){ throw (new Error("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.")); }; this.yoyo = Boolean(this.vars.yoyo); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); this.cacheIsDirty = true; if (((((((((((this.vars.onCompleteListener) || (this.vars.onInitListener))) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){ initDispatcher(); if ((((_arg2 == 0)) && ((_delay == 0)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); }; }; if (((("timeScale" in this.vars)) && (!((this.target is TweenCore))))){ this.cachedTimeScale = this.vars.timeScale; }; } public function dispatchEvent(_arg1:Event):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1)); } public function set timeScale(_arg1:Number):void{ if (_arg1 == 0){ _arg1 = 0.0001; }; var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime; this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1)); this.cachedTimeScale = _arg1; setDirtyCache(false); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local6:Boolean; var _local7:Boolean; var _local8:Boolean; var _local10:Number; var _local11:int; var _local12:Number; var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration; var _local5:Number = this.cachedTime; if (_arg1 >= _local4){ this.cachedTotalTime = _local4; this.cachedTime = this.cachedDuration; this.ratio = 1; _local6 = true; if (this.cachedDuration == 0){ if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){ _arg3 = true; }; _rawPrevTime = _arg1; }; } else { if (_arg1 <= 0){ if (_arg1 < 0){ this.active = false; if (this.cachedDuration == 0){ if (_rawPrevTime > 0){ _arg3 = true; _local6 = true; }; _rawPrevTime = _arg1; }; }; this.cachedTotalTime = (this.cachedTime = (this.ratio = 0)); if (((this.cachedReversed) && (!((_local5 == 0))))){ _local6 = true; }; } else { this.cachedTotalTime = (this.cachedTime = _arg1); _local8 = true; }; }; if (_repeat != 0){ _local10 = (this.cachedDuration + _repeatDelay); if (_local6){ if (((this.yoyo) && ((_repeat % 2)))){ this.cachedTime = (this.ratio = 0); }; } else { if (_arg1 > 0){ if (_cyclesComplete != (_cyclesComplete = int((this.cachedTotalTime / _local10)))){ _local7 = true; }; this.cachedTime = (((this.cachedTotalTime / _local10) - _cyclesComplete) * _local10); if (((this.yoyo) && ((_cyclesComplete % 2)))){ this.cachedTime = (this.cachedDuration - this.cachedTime); } else { if (this.cachedTime >= this.cachedDuration){ this.cachedTime = this.cachedDuration; this.ratio = 1; _local8 = false; }; }; if (this.cachedTime <= 0){ this.cachedTime = (this.ratio = 0); _local8 = false; }; }; }; }; if ((((_local5 == this.cachedTime)) && (!(_arg3)))){ return; }; if (!this.initted){ init(); }; if (((!(this.active)) && (!(this.cachedPaused)))){ this.active = true; }; if (_local8){ if (_easeType){ _local11 = _easePower; _local12 = (this.cachedTime / this.cachedDuration); if (_easeType == 2){ _local12 = (1 - _local12); this.ratio = _local12; while (--_local11 > -1) { this.ratio = (_local12 * this.ratio); }; this.ratio = (1 - this.ratio); } else { if (_easeType == 1){ this.ratio = _local12; while (--_local11 > -1) { this.ratio = (_local12 * this.ratio); }; } else { if (_local12 < 0.5){ _local12 = (_local12 * 2); this.ratio = _local12; while (--_local11 > -1) { this.ratio = (_local12 * this.ratio); }; this.ratio = (this.ratio * 0.5); } else { _local12 = ((1 - _local12) * 2); this.ratio = _local12; while (--_local11 > -1) { this.ratio = (_local12 * this.ratio); }; this.ratio = (1 - (0.5 * this.ratio)); }; }; }; } else { this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration); }; }; if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!(_arg2)))){ if (this.vars.onStart){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); }; }; var _local9:PropTween = this.cachedPT1; while (_local9) { _local9.target[_local9.property] = (_local9.start + (this.ratio * _local9.change)); _local9 = _local9.nextNode; }; if (((_hasUpdate) && (!(_arg2)))){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (((_hasUpdateListener) && (!(_arg2)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); }; if (_local6){ if (((_hasPlugins) && (this.cachedPT1))){ onPluginEvent("onComplete", this); }; complete(true, _arg2); } else { if (((_local7) && (!(_arg2)))){ if (this.vars.onRepeat){ this.vars.onRepeat.apply(null, this.vars.onRepeatParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT)); }; }; }; } override public function set totalDuration(_arg1:Number):void{ if (_repeat == -1){ return; }; this.duration = ((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1)); } 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){ _hasUpdateListener = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } protected function insertPropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String, _arg6:Boolean, _arg7:PropTween):PropTween{ var _local9:Array; var _local10:int; var _local8:PropTween = new PropTween(_arg1, _arg2, _arg3, ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4), _arg5, _arg6, _arg7); if (((_arg6) && ((_arg5 == "_MULTIPLE_")))){ _local9 = _arg1.overwriteProps; _local10 = _local9.length; while (--_local10 > -1) { this.propTweenLookup[_local9[_local10]] = _local8; }; } else { this.propTweenLookup[_arg5] = _local8; }; return (_local8); } override protected function init():void{ var _local1:TweenMax; var _local2:int; var _local3:String; var _local4:String; var _local5:Array; var _local6:Object; var _local7:PropTween; var _local8:PropTween; var _local9:int; if (this.vars.startAt){ this.vars.startAt.overwrite = 0; this.vars.startAt.immediateRender = true; _local1 = new TweenMax(this.target, 0, this.vars.startAt); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.INIT)); }; super.init(); if ((_ease in fastEaseLookup)){ _easeType = fastEaseLookup[_ease][0]; _easePower = fastEaseLookup[_ease][1]; }; if (((!((this.vars.roundProps == null))) && (("roundProps" in TweenLite.plugins)))){ _local5 = this.vars.roundProps; _local9 = _local5.length; while (--_local9 > -1) { _local3 = _local5[_local9]; _local8 = this.cachedPT1; while (_local8) { if (_local8.name == _local3){ if (_local8.isPlugin){ _local8.target.round = true; } else { if (_local6 == null){ _local6 = new TweenLite.plugins.roundProps(); _local6.add(_local8.target, _local3, _local8.start, _local8.change); _hasPlugins = true; _local7 = insertPropTween(_local6, "changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1); this.cachedPT1 = _local7; } else { _local6.add(_local8.target, _local3, _local8.start, _local8.change); }; this.removePropTween(_local8); this.propTweenLookup[_local3] = _local7; }; } else { if (((((_local8.isPlugin) && ((_local8.name == "_MULTIPLE_")))) && (!(_local8.target.round)))){ _local4 = ((" " + _local8.target.overwriteProps.join(" ")) + " "); if (_local4.indexOf(((" " + _local3) + " ")) != -1){ _local8.target.round = true; }; }; }; _local8 = _local8.nextNode; }; }; }; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local4:Object = {}; _local4[_arg1] = _arg2; updateTo(_local4, !(_arg3)); } public function willTrigger(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1)); } public function hasEventListener(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1)); } protected function initDispatcher():void{ if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); }; if ((this.vars.onInitListener is Function)){ _dispatcher.addEventListener(TweenEvent.INIT, this.vars.onInitListener, false, 0, true); }; 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); _hasUpdateListener = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; if ((this.vars.onRepeatListener is Function)){ _dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true); }; if ((this.vars.onReverseCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true); }; } public function set currentProgress(_arg1:Number):void{ if (_cyclesComplete == 0){ setTotalTime((this.duration * _arg1), false); } else { setTotalTime(((this.duration * _arg1) + (_cyclesComplete * this.cachedDuration)), false); }; } public function get totalProgress():Number{ return ((this.cachedTotalTime / this.totalDuration)); } public function set totalProgress(_arg1:Number):void{ setTotalTime((this.totalDuration * _arg1), false); } protected function removePropTween(_arg1:PropTween):Boolean{ if (_arg1.nextNode){ _arg1.nextNode.prevNode = _arg1.prevNode; }; if (_arg1.prevNode){ _arg1.prevNode.nextNode = _arg1.nextNode; } else { if (this.cachedPT1 == _arg1){ this.cachedPT1 = _arg1.nextNode; }; }; if (((_arg1.isPlugin) && (_arg1.target.onDisable))){ _arg1.target.onDisable(); if (_arg1.target.activeDisable){ return (true); }; }; return (false); } public function get currentProgress():Number{ return ((this.cachedTime / this.duration)); } public function get repeat():int{ return (_repeat); } public function updateTo(_arg1:Object, _arg2:Boolean=false):void{ var _local4:String; var _local5:Number; var _local6:PropTween; var _local7:Number; var _local3:Number = this.ratio; if (((((_arg2) && (!((this.timeline == null))))) && ((this.cachedStartTime < this.timeline.cachedTime)))){ this.cachedStartTime = this.timeline.cachedTime; this.setDirtyCache(false); if (this.gc){ this.setEnabled(true, false); } else { this.timeline.addChild(this); }; }; for (_local4 in _arg1) { this.vars[_local4] = _arg1[_local4]; }; if (this.initted){ this.initted = false; if (!_arg2){ init(); if (((((!(_arg2)) && ((this.cachedTime > 0)))) && ((this.cachedTime < this.cachedDuration)))){ _local5 = (1 / (1 - _local3)); _local6 = this.cachedPT1; while (_local6) { _local7 = (_local6.start + _local6.change); _local6.change = (_local6.change * _local5); _local6.start = (_local7 - _local6.change); _local6 = _local6.nextNode; }; }; }; }; } override public function set currentTime(_arg1:Number):void{ if (_cyclesComplete == 0){ } else { if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){ _arg1 = ((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay))); } else { _arg1 = (_arg1 + (_cyclesComplete * (this.duration + _repeatDelay))); }; }; setTotalTime(_arg1, false); } public function get repeatDelay():Number{ return (_repeatDelay); } public function killProperties(_arg1:Array):void{ var _local2:Object = {}; var _local3:int = _arg1.length; while (--_local3 > -1) { _local2[_arg1[_local3]] = true; }; killVars(_local2); } public function set repeatDelay(_arg1:Number):void{ _repeatDelay = _arg1; setDirtyCache(true); } public function set repeat(_arg1:int):void{ _repeat = _arg1; setDirtyCache(true); } override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{ super.complete(_arg1, _arg2); if (((!(_arg2)) && (_dispatcher))){ if ((((this.cachedTotalTime == this.cachedTotalDuration)) && (!(this.cachedReversed)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } else { if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE)); }; }; }; } override public function invalidate():void{ this.yoyo = Boolean((this.vars.yoyo == true)); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); _hasUpdateListener = false; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); }; setDirtyCache(true); super.invalidate(); } public function get timeScale():Number{ return (this.cachedTimeScale); } override public function get totalDuration():Number{ if (this.cacheIsDirty){ this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat)); this.cacheIsDirty = false; }; return (this.cachedTotalDuration); } public static function set globalTimeScale(_arg1:Number):void{ if (_arg1 == 0){ _arg1 = 0.0001; }; if (TweenLite.rootTimeline == null){ TweenLite.to({}, 0, {}); }; var _local2:SimpleTimeline = TweenLite.rootTimeline; var _local3:Number = (getTimer() * 0.001); _local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1)); _local2 = TweenLite.rootFramesTimeline; _local3 = TweenLite.rootFrame; _local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1)); TweenLite.rootFramesTimeline.cachedTimeScale = (TweenLite.rootTimeline.cachedTimeScale = _arg1); } public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenMax{ _arg4.startAt = _arg3; if (_arg3.immediateRender){ _arg4.immediateRender = true; }; return (new TweenMax(_arg1, _arg2, _arg4)); } public static function allFromTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{ _arg4.startAt = _arg3; if (_arg3.immediateRender){ _arg4.immediateRender = true; }; return (allTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7)); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=true):void{ changePause(true, _arg1, _arg2); } public static function getTweensOf(_arg1:Object):Array{ var _local4:int; var _local5:uint; var _local2:Array = masterList[_arg1]; var _local3:Array = []; if (_local2){ _local4 = _local2.length; _local5 = 0; while (--_local4 > -1) { if (!_local2[_local4].gc){ var _temp1 = _local5; _local5 = (_local5 + 1); var _local6 = _temp1; _local3[_local6] = _local2[_local4]; }; }; }; return (_local3); } public static function get globalTimeScale():Number{ return (((TweenLite.rootTimeline)==null) ? 1 : TweenLite.rootTimeline.cachedTimeScale); } public static function killChildTweensOf(_arg1:DisplayObjectContainer, _arg2:Boolean=false):void{ var _local4:Object; var _local5:DisplayObjectContainer; var _local3:Array = getAllTweens(); var _local6:int = _local3.length; while (--_local6 > -1) { _local4 = _local3[_local6].target; if ((_local4 is DisplayObject)){ _local5 = _local4.parent; while (_local5) { if (_local5 == _arg1){ if (_arg2){ _local3[_local6].complete(false); } else { _local3[_local6].setEnabled(false, false); }; }; _local5 = _local5.parent; }; }; }; } 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, immediateRender:false, useFrames:_arg4, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local4:TweenLite; var _local2:Array = getTweensOf(_arg1); var _local3:int = _local2.length; while (--_local3 > -1) { _local4 = _local2[_local3]; if (((_local4.active) || ((((_local4.cachedStartTime == _local4.timeline.cachedTime)) && (_local4.timeline.active))))){ return (true); }; }; 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; while (--_local6 > -1) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); } else { _local4[_local6].setEnabled(false, false); }; }; }; } private static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = _local4.length; while (--_local6 > -1) { _local5 = (TweenLite(_local4[_local6]).target == TweenLite(_local4[_local6]).vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ TweenCore(_local4[_local6]).paused = _arg1; }; }; } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (allTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6)); } public static function getAllTweens():Array{ var _local4:Array; var _local5:int; var _local1:Dictionary = masterList; var _local2:uint; var _local3:Array = []; for each (_local4 in _local1) { _local5 = _local4.length; while (--_local5 > -1) { if (!TweenLite(_local4[_local5]).gc){ var _temp1 = _local2; _local2 = (_local2 + 1); var _local8 = _temp1; _local3[_local8] = _local4[_local5]; }; }; }; return (_local3); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=true):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, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ var i:int; var varsDup:Object; var p:String; var onCompleteProxy:Function; var onCompleteParamsProxy:Array; var targets = _arg1; var duration = _arg2; var vars = _arg3; var stagger = _arg4; var onCompleteAll = _arg5; var onCompleteAllParams = _arg6; var l:uint = targets.length; var a:Array = []; var curDelay:Number = ((vars.delay) || (0)); onCompleteProxy = vars.onComplete; onCompleteParamsProxy = vars.onCompleteParams; var lastIndex:int = ((stagger)<=0) ? 0 : (l - 1); i = 0; while (i < l) { varsDup = {}; for (p in vars) { varsDup[p] = vars[p]; }; varsDup.delay = curDelay; if ((((i == lastIndex)) && (!((onCompleteAll == null))))){ varsDup.onComplete = function ():void{ if (onCompleteProxy != null){ onCompleteProxy.apply(null, onCompleteParamsProxy); }; onCompleteAll.apply(null, onCompleteAllParams); }; }; a[a.length] = new TweenMax(targets[i], duration, varsDup); curDelay = (curDelay + stagger); i = (i + 1); }; return (a); } TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]); } }//package com.greensock
Section 105
//Global (com.inruntime.utils.Global) package com.inruntime.utils { import flash.events.*; import flash.utils.*; public dynamic class Global extends Proxy implements IEventDispatcher { private var globalKeychain:GlobalHashMap; private var globalIncrement:int;// = 1 private var globalRepository:GlobalHashMap; private var dispatcher:EventDispatcher; private static var allowInstantiation:Boolean = false; private static var instance:Global = null; public function Global(_arg1:Boolean=true){ if (!allowInstantiation){ throw (new Error("Error: Instantiation failed: Use Global.getInstance() instead of new Global().")); }; globalRepository = new GlobalHashMap(_arg1); globalKeychain = new GlobalHashMap(_arg1); dispatcher = new EventDispatcher(this); } public function containsKey(_arg1:String):Boolean{ var _local2:Boolean = globalRepository.containsKey(_arg1); return (_local2); } public function remove(_arg1:String):void{ globalRepository.remove(_arg1); globalKeychain.remove(_arg1); } public function willTrigger(_arg1:String):Boolean{ return (dispatcher.willTrigger(_arg1)); } public function take(_arg1){ return (globalRepository.getValue(_arg1)); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ return (globalRepository.getValue(_arg1)); } public function put(_arg1:String, _arg2):void{ globalRepository.put(_arg1, _arg2); } public function getId(_arg1:String):int{ return (globalKeychain.getValue(_arg1)); } public function containsValue(_arg1):Boolean{ var _local2:Boolean = globalRepository.containsValue(_arg1); return (_local2); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function callProperty(_arg1, ... _args){ var _local3:*; switch (_arg1.toString()){ default: _local3 = globalRepository.getValue(_arg1).apply(globalRepository, _args); break; }; return (_local3); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{ if (_arg1 < (globalIncrement - 1)){ if (containsId((_arg1 + 1))){ return ((_arg1 + 1)); }; return (nextNameIndex((_arg1 + 1))); //unresolved jump }; return (0); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ var _local3:* = globalRepository.getValue(_arg1); if (!_local3){ globalKeychain.put(_arg1, globalIncrement.toString()); globalIncrement++; }; globalRepository.put(_arg1, _arg2); if (_local3 !== _arg2){ dispatchEvent(new GlobalEvent(GlobalEvent.PROPERTY_CHANGED, _arg1)); }; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ dispatcher.removeEventListener(_arg1, _arg2, _arg3); } public function containsId(_arg1:int):Boolean{ var _local2:Boolean = globalKeychain.containsValue(_arg1); return (_local2); } public function clear():void{ globalRepository.clear(); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{ return (getKey(_arg1)); } public function dispatchEvent(_arg1:Event):Boolean{ return (dispatcher.dispatchEvent(_arg1)); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4); } public function get length():int{ var _local1:int = globalRepository.size(); return (_local1); } public function getKey(_arg1:int):String{ return (globalKeychain.getKey(_arg1)); } public function toString():String{ var _local2:*; var _local1:Array = new Array(); for (_local2 in globalRepository) { if (globalRepository[_local2] != null){ _local1.push((((("{" + _local2) + ":") + globalRepository[_local2]) + "}")); }; }; return (_local1.join(",")); } public function hasEventListener(_arg1:String):Boolean{ return (dispatcher.hasEventListener(_arg1)); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextValue(_arg1:int){ var _local2:String = getKey(_arg1); return (globalRepository.getValue(_local2)); } public static function getInstance(_arg1:Boolean=true):Global{ if (Global.instance == null){ Global.allowInstantiation = true; Global.instance = new Global(_arg1); Global.allowInstantiation = false; }; return (Global.instance); } } }//package com.inruntime.utils import flash.utils.*; dynamic class GlobalHashMap extends Dictionary { private function GlobalHashMap(_arg1:Boolean=true){ super(_arg1); } public function containsKey(_arg1:String):Boolean{ return (!((this[_arg1] == null))); } public function size():int{ var _local2:String; var _local1:int; for (_local2 in this) { if (this[_local2] != null){ _local1++; }; }; return (_local1); } public function containsValue(_arg1):Boolean{ var _local2:String; for (_local2 in this) { if (this[_local2] == _arg1){ return (true); }; }; return (false); } public function remove(_arg1:String):void{ this[_arg1] = null; } public function getKey(_arg1):String{ var _local2:String; for (_local2 in this) { if (this[_local2] == _arg1){ return (_local2); }; }; return (null); } public function isEmpty():Boolean{ var _local2:String; var _local1:int; for (_local2 in this) { if (this[_local2] != null){ _local1++; }; }; return ((_local1 <= 0)); } public function getValue(_arg1:String){ if (this[_arg1] != null){ return (this[_arg1]); }; } public function clear():void{ var _local1:String; for (_local1 in this) { this[_local1] = null; }; } public function put(_arg1:String, _arg2):void{ this[_arg1] = _arg2; } }
Section 106
//GlobalEvent (com.inruntime.utils.GlobalEvent) package com.inruntime.utils { import flash.events.*; public class GlobalEvent extends Event { public var property; public static const PROPERTY_CHANGED:String = "globalPropertyChanged"; public function GlobalEvent(_arg1:String, _arg2, _arg3:Boolean=false, _arg4:Boolean=false){ this.property = _arg2; super(_arg1, _arg3, _arg4); } override public function clone():Event{ return (new GlobalEvent(type, property, bubbles, cancelable)); } } }//package com.inruntime.utils
Section 107
//KeyObject (com.senocular.utils.KeyObject) package com.senocular.utils { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.ui.*; public dynamic class KeyObject extends Proxy { private static var keysDown:Object; private static var stage:Stage; public function KeyObject(_arg1:Stage){ construct(_arg1); } private function keyReleased(_arg1:KeyboardEvent):void{ delete keysDown[_arg1.keyCode]; } public function deconstruct():void{ stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.removeEventListener(KeyboardEvent.KEY_UP, keyReleased); keysDown = new Object(); KeyObject.stage = null; } public function construct(_arg1:Stage):void{ KeyObject.stage = _arg1; keysDown = new Object(); _arg1.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); _arg1.addEventListener(KeyboardEvent.KEY_UP, keyReleased); } private function keyPressed(_arg1:KeyboardEvent):void{ keysDown[_arg1.keyCode] = true; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ return (((_arg1 in Keyboard)) ? Keyboard[_arg1] : -1); } public function isDown(_arg1:uint):Boolean{ return (Boolean((_arg1 in keysDown))); } } }//package com.senocular.utils
Section 108
//MochiAd (mochi.as3.MochiAd) package mochi.as3 { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.system.*; import flash.net.*; public class MochiAd { public static function getVersion():String{ return (MochiServices.getVersion()); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:5500, 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 = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._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{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; 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]; if (Security.sandboxType == "application"){ return (_local2); }; 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:5500, 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 = MochiAd._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 (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._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 { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.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{ MochiAd.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(); MochiAd.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 mc:MovieClip; 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 = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!(clip is DisplayObject)){ trace("Warning: Object passed as container clip not a descendant of the DisplayObject type"); return (null); }; if (MovieClip(clip).stage == null){ trace("Warning: Container clip for ad is not attached to the stage"); return (null); }; if (!MochiAd._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; mc = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._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; } else { trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal"); }; 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(); mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.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.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{ trace("[MochiAds] Blocked URL"); }); if (!options.skip){ 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.right - _local3.left); _local5 = (_local3.top - _local3.bottom); }; 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": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.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:5500, 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{ }, progress_override:function (_arg1:Object):Number{ return (NaN); }, bar_offset:0}; options = MochiAd._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; if (options.skip){ ad_timeout = 0; }; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._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 + options.bar_offset); bar.y = (h - 20); }; var bar_w:Number = ((w - bar.x) - 10); 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(bar_w, 0); backing.lineTo(bar_w, 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(bar_w, 0); inside.lineTo(bar_w, 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(bar_w, 0); outline.lineTo(bar_w, 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 { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var progress:Number = Math.min(1, options.progress_override(clip)); var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; if (!isNaN(progress)){ complete = (progress == 1); } else { if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){ complete = true; } else { if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.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{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local12: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; var _local7:Number = Math.min(1, options.progress_override(_local1)); if (_local7 == 1){ complete = true; }; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local8:Number = ((100 * _local6) / _local5); if (!isNaN(_local7)){ _local8 = (100 * _local7); }; var _local9:Number = ((100 * _local3) / chk.ad_msec); var _local10:Object = this._mochiad_bar._inside; var _local11:Number = Math.min(100, Math.min(((_local8) || (0)), _local9)); _local11 = Math.max(this.last_pcnt, _local11); this.last_pcnt = _local11; _local10.scaleX = (_local11 * 0.01); options.ad_progress(_local11); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8}); if (_local8 >= 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local12 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local12 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local8 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (unloaded){ MochiAd.unload(_local1); } else { 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"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.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 mochi.as3
Section 109
//MochiCoins (mochi.as3.MochiCoins) package mochi.as3 { public class MochiCoins { public static const STORE_HIDE:String = "StoreHide"; public static const NO_USER:String = "NoUser"; public static const IO_ERROR:String = "IOError"; public static const ITEM_NEW:String = "ItemNew"; public static const ITEM_OWNED:String = "ItemOwned"; public static const STORE_ITEMS:String = "StoreItems"; public static const ERROR:String = "Error"; public static const STORE_SHOW:String = "StoreShow"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public static var _inventory:MochiInventory; public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function getStoreItems():void{ MochiServices.send("coins_getStoreItems"); } public static function get inventory():MochiInventory{ return (_inventory); } public static function showStore(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showStore", {options:_arg1}, null, null); } public static function requestFunding(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_requestFunding", _arg1); } public static function showItem(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showItem call must pass an Object with an item key"); return; }; MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showItem", {options:_arg1}, null, null); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function showVideo(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showVideo call must pass an Object with an item key"); return; }; MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showVideo", {options:_arg1}, null, null); } addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{ _inventory = new MochiInventory(); }); addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{ _inventory = null; }); } }//package mochi.as3
Section 110
//MochiDigits (mochi.as3.MochiDigits) package mochi.as3 { public final class MochiDigits { private var Sibling:MochiDigits; private var Fragment:Number; private var Encoder:Number; public function MochiDigits(_arg1:Number=0, _arg2:uint=0):void{ Encoder = 0; setValue(_arg1, _arg2); } public function reencode():void{ var _local1:uint = int((2147483647 * Math.random())); Fragment = (Fragment ^ (_local1 ^ Encoder)); Encoder = _local1; } public function set value(_arg1:Number):void{ setValue(_arg1); } public function toString():String{ var _local1:String = String.fromCharCode((Fragment ^ Encoder)); if (Sibling != null){ _local1 = (_local1 + Sibling.toString()); }; return (_local1); } public function setValue(_arg1:Number=0, _arg2:uint=0):void{ var _local3:String = _arg1.toString(); var _temp1 = _arg2; _arg2 = (_arg2 + 1); Fragment = (_local3.charCodeAt(_temp1) ^ Encoder); if (_arg2 < _local3.length){ Sibling = new MochiDigits(_arg1, _arg2); } else { Sibling = null; }; reencode(); } public function get value():Number{ return (Number(this.toString())); } public function addValue(_arg1:Number):void{ value = (value + _arg1); } } }//package mochi.as3
Section 111
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher) package mochi.as3 { public class MochiEventDispatcher { private var eventTable:Object; public function MochiEventDispatcher():void{ eventTable = {}; } public function triggerEvent(_arg1:String, _arg2:Object):void{ var _local3:Object; if (eventTable[_arg1] == undefined){ return; }; for (_local3 in eventTable[_arg1]) { var _local6 = eventTable[_arg1]; _local6[_local3](_arg2); }; } public function removeEventListener(_arg1:String, _arg2:Function):void{ var _local3:Object; if (eventTable[_arg1] == undefined){ eventTable[_arg1] = []; return; }; for (_local3 in eventTable[_arg1]) { if (eventTable[_arg1][_local3] != _arg2){ } else { eventTable[_arg1].splice(Number(_local3), 1); }; }; } public function addEventListener(_arg1:String, _arg2:Function):void{ removeEventListener(_arg1, _arg2); eventTable[_arg1].push(_arg2); } } }//package mochi.as3
Section 112
//MochiEvents (mochi.as3.MochiEvents) package mochi.as3 { import flash.display.*; public class MochiEvents { public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL"; public static const FORMAT_LONG:String = "LongForm"; public static const ALIGN_BOTTOM:String = "ALIGN_B"; public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived"; public static const FORMAT_SHORT:String = "ShortForm"; public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR"; public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR"; public static const ALIGN_TOP:String = "ALIGN_T"; public static const ALIGN_LEFT:String = "ALIGN_L"; public static const ALIGN_RIGHT:String = "ALIGN_R"; public static const ALIGN_TOP_LEFT:String = "ALIGN_TL"; public static const ALIGN_CENTER:String = "ALIGN_C"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); private static var gameStart:Number; private static var levelStart:Number; public static function endPlay():void{ MochiServices.send("events_clearRoundID", null, null, null); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function trackEvent(_arg1:String, _arg2=null):void{ MochiServices.send("events_trackEvent", {tag:_arg1, value:_arg2}, null, null); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function startSession(_arg1:String):void{ MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{ var _local4:Object; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; _local3.clip = _arg1; MochiServices.send("events_setNotifications", _local3, null, null); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function startPlay(_arg1:String="gameplay"):void{ MochiServices.send("events_setRoundID", {tag:String(_arg1)}, null, null); } } }//package mochi.as3
Section 113
//MochiInventory (mochi.as3.MochiInventory) package mochi.as3 { import flash.events.*; import flash.utils.*; public dynamic class MochiInventory extends Proxy { private var _timer:Timer; private var _names:Array; private var _syncID:Number; private var _consumableProperties:Object; private var _storeSync:Object; private var _outstandingID:Number; private var _syncPending:Boolean; public static const READY:String = "InvReady"; public static const ERROR:String = "Error"; public static const IO_ERROR:String = "IoError"; private static const KEY_SALT:String = " syncMaint"; public static const WRITTEN:String = "InvWritten"; public static const NOT_READY:String = "InvNotReady"; public static const VALUE_ERROR:String = "InvValueError"; private static const CONSUMER_KEY:String = "MochiConsumables"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public function MochiInventory():void{ MochiCoins.addEventListener(MochiCoins.ITEM_OWNED, itemOwned); MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems); MochiSocial.addEventListener(MochiSocial.LOGGED_IN, loggedIn); MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, loggedOut); _storeSync = new Object(); _syncPending = false; _outstandingID = 0; _syncID = 0; _timer = new Timer(1000); _timer.addEventListener(TimerEvent.TIMER, sync); _timer.start(); if (MochiSocial.loggedIn){ loggedIn(); } else { loggedOut(); }; } private function newItems(_arg1:Object):void{ if (!this[(_arg1.id + KEY_SALT)]){ this[(_arg1.id + KEY_SALT)] = 0; }; if (!this[_arg1.id]){ this[_arg1.id] = 0; }; this[(_arg1.id + KEY_SALT)] = (this[(_arg1.id + KEY_SALT)] + _arg1.count); this[_arg1.id] = (this[_arg1.id] + _arg1.count); if (((_arg1.privateProperties) && (_arg1.privateProperties.consumable))){ if (!this[_arg1.privateProperties.tag]){ this[_arg1.privateProperties.tag] = 0; }; this[_arg1.privateProperties.tag] = (this[_arg1.privateProperties.tag] + (_arg1.privateProperties.inc * _arg1.count)); }; } public function release():void{ MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems); MochiSocial.removeEventListener(MochiSocial.LOGGED_IN, loggedIn); MochiSocial.removeEventListener(MochiSocial.LOGGED_OUT, loggedOut); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ if (_consumableProperties == null){ triggerEvent(ERROR, {type:NOT_READY}); return (-1); }; if (_consumableProperties[_arg1]){ return (MochiDigits(_consumableProperties[_arg1]).value); }; return (undefined); } private function loggedIn(_arg1:Object=null):void{ MochiUserData.get(CONSUMER_KEY, getConsumableBag); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(_arg1):Boolean{ if (_consumableProperties == null){ triggerEvent(ERROR, {type:NOT_READY}); return (false); }; if (_consumableProperties[_arg1] == undefined){ return (false); }; return (true); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{ return (((_arg1)>=_names.length) ? 0 : (_arg1 + 1)); } private function putConsumableBag(_arg1:MochiUserData):void{ _syncPending = false; if (_arg1.error){ triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error}); _outstandingID = -1; }; triggerEvent(WRITTEN, {}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ var _local3:MochiDigits; if (_consumableProperties == null){ triggerEvent(ERROR, {type:NOT_READY}); return; }; if (!(_arg2 is Number)){ triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:_arg2}); return; }; if (_consumableProperties[_arg1]){ _local3 = MochiDigits(_consumableProperties[_arg1]); if (_local3.value == _arg2){ return; }; _local3.value = _arg2; } else { _names.push(_arg1); _consumableProperties[_arg1] = new MochiDigits(_arg2); }; _syncID++; } private function itemOwned(_arg1:Object):void{ _storeSync[_arg1.id] = {properties:_arg1.properties, count:_arg1.count}; } private function sync(_arg1:Event=null):void{ var _local3:String; if (((_syncPending) || ((_syncID == _outstandingID)))){ return; }; _outstandingID = _syncID; var _local2:Object = {}; for (_local3 in _consumableProperties) { _local2[_local3] = MochiDigits(_consumableProperties[_local3]).value; }; MochiUserData.put(CONSUMER_KEY, _local2, putConsumableBag); _syncPending = true; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{ return (_names[(_arg1 - 1)]); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(_arg1):Boolean{ if (!_consumableProperties[_arg1]){ return (false); }; _names.splice(_names.indexOf(_arg1), 1); delete _consumableProperties[_arg1]; return (true); } private function getConsumableBag(_arg1:MochiUserData):void{ var _local2:String; var _local3:Number; if (_arg1.error){ triggerEvent(ERROR, {type:IO_ERROR, error:_arg1.error}); return; }; _consumableProperties = {}; _names = new Array(); if (_arg1.data){ for (_local2 in _arg1.data) { _names.push(_local2); _consumableProperties[_local2] = new MochiDigits(_arg1.data[_local2]); }; }; for (_local2 in _storeSync) { _local3 = _storeSync[_local2].count; if (_consumableProperties[(_local2 + KEY_SALT)]){ _local3 = (_local3 - _consumableProperties[(_local2 + KEY_SALT)].value); }; if (_local3 == 0){ } else { newItems({id:_local2, count:_local3, properties:_storeSync[_local2].properties}); }; }; triggerEvent(READY, {}); } private function loggedOut(_arg1:Object=null):void{ _consumableProperties = null; } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } } }//package mochi.as3
Section 114
//MochiScores (mochi.as3.MochiScores) package mochi.as3 { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var n:Number; var options = _arg1; if (options != null){ delete options.clip; MochiServices.setContainer(); MochiServices.bringToTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; } else { if ((options.score is MochiDigits)){ options.score = options.score.value; }; }; n = Number(options.score); if (isNaN(n)){ trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'")); } else { if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){ trace((("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite")); } else { if (Math.floor(n) != n){ trace((("WARNING: Submitted score '" + options.score) + "' will be truncated")); }; options.score = n; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.warnID(options.boardID, true); trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal"); MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; var _local2:Object = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ _arg1 = Number(_arg1); if (isNaN(_arg1)){ trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is 'Not a Number'")); } else { if ((((_arg1 == Number.NEGATIVE_INFINITY)) || ((_arg1 == Number.POSITIVE_INFINITY)))){ trace((("ERROR: Submitted score '" + String(_arg1)) + "' will be rejected, score is an infinite")); } else { if (Math.floor(_arg1) != _arg1){ trace((("WARNING: Submitted score '" + String(_arg1)) + "' will be truncated")); }; _arg1 = Number(_arg1); }; }; MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (((((_arg1) && ((_arg1.error == true)))) && (onErrorHandler))){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiServices.warnID(_arg1, true); MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi.as3
Section 115
//MochiServices (mochi.as3.MochiServices) package mochi.as3 { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; import flash.system.*; import flash.net.*; public class MochiServices { public static const CONNECTED:String = "onConnected"; private static var _container:Object; private static var _connected:Boolean = false; private static var _queue:Array; private static var _swfVersion:String; private static var _preserved:Object; public static var netupAttempted:Boolean = false; private static var _sendChannel:LocalConnection; private static var _nextCallbackID:Number; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _services:String = "services.swf"; private static var _servURL:String = "http://www.mochiads.com/static/lib/services/"; public static var widget:Boolean = false; private static var _timer:Timer; private static var _sendChannelName:String; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); private static var _callbacks:Object; private static var _connecting:Boolean = false; private static var _mochiLocalConnection:MovieClip; private static var _listenChannelName:String = "__ms_"; public static var onError:Object; public static var netup:Boolean = true; private static var _mochiLC:String = "MochiLC.swf"; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function get connected():Boolean{ return (_connected); } private static function onReceive(_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = _callbacks[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete _callbacks[cb]; } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_nextCallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1)); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _queue.push({methodName:_arg1, args:_arg2, callbackID:_nextCallbackID}); }; if (_clip != null){ if (_callbacks != null){ _callbacks[_nextCallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _nextCallbackID++; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local4:int; var _local14:Loader; var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; var _local6:Array = [0, 64, 0, 0, 0]; var _local7:MovieClip = new MovieClip(); var _local8:LocalConnection = new LocalConnection(); var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time)); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); var _local10:ByteArray = new ByteArray(); var _local11:ByteArray = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); var _local12:uint = ((_local3.length + _local11.length) + 4); var _local13:uint = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } private static function detach(_arg1:Event):void{ var _local2:LoaderInfo = LoaderInfo(_arg1.target); _local2.removeEventListener(Event.COMPLETE, detach); _local2.removeEventListener(IOErrorEvent.IO_ERROR, detach); _local2.removeEventListener(Event.COMPLETE, loadLCBridgeComplete); _local2.removeEventListener(IOErrorEvent.IO_ERROR, loadError); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } private static function loadLCBridgeComplete(_arg1:Event):void{ var _local2:Loader = LoaderInfo(_arg1.target).loader; _mochiLocalConnection = MovieClip(_local2.content); listen(); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _mochiLocalConnection.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); _timer.removeEventListener(TimerEvent.TIMER, connectWait); _timer = null; } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; if (Security.sandboxType != "application"){ Security.allowDomain("*"); Security.allowInsecureDomain("*"); }; if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType != "application"){ Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; }; return (_local2); } public static function getVersion():String{ return ("3.9.1 as3"); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); } public static function warnID(_arg1:String, _arg2:Boolean):void{ _arg1 = _arg1.toLowerCase(); if (_arg1.length != 16){ trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length")); return; } else { if (_arg1 == "1e113c7239048b3f"){ if (_arg2){ trace("WARNING: Using testing board ID"); } else { trace("WARNING: Using testing board ID as game ID"); }; return; } else { if (_arg1 == "84993a1de4031cd8"){ if (_arg2){ trace("WARNING: Using testing game ID as board ID"); } else { trace("WARNING: Using testing game ID"); }; return; }; }; }; var _local3:Number = 0; while (_local3 < _arg1.length) { switch (_arg1.charAt(_local3)){ case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "a": case "b": case "c": case "d": case "e": case "f": break; default: trace(("WARNING: Board ID contains illegal characters: " + _arg1)); return; }; _local3++; }; } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (((_clip) && (_queue))){ while (_queue.length > 0) { _local2 = _queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _callbacks[_local2.callbackID]; }; delete _callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; } public static function get id():String{ return (_id); } private static function onEvent(_arg1:Object):void{ var _local2:String = _arg1.target; var _local3:String = _arg1.event; switch (_local2){ case "services": MochiServices.triggerEvent(_arg1.event, _arg1.args); break; case "events": MochiEvents.triggerEvent(_arg1.event, _arg1.args); break; case "coins": MochiCoins.triggerEvent(_arg1.event, _arg1.args); break; case "social": MochiSocial.triggerEvent(_arg1.event, _arg1.args); break; }; } private static function urlOptions(_arg1:Object):Object{ var _local3:String; var _local4:Array; var _local5:Number; var _local6:Array; var _local2:Object = {}; if (_arg1.stage){ _local3 = _arg1.stage.loaderInfo.parameters.mochiad_options; } else { _local3 = _arg1.loaderInfo.parameters.mochiad_options; }; if (_local3){ _local4 = _local3.split("&"); _local5 = 0; while (_local5 < _local4.length) { _local6 = _local4[_local5].split("="); _local2[unescape(_local6[0])] = unescape(_local6[1]); _local5++; }; }; return (_local2); } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var avm1Click:DisplayObject; var x:String; var req:URLRequest; var loader:Loader; var setURL:Function; var err:Function; var complete:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; var vars:Object = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); var s = "?"; var i:Number = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://link.mochiads.com/linkping.swf"); loader = new Loader(); setURL = function (_arg1:String):void{ if (avm1Click){ btn.removeChild(avm1Click); }; avm1Click = clickMovie(_arg1, onClick); var _local2:Rectangle = btn.getBounds(btn); btn.addChild(avm1Click); avm1Click.x = _local2.x; avm1Click.y = _local2.y; avm1Click.scaleX = (0.01 * _local2.width); avm1Click.scaleY = (0.01 * _local2.height); }; err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); setURL(burl); }; complete = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; if (netup){ setURL((url + s)); } else { setURL(burl); }; if (!((netupAttempted) || (_connected))){ netupAttempted = true; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_clip.parent){ _clip.parent.removeChild(_clip); }; if (_arg1 != null){ if ((_arg1 is DisplayObjectContainer)){ _container = _arg1; }; }; if (_arg2){ if ((_container is DisplayObjectContainer)){ DisplayObjectContainer(_container).addChild(_clip); }; }; } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } private static function loadError(_arg1:Object):void{ if (_clip != null){ _clip._mochiad_ctr_failed = true; }; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); } public static function get childClip():Object{ return (_clip); } private static function initComChannels():void{ if (!_connected){ trace("[SERVICES_API] connected!"); _connecting = false; _connected = true; _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _clip.onReceive = onReceive; _clip.onEvent = onEvent; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; while (_queue.length > 0) { _mochiLocalConnection.send(_sendChannelName, "onReceive", _queue.shift()); }; }; } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } private static function listen():void{ _mochiLocalConnection.connect(_listenChannelName); _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; trace("Waiting for MochiAds services to connect..."); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } private static function loadLCBridge(_arg1:Object):void{ var _local2:Loader = new Loader(); var _local3:String = (_servURL + _mochiLC); var _local4:URLRequest = new URLRequest(_local3); _local2.contentLoaderInfo.addEventListener(Event.COMPLETE, detach); _local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach); _local2.contentLoaderInfo.addEventListener(Event.COMPLETE, loadLCBridgeComplete); _local2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); _local2.load(_local4); _arg1.addChild(_local2); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; if (urlOptions(_arg2).servURL){ _servURL = urlOptions(_arg2).servURL; }; var _local3:String = (_servURL + _services); if (urlOptions(_arg2).servicesURL){ _local3 = urlOptions(_arg2).servicesURL; }; _listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999)))); MochiServices.allowDomains(_local3); _clip = new MovieClip(); loadLCBridge(_clip); _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, detach); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, detach); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); var _local4:URLRequest = new URLRequest(_local3); var _local5:URLVariables = new URLVariables(); _local5.listenLC = _listenChannelName; _local5.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options; _local5.api_version = getVersion(); if (widget){ _local5.widget = true; }; _local4.data = _local5; _loader.load(_local4); _clip.addChild(_loader); _sendChannel = new LocalConnection(); _queue = []; _nextCallbackID = 0; _callbacks = {}; _timer = new Timer(10000, 1); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); return (_clip); } public static function get clip():Object{ return (_container); } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; warnID(id, false); if ((clip is DisplayObject)){ if (clip.stage == null){ trace("MochiServices connect requires the containing clip be attached to the stage"); }; if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function bringToTop(_arg1:Event=null):void{ var e = _arg1; if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; } public static function connectWait(_arg1:TimerEvent):void{ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load. (timeout)"); MochiServices.disconnect(); MochiServices.onError("IOError"); } else { _timer.stop(); _timer.removeEventListener(TimerEvent.TIMER, connectWait); _timer = null; }; } } }//package mochi.as3
Section 116
//MochiSocial (mochi.as3.MochiSocial) package mochi.as3 { public class MochiSocial { public static const LOGGED_IN:String = "LoggedIn"; public static const ACTION_CANCELED:String = "onCancel"; public static const PROPERTIES_SIZE:String = "PropertiesSize"; public static const IO_ERROR:String = "IOError"; public static const NO_USER:String = "NoUser"; public static const FRIEND_LIST:String = "FriendsList"; public static const PROFILE_DATA:String = "ProfileData"; public static const GAMEPLAY_DATA:String = "GameplayData"; public static const ACTION_COMPLETE:String = "onComplete"; public static const LOGIN_SHOW:String = "LoginShow"; public static const PROFILE_HIDE:String = "ProfileHide"; public static const USER_INFO:String = "UserInfo"; public static const PROPERTIES_SAVED:String = "PropertySaved"; public static const WIDGET_LOADED:String = "WidgetLoaded"; public static const ERROR:String = "Error"; public static const LOGGED_OUT:String = "LoggedOut"; public static const PROFILE_SHOW:String = "ProfileShow"; public static const LOGIN_HIDE:String = "LoginHide"; public static const LOGIN_SHOWN:String = "LoginShown"; public static var _user_info:Object = null; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public static function requestFan(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_requestFan", _arg1); } public static function postToStream(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_postToStream", _arg1); } public static function getFriendsList(_arg1:Object=null):void{ MochiServices.send("social_getFriendsList", _arg1); } public static function requestLogin(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_requestLogin", _arg1); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function saveUserProperties(_arg1:Object):void{ MochiServices.send("social_saveUserProperties", _arg1); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function inviteFriends(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_inviteFriends", _arg1); } public static function get loggedIn():Boolean{ return (!((_user_info == null))); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function showLoginWidget(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("social_showLoginWidget", {options:_arg1}); } public static function getAPIURL():String{ if (!_user_info){ return (null); }; return (_user_info.api_url); } public static function hideLoginWidget():void{ MochiServices.send("social_hideLoginWidget"); } public static function getAPIToken():String{ if (!_user_info){ return (null); }; return (_user_info.api_token); } MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{ _user_info = _arg1; }); MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{ _user_info = null; }); } }//package mochi.as3
Section 117
//MochiUserData (mochi.as3.MochiUserData) package mochi.as3 { import flash.events.*; import flash.utils.*; import flash.net.*; public class MochiUserData extends EventDispatcher { public var callback:Function;// = null public var operation:String;// = null public var error:Event;// = null public var data;// = null public var _loader:URLLoader; public var key:String;// = null public function MochiUserData(_arg1:String="", _arg2:Function=null){ this.key = _arg1; this.callback = _arg2; } public function serialize(_arg1):ByteArray{ var _local2:ByteArray = new ByteArray(); _local2.objectEncoding = ObjectEncoding.AMF3; _local2.writeObject(_arg1); _local2.compress(); return (_local2); } public function errorHandler(_arg1:IOErrorEvent):void{ data = null; error = _arg1; if (callback != null){ performCallback(); } else { dispatchEvent(_arg1); }; close(); } public function putEvent(_arg1):void{ request("put", serialize(_arg1)); } public function deserialize(_arg1:ByteArray){ _arg1.objectEncoding = ObjectEncoding.AMF3; _arg1.uncompress(); return (_arg1.readObject()); } public function securityErrorHandler(_arg1:SecurityErrorEvent):void{ errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _arg1.toString()))); } public function getEvent():void{ request("get", serialize(null)); } override public function toString():String{ return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]")); } public function performCallback():void{ try { callback(this); } catch(e:Error) { trace(("[MochiUserData] exception during callback: " + e)); }; } public function request(_arg1:String, _arg2:ByteArray):void{ var _operation = _arg1; var _data = _arg2; operation = _operation; var api_url:String = MochiSocial.getAPIURL(); var api_token:String = MochiSocial.getAPIToken(); if ((((api_url == null)) || ((api_token == null)))){ errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in")); return; }; _loader = new URLLoader(); var args:URLVariables = new URLVariables(); args.op = _operation; args.key = key; var req:URLRequest = new URLRequest((((MochiSocial.getAPIURL() + "/") + "MochiUserData?") + args.toString())); req.method = URLRequestMethod.POST; req.contentType = "application/x-mochi-userdata"; req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)]; req.data = _data; _loader.dataFormat = URLLoaderDataFormat.BINARY; _loader.addEventListener(Event.COMPLETE, completeHandler); _loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); _loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); try { _loader.load(req); } catch(e:SecurityError) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + e.toString()))); }; } public function completeHandler(_arg1:Event):void{ var event = _arg1; try { if (_loader.data.length){ data = deserialize(_loader.data); } else { data = null; }; } catch(e:Error) { errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + e.toString()))); return; }; if (callback != null){ performCallback(); } else { dispatchEvent(event); }; close(); } public function close():void{ if (_loader){ _loader.removeEventListener(Event.COMPLETE, completeHandler); _loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); _loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); _loader.close(); _loader = null; }; error = null; callback = null; } public static function get(_arg1:String, _arg2:Function):void{ var _local3:MochiUserData = new MochiUserData(_arg1, _arg2); _local3.getEvent(); } public static function put(_arg1:String, _arg2, _arg3:Function):void{ var _local4:MochiUserData = new MochiUserData(_arg1, _arg3); _local4.putEvent(_arg2); } } }//package mochi.as3
Section 118
//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.3.0.4852"; 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 119
//FlexLoader (mx.core.FlexLoader) package mx.core { import flash.display.*; import mx.utils.*; public class FlexLoader extends Loader { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexLoader(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 120
//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.3.0.4852"; 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 121
//FlexShape (mx.core.FlexShape) package mx.core { import flash.display.*; import mx.utils.*; public class FlexShape extends Shape { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexShape(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 122
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.3.0.4852"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 123
//FlexVersion (mx.core.FlexVersion) package mx.core { import mx.resources.*; public class FlexVersion { public static const VERSION_2_0_1:uint = 33554433; public static const CURRENT_VERSION:uint = 50331648; public static const VERSION_3_0:uint = 50331648; public static const VERSION_2_0:uint = 33554432; public static const VERSION_ALREADY_READ:String = "versionAlreadyRead"; public static const VERSION_ALREADY_SET:String = "versionAlreadySet"; mx_internal static const VERSION:String = "3.3.0.4852"; private static var compatibilityVersionChanged:Boolean = false; private static var _compatibilityErrorFunction:Function; private static var _compatibilityVersion:uint = 50331648; private static var compatibilityVersionRead:Boolean = false; mx_internal static function changeCompatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); _compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function set compatibilityVersion(_arg1:uint):void{ var _local2:String; if (_arg1 == _compatibilityVersion){ return; }; if (compatibilityVersionChanged){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_SET); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_SET); }; if (compatibilityVersionRead){ if (compatibilityErrorFunction == null){ _local2 = ResourceManager.getInstance().getString("core", VERSION_ALREADY_READ); throw (new Error(_local2)); }; compatibilityErrorFunction(_arg1, VERSION_ALREADY_READ); }; _compatibilityVersion = _arg1; compatibilityVersionChanged = true; } public static function get compatibilityVersion():uint{ compatibilityVersionRead = true; return (_compatibilityVersion); } public static function set compatibilityErrorFunction(_arg1:Function):void{ _compatibilityErrorFunction = _arg1; } public static function set compatibilityVersionString(_arg1:String):void{ var _local2:Array = _arg1.split("."); var _local3:uint = parseInt(_local2[0]); var _local4:uint = parseInt(_local2[1]); var _local5:uint = parseInt(_local2[2]); compatibilityVersion = (((_local3 << 24) + (_local4 << 16)) + _local5); } public static function get compatibilityErrorFunction():Function{ return (_compatibilityErrorFunction); } public static function get compatibilityVersionString():String{ var _local1:uint = ((compatibilityVersion >> 24) & 0xFF); var _local2:uint = ((compatibilityVersion >> 16) & 0xFF); var _local3:uint = (compatibilityVersion & 0xFFFF); return (((((_local1.toString() + ".") + _local2.toString()) + ".") + _local3.toString())); } } }//package mx.core
Section 124
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.3.0.4852"; } }//package mx.core
Section 125
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 126
//IButton (mx.core.IButton) package mx.core { public interface IButton extends IUIComponent { function get emphasized():Boolean; function set emphasized(_arg1:Boolean):void; function callLater(_arg1:Function, _arg2:Array=null):void; } }//package mx.core
Section 127
//IChildList (mx.core.IChildList) package mx.core { import flash.display.*; import flash.geom.*; public interface IChildList { function get numChildren():int; function removeChild(_arg1:DisplayObject):DisplayObject; function getChildByName(_arg1:String):DisplayObject; function removeChildAt(_arg1:int):DisplayObject; function getChildIndex(_arg1:DisplayObject):int; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function getObjectsUnderPoint(_arg1:Point):Array; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function getChildAt(_arg1:int):DisplayObject; function addChild(_arg1:DisplayObject):DisplayObject; function contains(_arg1:DisplayObject):Boolean; } }//package mx.core
Section 128
//IContainer (mx.core.IContainer) package mx.core { import flash.display.*; import flash.media.*; import flash.geom.*; import mx.managers.*; import flash.text.*; public interface IContainer extends IUIComponent { function set hitArea(_arg1:Sprite):void; function swapChildrenAt(_arg1:int, _arg2:int):void; function getChildByName(_arg1:String):DisplayObject; function get doubleClickEnabled():Boolean; function get graphics():Graphics; function get useHandCursor():Boolean; function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject; function set mouseChildren(_arg1:Boolean):void; function set creatingContentPane(_arg1:Boolean):void; function get textSnapshot():TextSnapshot; function getChildIndex(_arg1:DisplayObject):int; function set doubleClickEnabled(_arg1:Boolean):void; function getObjectsUnderPoint(_arg1:Point):Array; function get creatingContentPane():Boolean; function setChildIndex(_arg1:DisplayObject, _arg2:int):void; function get soundTransform():SoundTransform; function set useHandCursor(_arg1:Boolean):void; function get numChildren():int; function contains(_arg1:DisplayObject):Boolean; function get verticalScrollPosition():Number; function set defaultButton(_arg1:IFlexDisplayObject):void; function swapChildren(_arg1:DisplayObject, _arg2:DisplayObject):void; function set horizontalScrollPosition(_arg1:Number):void; function get focusManager():IFocusManager; function startDrag(_arg1:Boolean=false, _arg2:Rectangle=null):void; function set mouseEnabled(_arg1:Boolean):void; function getChildAt(_arg1:int):DisplayObject; function set soundTransform(_arg1:SoundTransform):void; function get tabChildren():Boolean; function get tabIndex():int; function set focusRect(_arg1:Object):void; function get hitArea():Sprite; function get mouseChildren():Boolean; function removeChildAt(_arg1:int):DisplayObject; function get defaultButton():IFlexDisplayObject; function stopDrag():void; function set tabEnabled(_arg1:Boolean):void; function get horizontalScrollPosition():Number; function get focusRect():Object; function get viewMetrics():EdgeMetrics; function set verticalScrollPosition(_arg1:Number):void; function get dropTarget():DisplayObject; function get mouseEnabled():Boolean; function set tabChildren(_arg1:Boolean):void; function set buttonMode(_arg1:Boolean):void; function get tabEnabled():Boolean; function get buttonMode():Boolean; function removeChild(_arg1:DisplayObject):DisplayObject; function set tabIndex(_arg1:int):void; function addChild(_arg1:DisplayObject):DisplayObject; function areInaccessibleObjectsUnderPoint(_arg1:Point):Boolean; } }//package mx.core
Section 129
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 130
//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 131
//IFlexModuleFactory (mx.core.IFlexModuleFactory) package mx.core { public interface IFlexModuleFactory { function create(... _args):Object; function info():Object; } }//package mx.core
Section 132
//IInvalidating (mx.core.IInvalidating) package mx.core { public interface IInvalidating { function validateNow():void; function invalidateSize():void; function invalidateDisplayList():void; function invalidateProperties():void; } }//package mx.core
Section 133
//IProgrammaticSkin (mx.core.IProgrammaticSkin) package mx.core { public interface IProgrammaticSkin { function validateNow():void; function validateDisplayList():void; } }//package mx.core
Section 134
//IRawChildrenContainer (mx.core.IRawChildrenContainer) package mx.core { public interface IRawChildrenContainer { function get rawChildren():IChildList; } }//package mx.core
Section 135
//IRectangularBorder (mx.core.IRectangularBorder) package mx.core { import flash.geom.*; public interface IRectangularBorder extends IBorder { function get backgroundImageBounds():Rectangle; function get hasBackgroundImage():Boolean; function set backgroundImageBounds(_arg1:Rectangle):void; function layoutBackgroundImage():void; } }//package mx.core
Section 136
//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 137
//ISWFBridgeGroup (mx.core.ISWFBridgeGroup) package mx.core { import flash.events.*; public interface ISWFBridgeGroup { function getChildBridgeProvider(_arg1:IEventDispatcher):ISWFBridgeProvider; function removeChildBridge(_arg1:IEventDispatcher):void; function get parentBridge():IEventDispatcher; function addChildBridge(_arg1:IEventDispatcher, _arg2:ISWFBridgeProvider):void; function set parentBridge(_arg1:IEventDispatcher):void; function containsBridge(_arg1:IEventDispatcher):Boolean; function getChildBridges():Array; } }//package mx.core
Section 138
//ISWFBridgeProvider (mx.core.ISWFBridgeProvider) package mx.core { import flash.events.*; public interface ISWFBridgeProvider { function get childAllowsParent():Boolean; function get swfBridge():IEventDispatcher; function get parentAllowsChild():Boolean; } }//package mx.core
Section 139
//IUIComponent (mx.core.IUIComponent) package mx.core { import flash.display.*; import mx.managers.*; public interface IUIComponent extends IFlexDisplayObject { function set focusPane(_arg1:Sprite):void; function get enabled():Boolean; function set enabled(_arg1:Boolean):void; function set isPopUp(_arg1:Boolean):void; function get explicitMinHeight():Number; function get percentWidth():Number; function get isPopUp():Boolean; function get owner():DisplayObjectContainer; function get percentHeight():Number; function get baselinePosition():Number; function owns(_arg1:DisplayObject):Boolean; function initialize():void; function get maxWidth():Number; function get minWidth():Number; function getExplicitOrMeasuredWidth():Number; function get explicitMaxWidth():Number; function get explicitMaxHeight():Number; function set percentHeight(_arg1:Number):void; function get minHeight():Number; function set percentWidth(_arg1:Number):void; function get document():Object; function get focusPane():Sprite; function getExplicitOrMeasuredHeight():Number; function set tweeningProperties(_arg1:Array):void; function set explicitWidth(_arg1:Number):void; function set measuredMinHeight(_arg1:Number):void; function get explicitMinWidth():Number; function get tweeningProperties():Array; function get maxHeight():Number; function set owner(_arg1:DisplayObjectContainer):void; function set includeInLayout(_arg1:Boolean):void; function setVisible(_arg1:Boolean, _arg2:Boolean=false):void; function parentChanged(_arg1:DisplayObjectContainer):void; function get explicitWidth():Number; function get measuredMinHeight():Number; function set measuredMinWidth(_arg1:Number):void; function set explicitHeight(_arg1:Number):void; function get includeInLayout():Boolean; function get measuredMinWidth():Number; function get explicitHeight():Number; function set systemManager(_arg1:ISystemManager):void; function set document(_arg1:Object):void; function get systemManager():ISystemManager; } }//package mx.core
Section 140
//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.3.0.4852"; 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 141
//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 142
//Singleton (mx.core.Singleton) package mx.core { public class Singleton { mx_internal static const VERSION:String = "3.3.0.4852"; private static var classMap:Object = {}; public static function registerClass(_arg1:String, _arg2:Class):void{ var _local3:Class = classMap[_arg1]; if (!_local3){ classMap[_arg1] = _arg2; }; } public static function getClass(_arg1:String):Class{ return (classMap[_arg1]); } public static function getInstance(_arg1:String):Object{ var _local2:Class = classMap[_arg1]; if (!_local2){ throw (new Error((("No class registered for interface '" + _arg1) + "'."))); }; return (_local2["getInstance"]()); } } }//package mx.core
Section 143
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.3.0.4852"; } }//package mx.core
Section 144
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public function SpriteAsset(){ _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 145
//UIComponentGlobals (mx.core.UIComponentGlobals) package mx.core { import flash.display.*; import flash.geom.*; import mx.managers.*; public class UIComponentGlobals { mx_internal static var callLaterSuspendCount:int = 0; mx_internal static var layoutManager:ILayoutManager; mx_internal static var nextFocusObject:InteractiveObject; mx_internal static var designTime:Boolean = false; mx_internal static var tempMatrix:Matrix = new Matrix(); mx_internal static var callLaterDispatcherCount:int = 0; private static var _catchCallLaterExceptions:Boolean = false; public static function set catchCallLaterExceptions(_arg1:Boolean):void{ _catchCallLaterExceptions = _arg1; } public static function get designMode():Boolean{ return (designTime); } public static function set designMode(_arg1:Boolean):void{ designTime = _arg1; } public static function get catchCallLaterExceptions():Boolean{ return (_catchCallLaterExceptions); } } }//package mx.core
Section 146
//ModuleEvent (mx.events.ModuleEvent) package mx.events { import flash.events.*; import mx.modules.*; public class ModuleEvent extends ProgressEvent { public var errorText:String; private var _module:IModuleInfo; public static const READY:String = "ready"; public static const ERROR:String = "error"; public static const PROGRESS:String = "progress"; mx_internal static const VERSION:String = "3.3.0.4852"; public static const SETUP:String = "setup"; public static const UNLOAD:String = "unload"; public function ModuleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null, _arg7:IModuleInfo=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; this._module = _arg7; } public function get module():IModuleInfo{ if (_module){ return (_module); }; return ((target as IModuleInfo)); } override public function clone():Event{ return (new ModuleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText, module)); } } }//package mx.events
Section 147
//ResourceEvent (mx.events.ResourceEvent) package mx.events { import flash.events.*; public class ResourceEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.3.0.4852"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function ResourceEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new ResourceEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 148
//StyleEvent (mx.events.StyleEvent) package mx.events { import flash.events.*; public class StyleEvent extends ProgressEvent { public var errorText:String; mx_internal static const VERSION:String = "3.3.0.4852"; public static const COMPLETE:String = "complete"; public static const PROGRESS:String = "progress"; public static const ERROR:String = "error"; public function StyleEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:String=null){ super(_arg1, _arg2, _arg3, _arg4, _arg5); this.errorText = _arg6; } override public function clone():Event{ return (new StyleEvent(type, bubbles, cancelable, bytesLoaded, bytesTotal, errorText)); } } }//package mx.events
Section 149
//RectangularDropShadow (mx.graphics.RectangularDropShadow) package mx.graphics { import flash.display.*; import mx.core.*; import flash.geom.*; import flash.filters.*; import mx.utils.*; public class RectangularDropShadow { private var leftShadow:BitmapData; private var _tlRadius:Number;// = 0 private var _trRadius:Number;// = 0 private var _angle:Number;// = 45 private var topShadow:BitmapData; private var _distance:Number;// = 4 private var rightShadow:BitmapData; private var _alpha:Number;// = 0.4 private var shadow:BitmapData; private var _brRadius:Number;// = 0 private var _blRadius:Number;// = 0 private var _color:int;// = 0 private var bottomShadow:BitmapData; private var changed:Boolean;// = true mx_internal static const VERSION:String = "3.3.0.4852"; public function get blRadius():Number{ return (_blRadius); } public function set brRadius(_arg1:Number):void{ if (_brRadius != _arg1){ _brRadius = _arg1; changed = true; }; } public function set color(_arg1:int):void{ if (_color != _arg1){ _color = _arg1; changed = true; }; } public function drawShadow(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{ var _local15:Number; var _local16:Number; var _local17:Number; var _local18:Number; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; if (changed){ createShadowBitmaps(); changed = false; }; _arg4 = Math.ceil(_arg4); _arg5 = Math.ceil(_arg5); var _local6:int = (leftShadow) ? leftShadow.width : 0; var _local7:int = (rightShadow) ? rightShadow.width : 0; var _local8:int = (topShadow) ? topShadow.height : 0; var _local9:int = (bottomShadow) ? bottomShadow.height : 0; var _local10:int = (_local6 + _local7); var _local11:int = (_local8 + _local9); var _local12:Number = ((_arg5 + _local11) / 2); var _local13:Number = ((_arg4 + _local10) / 2); var _local14:Matrix = new Matrix(); if (((leftShadow) || (topShadow))){ _local15 = Math.min((tlRadius + _local10), _local13); _local16 = Math.min((tlRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (_arg3 - _local8), _local15, _local16); _arg1.endFill(); }; if (((rightShadow) || (topShadow))){ _local17 = Math.min((trRadius + _local10), _local13); _local18 = Math.min((trRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local17), (_arg3 - _local8), _local17, _local18); _arg1.endFill(); }; if (((leftShadow) || (bottomShadow))){ _local19 = Math.min((blRadius + _local10), _local13); _local20 = Math.min((blRadius + _local11), _local12); _local14.tx = (_arg2 - _local6); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((_arg2 - _local6), (((_arg3 + _arg5) + _local9) - _local20), _local19, _local20); _arg1.endFill(); }; if (((rightShadow) || (bottomShadow))){ _local21 = Math.min((brRadius + _local10), _local13); _local22 = Math.min((brRadius + _local11), _local12); _local14.tx = (((_arg2 + _arg4) + _local7) - shadow.width); _local14.ty = (((_arg3 + _arg5) + _local9) - shadow.height); _arg1.beginBitmapFill(shadow, _local14); _arg1.drawRect((((_arg2 + _arg4) + _local7) - _local21), (((_arg3 + _arg5) + _local9) - _local22), _local21, _local22); _arg1.endFill(); }; if (leftShadow){ _local14.tx = (_arg2 - _local6); _local14.ty = 0; _arg1.beginBitmapFill(leftShadow, _local14); _arg1.drawRect((_arg2 - _local6), ((_arg3 - _local8) + _local16), _local6, ((((_arg5 + _local8) + _local9) - _local16) - _local20)); _arg1.endFill(); }; if (rightShadow){ _local14.tx = (_arg2 + _arg4); _local14.ty = 0; _arg1.beginBitmapFill(rightShadow, _local14); _arg1.drawRect((_arg2 + _arg4), ((_arg3 - _local8) + _local18), _local7, ((((_arg5 + _local8) + _local9) - _local18) - _local22)); _arg1.endFill(); }; if (topShadow){ _local14.tx = 0; _local14.ty = (_arg3 - _local8); _arg1.beginBitmapFill(topShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local15), (_arg3 - _local8), ((((_arg4 + _local6) + _local7) - _local15) - _local17), _local8); _arg1.endFill(); }; if (bottomShadow){ _local14.tx = 0; _local14.ty = (_arg3 + _arg5); _arg1.beginBitmapFill(bottomShadow, _local14); _arg1.drawRect(((_arg2 - _local6) + _local19), (_arg3 + _arg5), ((((_arg4 + _local6) + _local7) - _local19) - _local21), _local9); _arg1.endFill(); }; } public function get brRadius():Number{ return (_brRadius); } public function get angle():Number{ return (_angle); } private function createShadowBitmaps():void{ var _local1:Number = ((Math.max(tlRadius, blRadius) + (2 * distance)) + Math.max(trRadius, brRadius)); var _local2:Number = ((Math.max(tlRadius, trRadius) + (2 * distance)) + Math.max(blRadius, brRadius)); if ((((_local1 < 0)) || ((_local2 < 0)))){ return; }; var _local3:Shape = new FlexShape(); var _local4:Graphics = _local3.graphics; _local4.beginFill(0xFFFFFF); GraphicsUtil.drawRoundRectComplex(_local4, 0, 0, _local1, _local2, tlRadius, trRadius, blRadius, brRadius); _local4.endFill(); var _local5:BitmapData = new BitmapData(_local1, _local2, true, 0); _local5.draw(_local3, new Matrix()); var _local6:DropShadowFilter = new DropShadowFilter(distance, angle, color, alpha); _local6.knockout = true; var _local7:Rectangle = new Rectangle(0, 0, _local1, _local2); var _local8:Rectangle = _local5.generateFilterRect(_local7, _local6); var _local9:Number = (_local7.left - _local8.left); var _local10:Number = (_local8.right - _local7.right); var _local11:Number = (_local7.top - _local8.top); var _local12:Number = (_local8.bottom - _local7.bottom); shadow = new BitmapData(_local8.width, _local8.height); shadow.applyFilter(_local5, _local7, new Point(_local9, _local11), _local6); var _local13:Point = new Point(0, 0); var _local14:Rectangle = new Rectangle(); if (_local9 > 0){ _local14.x = 0; _local14.y = ((tlRadius + _local11) + _local12); _local14.width = _local9; _local14.height = 1; leftShadow = new BitmapData(_local9, 1); leftShadow.copyPixels(shadow, _local14, _local13); } else { leftShadow = null; }; if (_local10 > 0){ _local14.x = (shadow.width - _local10); _local14.y = ((trRadius + _local11) + _local12); _local14.width = _local10; _local14.height = 1; rightShadow = new BitmapData(_local10, 1); rightShadow.copyPixels(shadow, _local14, _local13); } else { rightShadow = null; }; if (_local11 > 0){ _local14.x = ((tlRadius + _local9) + _local10); _local14.y = 0; _local14.width = 1; _local14.height = _local11; topShadow = new BitmapData(1, _local11); topShadow.copyPixels(shadow, _local14, _local13); } else { topShadow = null; }; if (_local12 > 0){ _local14.x = ((blRadius + _local9) + _local10); _local14.y = (shadow.height - _local12); _local14.width = 1; _local14.height = _local12; bottomShadow = new BitmapData(1, _local12); bottomShadow.copyPixels(shadow, _local14, _local13); } else { bottomShadow = null; }; } public function get alpha():Number{ return (_alpha); } public function get color():int{ return (_color); } public function set angle(_arg1:Number):void{ if (_angle != _arg1){ _angle = _arg1; changed = true; }; } public function set trRadius(_arg1:Number):void{ if (_trRadius != _arg1){ _trRadius = _arg1; changed = true; }; } public function set tlRadius(_arg1:Number):void{ if (_tlRadius != _arg1){ _tlRadius = _arg1; changed = true; }; } public function get trRadius():Number{ return (_trRadius); } public function set distance(_arg1:Number):void{ if (_distance != _arg1){ _distance = _arg1; changed = true; }; } public function get distance():Number{ return (_distance); } public function get tlRadius():Number{ return (_tlRadius); } public function set alpha(_arg1:Number):void{ if (_alpha != _arg1){ _alpha = _arg1; changed = true; }; } public function set blRadius(_arg1:Number):void{ if (_blRadius != _arg1){ _blRadius = _arg1; changed = true; }; } } }//package mx.graphics
Section 150
//IFocusManager (mx.managers.IFocusManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; public interface IFocusManager { function get focusPane():Sprite; function getFocus():IFocusManagerComponent; function deactivate():void; function set defaultButton(_arg1:IButton):void; function set focusPane(_arg1:Sprite):void; function set showFocusIndicator(_arg1:Boolean):void; function moveFocus(_arg1:String, _arg2:DisplayObject=null):void; function addSWFBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function removeSWFBridge(_arg1:IEventDispatcher):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):IFocusManagerComponent; function get nextTabIndex():int; function get defaultButton():IButton; function get showFocusIndicator():Boolean; function setFocus(_arg1:IFocusManagerComponent):void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function hideFocus():void; function getNextFocusManagerComponent(_arg1:Boolean=false):IFocusManagerComponent; } }//package mx.managers
Section 151
//IFocusManagerComponent (mx.managers.IFocusManagerComponent) package mx.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package mx.managers
Section 152
//IFocusManagerContainer (mx.managers.IFocusManagerContainer) package mx.managers { import flash.events.*; import flash.display.*; public interface IFocusManagerContainer extends IEventDispatcher { function set focusManager(_arg1:IFocusManager):void; function get focusManager():IFocusManager; function get systemManager():ISystemManager; function contains(_arg1:DisplayObject):Boolean; } }//package mx.managers
Section 153
//ILayoutManager (mx.managers.ILayoutManager) package mx.managers { import flash.events.*; public interface ILayoutManager extends IEventDispatcher { function validateNow():void; function validateClient(_arg1:ILayoutManagerClient, _arg2:Boolean=false):void; function isInvalid():Boolean; function invalidateDisplayList(_arg1:ILayoutManagerClient):void; function set usePhasedInstantiation(_arg1:Boolean):void; function invalidateSize(_arg1:ILayoutManagerClient):void; function get usePhasedInstantiation():Boolean; function invalidateProperties(_arg1:ILayoutManagerClient):void; } }//package mx.managers
Section 154
//ILayoutManagerClient (mx.managers.ILayoutManagerClient) package mx.managers { import flash.events.*; public interface ILayoutManagerClient extends IEventDispatcher { function get updateCompletePendingFlag():Boolean; function set updateCompletePendingFlag(_arg1:Boolean):void; function set initialized(_arg1:Boolean):void; function validateProperties():void; function validateDisplayList():void; function get nestLevel():int; function get initialized():Boolean; function get processedDescriptors():Boolean; function validateSize(_arg1:Boolean=false):void; function set nestLevel(_arg1:int):void; function set processedDescriptors(_arg1:Boolean):void; } }//package mx.managers
Section 155
//ISystemManager (mx.managers.ISystemManager) package mx.managers { import flash.events.*; import flash.display.*; import mx.core.*; import flash.geom.*; import flash.text.*; public interface ISystemManager extends IEventDispatcher, IChildList, IFlexModuleFactory { function set focusPane(_arg1:Sprite):void; function get toolTipChildren():IChildList; function useSWFBridge():Boolean; function isFontFaceEmbedded(_arg1:TextFormat):Boolean; function deployMouseShields(_arg1:Boolean):void; function get rawChildren():IChildList; function get topLevelSystemManager():ISystemManager; function dispatchEventFromSWFBridges(_arg1:Event, _arg2:IEventDispatcher=null, _arg3:Boolean=false, _arg4:Boolean=false):void; function getSandboxRoot():DisplayObject; function get swfBridgeGroup():ISWFBridgeGroup; function removeFocusManager(_arg1:IFocusManagerContainer):void; function addChildToSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function get document():Object; function get focusPane():Sprite; function get loaderInfo():LoaderInfo; function addChildBridge(_arg1:IEventDispatcher, _arg2:DisplayObject):void; function getTopLevelRoot():DisplayObject; function removeChildBridge(_arg1:IEventDispatcher):void; function isDisplayObjectInABridgedApplication(_arg1:DisplayObject):Boolean; function get popUpChildren():IChildList; function get screen():Rectangle; function removeChildFromSandboxRoot(_arg1:String, _arg2:DisplayObject):void; function getDefinitionByName(_arg1:String):Object; function activate(_arg1:IFocusManagerContainer):void; function deactivate(_arg1:IFocusManagerContainer):void; function get cursorChildren():IChildList; function set document(_arg1:Object):void; function get embeddedFontList():Object; function set numModalWindows(_arg1:int):void; function isTopLevel():Boolean; function isTopLevelRoot():Boolean; function get numModalWindows():int; function addFocusManager(_arg1:IFocusManagerContainer):void; function get stage():Stage; function getVisibleApplicationRect(_arg1:Rectangle=null):Rectangle; } }//package mx.managers
Section 156
//SystemManagerGlobals (mx.managers.SystemManagerGlobals) package mx.managers { public class SystemManagerGlobals { public static var topLevelSystemManagers:Array = []; public static var changingListenersInOtherSystemManagers:Boolean; public static var bootstrapLoaderInfoURL:String; public static var showMouseCursor:Boolean; } }//package mx.managers
Section 157
//IModuleInfo (mx.modules.IModuleInfo) package mx.modules { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; public interface IModuleInfo extends IEventDispatcher { function get ready():Boolean; function get loaded():Boolean; function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void; function release():void; function get error():Boolean; function get data():Object; function publish(_arg1:IFlexModuleFactory):void; function get factory():IFlexModuleFactory; function set data(_arg1:Object):void; function get url():String; function get setup():Boolean; function unload():void; } }//package mx.modules
Section 158
//ModuleManager (mx.modules.ModuleManager) package mx.modules { import mx.core.*; public class ModuleManager { mx_internal static const VERSION:String = "3.3.0.4852"; public static function getModule(_arg1:String):IModuleInfo{ return (getSingleton().getModule(_arg1)); } private static function getSingleton():Object{ if (!ModuleManagerGlobals.managerSingleton){ ModuleManagerGlobals.managerSingleton = new ModuleManagerImpl(); }; return (ModuleManagerGlobals.managerSingleton); } public static function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ return (getSingleton().getAssociatedFactory(_arg1)); } } }//package mx.modules import flash.events.*; import flash.display.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.events.*; import flash.net.*; class ModuleInfoProxy extends EventDispatcher implements IModuleInfo { private var _data:Object; private var info:ModuleInfo; private var referenced:Boolean;// = false private function ModuleInfoProxy(_arg1:ModuleInfo){ this.info = _arg1; _arg1.addEventListener(ModuleEvent.SETUP, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.ERROR, moduleEventHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.UNLOAD, moduleEventHandler, false, 0, true); } public function get loaded():Boolean{ return (info.loaded); } public function release():void{ if (referenced){ info.removeReference(); referenced = false; }; } public function get error():Boolean{ return (info.error); } public function get factory():IFlexModuleFactory{ return (info.factory); } public function publish(_arg1:IFlexModuleFactory):void{ info.publish(_arg1); } public function set data(_arg1:Object):void{ _data = _arg1; } public function get ready():Boolean{ return (info.ready); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ var _local4:ModuleEvent; info.resurrect(); if (!referenced){ info.addReference(); referenced = true; }; if (info.error){ dispatchEvent(new ModuleEvent(ModuleEvent.ERROR)); } else { if (info.loaded){ if (info.setup){ dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); if (info.ready){ _local4 = new ModuleEvent(ModuleEvent.PROGRESS); _local4.bytesLoaded = info.size; _local4.bytesTotal = info.size; dispatchEvent(_local4); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); }; }; } else { info.load(_arg1, _arg2, _arg3); }; }; } private function moduleEventHandler(_arg1:ModuleEvent):void{ dispatchEvent(_arg1); } public function get url():String{ return (info.url); } public function get data():Object{ return (_data); } public function get setup():Boolean{ return (info.setup); } public function unload():void{ info.unload(); info.removeEventListener(ModuleEvent.SETUP, moduleEventHandler); info.removeEventListener(ModuleEvent.PROGRESS, moduleEventHandler); info.removeEventListener(ModuleEvent.READY, moduleEventHandler); info.removeEventListener(ModuleEvent.ERROR, moduleEventHandler); info.removeEventListener(ModuleEvent.UNLOAD, moduleEventHandler); } } class ModuleManagerImpl extends EventDispatcher { private var moduleList:Object; private function ModuleManagerImpl(){ moduleList = {}; super(); } public function getModule(_arg1:String):IModuleInfo{ var _local2:ModuleInfo = (moduleList[_arg1] as ModuleInfo); if (!_local2){ _local2 = new ModuleInfo(_arg1); moduleList[_arg1] = _local2; }; return (new ModuleInfoProxy(_local2)); } public function getAssociatedFactory(_arg1:Object):IFlexModuleFactory{ var m:Object; var info:ModuleInfo; var domain:ApplicationDomain; var cls:Class; var object = _arg1; var className:String = getQualifiedClassName(object); for each (m in moduleList) { info = (m as ModuleInfo); if (!info.ready){ } else { domain = info.applicationDomain; try { cls = Class(domain.getDefinition(className)); if ((object is cls)){ return (info.factory); }; } catch(error:Error) { }; }; }; return (null); } } class ModuleInfo extends EventDispatcher { private var _error:Boolean;// = false private var loader:Loader; private var factoryInfo:FactoryInfo; private var limbo:Dictionary; private var _loaded:Boolean;// = false private var _ready:Boolean;// = false private var numReferences:int;// = 0 private var _url:String; private var _setup:Boolean;// = false private function ModuleInfo(_arg1:String){ _url = _arg1; } private function clearLoader():void{ if (loader){ if (loader.contentLoaderInfo){ loader.contentLoaderInfo.removeEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); }; try { if (loader.content){ loader.content.removeEventListener("ready", readyHandler); loader.content.removeEventListener("error", moduleErrorHandler); }; } catch(error:Error) { }; if (_loaded){ try { loader.close(); } catch(error:Error) { }; }; try { loader.unload(); } catch(error:Error) { }; loader = null; }; } public function get size():int{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.bytesTotal : 0); } public function get loaded():Boolean{ return ((limbo) ? false : _loaded); } public function release():void{ if (((_ready) && (!(limbo)))){ limbo = new Dictionary(true); limbo[factoryInfo] = 1; factoryInfo = null; } else { unload(); }; } public function get error():Boolean{ return ((limbo) ? false : _error); } public function get factory():IFlexModuleFactory{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.factory : null); } public function completeHandler(_arg1:Event):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = loader.contentLoaderInfo.bytesLoaded; _local2.bytesTotal = loader.contentLoaderInfo.bytesTotal; dispatchEvent(_local2); } public function publish(_arg1:IFlexModuleFactory):void{ if (factoryInfo){ return; }; if (_url.indexOf("published://") != 0){ return; }; factoryInfo = new FactoryInfo(); factoryInfo.factory = _arg1; _loaded = true; _setup = true; _ready = true; _error = false; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); dispatchEvent(new ModuleEvent(ModuleEvent.PROGRESS)); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function initHandler(_arg1:Event):void{ var moduleEvent:ModuleEvent; var event = _arg1; factoryInfo = new FactoryInfo(); try { factoryInfo.factory = (loader.content as IFlexModuleFactory); } catch(error:Error) { }; if (!factoryInfo.factory){ moduleEvent = new ModuleEvent(ModuleEvent.ERROR, event.bubbles, event.cancelable); moduleEvent.bytesLoaded = 0; moduleEvent.bytesTotal = 0; moduleEvent.errorText = "SWF is not a loadable module"; dispatchEvent(moduleEvent); return; }; loader.content.addEventListener("ready", readyHandler); loader.content.addEventListener("error", moduleErrorHandler); try { factoryInfo.applicationDomain = loader.contentLoaderInfo.applicationDomain; } catch(error:Error) { }; _setup = true; dispatchEvent(new ModuleEvent(ModuleEvent.SETUP)); } public function resurrect():void{ var _local1:Object; if (((!(factoryInfo)) && (limbo))){ for (_local1 in limbo) { factoryInfo = (_local1 as FactoryInfo); break; }; limbo = null; }; if (!factoryInfo){ if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; loader = null; _loaded = false; _setup = false; _ready = false; _error = false; }; } public function errorHandler(_arg1:ErrorEvent):void{ _error = true; var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = 0; _local2.bytesTotal = 0; _local2.errorText = _arg1.text; dispatchEvent(_local2); } public function get ready():Boolean{ return ((limbo) ? false : _ready); } private function loadBytes(_arg1:ApplicationDomain, _arg2:ByteArray):void{ var _local3:LoaderContext = new LoaderContext(); _local3.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local3)){ _local3["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.loadBytes(_arg2, _local3); } public function removeReference():void{ numReferences--; if (numReferences == 0){ release(); }; } public function addReference():void{ numReferences++; } public function progressHandler(_arg1:ProgressEvent):void{ var _local2:ModuleEvent = new ModuleEvent(ModuleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } public function load(_arg1:ApplicationDomain=null, _arg2:SecurityDomain=null, _arg3:ByteArray=null):void{ if (_loaded){ return; }; _loaded = true; limbo = null; if (_arg3){ loadBytes(_arg1, _arg3); return; }; if (_url.indexOf("published://") == 0){ return; }; var _local4:URLRequest = new URLRequest(_url); var _local5:LoaderContext = new LoaderContext(); _local5.applicationDomain = (_arg1) ? _arg1 : new ApplicationDomain(ApplicationDomain.currentDomain); _local5.securityDomain = _arg2; if ((((_arg2 == null)) && ((Security.sandboxType == Security.REMOTE)))){ _local5.securityDomain = SecurityDomain.currentDomain; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.INIT, initHandler); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load(_local4, _local5); } public function get url():String{ return (_url); } public function get applicationDomain():ApplicationDomain{ return ((((!(limbo)) && (factoryInfo))) ? factoryInfo.applicationDomain : null); } public function moduleErrorHandler(_arg1:Event):void{ var _local2:ModuleEvent; _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); if ((_arg1 is ModuleEvent)){ _local2 = ModuleEvent(_arg1); } else { _local2 = new ModuleEvent(ModuleEvent.ERROR); }; dispatchEvent(_local2); } public function readyHandler(_arg1:Event):void{ _ready = true; factoryInfo.bytesTotal = loader.contentLoaderInfo.bytesTotal; clearLoader(); dispatchEvent(new ModuleEvent(ModuleEvent.READY)); } public function get setup():Boolean{ return ((limbo) ? false : _setup); } public function unload():void{ clearLoader(); if (_loaded){ dispatchEvent(new ModuleEvent(ModuleEvent.UNLOAD)); }; limbo = null; factoryInfo = null; _loaded = false; _setup = false; _ready = false; _error = false; } } class FactoryInfo { public var bytesTotal:int;// = 0 public var factory:IFlexModuleFactory; public var applicationDomain:ApplicationDomain; private function FactoryInfo(){ } }
Section 159
//ModuleManagerGlobals (mx.modules.ModuleManagerGlobals) package mx.modules { public class ModuleManagerGlobals { public static var managerSingleton:Object = null; } }//package mx.modules
Section 160
//IResourceBundle (mx.resources.IResourceBundle) package mx.resources { public interface IResourceBundle { function get content():Object; function get locale():String; function get bundleName():String; } }//package mx.resources
Section 161
//IResourceManager (mx.resources.IResourceManager) package mx.resources { import flash.events.*; import flash.system.*; public interface IResourceManager extends IEventDispatcher { function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean; function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class; function getLocales():Array; function removeResourceBundlesForLocale(_arg1:String):void; function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle; function get localeChain():Array; function getInt(_arg1:String, _arg2:String, _arg3:String=null):int; function update():void; function set localeChain(_arg1:Array):void; function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint; function addResourceBundle(_arg1:IResourceBundle):void; function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array; function getBundleNamesForLocale(_arg1:String):Array; function removeResourceBundle(_arg1:String, _arg2:String):void; function getObject(_arg1:String, _arg2:String, _arg3:String=null); function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String; function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void; function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void; function getPreferredLocaleChain():Array; function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle; function initializeLocaleChain(_arg1:Array):void; function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number; } }//package mx.resources
Section 162
//IResourceModule (mx.resources.IResourceModule) package mx.resources { public interface IResourceModule { function get resourceBundles():Array; } }//package mx.resources
Section 163
//LocaleSorter (mx.resources.LocaleSorter) package mx.resources { public class LocaleSorter { mx_internal static const VERSION:String = "3.3.0.4852"; private static function normalizeLocale(_arg1:String):String{ return (_arg1.toLowerCase().replace(/-/g, "_")); } public static function sortLocalesByPreference(_arg1:Array, _arg2:Array, _arg3:String=null, _arg4:Boolean=false):Array{ var result:Array; var hasLocale:Object; var i:int; var j:int; var k:int; var l:int; var locale:String; var plocale:LocaleID; var appLocales = _arg1; var systemPreferences = _arg2; var ultimateFallbackLocale = _arg3; var addAll = _arg4; var promote:Function = function (_arg1:String):void{ if (typeof(hasLocale[_arg1]) != "undefined"){ result.push(appLocales[hasLocale[_arg1]]); delete hasLocale[_arg1]; }; }; result = []; hasLocale = {}; var locales:Array = trimAndNormalize(appLocales); var preferenceLocales:Array = trimAndNormalize(systemPreferences); addUltimateFallbackLocale(preferenceLocales, ultimateFallbackLocale); j = 0; while (j < locales.length) { hasLocale[locales[j]] = j; j = (j + 1); }; i = 0; l = preferenceLocales.length; while (i < l) { plocale = LocaleID.fromString(preferenceLocales[i]); promote(preferenceLocales[i]); promote(plocale.toString()); while (plocale.transformToParent()) { promote(plocale.toString()); }; plocale = LocaleID.fromString(preferenceLocales[i]); j = 0; while (j < l) { locale = preferenceLocales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; j = 0; k = locales.length; while (j < k) { locale = locales[j]; if (plocale.isSiblingOf(LocaleID.fromString(locale))){ promote(locale); }; j = (j + 1); }; i = (i + 1); }; if (addAll){ j = 0; k = locales.length; while (j < k) { promote(locales[j]); j = (j + 1); }; }; return (result); } private static function addUltimateFallbackLocale(_arg1:Array, _arg2:String):void{ var _local3:String; if (((!((_arg2 == null))) && (!((_arg2 == ""))))){ _local3 = normalizeLocale(_arg2); if (_arg1.indexOf(_local3) == -1){ _arg1.push(_local3); }; }; } private static function trimAndNormalize(_arg1:Array):Array{ var _local2:Array = []; var _local3:int; while (_local3 < _arg1.length) { _local2.push(normalizeLocale(_arg1[_local3])); _local3++; }; return (_local2); } } }//package mx.resources class LocaleID { private var privateLangs:Boolean;// = false private var script:String;// = "" private var variants:Array; private var privates:Array; private var extensions:Object; private var lang:String;// = "" private var region:String;// = "" private var extended_langs:Array; public static const STATE_PRIMARY_LANGUAGE:int = 0; public static const STATE_REGION:int = 3; public static const STATE_EXTENDED_LANGUAGES:int = 1; public static const STATE_EXTENSIONS:int = 5; public static const STATE_SCRIPT:int = 2; public static const STATE_VARIANTS:int = 4; public static const STATE_PRIVATES:int = 6; private function LocaleID(){ extended_langs = []; variants = []; extensions = {}; privates = []; super(); } public function equals(_arg1:LocaleID):Boolean{ return ((toString() == _arg1.toString())); } public function canonicalize():void{ var _local1:String; for (_local1 in extensions) { if (extensions.hasOwnProperty(_local1)){ if (extensions[_local1].length == 0){ delete extensions[_local1]; } else { extensions[_local1] = extensions[_local1].sort(); }; }; }; extended_langs = extended_langs.sort(); variants = variants.sort(); privates = privates.sort(); if (script == ""){ script = LocaleRegistry.getScriptByLang(lang); }; if ((((script == "")) && (!((region == ""))))){ script = LocaleRegistry.getScriptByLangAndRegion(lang, region); }; if ((((region == "")) && (!((script == ""))))){ region = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); }; } public function toString():String{ var _local2:String; var _local1:Array = [lang]; Array.prototype.push.apply(_local1, extended_langs); if (script != ""){ _local1.push(script); }; if (region != ""){ _local1.push(region); }; Array.prototype.push.apply(_local1, variants); for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1.push(_local2); Array.prototype.push.apply(_local1, extensions[_local2]); }; }; if (privates.length > 0){ _local1.push("x"); Array.prototype.push.apply(_local1, privates); }; return (_local1.join("_")); } public function isSiblingOf(_arg1:LocaleID):Boolean{ return ((((lang == _arg1.lang)) && ((script == _arg1.script)))); } public function transformToParent():Boolean{ var _local2:String; var _local3:Array; var _local4:String; if (privates.length > 0){ privates.splice((privates.length - 1), 1); return (true); }; var _local1:String; for (_local2 in extensions) { if (extensions.hasOwnProperty(_local2)){ _local1 = _local2; }; }; if (_local1){ _local3 = extensions[_local1]; if (_local3.length == 1){ delete extensions[_local1]; return (true); }; _local3.splice((_local3.length - 1), 1); return (true); }; if (variants.length > 0){ variants.splice((variants.length - 1), 1); return (true); }; if (script != ""){ if (LocaleRegistry.getScriptByLang(lang) != ""){ script = ""; return (true); }; if (region == ""){ _local4 = LocaleRegistry.getDefaultRegionForLangAndScript(lang, script); if (_local4 != ""){ region = _local4; script = ""; return (true); }; }; }; if (region != ""){ if (!(((script == "")) && ((LocaleRegistry.getScriptByLang(lang) == "")))){ region = ""; return (true); }; }; if (extended_langs.length > 0){ extended_langs.splice((extended_langs.length - 1), 1); return (true); }; return (false); } public static function fromString(_arg1:String):LocaleID{ var _local5:Array; var _local8:String; var _local9:int; var _local10:String; var _local2:LocaleID = new (LocaleID); var _local3:int = STATE_PRIMARY_LANGUAGE; var _local4:Array = _arg1.replace(/-/g, "_").split("_"); var _local6:int; var _local7:int = _local4.length; while (_local6 < _local7) { _local8 = _local4[_local6].toLowerCase(); if (_local3 == STATE_PRIMARY_LANGUAGE){ if (_local8 == "x"){ _local2.privateLangs = true; } else { if (_local8 == "i"){ _local2.lang = (_local2.lang + "i-"); } else { _local2.lang = (_local2.lang + _local8); _local3 = STATE_EXTENDED_LANGUAGES; }; }; } else { _local9 = _local8.length; if (_local9 == 0){ } else { _local10 = _local8.charAt(0).toLowerCase(); if ((((_local3 <= STATE_EXTENDED_LANGUAGES)) && ((_local9 == 3)))){ _local2.extended_langs.push(_local8); if (_local2.extended_langs.length == 3){ _local3 = STATE_SCRIPT; }; } else { if ((((_local3 <= STATE_SCRIPT)) && ((_local9 == 4)))){ _local2.script = _local8; _local3 = STATE_REGION; } else { if ((((_local3 <= STATE_REGION)) && ((((_local9 == 2)) || ((_local9 == 3)))))){ _local2.region = _local8; _local3 = STATE_VARIANTS; } else { if ((((_local3 <= STATE_VARIANTS)) && ((((((((_local10 >= "a")) && ((_local10 <= "z")))) && ((_local9 >= 5)))) || ((((((_local10 >= "0")) && ((_local10 <= "9")))) && ((_local9 >= 4)))))))){ _local2.variants.push(_local8); _local3 = STATE_VARIANTS; } else { if ((((_local3 < STATE_PRIVATES)) && ((_local9 == 1)))){ if (_local8 == "x"){ _local3 = STATE_PRIVATES; _local5 = _local2.privates; } else { _local3 = STATE_EXTENSIONS; _local5 = ((_local2.extensions[_local8]) || ([])); _local2.extensions[_local8] = _local5; }; } else { if (_local3 >= STATE_EXTENSIONS){ _local5.push(_local8); }; }; }; }; }; }; }; }; _local6++; }; _local2.canonicalize(); return (_local2); } } class LocaleRegistry { private static const SCRIPT_ID_BY_LANG:Object = {ab:5, af:1, am:2, ar:3, as:4, ay:1, be:5, bg:5, bn:4, bs:1, ca:1, ch:1, cs:1, cy:1, da:1, de:1, dv:6, dz:7, el:8, en:1, eo:1, es:1, et:1, eu:1, fa:3, fi:1, fj:1, fo:1, fr:1, frr:1, fy:1, ga:1, gl:1, gn:1, gu:9, gv:1, he:10, hi:11, hr:1, ht:1, hu:1, hy:12, id:1, in:1, is:1, it:1, iw:10, ja:13, ka:14, kk:5, kl:1, km:15, kn:16, ko:17, la:1, lb:1, ln:1, lo:18, lt:1, lv:1, mg:1, mh:1, mk:5, ml:19, mo:1, mr:11, ms:1, mt:1, my:20, na:1, nb:1, nd:1, ne:11, nl:1, nn:1, no:1, nr:1, ny:1, om:1, or:21, pa:22, pl:1, ps:3, pt:1, qu:1, rn:1, ro:1, ru:5, rw:1, sg:1, si:23, sk:1, sl:1, sm:1, so:1, sq:1, ss:1, st:1, sv:1, sw:1, ta:24, te:25, th:26, ti:2, tl:1, tn:1, to:1, tr:1, ts:1, uk:5, ur:3, ve:1, vi:1, wo:1, xh:1, yi:10, zu:1, cpe:1, dsb:1, frs:1, gsw:1, hsb:1, kok:11, mai:11, men:1, nds:1, niu:1, nqo:27, nso:1, son:1, tem:1, tkl:1, tmh:1, tpi:1, tvl:1, zbl:28}; private static const SCRIPTS:Array = ["", "latn", "ethi", "arab", "beng", "cyrl", "thaa", "tibt", "grek", "gujr", "hebr", "deva", "armn", "jpan", "geor", "khmr", "knda", "kore", "laoo", "mlym", "mymr", "orya", "guru", "sinh", "taml", "telu", "thai", "nkoo", "blis", "hans", "hant", "mong", "syrc"]; private static const DEFAULT_REGION_BY_LANG_AND_SCRIPT:Object = {bg:{5:"bg"}, ca:{1:"es"}, zh:{30:"tw", 29:"cn"}, cs:{1:"cz"}, da:{1:"dk"}, de:{1:"de"}, el:{8:"gr"}, en:{1:"us"}, es:{1:"es"}, fi:{1:"fi"}, fr:{1:"fr"}, he:{10:"il"}, hu:{1:"hu"}, is:{1:"is"}, it:{1:"it"}, ja:{13:"jp"}, ko:{17:"kr"}, nl:{1:"nl"}, nb:{1:"no"}, pl:{1:"pl"}, pt:{1:"br"}, ro:{1:"ro"}, ru:{5:"ru"}, hr:{1:"hr"}, sk:{1:"sk"}, sq:{1:"al"}, sv:{1:"se"}, th:{26:"th"}, tr:{1:"tr"}, ur:{3:"pk"}, id:{1:"id"}, uk:{5:"ua"}, be:{5:"by"}, sl:{1:"si"}, et:{1:"ee"}, lv:{1:"lv"}, lt:{1:"lt"}, fa:{3:"ir"}, vi:{1:"vn"}, hy:{12:"am"}, az:{1:"az", 5:"az"}, eu:{1:"es"}, mk:{5:"mk"}, af:{1:"za"}, ka:{14:"ge"}, fo:{1:"fo"}, hi:{11:"in"}, ms:{1:"my"}, kk:{5:"kz"}, ky:{5:"kg"}, sw:{1:"ke"}, uz:{1:"uz", 5:"uz"}, tt:{5:"ru"}, pa:{22:"in"}, gu:{9:"in"}, ta:{24:"in"}, te:{25:"in"}, kn:{16:"in"}, mr:{11:"in"}, sa:{11:"in"}, mn:{5:"mn"}, gl:{1:"es"}, kok:{11:"in"}, syr:{32:"sy"}, dv:{6:"mv"}, nn:{1:"no"}, sr:{1:"cs", 5:"cs"}, cy:{1:"gb"}, mi:{1:"nz"}, mt:{1:"mt"}, quz:{1:"bo"}, tn:{1:"za"}, xh:{1:"za"}, zu:{1:"za"}, nso:{1:"za"}, se:{1:"no"}, smj:{1:"no"}, sma:{1:"no"}, sms:{1:"fi"}, smn:{1:"fi"}, bs:{1:"ba"}}; private static const SCRIPT_BY_ID:Object = {latn:1, ethi:2, arab:3, beng:4, cyrl:5, thaa:6, tibt:7, grek:8, gujr:9, hebr:10, deva:11, armn:12, jpan:13, geor:14, khmr:15, knda:16, kore:17, laoo:18, mlym:19, mymr:20, orya:21, guru:22, sinh:23, taml:24, telu:25, thai:26, nkoo:27, blis:28, hans:29, hant:30, mong:31, syrc:32}; private static const SCRIPT_ID_BY_LANG_AND_REGION:Object = {zh:{cn:29, sg:29, tw:30, hk:30, mo:30}, mn:{cn:31, sg:5}, pa:{pk:3, in:22}, ha:{gh:1, ne:1}}; private function LocaleRegistry(){ } public static function getScriptByLangAndRegion(_arg1:String, _arg2:String):String{ var _local3:Object = SCRIPT_ID_BY_LANG_AND_REGION[_arg1]; if (_local3 == null){ return (""); }; var _local4:Object = _local3[_arg2]; if (_local4 == null){ return (""); }; return (SCRIPTS[int(_local4)].toLowerCase()); } public static function getScriptByLang(_arg1:String):String{ var _local2:Object = SCRIPT_ID_BY_LANG[_arg1]; if (_local2 == null){ return (""); }; return (SCRIPTS[int(_local2)].toLowerCase()); } public static function getDefaultRegionForLangAndScript(_arg1:String, _arg2:String):String{ var _local3:Object = DEFAULT_REGION_BY_LANG_AND_SCRIPT[_arg1]; var _local4:Object = SCRIPT_BY_ID[_arg2]; if ((((_local3 == null)) || ((_local4 == null)))){ return (""); }; return (((_local3[int(_local4)]) || (""))); } }
Section 164
//ResourceBundle (mx.resources.ResourceBundle) package mx.resources { import mx.core.*; import flash.system.*; import mx.utils.*; public class ResourceBundle implements IResourceBundle { mx_internal var _locale:String; private var _content:Object; mx_internal var _bundleName:String; mx_internal static const VERSION:String = "3.3.0.4852"; mx_internal static var backupApplicationDomain:ApplicationDomain; mx_internal static var locale:String; public function ResourceBundle(_arg1:String=null, _arg2:String=null){ _content = {}; super(); mx_internal::_locale = _arg1; mx_internal::_bundleName = _arg2; _content = getContent(); } protected function getContent():Object{ return ({}); } public function getString(_arg1:String):String{ return (String(_getObject(_arg1))); } public function get content():Object{ return (_content); } public function getBoolean(_arg1:String, _arg2:Boolean=true):Boolean{ var _local3:String = _getObject(_arg1).toLowerCase(); if (_local3 == "false"){ return (false); }; if (_local3 == "true"){ return (true); }; return (_arg2); } public function getStringArray(_arg1:String):Array{ var _local2:Array = _getObject(_arg1).split(","); var _local3:int = _local2.length; var _local4:int; while (_local4 < _local3) { _local2[_local4] = StringUtil.trim(_local2[_local4]); _local4++; }; return (_local2); } public function getObject(_arg1:String):Object{ return (_getObject(_arg1)); } private function _getObject(_arg1:String):Object{ var _local2:Object = content[_arg1]; if (!_local2){ throw (new Error(((("Key " + _arg1) + " was not found in resource bundle ") + bundleName))); }; return (_local2); } public function get locale():String{ return (mx_internal::_locale); } public function get bundleName():String{ return (mx_internal::_bundleName); } public function getNumber(_arg1:String):Number{ return (Number(_getObject(_arg1))); } private static function getClassByName(_arg1:String, _arg2:ApplicationDomain):Class{ var _local3:Class; if (_arg2.hasDefinition(_arg1)){ _local3 = (_arg2.getDefinition(_arg1) as Class); }; return (_local3); } public static function getResourceBundle(_arg1:String, _arg2:ApplicationDomain=null):ResourceBundle{ var _local3:String; var _local4:Class; var _local5:Object; var _local6:ResourceBundle; if (!_arg2){ _arg2 = ApplicationDomain.currentDomain; }; _local3 = (((mx_internal::locale + "$") + _arg1) + "_properties"); _local4 = getClassByName(_local3, _arg2); if (!_local4){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, _arg2); }; if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, _arg2); }; if (((!(_local4)) && (mx_internal::backupApplicationDomain))){ _local3 = (_arg1 + "_properties"); _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); if (!_local4){ _local3 = _arg1; _local4 = getClassByName(_local3, mx_internal::backupApplicationDomain); }; }; if (_local4){ _local5 = new (_local4); if ((_local5 is ResourceBundle)){ _local6 = ResourceBundle(_local5); return (_local6); }; }; throw (new Error(("Could not find resource bundle " + _arg1))); } } }//package mx.resources
Section 165
//ResourceManager (mx.resources.ResourceManager) package mx.resources { import mx.core.*; public class ResourceManager { mx_internal static const VERSION:String = "3.3.0.4852"; private static var implClassDependency:ResourceManagerImpl; private static var instance:IResourceManager; public static function getInstance():IResourceManager{ if (!instance){ try { instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager")); } catch(e:Error) { instance = new ResourceManagerImpl(); }; }; return (instance); } } }//package mx.resources
Section 166
//ResourceManagerImpl (mx.resources.ResourceManagerImpl) package mx.resources { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.utils.*; public class ResourceManagerImpl extends EventDispatcher implements IResourceManager { private var resourceModules:Object; private var initializedForNonFrameworkApp:Boolean;// = false private var localeMap:Object; private var _localeChain:Array; mx_internal static const VERSION:String = "3.3.0.4852"; private static var instance:IResourceManager; public function ResourceManagerImpl(){ localeMap = {}; resourceModules = {}; super(); } public function get localeChain():Array{ return (_localeChain); } public function set localeChain(_arg1:Array):void{ _localeChain = _arg1; update(); } public function getStringArray(_arg1:String, _arg2:String, _arg3:String=null):Array{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; var _local6:Array = String(_local5).split(","); var _local7:int = _local6.length; var _local8:int; while (_local8 < _local7) { _local6[_local8] = StringUtil.trim(_local6[_local8]); _local8++; }; return (_local6); } mx_internal function installCompiledResourceBundle(_arg1:ApplicationDomain, _arg2:String, _arg3:String):void{ var _local4:String; var _local5:String = _arg3; var _local6:int = _arg3.indexOf(":"); if (_local6 != -1){ _local4 = _arg3.substring(0, _local6); _local5 = _arg3.substring((_local6 + 1)); }; if (getResourceBundle(_arg2, _arg3)){ return; }; var _local7 = (((_arg2 + "$") + _local5) + "_properties"); if (_local4 != null){ _local7 = ((_local4 + ".") + _local7); }; var _local8:Class; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; if (!_local8){ _local7 = _arg3; if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ _local7 = (_arg3 + "_properties"); if (_arg1.hasDefinition(_local7)){ _local8 = Class(_arg1.getDefinition(_local7)); }; }; if (!_local8){ throw (new Error((((("Could not find compiled resource bundle '" + _arg3) + "' for locale '") + _arg2) + "'."))); }; var _local9:ResourceBundle = ResourceBundle(new (_local8)); _local9.mx_internal::_locale = _arg2; _local9.mx_internal::_bundleName = _arg3; addResourceBundle(_local9); } public function getString(_arg1:String, _arg2:String, _arg3:Array=null, _arg4:String=null):String{ var _local5:IResourceBundle = findBundle(_arg1, _arg2, _arg4); if (!_local5){ return (null); }; var _local6:String = String(_local5.content[_arg2]); if (_arg3){ _local6 = StringUtil.substitute(_local6, _arg3); }; return (_local6); } public function loadResourceModule(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var moduleInfo:IModuleInfo; var resourceEventDispatcher:ResourceEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var updateFlag = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; moduleInfo = ModuleManager.getModule(url); resourceEventDispatcher = new ResourceEventDispatcher(moduleInfo); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:* = _arg1.module.factory.create(); resourceModules[_arg1.module.url].resourceModule = _local2; if (updateFlag){ update(); }; }; moduleInfo.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:ResourceEvent; var _local2:String = ("Unable to load resource module from " + url); if (resourceEventDispatcher.willTrigger(ResourceEvent.ERROR)){ _local3 = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; resourceEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; moduleInfo.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); resourceModules[url] = new ResourceModuleInfo(moduleInfo, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); moduleInfo.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (resourceEventDispatcher); } public function getLocales():Array{ var _local2:String; var _local1:Array = []; for (_local2 in localeMap) { _local1.push(_local2); }; return (_local1); } public function removeResourceBundlesForLocale(_arg1:String):void{ delete localeMap[_arg1]; } public function getResourceBundle(_arg1:String, _arg2:String):IResourceBundle{ var _local3:Object = localeMap[_arg1]; if (!_local3){ return (null); }; return (_local3[_arg2]); } private function dumpResourceModule(_arg1):void{ var _local2:ResourceBundle; var _local3:String; for each (_local2 in _arg1.resourceBundles) { trace(_local2.locale, _local2.bundleName); for (_local3 in _local2.content) { }; }; } public function addResourceBundle(_arg1:IResourceBundle):void{ var _local2:String = _arg1.locale; var _local3:String = _arg1.bundleName; if (!localeMap[_local2]){ localeMap[_local2] = {}; }; localeMap[_local2][_local3] = _arg1; } public function getObject(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (undefined); }; return (_local4.content[_arg2]); } public function getInt(_arg1:String, _arg2:String, _arg3:String=null):int{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (int(_local5)); } private function findBundle(_arg1:String, _arg2:String, _arg3:String):IResourceBundle{ supportNonFrameworkApps(); return (((_arg3)!=null) ? getResourceBundle(_arg3, _arg1) : findResourceBundleWithResource(_arg1, _arg2)); } private function supportNonFrameworkApps():void{ if (initializedForNonFrameworkApp){ return; }; initializedForNonFrameworkApp = true; if (getLocales().length > 0){ return; }; var _local1:ApplicationDomain = ApplicationDomain.currentDomain; if (!_local1.hasDefinition("_CompiledResourceBundleInfo")){ return; }; var _local2:Class = Class(_local1.getDefinition("_CompiledResourceBundleInfo")); var _local3:Array = _local2.compiledLocales; var _local4:Array = _local2.compiledResourceBundleNames; installCompiledResourceBundles(_local1, _local3, _local4); localeChain = _local3; } public function getBundleNamesForLocale(_arg1:String):Array{ var _local3:String; var _local2:Array = []; for (_local3 in localeMap[_arg1]) { _local2.push(_local3); }; return (_local2); } public function getPreferredLocaleChain():Array{ return (LocaleSorter.sortLocalesByPreference(getLocales(), getSystemPreferredLocales(), null, true)); } public function getNumber(_arg1:String, _arg2:String, _arg3:String=null):Number{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (NaN); }; var _local5:* = _local4.content[_arg2]; return (Number(_local5)); } public function update():void{ dispatchEvent(new Event(Event.CHANGE)); } public function getClass(_arg1:String, _arg2:String, _arg3:String=null):Class{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (null); }; var _local5:* = _local4.content[_arg2]; return ((_local5 as Class)); } public function removeResourceBundle(_arg1:String, _arg2:String):void{ delete localeMap[_arg1][_arg2]; if (getBundleNamesForLocale(_arg1).length == 0){ delete localeMap[_arg1]; }; } public function initializeLocaleChain(_arg1:Array):void{ localeChain = LocaleSorter.sortLocalesByPreference(_arg1, getSystemPreferredLocales(), null, true); } public function findResourceBundleWithResource(_arg1:String, _arg2:String):IResourceBundle{ var _local5:String; var _local6:Object; var _local7:ResourceBundle; if (!_localeChain){ return (null); }; var _local3:int = _localeChain.length; var _local4:int; while (_local4 < _local3) { _local5 = localeChain[_local4]; _local6 = localeMap[_local5]; if (!_local6){ } else { _local7 = _local6[_arg1]; if (!_local7){ } else { if ((_arg2 in _local7.content)){ return (_local7); }; }; }; _local4++; }; return (null); } public function getUint(_arg1:String, _arg2:String, _arg3:String=null):uint{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (0); }; var _local5:* = _local4.content[_arg2]; return (uint(_local5)); } private function getSystemPreferredLocales():Array{ var _local1:Array; if (Capabilities["languages"]){ _local1 = Capabilities["languages"]; } else { _local1 = [Capabilities.language]; }; return (_local1); } public function installCompiledResourceBundles(_arg1:ApplicationDomain, _arg2:Array, _arg3:Array):void{ var _local7:String; var _local8:int; var _local9:String; var _local4:int = (_arg2) ? _arg2.length : 0; var _local5:int = (_arg3) ? _arg3.length : 0; var _local6:int; while (_local6 < _local4) { _local7 = _arg2[_local6]; _local8 = 0; while (_local8 < _local5) { _local9 = _arg3[_local8]; mx_internal::installCompiledResourceBundle(_arg1, _local7, _local9); _local8++; }; _local6++; }; } public function getBoolean(_arg1:String, _arg2:String, _arg3:String=null):Boolean{ var _local4:IResourceBundle = findBundle(_arg1, _arg2, _arg3); if (!_local4){ return (false); }; var _local5:* = _local4.content[_arg2]; return ((String(_local5).toLowerCase() == "true")); } public function unloadResourceModule(_arg1:String, _arg2:Boolean=true):void{ throw (new Error("unloadResourceModule() is not yet implemented.")); } public static function getInstance():IResourceManager{ if (!instance){ instance = new (ResourceManagerImpl); }; return (instance); } } }//package mx.resources import flash.events.*; import mx.modules.*; import mx.events.*; class ResourceModuleInfo { public var resourceModule:IResourceModule; public var errorHandler:Function; public var readyHandler:Function; public var moduleInfo:IModuleInfo; private function ResourceModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.moduleInfo = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } } class ResourceEventDispatcher extends EventDispatcher { private function ResourceEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:ResourceEvent = new ResourceEvent(ResourceEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } }
Section 167
//HaloBorder (mx.skins.halo.HaloBorder) package mx.skins.halo { import flash.display.*; import mx.core.*; import mx.styles.*; import mx.skins.*; import mx.graphics.*; import mx.utils.*; public class HaloBorder extends RectangularBorder { mx_internal var radiusObj:Object; mx_internal var backgroundHole:Object; mx_internal var radius:Number; mx_internal var bRoundedCorners:Boolean; mx_internal var backgroundColor:Object; private var dropShadow:RectangularDropShadow; protected var _borderMetrics:EdgeMetrics; mx_internal var backgroundAlphaName:String; mx_internal static const VERSION:String = "3.3.0.4852"; private static var BORDER_WIDTHS:Object = {none:0, solid:1, inset:2, outset:2, alert:3, dropdown:2, menuBorder:1, comboNonEdit:2}; public function HaloBorder(){ BORDER_WIDTHS["default"] = 3; } override public function styleChanged(_arg1:String):void{ if ((((((((((_arg1 == null)) || ((_arg1 == "styleName")))) || ((_arg1 == "borderStyle")))) || ((_arg1 == "borderThickness")))) || ((_arg1 == "borderSides")))){ _borderMetrics = null; }; invalidateDisplayList(); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ if (((isNaN(_arg1)) || (isNaN(_arg2)))){ return; }; super.updateDisplayList(_arg1, _arg2); backgroundColor = getBackgroundColor(); bRoundedCorners = false; backgroundAlphaName = "backgroundAlpha"; backgroundHole = null; radius = 0; radiusObj = null; drawBorder(_arg1, _arg2); drawBackground(_arg1, _arg2); } mx_internal function drawBorder(_arg1:Number, _arg2:Number):void{ var _local5:Number; var _local6:uint; var _local7:uint; var _local8:String; var _local9:Number; var _local10:uint; var _local11:Boolean; var _local12:uint; var _local13:Array; var _local14:Array; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:uint; var _local19:Boolean; var _local20:Object; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Object; var _local27:Number; var _local28:Number; var _local29:IContainer; var _local30:EdgeMetrics; var _local31:Boolean; var _local32:Number; var _local33:Array; var _local34:uint; var _local35:Boolean; var _local36:Number; var _local3:String = getStyle("borderStyle"); var _local4:Array = getStyle("highlightAlphas"); var _local21:Boolean; var _local26:Graphics = graphics; _local26.clear(); if (_local3){ switch (_local3){ case "none": break; case "inset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, 25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local22, _local24, Number(_local25), Number(_local25), Number(_local25)); break; case "outset": _local7 = getStyle("borderColor"); _local22 = ColorUtil.adjustBrightness2(_local7, -40); _local23 = ColorUtil.adjustBrightness2(_local7, -25); _local24 = ColorUtil.adjustBrightness2(_local7, 40); _local25 = backgroundColor; if ((((_local25 === null)) || ((_local25 === "")))){ _local25 = _local7; }; draw3dBorder(_local23, _local24, _local22, Number(_local25), Number(_local25), Number(_local25)); break; case "alert": case "default": if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _local27 = getStyle("backgroundAlpha"); _local5 = getStyle("borderAlpha"); backgroundAlphaName = "borderAlpha"; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local28 = (bRoundedCorners) ? radius : 0; drawDropShadow(0, 0, _arg1, _arg2, radius, radius, _local28, _local28); if (!bRoundedCorners){ radiusObj = {}; }; _local29 = (parent as IContainer); if (_local29){ _local30 = _local29.viewMetrics; backgroundHole = {x:_local30.left, y:_local30.top, w:Math.max(0, ((_arg1 - _local30.left) - _local30.right)), h:Math.max(0, ((_arg2 - _local30.top) - _local30.bottom)), r:0}; if ((((backgroundHole.w > 0)) && ((backgroundHole.h > 0)))){ if (_local27 != _local5){ drawDropShadow(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h, 0, 0, 0, 0); }; _local26.beginFill(Number(backgroundColor), _local27); _local26.drawRect(backgroundHole.x, backgroundHole.y, backgroundHole.w, backgroundHole.h); _local26.endFill(); }; }; backgroundColor = getStyle("borderColor"); }; break; case "dropdown": _local12 = getStyle("dropdownBorderColor"); drawDropShadow(0, 0, _arg1, _arg2, 4, 0, 0, 4); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, 5068126, 1); drawRoundRect(0, 0, _arg1, _arg2, {tl:4, tr:0, br:0, bl:4}, [0xFFFFFF, 0xFFFFFF], [0.7, 0], verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); if (!isNaN(_local12)){ drawRoundRect(0, 0, (_arg1 + 1), _arg2, {tl:4, tr:0, br:0, bl:4}, _local12, 0.5); drawRoundRect(1, 1, (_arg1 - 1), (_arg2 - 2), {tl:3, tr:0, br:0, bl:3}, 0xFFFFFF, 1); drawRoundRect(1, 2, (_arg1 - 1), (_arg2 - 3), {tl:3, tr:0, br:0, bl:3}, [0xEEEEEE, 0xFFFFFF], 1, verticalGradientMatrix(0, 0, (_arg1 - 1), (_arg2 - 3))); }; backgroundColor = null; break; case "menuBorder": _local7 = getStyle("borderColor"); drawRoundRect(0, 0, _arg1, _arg2, 0, _local7, 1); drawDropShadow(1, 1, (_arg1 - 2), (_arg2 - 2), 0, 0, 0, 0); break; case "comboNonEdit": break; case "controlBar": if ((((_arg1 == 0)) || ((_arg2 == 0)))){ backgroundColor = null; break; }; _local14 = getStyle("footerColors"); _local31 = !((_local14 == null)); _local32 = getStyle("borderAlpha"); if (_local31){ _local26.lineStyle(0, ((_local14.length > 0)) ? _local14[1] : _local14[0], _local32); _local26.moveTo(0, 0); _local26.lineTo(_arg1, 0); _local26.lineStyle(0, 0, 0); if (((((parent) && (parent.parent))) && ((parent.parent is IStyleClient)))){ radius = IStyleClient(parent.parent).getStyle("cornerRadius"); _local32 = IStyleClient(parent.parent).getStyle("borderAlpha"); }; if (isNaN(radius)){ radius = 0; }; if (IStyleClient(parent.parent).getStyle("roundedBottomCorners").toString().toLowerCase() != "true"){ radius = 0; }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); if ((((_local14.length > 1)) && (!((_local14[0] == _local14[1]))))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:0, tr:0, bl:radius, br:radius}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(1, 2, (_arg1 - 2), (_arg2 - 3), {tl:0, tr:0, bl:(radius - 1), br:(radius - 1)}, _local14, _local32, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; }; backgroundColor = null; break; case "applicationControlBar": _local13 = getStyle("fillColors"); _local5 = getStyle("backgroundAlpha"); _local4 = getStyle("highlightAlphas"); _local33 = getStyle("fillAlphas"); _local11 = getStyle("docked"); _local34 = uint(backgroundColor); radius = getStyle("cornerRadius"); if (!radius){ radius = 0; }; drawDropShadow(0, 1, _arg1, (_arg2 - 1), radius, radius, radius, radius); if (((!((backgroundColor === null))) && (StyleManager.isValidStyleValue(backgroundColor)))){ drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local34, _local5, verticalGradientMatrix(0, 0, _arg1, _arg2)); }; drawRoundRect(0, 1, _arg1, (_arg2 - 1), radius, _local13, _local33, verticalGradientMatrix(0, 0, _arg1, _arg2)); drawRoundRect(0, 1, _arg1, ((_arg2 / 2) - 1), {tl:radius, tr:radius, bl:0, br:0}, [0xFFFFFF, 0xFFFFFF], _local4, verticalGradientMatrix(0, 0, _arg1, ((_arg2 / 2) - 1))); drawRoundRect(0, 1, _arg1, (_arg2 - 1), {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, 0.3, null, GradientType.LINEAR, null, {x:0, y:2, w:_arg1, h:(_arg2 - 2), r:{tl:radius, tr:radius, bl:0, br:0}}); backgroundColor = null; break; default: _local7 = getStyle("borderColor"); _local9 = getStyle("borderThickness"); _local8 = getStyle("borderSides"); _local35 = true; radius = getStyle("cornerRadius"); bRoundedCorners = (getStyle("roundedBottomCorners").toString().toLowerCase() == "true"); _local36 = Math.max((radius - _local9), 0); _local20 = {x:_local9, y:_local9, w:(_arg1 - (_local9 * 2)), h:(_arg2 - (_local9 * 2)), r:_local36}; if (!bRoundedCorners){ radiusObj = {tl:radius, tr:radius, bl:0, br:0}; _local20.r = {tl:_local36, tr:_local36, bl:0, br:0}; }; if (_local8 != "left top right bottom"){ _local20.r = {tl:_local36, tr:_local36, bl:(bRoundedCorners) ? _local36 : 0, br:(bRoundedCorners) ? _local36 : 0}; radiusObj = {tl:radius, tr:radius, bl:(bRoundedCorners) ? radius : 0, br:(bRoundedCorners) ? radius : 0}; _local8 = _local8.toLowerCase(); if (_local8.indexOf("left") == -1){ _local20.x = 0; _local20.w = (_local20.w + _local9); _local20.r.tl = 0; _local20.r.bl = 0; radiusObj.tl = 0; radiusObj.bl = 0; _local35 = false; }; if (_local8.indexOf("top") == -1){ _local20.y = 0; _local20.h = (_local20.h + _local9); _local20.r.tl = 0; _local20.r.tr = 0; radiusObj.tl = 0; radiusObj.tr = 0; _local35 = false; }; if (_local8.indexOf("right") == -1){ _local20.w = (_local20.w + _local9); _local20.r.tr = 0; _local20.r.br = 0; radiusObj.tr = 0; radiusObj.br = 0; _local35 = false; }; if (_local8.indexOf("bottom") == -1){ _local20.h = (_local20.h + _local9); _local20.r.bl = 0; _local20.r.br = 0; radiusObj.bl = 0; radiusObj.br = 0; _local35 = false; }; }; if ((((radius == 0)) && (_local35))){ drawDropShadow(0, 0, _arg1, _arg2, 0, 0, 0, 0); _local26.beginFill(_local7); _local26.drawRect(0, 0, _arg1, _arg2); _local26.drawRect(_local9, _local9, (_arg1 - (2 * _local9)), (_arg2 - (2 * _local9))); _local26.endFill(); } else { if (radiusObj){ drawDropShadow(0, 0, _arg1, _arg2, radiusObj.tl, radiusObj.tr, radiusObj.br, radiusObj.bl); drawRoundRect(0, 0, _arg1, _arg2, radiusObj, _local7, 1, null, null, null, _local20); radiusObj.tl = Math.max((radius - _local9), 0); radiusObj.tr = Math.max((radius - _local9), 0); radiusObj.bl = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; radiusObj.br = (bRoundedCorners) ? Math.max((radius - _local9), 0) : 0; } else { drawDropShadow(0, 0, _arg1, _arg2, radius, radius, radius, radius); drawRoundRect(0, 0, _arg1, _arg2, radius, _local7, 1, null, null, null, _local20); radius = Math.max((getStyle("cornerRadius") - _local9), 0); }; }; }; }; } mx_internal function drawBackground(_arg1:Number, _arg2:Number):void{ var _local4:Number; var _local5:Number; var _local6:EdgeMetrics; var _local7:Graphics; var _local8:Number; var _local9:Number; var _local10:Array; var _local11:Number; if (((((((!((backgroundColor === null))) && (!((backgroundColor === ""))))) || (getStyle("mouseShield")))) || (getStyle("mouseShieldChildren")))){ _local4 = Number(backgroundColor); _local5 = 1; _local6 = getBackgroundColorMetrics(); _local7 = graphics; if (((((isNaN(_local4)) || ((backgroundColor === "")))) || ((backgroundColor === null)))){ _local5 = 0; _local4 = 0xFFFFFF; } else { _local5 = getStyle(backgroundAlphaName); }; if (((!((radius == 0))) || (backgroundHole))){ _local8 = _local6.bottom; if (radiusObj){ _local9 = (bRoundedCorners) ? radius : 0; radiusObj = {tl:radius, tr:radius, bl:_local9, br:_local9}; drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radiusObj, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); } else { drawRoundRect(_local6.left, _local6.top, (width - (_local6.left + _local6.right)), (height - (_local6.top + _local8)), radius, _local4, _local5, null, GradientType.LINEAR, null, backgroundHole); }; } else { _local7.beginFill(_local4, _local5); _local7.drawRect(_local6.left, _local6.top, ((_arg1 - _local6.right) - _local6.left), ((_arg2 - _local6.bottom) - _local6.top)); _local7.endFill(); }; }; var _local3:String = getStyle("borderStyle"); if ((((((FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0)) && ((((_local3 == "alert")) || ((_local3 == "default")))))) && ((getStyle("headerColors") == null)))){ _local10 = getStyle("highlightAlphas"); _local11 = (_local10) ? _local10[0] : 0.3; drawRoundRect(0, 0, _arg1, _arg2, {tl:radius, tr:radius, bl:0, br:0}, 0xFFFFFF, _local11, null, GradientType.LINEAR, null, {x:0, y:1, w:_arg1, h:(_arg2 - 1), r:{tl:radius, tr:radius, bl:0, br:0}}); }; } mx_internal function drawDropShadow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):void{ var _local11:Number; var _local12:Boolean; if ((((((((getStyle("dropShadowEnabled") == false)) || ((getStyle("dropShadowEnabled") == "false")))) || ((_arg3 == 0)))) || ((_arg4 == 0)))){ return; }; var _local9:Number = getStyle("shadowDistance"); var _local10:String = getStyle("shadowDirection"); if (getStyle("borderStyle") == "applicationControlBar"){ _local12 = getStyle("docked"); _local11 = (_local12) ? 90 : getDropShadowAngle(_local9, _local10); _local9 = Math.abs(_local9); } else { _local11 = getDropShadowAngle(_local9, _local10); _local9 = (Math.abs(_local9) + 2); }; if (!dropShadow){ dropShadow = new RectangularDropShadow(); }; dropShadow.distance = _local9; dropShadow.angle = _local11; dropShadow.color = getStyle("dropShadowColor"); dropShadow.alpha = 0.4; dropShadow.tlRadius = _arg5; dropShadow.trRadius = _arg6; dropShadow.blRadius = _arg8; dropShadow.brRadius = _arg7; dropShadow.drawShadow(graphics, _arg1, _arg2, _arg3, _arg4); } mx_internal function getBackgroundColor():Object{ var _local2:Object; var _local1:IUIComponent = (parent as IUIComponent); if (((_local1) && (!(_local1.enabled)))){ _local2 = getStyle("backgroundDisabledColor"); if (((!((_local2 === null))) && (StyleManager.isValidStyleValue(_local2)))){ return (_local2); }; }; return (getStyle("backgroundColor")); } mx_internal function draw3dBorder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):void{ var _local7:Number = width; var _local8:Number = height; drawDropShadow(0, 0, width, height, 0, 0, 0, 0); var _local9:Graphics = graphics; _local9.beginFill(_arg1); _local9.drawRect(0, 0, _local7, _local8); _local9.drawRect(1, 0, (_local7 - 2), _local8); _local9.endFill(); _local9.beginFill(_arg2); _local9.drawRect(1, 0, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg3); _local9.drawRect(1, (_local8 - 1), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg4); _local9.drawRect(1, 1, (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg5); _local9.drawRect(1, (_local8 - 2), (_local7 - 2), 1); _local9.endFill(); _local9.beginFill(_arg6); _local9.drawRect(1, 2, (_local7 - 2), (_local8 - 4)); _local9.drawRect(2, 2, (_local7 - 4), (_local8 - 4)); _local9.endFill(); } mx_internal function getBackgroundColorMetrics():EdgeMetrics{ return (borderMetrics); } mx_internal function getDropShadowAngle(_arg1:Number, _arg2:String):Number{ if (_arg2 == "left"){ return (((_arg1 >= 0)) ? 135 : 225); //unresolved jump }; if (_arg2 == "right"){ return (((_arg1 >= 0)) ? 45 : 315); //unresolved jump }; return (((_arg1 >= 0)) ? 90 : 270); } override public function get borderMetrics():EdgeMetrics{ var _local1:Number; var _local3:String; if (_borderMetrics){ return (_borderMetrics); }; var _local2:String = getStyle("borderStyle"); if ((((_local2 == "default")) || ((_local2 == "alert")))){ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ _borderMetrics = new EdgeMetrics(0, 0, 0, 0); } else { return (EdgeMetrics.EMPTY); }; } else { if ((((_local2 == "controlBar")) || ((_local2 == "applicationControlBar")))){ _borderMetrics = new EdgeMetrics(1, 1, 1, 1); } else { if (_local2 == "solid"){ _local1 = getStyle("borderThickness"); if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); _local3 = getStyle("borderSides"); if (_local3 != "left top right bottom"){ if (_local3.indexOf("left") == -1){ _borderMetrics.left = 0; }; if (_local3.indexOf("top") == -1){ _borderMetrics.top = 0; }; if (_local3.indexOf("right") == -1){ _borderMetrics.right = 0; }; if (_local3.indexOf("bottom") == -1){ _borderMetrics.bottom = 0; }; }; } else { _local1 = BORDER_WIDTHS[_local2]; if (isNaN(_local1)){ _local1 = 0; }; _borderMetrics = new EdgeMetrics(_local1, _local1, _local1, _local1); }; }; }; return (_borderMetrics); } } }//package mx.skins.halo
Section 168
//HaloFocusRect (mx.skins.halo.HaloFocusRect) package mx.skins.halo { import flash.display.*; import mx.styles.*; import mx.skins.*; import mx.utils.*; public class HaloFocusRect extends ProgrammaticSkin implements IStyleClient { private var _focusColor:Number; mx_internal static const VERSION:String = "3.3.0.4852"; public function get inheritingStyles():Object{ return (styleName.inheritingStyles); } public function set inheritingStyles(_arg1:Object):void{ } public function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void{ } public function registerEffects(_arg1:Array):void{ } public function regenerateStyleCache(_arg1:Boolean):void{ } public function get styleDeclaration():CSSStyleDeclaration{ return (CSSStyleDeclaration(styleName)); } public function getClassStyleDeclarations():Array{ return ([]); } public function get className():String{ return ("HaloFocusRect"); } public function clearStyle(_arg1:String):void{ if (_arg1 == "focusColor"){ _focusColor = NaN; }; } public function setStyle(_arg1:String, _arg2):void{ if (_arg1 == "focusColor"){ _focusColor = _arg2; }; } public function set nonInheritingStyles(_arg1:Object):void{ } public function get nonInheritingStyles():Object{ return (styleName.nonInheritingStyles); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var _local12:Number; var _local13:Number; var _local14:Number; var _local15:Number; var _local16:Number; var _local17:Number; super.updateDisplayList(_arg1, _arg2); var _local3:String = getStyle("focusBlendMode"); var _local4:Number = getStyle("focusAlpha"); var _local5:Number = getStyle("focusColor"); var _local6:Number = getStyle("cornerRadius"); var _local7:Number = getStyle("focusThickness"); var _local8:String = getStyle("focusRoundedCorners"); var _local9:Number = getStyle("themeColor"); var _local10:Number = _local5; if (isNaN(_local10)){ _local10 = _local9; }; var _local11:Graphics = graphics; _local11.clear(); if (_local3){ blendMode = _local3; }; if (((!((_local8 == "tl tr bl br"))) && ((_local6 > 0)))){ _local12 = 0; _local13 = 0; _local14 = 0; _local15 = 0; _local16 = (_local6 + _local7); if (_local8.indexOf("tl") >= 0){ _local12 = _local16; }; if (_local8.indexOf("tr") >= 0){ _local14 = _local16; }; if (_local8.indexOf("bl") >= 0){ _local13 = _local16; }; if (_local8.indexOf("br") >= 0){ _local15 = _local16; }; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, 0, 0, _arg1, _arg2, _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); _local16 = (_local6 + (_local7 / 2)); _local12 = (_local12) ? _local16 : 0; _local14 = (_local14) ? _local16 : 0; _local13 = (_local13) ? _local16 : 0; _local15 = (_local15) ? _local16 : 0; _local11.beginFill(_local10, _local4); GraphicsUtil.drawRoundRectComplex(_local11, (_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local12, _local14, _local13, _local15); _local12 = (_local12) ? _local6 : 0; _local14 = (_local14) ? _local6 : 0; _local13 = (_local13) ? _local6 : 0; _local15 = (_local15) ? _local6 : 0; GraphicsUtil.drawRoundRectComplex(_local11, _local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local12, _local14, _local13, _local15); _local11.endFill(); } else { _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + _local7) : 0 * 2); _local11.drawRoundRect(0, 0, _arg1, _arg2, _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); _local11.beginFill(_local10, _local4); _local17 = (((_local6 > 0)) ? (_local6 + (_local7 / 2)) : 0 * 2); _local11.drawRoundRect((_local7 / 2), (_local7 / 2), (_arg1 - _local7), (_arg2 - _local7), _local17, _local17); _local17 = (_local6 * 2); _local11.drawRoundRect(_local7, _local7, (_arg1 - (2 * _local7)), (_arg2 - (2 * _local7)), _local17, _local17); _local11.endFill(); }; } override public function getStyle(_arg1:String){ return (((_arg1 == "focusColor")) ? _focusColor : super.getStyle(_arg1)); } public function set styleDeclaration(_arg1:CSSStyleDeclaration):void{ } } }//package mx.skins.halo
Section 169
//Border (mx.skins.Border) package mx.skins { import mx.core.*; public class Border extends ProgrammaticSkin implements IBorder { mx_internal static const VERSION:String = "3.3.0.4852"; public function get borderMetrics():EdgeMetrics{ return (EdgeMetrics.EMPTY); } } }//package mx.skins
Section 170
//ProgrammaticSkin (mx.skins.ProgrammaticSkin) package mx.skins { import flash.display.*; import mx.core.*; import flash.geom.*; import mx.styles.*; import mx.managers.*; import mx.utils.*; public class ProgrammaticSkin extends FlexShape implements IFlexDisplayObject, IInvalidating, ILayoutManagerClient, ISimpleStyleClient, IProgrammaticSkin { private var _initialized:Boolean;// = false private var _height:Number; private var invalidateDisplayListFlag:Boolean;// = false private var _styleName:IStyleClient; private var _nestLevel:int;// = 0 private var _processedDescriptors:Boolean;// = false private var _updateCompletePendingFlag:Boolean;// = true private var _width:Number; mx_internal static const VERSION:String = "3.3.0.4852"; private static var tempMatrix:Matrix = new Matrix(); public function ProgrammaticSkin(){ _width = measuredWidth; _height = measuredHeight; } public function getStyle(_arg1:String){ return ((_styleName) ? _styleName.getStyle(_arg1) : null); } protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ } public function get nestLevel():int{ return (_nestLevel); } public function set nestLevel(_arg1:int):void{ _nestLevel = _arg1; invalidateDisplayList(); } override public function get height():Number{ return (_height); } public function get updateCompletePendingFlag():Boolean{ return (_updateCompletePendingFlag); } protected function verticalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 90)); } public function validateSize(_arg1:Boolean=false):void{ } public function invalidateDisplayList():void{ if (((!(invalidateDisplayListFlag)) && ((nestLevel > 0)))){ invalidateDisplayListFlag = true; UIComponentGlobals.layoutManager.invalidateDisplayList(this); }; } public function set updateCompletePendingFlag(_arg1:Boolean):void{ _updateCompletePendingFlag = _arg1; } protected function horizontalGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Matrix{ return (rotatedGradientMatrix(_arg1, _arg2, _arg3, _arg4, 0)); } override public function set height(_arg1:Number):void{ _height = _arg1; invalidateDisplayList(); } public function set processedDescriptors(_arg1:Boolean):void{ _processedDescriptors = _arg1; } public function validateDisplayList():void{ invalidateDisplayListFlag = false; updateDisplayList(width, height); } public function get measuredWidth():Number{ return (0); } override public function set width(_arg1:Number):void{ _width = _arg1; invalidateDisplayList(); } public function get measuredHeight():Number{ return (0); } public function set initialized(_arg1:Boolean):void{ _initialized = _arg1; } protected function drawRoundRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Object=null, _arg7:Object=null, _arg8:Matrix=null, _arg9:String="linear", _arg10:Array=null, _arg11:Object=null):void{ var _local13:Number; var _local14:Array; var _local15:Object; var _local12:Graphics = graphics; if ((((_arg3 == 0)) || ((_arg4 == 0)))){ return; }; if (_arg6 !== null){ if ((_arg6 is uint)){ _local12.beginFill(uint(_arg6), Number(_arg7)); } else { if ((_arg6 is Array)){ _local14 = ((_arg7 is Array)) ? (_arg7 as Array) : [_arg7, _arg7]; if (!_arg10){ _arg10 = [0, 0xFF]; }; _local12.beginGradientFill(_arg9, (_arg6 as Array), _local14, _arg10, _arg8); }; }; }; if (!_arg5){ _local12.drawRect(_arg1, _arg2, _arg3, _arg4); } else { if ((_arg5 is Number)){ _local13 = (Number(_arg5) * 2); _local12.drawRoundRect(_arg1, _arg2, _arg3, _arg4, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg1, _arg2, _arg3, _arg4, _arg5.tl, _arg5.tr, _arg5.bl, _arg5.br); }; }; if (_arg11){ _local15 = _arg11.r; if ((_local15 is Number)){ _local13 = (Number(_local15) * 2); _local12.drawRoundRect(_arg11.x, _arg11.y, _arg11.w, _arg11.h, _local13, _local13); } else { GraphicsUtil.drawRoundRectComplex(_local12, _arg11.x, _arg11.y, _arg11.w, _arg11.h, _local15.tl, _local15.tr, _local15.bl, _local15.br); }; }; if (_arg6 !== null){ _local12.endFill(); }; } public function get processedDescriptors():Boolean{ return (_processedDescriptors); } public function set styleName(_arg1:Object):void{ if (_styleName != _arg1){ _styleName = (_arg1 as IStyleClient); invalidateDisplayList(); }; } public function setActualSize(_arg1:Number, _arg2:Number):void{ var _local3:Boolean; if (_width != _arg1){ _width = _arg1; _local3 = true; }; if (_height != _arg2){ _height = _arg2; _local3 = true; }; if (_local3){ invalidateDisplayList(); }; } public function styleChanged(_arg1:String):void{ invalidateDisplayList(); } override public function get width():Number{ return (_width); } public function invalidateProperties():void{ } public function get initialized():Boolean{ return (_initialized); } protected function rotatedGradientMatrix(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Matrix{ tempMatrix.createGradientBox(_arg3, _arg4, ((_arg5 * Math.PI) / 180), _arg1, _arg2); return (tempMatrix); } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get styleName():Object{ return (_styleName); } public function validateNow():void{ if (invalidateDisplayListFlag){ validateDisplayList(); }; } public function invalidateSize():void{ } public function validateProperties():void{ } } }//package mx.skins
Section 171
//RectangularBorder (mx.skins.RectangularBorder) package mx.skins { import flash.events.*; import flash.display.*; import mx.core.*; import flash.utils.*; import flash.geom.*; import mx.styles.*; import flash.system.*; import mx.resources.*; import flash.net.*; public class RectangularBorder extends Border implements IRectangularBorder { private var backgroundImage:DisplayObject; private var backgroundImageHeight:Number; private var _backgroundImageBounds:Rectangle; private var backgroundImageStyle:Object; private var backgroundImageWidth:Number; private var resourceManager:IResourceManager; mx_internal static const VERSION:String = "3.3.0.4852"; public function RectangularBorder(){ resourceManager = ResourceManager.getInstance(); super(); addEventListener(Event.REMOVED, removedHandler); } public function layoutBackgroundImage():void{ var _local4:Number; var _local5:Number; var _local7:Number; var _local8:Number; var _local14:Number; var _local15:Graphics; var _local1:DisplayObject = parent; var _local2:EdgeMetrics = ((_local1 is IContainer)) ? IContainer(_local1).viewMetrics : borderMetrics; var _local3 = !((getStyle("backgroundAttachment") == "fixed")); if (_backgroundImageBounds){ _local4 = _backgroundImageBounds.width; _local5 = _backgroundImageBounds.height; } else { _local4 = ((width - _local2.left) - _local2.right); _local5 = ((height - _local2.top) - _local2.bottom); }; var _local6:Number = getBackgroundSize(); if (isNaN(_local6)){ _local7 = 1; _local8 = 1; } else { _local14 = (_local6 * 0.01); _local7 = ((_local14 * _local4) / backgroundImageWidth); _local8 = ((_local14 * _local5) / backgroundImageHeight); }; backgroundImage.scaleX = _local7; backgroundImage.scaleY = _local8; var _local9:Number = Math.round((0.5 * (_local4 - (backgroundImageWidth * _local7)))); var _local10:Number = Math.round((0.5 * (_local5 - (backgroundImageHeight * _local8)))); backgroundImage.x = _local2.left; backgroundImage.y = _local2.top; var _local11:Shape = Shape(backgroundImage.mask); _local11.x = _local2.left; _local11.y = _local2.top; if (((_local3) && ((_local1 is IContainer)))){ _local9 = (_local9 - IContainer(_local1).horizontalScrollPosition); _local10 = (_local10 - IContainer(_local1).verticalScrollPosition); }; backgroundImage.alpha = getStyle("backgroundAlpha"); backgroundImage.x = (backgroundImage.x + _local9); backgroundImage.y = (backgroundImage.y + _local10); var _local12:Number = ((width - _local2.left) - _local2.right); var _local13:Number = ((height - _local2.top) - _local2.bottom); if (((!((_local11.width == _local12))) || (!((_local11.height == _local13))))){ _local15 = _local11.graphics; _local15.clear(); _local15.beginFill(0xFFFFFF); _local15.drawRect(0, 0, _local12, _local13); _local15.endFill(); }; } public function set backgroundImageBounds(_arg1:Rectangle):void{ _backgroundImageBounds = _arg1; invalidateDisplayList(); } private function getBackgroundSize():Number{ var _local3:int; var _local1:Number = NaN; var _local2:Object = getStyle("backgroundSize"); if (((_local2) && ((_local2 is String)))){ _local3 = _local2.indexOf("%"); if (_local3 != -1){ _local1 = Number(_local2.substr(0, _local3)); }; }; return (_local1); } private function removedHandler(_arg1:Event):void{ var _local2:IChildList; if (backgroundImage){ _local2 = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); _local2.removeChild(backgroundImage.mask); _local2.removeChild(backgroundImage); backgroundImage = null; }; } private function initBackgroundImage(_arg1:DisplayObject):void{ backgroundImage = _arg1; if ((_arg1 is Loader)){ backgroundImageWidth = Loader(_arg1).contentLoaderInfo.width; backgroundImageHeight = Loader(_arg1).contentLoaderInfo.height; } else { backgroundImageWidth = backgroundImage.width; backgroundImageHeight = backgroundImage.height; if ((_arg1 is ISimpleStyleClient)){ ISimpleStyleClient(_arg1).styleName = styleName; }; }; var _local2:IChildList = ((parent is IRawChildrenContainer)) ? IRawChildrenContainer(parent).rawChildren : IChildList(parent); var _local3:Shape = new FlexShape(); _local3.name = "backgroundMask"; _local3.x = 0; _local3.y = 0; _local2.addChild(_local3); var _local4:int = _local2.getChildIndex(this); _local2.addChildAt(backgroundImage, (_local4 + 1)); backgroundImage.mask = _local3; } public function get backgroundImageBounds():Rectangle{ return (_backgroundImageBounds); } public function get hasBackgroundImage():Boolean{ return (!((backgroundImage == null))); } private function completeEventHandler(_arg1:Event):void{ if (!parent){ return; }; var _local2:DisplayObject = DisplayObject(LoaderInfo(_arg1.target).loader); initBackgroundImage(_local2); layoutBackgroundImage(); dispatchEvent(_arg1.clone()); } override protected function updateDisplayList(_arg1:Number, _arg2:Number):void{ var cls:Class; var newStyleObj:DisplayObject; var loader:Loader; var loaderContext:LoaderContext; var message:String; var unscaledWidth = _arg1; var unscaledHeight = _arg2; if (!parent){ return; }; var newStyle:Object = getStyle("backgroundImage"); if (newStyle != backgroundImageStyle){ removedHandler(null); backgroundImageStyle = newStyle; if (((newStyle) && ((newStyle as Class)))){ cls = Class(newStyle); initBackgroundImage(new (cls)); } else { if (((newStyle) && ((newStyle is String)))){ try { cls = Class(getDefinitionByName(String(newStyle))); } catch(e:Error) { }; if (cls){ newStyleObj = new (cls); initBackgroundImage(newStyleObj); } else { loader = new FlexLoader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeEventHandler); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorEventHandler); loader.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, errorEventHandler); loaderContext = new LoaderContext(); loaderContext.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); loader.load(new URLRequest(String(newStyle)), loaderContext); }; } else { if (newStyle){ message = resourceManager.getString("skins", "notLoaded", [newStyle]); throw (new Error(message)); }; }; }; }; if (backgroundImage){ layoutBackgroundImage(); }; } private function errorEventHandler(_arg1:Event):void{ } } }//package mx.skins
Section 172
//CSSStyleDeclaration (mx.styles.CSSStyleDeclaration) package mx.styles { import flash.events.*; import flash.display.*; import mx.core.*; import flash.utils.*; import mx.managers.*; public class CSSStyleDeclaration extends EventDispatcher { mx_internal var effects:Array; protected var overrides:Object; public var defaultFactory:Function; public var factory:Function; mx_internal var selectorRefCount:int;// = 0 private var styleManager:IStyleManager2; private var clones:Dictionary; mx_internal static const VERSION:String = "3.3.0.4852"; private static const NOT_A_COLOR:uint = 4294967295; private static const FILTERMAP_PROP:String = "__reserved__filterMap"; public function CSSStyleDeclaration(_arg1:String=null){ clones = new Dictionary(true); super(); if (_arg1){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); styleManager.setStyleDeclaration(_arg1, this, false); }; } mx_internal function addStyleToProtoChain(_arg1:Object, _arg2:DisplayObject, _arg3:Object=null):Object{ var p:String; var emptyObjectFactory:Function; var filteredChain:Object; var filterObjectFactory:Function; var i:String; var chain = _arg1; var target = _arg2; var filterMap = _arg3; var nodeAddedToChain:Boolean; var originalChain:Object = chain; if (filterMap){ chain = {}; }; if (defaultFactory != null){ defaultFactory.prototype = chain; chain = new defaultFactory(); nodeAddedToChain = true; }; if (factory != null){ factory.prototype = chain; chain = new factory(); nodeAddedToChain = true; }; if (overrides){ if ((((defaultFactory == null)) && ((factory == null)))){ emptyObjectFactory = function ():void{ }; emptyObjectFactory.prototype = chain; chain = new (emptyObjectFactory); nodeAddedToChain = true; }; for (p in overrides) { if (overrides[p] === undefined){ delete chain[p]; } else { chain[p] = overrides[p]; }; }; }; if (filterMap){ if (nodeAddedToChain){ filteredChain = {}; filterObjectFactory = function ():void{ }; filterObjectFactory.prototype = originalChain; filteredChain = new (filterObjectFactory); for (i in chain) { if (filterMap[i] != null){ filteredChain[filterMap[i]] = chain[i]; }; }; chain = filteredChain; chain[FILTERMAP_PROP] = filterMap; } else { chain = originalChain; }; }; if (nodeAddedToChain){ clones[chain] = 1; }; return (chain); } public function getStyle(_arg1:String){ var _local2:*; var _local3:*; if (overrides){ if ((((_arg1 in overrides)) && ((overrides[_arg1] === undefined)))){ return (undefined); }; _local3 = overrides[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (factory != null){ factory.prototype = {}; _local2 = new factory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; if (defaultFactory != null){ defaultFactory.prototype = {}; _local2 = new defaultFactory(); _local3 = _local2[_arg1]; if (_local3 !== undefined){ return (_local3); }; }; return (undefined); } public function clearStyle(_arg1:String):void{ setStyle(_arg1, undefined); } public function setStyle(_arg1:String, _arg2):void{ var _local7:int; var _local8:Object; var _local3:Object = getStyle(_arg1); var _local4:Boolean; if ((((((((((selectorRefCount > 0)) && ((factory == null)))) && ((defaultFactory == null)))) && (!(overrides)))) && (!((_local3 === _arg2))))){ _local4 = true; }; if (_arg2 !== undefined){ setStyle(_arg1, _arg2); } else { if (_arg2 == _local3){ return; }; setStyle(_arg1, _arg2); }; var _local5:Array = SystemManagerGlobals.topLevelSystemManagers; var _local6:int = _local5.length; if (_local4){ _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.regenerateStyleCache(true); _local7++; }; }; _local7 = 0; while (_local7 < _local6) { _local8 = _local5[_local7]; _local8.notifyStyleChangeInChildren(_arg1, true); _local7++; }; } private function clearStyleAttr(_arg1:String):void{ var _local2:*; if (!overrides){ overrides = {}; }; overrides[_arg1] = undefined; for (_local2 in clones) { delete _local2[_arg1]; }; } mx_internal function createProtoChainRoot():Object{ var _local1:Object = {}; if (defaultFactory != null){ defaultFactory.prototype = _local1; _local1 = new defaultFactory(); }; if (factory != null){ factory.prototype = _local1; _local1 = new factory(); }; clones[_local1] = 1; return (_local1); } mx_internal function clearOverride(_arg1:String):void{ if (((overrides) && (overrides[_arg1]))){ delete overrides[_arg1]; }; } mx_internal function setStyle(_arg1:String, _arg2):void{ var _local3:Object; var _local4:*; var _local5:Number; var _local6:Object; if (_arg2 === undefined){ clearStyleAttr(_arg1); return; }; if ((_arg2 is String)){ if (!styleManager){ styleManager = (Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2); }; _local5 = styleManager.getColorName(_arg2); if (_local5 != NOT_A_COLOR){ _arg2 = _local5; }; }; if (defaultFactory != null){ _local3 = new defaultFactory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if (factory != null){ _local3 = new factory(); if (_local3[_arg1] !== _arg2){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; } else { if (overrides){ delete overrides[_arg1]; }; }; }; if ((((defaultFactory == null)) && ((factory == null)))){ if (!overrides){ overrides = {}; }; overrides[_arg1] = _arg2; }; for (_local4 in clones) { _local6 = _local4[FILTERMAP_PROP]; if (_local6){ if (_local6[_arg1] != null){ _local4[_local6[_arg1]] = _arg2; }; } else { _local4[_arg1] = _arg2; }; }; } } }//package mx.styles
Section 173
//ISimpleStyleClient (mx.styles.ISimpleStyleClient) package mx.styles { public interface ISimpleStyleClient { function set styleName(_arg1:Object):void; function styleChanged(_arg1:String):void; function get styleName():Object; } }//package mx.styles
Section 174
//IStyleClient (mx.styles.IStyleClient) package mx.styles { public interface IStyleClient extends ISimpleStyleClient { function regenerateStyleCache(_arg1:Boolean):void; function get className():String; function clearStyle(_arg1:String):void; function getClassStyleDeclarations():Array; function get inheritingStyles():Object; function set nonInheritingStyles(_arg1:Object):void; function setStyle(_arg1:String, _arg2):void; function get styleDeclaration():CSSStyleDeclaration; function set styleDeclaration(_arg1:CSSStyleDeclaration):void; function get nonInheritingStyles():Object; function set inheritingStyles(_arg1:Object):void; function getStyle(_arg1:String); function notifyStyleChangeInChildren(_arg1:String, _arg2:Boolean):void; function registerEffects(_arg1:Array):void; } }//package mx.styles
Section 175
//IStyleManager (mx.styles.IStyleManager) package mx.styles { import flash.events.*; public interface IStyleManager { function isColorName(_arg1:String):Boolean; function registerParentDisplayListInvalidatingStyle(_arg1:String):void; function registerInheritingStyle(_arg1:String):void; function set stylesRoot(_arg1:Object):void; function get typeSelectorCache():Object; function styleDeclarationsChanged():void; function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void; function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean; function isSizeInvalidatingStyle(_arg1:String):Boolean; function get inheritingStyles():Object; function isValidStyleValue(_arg1):Boolean; function isParentSizeInvalidatingStyle(_arg1:String):Boolean; function getColorName(_arg1:Object):uint; function set typeSelectorCache(_arg1:Object):void; function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void; function getColorNames(_arg1:Array):void; function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher; function isInheritingStyle(_arg1:String):Boolean; function set inheritingStyles(_arg1:Object):void; function get stylesRoot():Object; function initProtoChainRoots():void; function registerColorName(_arg1:String, _arg2:uint):void; function registerParentSizeInvalidatingStyle(_arg1:String):void; function registerSizeInvalidatingStyle(_arg1:String):void; function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void; function isInheritingTextFormatStyle(_arg1:String):Boolean; function getStyleDeclaration(_arg1:String):CSSStyleDeclaration; } }//package mx.styles
Section 176
//IStyleManager2 (mx.styles.IStyleManager2) package mx.styles { import flash.events.*; import flash.system.*; public interface IStyleManager2 extends IStyleManager { function get selectors():Array; function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher; } }//package mx.styles
Section 177
//IStyleModule (mx.styles.IStyleModule) package mx.styles { public interface IStyleModule { function unload():void; } }//package mx.styles
Section 178
//StyleManager (mx.styles.StyleManager) package mx.styles { import flash.events.*; import mx.core.*; import flash.system.*; public class StyleManager { mx_internal static const VERSION:String = "3.3.0.4852"; public static const NOT_A_COLOR:uint = 4294967295; private static var _impl:IStyleManager2; private static var implClassDependency:StyleManagerImpl; public static function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentSizeInvalidatingStyle(_arg1)); } public static function registerInheritingStyle(_arg1:String):void{ impl.registerInheritingStyle(_arg1); } mx_internal static function set stylesRoot(_arg1:Object):void{ impl.stylesRoot = _arg1; } mx_internal static function get inheritingStyles():Object{ return (impl.inheritingStyles); } mx_internal static function styleDeclarationsChanged():void{ impl.styleDeclarationsChanged(); } public static function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ impl.setStyleDeclaration(_arg1, _arg2, _arg3); } public static function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ impl.registerParentDisplayListInvalidatingStyle(_arg1); } mx_internal static function get typeSelectorCache():Object{ return (impl.typeSelectorCache); } mx_internal static function set inheritingStyles(_arg1:Object):void{ impl.inheritingStyles = _arg1; } public static function isColorName(_arg1:String):Boolean{ return (impl.isColorName(_arg1)); } public static function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return (impl.isParentDisplayListInvalidatingStyle(_arg1)); } public static function isSizeInvalidatingStyle(_arg1:String):Boolean{ return (impl.isSizeInvalidatingStyle(_arg1)); } public static function getColorName(_arg1:Object):uint{ return (impl.getColorName(_arg1)); } mx_internal static function set typeSelectorCache(_arg1:Object):void{ impl.typeSelectorCache = _arg1; } public static function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ impl.unloadStyleDeclarations(_arg1, _arg2); } public static function getColorNames(_arg1:Array):void{ impl.getColorNames(_arg1); } public static function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false, _arg4:ApplicationDomain=null, _arg5:SecurityDomain=null):IEventDispatcher{ return (impl.loadStyleDeclarations2(_arg1, _arg2, _arg4, _arg5)); } private static function get impl():IStyleManager2{ if (!_impl){ _impl = IStyleManager2(Singleton.getInstance("mx.styles::IStyleManager2")); }; return (_impl); } public static function isValidStyleValue(_arg1):Boolean{ return (impl.isValidStyleValue(_arg1)); } mx_internal static function get stylesRoot():Object{ return (impl.stylesRoot); } public static function isInheritingStyle(_arg1:String):Boolean{ return (impl.isInheritingStyle(_arg1)); } mx_internal static function initProtoChainRoots():void{ impl.initProtoChainRoots(); } public static function registerParentSizeInvalidatingStyle(_arg1:String):void{ impl.registerParentSizeInvalidatingStyle(_arg1); } public static function get selectors():Array{ return (impl.selectors); } public static function registerSizeInvalidatingStyle(_arg1:String):void{ impl.registerSizeInvalidatingStyle(_arg1); } public static function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ impl.clearStyleDeclaration(_arg1, _arg2); } public static function registerColorName(_arg1:String, _arg2:uint):void{ impl.registerColorName(_arg1, _arg2); } public static function isInheritingTextFormatStyle(_arg1:String):Boolean{ return (impl.isInheritingTextFormatStyle(_arg1)); } public static function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ return (impl.getStyleDeclaration(_arg1)); } } }//package mx.styles
Section 179
//StyleManagerImpl (mx.styles.StyleManagerImpl) package mx.styles { import flash.events.*; import mx.core.*; import flash.utils.*; import flash.system.*; import mx.modules.*; import mx.events.*; import mx.resources.*; import mx.managers.*; public class StyleManagerImpl implements IStyleManager2 { private var _stylesRoot:Object; private var _selectors:Object; private var styleModules:Object; private var _inheritingStyles:Object; private var resourceManager:IResourceManager; private var _typeSelectorCache:Object; mx_internal static const VERSION:String = "3.3.0.4852"; private static var parentSizeInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var colorNames:Object = {transparent:"transparent", black:0, blue:0xFF, green:0x8000, gray:0x808080, silver:0xC0C0C0, lime:0xFF00, olive:0x808000, white:0xFFFFFF, yellow:0xFFFF00, maroon:0x800000, navy:128, red:0xFF0000, purple:0x800080, teal:0x8080, fuchsia:0xFF00FF, aqua:0xFFFF, magenta:0xFF00FF, cyan:0xFFFF, halogreen:8453965, haloblue:40447, haloorange:0xFFB600, halosilver:11455193}; private static var inheritingTextFormatStyles:Object = {align:true, bold:true, color:true, font:true, indent:true, italic:true, size:true}; private static var instance:IStyleManager2; private static var parentDisplayListInvalidatingStyles:Object = {bottom:true, horizontalCenter:true, left:true, right:true, top:true, verticalCenter:true, baseline:true}; private static var sizeInvalidatingStyles:Object = {borderStyle:true, borderThickness:true, fontAntiAliasType:true, fontFamily:true, fontGridFitType:true, fontSharpness:true, fontSize:true, fontStyle:true, fontThickness:true, fontWeight:true, headerHeight:true, horizontalAlign:true, horizontalGap:true, kerning:true, leading:true, letterSpacing:true, paddingBottom:true, paddingLeft:true, paddingRight:true, paddingTop:true, strokeWidth:true, tabHeight:true, tabWidth:true, verticalAlign:true, verticalGap:true}; public function StyleManagerImpl(){ _selectors = {}; styleModules = {}; resourceManager = ResourceManager.getInstance(); _inheritingStyles = {}; _typeSelectorCache = {}; super(); } public function setStyleDeclaration(_arg1:String, _arg2:CSSStyleDeclaration, _arg3:Boolean):void{ _arg2.selectorRefCount++; _selectors[_arg1] = _arg2; typeSelectorCache = {}; if (_arg3){ styleDeclarationsChanged(); }; } public function registerParentDisplayListInvalidatingStyle(_arg1:String):void{ parentDisplayListInvalidatingStyles[_arg1] = true; } public function getStyleDeclaration(_arg1:String):CSSStyleDeclaration{ var _local2:int; if (_arg1.charAt(0) != "."){ _local2 = _arg1.lastIndexOf("."); if (_local2 != -1){ _arg1 = _arg1.substr((_local2 + 1)); }; }; return (_selectors[_arg1]); } public function set typeSelectorCache(_arg1:Object):void{ _typeSelectorCache = _arg1; } public function isColorName(_arg1:String):Boolean{ return (!((colorNames[_arg1.toLowerCase()] === undefined))); } public function set inheritingStyles(_arg1:Object):void{ _inheritingStyles = _arg1; } public function getColorNames(_arg1:Array):void{ var _local4:uint; if (!_arg1){ return; }; var _local2:int = _arg1.length; var _local3:int; while (_local3 < _local2) { if (((!((_arg1[_local3] == null))) && (isNaN(_arg1[_local3])))){ _local4 = getColorName(_arg1[_local3]); if (_local4 != StyleManager.NOT_A_COLOR){ _arg1[_local3] = _local4; }; }; _local3++; }; } public function isInheritingTextFormatStyle(_arg1:String):Boolean{ return ((inheritingTextFormatStyles[_arg1] == true)); } public function registerParentSizeInvalidatingStyle(_arg1:String):void{ parentSizeInvalidatingStyles[_arg1] = true; } public function registerColorName(_arg1:String, _arg2:uint):void{ colorNames[_arg1.toLowerCase()] = _arg2; } public function isParentSizeInvalidatingStyle(_arg1:String):Boolean{ return ((parentSizeInvalidatingStyles[_arg1] == true)); } public function registerInheritingStyle(_arg1:String):void{ inheritingStyles[_arg1] = true; } public function set stylesRoot(_arg1:Object):void{ _stylesRoot = _arg1; } public function get typeSelectorCache():Object{ return (_typeSelectorCache); } public function isParentDisplayListInvalidatingStyle(_arg1:String):Boolean{ return ((parentDisplayListInvalidatingStyles[_arg1] == true)); } public function isSizeInvalidatingStyle(_arg1:String):Boolean{ return ((sizeInvalidatingStyles[_arg1] == true)); } public function styleDeclarationsChanged():void{ var _local4:Object; var _local1:Array = SystemManagerGlobals.topLevelSystemManagers; var _local2:int = _local1.length; var _local3:int; while (_local3 < _local2) { _local4 = _local1[_local3]; _local4.regenerateStyleCache(true); _local4.notifyStyleChangeInChildren(null, true); _local3++; }; } public function isValidStyleValue(_arg1):Boolean{ return (!((_arg1 === undefined))); } public function loadStyleDeclarations(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=false):IEventDispatcher{ return (loadStyleDeclarations2(_arg1, _arg2)); } public function get inheritingStyles():Object{ return (_inheritingStyles); } public function unloadStyleDeclarations(_arg1:String, _arg2:Boolean=true):void{ var _local4:IModuleInfo; var _local3:StyleModuleInfo = styleModules[_arg1]; if (_local3){ _local3.styleModule.unload(); _local4 = _local3.module; _local4.unload(); _local4.removeEventListener(ModuleEvent.READY, _local3.readyHandler); _local4.removeEventListener(ModuleEvent.ERROR, _local3.errorHandler); styleModules[_arg1] = null; }; if (_arg2){ styleDeclarationsChanged(); }; } public function getColorName(_arg1:Object):uint{ var _local2:Number; var _local3:*; if ((_arg1 is String)){ if (_arg1.charAt(0) == "#"){ _local2 = Number(("0x" + _arg1.slice(1))); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; if ((((_arg1.charAt(1) == "x")) && ((_arg1.charAt(0) == "0")))){ _local2 = Number(_arg1); return ((isNaN(_local2)) ? StyleManager.NOT_A_COLOR : uint(_local2)); }; _local3 = colorNames[_arg1.toLowerCase()]; if (_local3 === undefined){ return (StyleManager.NOT_A_COLOR); }; return (uint(_local3)); }; return (uint(_arg1)); } public function isInheritingStyle(_arg1:String):Boolean{ return ((inheritingStyles[_arg1] == true)); } public function get stylesRoot():Object{ return (_stylesRoot); } public function initProtoChainRoots():void{ if (FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0){ delete _inheritingStyles["textDecoration"]; delete _inheritingStyles["leading"]; }; if (!stylesRoot){ stylesRoot = _selectors["global"].addStyleToProtoChain({}, null); }; } public function loadStyleDeclarations2(_arg1:String, _arg2:Boolean=true, _arg3:ApplicationDomain=null, _arg4:SecurityDomain=null):IEventDispatcher{ var module:IModuleInfo; var styleEventDispatcher:StyleEventDispatcher; var timer:Timer; var timerHandler:Function; var url = _arg1; var update = _arg2; var applicationDomain = _arg3; var securityDomain = _arg4; module = ModuleManager.getModule(url); var readyHandler:Function = function (_arg1:ModuleEvent):void{ var _local2:IStyleModule = IStyleModule(_arg1.module.factory.create()); styleModules[_arg1.module.url].styleModule = _local2; if (update){ styleDeclarationsChanged(); }; }; module.addEventListener(ModuleEvent.READY, readyHandler, false, 0, true); styleEventDispatcher = new StyleEventDispatcher(module); var errorHandler:Function = function (_arg1:ModuleEvent):void{ var _local3:StyleEvent; var _local2:String = resourceManager.getString("styles", "unableToLoad", [_arg1.errorText, url]); if (styleEventDispatcher.willTrigger(StyleEvent.ERROR)){ _local3 = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local3.bytesLoaded = 0; _local3.bytesTotal = 0; _local3.errorText = _local2; styleEventDispatcher.dispatchEvent(_local3); } else { throw (new Error(_local2)); }; }; module.addEventListener(ModuleEvent.ERROR, errorHandler, false, 0, true); styleModules[url] = new StyleModuleInfo(module, readyHandler, errorHandler); timer = new Timer(0); timerHandler = function (_arg1:TimerEvent):void{ timer.removeEventListener(TimerEvent.TIMER, timerHandler); timer.stop(); module.load(applicationDomain, securityDomain); }; timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true); timer.start(); return (styleEventDispatcher); } public function registerSizeInvalidatingStyle(_arg1:String):void{ sizeInvalidatingStyles[_arg1] = true; } public function clearStyleDeclaration(_arg1:String, _arg2:Boolean):void{ var _local3:CSSStyleDeclaration = getStyleDeclaration(_arg1); if (((_local3) && ((_local3.selectorRefCount > 0)))){ _local3.selectorRefCount--; }; delete _selectors[_arg1]; if (_arg2){ styleDeclarationsChanged(); }; } public function get selectors():Array{ var _local2:String; var _local1:Array = []; for (_local2 in _selectors) { _local1.push(_local2); }; return (_local1); } public static function getInstance():IStyleManager2{ if (!instance){ instance = new (StyleManagerImpl); }; return (instance); } } }//package mx.styles import flash.events.*; import mx.modules.*; import mx.events.*; class StyleEventDispatcher extends EventDispatcher { private function StyleEventDispatcher(_arg1:IModuleInfo){ _arg1.addEventListener(ModuleEvent.ERROR, moduleInfo_errorHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true); _arg1.addEventListener(ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true); } private function moduleInfo_progressHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.PROGRESS, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; dispatchEvent(_local2); } private function moduleInfo_readyHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.COMPLETE); dispatchEvent(_local2); } private function moduleInfo_errorHandler(_arg1:ModuleEvent):void{ var _local2:StyleEvent = new StyleEvent(StyleEvent.ERROR, _arg1.bubbles, _arg1.cancelable); _local2.bytesLoaded = _arg1.bytesLoaded; _local2.bytesTotal = _arg1.bytesTotal; _local2.errorText = _arg1.errorText; dispatchEvent(_local2); } } class StyleModuleInfo { public var errorHandler:Function; public var readyHandler:Function; public var module:IModuleInfo; public var styleModule:IStyleModule; private function StyleModuleInfo(_arg1:IModuleInfo, _arg2:Function, _arg3:Function){ this.module = _arg1; this.readyHandler = _arg2; this.errorHandler = _arg3; } }
Section 180
//ColorUtil (mx.utils.ColorUtil) package mx.utils { public class ColorUtil { mx_internal static const VERSION:String = "3.3.0.4852"; public static function adjustBrightness2(_arg1:uint, _arg2:Number):uint{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg2 == 0){ return (_arg1); }; if (_arg2 < 0){ _arg2 = ((100 + _arg2) / 100); _local3 = (((_arg1 >> 16) & 0xFF) * _arg2); _local4 = (((_arg1 >> 8) & 0xFF) * _arg2); _local5 = ((_arg1 & 0xFF) * _arg2); } else { _arg2 = (_arg2 / 100); _local3 = ((_arg1 >> 16) & 0xFF); _local4 = ((_arg1 >> 8) & 0xFF); _local5 = (_arg1 & 0xFF); _local3 = (_local3 + ((0xFF - _local3) * _arg2)); _local4 = (_local4 + ((0xFF - _local4) * _arg2)); _local5 = (_local5 + ((0xFF - _local5) * _arg2)); _local3 = Math.min(_local3, 0xFF); _local4 = Math.min(_local4, 0xFF); _local5 = Math.min(_local5, 0xFF); }; return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } public static function rgbMultiply(_arg1:uint, _arg2:uint):uint{ var _local3:Number = ((_arg1 >> 16) & 0xFF); var _local4:Number = ((_arg1 >> 8) & 0xFF); var _local5:Number = (_arg1 & 0xFF); var _local6:Number = ((_arg2 >> 16) & 0xFF); var _local7:Number = ((_arg2 >> 8) & 0xFF); var _local8:Number = (_arg2 & 0xFF); return ((((((_local3 * _local6) / 0xFF) << 16) | (((_local4 * _local7) / 0xFF) << 8)) | ((_local5 * _local8) / 0xFF))); } public static function adjustBrightness(_arg1:uint, _arg2:Number):uint{ var _local3:Number = Math.max(Math.min((((_arg1 >> 16) & 0xFF) + _arg2), 0xFF), 0); var _local4:Number = Math.max(Math.min((((_arg1 >> 8) & 0xFF) + _arg2), 0xFF), 0); var _local5:Number = Math.max(Math.min(((_arg1 & 0xFF) + _arg2), 0xFF), 0); return ((((_local3 << 16) | (_local4 << 8)) | _local5)); } } }//package mx.utils
Section 181
//GraphicsUtil (mx.utils.GraphicsUtil) package mx.utils { import flash.display.*; public class GraphicsUtil { mx_internal static const VERSION:String = "3.3.0.4852"; public static function drawRoundRectComplex(_arg1:Graphics, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:Number = (_arg2 + _arg4); var _local11:Number = (_arg3 + _arg5); var _local12:Number = ((_arg4 < _arg5)) ? (_arg4 * 2) : (_arg5 * 2); _arg6 = ((_arg6 < _local12)) ? _arg6 : _local12; _arg7 = ((_arg7 < _local12)) ? _arg7 : _local12; _arg8 = ((_arg8 < _local12)) ? _arg8 : _local12; _arg9 = ((_arg9 < _local12)) ? _arg9 : _local12; var _local13:Number = (_arg9 * 0.292893218813453); var _local14:Number = (_arg9 * 0.585786437626905); _arg1.moveTo(_local10, (_local11 - _arg9)); _arg1.curveTo(_local10, (_local11 - _local14), (_local10 - _local13), (_local11 - _local13)); _arg1.curveTo((_local10 - _local14), _local11, (_local10 - _arg9), _local11); _local13 = (_arg8 * 0.292893218813453); _local14 = (_arg8 * 0.585786437626905); _arg1.lineTo((_arg2 + _arg8), _local11); _arg1.curveTo((_arg2 + _local14), _local11, (_arg2 + _local13), (_local11 - _local13)); _arg1.curveTo(_arg2, (_local11 - _local14), _arg2, (_local11 - _arg8)); _local13 = (_arg6 * 0.292893218813453); _local14 = (_arg6 * 0.585786437626905); _arg1.lineTo(_arg2, (_arg3 + _arg6)); _arg1.curveTo(_arg2, (_arg3 + _local14), (_arg2 + _local13), (_arg3 + _local13)); _arg1.curveTo((_arg2 + _local14), _arg3, (_arg2 + _arg6), _arg3); _local13 = (_arg7 * 0.292893218813453); _local14 = (_arg7 * 0.585786437626905); _arg1.lineTo((_local10 - _arg7), _arg3); _arg1.curveTo((_local10 - _local14), _arg3, (_local10 - _local13), (_arg3 + _local13)); _arg1.curveTo(_local10, (_arg3 + _local14), _local10, (_arg3 + _arg7)); _arg1.lineTo(_local10, (_local11 - _arg9)); } } }//package mx.utils
Section 182
//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.3.0.4852"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } 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 183
//StringUtil (mx.utils.StringUtil) package mx.utils { public class StringUtil { mx_internal static const VERSION:String = "3.3.0.4852"; public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:int; while (isWhitespace(_arg1.charAt(_local2))) { _local2++; }; var _local3:int = (_arg1.length - 1); while (isWhitespace(_arg1.charAt(_local3))) { _local3--; }; if (_local3 >= _local2){ return (_arg1.slice(_local2, (_local3 + 1))); }; return (""); } public static function isWhitespace(_arg1:String):Boolean{ switch (_arg1){ case " ": case "\t": case "\r": case "\n": case "\f": return (true); default: return (false); }; } public static function substitute(_arg1:String, ... _args):String{ var _local4:Array; if (_arg1 == null){ return (""); }; var _local3:uint = _args.length; if ((((_local3 == 1)) && ((_args[0] is Array)))){ _local4 = (_args[0] as Array); _local3 = _local4.length; } else { _local4 = _args; }; var _local5:int; while (_local5 < _local3) { _arg1 = _arg1.replace(new RegExp((("\\{" + _local5) + "\\}"), "g"), _local4[_local5]); _local5++; }; return (_arg1); } public static function trimArrayElements(_arg1:String, _arg2:String):String{ var _local3:Array; var _local4:int; var _local5:int; if (((!((_arg1 == ""))) && (!((_arg1 == null))))){ _local3 = _arg1.split(_arg2); _local4 = _local3.length; _local5 = 0; while (_local5 < _local4) { _local3[_local5] = StringUtil.trim(_local3[_local5]); _local5++; }; if (_local4 > 0){ _arg1 = _local3.join(_arg2); }; }; return (_arg1); } } }//package mx.utils
Section 184
//Stats (net.hires.debug.Stats) package net.hires.debug { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.geom.*; import flash.system.*; import flash.text.*; public class Stats extends Sprite { protected const WIDTH:uint = 70; protected const HEIGHT:uint = 100; protected var timer:uint; protected var mem_max_graph:uint; protected var theme:Object; protected var mem:Number; protected var xml:XML; protected var graph:Bitmap; protected var mem_graph:uint; protected var fps:uint; protected var ms_prev:uint; protected var text:TextField; protected var rectangle:Rectangle; protected var style:StyleSheet; protected var ms:uint; protected var fps_graph:uint; protected var mem_max:Number; public function Stats(_arg1:Object=null):void{ theme = {bg:51, fps:0xFFFF00, ms:0xFF00, mem:0xFFFF, memmax:0xFF0070}; super(); if (_arg1){ if (_arg1.bg != null){ theme.bg = _arg1.bg; }; if (_arg1.fps != null){ theme.fps = _arg1.fps; }; if (_arg1.ms != null){ theme.ms = _arg1.ms; }; if (_arg1.mem != null){ theme.mem = _arg1.mem; }; if (_arg1.memmax != null){ theme.memmax = _arg1.memmax; }; }; mem_max = 0; xml = <xml><fps>FPS:</fps><ms>MS:</ms><mem>MEM:</mem><memMax>MAX:</memMax></xml> ; style = new StyleSheet(); style.setStyle("xml", {fontSize:"9px", fontFamily:"_sans", leading:"-2px"}); style.setStyle("fps", {color:hex2css(theme.fps)}); style.setStyle("ms", {color:hex2css(theme.ms)}); style.setStyle("mem", {color:hex2css(theme.mem)}); style.setStyle("memMax", {color:hex2css(theme.memmax)}); text = new TextField(); text.width = WIDTH; text.height = 50; text.styleSheet = style; text.condenseWhite = true; text.selectable = false; text.mouseEnabled = false; graph = new Bitmap(); graph.y = 50; rectangle = new Rectangle((WIDTH - 1), 0, 1, (HEIGHT - 50)); addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); addEventListener(Event.REMOVED_FROM_STAGE, destroy, false, 0, true); } private function destroy(_arg1:Event):void{ graphics.clear(); while (numChildren > 0) { removeChildAt(0); }; graph.bitmapData.dispose(); removeEventListener(MouseEvent.CLICK, onClick); removeEventListener(Event.ENTER_FRAME, update); } private function onClick(_arg1:MouseEvent):void{ if (((mouseY / height) > 0.5)){ stage.frameRate--; } else { stage.frameRate++; }; xml.fps = ((("FPS: " + fps) + " / ") + stage.frameRate); text.htmlText = xml; } private function init(_arg1:Event):void{ graphics.beginFill(theme.bg); graphics.drawRect(0, 0, WIDTH, HEIGHT); graphics.endFill(); addChild(text); graph.bitmapData = new BitmapData(WIDTH, (HEIGHT - 50), false, theme.bg); addChild(graph); addEventListener(MouseEvent.CLICK, onClick); addEventListener(Event.ENTER_FRAME, update); } private function update(_arg1:Event):void{ timer = getTimer(); if ((timer - 1000) > ms_prev){ ms_prev = timer; mem = Number((System.totalMemory * 9.54E-7).toFixed(3)); mem_max = ((mem_max > mem)) ? mem_max : mem; fps_graph = Math.min(graph.height, ((fps / stage.frameRate) * graph.height)); mem_graph = (Math.min(graph.height, Math.sqrt(Math.sqrt((mem * 5000)))) - 2); mem_max_graph = (Math.min(graph.height, Math.sqrt(Math.sqrt((mem_max * 5000)))) - 2); graph.bitmapData.scroll(-1, 0); graph.bitmapData.fillRect(rectangle, theme.bg); graph.bitmapData.setPixel((graph.width - 1), (graph.height - fps_graph), theme.fps); graph.bitmapData.setPixel((graph.width - 1), (graph.height - ((timer - ms) >> 1)), theme.ms); graph.bitmapData.setPixel((graph.width - 1), (graph.height - mem_graph), theme.mem); graph.bitmapData.setPixel((graph.width - 1), (graph.height - mem_max_graph), theme.memmax); xml.fps = ((("FPS: " + fps) + " / ") + stage.frameRate); xml.mem = ("MEM: " + mem); xml.memMax = ("MAX: " + mem_max); fps = 0; }; fps++; xml.ms = ("MS: " + (timer - ms)); ms = timer; text.htmlText = xml; } private function hex2css(_arg1:int):String{ return (("#" + _arg1.toString(16))); } } }//package net.hires.debug
Section 185
//IDispatcher (org.osflash.signals.IDispatcher) package org.osflash.signals { public interface IDispatcher { function dispatch(... _args):void; } }//package org.osflash.signals
Section 186
//ISignal (org.osflash.signals.ISignal) package org.osflash.signals { public interface ISignal { function add(_arg1:Function):Function; function addOnce(_arg1:Function):Function; function remove(_arg1:Function):Function; function get valueClasses():Array; function get numListeners():uint; } }//package org.osflash.signals
Section 187
//Signal (org.osflash.signals.Signal) package org.osflash.signals { import flash.utils.*; import flash.errors.*; public class Signal implements ISignal, IDispatcher { protected var listenersNeedCloning:Boolean;// = false protected var onceListeners:Dictionary; protected var _valueClasses:Array; protected var listeners:Array; public function Signal(... _args){ listeners = []; onceListeners = new Dictionary(); if ((((_args.length == 1)) && ((_args[0] is Array)))){ var _local1:Array = _args[0]; }; setValueClasses(_args); } public function add(_arg1:Function):Function{ registerListener(_arg1); return (_arg1); } public function addOnce(_arg1:Function):Function{ registerListener(_arg1, true); return (_arg1); } public function remove(_arg1:Function):Function{ var _local2:int = listeners.indexOf(_arg1); if (_local2 == -1){ return (_arg1); }; if (listenersNeedCloning){ listeners = listeners.slice(); listenersNeedCloning = false; }; listeners.splice(_local2, 1); delete onceListeners[_arg1]; return (_arg1); } protected function registerListener(_arg1:Function, _arg2:Boolean=false):void{ var _local3:String; if (_arg1.length < _valueClasses.length){ _local3 = ((_arg1.length)==1) ? "argument" : "arguments"; throw (new ArgumentError((((((("Listener has " + _arg1.length) + " ") + _local3) + " but it needs at least ") + _valueClasses.length) + " to match the given value classes."))); }; if (!listeners.length){ listeners[0] = _arg1; if (_arg2){ onceListeners[_arg1] = true; }; return; }; if (listeners.indexOf(_arg1) >= 0){ if (((onceListeners[_arg1]) && (!(_arg2)))){ throw (new IllegalOperationError("You cannot addOnce() then add() the same listener without removing the relationship first.")); }; if (((!(onceListeners[_arg1])) && (_arg2))){ throw (new IllegalOperationError("You cannot add() then addOnce() the same listener without removing the relationship first.")); }; return; }; if (listenersNeedCloning){ listeners = listeners.slice(); listenersNeedCloning = false; }; listeners[listeners.length] = _arg1; if (_arg2){ onceListeners[_arg1] = true; }; } protected function setValueClasses(_arg1:Array):void{ _valueClasses = ((_arg1) || ([])); var _local2:int = _valueClasses.length; while (_local2--) { if (!(_valueClasses[_local2] is Class)){ throw (new ArgumentError((((("Invalid valueClasses argument: item at index " + _local2) + " should be a Class but was:<") + _valueClasses[_local2]) + ">."))); }; }; } public function get numListeners():uint{ return (listeners.length); } public function dispatch(... _args):void{ var _local2:Object; var _local3:Class; var _local6:Function; var _local4:int = _valueClasses.length; if (_args.length < _local4){ throw (new ArgumentError((((("Incorrect number of arguments. Expected at least " + _local4) + " but received ") + _args.length) + "."))); }; var _local5:int; while (_local5 < _local4) { _local2 = _args[_local5]; if ((((_local2 === null)) || ((_local2 is _valueClasses[_local5])))){ } else { throw (new ArgumentError((((("Value object <" + _local2) + "> is not an instance of <") + _local3) + ">."))); }; _local5++; }; if (!listeners.length){ return; }; listenersNeedCloning = true; switch (_args.length){ case 0: for each (_local6 in listeners) { if (onceListeners[_local6]){ remove(_local6); }; _local6(); }; break; case 1: for each (_local6 in listeners) { if (onceListeners[_local6]){ remove(_local6); }; _local6(_args[0]); }; break; default: for each (_local6 in listeners) { if (onceListeners[_local6]){ remove(_local6); }; _local6.apply(null, _args); }; }; listenersNeedCloning = false; } public function get valueClasses():Array{ return (_valueClasses); } public function removeAll():void{ var _local1:uint = listeners.length; while (_local1--) { remove((listeners[_local1] as Function)); }; } } }//package org.osflash.signals
Section 188
//_activeButtonStyleStyle (_activeButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 189
//_activeTabStyleStyle (_activeTabStyleStyle) package { import mx.core.*; import mx.styles.*; public class _activeTabStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".activeTabStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".activeTabStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 190
//_alertButtonStyleStyle (_alertButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _alertButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".alertButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".alertButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 734012; }; }; } } }//package
Section 191
//_comboDropdownStyle (_comboDropdownStyle) package { import mx.core.*; import mx.styles.*; public class _comboDropdownStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".comboDropdown"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".comboDropdown", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.shadowDirection = "center"; this.fontWeight = "normal"; this.dropShadowEnabled = true; this.leading = 0; this.backgroundColor = 0xFFFFFF; this.shadowDistance = 1; this.cornerRadius = 0; this.borderThickness = 0; this.paddingLeft = 5; this.paddingRight = 5; }; }; } } }//package
Section 192
//_dataGridStylesStyle (_dataGridStylesStyle) package { import mx.core.*; import mx.styles.*; public class _dataGridStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dataGridStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dataGridStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 193
//_dateFieldPopupStyle (_dateFieldPopupStyle) package { import mx.core.*; import mx.styles.*; public class _dateFieldPopupStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".dateFieldPopup"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".dateFieldPopup", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.dropShadowEnabled = true; this.backgroundColor = 0xFFFFFF; this.borderThickness = 0; }; }; } } }//package
Section 194
//_errorTipStyle (_errorTipStyle) package { import mx.core.*; import mx.styles.*; public class _errorTipStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".errorTip"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".errorTip", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.borderStyle = "errorTipRight"; this.paddingTop = 4; this.borderColor = 13510953; this.color = 0xFFFFFF; this.fontSize = 9; this.shadowColor = 0; this.paddingLeft = 4; this.paddingBottom = 4; this.paddingRight = 4; }; }; } } }//package
Section 195
//_globalStyle (_globalStyle) package { import mx.core.*; import mx.styles.*; import mx.skins.halo.*; public class _globalStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("global"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration("global", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fillColor = 0xFFFFFF; this.kerning = false; this.iconColor = 0x111111; this.textRollOverColor = 2831164; this.horizontalAlign = "left"; this.shadowCapColor = 14015965; this.backgroundAlpha = 1; this.filled = true; this.textDecoration = "none"; this.roundedBottomCorners = true; this.fontThickness = 0; this.focusBlendMode = "normal"; this.fillColors = [0xFFFFFF, 0xCCCCCC, 0xFFFFFF, 0xEEEEEE]; this.horizontalGap = 8; this.borderCapColor = 9542041; this.buttonColor = 7305079; this.indentation = 17; this.selectionDisabledColor = 0xDDDDDD; this.closeDuration = 250; this.embedFonts = false; this.paddingTop = 0; this.letterSpacing = 0; this.focusAlpha = 0.4; this.bevel = true; this.fontSize = 10; this.shadowColor = 0xEEEEEE; this.borderAlpha = 1; this.paddingLeft = 0; this.fontWeight = "normal"; this.indicatorGap = 14; this.focusSkin = HaloFocusRect; this.dropShadowEnabled = false; this.leading = 2; this.borderSkin = HaloBorder; this.fontSharpness = 0; this.modalTransparencyDuration = 100; this.borderThickness = 1; this.backgroundSize = "auto"; this.borderStyle = "inset"; this.borderColor = 12040892; this.fontAntiAliasType = "advanced"; this.errorColor = 0xFF0000; this.shadowDistance = 2; this.horizontalGridLineColor = 0xF7F7F7; this.stroked = false; this.modalTransparencyColor = 0xDDDDDD; this.cornerRadius = 0; this.verticalAlign = "top"; this.textIndent = 0; this.fillAlphas = [0.6, 0.4, 0.75, 0.65]; this.verticalGridLineColor = 14015965; this.themeColor = 40447; this.version = "3.0.0"; this.shadowDirection = "center"; this.modalTransparency = 0.5; this.repeatInterval = 35; this.openDuration = 250; this.textAlign = "left"; this.fontFamily = "Verdana"; this.textSelectedColor = 2831164; this.paddingBottom = 0; this.strokeWidth = 1; this.fontGridFitType = "pixel"; this.horizontalGridLines = false; this.useRollOver = true; this.verticalGridLines = true; this.repeatDelay = 500; this.fontStyle = "normal"; this.dropShadowColor = 0; this.focusThickness = 2; this.verticalGap = 6; this.disabledColor = 11187123; this.paddingRight = 0; this.focusRoundedCorners = "tl tr bl br"; this.borderSides = "left top right bottom"; this.disabledIconColor = 0x999999; this.modalTransparencyBlur = 3; this.color = 734012; this.selectionDuration = 250; this.highlightAlphas = [0.3, 0]; }; }; } } }//package
Section 196
//_headerDateTextStyle (_headerDateTextStyle) package { import mx.core.*; import mx.styles.*; public class _headerDateTextStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDateText"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDateText", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 197
//_headerDragProxyStyleStyle (_headerDragProxyStyleStyle) package { import mx.core.*; import mx.styles.*; public class _headerDragProxyStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".headerDragProxyStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".headerDragProxyStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 198
//_linkButtonStyleStyle (_linkButtonStyleStyle) package { import mx.core.*; import mx.styles.*; public class _linkButtonStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".linkButtonStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".linkButtonStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 2; this.paddingLeft = 2; this.paddingBottom = 2; this.paddingRight = 2; }; }; } } }//package
Section 199
//_opaquePanelStyle (_opaquePanelStyle) package { import mx.core.*; import mx.styles.*; public class _opaquePanelStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".opaquePanel", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderColor = 0xFFFFFF; this.backgroundColor = 0xFFFFFF; this.headerColors = [0xE7E7E7, 0xD9D9D9]; this.footerColors = [0xE7E7E7, 0xC7C7C7]; this.borderAlpha = 1; }; }; } } }//package
Section 200
//_plainStyle (_plainStyle) package { import mx.core.*; import mx.styles.*; public class _plainStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".plain"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".plain", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.paddingTop = 0; this.backgroundColor = 0xFFFFFF; this.backgroundImage = ""; this.horizontalAlign = "left"; this.paddingLeft = 0; this.paddingBottom = 0; this.paddingRight = 0; }; }; } } }//package
Section 201
//_popUpMenuStyle (_popUpMenuStyle) package { import mx.core.*; import mx.styles.*; public class _popUpMenuStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".popUpMenu"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".popUpMenu", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "normal"; this.textAlign = "left"; }; }; } } }//package
Section 202
//_richTextEditorTextAreaStyleStyle (_richTextEditorTextAreaStyleStyle) package { import mx.core.*; import mx.styles.*; public class _richTextEditorTextAreaStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".richTextEditorTextAreaStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".richTextEditorTextAreaStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 203
//_swatchPanelTextFieldStyle (_swatchPanelTextFieldStyle) package { import mx.core.*; import mx.styles.*; public class _swatchPanelTextFieldStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".swatchPanelTextField"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".swatchPanelTextField", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.borderStyle = "inset"; this.borderColor = 14015965; this.highlightColor = 12897484; this.backgroundColor = 0xFFFFFF; this.shadowCapColor = 14015965; this.shadowColor = 14015965; this.paddingLeft = 5; this.buttonColor = 7305079; this.borderCapColor = 9542041; this.paddingRight = 5; }; }; } } }//package
Section 204
//_textAreaHScrollBarStyleStyle (_textAreaHScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaHScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaHScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaHScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 205
//_textAreaVScrollBarStyleStyle (_textAreaVScrollBarStyleStyle) package { import mx.core.*; import mx.styles.*; public class _textAreaVScrollBarStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".textAreaVScrollBarStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".textAreaVScrollBarStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ }; }; } } }//package
Section 206
//_todayStyleStyle (_todayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _todayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".todayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".todayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0xFFFFFF; this.textAlign = "center"; }; }; } } }//package
Section 207
//_weekDayStyleStyle (_weekDayStyleStyle) package { import mx.core.*; import mx.styles.*; public class _weekDayStyleStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".weekDayStyle"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".weekDayStyle", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; this.textAlign = "center"; }; }; } } }//package
Section 208
//_windowStatusStyle (_windowStatusStyle) package { import mx.core.*; import mx.styles.*; public class _windowStatusStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStatus"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStatus", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.color = 0x666666; }; }; } } }//package
Section 209
//_windowStylesStyle (_windowStylesStyle) package { import mx.core.*; import mx.styles.*; public class _windowStylesStyle { public static function init(_arg1:IFlexModuleFactory):void{ var fbs = _arg1; var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".windowStyles"); if (!style){ style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(".windowStyles", style, false); }; if (style.defaultFactory == null){ style.defaultFactory = function ():void{ this.fontWeight = "bold"; }; }; } } }//package
Section 210
//Config (Config) package { import com.inruntime.utils.*; import flash.utils.*; public class Config { public static function initialise():void{ var _local1:Global = Global.getInstance(); _local1.developerMode = false; _local1.mochiEnabled = false; _local1.showInterLevelAds = 0; _local1.gameName = "RaggedHouse"; _local1.stageMiddleX = 400; _local1.stageMiddleY = 300; _local1.soundReady = true; _local1.life = 5; _local1.lifeMax = 5; _local1.score = 0; _local1.level = 1; _local1.levelMax = 10; _local1.timer = 0; _local1.timerMax = (60 * 4); _local1.Paused = false; _local1.startTime = getTimer(); _local1.itemsInHand = new Array(); _local1.commands = new Array(); _local1.workingTime = {flower:400, bed:400, mirror:400, book:400, bucket:400, cloth:400, phone:7000, washingMachine:400, grandMother:400, grandFather:400, man:400, platesToStove:400, openFridge:400, fillVessel:400, closeFridge:400, openFood:400, platesToTable:400, foodToTable:400, platesToWash:400, washPlates:400, washedCloth:400, openWE:400, openWC:400, closeWE:400, closeWC:400, penguinToy:400, ballToy:400}; _local1.timeNeeded = {flowerVase:100, telephone:100, bedGirl:100, books:100, bucket:100, mirrorGirl:8000, kid1:8000, kid2:8000, washingMachine:12000, grandMother:5000, grandFather:4000, man:10000, platesToStove:100, openFridge:100, fillVessel:100, rawOnStove:10000, closeFridge:100, openFood:100, platesOnTable:100, eating:10000, platesOnWash:100, washPlates:500, afterWash:100, washedCloth:100, openWE:100, openWC:100, closeWE:100, closeWC:100, penguinToy:100, ballToy:100}; _local1.probability = {kid1:1.1, kid2:1.1}; _local1.busyItems = 0; _local1.foodBusy = false; _local1.foodTimes = 2; _local1.clothTimes = 2; _local1.totalItems = 0; _local1.missedItems = 0; _local1.foodDelay = ((2 * 60) * 1000); _local1.globalWait = (1 * 60); _local1.levelScore = 0; _local1.scores = {flowerVase:10, clothWashing:20, foodPreparation:50, bedGirl:10, mirrorGirl:10, books:10, telephone:20, grandMother:10, grandFather:10, man:10, kid:10, bucket:10}; _local1.clockPosition = {flowerVase:{x:0, y:0}, telephone:{x:-12.1, y:-46.4}, penguinToy:{x:15, y:-10}, ballToy:{x:10, y:-15}, books:{x:-35, y:25}, cloth:{x:10, y:0}, washedCloth:{x:-5, y:-25}, bedGirl:{x:50, y:10}, grandFather:{x:0, y:-60}, grandMother:{x:0, y:-50.4}, man:{x:-21.6, y:-50.3}, mirrorGirl:{x:75, y:-10}, bucket:{x:0, y:-26.5}, foodSystem:{x:-57, y:-38.4}}; _local1.unlockedItems = [["man", "mirrorGirl", "bedGirl", "bucket", "flowerVase"], ["telephone"], ["books", "grandMother"], ["kid1"], ["cloth"], ["kid2", "grandFather"]]; _local1.introDesc = ["Click on the highlighted item to clean up the mess.", "When the telephone rings, click on it to answer.", "GrandMother's skeins may fall when she is knits. Click on it to get them in order. You may need to stay longer and prepare food.", "There is a kid who plays and throws his doll. Take back the doll to its original place.", "Sometimes the mother throws her clothes on the floor. Take it to the washing machine, wash it and place it inside the wardrobe.", "Another kid is there to increase your burden. She plays with a ball. Grandfather smokes and the floor contains ashes."]; _local1.members = [["father", "mother"], ["father", "mother"], ["father", "mother", "grandMother"], ["father", "mother", "grandMother", "boy"], ["father", "mother", "grandMother", "boy"], ["father", "mother", "grandMother", "boy", "girl", "grandFather"]]; _local1.timerMaxLevels = [60, 90, 120, 180, 240]; _local1.maxProblems = [1, 1, 1, 2, 2, 3]; _local1.levelJobNum = [8, 10, 20, 28, 35, 35, 40, 45, 50]; _local1.levelJobRandRange = [2, 2, 2, 3]; _local1.requiredScores = [0, 50, 70, 170, 250, 340, 350, 400, 430, 500, 500]; _local1.playerSpeed = 0; _local1.energy = 0; _local1.upgradeStartonLevel = 1; _local1.upgradeEnabler = ["", "", "", "shoe_btn", "", "machine_btn", "", "stove_btn", "", "energy_btn"]; _local1.cost = {shoe_btn:100, machine_btn:250, stove_btn:400, energy_btn:500}; _local1.upgradesBought = new Array(); _local1.showShareButton = true; _local1.brandUsed = ""; _local1.siteUrl = "http://www.games2girls.com"; _local1.showCredits = "Developed by Csharks"; _local1.buttonFontSize = 33; _local1.buttonFontNormalColor = 4073489; _local1.buttonFontOverColor = 0xFFFFFF; _local1.buttonFontDownColor = 4073489; } } }//package
Section 211
//en_US$core_properties (en_US$core_properties) package { import mx.resources.*; public class en_US$core_properties extends ResourceBundle { public function en_US$core_properties(){ super("en_US", "core"); } override protected function getContent():Object{ var _local1:Object = {multipleChildSets_ClassAndInstance:"Multiple sets of visual children have been specified for this component (component definition and component instance).", truncationIndicator:"...", notExecuting:"Repeater is not executing.", versionAlreadyRead:"Compatibility version has already been read.", multipleChildSets_ClassAndSubclass:"Multiple sets of visual children have been specified for this component (base component definition and derived component definition).", viewSource:"View Source", badFile:"File does not exist.", stateUndefined:"Undefined state '{0}'.", versionAlreadySet:"Compatibility version has already been set."}; return (_local1); } } }//package
Section 212
//en_US$skins_properties (en_US$skins_properties) package { import mx.resources.*; public class en_US$skins_properties extends ResourceBundle { public function en_US$skins_properties(){ super("en_US", "skins"); } override protected function getContent():Object{ var _local1:Object = {notLoaded:"Unable to load '{0}'."}; return (_local1); } } }//package
Section 213
//en_US$styles_properties (en_US$styles_properties) package { import mx.resources.*; public class en_US$styles_properties extends ResourceBundle { public function en_US$styles_properties(){ super("en_US", "styles"); } override protected function getContent():Object{ var _local1:Object = {unableToLoad:"Unable to load style({0}): {1}."}; return (_local1); } } }//package
Section 214
//IntroCgs_mc (IntroCgs_mc) package { import flash.display.*; public dynamic class IntroCgs_mc extends MovieClip { } }//package
Section 215
//IntroOIG_mc (IntroOIG_mc) package { import flash.display.*; public dynamic class IntroOIG_mc extends MovieClip { } }//package
Section 216
//LogoCsharks (LogoCsharks) package { import flash.display.*; public dynamic class LogoCsharks extends Sprite { } }//package
Section 217
//LogoOIG (LogoOIG) package { import flash.display.*; public dynamic class LogoOIG extends Sprite { } }//package
Section 218
//RaggedHouse (RaggedHouse) package { import flash.events.*; import flash.display.*; import com.csharks.juwalbose.utils.ui.*; import com.greensock.*; import flash.utils.*; import com.csharks.juwalbose.utils.*; import flash.media.*; import mochi.as3.*; import flash.filters.*; import com.csharks.juwalbose.cFlashtory.*; import com.csharks.vinod.*; import com.greensock.easing.*; import com.carlcalderon.arthropod.*; import com.greensock.plugins.*; import flash.net.*; public class RaggedHouse extends cFlashtory { public var fridge:MovieClip; private var telephone:MovieClip; private var WashingSound:Class; private var upgradeBox:MovieClip; private var FinishAnimation:Class; private var SimpleChair:Class; private var sofa:Sprite; private var tableLampKid:Sprite; private var cloth:MovieClip; private var music:SoundChannel; private var kid1:MovieClip; private var LevelUpBox:Class; private var foodSystem:FoodSystem; private var UpgradeBox:Class; private var tableLamp2:Sprite; private var node_g0Objects:Array; private var Sofa:Class; private var kid2:MovieClip; private var stoveCondition:String;// = "old" private var gameTimerText:UiBox; private var numCloth:Number; private var TableLamp2:Class; private var girlBottomWall:Sprite; private var gameLifeText:UiBox; private var GirlBottomWall:Class; private var MoonWindow:Class; private var kitchenTopWall:Sprite; protected var ButtonUpClip:Class; private var ChairHall:Class; public var wardrobeGirl:MovieClip; protected var ButtonDownClip:Class; private var tableLampGirl:Sprite; private var LeftWall:Class; private var penguinToy:MovieClip; public var diningTable:MovieClip; private var playingMusic:String; private var KitchenTopWall:Class; private var unlockedItems:Array; private var RingSound:Class; private var TableLamp:Class; private var nodes:XML; private var gameJobsText:UiBox; private var books:MovieClip; private var bedGirl:MovieClip; private var overWall:Sprite; private var drawingTopWall:Sprite; private var kitchenRightWall:Sprite; private var OuterWall:Class; private var SplashSound:Class; private var kitchenBoardLeft:Sprite; private var HallTopLeftWall:Class; private var gameReady:Boolean; private var Music2:Class; private var iItems:Array; private var lastItem; public var washBasin:MovieClip; private var OverWall:Class; private var ballToy:MovieClip; private var persistentData:Object; private var KitchenRightWall:Class; private var thisLevelTotalJobs:Number; private var outerWall:Sprite; private var DrawingTopWall:Class; private var hallTopLeftWall:Sprite; private var grandMother:MovieClip; private var KitchenBoardLeft:Class; private var kidsBottomWall:Sprite; private var player:MovieClip; private var mirrorGirl:MovieClip; private var gameLevelText:UiBox; private var selectedUpgrade:String;// = "" private var KidsBottomWall:Class; private var Woosh:Class; private var gameScoreText:UiBox; private var node_g1Objects:Array; private var busyItemArray:Array; private var StudyLamp:Class; private var girlLeftWall:Sprite; private var readyAnimation:MovieClip; private var flowerVase:MovieClip; private var washedCloth:MovieClip; private var ReadyAnimation:Class; private var studyLamp:Sprite; private var SimpleBed:Class; private var completedJobs:Number;// = 0 private var chairHall1:Sprite; protected var BgClip:Class; private var man:MovieClip; public var stove:MovieClip; private var SprinkSound:Class; private var chairHall2:Sprite; private var kitchenBoardDown:Sprite; private var Click:Class; private var wardrobeKid:MovieClip; private var nextLevelAvailable:Boolean; private var KitchenBoardRight:Class; private var KitchenBoardDown:Class; private var foodTimer:Timer; private var grandFather:MovieClip; private var foodTimes:Number; private var SimpleDoll1:Class; private var washingMachineCondition:String;// = "old" private var tempSound:Sound; public var soundManager:SoundManager; private var kidChair:MovieClip; private var mm:MusicManager; private var kitchenBoardRight:Sprite; private var gameCounter:Counter; private var simpleDoll1:Sprite; protected var ButtonOverClip:Class; private var kidBed2:Sprite; private var kidBed1:Sprite; private var fxChannel:SoundChannel; private var ClingSound:Class; private var PauseScreen:Class; private var commandBusy:Boolean;// = false private var DefaultClick:Class; private var bucket:MovieClip; public var washingMachine:MovieClip; private var gameTargetText:UiBox; private var gameMissedText:UiBox; private var goingToSleep:Boolean; private var kidsLeftWall:Sprite; public function RaggedHouse(){ tempSound = new Sound(); BgClip = RaggedHouse_BgClip; ButtonUpClip = RaggedHouse_ButtonUpClip; ButtonDownClip = RaggedHouse_ButtonDownClip; ButtonOverClip = RaggedHouse_ButtonOverClip; LeftWall = RaggedHouse_LeftWall; KidsBottomWall = RaggedHouse_KidsBottomWall; GirlBottomWall = RaggedHouse_GirlBottomWall; HallTopLeftWall = RaggedHouse_HallTopLeftWall; OverWall = RaggedHouse_OverWall; KitchenRightWall = RaggedHouse_KitchenRightWall; DrawingTopWall = RaggedHouse_DrawingTopWall; KitchenTopWall = RaggedHouse_KitchenTopWall; OuterWall = RaggedHouse_OuterWall; TableLamp = RaggedHouse_TableLamp; TableLamp2 = RaggedHouse_TableLamp2; ChairHall = RaggedHouse_ChairHall; Sofa = RaggedHouse_Sofa; StudyLamp = RaggedHouse_StudyLamp; SimpleChair = RaggedHouse_SimpleChair; SimpleBed = RaggedHouse_SimpleBed; SimpleDoll1 = RaggedHouse_SimpleDoll1; KitchenBoardRight = RaggedHouse_KitchenBoardRight; KitchenBoardDown = RaggedHouse_KitchenBoardDown; KitchenBoardLeft = RaggedHouse_KitchenBoardLeft; UpgradeBox = RaggedHouse_UpgradeBox; ReadyAnimation = RaggedHouse_ReadyAnimation; Click = RaggedHouse_Click; Woosh = RaggedHouse_Woosh; ClingSound = RaggedHouse_ClingSound; PauseScreen = RaggedHouse_PauseScreen; MoonWindow = RaggedHouse_MoonWindow; LevelUpBox = RaggedHouse_LevelUpBox; RingSound = RaggedHouse_RingSound; SplashSound = RaggedHouse_SplashSound; WashingSound = RaggedHouse_WashingSound; DefaultClick = RaggedHouse_DefaultClick; Music2 = RaggedHouse_Music2; SprinkSound = RaggedHouse_SprinkSound; FinishAnimation = RaggedHouse_FinishAnimation; mm = new MusicManager(); soundManager = SoundManager.getInstance(); soundManager.addLibrarySound(Click, "clickSound"); soundManager.addLibrarySound(Woosh, "wooshSound"); soundManager.addLibrarySound(ClingSound, "clingSound"); soundManager.addLibrarySound(RingSound, "ringSound"); soundManager.addLibrarySound(SplashSound, "splashSound"); soundManager.addLibrarySound(WashingSound, "washSound"); soundManager.addLibrarySound(DefaultClick, "defaultClick"); soundManager.addLibrarySound(SprinkSound, "sprinkSound"); super(); if (stage){ init(); } else { addEventListener(Event.ADDED_TO_STAGE, init); }; } private function createProblem(_arg1=null):void{ var _local2:int; if (gameVars.Paused){ return; }; if ((completedJobs + gameVars.missedItems) >= thisLevelTotalJobs){ if (gameVars.levelScore < gameVars.requiredScores[gameVars.level]){ gameSequence.changeState("GameOver"); return; }; if (goingToSleep == false){ goingToSleep = true; finishAnimation(); }; return; } else { if ((((gameVars.levelScore >= gameVars.requiredScores[gameVars.level])) && ((nextLevelAvailable == false)))){ nextLevelAvailable = true; showNextButton(); return; }; }; if (gameVars.totalItems >= thisLevelTotalJobs){ return; }; if (gameVars.maxProblems[(gameVars.level - 1)]){ _local2 = gameVars.maxProblems[(gameVars.level - 1)]; } else { _local2 = gameVars.maxProblems[(gameVars.maxProblems.length - 1)]; }; if ((((gameVars.busyItems >= _local2)) || ((gameVars.foodBusy == true)))){ return; }; var _local3:int = RandomHelper.randomBetween(0, iItems[0].length); var _local4:* = iItems[0][_local3]; if ((((_local4 == lastItem)) || ((busyItemArray.indexOf(_local4.objectId) >= 0)))){ return; }; if ((_local4 is CreatorObject)){ if (_local4.state.state != "work"){ if (_local4 == kid1){ if (((!((penguinToy.state.state == "wrongState"))) && ((kid1.ready == true)))){ triggerObject(_local4, "work"); busyItemArray.push(_local4.objectId); }; } else { if (_local4 == kid2){ if (((!((ballToy.state.state == "wrongState"))) && ((kid2.ready == true)))){ triggerObject(_local4, "work"); busyItemArray.push(_local4.objectId); }; }; }; }; } else { if ((_local4 is InteractiveObject)){ if ((((_local4.state.state == "idle")) && ((_local4.ready == true)))){ triggerObject(_local4, "pre-messed"); gameVars.busyItems++; busyItemArray.push(_local4.objectId); }; } else { if ((_local4 is PickupObject)){ if ((((((_local4.state.state == "absent")) && ((numCloth < gameVars.clothTimes)))) && ((cloth.ready == true)))){ _local4.enablePickup(); triggerObject(this[_local4.dropper], "open-empty"); gameVars.busyItems++; busyItemArray.push("wardrobe"); numCloth++; }; }; }; }; if ((_local4 is InteractiveObject)){ if (_local4.clip.currentLabel == "pre-messed"){ lastItem = _local4; gameVars.totalItems++; Debug.log(((((("Creation[" + _local4.objectId) + "+>'") + MovieClip(_local4.clip).currentLabel) + "']:") + gameVars.totalItems), 0xFFFF00); }; } else { if ((_local4 is PickupObject)){ if (_local4.clip.currentLabel == "idle"){ lastItem = _local4; gameVars.totalItems++; Debug.log(((((("Creation[" + _local4.objectId) + "+>'") + MovieClip(_local4.clip).currentLabel) + "']:") + gameVars.totalItems), 0xFFFF00); }; } else { if ((_local4 is CreatorObject)){ if (_local4.clip.currentLabel == "work"){ lastItem = _local4; gameVars.totalItems++; Debug.log(((((("Creation[" + _local4.objectId) + "+>'") + MovieClip(_local4.clip).currentLabel) + "']:") + gameVars.totalItems), 0xFFFF00); }; }; }; }; } override protected function clearCanvas():void{ var itemArray:Array; var i:MovieClip; soundManager.stopAllSounds(false); game_mc.g2gLogo_mc.removeEventListener(MouseEvent.CLICK, gotoGamesToGirls); SceneManager.removeButton(game_mc, "Finish Day", nextBtnCallback); try { game_mc.removeChild(game_mc.getChildByName("moonLight")); } catch(e:Error) { }; for each (itemArray in iItems) { for each (i in itemArray) { i.removeEventListener("problemRemoved", removeProblem); }; }; foodSystem.removeEventListener("problemRemoved", removeProblem); foodSystem = null; foodTimer.stop(); foodTimer.removeEventListener(TimerEvent.TIMER, foodSystemInit); foodTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, removeFoodTimer); foodTimer = null; player.removeEventListener("nodeReached", nodeReached); kid1.removeEventListener("workStarted", kidPlaying); kid1.removeEventListener("created", droppedPenguin); kid2.removeEventListener("workStarted", kidPlaying); kid2.removeEventListener("created", droppedBall); game_mc.main_mc.removeChild(outerWall); game_mc.main_mc.removeChild(kidBed1); game_mc.main_mc.removeChild(tableLampKid); game_mc.main_mc.removeChild(kidBed2); game_mc.main_mc.removeChild(kid2.clip); game_mc.main_mc.removeChild(wardrobeKid.clip); game_mc.main_mc.removeChild(ballToy.clip); game_mc.main_mc.removeChild(simpleDoll1); game_mc.main_mc.removeChild(kidChair); game_mc.main_mc.removeChild(kid1.clip); game_mc.main_mc.removeChild(penguinToy.clip); game_mc.main_mc.removeChild(studyLamp); game_mc.main_mc.removeChild(kidsBottomWall); game_mc.main_mc.removeChild(kidsLeftWall); game_mc.main_mc.removeChild(tableLampGirl); game_mc.main_mc.removeChild(cloth.clip); game_mc.main_mc.removeChild(wardrobeGirl.clip); game_mc.main_mc.removeChild(bedGirl.clip); game_mc.main_mc.removeChild(books.clip); game_mc.main_mc.removeChild(mirrorGirl.clip); game_mc.main_mc.removeChild(girlLeftWall); game_mc.main_mc.removeChild(girlBottomWall); game_mc.main_mc.removeChild(washingMachine.clip); game_mc.main_mc.removeChild(washedCloth.clip); game_mc.main_mc.removeChild(bucket.clip); game_mc.main_mc.removeChild(kitchenRightWall); game_mc.main_mc.removeChild(kitchenTopWall); game_mc.main_mc.removeChild(fridge.clip); game_mc.main_mc.removeChild(kitchenBoardRight); game_mc.main_mc.removeChild(diningTable.clip); game_mc.main_mc.removeChild(kitchenBoardDown); game_mc.main_mc.removeChild(washBasin.clip); game_mc.main_mc.removeChild(kitchenBoardLeft); game_mc.main_mc.removeChild(stove.clip); game_mc.main_mc.removeChild(hallTopLeftWall); game_mc.main_mc.removeChild(telephone.clip); game_mc.main_mc.removeChild(chairHall1); game_mc.main_mc.removeChild(chairHall2); game_mc.main_mc.removeChild(tableLamp2); game_mc.main_mc.removeChild(sofa); game_mc.main_mc.removeChild(drawingTopWall); game_mc.main_mc.removeChild(grandFather.clip); game_mc.main_mc.removeChild(grandMother.clip); game_mc.main_mc.removeChild(overWall); game_mc.main_mc.removeChild(man.clip); game_mc.main_mc.removeChild(player.clip); SceneManager.removeItem(game_mc, "Level"); SceneManager.removeItem(game_mc, "Score"); SceneManager.removeItem(game_mc, "Life"); SceneManager.removeItem(game_mc, "gameJobs"); SceneManager.removeItem(game_mc, "missedJobs"); SceneManager.removeItem(game_mc, "ScoreTarget"); SceneManager.removeButton(game_mc, "Force Level Up", forceLevelUp); SceneManager.removeButton(game_mc, "Force Game Over", forceGameOver); SceneManager.removeButton(game_mc, "Force Game Win", forceGameWin); super.clearCanvas(); } private function eatingFinished(_arg1:Event):void{ _arg1.currentTarget.removeEventListener("eatingFinished", eatingFinished); foodSystem.init3(); } private function closeUpgradeBox(_arg1=null):void{ upgradeBox.shoe_btn.removeEventListener(MouseEvent.CLICK, upgradeItemClicked); upgradeBox.stove_btn.removeEventListener(MouseEvent.CLICK, upgradeItemClicked); upgradeBox.machine_btn.removeEventListener(MouseEvent.CLICK, upgradeItemClicked); upgradeBox.energy_btn.removeEventListener(MouseEvent.CLICK, upgradeItemClicked); upgradeBox.buy_btn.removeEventListener(MouseEvent.CLICK, buyClicked); upgradeBox.close_btn.removeEventListener(MouseEvent.CLICK, closeUpgradeBox); upgradeBox.close2_btn.removeEventListener(MouseEvent.CLICK, closeUpgradeBox); game_mc.removeChild(upgradeBox); } override protected function gameInit(_arg1:Object):void{ super.gameInit(_arg1); if ((((gameVars.level == gameVars.levelMax)) || ((gameVars.level == 1)))){ setVariable("level", "1", "gameEngineInit", "N"); setVariable("score", "0", "gameEngineInit", "N"); setVariable("life", String(gameVars.lifeMax), "gameEngineInit", "N"); } else { setVariable("level", "1", "gameEngineInit", "N"); setVariable("score", "0", "gameEngineInit", "N"); setVariable("life", String(gameVars.lifeMax), "gameEngineInit", "N"); }; gameEngine.initialState = "GameInit"; } override protected function action(_arg1:Event):void{ gameLoop(); if (gameVars.timer != gameCounter.currentTime){ setVariable("timer", String(gameCounter.currentTime), "action", "N"); }; super.action(_arg1); } private function finishAnimation():void{ var fa:Sprite; SceneManager.removeButton(game_mc, "Finish Day", nextBtnCallback); fa = new FinishAnimation(); game_mc.addChild(fa); fa.x = gameVars.stageMiddleX; fa.y = gameVars.stageMiddleY; fa.scaleX = 0.1; fa.scaleY = 0.1; TweenLite.to(fa, 0.3, {scaleX:1, scaleY:1, ease:Elastic.easeOut}); TweenLite.to(fa, 0.3, {delay:3, scaleX:0.2, scaleY:0.2, alpha:0, ease:Elastic.easeOut, onComplete:function ():void{ game_mc.removeChild(fa); gotoSleep(); }}); } override protected function gameoverExit(_arg1:Object):void{ SceneManager.removeItem(gameOver_mc, "Score"); SceneManager.removeItem(gameOver_mc, "CurrentLevelScore"); SceneManager.removeItem(gameOver_mc, "Target"); super.gameoverExit(_arg1); } override protected function helpAdded(_arg1:Event):void{ _arg1.currentTarget.x = gameVars.stageMiddleX; _arg1.currentTarget.y = gameVars.stageMiddleY; _arg1.currentTarget.addFrameScript((_arg1.currentTarget.totalFrames - 1), _arg1.currentTarget.stop); var _local2:UiButton = SceneManager.addButton(_arg1.currentTarget, "BACK", backToGame); _local2.x = (200 - gameVars.stageMiddleX); _local2.y = (430 - gameVars.stageMiddleY); _arg1.target.removeEventListener(Event.ADDED_TO_STAGE, helpAdded); } private function cookingFinished(_arg1:Event):void{ _arg1.currentTarget.removeEventListener("cookingFinished", cookingFinished); foodSystem.init2(); } private function runCommand(_arg1:String):void{ var _local2:String = _arg1.split("|")[0]; var _local3:String = _arg1.split("|")[1]; switch (_local2){ case "goto": player.addEventListener("walkCompleted", actionCompleted, false, 0, true); player.goto(_local3); break; case "turn": player.turn(_local3); commandBusy = false; break; case "phone": if (telephone.failed){ commandBusy = false; break; }; player.addEventListener("phoneCompleted", actionCompleted, false, 0, true); player.phone(gameVars.workingTime[_local2]); triggerObject(telephone, "clearing"); break; case "flower": if (flowerVase.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("flowerVase", gameVars.workingTime[_local2]); triggerObject(flowerVase, "clearing"); break; case "sleep": player.addEventListener("sleeping", onSleepStart, false, 0, true); player.sleep(); break; case "bed": if (bedGirl.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("bed", gameVars.workingTime[_local2]); triggerObject(bedGirl, "clearing"); break; case "mirror": if (mirrorGirl.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("mirror", gameVars.workingTime[_local2]); triggerObject(mirrorGirl, "clearing"); break; case "book": if (books.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("book", gameVars.workingTime[_local2]); triggerObject(books, "clearing"); break; case "bucket": if (bucket.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("bucket", gameVars.workingTime[_local2]); triggerObject(bucket, "clearing"); break; case "grandMother": if (grandMother.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("grandMother", gameVars.workingTime[_local2]); triggerObject(grandMother, "clearing"); break; case "grandFather": if (grandFather.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("grandFather", gameVars.workingTime[_local2]); triggerObject(grandFather, "clearing"); break; case "man": if (man.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("man", gameVars.workingTime[_local2]); triggerObject(man, "clearing"); break; case "cloth": if (cloth.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("cloth", gameVars.workingTime[_local2]); cloth.pickUp(); break; case "washingMachine": if (washingMachine.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("washingMachine", gameVars.workingTime[_local2]); triggerObject(washingMachine, "work"); washingMachine.addEventListener("workCompleted", itemProcessCompleted, false, 0, true); break; case "washedCloth": if (washedCloth.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("washedCloth", gameVars.workingTime[_local2]); triggerObject(washedCloth, "idle"); break; case "platesToStove": if (foodSystem.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("platesToStove", gameVars.workingTime[_local2]); break; case "openFridge": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("openFridge", gameVars.workingTime[_local2]); break; case "fillVessel": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("fillVessel", gameVars.workingTime[_local2]); foodSystem.addEventListener("cookingFinished", cookingFinished, false, 0, true); break; case "closeFridge": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("closeFridge", gameVars.workingTime[_local2]); break; case "openFood": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("openFood", gameVars.workingTime[_local2]); break; case "platesToTable": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("platesToTable", gameVars.workingTime[_local2]); break; case "foodToTable": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("foodToTable", gameVars.workingTime[_local2]); foodSystem.addEventListener("eatingFinished", eatingFinished, false, 0, true); break; case "platesToWash": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("platesToWash", gameVars.workingTime[_local2]); break; case "washPlates": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("washPlates", gameVars.workingTime[_local2]); break; case "openWE": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("openWE", gameVars.workingTime[_local2]); break; case "closeWE": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("closeWE", gameVars.workingTime[_local2]); break; case "openWC": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("openWC", gameVars.workingTime[_local2]); break; case "closeWC": player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("closeWC", gameVars.workingTime[_local2]); break; case "penguinToy": if (penguinToy.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("penguinToy", gameVars.workingTime[_local2]); break; case "ballToy": if (ballToy.failed){ commandBusy = false; break; }; player.addEventListener("workCompleted", actionCompleted, false, 0, true); player.work("ballToy", gameVars.workingTime[_local2]); break; default: break; }; } protected function playSound(_arg1:Class, _arg2:String):void{ var which = _arg1; var from = _arg2; if (gameVars.soundReady){ tempSound = null; tempSound = new (which); try { fxChannel = tempSound.play(); } catch(e:Error) { }; }; } override protected function menuDisplay(_arg1:MouseEvent):void{ Debug.log("asdad"); mm.playSceneSound(); super.menuDisplay(_arg1); } private function startLevel(_arg1:Event):void{ SoundManager.getInstance().playSound("defaultClick"); SceneManager.removeButton(readyAnimation, "Start", startLevel); SceneManager.removeItem(readyAnimation, "tgt"); SceneManager.removeItem(readyAnimation, "totalJobs"); SceneManager.removeItem(readyAnimation, "Heading"); readyAnimation.play(); readyAnimation.y = gameVars.stageMiddleY; } protected function timesUp():void{ } private function kidPlaying(_arg1:Event):void{ if (_arg1.currentTarget == kid1){ triggerObject(penguinToy, "absent"); } else { if (_arg1.currentTarget == kid2){ triggerObject(ballToy, "absent"); }; }; gameVars.busyItems++; } override protected function unpauseGame(_arg1:Object=null):void{ var evnt = _arg1; Tick.reset(); try { if (game_mc.getChildByName("pscreen")){ game_mc.removeChild(game_mc.getChildByName("pscreen")); }; } catch(e:Error) { }; super.unpauseGame(evnt); } override protected function gameWinAdded(_arg1:Event):void{ var _local2:UiBox; var _local3:UiBox; var _local4:UiButton; var _local5:UiButton; if (_arg1.target.currentFrame == _arg1.target.totalFrames){ _arg1.target.stop(); _arg1.target.g2gLogo_mc.addEventListener(MouseEvent.CLICK, gotoGamesToGirls, false, 0, true); gameVars.score = (gameVars.score + gameVars.levelScore); _local2 = new UiBox("Level", 150, 40, UiBoxTypes.TextWithBackground, 15, 0xFFFFFF, gameVars.level, BgClip); _local2.name = "Level"; _arg1.currentTarget.addChild(_local2); _local3 = new UiBox("Score", 150, 40, UiBoxTypes.TextWithBackground, 15, 0xFFFFFF, gameVars.score, BgClip); _local3.runningUpdate = true; _local3.name = "Score"; _arg1.currentTarget.addChild(_local3); _local3.y = (_local2.y = (500 - gameVars.stageMiddleY)); _local2.x = (100 - gameVars.stageMiddleX); _local3.x = ((_local2.x + _local2.width) + 20); _arg1.target.removeEventListener(Event.ENTER_FRAME, gameWinAdded); _local4 = SceneManager.addButton(_arg1.currentTarget, "Play Again", gameWin2Game); if (gameVars.mochiEnabled){ _local5 = SceneManager.addButton(_arg1.currentTarget, "Submit Score", submitScore); _local5.x = ((gameVars.stageMiddleX - (_local5.width / 2)) - 8); _local5.y = (2 * gameVars.stageMiddleY); TweenLite.to(_local5, 1, {y:500, ease:Elastic.easeOut}); }; _local4.x = (200 - gameVars.stageMiddleX); _local4.y = (430 - gameVars.stageMiddleY); }; } private function manualLevelUp(_arg1=null):void{ var e = _arg1; mm.playGameSound(); SoundManager.getInstance().playSound("defaultClick"); SceneManager.removeItem(game_mc, "Score2"); SceneManager.removeItem(game_mc, "Total2"); SceneManager.removeItem(game_mc, "Missed2"); SceneManager.removeItem(game_mc, "TotalScore2"); SceneManager.removeItem(game_mc, "Incomplete"); SceneManager.removeButton(game_mc, "Next Day", manualLevelUp); SceneManager.removeButton(game_mc, "Upgrade", showUpgradeBox); TweenMax.to(game_mc.main_mc, 0.5, {colorTransform:{brightness:0}}); TweenMax.to(game_mc.getChildByName("moonLight"), 0.5, {colorTransform:{brightness:0}}); TweenLite.to(game_mc.getChildByName("levelUpScreen"), 1, {alpha:0, y:(-(game_mc.getChildByName("levelUpScreen").height) - 50), onComplete:function ():void{ clearCanvas(); setVariable("level", String((gameVars.level + 1)), "manualLevelUp", "N"); gameEngine.changeState("GameInit"); }}); } private function gotoGamesToGirls(_arg1:MouseEvent):void{ Debug.log("site Link"); navigateToURL(new URLRequest("http://www.games2girls.com/"), "_blank"); } override protected function assignHighScores(_arg1:Event):void{ var evnt = _arg1; evnt.currentTarget.removeEventListener(Event.ADDED_TO_STAGE, assignHighScores); evnt.currentTarget.stop(); MochiScores.showLeaderboard({boardID:"1e113c7239048b3f", res:(((gameVars.stageMiddleX * 2).toString() + "x") + (gameVars.stageMiddleY * 2).toString()), clip:evnt.currentTarget, onClose:function ():void{ templateMc.gotoAndPlay(2); }}); templateMc.addEventListener(Event.ENTER_FRAME, checkTemplate); } override protected function levelInit(_arg1:Object):void{ gameCounter = new Counter(gameVars.timerMax, 0); gameCounter.start(); if (gameVars.mochiEnabled){ MochiSocial.hideLoginWidget(); }; gameTargetText = new UiBox("", 100, 29, UiBoxTypes.TextWithBackground, 18, 0xFFFFFF, 0, BgClip, null, null, null, -2.5); gameTargetText.name = "ScoreTarget"; game_mc.addChild(gameTargetText); gameTargetText.update(((gameVars.level)<gameVars.requiredScores.length) ? gameVars.requiredScores[gameVars.level] : gameVars.requiredScores[(gameVars.requiredScores.length - 1)]); gameLevelText = new UiBox("", 50, 29, UiBoxTypes.TextWithBackground, 18, 0xFFFFFF, gameVars.level, BgClip, null, null, null, -2.5); gameLevelText.name = "Level"; game_mc.addChild(gameLevelText); gameScoreText = new UiBox("", 100, 29, UiBoxTypes.TextWithBackground, 18, 0xFFFFFF, gameVars.score, BgClip, null, null, null, -2.5); gameScoreText.runningUpdate = true; gameScoreText.name = "Score"; game_mc.addChild(gameScoreText); if (gameVars.level <= gameVars.levelJobNum.length){ thisLevelTotalJobs = gameVars.levelJobNum[(gameVars.level - 1)]; } else { thisLevelTotalJobs = gameVars.levelJobNum[(gameVars.levelJobNum.length - 1)]; }; if (gameVars.level <= gameVars.levelJobRandRange.length){ thisLevelTotalJobs = (thisLevelTotalJobs + (RandomHelper.randomSignWithZero() * gameVars.levelJobRandRange[(gameVars.level - 1)])); } else { thisLevelTotalJobs = (thisLevelTotalJobs + (RandomHelper.randomSignWithZero() * gameVars.levelJobRandRange[(gameVars.levelJobRandRange.length - 1)])); }; gameJobsText = new UiBox("", 112, 29, UiBoxTypes.TextWithBackground, 18, 0xFFFFFF, ("0/" + thisLevelTotalJobs), BgClip, null, null, null, -2.5); gameJobsText.name = "gameJobs"; game_mc.addChild(gameJobsText); gameMissedText = new UiBox("", 80, 29, UiBoxTypes.TextWithBackground, 18, 0xFFFFFF, "0", BgClip, null, null, null, -2.5); gameMissedText.name = "missedJobs"; game_mc.addChild(gameMissedText); gameLevelText.y = (gameScoreText.y = (gameJobsText.y = (gameTargetText.y = (gameMissedText.y = 557)))); gameMissedText.x = 240; gameTargetText.x = 410; gameLevelText.x = 740; gameScoreText.x = 580; gameJobsText.x = 56; initArea(); super.levelInit(_arg1); gamePause(); player.clip.gotoAndStop("standLeft"); } private function actionCompleted(_arg1:Event):void{ commandBusy = false; if (player.hasEventListener("walkCompleted")){ player.removeEventListener("walkCompleted", actionCompleted); }; if (player.hasEventListener("phoneCompleted")){ player.removeEventListener("phoneCompleted", actionCompleted); telephone.jobFinished(); }; if (player.hasEventListener("workCompleted")){ player.removeEventListener("workCompleted", actionCompleted); if (_arg1.currentTarget.workingOn == "bed"){ bedGirl.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "flowerVase"){ flowerVase.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "mirror"){ mirrorGirl.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "book"){ books.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "bucket"){ bucket.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "grandMother"){ grandMother.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "grandFather"){ grandFather.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "man"){ man.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "platesToStove"){ triggerObject(foodSystem, "platesOnStove"); } else { if (_arg1.currentTarget.workingOn == "openFridge"){ triggerObject(foodSystem, "openFridge"); } else { if (_arg1.currentTarget.workingOn == "fillVessel"){ triggerObject(foodSystem, "rawOnStove"); } else { if (_arg1.currentTarget.workingOn == "closeFridge"){ triggerObject(foodSystem, "closeFridge"); } else { if (_arg1.currentTarget.workingOn == "openFood"){ triggerObject(foodSystem, "openFood"); } else { if (_arg1.currentTarget.workingOn == "platesToTable"){ triggerObject(foodSystem, "platesOnTable"); } else { if (_arg1.currentTarget.workingOn == "foodToTable"){ triggerObject(foodSystem, "eating"); } else { if (_arg1.currentTarget.workingOn == "platesToWash"){ triggerObject(foodSystem, "platesOnWash"); } else { if (_arg1.currentTarget.workingOn == "washPlates"){ foodSystem.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "openWE"){ triggerObject(wardrobeGirl, "open-empty"); } else { if (_arg1.currentTarget.workingOn == "closeWE"){ triggerObject(wardrobeGirl, "closed-empty"); } else { if (_arg1.currentTarget.workingOn == "openWC"){ triggerObject(wardrobeGirl, "open-cloth"); } else { if (_arg1.currentTarget.workingOn == "closeWC"){ wardrobeGirl.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "penguinToy"){ penguinToy.jobFinished(); } else { if (_arg1.currentTarget.workingOn == "ballToy"){ ballToy.jobFinished(); }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; }; } override protected function gameOverAdded(_arg1:Event):void{ var _local2:UiBox; var _local3:UiBox; var _local4:UiBox; var _local5:UiButton; var _local6:UiButton; if (_arg1.target.currentFrame == _arg1.target.totalFrames){ _arg1.target.stop(); _arg1.target.g2gLogo_mc.addEventListener(MouseEvent.CLICK, gotoGamesToGirls, false, 0, true); gameVars.score = (gameVars.score + gameVars.levelScore); _local2 = new UiBox("", 150, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, gameVars.requiredScores[gameVars.level]); _local2.name = "Target"; _arg1.currentTarget.addChild(_local2); _local3 = new UiBox("", 150, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, gameVars.levelScore); _local3.name = "CurrentLevelScore"; _arg1.currentTarget.addChild(_local3); _local4 = new UiBox("", 150, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, gameVars.score); _local4.name = "Score"; _arg1.currentTarget.addChild(_local4); _local2.x = (_local3.x = (_local4.x = -165)); _local2.y = -80; _local3.y = -27; _local4.y = 25; _arg1.target.removeEventListener(Event.ENTER_FRAME, gameOverAdded); _local5 = SceneManager.addButton(_arg1.currentTarget, "Play Again", gameOver2Game); if (gameVars.mochiEnabled){ _local6 = SceneManager.addButton(_arg1.currentTarget, "Submit Score", submitScore); _local6.x = ((gameVars.stageMiddleX - (_local6.width / 2)) - 8); _local6.y = (2 * gameVars.stageMiddleY); TweenLite.to(_local6, 1, {y:500, ease:Elastic.easeOut}); }; _local5.x = (200 - gameVars.stageMiddleX); _local5.y = (430 - gameVars.stageMiddleY); }; } private function buyClicked(_arg1:MouseEvent):void{ if (selectedUpgrade != ""){ SoundManager.getInstance().playSound("defaultClick"); if (selectedUpgrade == "energy_btn"){ gameVars.energy++; }; if (selectedUpgrade == "shoe_btn"){ gameVars.playerSpeed++; }; if (selectedUpgrade == "stove_btn"){ stoveCondition = "new"; }; if (selectedUpgrade == "machine_btn"){ washingMachineCondition = "new"; }; gameVars.upgradesBought.push(selectedUpgrade); gameVars.score = (gameVars.score - gameVars.cost[selectedUpgrade]); MovieClip(upgradeBox.getChildByName(selectedUpgrade)).label_txt.text = "Bought"; }; selectedUpgrade = ""; } private function foodSystemInit(_arg1:TimerEvent):void{ if (gameVars.Paused){ return; }; if ((((((gameVars.foodBusy == false)) && ((foodTimes < gameVars.foodTimes)))) && ((gameVars.totalItems < thisLevelTotalJobs)))){ foodSystem.init(); gameVars.foodBusy = true; gameVars.totalItems++; foodTimes++; }; } override protected function assignSubmitScore(_arg1:Event):void{ var evnt = _arg1; evnt.currentTarget.removeEventListener(Event.ADDED_TO_STAGE, assignSubmitScore); evnt.currentTarget.stop(); MochiScores.showLeaderboard({boardID:"1e113c7239048b3f", score:gameVars.score, res:(((gameVars.stageMiddleX * 2).toString() + "x") + (gameVars.stageMiddleY * 2).toString()), clip:evnt.currentTarget, onClose:function ():void{ templateMc.gotoAndPlay(2); }}); templateMc.addEventListener(Event.ENTER_FRAME, checkTemplate); } private function showUpgradeBox(_arg1=null):void{ var e = _arg1; SoundManager.getInstance().playSound("defaultClick"); upgradeBox = new UpgradeBox(); game_mc.addChild(upgradeBox); upgradeBox.x = gameVars.stageMiddleX; upgradeBox.y = gameVars.stageMiddleY; upgradeBox.addFrameScript((upgradeBox.totalFrames - 1), function ():void{ upgradeBox.stop(); upgradeBox.shoe_btn.label_txt.text = "Locked"; upgradeBox.stove_btn.label_txt.text = "Locked"; upgradeBox.machine_btn.label_txt.text = "Locked"; upgradeBox.energy_btn.label_txt.text = "Locked"; upgradeBox.buy_btn.addEventListener(MouseEvent.CLICK, buyClicked, false, 0, true); upgradeBox.close_btn.addEventListener(MouseEvent.CLICK, closeUpgradeBox, false, 0, true); upgradeBox.close2_btn.addEventListener(MouseEvent.CLICK, closeUpgradeBox, false, 0, true); var _local1:uint; while (_local1 < gameVars.level) { if (gameVars.upgradeEnabler[_local1] == ""){ } else { upgradeBox[gameVars.upgradeEnabler[_local1]].label_txt.text = ("$" + gameVars.cost[gameVars.upgradeEnabler[_local1]]); upgradeBox[gameVars.upgradeEnabler[_local1]].addEventListener(MouseEvent.CLICK, upgradeItemClicked, false, 0, true); upgradeBox[gameVars.upgradeEnabler[_local1]].buttonMode = true; }; _local1++; }; var _local2:int; while (_local2 < upgradeBox.numChildren) { if (gameVars.upgradesBought.indexOf(upgradeBox.getChildAt(_local2).name) >= 0){ Object(upgradeBox.getChildAt(_local2)).label_txt.text = "Bought"; upgradeBox.getChildAt(_local2).removeEventListener(MouseEvent.CLICK, upgradeItemClicked); }; _local2++; }; }); } override protected function assignMenu(_arg1:Event):void{ if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){ _arg1.currentTarget.stop(); _arg1.target.removeEventListener(Event.ENTER_FRAME, assignMenu); }; } override protected function assignHelp(_arg1:Event):void{ help_mc.x = gameVars.stageMiddleX; help_mc.y = gameVars.stageMiddleY; _arg1.currentTarget.removeEventListener(Event.ADDED_TO_STAGE, assignHelp); _arg1.currentTarget.addFrameScript((_arg1.currentTarget.totalFrames - 1), _arg1.currentTarget.stop); var _local2:UiButton = SceneManager.addButton(_arg1.currentTarget, "BACK", backBtnFn, true, 143, 46); _local2.x = (200 - gameVars.stageMiddleX); _local2.y = (430 - gameVars.stageMiddleY); } override protected function levelUpExit(_arg1:Object):void{ SceneManager.removeButton(levelUp_mc, "Upgrade", showUpgradeBox); super.levelUpExit(_arg1); } override protected function levelUpInit(_arg1:Object):void{ super.levelUpInit(_arg1); levelUp_mc.x = gameVars.stageMiddleX; levelUp_mc.y = gameVars.stageMiddleY; } override protected function gamewinExit(_arg1:Object):void{ super.gamewinExit(_arg1); } override protected function gamewinInit(_arg1:Object):void{ super.gamewinInit(_arg1); gameWin_mc.x = gameVars.stageMiddleX; gameWin_mc.y = gameVars.stageMiddleY; mm.playSceneSound(); } override protected function gameWin2Game(_arg1:MouseEvent):void{ gameWin_mc.g2gLogo_mc.removeEventListener(MouseEvent.CLICK, gotoGamesToGirls); super.gameWin2Game(_arg1); mm.playGameSound(); } private function onSleepStart(_arg1:Event):void{ _arg1.currentTarget.removeEventListener("sleeping", onSleepStart); dayToNight(); } override protected function menuInit(_arg1:Object):void{ var _local4:UiBox; var _local5:UiButton; Debug.log("menu init"); menu = new MenuClip(); menu.addEventListener(Event.ENTER_FRAME, assignMenu); addChild(menu); menu.x = gameVars.stageMiddleX; menu.y = gameVars.stageMiddleY; if (gameVars.mochiEnabled){ MochiSocial.showLoginWidget(); }; if (gameVars.brandUsed == "Csharks"){ logo = (new LogoCsharks() as Sprite); } else { if (gameVars.brandUsed == "OIG"){ logo = (new LogoOIG() as Sprite); }; }; if (logo){ logo.buttonMode = true; logo.name = "Logo"; menu.addChild(logo); logo.addEventListener(MouseEvent.CLICK, gotoSite); logo.x = 90; logo.y = 520; }; if (((gameVars.mochiEnabled) && (gameVars.showShareButton))){ shareBtn = new ShareThis(); shareBtn.name = "Share"; menu.addChild(shareBtn); shareBtn.addEventListener(MouseEvent.CLICK, postToStream); shareBtn.x = 5; shareBtn.y = 40; }; if (gameVars.brandUsed != "Csharks"){ if (gameVars.showCredits != null){ _local4 = new UiBox("", 200, 70, UiBoxTypes.TextOnly, 18, 0xFFFFFF, gameVars.showCredits); _local4.name = "CreditText"; _local4.x = (((2 * gameVars.stageMiddleX) - _local4.width) - 20); _local4.y = (((2 * gameVars.stageMiddleY) - _local4.height) - 80); menu.addChild(_local4); creditLogo = (new LogoCsharks() as Sprite); creditLogo.buttonMode = true; creditLogo.name = "Credit Logo"; menu.addChild(creditLogo); creditLogo.addEventListener(MouseEvent.CLICK, gotoCsharksSite); creditLogo.x = (((2 * gameVars.stageMiddleX) - creditLogo.width) - 5); creditLogo.y = (((2 * gameVars.stageMiddleY) - creditLogo.height) - 5); }; }; var _local2:UiButton = SceneManager.addButton(menu, "PLAY", gameStart, true, 143, 46); var _local3:UiButton = SceneManager.addButton(menu, "HELP", gotoHelpPage, true, 143, 46); if (gameVars.mochiEnabled){ _local5 = SceneManager.addButton(menu, "Leaderboard", showHighScores); _local5.x = (gameVars.stageMiddleX - (_local5.width / 2)); }; _local2.x = (-(gameVars.stageMiddleX) + 200); _local3.x = (-(gameVars.stageMiddleX) + 200); _local2.y = (-(gameVars.stageMiddleY) + 430); _local3.y = (-(gameVars.stageMiddleY) + 480); if (gameVars.mochiEnabled){ TweenLite.to(_local5, 1, {y:560, ease:Elastic.easeOut}); }; } override protected function levelUpAdded(_arg1:Event):void{ } private function nodeReached(_arg1:Event):void{ if (_arg1.currentTarget.currentNodeId == "node_g0"){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(girlBottomWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_g0")) && (!((_arg1.currentTarget.nextNodeId == "node_g1"))))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(telephone.clip)); }; if (_arg1.currentTarget.currentNodeId == "node_g4"){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(mirrorGirl.clip)); }; if (_arg1.currentTarget.currentNodeId == "node_g2"){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(girlBottomWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_g3")) && ((_arg1.currentTarget.nextNodeId == "node_g4")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(mirrorGirl.clip)); }; if (_arg1.currentTarget.currentNodeId == "node_d0"){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(telephone.clip)); }; if ((((_arg1.currentTarget.currentNodeId == "node_d0")) && ((_arg1.currentTarget.nextNodeId == "node_v0")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(flowerVase.clip)); }; if ((((_arg1.currentTarget.currentNodeId == "node_f0")) && ((_arg1.currentTarget.nextNodeId == "node_d2")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(overWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_f0")) && ((_arg1.currentTarget.nextNodeId == "node_d0")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(telephone.clip)); }; if (_arg1.currentTarget.currentNodeId == "node_k0"){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(telephone.clip)); }; if ((((_arg1.currentTarget.currentNodeId == "node_k0")) && ((_arg1.currentTarget.nextNodeId == "node_k1")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(kidsLeftWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_k0")) && ((_arg1.currentTarget.nextNodeId == "node_w0")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(kitchenRightWall)); }; if ((((((_arg1.currentTarget.currentNodeId == "node_k1")) || ((_arg1.currentTarget.currentNodeId == "node_k2")))) || ((_arg1.currentTarget.currentNodeId == "node_k3")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(kidsBottomWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_k3")) && ((_arg1.currentTarget.nextNodeId == "node_k1")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(kidsBottomWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_k1")) && ((_arg1.currentTarget.nextNodeId == "node_k0")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(kidsLeftWall)); }; if ((((_arg1.currentTarget.currentNodeId == "node_f0")) && ((_arg1.currentTarget.nextNodeId == "node_f1")))){ game_mc.main_mc.setChildIndex(player.clip, game_mc.main_mc.getChildIndex(kitchenBoardDown)); }; } private function triggerObject(_arg1, _arg2:String):void{ _arg1.state.changeState(_arg2); } private function init(_arg1:Event=null):void{ if (hasEventListener(Event.ADDED_TO_STAGE)){ removeEventListener(Event.ADDED_TO_STAGE, init); }; stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE; if (Environment.IS_CSHARKS){ }; if (Environment.IS_OIG){ }; super.cFlashtoryInit(); TweenPlugin.activate([TintPlugin, ColorTransformPlugin]); if (gameVars.mochiEnabled){ MochiServices.connect("84993a1de4031cd8", root); }; if (gameVars.developerMode){ gameSequence.initialState = "Menu"; } else { gameSequence.initialState = "Intro"; }; } override protected function pauseGame(_arg1:Object=null):void{ gamePause(); var _local2:MovieClip = new PauseScreen(); game_mc.addChild(_local2); _local2.name = "pscreen"; _local2.addFrameScript((_local2.totalFrames - 1), _local2.stop); _local2.x = 400; _local2.y = 300; } override protected function gameOver2Game(_arg1:MouseEvent):void{ mm.playGameSound(); SoundManager.getInstance().playSound("defaultClick"); gameVars.score = 0; gameVars.levelScore = 0; gameVars.playerSpeed = 0; gameVars.energy = 0; gameVars.busyItems = 0; gameVars.foodBusy = false; gameVars.foodTimes = 2; gameVars.totalItems = 0; gameVars.missedItems = 0; stoveCondition = "old"; washingMachineCondition = "old"; gameOver_mc.g2gLogo_mc.removeEventListener(MouseEvent.CLICK, gotoGamesToGirls); super.gameOver2Game(_arg1); } protected function forceGameWin(_arg1:MouseEvent):void{ gameSequence.changeState("GameWin"); } override protected function checkAddMochiAds(_arg1:Event):void{ levelUp_mc.removeEventListener(Event.ADDED_TO_STAGE, checkAddMochiAds); if (((((gameVars.mochiEnabled) && ((gameVars.showInterLevelAds < gameVars.levelMax)))) && (((gameVars.level % gameVars.showInterLevelAds) == 0)))){ levelUp_mc.gotoAndStop(1); MochiAd.showInterLevelAd({clip:root, id:"test", res:(((gameVars.stageMiddleX * 2).toString() + "x") + (gameVars.stageMiddleY * 2).toString()), ad_finished:showLevelUp}); } else { showLevelUp(); }; } private function gamePause():void{ super.pauseGame(); setVariable("Paused", "1", "pauseGame", "B"); pauseTime = getTimer(); } private function dayToNight():void{ var levelupScreen:MovieClip; var scoreText:UiBox; var totalText:UiBox; var missedText:UiBox; var incompleteText:UiBox; var totalScoreText:UiBox; var okButton:UiButton; var upgradeButton:UiButton; if (gameVars.level == 10){ gameSequence.changeState("GameWin"); }; TweenMax.to(game_mc.main_mc, 1, {colorTransform:{brightness:0.2}, onComplete:function ():void{ mm.playSceneSound(); }}); var moonLight:MovieClip = new MoonWindow(); game_mc.addChild(moonLight); moonLight.name = "moonLight"; moonLight.filters = [new BlurFilter(2, 2, 1)]; moonLight.addFrameScript((moonLight.totalFrames - 1), moonLight.stop); moonLight.x = 112; moonLight.y = 74; levelupScreen = new LevelUpBox(); game_mc.addChild(levelupScreen); levelupScreen.name = "levelUpScreen"; levelupScreen.x = 350; levelupScreen.y = (-(levelupScreen.height) - 50); levelupScreen.moneyLabel_mc.visible = false; levelupScreen.successLabel_mc.visible = false; levelupScreen.failedLabel_mc.visible = false; levelupScreen.totalLabel_mc.visible = false; levelupScreen.incompleteLabel_mc.visible = false; scoreText = new UiBox("", 200, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, (gameVars.score + gameVars.levelScore)); scoreText.name = "Score2"; totalText = new UiBox("", 200, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, ""); totalText.name = "Total2"; missedText = new UiBox("", 200, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, ""); missedText.name = "Missed2"; incompleteText = new UiBox("", 200, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, ""); incompleteText.name = "Incomplete"; totalScoreText = new UiBox("", 200, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, (gameVars.score + gameVars.levelScore)); totalScoreText.name = "TotalScore2"; scoreText.x = 550; totalText.x = 550; missedText.x = 550; totalScoreText.x = 550; incompleteText.x = 550; totalScoreText.y = 340; missedText.y = 243; incompleteText.y = 285; totalText.y = 200; scoreText.y = 172; var fText = (completedJobs + " x 10"); totalText.update(fText); var mText = (gameVars.missedItems + " x -10"); missedText.update(mText); var incompleteJobs:Number = (thisLevelTotalJobs - (completedJobs + gameVars.missedItems)); var iText = (incompleteJobs + " x -5"); incompleteText.update(iText); var sText:String = String(((((gameVars.score + gameVars.levelScore) + (completedJobs * 10)) - (gameVars.missedItems * 10)) - (incompleteJobs * 5))); totalScoreText.runningUpdate = true; totalScoreText.update(sText); gameVars.score = ((((gameVars.score + gameVars.levelScore) + (completedJobs * 10)) - (gameVars.missedItems * 10)) - (incompleteJobs * 5)); okButton = SceneManager.addButton(game_mc, "Next Day", manualLevelUp, true, 180, 45); game_mc.removeEventListener(Event.ENTER_FRAME, levelUpAdded); okButton.x = 470; okButton.y = 405; okButton.visible = false; upgradeButton = SceneManager.addButton(game_mc, "Upgrade", showUpgradeBox, true, 180, 45); upgradeButton.x = 470; upgradeButton.y = 470; upgradeButton.visible = false; TweenLite.to(levelupScreen, 3, {delay:3, y:50, ease:Strong.easeOut, onComplete:function ():void{ var i:*; var d4:*; i = 0; d4 = setInterval(function ():void{ i++; if (i == 1){ game_mc.addChild(scoreText); levelupScreen.moneyLabel_mc.visible = true; SoundManager.getInstance().playSound("sprinkSound"); } else { if (i == 2){ game_mc.addChild(totalText); levelupScreen.successLabel_mc.visible = true; SoundManager.getInstance().playSound("sprinkSound"); } else { if (i == 3){ game_mc.addChild(missedText); levelupScreen.failedLabel_mc.visible = true; SoundManager.getInstance().playSound("sprinkSound"); } else { if (i == 4){ game_mc.addChild(incompleteText); levelupScreen.incompleteLabel_mc.visible = true; SoundManager.getInstance().playSound("sprinkSound"); } else { if (i == 5){ game_mc.addChild(totalScoreText); levelupScreen.totalLabel_mc.visible = true; SoundManager.getInstance().playSound("sprinkSound"); } else { if (i == 6){ okButton.visible = true; if (gameVars.level >= gameVars.upgradeStartonLevel){ upgradeButton.visible = true; }; clearTimeout(d4); }; }; }; }; }; }; }, 1000); }}); } private function gotoSleep():void{ gameVars.commands.push("goto|node_g6", "sleep|0"); } private function sortDepths(_arg1:Array):void{ var _local4:*; var _local5:Number; var _local2:Array = _arg1.concat().sort(indexSort); var _local3:uint; while (_local3 < _arg1.length) { game_mc.main_mc.swapChildren(_local2[_local3], _arg1[_local3]); _local4 = _local2[_local3]; _local5 = _local2.indexOf(_arg1[_local3]); _local2[_local3] = _local2[_local5]; _local2[_local5] = _local4; _local3++; }; } private function showNextButton():void{ var _local1:UiButton = SceneManager.addButton(game_mc, "Finish Day", nextBtnCallback, true, 143, 46); _local1.x = 640; _local1.y = 500; } private function removeFoodTimer(_arg1:TimerEvent):void{ foodTimer.removeEventListener(TimerEvent.TIMER, foodSystemInit); foodTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, removeFoodTimer); } private function droppedPenguin(_arg1:Event):void{ triggerObject(penguinToy, "wrongState"); } private function removeProblem(_arg1:Event):void{ if (_arg1.currentTarget != foodSystem){ if (_arg1.currentTarget != wardrobeGirl){ gameVars.busyItems--; if (_arg1.currentTarget.objectId == "penguinToy"){ kid1.ready = true; busyItemArray.splice(busyItemArray.indexOf("kid1"), 1); } else { if (_arg1.currentTarget.objectId == "ballToy"){ kid2.ready = true; busyItemArray.splice(busyItemArray.indexOf("kid2"), 1); } else { busyItemArray.splice(busyItemArray.indexOf(_arg1.currentTarget.objectId), 1); }; }; } else { cloth.ready = true; }; if (_arg1.currentTarget.objectId != "washingMachine"){ if (_arg1.currentTarget.failed == true){ gameVars.missedItems++; } else { completedJobs++; }; gameJobsText.update(((completedJobs + "/") + thisLevelTotalJobs)); }; } else { if (_arg1.currentTarget.failed == true){ gameVars.missedItems++; } else { completedJobs++; }; gameJobsText.update(((completedJobs + "/") + thisLevelTotalJobs)); }; gameMissedText.update(gameVars.missedItems); } override protected function gameStart(_arg1:MouseEvent):void{ super.gameStart(_arg1); mm.playGameSound(); } private function gameLoop():void{ player.update(); if (gameReady == false){ return; }; createProblem(); if ((((commandBusy == false)) && ((gameVars.commands.length > 0)))){ commandBusy = true; runCommand(gameVars.commands[0]); gameVars.commands.splice(0, 1); }; gameScoreText.update(gameVars.levelScore); } private function initArea():void{ var itemArray:Array; var d3:uint; var j:uint; var i:MovieClip; gameReady = false; nodes = new XML(<nodes> <node id="node_g0" x="307" y="344" join="node_g1,node_p0,node_k0,node_h0"/> <node id="node_g1" x="257" y="314" join="node_g0,node_g2,node_g5"/> <node id="node_g2" x="315" y="279" join="node_g1,node_g3"/> <node id="node_g3" x="243" y="237" join="node_g2,node_g4,node_g5"/> <node id="node_g4" x="289" y="212" join="node_g3"/> <node id="node_g5" x="184" y="272" join="node_g6,node_g3,node_g1"/> <node id="node_g6" x="110" y="230" join="node_g5"/> <node id="node_v0" x="245" y="441" join="node_d0"/> <node id="node_p0" x="289" y="354" join="node_g0"/> <node id="node_k0" x="494.5" y="237.5" join="node_k1,node_w0,node_h0"/> <node id="node_k1" x="442" y="207" join="node_k0,node_k2,node_k3"/> <node id="node_k2" x="317.6" y="136" join="node_k1"/> <node id="node_k3" x="553.6" y="146" join="node_k1"/> <node id="node_w0" x="629" y="162" join="node_k0"/> <node id="node_h0" x="330.6" y="330.6" join="node_g0,node_d0,node_k0"/> <node id="node_d0" x="388" y="362" join="node_h0,node_f0,node_v0"/> <node id="node_f0" x="486.4" y="419" join="node_d0,node_f1,node_d2"/> <node id="node_f1" x="556" y="363" join="node_f0,node_f2"/> <node id="node_f2" x="651" y="417" join="node_f1,node_f3"/> <node id="node_f3" x="688.7" y="395.5" join="node_f2,node_f4"/> <node id="node_f4" x="756.7" y="354" join="node_f3,node_f5"/> <node id="node_f5" x="718.7" y="334" join="node_f4"/> <node id="node_d2" x="409" y="469" join="node_f0"/> </nodes> ); outerWall = new OuterWall(); kitchenRightWall = new KitchenRightWall(); kidsLeftWall = new LeftWall(); kidsBottomWall = new KidsBottomWall(); washingMachine = new InteractiveCreatorObject("washingMachine", "cloth"); washedCloth = new DroppedObject("washedCloth", "wardrobeGirl", this); bucket = new InteractiveObject("bucket"); girlLeftWall = new LeftWall(); girlBottomWall = new GirlBottomWall(); hallTopLeftWall = new HallTopLeftWall(); kitchenTopWall = new KitchenTopWall(); fridge = new SimpleObject("fridge", ["opened"]); kitchenBoardRight = new KitchenBoardRight(); diningTable = new SimpleObject("diningTable", ["plate", "food", "eaten", "finished"]); kitchenBoardDown = new KitchenBoardDown(); washBasin = new SimpleObject("washbasin", ["noVessel", "beforeWash", "afterWash"]); kitchenBoardLeft = new KitchenBoardLeft(); stove = new SimpleObject("stove", ["emptyVessel", "cookingStarted", "cooked", "ready"]); drawingTopWall = new DrawingTopWall(); grandMother = new InteractiveObject("grandMother"); grandFather = new InteractiveObject("grandFather"); man = new InteractiveObject("man"); overWall = new OverWall(); bedGirl = new InteractiveObject("bedGirl"); tableLampGirl = new TableLamp(); wardrobeGirl = new Wardrobe(); books = new InteractiveObject("books"); cloth = new PickupObject("cloth", "wardrobeGirl", "washingMachine", this); mirrorGirl = new InteractiveObject("mirrorGirl"); telephone = new InteractiveObject("telephone"); chairHall1 = new ChairHall(); chairHall2 = new ChairHall(); tableLamp2 = new TableLamp2(); player = new Player("node_g0", nodes); flowerVase = new InteractiveObject("flowerVase"); sofa = new Sofa(); studyLamp = new StudyLamp(); kidChair = new SimpleChair(); kid1 = new CreatorObject("kid1"); penguinToy = new DroppedObject("penguinToy"); kidBed1 = new SimpleBed(); tableLampKid = new TableLamp(); kidBed2 = new SimpleBed(); kid2 = new CreatorObject("kid2"); ballToy = new DroppedObject("ballToy"); wardrobeKid = new Wardrobe(); simpleDoll1 = new SimpleDoll1(); outerWall.x = -1.5; outerWall.y = -210.8; kitchenRightWall.x = 641.4; kitchenRightWall.y = 189.8; kidsLeftWall.x = 203.9; kidsLeftWall.y = 76; kidsBottomWall.x = 495.6; kidsBottomWall.y = 109; girlLeftWall.x = 7.9; girlLeftWall.y = 181.6; girlBottomWall.x = 312.3; girlBottomWall.y = 206.7; kitchenTopWall.x = 435.6; kitchenTopWall.y = 198.8; drawingTopWall.x = 288.2; drawingTopWall.y = 380.3; hallTopLeftWall.x = 51.4; hallTopLeftWall.y = 312.6; overWall.x = 3.8; overWall.y = 178.9; game_mc.main_mc.addChild(outerWall); game_mc.main_mc.addChild(kidBed1); game_mc.main_mc.addChild(tableLampKid); game_mc.main_mc.addChild(kidBed2); game_mc.main_mc.addChild(kid2.clip); game_mc.main_mc.addChild(wardrobeKid.clip); game_mc.main_mc.addChild(ballToy.clip); game_mc.main_mc.addChild(simpleDoll1); game_mc.main_mc.addChild(kidChair); game_mc.main_mc.addChild(kid1.clip); game_mc.main_mc.addChild(penguinToy.clip); game_mc.main_mc.addChild(studyLamp); game_mc.main_mc.addChild(kidsBottomWall); game_mc.main_mc.addChild(kidsLeftWall); game_mc.main_mc.addChild(tableLampGirl); game_mc.main_mc.addChild(cloth.clip); game_mc.main_mc.addChild(wardrobeGirl.clip); game_mc.main_mc.addChild(bedGirl.clip); game_mc.main_mc.addChild(books.clip); game_mc.main_mc.addChild(mirrorGirl.clip); game_mc.main_mc.addChild(girlLeftWall); game_mc.main_mc.addChild(girlBottomWall); game_mc.main_mc.addChild(washingMachine.clip); game_mc.main_mc.addChild(washedCloth.clip); game_mc.main_mc.addChild(bucket.clip); game_mc.main_mc.addChild(kitchenRightWall); game_mc.main_mc.addChild(kitchenTopWall); game_mc.main_mc.addChild(fridge.clip); game_mc.main_mc.addChild(kitchenBoardRight); game_mc.main_mc.addChild(diningTable.clip); game_mc.main_mc.addChild(kitchenBoardDown); game_mc.main_mc.addChild(washBasin.clip); game_mc.main_mc.addChild(kitchenBoardLeft); game_mc.main_mc.addChild(stove.clip); game_mc.main_mc.addChild(hallTopLeftWall); game_mc.main_mc.addChild(telephone.clip); game_mc.main_mc.addChild(chairHall1); game_mc.main_mc.addChild(chairHall2); game_mc.main_mc.addChild(tableLamp2); game_mc.main_mc.addChild(flowerVase.clip); game_mc.main_mc.addChild(sofa); game_mc.main_mc.addChild(drawingTopWall); game_mc.main_mc.addChild(grandFather.clip); game_mc.main_mc.addChild(grandMother.clip); game_mc.main_mc.addChild(overWall); game_mc.main_mc.addChild(man.clip); game_mc.main_mc.addChild(player.clip); game_mc.g2gLogo_mc.addEventListener(MouseEvent.CLICK, gotoGamesToGirls, false, 0, true); washingMachine.x = 653.9; washingMachine.y = 125.6; washingMachine.clip.scaleX = (washingMachine.clip.scaleX * -1); washingMachine.baseStatus(washingMachineCondition); washedCloth.x = 665; washedCloth.y = 110; bucket.x = 708.3; bucket.y = 139.4; bedGirl.x = 86.5; bedGirl.y = 105.7; wardrobeGirl.x = 251.9; wardrobeGirl.y = 121.6; tableLampGirl.x = 186.3; tableLampGirl.y = 70; books.x = 307.3; books.y = 146.3; cloth.x = 198.1; cloth.y = 213.2; mirrorGirl.x = 311.6; mirrorGirl.y = 156.9; telephone.x = 259; telephone.y = 347.6; chairHall1.x = 185.8; chairHall1.y = 339.9; chairHall2.x = 143.8; chairHall2.y = 363.9; tableLamp2.x = 90.5; tableLamp2.y = 410.1; sofa.x = 114.8; sofa.y = 435.8; studyLamp.x = 220.7; studyLamp.y = 65.3; kidChair.x = 258.3; kidChair.y = 67.2; kidChair.chair_mc.gotoAndStop(3); kid1.x = 289.6; kid1.y = 87.7; kid1.scaleX = (kid1.scaleX * -1); kid1.addEventListener("workStarted", kidPlaying, false, 0, true); kid1.addEventListener("created", droppedPenguin, false, 0, true); kidBed1.x = 312.7; kidBed1.y = -15.8; tableLampKid.x = 477.4; tableLampKid.y = 0.9; tableLampKid.scaleX = (tableLampKid.scaleX * -1); kidBed2.x = 390.7; kidBed2.y = 28.2; kid2.x = 463; kid2.y = 109.9; kid2.addEventListener("workStarted", kidPlaying, false, 0, true); kid2.addEventListener("created", droppedBall, false, 0, true); wardrobeKid.x = 512.8; wardrobeKid.y = 62; simpleDoll1.x = 572.5; simpleDoll1.y = 78.8; fridge.x = 735.5; fridge.y = 275.4; fridge.width = 59.9; fridge.height = 89.6; fridge.scaleX = (fridge.scaleX * -1); kitchenBoardRight.x = 738.6; kitchenBoardRight.y = 267.9; kitchenBoardDown.x = 665.5; kitchenBoardDown.y = 324; kitchenBoardLeft.x = 553.6; kitchenBoardLeft.y = 356.5; washBasin.x = 751.4; washBasin.y = 376; diningTable.x = 623.6; diningTable.y = 306.6; stove.x = 617.8; stove.y = 378.4; stove.baseStatus(stoveCondition); grandMother.x = 360; grandMother.y = 445.5; grandFather.x = 414.9; grandFather.y = 410.4; man.x = 550.2; man.y = 427; man.scaleX = (man.scaleX * -1); penguinToy.x = 300; penguinToy.y = 90; ballToy.x = 534; ballToy.y = 126; flowerVase.x = 223; flowerVase.y = 427; gameVars.commands = new Array(); commandBusy = false; iItems = new Array(); unlockedItems = []; var targetListIndex:Number = ((gameVars.unlockedItems.length)<gameVars.level) ? (gameVars.unlockedItems.length - 1) : gameVars.level; var k:int; while (k < targetListIndex) { j = 0; while (j < gameVars.unlockedItems[k].length) { unlockedItems.push(this[gameVars.unlockedItems[k][j]]); j = (j + 1); }; k = (k + 1); }; iItems.push(unlockedItems, [wardrobeGirl, washingMachine, penguinToy, ballToy, washedCloth]); gameVars.levelScore = 0; gameScoreText.runningUpdate = false; gameScoreText.update(0); gameScoreText.runningUpdate = true; gameVars.busyItems = 0; gameVars.totalItems = 0; gameVars.missedItems = 0; gameVars.foodBusy = false; gameVars.foodTimes = 2; completedJobs = 0; nextLevelAvailable = false; goingToSleep = false; numCloth = 0; busyItemArray = []; foodSystem = new FoodSystem(diningTable, washBasin, fridge, stove); foodSystem.addEventListener("problemRemoved", removeProblem, false, 0, true); foodTimer = new Timer(gameVars.foodDelay, gameVars.foodTimes); foodTimer.addEventListener(TimerEvent.TIMER, foodSystemInit, false, 0, true); foodTimer.addEventListener(TimerEvent.TIMER_COMPLETE, removeFoodTimer, false, 0, true); foodTimes = 0; foodTimer.start(); player.addEventListener("nodeReached", nodeReached, false, 0, true); for each (itemArray in iItems) { for each (i in itemArray) { i.addEventListener("problemRemoved", removeProblem, false, 0, true); }; }; TweenMax.to(game_mc.main_mc, 0, {colorTransform:{brightness:0}}); d3 = setTimeout(function ():void{ clearTimeout(d3); readyAnimation = new ReadyAnimation(); game_mc.addChild(readyAnimation); readyAnimation.x = gameVars.stageMiddleX; readyAnimation.y = (gameVars.stageMiddleY - 100); readyAnimation.addFrameScript(4, function ():void{ var _local5:*; var _local6:*; var _local7:*; readyAnimation.stop(); var _local1:* = new UiBox("", 150, 60, UiBoxTypes.TextOnly, 45, 0xFFFFFF, ("Day " + gameVars.level)); _local1.name = "Heading"; readyAnimation.addChild(_local1); _local1.x = -75; _local1.y = -150; var _local2:* = new UiBox("", 150, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, 0); _local2.name = "tgt"; readyAnimation.addChild(_local2); _local2.x = 19.6; _local2.y = -92; var _local3:* = new UiBox("", 150, 40, UiBoxTypes.TextOnly, 25, 0xFFFFFF, 0); _local3.name = "totalJobs"; readyAnimation.addChild(_local3); _local3.x = 19.6; _local3.y = -56; _local2.update(gameVars.requiredScores[gameVars.level]); _local3.update(thisLevelTotalJobs); var _local4:* = new Array(); if (gameVars.level <= gameVars.introDesc.length){ readyAnimation.intro_txt.text = (gameVars.introDesc[(gameVars.level - 1)] + "\n\n"); } else { readyAnimation.intro_txt.text = ""; }; if (gameVars.level <= gameVars.members.length){ _local4 = gameVars.members[(gameVars.level - 1)]; } else { _local4 = gameVars.members[(gameVars.members.length - 1)]; }; for each (_local5 in gameVars.members[(gameVars.members.length - 1)]) { readyAnimation.getChildByName((_local5 + "Icon_mc")).visible = false; }; for each (_local6 in _local4) { readyAnimation.getChildByName((_local6 + "Icon_mc")).visible = true; }; readyAnimation.intro_txt.appendText("Members present:\n"); _local7 = SceneManager.addButton(readyAnimation, "Start", startLevel, true, 130, 40); _local7.x = -65; _local7.y = 245; }); readyAnimation.addFrameScript((readyAnimation.totalFrames - 1), function ():void{ readyAnimation.stop(); Sprite(readyAnimation.parent).removeChild(readyAnimation); unpauseGame(); gameReady = true; }); }, 1000); TweenMax.to(game_mc.main_mc, 1, {colorTransform:{brightness:1}, delay:0.2}); } private function nextBtnCallback(_arg1:MouseEvent):void{ SceneManager.removeButton(game_mc, "Finish Day", nextBtnCallback); gotoSleep(); } private function upgradeItemClicked(_arg1:MouseEvent):void{ selectedUpgrade = _arg1.currentTarget.name; if (gameVars.score >= gameVars.cost[selectedUpgrade]){ _arg1.currentTarget.label_txt.text = "Click Buy"; } else { selectedUpgrade = ""; }; } protected function forceLevelUp(_arg1:MouseEvent):void{ gameEngine.changeState("LevelUp"); } private function droppedBall(_arg1:Event):void{ triggerObject(ballToy, "wrongState"); } private function itemProcessCompleted(_arg1:Event):void{ _arg1.currentTarget.removeEventListener("workCompleted", itemProcessCompleted); if (_arg1.currentTarget == washingMachine){ washedCloth.state.changeState("wrongState"); }; } private function indexSort(_arg1:DisplayObject, _arg2:DisplayObject):Number{ if (game_mc.main_mc.getChildIndex(_arg1) > game_mc.main_mc.getChildIndex(_arg2)){ return (1); }; return (-1); } protected function forceGameOver(_arg1:MouseEvent):void{ gameSequence.changeState("GameOver"); } override protected function gameoverInit(_arg1:Object):void{ super.gameoverInit(_arg1); gameOver_mc.x = gameVars.stageMiddleX; gameOver_mc.y = gameVars.stageMiddleY; mm.playSceneSound(); } } }//package
Section 219
//RaggedHouse_BgClip (RaggedHouse_BgClip) package { import flash.display.*; import mx.core.*; public class RaggedHouse_BgClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 220
//RaggedHouse_ButtonDownClip (RaggedHouse_ButtonDownClip) package { import flash.display.*; import mx.core.*; public class RaggedHouse_ButtonDownClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 221
//RaggedHouse_ButtonOverClip (RaggedHouse_ButtonOverClip) package { import flash.display.*; import mx.core.*; public class RaggedHouse_ButtonOverClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 222
//RaggedHouse_ButtonUpClip (RaggedHouse_ButtonUpClip) package { import flash.display.*; import mx.core.*; public class RaggedHouse_ButtonUpClip extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 223
//RaggedHouse_ChairHall (RaggedHouse_ChairHall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_ChairHall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 224
//RaggedHouse_Click (RaggedHouse_Click) package { import flash.display.*; import mx.core.*; public class RaggedHouse_Click extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 225
//RaggedHouse_ClingSound (RaggedHouse_ClingSound) package { import flash.display.*; import mx.core.*; public class RaggedHouse_ClingSound extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 226
//RaggedHouse_DefaultClick (RaggedHouse_DefaultClick) package { import flash.display.*; import mx.core.*; public class RaggedHouse_DefaultClick extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 227
//RaggedHouse_DrawingTopWall (RaggedHouse_DrawingTopWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_DrawingTopWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 228
//RaggedHouse_FinishAnimation (RaggedHouse_FinishAnimation) package { import flash.display.*; import mx.core.*; public class RaggedHouse_FinishAnimation extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 229
//RaggedHouse_GirlBottomWall (RaggedHouse_GirlBottomWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_GirlBottomWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 230
//RaggedHouse_HallTopLeftWall (RaggedHouse_HallTopLeftWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_HallTopLeftWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 231
//RaggedHouse_KidsBottomWall (RaggedHouse_KidsBottomWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_KidsBottomWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 232
//RaggedHouse_KitchenBoardDown (RaggedHouse_KitchenBoardDown) package { import flash.display.*; import mx.core.*; public class RaggedHouse_KitchenBoardDown extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 233
//RaggedHouse_KitchenBoardLeft (RaggedHouse_KitchenBoardLeft) package { import flash.display.*; import mx.core.*; public class RaggedHouse_KitchenBoardLeft extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 234
//RaggedHouse_KitchenBoardRight (RaggedHouse_KitchenBoardRight) package { import flash.display.*; import mx.core.*; public class RaggedHouse_KitchenBoardRight extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 235
//RaggedHouse_KitchenRightWall (RaggedHouse_KitchenRightWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_KitchenRightWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 236
//RaggedHouse_KitchenTopWall (RaggedHouse_KitchenTopWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_KitchenTopWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 237
//RaggedHouse_LeftWall (RaggedHouse_LeftWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_LeftWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 238
//RaggedHouse_LevelUpBox (RaggedHouse_LevelUpBox) package { import flash.display.*; import mx.core.*; public class RaggedHouse_LevelUpBox extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_k1:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g4:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_g3:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var totalLabel_mc:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var label_txt:DisplayObject; public var games2girls_button:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var close2_btn:DisplayObject; public var main_mc:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var successLabel_mc:DisplayObject; } }//package
Section 239
//RaggedHouse_MoonWindow (RaggedHouse_MoonWindow) package { import flash.display.*; import mx.core.*; public class RaggedHouse_MoonWindow extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 240
//RaggedHouse_Music2 (RaggedHouse_Music2) package { import flash.display.*; import mx.core.*; public class RaggedHouse_Music2 extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 241
//RaggedHouse_OuterWall (RaggedHouse_OuterWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_OuterWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 242
//RaggedHouse_OverWall (RaggedHouse_OverWall) package { import flash.display.*; import mx.core.*; public class RaggedHouse_OverWall extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 243
//RaggedHouse_PauseScreen (RaggedHouse_PauseScreen) package { import flash.display.*; import mx.core.*; public class RaggedHouse_PauseScreen extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 244
//RaggedHouse_ReadyAnimation (RaggedHouse_ReadyAnimation) package { import flash.display.*; import mx.core.*; public class RaggedHouse_ReadyAnimation extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 245
//RaggedHouse_RingSound (RaggedHouse_RingSound) package { import flash.display.*; import mx.core.*; public class RaggedHouse_RingSound extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 246
//RaggedHouse_SimpleBed (RaggedHouse_SimpleBed) package { import flash.display.*; import mx.core.*; public class RaggedHouse_SimpleBed extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 247
//RaggedHouse_SimpleChair (RaggedHouse_SimpleChair) package { import flash.display.*; import mx.core.*; public class RaggedHouse_SimpleChair extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 248
//RaggedHouse_SimpleDoll1 (RaggedHouse_SimpleDoll1) package { import flash.display.*; import mx.core.*; public class RaggedHouse_SimpleDoll1 extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 249
//RaggedHouse_Sofa (RaggedHouse_Sofa) package { import flash.display.*; import mx.core.*; public class RaggedHouse_Sofa extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 250
//RaggedHouse_SplashSound (RaggedHouse_SplashSound) package { import flash.display.*; import mx.core.*; public class RaggedHouse_SplashSound extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 251
//RaggedHouse_SprinkSound (RaggedHouse_SprinkSound) package { import flash.display.*; import mx.core.*; public class RaggedHouse_SprinkSound extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 252
//RaggedHouse_StudyLamp (RaggedHouse_StudyLamp) package { import flash.display.*; import mx.core.*; public class RaggedHouse_StudyLamp extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 253
//RaggedHouse_TableLamp (RaggedHouse_TableLamp) package { import flash.display.*; import mx.core.*; public class RaggedHouse_TableLamp extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 254
//RaggedHouse_TableLamp2 (RaggedHouse_TableLamp2) package { import flash.display.*; import mx.core.*; public class RaggedHouse_TableLamp2 extends SpriteAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var node_g2:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g6:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var node_h0:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var node_d2:DisplayObject; public var help_Btn:DisplayObject; public var node_v0:DisplayObject; public var menu_Btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f5:DisplayObject; public var main_mc:DisplayObject; public var node_w0:DisplayObject; } }//package
Section 255
//RaggedHouse_UpgradeBox (RaggedHouse_UpgradeBox) package { import flash.display.*; import mx.core.*; public class RaggedHouse_UpgradeBox extends MovieClipAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var buy_btn:DisplayObject; public var label_txt:DisplayObject; public var node_d0:DisplayObject; public var node_d2:DisplayObject; public var node_h0:DisplayObject; public var games2girls_button:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var main_mc:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f1:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var node_f4:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var menu_Btn:DisplayObject; } }//package
Section 256
//RaggedHouse_WashingSound (RaggedHouse_WashingSound) package { import flash.display.*; import mx.core.*; public class RaggedHouse_WashingSound extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 257
//RaggedHouse_Woosh (RaggedHouse_Woosh) package { import flash.display.*; import mx.core.*; public class RaggedHouse_Woosh extends SoundAsset { public var node_k0:DisplayObject; public var node_k1:DisplayObject; public var node_k3:DisplayObject; public var node_g0:DisplayObject; public var node_g1:DisplayObject; public var shoe_btn:DisplayObject; public var node_g3:DisplayObject; public var node_g4:DisplayObject; public var node_g5:DisplayObject; public var node_g2:DisplayObject; public var node_g6:DisplayObject; public var close_btn:DisplayObject; public var girlIcon_mc:DisplayObject; public var node_k2:DisplayObject; public var node_p0:DisplayObject; public var failedLabel_mc:DisplayObject; public var moneyLabel_mc:DisplayObject; public var incompleteLabel_mc:DisplayObject; public var buy_btn:DisplayObject; public var intro_txt:DisplayObject; public var totalLabel_mc:DisplayObject; public var fatherIcon_mc:DisplayObject; public var node_d0:DisplayObject; public var games2girls_button:DisplayObject; public var label_txt:DisplayObject; public var grandMotherIcon_mc:DisplayObject; public var boyIcon_mc:DisplayObject; public var node_h0:DisplayObject; public var energy_btn:DisplayObject; public var help_Btn:DisplayObject; public var node_d2:DisplayObject; public var close2_btn:DisplayObject; public var node_v0:DisplayObject; public var chair_mc:DisplayObject; public var motherIcon_mc:DisplayObject; public var menu_Btn:DisplayObject; public var machine_btn:DisplayObject; public var sound_Mc:DisplayObject; public var node_f0:DisplayObject; public var node_f2:DisplayObject; public var node_f3:DisplayObject; public var successLabel_mc:DisplayObject; public var node_f5:DisplayObject; public var g2gLogo_mc:DisplayObject; public var node_f1:DisplayObject; public var node_f4:DisplayObject; public var grandFatherIcon_mc:DisplayObject; public var node_w0:DisplayObject; public var stove_btn:DisplayObject; public var main_mc:DisplayObject; } }//package
Section 258
//ShareThis (ShareThis) package { import flash.display.*; public dynamic class ShareThis extends SimpleButton { } }//package
Section 259
//Utils (Utils) package { public class Utils { public static function distBetween(_arg1, _arg2):Number{ var _local3:Number = (_arg1.x - _arg2.x); var _local4:Number = (_arg1.y - _arg2.y); return (Math.sqrt(((_local3 * _local3) + (_local4 * _local4)))); } public static function toDegrees(_arg1:Number):Number{ return (((((_arg1 * 180) / Math.PI) + 360) % 360)); } public static function almostEqual(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{ return ((Math.abs((_arg1 - _arg2)) < _arg3)); } public static function minMaxPerc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Number{ var _local6:Number; var _local7:Number; var _local8:Boolean; var _local9:Number = _arg1; var _local10:Number = _arg2; if (_local9 > _local10){ _local8 = true; _local7 = _local10; _local10 = _local9; _local9 = _local7; }; _local10 = (_local10 - _local9); _arg3 = (_arg3 - _local9); _local9 = 0; _local6 = (_arg3 / _local10); if (_local8){ _local6 = (1 - _local6); }; _local6 = Number(_local6.toFixed(2)); _local8 = false; _local9 = _arg4; _local10 = _arg5; if (_local9 > _local10){ _local8 = true; _local7 = _local10; _local10 = _local9; _local9 = _local7; }; _local10 = (_local10 - _local9); if (_local8){ _local6 = (1 - _local6); }; _local6 = (_local6 * _local10); _local6 = (_local6 + _local9); return (_local6); } public static function toRadian(_arg1:Number):Number{ return (((_arg1 * Math.PI) / 180)); } public static function isBetween(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{ if (_arg2 > _arg3){ if ((((_arg1 >= _arg2)) || ((_arg1 <= _arg3)))){ return (true); }; }; if ((((_arg1 >= _arg2)) && ((_arg1 <= _arg3)))){ return (true); }; return (false); } } }//package

Library Items

Symbol 1 GraphicUsed by:10 23
Symbol 2 FontUsed by:3
Symbol 3 EditableTextUses:2Used by:7
Symbol 4 GraphicUsed by:7
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7
Symbol 7 MovieClipUses:3 4 6Used by:23
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:23
Symbol 10 ButtonUses:1Used by:23
Symbol 11 GraphicUsed by:23
Symbol 12 GraphicUsed by:23
Symbol 13 GraphicUsed by:23
Symbol 14 GraphicUsed by:23
Symbol 15 GraphicUsed by:23
Symbol 16 GraphicUsed by:18
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:16 17Used by:23
Symbol 19 GraphicUsed by:23
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:23
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClip {com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_PreloaderClip} [preloaderg2g]Uses:1 7 9 10 11 12 13 14 15 18 19 21 22
Symbol 24 Font {com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_ButtonFont}
Symbol 25 Font {com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_MenuFont}
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:51
Symbol 28 GraphicUsed by:51
Symbol 29 BitmapUsed by:31
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:29 30Used by:51
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:51
Symbol 34 GraphicUsed by:51
Symbol 35 GraphicUsed by:51
Symbol 36 GraphicUsed by:51
Symbol 37 GraphicUsed by:51
Symbol 38 GraphicUsed by:51
Symbol 39 GraphicUsed by:51
Symbol 40 GraphicUsed by:51
Symbol 41 GraphicUsed by:51
Symbol 42 GraphicUsed by:51
Symbol 43 GraphicUsed by:51
Symbol 44 GraphicUsed by:51
Symbol 45 GraphicUsed by:51
Symbol 46 GraphicUsed by:51
Symbol 47 GraphicUsed by:51
Symbol 48 GraphicUsed by:51
Symbol 49 GraphicUsed by:51
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClip {IntroOIG_mc} [IntroOIG_mc]Uses:27 28 31 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
Symbol 52 GraphicUsed by:58
Symbol 53 GraphicUsed by:58
Symbol 54 GraphicUsed by:58
Symbol 55 GraphicUsed by:58
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:52 53 54 55 56 57Used by:63
Symbol 59 GraphicUsed by:62
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:62
Symbol 62 MovieClipUses:59 61Used by:63
Symbol 63 MovieClipUses:58 62Used by:85
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:64Used by:85
Symbol 66 GraphicUsed by:85
Symbol 67 GraphicUsed by:68 72 79 163
Symbol 68 MovieClipUses:67Used by:72 76 79 163
Symbol 69 GraphicUsed by:72
Symbol 70 FontUsed by:71 75 78 103 160 161 162 250 264 549
Symbol 71 TextUses:70Used by:72
Symbol 72 ButtonUses:68 69 71 67Used by:85
Symbol 73 GraphicUsed by:76
Symbol 74 GraphicUsed by:76
Symbol 75 TextUses:70Used by:76
Symbol 76 MovieClipUses:68 73 74 75Used by:85
Symbol 77 GraphicUsed by:79
Symbol 78 TextUses:70Used by:79
Symbol 79 ButtonUses:68 77 78 67Used by:85
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:83
Symbol 82 GraphicUsed by:83
Symbol 83 ButtonUses:80 81 82Used by:84
Symbol 84 MovieClipUses:83Used by:85 99 104 105 107 133 142 143
Symbol 85 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip} [Game_mc]Uses:63 65 66 72 76 79 84
Symbol 86 GraphicUsed by:99 104 105 107 133 142 143
Symbol 87 GraphicUsed by:99 104 105 107 133 142 143
Symbol 88 FontUsed by:89
Symbol 89 TextUses:88Used by:99 104 105 107 133 142 143
Symbol 90 GraphicUsed by:99 104 105 107 133 142 143
Symbol 91 GraphicUsed by:99 104 105 107 133 142 143
Symbol 92 GraphicUsed by:99 104 105 107 133 142 143
Symbol 93 GraphicUsed by:96
Symbol 94 GraphicUsed by:96 132
Symbol 95 GraphicUsed by:96
Symbol 96 MovieClipUses:93 94 95Used by:99 107
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:97Used by:99
Symbol 99 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameWin} [GameWin_mc]Uses:86 87 84 89 90 91 92 96 98
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClipUses:100Used by:104 105 133 143
Symbol 102 GraphicUsed by:104 105
Symbol 103 TextUses:70Used by:104 105
Symbol 104 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_HelpClip} [Help_mc]Uses:86 90 91 92 101 87 102 103 84 89
Symbol 105 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_HelpDisplay} [HelpDisplay_mc]Uses:86 90 91 92 101 87 102 103 84 89
Symbol 106 GraphicUsed by:107 262
Symbol 107 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_LeveUp} [LevelUp_mc]Uses:86 87 90 91 92 96 106 84 89
Symbol 108 GraphicUsed by:129
Symbol 109 GraphicUsed by:129
Symbol 110 GraphicUsed by:129
Symbol 111 GraphicUsed by:129
Symbol 112 GraphicUsed by:129
Symbol 113 GraphicUsed by:129
Symbol 114 GraphicUsed by:129
Symbol 115 GraphicUsed by:129
Symbol 116 GraphicUsed by:129
Symbol 117 GraphicUsed by:125
Symbol 118 GraphicUsed by:125
Symbol 119 GraphicUsed by:125
Symbol 120 GraphicUsed by:125
Symbol 121 GraphicUsed by:125
Symbol 122 GraphicUsed by:125
Symbol 123 GraphicUsed by:125
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClipUses:117 118 119 120 121 122 123 124Used by:129
Symbol 126 GraphicUsed by:129
Symbol 127 GraphicUsed by:129
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip {IntroCgs_mc} [IntroCgs_mc]Uses:108 109 110 111 112 113 114 115 116 125 126 127 128
Symbol 130 GraphicUsed by:132
Symbol 131 GraphicUsed by:132
Symbol 132 MovieClipUses:130 94 131Used by:133
Symbol 133 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_MenuClip} [Menu_mc]Uses:86 87 90 91 92 132 101 84 89
Symbol 134 GraphicUsed by:137
Symbol 135 GraphicUsed by:137
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:134 135 136Used by:142
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:138Used by:142
Symbol 140 GraphicUsed by:142 312
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameOver} [GameOver_mc]Uses:86 87 84 89 90 91 92 137 139 140 141
Symbol 143 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_TemplateBg} [Template]Uses:86 87 90 91 92 101 84 89
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClip {RaggedHouse_KitchenTopWall} [kitchenTopWall]Uses:144
Symbol 146 Sound {RaggedHouse_SprinkSound} [sprinkSound]
Symbol 147 GraphicUsed by:150 215
Symbol 148 GraphicUsed by:150 215
Symbol 149 GraphicUsed by:150 215
Symbol 150 MovieClip {RaggedHouse_Sofa} [sofa]Uses:147 148 149
Symbol 151 GraphicUsed by:152
Symbol 152 MovieClip {RaggedHouse_KitchenRightWall} [kitchenRightWall]Uses:151
Symbol 153 GraphicUsed by:156 215 479
Symbol 154 GraphicUsed by:155 217
Symbol 155 MovieClipUses:154Used by:156 215 245
Symbol 156 MovieClip {RaggedHouse_TableLamp2} [tableLamp2]Uses:153 155
Symbol 157 GraphicUsed by:158 167 169 171 173
Symbol 158 MovieClipUses:157Used by:178
Symbol 159 GraphicUsed by:178
Symbol 160 TextUses:70Used by:163
Symbol 161 TextUses:70Used by:163
Symbol 162 TextUses:70Used by:163
Symbol 163 ButtonUses:68 160 161 67 162Used by:178
Symbol 164 GraphicUsed by:167
Symbol 165 FontUsed by:166
Symbol 166 EditableTextUses:165Used by:167 169 171 173
Symbol 167 MovieClipUses:157 164 166Used by:178
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClipUses:157 168 166Used by:178
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:157 170 166Used by:178
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:157 172 166Used by:178
Symbol 174 GraphicUsed by:177
Symbol 175 GraphicUsed by:177
Symbol 176 GraphicUsed by:177
Symbol 177 ButtonUses:174 175 176Used by:178
Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox]Uses:158 159 163 167 169 171 173 177
Symbol 179 Sound {RaggedHouse_SplashSound} [splash]
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClip {RaggedHouse_GirlBottomWall} [girlBottomWall]Uses:180
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClip {RaggedHouse_KitchenBoardLeft} [kitchenBoardLeft]Uses:182
Symbol 184 GraphicUsed by:191
Symbol 185 GraphicUsed by:191 243
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClipUses:186Used by:191
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClipUses:188Used by:191
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClip {RaggedHouse_OuterWall} [outerWall]Uses:184 185 187 189 190
Symbol 192 GraphicUsed by:194 439
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClip {RaggedHouse_SimpleBed} [simpleBed]Uses:192 193
Symbol 195 GraphicUsed by:200 248 279 413 428 429 454 475 504
Symbol 196 GraphicUsed by:200 279 428 429 504
Symbol 197 GraphicUsed by:200 504
Symbol 198 GraphicUsed by:200 279 428 429 504
Symbol 199 GraphicUsed by:200 504
Symbol 200 MovieClipUses:195 196 197 198 199Used by:201
Symbol 201 MovieClip {RaggedHouse_SimpleChair} [simpleChair]Uses:200
Symbol 202 GraphicUsed by:203
Symbol 203 MovieClip {RaggedHouse_LeftWall} [leftWall]Uses:202
Symbol 204 Sound {RaggedHouse_WashingSound} [washing]
Symbol 205 GraphicUsed by:207
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClip {RaggedHouse_PauseScreen} [pauseScreen]Uses:205 206
Symbol 208 Sound {RaggedHouse_DefaultClick} [defaultClick]
Symbol 209 GraphicUsed by:215
Symbol 210 GraphicUsed by:215
Symbol 211 GraphicUsed by:215
Symbol 212 GraphicUsed by:215
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:213Used by:215
Symbol 215 MovieClip {RaggedHouse_OverWall} [overWall]Uses:209 210 211 153 147 148 149 155 212 214
Symbol 216 GraphicUsed by:217
Symbol 217 MovieClip {RaggedHouse_StudyLamp} [studyLamp]Uses:216 154
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:220
Symbol 220 MovieClip {LogoOIG} [LogoOIG]Uses:219
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClip {RaggedHouse_SimpleDoll1} [simpleDoll1]Uses:221
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClip {RaggedHouse_HallTopLeftWall} [hallTopLeftWall]Uses:223
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClip {RaggedHouse_KidsBottomWall} [kidsBottomWall]Uses:225
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClip {RaggedHouse_BgClip} [BgClip]Uses:227
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClip {RaggedHouse_DrawingTopWall} [drawingTopWall]Uses:229
Symbol 231 Sound {RaggedHouse_RingSound} [ringingSound]
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:234
Symbol 234 MovieClip {LogoCsharks} [LogoCsharks]Uses:233
Symbol 235 GraphicUsed by:236
Symbol 236 MovieClip {RaggedHouse_KitchenBoardRight} [kitchenBoardRight]Uses:235
Symbol 237 Sound {RaggedHouse_ClingSound} [Cling]
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClip {RaggedHouse_KitchenBoardDown} [kitchenBoardDown]Uses:238
Symbol 240 Sound {RaggedHouse_Woosh} [woosh]
Symbol 241 ShapeTweeningUsed by:243
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClip {RaggedHouse_MoonWindow} [moonWindow]Uses:185 241 242
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClip {RaggedHouse_TableLamp} [tableLamp]Uses:244 155
Symbol 246 GraphicUsed by:248 413 454 475
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClip {RaggedHouse_ChairHall} [chairHall]Uses:195 246 247
Symbol 249 GraphicUsed by:251
Symbol 250 TextUses:70Used by:251
Symbol 251 MovieClip {RaggedHouse_FinishAnimation} [dayFinishAnimation]Uses:249 250
Symbol 252 GraphicUsed by:253
Symbol 253 MovieClipUses:252Used by:262
Symbol 254 GraphicUsed by:255
Symbol 255 MovieClipUses:254Used by:262
Symbol 256 GraphicUsed by:257
Symbol 257 MovieClipUses:256Used by:262
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClipUses:258Used by:262
Symbol 260 GraphicUsed by:261
Symbol 261 MovieClipUses:260Used by:262
Symbol 262 MovieClip {RaggedHouse_LevelUpBox} [levelupBox]Uses:106 253 255 257 259 261
Symbol 263 GraphicUsed by:312
Symbol 264 EditableTextUses:70Used by:312
Symbol 265 GraphicUsed by:269 279 290 293 296 308
Symbol 266 GraphicUsed by:269 279 290 293 296 308
Symbol 267 GraphicUsed by:269
Symbol 268 GraphicUsed by:269
Symbol 269 MovieClipUses:265 266 267 268Used by:312
Symbol 270 GraphicUsed by:279 387 389 391 428
Symbol 271 GraphicUsed by:279 428
Symbol 272 GraphicUsed by:279 428
Symbol 273 GraphicUsed by:279 428
Symbol 274 GraphicUsed by:279 428
Symbol 275 GraphicUsed by:279 428
Symbol 276 GraphicUsed by:279 428
Symbol 277 GraphicUsed by:279 428
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:265 266 270 271 272 273 274 195 196 198 275 276 277 278Used by:312
Symbol 280 GraphicUsed by:290 376 381 388 390 393 397
Symbol 281 GraphicUsed by:290 397
Symbol 282 GraphicUsed by:290 397
Symbol 283 GraphicUsed by:290 397
Symbol 284 GraphicUsed by:290 397
Symbol 285 GraphicUsed by:290 397
Symbol 286 GraphicUsed by:290 397
Symbol 287 GraphicUsed by:290 397
Symbol 288 GraphicUsed by:290 397
Symbol 289 GraphicUsed by:290
Symbol 290 MovieClipUses:265 266 280 281 282 283 284 285 286 287 288 289Used by:312
Symbol 291 GraphicUsed by:293
Symbol 292 GraphicUsed by:293
Symbol 293 MovieClipUses:265 266 291 292Used by:312
Symbol 294 GraphicUsed by:296
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClipUses:265 266 294 295Used by:312
Symbol 297 GraphicUsed by:308 488 489
Symbol 298 GraphicUsed by:308 489
Symbol 299 GraphicUsed by:308 488 489
Symbol 300 GraphicUsed by:308 489
Symbol 301 GraphicUsed by:308 489
Symbol 302 GraphicUsed by:308 489
Symbol 303 GraphicUsed by:308 489
Symbol 304 GraphicUsed by:308 489
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClipUses:305Used by:308 489 532
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClipUses:265 266 297 298 299 300 301 302 303 304 306 307Used by:312
Symbol 309 GraphicUsed by:312
Symbol 310 GraphicUsed by:312
Symbol 311 GraphicUsed by:312
Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation]Uses:140 263 264 269 279 290 293 296 308 309 310 311
Symbol 313 GraphicUsed by:331
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:331
Symbol 316 FontUsed by:317 318 319 320 321 322 323 324 325 326 327 328 329 330
Symbol 317 TextUses:316Used by:331
Symbol 318 TextUses:316Used by:331
Symbol 319 TextUses:316Used by:331
Symbol 320 TextUses:316Used by:331
Symbol 321 TextUses:316Used by:331
Symbol 322 TextUses:316Used by:331
Symbol 323 TextUses:316Used by:331
Symbol 324 TextUses:316Used by:331
Symbol 325 TextUses:316Used by:331
Symbol 326 TextUses:316Used by:331
Symbol 327 TextUses:316Used by:331
Symbol 328 TextUses:316Used by:331
Symbol 329 TextUses:316Used by:331
Symbol 330 TextUses:316Used by:331
Symbol 331 Button {ShareThis} [ShareThis]Uses:313 315 317 318 319 320 321 322 323 324 325 326 327 328 329 330
Symbol 332 Sound {RaggedHouse_Click} [ClickSound]
Symbol 333 GraphicUsed by:334 335 336
Symbol 334 MovieClip {com.csharks.juwalbose.utils.ui.SceneManager_ButtonDownClip} [ButtonDownClip]Uses:333
Symbol 335 MovieClip {RaggedHouse_ButtonUpClip} [ButtonUpClip]Uses:333
Symbol 336 MovieClip {com.csharks.juwalbose.utils.ui.SceneManager_ButtonOverClip} [ButtonOverClip]Uses:333
Symbol 337 GraphicUsed by:355
Symbol 338 ShapeTweeningUsed by:353
Symbol 339 ShapeTweeningUsed by:353
Symbol 340 ShapeTweeningUsed by:353
Symbol 341 ShapeTweeningUsed by:353
Symbol 342 ShapeTweeningUsed by:353
Symbol 343 ShapeTweeningUsed by:353
Symbol 344 ShapeTweeningUsed by:353
Symbol 345 ShapeTweeningUsed by:353
Symbol 346 ShapeTweeningUsed by:353
Symbol 347 ShapeTweeningUsed by:353
Symbol 348 ShapeTweeningUsed by:353
Symbol 349 ShapeTweeningUsed by:353
Symbol 350 GraphicUsed by:353
Symbol 351 GraphicUsed by:353
Symbol 352 GraphicUsed by:353
Symbol 353 MovieClipUses:338 339 340 341 342 343 344 345 346 347 348 349 350 351 352Used by:354
Symbol 354 MovieClipUses:353Used by:355 390 391 397 413 422 436 501 504
Symbol 355 MovieClip {com.csharks.vinod.PickupObject_Cloth} [cloth]Uses:337 354
Symbol 356 GraphicUsed by:359
Symbol 357 GraphicUsed by:359
Symbol 358 GraphicUsed by:359
Symbol 359 MovieClip {com.csharks.vinod.Wardrobe_WardrobeClass} [wardrobe]Uses:356 357 358
Symbol 360 GraphicUsed by:362
Symbol 361 GraphicUsed by:362
Symbol 362 MovieClipUses:360 361Used by:368
Symbol 363 GraphicUsed by:368
Symbol 364 GraphicUsed by:366
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClipUses:364 365Used by:368
Symbol 367 GraphicUsed by:368
Symbol 368 MovieClip {com.csharks.vinod.InteractiveCreatorObject_WashingMachine} [washingMachine]Uses:362 363 366 367
Symbol 369 GraphicUsed by:376 381 388 390 393
Symbol 370 GraphicUsed by:376 381 388 390 393
Symbol 371 GraphicUsed by:376 381 388 390 393
Symbol 372 GraphicUsed by:376 381 387 388 389 390 391 393
Symbol 373 GraphicUsed by:376 381 387 388 389 390 391 393
Symbol 374 GraphicUsed by:376 381 388 390 393
Symbol 375 GraphicUsed by:376 381 388 390 393
Symbol 376 MovieClipUses:280 369 370 371 372 373 374 375Used by:394
Symbol 377 GraphicUsed by:381
Symbol 378 GraphicUsed by:381
Symbol 379 GraphicUsed by:380
Symbol 380 MovieClipUses:379Used by:381
Symbol 381 MovieClipUses:280 369 370 371 372 373 374 375 377 378 380Used by:394
Symbol 382 GraphicUsed by:387 389 391
Symbol 383 GraphicUsed by:387 389 391
Symbol 384 GraphicUsed by:387 389 391
Symbol 385 GraphicUsed by:387 389 391
Symbol 386 GraphicUsed by:387 389 391
Symbol 387 MovieClipUses:270 382 383 384 372 373 385 386Used by:394
Symbol 388 MovieClipUses:280 369 370 371 372 373 374 375Used by:394
Symbol 389 MovieClipUses:270 382 383 384 372 373 385 386Used by:394
Symbol 390 MovieClipUses:280 369 370 371 372 373 374 375 354Used by:394
Symbol 391 MovieClipUses:270 354 382 383 384 372 373 385 386Used by:394
Symbol 392 GraphicUsed by:393 422
Symbol 393 MovieClipUses:280 369 370 371 372 373 374 375 392Used by:394
Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player]Uses:376 381 387 388 389 390 391 393
Symbol 395 GraphicUsed by:413
Symbol 396 GraphicUsed by:413
Symbol 397 MovieClipUses:280 281 282 283 284 285 286 287 288 354Used by:413
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:398Used by:413
Symbol 400 ShapeTweeningUsed by:403
Symbol 401 ShapeTweeningUsed by:403
Symbol 402 GraphicUsed by:403 407 411
Symbol 403 MovieClipUses:400 401 402Used by:412 436 531
Symbol 404 ShapeTweeningUsed by:407
Symbol 405 ShapeTweeningUsed by:407
Symbol 406 ShapeTweeningUsed by:407
Symbol 407 MovieClipUses:404 405 406 402Used by:412 436 531
Symbol 408 ShapeTweeningUsed by:411
Symbol 409 ShapeTweeningUsed by:411
Symbol 410 ShapeTweeningUsed by:411
Symbol 411 MovieClipUses:408 409 410 402Used by:412 436 531
Symbol 412 MovieClipUses:403 407 411Used by:413 426 436 439 454 475 501 504
Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather]Uses:195 246 395 396 397 399 354 412
Symbol 414 GraphicUsed by:422
Symbol 415 GraphicUsed by:422
Symbol 416 GraphicUsed by:422
Symbol 417 GraphicUsed by:422
Symbol 418 GraphicUsed by:422
Symbol 419 GraphicUsed by:422
Symbol 420 GraphicUsed by:422
Symbol 421 GraphicUsed by:422
Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone]Uses:414 415 392 416 417 418 419 420 354 421
Symbol 423 GraphicUsed by:426
Symbol 424 GraphicUsed by:426
Symbol 425 GraphicUsed by:426
Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books]Uses:423 424 425 412
Symbol 427 GraphicUsed by:429
Symbol 428 MovieClipUses:270 271 272 273 274 195 196 198 275 276 277Used by:429
Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl]Uses:427 195 196 198 428
Symbol 430 GraphicUsed by:436
Symbol 431 GraphicUsed by:436
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:432Used by:436
Symbol 434 GraphicUsed by:436
Symbol 435 GraphicUsed by:436
Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket]Uses:430 431 433 434 435 403 407 411 354 412
Symbol 437 GraphicUsed by:439
Symbol 438 GraphicUsed by:439
Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl]Uses:192 437 438 412
Symbol 440 GraphicUsed by:454
Symbol 441 GraphicUsed by:454
Symbol 442 GraphicUsed by:451
Symbol 443 GraphicUsed by:451
Symbol 444 GraphicUsed by:451
Symbol 445 GraphicUsed by:451
Symbol 446 GraphicUsed by:451
Symbol 447 GraphicUsed by:451
Symbol 448 GraphicUsed by:451
Symbol 449 GraphicUsed by:451
Symbol 450 GraphicUsed by:451
Symbol 451 MovieClipUses:442 443 444 445 446 447 448 449 450Used by:454
Symbol 452 GraphicUsed by:453
Symbol 453 MovieClipUses:452Used by:454
Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother]Uses:195 246 440 441 451 453 412
Symbol 455 GraphicUsed by:475
Symbol 456 GraphicUsed by:475
Symbol 457 GraphicUsed by:475
Symbol 458 GraphicUsed by:475
Symbol 459 GraphicUsed by:467
Symbol 460 GraphicUsed by:467
Symbol 461 GraphicUsed by:467
Symbol 462 GraphicUsed by:467
Symbol 463 GraphicUsed by:467
Symbol 464 GraphicUsed by:467
Symbol 465 GraphicUsed by:467
Symbol 466 GraphicUsed by:467
Symbol 467 MovieClipUses:459 460 461 462 463 464 465 466Used by:475
Symbol 468 GraphicUsed by:475
Symbol 469 GraphicUsed by:475
Symbol 470 GraphicUsed by:475
Symbol 471 GraphicUsed by:475
Symbol 472 GraphicUsed by:475
Symbol 473 GraphicUsed by:475
Symbol 474 GraphicUsed by:475
Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man]Uses:195 246 455 456 457 458 467 468 469 470 471 472 473 412 474
Symbol 476 GraphicUsed by:479
Symbol 477 GraphicUsed by:479
Symbol 478 GraphicUsed by:479
Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase]Uses:153 476 477 478
Symbol 480 GraphicUsed by:488
Symbol 481 GraphicUsed by:488
Symbol 482 GraphicUsed by:488
Symbol 483 GraphicUsed by:488
Symbol 484 GraphicUsed by:488
Symbol 485 GraphicUsed by:488
Symbol 486 GraphicUsed by:487
Symbol 487 MovieClipUses:486Used by:488 533
Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1]Uses:297 480 299 481 482 483 484 485 487
Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2]Uses:297 298 299 300 301 302 303 304 306
Symbol 490 GraphicUsed by:501
Symbol 491 GraphicUsed by:501 527
Symbol 492 GraphicUsed by:501 527
Symbol 493 GraphicUsed by:501 527
Symbol 494 GraphicUsed by:501 504 527
Symbol 495 GraphicUsed by:501 504 527
Symbol 496 GraphicUsed by:501
Symbol 497 GraphicUsed by:501
Symbol 498 GraphicUsed by:501 504
Symbol 499 GraphicUsed by:501
Symbol 500 GraphicUsed by:501
Symbol 501 MovieClip {com.csharks.vinod.SimpleObject_WashBasin} [washbasin]Uses:490 491 492 493 494 495 496 497 498 499 500 412 354
Symbol 502 GraphicUsed by:504
Symbol 503 GraphicUsed by:504
Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable]Uses:195 196 199 502 197 198 494 495 354 412 503 498
Symbol 505 GraphicUsed by:509
Symbol 506 GraphicUsed by:509
Symbol 507 GraphicUsed by:509
Symbol 508 GraphicUsed by:509
Symbol 509 MovieClip {com.csharks.vinod.SimpleObject_Fridge} [fridge]Uses:505 506 507 508
Symbol 510 GraphicUsed by:512
Symbol 511 GraphicUsed by:512
Symbol 512 MovieClipUses:510 511Used by:527
Symbol 513 GraphicUsed by:527
Symbol 514 ShapeTweeningUsed by:519
Symbol 515 ShapeTweeningUsed by:519
Symbol 516 ShapeTweeningUsed by:519
Symbol 517 ShapeTweeningUsed by:519
Symbol 518 GraphicUsed by:519
Symbol 519 MovieClipUses:514 515 516 517 518Used by:527
Symbol 520 GraphicUsed by:527
Symbol 521 ShapeTweeningUsed by:526
Symbol 522 ShapeTweeningUsed by:526
Symbol 523 ShapeTweeningUsed by:526
Symbol 524 ShapeTweeningUsed by:526
Symbol 525 GraphicUsed by:526
Symbol 526 MovieClipUses:521 522 523 524 525Used by:527
Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove]Uses:512 494 495 491 492 493 513 519 520 526
Symbol 528 Sound {com.csharks.juwalbose.cFlashtory.cFlashtory_Music} [Music]
Symbol 529 Sound {com.csharks.vinod.MusicManager_SceneMusic} [Music2]
Symbol 530 GraphicUsed by:531
Symbol 531 MovieClip {com.csharks.vinod.DroppedObject_WashedCloth} [washedCloth]Uses:530 403 407 411
Symbol 532 MovieClip {com.csharks.vinod.DroppedObject_BallToy} [ballToy]Uses:306
Symbol 533 MovieClip {com.csharks.vinod.DroppedObject_PenguinToy} [penguinToy]Uses:487
Symbol 534 GraphicUsed by:548
Symbol 535 GraphicUsed by:548
Symbol 536 GraphicUsed by:548
Symbol 537 GraphicUsed by:548
Symbol 538 GraphicUsed by:548
Symbol 539 GraphicUsed by:548
Symbol 540 GraphicUsed by:548
Symbol 541 GraphicUsed by:548
Symbol 542 GraphicUsed by:548
Symbol 543 GraphicUsed by:548
Symbol 544 GraphicUsed by:548
Symbol 545 GraphicUsed by:548
Symbol 546 GraphicUsed by:548
Symbol 547 GraphicUsed by:548
Symbol 548 MovieClip {com.csharks.vinod.StopWatch_StopWatchClass} [stopWatch]Uses:534 535 536 537 538 539 540 541 542 543 544 545 546 547
Symbol 549 EditableTextUses:70Used by:550
Symbol 550 MovieClip {com.csharks.vinod.VapourText_TextTemplate} [vapourText]Uses:549

Instance Names

"loaderTxt"Symbol 7 MovieClip Frame 1Symbol 3 EditableText
"logoMask"Symbol 7 MovieClip Frame 1Symbol 6 MovieClip
"loaderBase"Symbol 23 MovieClip {com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_PreloaderClip} [preloaderg2g] Frame 1Symbol 7 MovieClip
"fSitebutton"Symbol 23 MovieClip {com.csharks.juwalbose.cFlashtory.preloaders.PreloaderG2G_PreloaderClip} [preloaderg2g] Frame 1Symbol 10 Button
"node_g4"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_g6"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_g3"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_g1"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_g0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_g5"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_g2"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_p0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_k0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_k1"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_k2"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_k3"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_w0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_h0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_d0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_f0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_f1"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_f2"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_f3"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_f4"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_f5"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_d2"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"node_v0"Symbol 62 MovieClip Frame 1Symbol 61 MovieClip
"games2girls_button"Symbol 84 MovieClip Frame 1Symbol 83 Button
"main_mc"Symbol 85 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip} [Game_mc] Frame 1Symbol 63 MovieClip
"menu_Btn"Symbol 85 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip} [Game_mc] Frame 1Symbol 72 Button
"sound_Mc"Symbol 85 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip} [Game_mc] Frame 1Symbol 76 MovieClip
"help_Btn"Symbol 85 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip} [Game_mc] Frame 1Symbol 79 Button
"g2gLogo_mc"Symbol 85 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameClip} [Game_mc] Frame 1Symbol 84 MovieClip
"g2gLogo_mc"Symbol 99 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameWin} [GameWin_mc] Frame 1Symbol 84 MovieClip
"g2gLogo_mc"Symbol 142 MovieClip {com.csharks.juwalbose.cFlashtory.cFlashtory_GameOver} [GameOver_mc] Frame 1Symbol 84 MovieClip
"label_txt"Symbol 167 MovieClip Frame 1Symbol 166 EditableText
"label_txt"Symbol 169 MovieClip Frame 1Symbol 166 EditableText
"label_txt"Symbol 171 MovieClip Frame 1Symbol 166 EditableText
"label_txt"Symbol 173 MovieClip Frame 1Symbol 166 EditableText
"close_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 1Symbol 158 MovieClip
"buy_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 5Symbol 163 Button
"shoe_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 5Symbol 167 MovieClip
"stove_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 5Symbol 169 MovieClip
"energy_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 5Symbol 171 MovieClip
"machine_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 5Symbol 173 MovieClip
"close2_btn"Symbol 178 MovieClip {RaggedHouse_UpgradeBox} [upgradeBox] Frame 5Symbol 177 Button
"chair_mc"Symbol 201 MovieClip {RaggedHouse_SimpleChair} [simpleChair] Frame 1Symbol 200 MovieClip
"moneyLabel_mc"Symbol 262 MovieClip {RaggedHouse_LevelUpBox} [levelupBox] Frame 1Symbol 253 MovieClip
"successLabel_mc"Symbol 262 MovieClip {RaggedHouse_LevelUpBox} [levelupBox] Frame 1Symbol 255 MovieClip
"failedLabel_mc"Symbol 262 MovieClip {RaggedHouse_LevelUpBox} [levelupBox] Frame 1Symbol 257 MovieClip
"incompleteLabel_mc"Symbol 262 MovieClip {RaggedHouse_LevelUpBox} [levelupBox] Frame 1Symbol 259 MovieClip
"totalLabel_mc"Symbol 262 MovieClip {RaggedHouse_LevelUpBox} [levelupBox] Frame 1Symbol 261 MovieClip
"intro_txt"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 264 EditableText
"fatherIcon_mc"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 269 MovieClip
"motherIcon_mc"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 279 MovieClip
"grandFatherIcon_mc"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 290 MovieClip
"grandMotherIcon_mc"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 293 MovieClip
"boyIcon_mc"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 296 MovieClip
"girlIcon_mc"Symbol 312 MovieClip {RaggedHouse_ReadyAnimation} [readyAnimation] Frame 5Symbol 308 MovieClip
"machine_mc"Symbol 368 MovieClip {com.csharks.vinod.InteractiveCreatorObject_WashingMachine} [washingMachine] Frame 1Symbol 362 MovieClip
"char_mc"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 1Symbol 381 MovieClip
"base_mc"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 1Symbol 512 MovieClip
"text_txt"Symbol 550 MovieClip {com.csharks.vinod.VapourText_TextTemplate} [vapourText] Frame 1Symbol 549 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 23 as "preloaderg2g"
ExportAssets (56)Timeline Frame 2Symbol 51 as "IntroOIG_mc"
ExportAssets (56)Timeline Frame 2Symbol 85 as "Game_mc"
ExportAssets (56)Timeline Frame 2Symbol 99 as "GameWin_mc"
ExportAssets (56)Timeline Frame 2Symbol 104 as "Help_mc"
ExportAssets (56)Timeline Frame 2Symbol 105 as "HelpDisplay_mc"
ExportAssets (56)Timeline Frame 2Symbol 107 as "LevelUp_mc"
ExportAssets (56)Timeline Frame 2Symbol 129 as "IntroCgs_mc"
ExportAssets (56)Timeline Frame 2Symbol 133 as "Menu_mc"
ExportAssets (56)Timeline Frame 2Symbol 142 as "GameOver_mc"
ExportAssets (56)Timeline Frame 2Symbol 143 as "Template"
ExportAssets (56)Timeline Frame 2Symbol 145 as "kitchenTopWall"
ExportAssets (56)Timeline Frame 2Symbol 146 as "sprinkSound"
ExportAssets (56)Timeline Frame 2Symbol 150 as "sofa"
ExportAssets (56)Timeline Frame 2Symbol 152 as "kitchenRightWall"
ExportAssets (56)Timeline Frame 2Symbol 156 as "tableLamp2"
ExportAssets (56)Timeline Frame 2Symbol 178 as "upgradeBox"
ExportAssets (56)Timeline Frame 2Symbol 179 as "splash"
ExportAssets (56)Timeline Frame 2Symbol 181 as "girlBottomWall"
ExportAssets (56)Timeline Frame 2Symbol 183 as "kitchenBoardLeft"
ExportAssets (56)Timeline Frame 2Symbol 191 as "outerWall"
ExportAssets (56)Timeline Frame 2Symbol 194 as "simpleBed"
ExportAssets (56)Timeline Frame 2Symbol 201 as "simpleChair"
ExportAssets (56)Timeline Frame 2Symbol 203 as "leftWall"
ExportAssets (56)Timeline Frame 2Symbol 204 as "washing"
ExportAssets (56)Timeline Frame 2Symbol 207 as "pauseScreen"
ExportAssets (56)Timeline Frame 2Symbol 208 as "defaultClick"
ExportAssets (56)Timeline Frame 2Symbol 215 as "overWall"
ExportAssets (56)Timeline Frame 2Symbol 217 as "studyLamp"
ExportAssets (56)Timeline Frame 2Symbol 220 as "LogoOIG"
ExportAssets (56)Timeline Frame 2Symbol 222 as "simpleDoll1"
ExportAssets (56)Timeline Frame 2Symbol 224 as "hallTopLeftWall"
ExportAssets (56)Timeline Frame 2Symbol 226 as "kidsBottomWall"
ExportAssets (56)Timeline Frame 2Symbol 228 as "BgClip"
ExportAssets (56)Timeline Frame 2Symbol 230 as "drawingTopWall"
ExportAssets (56)Timeline Frame 2Symbol 231 as "ringingSound"
ExportAssets (56)Timeline Frame 2Symbol 234 as "LogoCsharks"
ExportAssets (56)Timeline Frame 2Symbol 236 as "kitchenBoardRight"
ExportAssets (56)Timeline Frame 2Symbol 237 as "Cling"
ExportAssets (56)Timeline Frame 2Symbol 239 as "kitchenBoardDown"
ExportAssets (56)Timeline Frame 2Symbol 240 as "woosh"
ExportAssets (56)Timeline Frame 2Symbol 243 as "moonWindow"
ExportAssets (56)Timeline Frame 2Symbol 245 as "tableLamp"
ExportAssets (56)Timeline Frame 2Symbol 248 as "chairHall"
ExportAssets (56)Timeline Frame 2Symbol 251 as "dayFinishAnimation"
ExportAssets (56)Timeline Frame 2Symbol 262 as "levelupBox"
ExportAssets (56)Timeline Frame 2Symbol 312 as "readyAnimation"
ExportAssets (56)Timeline Frame 2Symbol 331 as "ShareThis"
ExportAssets (56)Timeline Frame 2Symbol 332 as "ClickSound"
ExportAssets (56)Timeline Frame 2Symbol 334 as "ButtonDownClip"
ExportAssets (56)Timeline Frame 2Symbol 335 as "ButtonUpClip"
ExportAssets (56)Timeline Frame 2Symbol 336 as "ButtonOverClip"
ExportAssets (56)Timeline Frame 2Symbol 355 as "cloth"
ExportAssets (56)Timeline Frame 2Symbol 359 as "wardrobe"
ExportAssets (56)Timeline Frame 2Symbol 368 as "washingMachine"
ExportAssets (56)Timeline Frame 2Symbol 394 as "player"
ExportAssets (56)Timeline Frame 2Symbol 413 as "grandFather"
ExportAssets (56)Timeline Frame 2Symbol 422 as "telephone"
ExportAssets (56)Timeline Frame 2Symbol 426 as "books"
ExportAssets (56)Timeline Frame 2Symbol 429 as "mirrorGirl"
ExportAssets (56)Timeline Frame 2Symbol 436 as "bucket"
ExportAssets (56)Timeline Frame 2Symbol 439 as "bedGirl"
ExportAssets (56)Timeline Frame 2Symbol 454 as "grandMother"
ExportAssets (56)Timeline Frame 2Symbol 475 as "man"
ExportAssets (56)Timeline Frame 2Symbol 479 as "flowerVase"
ExportAssets (56)Timeline Frame 2Symbol 488 as "kid1"
ExportAssets (56)Timeline Frame 2Symbol 489 as "kid2"
ExportAssets (56)Timeline Frame 2Symbol 501 as "washbasin"
ExportAssets (56)Timeline Frame 2Symbol 504 as "diningTable"
ExportAssets (56)Timeline Frame 2Symbol 509 as "fridge"
ExportAssets (56)Timeline Frame 2Symbol 527 as "stove"
ExportAssets (56)Timeline Frame 2Symbol 528 as "Music"
ExportAssets (56)Timeline Frame 2Symbol 529 as "Music2"
ExportAssets (56)Timeline Frame 2Symbol 531 as "washedCloth"
ExportAssets (56)Timeline Frame 2Symbol 532 as "ballToy"
ExportAssets (56)Timeline Frame 2Symbol 533 as "penguinToy"
ExportAssets (56)Timeline Frame 2Symbol 548 as "stopWatch"
ExportAssets (56)Timeline Frame 2Symbol 550 as "vapourText"
SerialNumber (41)Timeline Frame 1

Labels

"com_csharks_juwalbose_cFlashtory_preloaders_PreloaderG2G"Frame 1
"RaggedHouse"Frame 2
"idle"Symbol 355 MovieClip {com.csharks.vinod.PickupObject_Cloth} [cloth] Frame 1
"absent"Symbol 355 MovieClip {com.csharks.vinod.PickupObject_Cloth} [cloth] Frame 2
"used"Symbol 355 MovieClip {com.csharks.vinod.PickupObject_Cloth} [cloth] Frame 3
"idle"Symbol 359 MovieClip {com.csharks.vinod.Wardrobe_WardrobeClass} [wardrobe] Frame 1
"emptyOpen"Symbol 359 MovieClip {com.csharks.vinod.Wardrobe_WardrobeClass} [wardrobe] Frame 2
"clothesOpen"Symbol 359 MovieClip {com.csharks.vinod.Wardrobe_WardrobeClass} [wardrobe] Frame 3
"closed"Symbol 359 MovieClip {com.csharks.vinod.Wardrobe_WardrobeClass} [wardrobe] Frame 4
"old"Symbol 362 MovieClip Frame 1
"new"Symbol 362 MovieClip Frame 2
"idle"Symbol 368 MovieClip {com.csharks.vinod.InteractiveCreatorObject_WashingMachine} [washingMachine] Frame 1
"work"Symbol 368 MovieClip {com.csharks.vinod.InteractiveCreatorObject_WashingMachine} [washingMachine] Frame 2
"workRepeat"Symbol 368 MovieClip {com.csharks.vinod.InteractiveCreatorObject_WashingMachine} [washingMachine] Frame 6
"finished"Symbol 368 MovieClip {com.csharks.vinod.InteractiveCreatorObject_WashingMachine} [washingMachine] Frame 7
"standLeft"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 1
"standDown"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 2
"standRight"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 3
"standUp"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 4
"walkDown"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 5
"walkLeft"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 6
"walkRight"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 7
"walkUp"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 8
"doDown"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 9
"doLeft"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 10
"doUp"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 11
"doRight"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 12
"usePhone"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 13
"sleep"Symbol 394 MovieClip {com.csharks.vinod.Player_PlayerClip} [player] Frame 14
"idle"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 1
"pre-messed"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 2
"messed"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 3
"messedRepeat"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 4
"clearing"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 5
"clearingRepeat"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 6
"finished"Symbol 413 MovieClip {com.csharks.vinod.InteractiveObject_GrandFather} [grandFather] Frame 7
"idle"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 1
"pre-messed"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 2
"messed"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 3
"messedRepeat"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 10
"clearing"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 11
"clearingRepeat"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 12
"finished"Symbol 422 MovieClip {com.csharks.vinod.InteractiveObject_TelephoneClass} [telephone] Frame 13
"idle"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 1
"pre-messed"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 2
"messed"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 3
"messedRepeat"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 4
"clearing"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 5
"clearingRepeat"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 6
"finished"Symbol 426 MovieClip {com.csharks.vinod.InteractiveObject_Books} [books] Frame 7
"idle"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 1
"pre-messed"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 2
"messed"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 3
"messedRepeat"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 4
"clearing"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 5
"clearingRepeat"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 6
"finished"Symbol 429 MovieClip {com.csharks.vinod.InteractiveObject_MirrorGirl} [mirrorGirl] Frame 7
"idle"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 1
"pre-messed"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 2
"messed"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 3
"messedRepeat"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 4
"clearing"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 5
"clearingRepeat"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 6
"finished"Symbol 436 MovieClip {com.csharks.vinod.InteractiveObject_Bucket} [bucket] Frame 7
"idle"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 1
"pre-messed"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 2
"messed"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 3
"messedRepeat"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 5
"clearing"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 6
"clearingRepeat"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 7
"finished"Symbol 439 MovieClip {com.csharks.vinod.InteractiveObject_BedGirl} [bedGirl] Frame 8
"idle"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 1
"pre-messed"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 2
"messed"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 3
"messedRepeat"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 4
"clearing"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 5
"cleaningRepeat"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 6
"finished"Symbol 454 MovieClip {com.csharks.vinod.InteractiveObject_GrandMother} [grandMother] Frame 7
"idle"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 1
"pre-messed"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 2
"messed"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 3
"messedRepeat"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 4
"clearing"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 5
"clearingRepeat"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 6
"finished"Symbol 475 MovieClip {com.csharks.vinod.InteractiveObject_Man} [man] Frame 7
"idle"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 1
"pre-messed"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 2
"messed"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 3
"messedRepeat"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 4
"clearing"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 5
"clearingRepeat"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 6
"finished"Symbol 479 MovieClip {com.csharks.vinod.InteractiveObject_FlowerVase} [flowerVase] Frame 7
"work"Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1] Frame 1
"workRepeat"Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1] Frame 19
"create"Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1] Frame 20
"created"Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1] Frame 25
"idle"Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1] Frame 26
"absent"Symbol 488 MovieClip {com.csharks.vinod.CreatorObject_Kid1} [kid1] Frame 27
"work"Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2] Frame 1
"workRepeat"Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2] Frame 25
"create"Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2] Frame 26
"created"Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2] Frame 37
"idle"Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2] Frame 38
"absent"Symbol 489 MovieClip {com.csharks.vinod.CreatorObject_Kid2} [kid2] Frame 39
"idle"Symbol 501 MovieClip {com.csharks.vinod.SimpleObject_WashBasin} [washbasin] Frame 1
"noVessel"Symbol 501 MovieClip {com.csharks.vinod.SimpleObject_WashBasin} [washbasin] Frame 2
"beforeWash"Symbol 501 MovieClip {com.csharks.vinod.SimpleObject_WashBasin} [washbasin] Frame 3
"afterWash"Symbol 501 MovieClip {com.csharks.vinod.SimpleObject_WashBasin} [washbasin] Frame 4
"idle"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 1
"plate"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 2
"platesOn"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 13
"food"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 14
"foodsOn"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 26
"eaten"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 27
"eatingFinished"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 36
"finished"Symbol 504 MovieClip {com.csharks.vinod.SimpleObject_DiningTable} [diningTable] Frame 37
"idle"Symbol 509 MovieClip {com.csharks.vinod.SimpleObject_Fridge} [fridge] Frame 1
"opened"Symbol 509 MovieClip {com.csharks.vinod.SimpleObject_Fridge} [fridge] Frame 2
"old"Symbol 512 MovieClip Frame 1
"new"Symbol 512 MovieClip Frame 2
"idle"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 1
"emptyVessel"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 2
"cookingStarted"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 3
"cooking"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 7
"cooked"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 8
"foodReady"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 12
"ready"Symbol 527 MovieClip {com.csharks.vinod.SimpleObject_Stove} [stove] Frame 13
"idle"Symbol 531 MovieClip {com.csharks.vinod.DroppedObject_WashedCloth} [washedCloth] Frame 1
"wrongState"Symbol 531 MovieClip {com.csharks.vinod.DroppedObject_WashedCloth} [washedCloth] Frame 2
"wrongState"Symbol 532 MovieClip {com.csharks.vinod.DroppedObject_BallToy} [ballToy] Frame 1
"idle"Symbol 532 MovieClip {com.csharks.vinod.DroppedObject_BallToy} [ballToy] Frame 2
"absent"Symbol 532 MovieClip {com.csharks.vinod.DroppedObject_BallToy} [ballToy] Frame 3
"wrongState"Symbol 533 MovieClip {com.csharks.vinod.DroppedObject_PenguinToy} [penguinToy] Frame 1
"idle"Symbol 533 MovieClip {com.csharks.vinod.DroppedObject_PenguinToy} [penguinToy] Frame 2
"absent"Symbol 533 MovieClip {com.csharks.vinod.DroppedObject_PenguinToy} [penguinToy] Frame 3




http://swfchan.com/24/119422/info.shtml
Created: 5/3 -2019 21:24:18 Last modified: 5/3 -2019 21:24:18 Server time: 02/05 -2024 19:00:46