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

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

test_tomalo_literalmente.swf

This is the info page for
Flash #111272

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


Text
This site does not support this game.
Please visit King.com to play.

<p align="center"><font face="Georgia" size="19" color="#666666" letterSpacing="0.000000" kerning="1"><b>&quot;Agree and Start&quot;</b></font></p>

<p align="center"><font face="Georgia" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">To remove</font></p>

<p align="center"><font face="Georgia" size="13" color="#939393" letterSpacing="0.000000" kerning="1">Click to continue</font></p>

<p align="center"><font face="Georgia" size="59" color="#999999" letterSpacing="0.000000" kerning="1"><i>&quot;Completed&quot;</i></font></p>

<p align="center"><font face="Georgia" size="23" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>hit spacebar 10 times</b></font></p>

CLICK

<p align="center"></p>

<p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">You found a secret place!</font></p><p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">Now &nbsp;back to your previous website!</font></p><p align="center"></p>

Safezone

<p align="center"><font face="Georgia" size="2" color="#666666" letterSpacing="0.000000" kerning="1">Hit spacebar 10 times and the enter key 10 times</font></p>

Type this password: xcvbn

<p align="center"></p>

azertyuiopqsdfghjklmwxcvbnazertyuiopqsdfghjklmwxcvbn
azertyuiopqsdfghjklClickTwentyTimesdfghjklmwxcvbn
azertyuiopqsdfghjklmwxcvbnazertyuiopqsdfghjklmwxcvbn

<p align="center"></p>

<p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">Keep pressing</font></p>

<p align="center"><font face="Georgia" size="14" color="#666666" letterSpacing="0.000000" kerning="1">Find and enter the password here:</font></p>

<p align="center"></p>

<p align="center"><font face="Georgia" size="14" color="#666666" letterSpacing="0.000000" kerning="1">Look over there</font></p>

<p align="center"><font face="Georgia" size="11" color="#666666" letterSpacing="0.000000" kerning="1">NO NEED TO POST ANY COMMENTS TO SOLVE PUZZLES</font></p>

<p align="center"></p>

<p align="center"><font face="Georgia" size="3" color="#666666" letterSpacing="0.000000" kerning="1"><b>Not on this clipboard</b></font></p>

<p align="center"><font face="Georgia" size="76" color="#999999" letterSpacing="0.000000" kerning="1"><b>OPEN</b></font></p>

<p align="center"><font face="Georgia" size="76" color="#999999" letterSpacing="0.000000" kerning="1"><b>CLOSED</b></font></p>

<p align="center"></p>

<p align="center"><font face="Georgia" size="76" color="#cccccc" letterSpacing="0.000000" kerning="1"><b>BOnjour</b></font></p>

<p align="center"></p>

<p align="center"></p>

Nothing here ;)

<p align="center"><font face="Georgia" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">Don&apos;t touch</font></p>

<p align="center"></p>

<p align="center"><font face="Georgia" size="21" color="#999999" letterSpacing="0.000000" kerning="1">Congratulations for finishing</font></p><p align="center"><font face="Georgia" size="21" color="#999999" letterSpacing="0.000000" kerning="1">Take Something literally</font></p>

<p align="center"><font face="Georgia" size="16" color="#999999" letterSpacing="0.000000" kerning="1">Thanks for playing!</font></p>

<p align="center"><font face="Georgia" size="28" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>25</b></font></p>

<p align="center"><font face="Georgia" size="25" color="#666666" letterSpacing="0.000000" kerning="1">:: LOADING ::</font></p>

<p align="center"><font face="Georgia" size="43" color="#666666" letterSpacing="0.000000" kerning="1"><i>Take something literally</i></font></p>

Take something literally ©2009 Benoit Freslon

<p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">Puzzles are challenging if you don&apos;t take the hints literally. Just think outside the box.</font></p><p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">The game saves your current progression.</font></p><p align="center"></p><p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">Please don&apos;t give any spoilers to</font></p><p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">other players.</font></p><p align="center"></p><p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1">NB: If you need some help, please go to the forum</font></p><p align="center"></p>

<p align="center"><font face="Georgia" size="11" color="#666666" letterSpacing="0.000000" kerning="1"><b>RULES:</b></font></p>

v1.6

<p align="center"><font face="Georgia" size="16" color="#666666" letterSpacing="0.000000" kerning="1"><b>Take the hints literally</b></font></p>

<p align="center"><font face="Georgia" size="16" color="#999999" letterSpacing="0.000000" kerning="1"><b>Take the hints literally</b></font></p>

<p align="center"><font face="Georgia" size="11" color="#666666" letterSpacing="0.000000" kerning="1"><a href="http://www.thisisgameplay.com" target = "_blank"><i>Take something literally </i></a><a href="http://www.thisisgameplay.com" target = "_blank">©2009 Benoit Freslon</a></font></p>

<p align="center"><font face="Georgia" size="24" color="#666666" letterSpacing="0.000000" kerning="1">Ce jeu est ouf</font></p>

<p align="center"><font face="Georgia" size="10" color="#666666" letterSpacing="0.000000" kerning="1">Info: you can solve all puzzle without additional hardware</font></p>

<p align="center"><font face="Georgia" size="12" color="#666666" letterSpacing="0.000000" kerning="1"><b>I fyou can read that, &nbsp;you need to &nbsp;go back to &nbsp;the main website</b></font></p>

<p align="center"><font face="Georgia" size="43" color="#f4f4f4" letterSpacing="0.000000" kerning="1"><i>Take something literally</i></font></p>

<p align="center"><font face="Georgia" size="19" color="#666666" letterSpacing="0.000000" kerning="1"><b>Zoom in:</b></font></p>

ActionScript [AS3]

Section 1
//Particles (com.fx.Particles) package com.fx { import flash.display.*; import flash.events.*; public class Particles extends Sprite { public var slowDown:Number;// = 1 public var particle:Class; public var velocityMax:Number;// = 10 public var activated:Boolean;// = false public var angle:Number;// = 360 private var time:Number;// = 0 public var gravity:Number;// = 0.1 public var direction:Number;// = 0 public var frequency:uint;// = 1 public var rotationSpeed:Number;// = 0 public var nbPerFrame:uint;// = 1 public var lifeTime:uint;// = 1000 public var totalTime:uint;// = 0 public var fadeOut:Number;// = 1 public var randomize:Number;// = 0.5 public static var paused:Boolean = false; public static var speed:Number = 1; public function Particles(_arg1:Class=null):void{ particle = _arg1; addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function stop():void{ activated = false; removeEventListener(Event.ENTER_FRAME, enterFrame); } public function start():void{ addEventListener(Event.ENTER_FRAME, enterFrame); activated = true; reset(); } public function init(_arg1:Class):void{ particle = _arg1; } public function reset():void{ while (numChildren) { removeChildAt(0); }; time = 0; activated = false; } private function removedParticle(_arg1:Event):void{ _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, moveParticle); _arg1.currentTarget.removeEventListener(Event.REMOVED_FROM_STAGE, removedParticle); } private function removed(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, enterFrame); removeEventListener(Event.REMOVED_FROM_STAGE, removed); } private function enterFrame(_arg1:Event):void{ var _local2:int; var _local3:*; var _local4:Number; if (paused){ return; }; if ((time % frequency) == 0){ _local2 = 0; while (_local2 < nbPerFrame) { _local3 = new particle(); _local3.addEventListener(Event.ENTER_FRAME, moveParticle); _local3.addEventListener(Event.REMOVED_FROM_STAGE, removedParticle); _local3.velocity = ((velocityMax * (1 - randomize)) + ((Math.random() * velocityMax) * randomize)); _local3.time = 0; _local4 = ((direction - (angle / 2)) + (Math.random() * angle)); _local3.vectorX = Math.cos(((_local4 * Math.PI) / 180)); _local3.vectorY = Math.sin(((_local4 * Math.PI) / 180)); _local3.rotationSpeed = (Math.random() * rotationSpeed); if (rotationSpeed > 0){ _local3.rotation = (Math.random() * 360); }; addChild(_local3); _local2++; }; }; time = (time + (1 * Particles.speed)); if ((((time >= ((totalTime / 1000) * stage.frameRate))) && (!((totalTime == 0))))){ removeEventListener(Event.ENTER_FRAME, enterFrame); }; } private function moveParticle(_arg1:Event):void{ if (paused){ return; }; var _local2:* = _arg1.currentTarget; _local2.x = (_local2.x + ((_local2.velocity * _local2.vectorX) * Particles.speed)); _local2.y = (_local2.y + ((_local2.velocity * _local2.vectorY) * Particles.speed)); _local2.alpha = (_local2.alpha * (fadeOut * Particles.speed)); _local2.velocity = (_local2.velocity * (slowDown * Particles.speed)); if (_local2.time >= ((lifeTime / 1000) * stage.frameRate)){ removeChild(_local2); }; _local2.vectorY = (_local2.vectorY + (gravity * Particles.speed)); _local2.time = (_local2.time + (1 * Particles.speed)); _local2.rotation = (_local2.rotation + (rotationSpeed * Particles.speed)); } } }//package com.fx
Section 2
//Candle (com.games.Candle) package com.games { import flash.display.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import flash.media.*; import com.fx.*; import flash.system.*; public class Candle extends MyMovieClip { private const DECREASE:Number = 1; private var power:Number;// = 0 private var noMic:Boolean;// = false private var mic:Microphone; private var string:String;// = "" public var flame:MovieClip; public var txtError:TextField; private var main:Main; public var candleBase:MovieClip; public function Candle():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ var pMain = _arg1; main = pMain; try { mic = Microphone.getMicrophone(); } catch(e) { }; if (mic != null){ mic.setLoopBack(true); if (!mic.muted){ mic.setLoopBack(true); mic.setUseEchoSuppression(true); mic.addEventListener(ActivityEvent.ACTIVITY, activityHandler); mic.addEventListener(StatusEvent.STATUS, statusHandler); } else { txtError.text = "Active and unmute all your accessories then restart the level."; Security.showSettings(SecurityPanel.PRIVACY); }; } else { noMic = true; }; addEventListener(Event.ENTER_FRAME, enterFrame); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function stopGame():void{ removeEventListener(Event.ENTER_FRAME, enterFrame); if (mic){ mic.removeEventListener(ActivityEvent.ACTIVITY, activityHandler); mic.removeEventListener(StatusEvent.STATUS, statusHandler); mic.setLoopBack(false); mic = null; }; flame.stop(); stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + String(_arg1.keyCode)); if (string.split("66767987").length == 2){ flame.gotoAndStop("dead"); win(); }; } private function win():void{ var _local1:Particles = new Particles(ParticleSmoke); _local1.direction = -90; _local1.angle = 60; _local1.gravity = 0; _local1.velocityMax = 1; _local1.randomize = 0.5; _local1.frequency = 10; _local1.lifeTime = 2000; _local1.fadeOut = 0.99; candleBase.addChild(_local1); _local1.start(); main.gameCompleted(); stopGame(); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function enterFrame(_arg1:Event):void{ if (!mic){ flame.stop(); return; }; if (mic.muted){ }; if (mic.activityLevel > 0){ power = (power + (mic.activityLevel / 50)); power = (power - DECREASE); power = MyMath.threshold(power, 0, 100); }; if (power >= 100){ win(); flame.gotoAndStop("dead"); return; }; flame.gotoAndStop(Math.round(power)); } private function activityHandler(_arg1:ActivityEvent):void{ } private function statusHandler(_arg1:StatusEvent):void{ } } }//package com.games
Section 3
//CircleMe (com.games.CircleMe) package com.games { import fl.controls.*; import flash.display.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class CircleMe extends MyMovieClip { private var main:Main; private var corner1:Boolean;// = false private var corner3:Boolean;// = false private var cFill:Sprite; private var angle:Number;// = 0 public var pen:MovieClip; private var pressed:Boolean;// = false public var btStart:Button; public var txtKeepPressing:TextField; private var corner2:Boolean;// = false private var corner4:Boolean;// = false public function CircleMe():void{ cFill = new Sprite(); super(); addEventListener(Event.REMOVED_FROM_STAGE, removed); txtKeepPressing.text = Language["keepPressing"]; __setProp_btStart_CircleMe_Calque3_0(); } function __setProp_btStart_CircleMe_Calque3_0(){ try { btStart["componentInspectorSetting"] = true; } catch(e:Error) { }; btStart.emphasized = false; btStart.enabled = true; btStart.label = "Start"; btStart.labelPlacement = "right"; btStart.selected = false; btStart.toggle = false; btStart.visible = true; try { btStart["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function reset(_arg1:MouseEvent):void{ main.gameover(); cFill.graphics.clear(); stopGame(); } public function init(_arg1:Main):void{ main = _arg1; btStart.addEventListener(MouseEvent.MOUSE_DOWN, start); btStart.label = Language["start"]; addEventListener(Event.ENTER_FRAME, enterFrame); addChild(cFill); } private function stopGame():void{ btStart.removeEventListener(MouseEvent.MOUSE_DOWN, start); stage.removeEventListener(MouseEvent.MOUSE_UP, reset); removeEventListener(Event.ENTER_FRAME, enterFrame); } private function win():void{ main.gameCompleted(); stopGame(); } private function removed(_arg1:Event):void{ stopGame(); removeEventListener(Event.REMOVED_FROM_STAGE, removed); } private function start(_arg1:MouseEvent):void{ btStart.visible = false; stage.addEventListener(MouseEvent.MOUSE_UP, reset); pressed = true; cFill.graphics.lineStyle(5, 0x999999, 1, false, "normal", "round"); cFill.graphics.moveTo(mouseX, mouseY); } private function enterFrame(_arg1:Event):void{ if (pressed){ pen.x = mouseX; pen.y = mouseY; cFill.graphics.lineTo(mouseX, mouseY); if ((((mouseX < 0)) && ((mouseY < 0)))){ corner1 = true; }; if ((((mouseX < 0)) && ((mouseY > 400)))){ corner2 = true; }; if ((((mouseX > 550)) && ((mouseY < 0)))){ corner3 = true; }; if ((((mouseX > 550)) && ((mouseY > 400)))){ corner4 = true; }; if (((((((corner1) && (corner2))) && (corner3))) && (corner4))){ win(); }; }; addChild(pen); } } }//package com.games
Section 4
//Coordinates (com.games.Coordinates) package com.games { import flash.display.*; import flash.events.*; import com.*; import com.my.*; public class Coordinates extends MyMovieClip { private var main:Main; public var bt1:MovieClip; public var bt2:MovieClip; public var bt3:MovieClip; public var bt4:MovieClip; private var clicked1:Boolean;// = false private var clicked3:Boolean;// = false private var clicked4:Boolean;// = false private var clicked2:Boolean;// = false public function Coordinates():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function testWin():void{ if (((((((clicked1) && (clicked2))) && (clicked3))) && (clicked4))){ win(); }; } public function init(_arg1:Main):void{ main = _arg1; bt1.addEventListener(MouseEvent.CLICK, click1); bt2.addEventListener(MouseEvent.CLICK, click2); bt3.addEventListener(MouseEvent.CLICK, click3); bt4.addEventListener(MouseEvent.CLICK, click4); bt1.buttonMode = true; bt2.buttonMode = true; bt3.buttonMode = true; bt4.buttonMode = true; } private function stopGame():void{ bt1.removeEventListener(MouseEvent.CLICK, click1); bt2.removeEventListener(MouseEvent.CLICK, click2); bt3.removeEventListener(MouseEvent.CLICK, click3); bt4.removeEventListener(MouseEvent.CLICK, click4); } private function win():void{ main.gameCompleted(); stopGame(); } private function removed(_arg1:Event):void{ stopGame(); removeEventListener(Event.REMOVED_FROM_STAGE, removed); } private function click1(_arg1:MouseEvent):void{ clicked1 = true; testWin(); } private function click3(_arg1:MouseEvent):void{ clicked3 = true; testWin(); } private function click2(_arg1:MouseEvent):void{ clicked2 = true; testWin(); } private function click4(_arg1:MouseEvent):void{ clicked4 = true; testWin(); } } }//package com.games
Section 5
//DejaVu (com.games.DejaVu) package com.games { import flash.events.*; import com.*; import com.my.*; public class DejaVu extends MyMovieClip { private var main:Main; public function DejaVu():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ main = _arg1; } private function stopGame():void{ } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 6
//Dodge (com.games.Dodge) package com.games { import fl.controls.*; import flash.display.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class Dodge extends MyMovieClip { public var btPush:Button; public var btStart:Button; var hit:int;// = 0 public var fire:MovieClip; private var main:Main; public var txtDontTouch:TextField; public function Dodge():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); btPush.label = Language["push"]; btStart.label = Language["start"]; txtDontTouch.text = Language["dontTouch"]; __setProp_btPush_Dodge_Calque1_0(); __setProp_btStart_Dodge_Calque1_0(); } private function start(_arg1:MouseEvent):void{ btPush.visible = true; btStart.visible = false; btPush.addEventListener(MouseEvent.CLICK, win); addEventListener(Event.ENTER_FRAME, enterFrame); } private function win(_arg1=null):void{ main.gameCompleted(); stopGame(); } function __setProp_btStart_Dodge_Calque1_0(){ try { btStart["componentInspectorSetting"] = true; } catch(e:Error) { }; btStart.emphasized = false; btStart.enabled = true; btStart.label = "Start"; btStart.labelPlacement = "right"; btStart.selected = false; btStart.toggle = false; btStart.visible = true; try { btStart["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } function __setProp_btPush_Dodge_Calque1_0(){ try { btPush["componentInspectorSetting"] = true; } catch(e:Error) { }; btPush.emphasized = false; btPush.enabled = true; btPush.label = "Push"; btPush.labelPlacement = "right"; btPush.selected = false; btPush.toggle = false; btPush.visible = true; try { btPush["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function stopGame():void{ btPush.removeEventListener(MouseEvent.CLICK, win); btStart.removeEventListener(MouseEvent.CLICK, start); removeEventListener(Event.ENTER_FRAME, enterFrame); } private function enterFrame(_arg1:Event):void{ if (fire.hitTestPoint(mouseX, mouseY, true)){ main.gameover(); stopGame(); }; } public function init(_arg1:Main):void{ main = _arg1; btPush.visible = false; btStart.addEventListener(MouseEvent.CLICK, start); } } }//package com.games
Section 7
//DontThrust (com.games.DontThrust) package com.games { import fl.controls.*; import flash.events.*; import com.*; import com.my.*; import com.fx.*; import flash.ui.*; public class DontThrust extends MyMovieClip { private var main:Main; public var btStart:Button; var hit:int;// = 0 public var cursor:Cursor; public var bt:Button; public var cursor2:Cursor; public function DontThrust():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); __setProp_bt_DontThrust_Calque2_0(); __setProp_btStart_DontThrust_Calque2_0(); } private function start(_arg1:MouseEvent):void{ Mouse.hide(); bt.visible = true; btStart.visible = false; cursor.x = mouseX; cursor.y = mouseY; cursor.addEventListener(Event.ENTER_FRAME, enterFrame); bt.addEventListener(MouseEvent.CLICK, click); stage.addEventListener(MouseEvent.CLICK, stageClick); } private function win():void{ main.gameCompleted(); stopGame(); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function stageClick(_arg1:MouseEvent):void{ if (((!((_arg1.target == bt))) && (!((hit == 0))))){ main.gameover(); stopGame(); }; hit++; } function __setProp_bt_DontThrust_Calque2_0(){ try { bt["componentInspectorSetting"] = true; } catch(e:Error) { }; bt.emphasized = false; bt.enabled = true; bt.label = ":)"; bt.labelPlacement = "right"; bt.selected = false; bt.toggle = false; bt.visible = true; try { bt["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function click(_arg1:MouseEvent):void{ win(); } private function stopGame():void{ cursor.visible = false; btStart.removeEventListener(MouseEvent.CLICK, start); bt.removeEventListener(MouseEvent.CLICK, click); stage.removeEventListener(MouseEvent.CLICK, stageClick); cursor.removeEventListener(Event.ENTER_FRAME, enterFrame); } private function enterFrame(_arg1:Event):void{ var _local2:Number = Math.atan2((mouseY - bt.y), (mouseX - bt.x)); var _local3 = 125; var _local4:Number = MyMath.pythagore((mouseX - bt.x), (mouseY - bt.y)); if (_local4 < _local3){ _local4 = MyMath.pythagore((cursor.x - bt.x), (cursor.y - bt.y)); if (_local4 < 200){ cursor.x = (cursor.x + ((Math.cos(_local2) * _local4) / 50)); cursor.y = (cursor.y + ((Math.sin(_local2) * _local4) / 50)); } else { cursor.x = (cursor.x + ((mouseX - cursor.x) / 50)); cursor.y = (cursor.y + ((mouseY - cursor.y) / 50)); }; } else { _local4 = MyMath.pythagore((mouseX - cursor.x), (mouseY - cursor.y)); if (_local4 > 50){ cursor.x = (cursor.x + ((mouseX - cursor.x) / 10)); cursor.y = (cursor.y + ((mouseY - cursor.y) / 10)); } else { cursor.x = mouseX; cursor.y = mouseY; }; cursor2.x = cursor.x; cursor2.y = cursor.y; cursor2.visible = false; }; } public function init(_arg1:Main):void{ main = _arg1; btStart.addEventListener(MouseEvent.CLICK, start); btStart.label = Language["start"]; bt.visible = false; } function __setProp_btStart_DontThrust_Calque2_0(){ try { btStart["componentInspectorSetting"] = true; } catch(e:Error) { }; btStart.emphasized = false; btStart.enabled = true; btStart.label = "Start"; btStart.labelPlacement = "right"; btStart.selected = false; btStart.toggle = false; btStart.visible = true; try { btStart["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package com.games
Section 8
//First (com.games.First) package com.games { import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class First extends MyMovieClip { public var txtSpam:TextField; public var txtLookOverThere:TextField; public var txtFindAndEnter:TextField; private var string:String;// = "" private var main:Main; public function First():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); txtFindAndEnter.text = Language["findAndEnter"]; txtSpam.text = Language["dontSpam"]; txtLookOverThere.text = Language["lookOverThere"]; } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + String(_arg1.keyCode)); if ((((string.split("787367693271657769").length == 2)) || ((string.split("7873676971657769").length == 2)))){ win(); }; } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 9
//FullyLoaded (com.games.FullyLoaded) package com.games { import flash.display.*; import flash.events.*; import com.*; import com.my.*; import com.fx.*; public class FullyLoaded extends MyMovieClip { private var loaded:int;// = 1 public var battery:MovieClip; private var main:Main; public function FullyLoaded():void{ addFrameScript(0, frame1); addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ stopGame(); removeEventListener(Event.REMOVED_FROM_STAGE, removed); } private function enterFrame(_arg1:Event):void{ var _local2:Date = new Date(); main.so.data.fullyLoadedDate = _local2.getTime(); main.so.flush(); } function frame1(){ } public function init(_arg1:Main):void{ var _local3:Number; main = _arg1; var _local2:Date = new Date(); battery.stop(); if (main.so.data.fullyLoadedDate){ _local3 = (_local2.getTime() - main.so.data.fullyLoadedDate); loaded = main.so.data.fullyLoaded; if (_local3 < 35000){ loaded++; if (loaded == 4){ win(); }; } else { loaded--; if (loaded <= 1){ loaded = 1; }; }; battery.gotoAndStop((loaded + 1)); main.so.data.fullyLoaded = loaded; main.so.flush(); }; main.so.data.fullyLoadedDate = _local2.getTime(); main.so.flush(); } private function stopGame():void{ removeEventListener(Event.ENTER_FRAME, enterFrame); } public function lose():void{ main.gameover(); stopGame(); main.so.data.getOut = null; main.so.flush(); } private function win():void{ main.gameCompleted(); stopGame(); main.so.data.fullyLoaded = 0; main.so.flush(); } } }//package com.games
Section 10
//GetOut (com.games.GetOut) package com.games { import flash.display.*; import flash.events.*; import com.*; import com.my.*; import com.fx.*; public class GetOut extends MyMovieClip { public var bomb:MovieClip; private var main:Main; public function GetOut():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ var _local3:Number; main = _arg1; var _local2:Date = new Date(); _local2.getTime(); if (!main.so.data.getOut){ main.so.data.getOut = _local2.getTime(); main.so.flush(); } else { _local3 = (_local2.getTime() - main.so.data.getOut); if (_local3 > 3000){ win(); bomb.gotoAndStop("dead"); } else { bomb.gotoAndPlay(100); }; }; } public function lose():void{ main.gameover(); stopGame(); main.so.data.getOut = null; main.so.flush(); } private function removed(_arg1:Event):void{ stopGame(); removeEventListener(Event.REMOVED_FROM_STAGE, removed); } private function stopGame():void{ } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 11
//GreenLightRedLight (com.games.GreenLightRedLight) package com.games { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; import com.*; import com.my.*; import flash.media.*; import com.fx.*; import flash.system.*; public class GreenLightRedLight extends MyMovieClip { private var main:Main; private var noCamera:Boolean;// = false private var oldX:Number; private var oldY:Number; private var goal:Number;// = 10 public var light:MovieClip; public var cVideo:MovieClip; private var intervalSwitch:uint; private var lightState:String;// = "green" private var camera:Camera; private var sdPong:SdPong; public var txtError:TextField; private var video:Video; public function GreenLightRedLight():void{ sdPong = new SdPong(); super(); addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function activityHandler(_arg1:ActivityEvent):void{ } private function switchLight():void{ if (lightState == "green"){ lightState = "red"; light.gotoAndStop(2); } else { lightState = "green"; light.gotoAndStop(1); }; sdPong.play(); } public function init(_arg1:Main):void{ var pMain = _arg1; main = pMain; light.stop(); try { camera = Camera.getCamera(); } finally { }; if (camera != null){ if (!camera.muted){ camera.addEventListener(ActivityEvent.ACTIVITY, activityHandler); video = new Video(200, 150); video.attachCamera(camera); cVideo.addChild(video); } else { Security.showSettings(SecurityPanel.PRIVACY); camera = null; }; } else { noCamera = true; }; txtError.text = Language["dontHaveWebcam"]; oldX = mouseX; oldY = mouseY; addEventListener(Event.ENTER_FRAME, enterFrame); intervalSwitch = setInterval(switchLight, 3000); } private function stopGame():void{ clearInterval(intervalSwitch); removeEventListener(Event.ENTER_FRAME, enterFrame); if (camera){ camera = null; cVideo.removeChild(video); video = null; }; } private function win():void{ main.gameCompleted(); stopGame(); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function enterFrame(_arg1:Event):void{ if (camera){ if (camera.activityLevel < 0){ return; }; }; if (lightState == "green"){ if (camera){ goal = (goal + (camera.activityLevel / 200)); } else { if (noCamera){ goal = (goal + (MyMath.pythagore((oldX - mouseX), (oldY - mouseY)) / 200)); }; }; } else { if (camera){ goal = (goal - (camera.activityLevel / 200)); } else { if (noCamera){ goal = (goal - (MyMath.pythagore((oldX - mouseX), (oldY - mouseY)) / 200)); }; }; }; oldX = mouseX; oldY = mouseY; if (goal > 80){ win(); }; light.scaleX = (1 + (goal / 105)); light.scaleY = light.scaleX; if (goal <= 0){ main.gameover(); stopGame(); }; } private function statusHandler(_arg1:StatusEvent):void{ } } }//package com.games
Section 12
//ItsAlreadyTooLate (com.games.ItsAlreadyTooLate) package com.games { import flash.display.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class ItsAlreadyTooLate extends MyMovieClip { private var time:Number; public var txtHelp:TextField; public var pannel:MovieClip; private var main:Main; public function ItsAlreadyTooLate():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function keyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 13){ txtHelp.text = Language["cantBeEasy"]; }; } private function stopGame():void{ removeEventListener(Event.ENTER_FRAME, enterFrame); stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function enterFrame(_arg1:Event){ var _local2:Date = new Date(); var _local3:Number = (_local2.getTime() - time); if ((((_local3 < 0)) || ((_local3 > 1000)))){ win(); }; time = _local2.getTime(); } public function init(_arg1:Main):void{ main = _arg1; var _local2:Date = new Date(); time = _local2.getTime(); addEventListener(Event.ENTER_FRAME, enterFrame); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function win():void{ main.gameCompleted(); stopGame(); pannel.gotoAndStop(1); } } }//package com.games
Section 13
//IWasHere (com.games.IWasHere) package com.games { import flash.display.*; import flash.events.*; import com.*; import com.my.*; import com.fx.*; import flash.ui.*; public class IWasHere extends MyMovieClip { var hit:int;// = 0 private var main:Main; public var safeArea:MovieClip; public function IWasHere():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function stopGame():void{ } private function dontWin():void{ if (safeArea.hitTestPoint(mouseX, mouseY, true)){ safeArea.rotation = (safeArea.rotation + 90); }; lose(); } public function init(_arg1:Main):void{ main = _arg1; if (main.so.data.iwashere == null){ dontWin(); main.so.data.iwashere = 0; return; }; main.so.data.iwashere = (Number(main.so.data.iwashere) + 1); if (main.so.data.iwashere == 4){ main.so.data.iwashere = 0; }; safeArea.stop(); if (main.so.data.iwashere == 1){ safeArea.gotoAndStop(2); } else { if (main.so.data.iwashere == 2){ safeArea.gotoAndStop(3); } else { if (main.so.data.iwashere == 3){ safeArea.gotoAndStop(4); }; }; }; main.so.flush(); checkWin(); } private function lose():void{ Mouse.hide(); stopGame(); main.gameover(); } private function checkWin():void{ if (safeArea.hitTestPoint(mouseX, mouseY, true)){ win(); } else { lose(); }; } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 14
//Laouder (com.games.Laouder) package com.games { import flash.display.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class Laouder extends MyMovieClip { public var man:MovieClip; private var string:String;// = "" private var main:Main; public var txtInfo:TextField; public function Laouder():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); removeAllChildren(); stopGame(); } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + _arg1.keyCode.toString()); if (string.split("38403739").length == 2){ win(); }; } private function stopGame():void{ if (man){ man.stop(); man = null; }; stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function win():void{ main.gameCompleted(false); stopGame(); txtInfo.text = Language["congratulationsBut"]; } } }//package com.games
Section 15
//Lighter (com.games.Lighter) package com.games { import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class Lighter extends MyMovieClip { private var string:String;// = "" private var main:Main; public var txtPassword:TextField; public function Lighter():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); txtPassword.text = (Language["thePasswordIs"] + " xcvbn"); } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function win():void{ main.gameCompleted(); stopGame(); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + String(_arg1.keyCode)); if (string.split("8867866678").length == 2){ win(); }; } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } } }//package com.games
Section 16
//MyURL (com.games.MyURL) package com.games { import fl.controls.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class MyURL extends MyMovieClip { public var txtSecretPlace:TextField; public var btPush:Button; private var string:String;// = "" private var main:Main; public var txtUrl:TextField; public function MyURL():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); txtSecretPlace.text = Language["urlSecretPlace"]; __setProp_btPush_MyUrl_Calque1_0(); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } public function init(_arg1:Main):void{ main = _arg1; txtUrl.text = unescape(main.loaderInfo.url); btPush.addEventListener(MouseEvent.CLICK, win); } private function stopGame():void{ btPush.removeEventListener(MouseEvent.CLICK, win); } function __setProp_btPush_MyUrl_Calque1_0(){ try { btPush["componentInspectorSetting"] = true; } catch(e:Error) { }; btPush.emphasized = false; btPush.enabled = true; btPush.label = "Click here :)"; btPush.labelPlacement = "right"; btPush.selected = false; btPush.toggle = false; btPush.visible = true; try { btPush["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function win(_arg1:MouseEvent=null):void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 17
//OnThePaperOnly (com.games.OnThePaperOnly) package com.games { import flash.display.*; import flash.events.*; import com.*; import com.my.*; import com.fx.*; public class OnThePaperOnly extends MyMovieClip { private var string:String;// = "" private var main:Main; public var theEnd:MovieClip; public function OnThePaperOnly():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); theEnd.alpha = 0.01; theEnd.txtTheEnd1.text = Language["theEnd"]; theEnd.txtTheEnd.text = "theend"; } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function win():void{ main.gameCompleted(); stopGame(); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + _arg1.keyCode.toString()); if (string.split("847269697868").length == 2){ win(); }; } } }//package com.games
Section 18
//OutOfFlash (com.games.OutOfFlash) package com.games { import flash.display.*; import flash.events.*; import com.*; import com.my.*; import com.fx.*; public class OutOfFlash extends MyMovieClip { public var mc:MovieClip; private var main:Main; public function OutOfFlash():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ main = _arg1; mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown); mc.addEventListener(MouseEvent.MOUSE_UP, mouseUp); mc.addEventListener(Event.ENTER_FRAME, enterFrame); mc.pressed = false; mc.buttonMode = true; stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp); mc.txtToRemove.text = Language["toRemove"]; } private function stopGame():void{ mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown); mc.removeEventListener(MouseEvent.MOUSE_UP, mouseUp); mc.removeEventListener(Event.ENTER_FRAME, enterFrame); stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUp); } private function enterFrame(_arg1:Event):void{ if (mc.pressed){ mc.x = mouseX; mc.y = mouseY; }; } private function mouseDown(_arg1:MouseEvent):void{ mc.pressed = true; } private function removed(_arg1:Event):void{ stopGame(); removeEventListener(Event.REMOVED_FROM_STAGE, removed); } private function win():void{ main.gameCompleted(); stopGame(); } private function mouseUp(_arg1:MouseEvent):void{ mc.pressed = false; if ((((((((mc.x > 550)) || ((mc.x < 0)))) || ((mc.y < 0)))) || ((mc.y > 400)))){ win(); }; } } }//package com.games
Section 19
//Paste (com.games.Paste) package com.games { import flash.display.*; import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class Paste extends MyMovieClip { public var txtHelp:TextField; private var string:String;// = "" private var main:Main; public var cb:MovieClip; public function Paste():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); cb.txtNotHere.text = Language["notOnThisClipboard"]; } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + _arg1.keyCode.toString()); if (string.split("7970677985828369").length == 2){ win(); }; if ((((_arg1.ctrlKey == true)) && ((_arg1.keyCode == 86)))){ txtHelp.text = Language["almost"]; }; } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 20
//Ping (com.games.Ping) package com.games { import flash.display.*; import flash.events.*; import flash.net.*; import com.*; import com.my.*; import flash.media.*; import com.fx.*; public class Ping extends MyMovieClip { public var racket:MovieClip; private var conn:LocalConnection; private var main:Main; private var youWin:Boolean;// = false public var ball:MovieClip; public function Ping():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } public function toTheRight(){ ball.x = 550; ball.speed = -2; youWin = true; } public function init(_arg1:Main):void{ var pMain = _arg1; main = pMain; addEventListener(Event.ENTER_FRAME, enterFrame); ball.speed = -2; ball.x = 250; conn = new LocalConnection(); conn.allowDomain("*"); conn.allowInsecureDomain("*"); conn.addEventListener(StatusEvent.STATUS, onStatus); conn.client = this; try { conn.connect("myConnectionPing"); } catch(error:ArgumentError) { }; } function onStatus(_arg1:StatusEvent):void{ var _local2:SdBeep; switch (_arg1.level){ case "status": break; case "error": ball.x = 250; ball.speed = -2; _local2 = new SdBeep(); _local2.play(); break; }; } private function stopGame():void{ removeEventListener(Event.ENTER_FRAME, enterFrame); } private function enterFrame(_arg1:Event):void{ var _local2:SdPong; var _local3:SoundChannel; ball.x = (ball.x + ball.speed); if (ball.hitTestObject(racket)){ ball.speed = 2; _local2 = new SdPong(); _local3 = _local2.play(); _local3.soundTransform = new SoundTransform(1, -1); if (youWin){ conn.send("myConnectionPong", "win"); win(); ball.speed = 0; return; }; }; if (ball.x > 550){ ball.speed = 0; ball.x = -300; conn.send("myConnectionPong", "toTheLeft"); }; } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 21
//Pong (com.games.Pong) package com.games { import flash.display.*; import flash.events.*; import flash.net.*; import com.*; import com.my.*; import flash.media.*; import com.fx.*; public class Pong extends MyMovieClip { public var racket:MovieClip; private var conn:LocalConnection; private var main:Main; public var ball:MovieClip; public function Pong():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } public function init(_arg1:Main):void{ var pMain = _arg1; main = pMain; addEventListener(Event.ENTER_FRAME, enterFrame); ball.speed = 0; ball.x = 600; conn = new LocalConnection(); conn.allowDomain("*"); conn.allowInsecureDomain("*"); conn.addEventListener(StatusEvent.STATUS, onStatus); conn.client = this; try { conn.connect("myConnectionPong"); } catch(error:ArgumentError) { }; } function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "status": break; case "error": break; }; } private function stopGame():void{ removeEventListener(Event.ENTER_FRAME, enterFrame); } private function enterFrame(_arg1:Event):void{ var _local2:SdPong; var _local3:SoundChannel; ball.x = (ball.x + ball.speed); if (ball.hitTestObject(racket)){ ball.speed = -2; _local2 = new SdPong(); _local2.play(); _local3 = _local2.play(); _local3.soundTransform = new SoundTransform(1, 1); }; if ((((ball.x < -(ball.width))) && ((ball.speed < 0)))){ conn.send("myConnectionPing", "toTheRight"); ball.x = 600; ball.speed = 0; }; } public function win():void{ main.gameCompleted(); stopGame(); } public function toTheLeft(){ ball.x = -(ball.width); ball.speed = 2; } } }//package com.games
Section 22
//Quality (com.games.Quality) package com.games { import flash.events.*; import com.*; import com.my.*; import com.fx.*; import flash.ui.*; public class Quality extends MyMovieClip { var hit:int;// = 0 private var main:Main; public function Quality():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ main = _arg1; main.stage.quality = "LOW"; stage.addEventListener(MouseEvent.CLICK, click); var _local2:ContextMenu = new ContextMenu(); _local2.hideBuiltInItems(); var _local3:ContextMenuBuiltInItems = _local2.builtInItems; _local3.zoom = false; _local3.print = true; _local3.quality = true; _local3.play = true; _local3.forwardAndBack = false; var _local4:ContextMenuItem = new ContextMenuItem(Language["noZoomHere"]); _local2.customItems = [_local4]; main.contextMenu = _local2; } private function stopGame():void{ main.stage.quality = "HI"; stage.removeEventListener(MouseEvent.CLICK, click); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function click(_arg1:MouseEvent):void{ hit++; if (hit > 20){ win(); }; } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 23
//Read (com.games.Read) package com.games { import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class Read extends MyMovieClip { var hit:int;// = 0 private var main:Main; public var txtRead:TextField; public function Read():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); txtRead.text = Language["hitSpacebar"]; } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 32){ hit++; if (hit == 10){ win(); }; }; } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 24
//RightClick (com.games.RightClick) package com.games { import flash.events.*; import com.*; import com.my.*; import com.fx.*; import flash.ui.*; public class RightClick extends MyMovieClip { var hit:int;// = 0 private var main:Main; public function RightClick():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ main = _arg1; var _local2:ContextMenu = new ContextMenu(); var _local3:ContextMenuItem = new ContextMenuItem(Language["justHere"]); _local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, win); _local2.customItems = [_local3]; main.contextMenu = _local2; } private function stopGame():void{ } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function win(_arg1=null):void{ main.gameCompleted(); var _local2:ContextMenu = new ContextMenu(); _local2.hideBuiltInItems(); main.contextMenu = _local2; stopGame(); } } }//package com.games
Section 25
//SwitchTheLight (com.games.SwitchTheLight) package com.games { import flash.events.*; import com.*; import com.my.*; public class SwitchTheLight extends MyMovieClip { var hit:int;// = 0 private var main:Main; public function SwitchTheLight():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); } private function keyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 20){ hit++; if (hit == 3){ win(); }; }; } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 26
//Wheel (com.games.Wheel) package com.games { import flash.events.*; import com.*; import com.my.*; public class Wheel extends MyMovieClip { var string:String;// = "" var hit:int;// = 0 private var main:Main; public function Wheel():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } private function keyUp(_arg1:KeyboardEvent):void{ string = (string + _arg1.keyCode.toString()); if (string.split("7779858369").length == 2){ win(); }; } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); stage.addEventListener(MouseEvent.MOUSE_WHEEL, wheel); } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); stage.removeEventListener(MouseEvent.MOUSE_WHEEL, wheel); } private function wheel(_arg1:MouseEvent):void{ hit = (hit + Math.abs(_arg1.delta)); if (hit > 20){ win(); }; } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 27
//ZoomIn (com.games.ZoomIn) package com.games { import flash.events.*; import flash.text.*; import com.*; import com.my.*; import com.fx.*; public class ZoomIn extends MyMovieClip { private var main:Main; public var txtZoom:TextField; private var key1:int;// = 0 private var key2:int;// = 0 public function ZoomIn():void{ addEventListener(Event.REMOVED_FROM_STAGE, removed); } private function keyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 32){ key1++; }; if (_arg1.keyCode == 13){ key2++; }; if ((((key1 >= 10)) && ((key2 >= 10)))){ win(); }; } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removed); stopGame(); } public function init(_arg1:Main):void{ main = _arg1; stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); txtZoom.text = Language["zoom"]; } private function stopGame():void{ stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function win():void{ main.gameCompleted(); stopGame(); } } }//package com.games
Section 28
//DrawSine (com.midasplayer.extras.DrawSine) package com.midasplayer.extras { import flash.display.*; public class DrawSine extends MovieClip { private var target_mc:MovieClip; private var step_x:Number; private var my_height:Number; private var stroke_color:Number;// = 0 private var draw_fill:Boolean;// = false private var stroke_weight:Number;// = 1 private var fill_alpha:Number; private var fill_height:Number; private var draw_array; private var steps:Number; private var fill_color:Number;// = 0xFF0000 private var my_width:Number; public function DrawSine(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number){ draw_array = new Array(); super(); target_mc = _arg1; my_width = _arg2; my_height = _arg3; steps = _arg4; step_x = (_arg2 / steps); var _local5:* = 0; while (_local5 < steps) { draw_array.push({x:(step_x * _local5), y:0}); _local5++; }; } public function set_fill(_arg1:Boolean, _arg2:Number, _arg3:Number):void{ draw_fill = _arg1; fill_color = (stroke_color = _arg2); fill_alpha = _arg3; } public function set_stroke(_arg1:Number, _arg2:Number):void{ stroke_weight = _arg1; stroke_color = _arg2; } public function draw_waves(_arg1:Array):void{ var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local2:* = draw_array.length; var _local3:* = _arg1.length; var _local4:* = 0; while (_local4 < _local3) { _local6 = (((_arg1[_local4].cycles * Math.PI) * 2) / steps); _local7 = 0; while (_local7 < _local2) { if (_local4 == 0){ draw_array[_local7].y = (Math.sin((_arg1[_local4].phase + (_local6 * _local7))) * _arg1[_local4].radius); } else { draw_array[_local7].y = (draw_array[_local7].y + (Math.sin((_arg1[_local4].phase + (_local6 * _local7))) * _arg1[_local4].radius)); }; _local7++; }; _local4++; }; target_mc.graphics.clear(); if (stroke_weight > 0){ target_mc.graphics.lineStyle(stroke_weight, stroke_color); }; if (draw_fill){ target_mc.graphics.beginFill(fill_color, fill_alpha); }; target_mc.graphics.moveTo(draw_array[0].x, draw_array[0].y); var _local5:* = 1; while (_local5 < _local2) { _local8 = draw_array[_local5].x; _local9 = draw_array[_local5].y; target_mc.graphics.lineTo(_local8, _local9); _local5++; }; if (draw_fill){ target_mc.graphics.lineTo(_local8, (my_height / 2)); target_mc.graphics.lineTo(0, (my_height / 2)); target_mc.graphics.lineTo(0, draw_array[0].y); target_mc.graphics.endFill(); }; } } }//package com.midasplayer.extras
Section 29
//md5 (com.midasplayer.extras.md5) package com.midasplayer.extras { public class md5 { public static const HEX_FORMAT_LOWERCASE:uint = 0; public static const HEX_FORMAT_UPPERCASE:uint = 1; public static const BASE64_PAD_CHARACTER_DEFAULT_COMPLIANCE:String = ""; public static const BASE64_PAD_CHARACTER_RFC_COMPLIANCE:String = "="; public static var hexcase:uint = 0; public static var b64pad:String = ""; public static function md5_gg(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{ return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7)); } public static function md5_cmn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number):Number{ return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3)); } public static function binl_md5(_arg1:Array, _arg2:Number):Array{ var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; _arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32))); _arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2; var _local3:Number = 1732584193; var _local4:Number = -271733879; var _local5:Number = -1732584194; var _local6:Number = 271733878; var _local7:Number = 0; while (_local7 < _arg1.length) { _local8 = _local3; _local9 = _local4; _local10 = _local5; _local11 = _local6; _local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936); _local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586); _local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819); _local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330); _local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897); _local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426); _local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341); _local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983); _local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416); _local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417); _local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063); _local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162); _local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682); _local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101); _local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290); _local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329); _local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510); _local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632); _local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713); _local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302); _local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691); _local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083); _local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335); _local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848); _local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438); _local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690); _local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961); _local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501); _local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467); _local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784); _local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473); _local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734); _local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558); _local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463); _local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562); _local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556); _local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060); _local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353); _local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632); _local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640); _local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174); _local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222); _local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979); _local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189); _local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487); _local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835); _local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520); _local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651); _local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844); _local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415); _local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905); _local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055); _local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571); _local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606); _local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523); _local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799); _local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359); _local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744); _local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380); _local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649); _local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070); _local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379); _local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259); _local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551); _local3 = safe_add(_local3, _local8); _local4 = safe_add(_local4, _local9); _local5 = safe_add(_local5, _local10); _local6 = safe_add(_local6, _local11); _local7 = (_local7 + 16); }; return ([_local3, _local4, _local5, _local6]); } public static function str2rstr_utf16le(_arg1:String):String{ var _local2 = ""; var _local3:Number = 0; while (_local3 < _arg1.length) { _local2 = (_local2 + String.fromCharCode((_arg1.charCodeAt(_local3) & 0xFF), ((_arg1.charCodeAt(_local3) >>> 8) & 0xFF))); _local3++; }; return (_local2); } public static function hex_hmac_md5(_arg1:String, _arg2:String):String{ return (rstr2hex(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)))); } public static function binl2rstr(_arg1:Array):String{ var _local2 = ""; var _local3:Number = 0; while (_local3 < (_arg1.length * 32)) { _local2 = (_local2 + String.fromCharCode(((_arg1[(_local3 >> 5)] >>> (_local3 % 32)) & 0xFF))); _local3 = (_local3 + 8); }; return (_local2); } public static function md5_ff(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{ return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7)); } public static function md5_ii(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{ return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7)); } public static function rstr2binl(_arg1:String):Array{ var _local2:Number = 0; var _local3:Array = new Array((_arg1.length >> 2)); _local2 = 0; while (_local2 < _local3.length) { _local3[_local2] = 0; _local2++; }; _local2 = 0; while (_local2 < (_arg1.length * 8)) { _local3[(_local2 >> 5)] = (_local3[(_local2 >> 5)] | ((_arg1.charCodeAt((_local2 / 8)) & 0xFF) << (_local2 % 32))); _local2 = (_local2 + 8); }; return (_local3); } public static function md5_vm_test():Boolean{ return ((hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72")); } public static function b64_md5(_arg1:String):String{ return (rstr2b64(rstr_md5(str2rstr_utf8(_arg1)))); } public static function any_hmac_md5(_arg1:String, _arg2:String, _arg3:String):String{ return (rstr2any(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)), _arg3)); } public static function hex_md5(_arg1:String):String{ return (rstr2hex(rstr_md5(str2rstr_utf8(_arg1)))); } public static function bit_rol(_arg1:Number, _arg2:Number):Number{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } public static function encrypt(_arg1:String):String{ return (hex_md5(_arg1)); } public static function md5_hh(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number):Number{ return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7)); } public static function rstr2hex(_arg1:String):String{ var _local4:Number; var _local2:String = (hexcase) ? "0123456789ABCDEF" : "0123456789abcdef"; var _local3 = ""; var _local5:Number = 0; while (_local5 < _arg1.length) { _local4 = _arg1.charCodeAt(_local5); _local3 = (_local3 + (_local2.charAt(((_local4 >>> 4) & 15)) + _local2.charAt((_local4 & 15)))); _local5++; }; return (_local3); } public static function any_md5(_arg1:String, _arg2:String):String{ return (rstr2any(rstr_md5(str2rstr_utf8(_arg1)), _arg2)); } public static function b64_hmac_md5(_arg1:String, _arg2:String):String{ return (rstr2b64(rstr_hmac_md5(str2rstr_utf8(_arg1), str2rstr_utf8(_arg2)))); } public static function rstr2b64(_arg1:String):String{ var _local6:Number; var _local7:Number; var _local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var _local3 = ""; var _local4:Number = _arg1.length; var _local5:Number = 0; while (_local5 < _local4) { _local6 = (((_arg1.charCodeAt(_local5) << 16) | (((_local5 + 1) < _local4)) ? (_arg1.charCodeAt((_local5 + 1)) << 8) : 0) | (((_local5 + 2) < _local4)) ? _arg1.charCodeAt((_local5 + 2)) : 0); _local7 = 0; while (_local7 < 4) { if (((_local5 * 8) + (_local7 * 6)) > (_arg1.length * 8)){ _local3 = (_local3 + b64pad); } else { _local3 = (_local3 + _local2.charAt(((_local6 >>> (6 * (3 - _local7))) & 63))); }; _local7++; }; _local5 = (_local5 + 3); }; return (_local3); } public static function safe_add(_arg1:Number, _arg2:Number):Number{ var _local3:Number = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF)); var _local4:Number = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16)); return (((_local4 << 16) | (_local3 & 0xFFFF))); } public static function str2rstr_utf8(_arg1:String):String{ var _local4:Number; var _local5:Number; var _local2 = ""; var _local3:Number = -1; while (++_local3 < _arg1.length) { _local4 = _arg1.charCodeAt(_local3); _local5 = (((_local3 + 1) < _arg1.length)) ? _arg1.charCodeAt((_local3 + 1)) : 0; if ((((((((0xD800 <= _local4)) && ((_local4 <= 56319)))) && ((0xDC00 <= _local5)))) && ((_local5 <= 57343)))){ _local4 = ((65536 + ((_local4 & 1023) << 10)) + (_local5 & 1023)); _local3++; }; if (_local4 <= 127){ _local2 = (_local2 + String.fromCharCode(_local4)); } else { if (_local4 <= 2047){ _local2 = (_local2 + String.fromCharCode((192 | ((_local4 >>> 6) & 31)), (128 | (_local4 & 63)))); } else { if (_local4 <= 0xFFFF){ _local2 = (_local2 + String.fromCharCode((224 | ((_local4 >>> 12) & 15)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63)))); } else { if (_local4 <= 2097151){ _local2 = (_local2 + String.fromCharCode((240 | ((_local4 >>> 18) & 7)), (128 | ((_local4 >>> 12) & 63)), (128 | ((_local4 >>> 6) & 63)), (128 | (_local4 & 63)))); }; }; }; }; }; return (_local2); } public static function rstr_hmac_md5(_arg1:String, _arg2:String):String{ var _local3:Array = rstr2binl(_arg1); if (_local3.length > 16){ _local3 = binl_md5(_local3, (_arg1.length * 8)); }; var _local4:Array = new Array(16); var _local5:Array = new Array(16); var _local6:Number = 0; while (_local6 < 16) { _local4[_local6] = (_local3[_local6] ^ 909522486); _local5[_local6] = (_local3[_local6] ^ 1549556828); _local6++; }; var _local7:Array = binl_md5(_local4.concat(rstr2binl(_arg2)), (0x0200 + (_arg2.length * 8))); return (binl2rstr(binl_md5(_local5.concat(_local7), (0x0200 + 128)))); } public static function str2rstr_utf16be(_arg1:String):String{ var _local2 = ""; var _local3:Number = 0; while (_local3 < _arg1.length) { _local2 = (_local2 + String.fromCharCode(((_arg1.charCodeAt(_local3) >>> 8) & 0xFF), (_arg1.charCodeAt(_local3) & 0xFF))); _local3++; }; return (_local2); } public static function rstr2any(_arg1:String, _arg2:String):String{ var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Array; var _local3:Number = _arg2.length; var _local4:Array = []; var _local9:Array = ((_arg1.length / 2) as Array); _local5 = 0; while (_local5 < _local9.length) { _local9[_local5] = ((_arg1.charCodeAt((_local5 * 2)) << 8) | _arg1.charCodeAt(((_local5 * 2) + 1))); _local5++; }; while (_local9.length > 0) { _local8 = []; _local7 = 0; _local5 = 0; while (_local5 < _local9.length) { _local7 = ((_local7 << 16) + _local9[_local5]); _local6 = Math.floor((_local7 / _local3)); _local7 = (_local7 - (_local6 * _local3)); if ((((_local8.length > 0)) || ((_local6 > 0)))){ _local8[_local8.length] = _local6; }; _local5++; }; _local4[_local4.length] = _local7; _local9 = _local8; }; var _local10 = ""; _local5 = (_local4.length - 1); while (_local5 >= 0) { _local10 = (_local10 + _arg2.charAt(_local4[_local5])); _local5--; }; return (_local10); } public static function rstr_md5(_arg1:String):String{ return (binl2rstr(binl_md5(rstr2binl(_arg1), (_arg1.length * 8)))); } } }//package com.midasplayer.extras
Section 30
//MochiBot (com.midasplayer.extras.MochiBot) package com.midasplayer.extras { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:MochiBot = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package com.midasplayer.extras
Section 31
//SimpleParticle (com.midasplayer.extras.SimpleParticle) package com.midasplayer.extras { import flash.display.*; public dynamic class SimpleParticle extends Shape { private var _color:Number;// = 0 private var _size:Number;// = 1 private var _type:String;// = "rect" public static var RECT:String = "rect"; public static var CIRCLE:String = "circle"; public function get size():Number{ return (_size); } public function set size(_arg1:Number){ _size = _arg1; draw(); } public function get color():Number{ return (_color); } public function set color(_arg1:Number){ _color = _arg1; draw(); } public function get type():String{ return (_type); } private function draw(){ clear(); graphics.beginFill(_color, 1); switch (type){ case RECT: graphics.drawRect((-(size) / 2), (-(size) / 2), size, size); break; case CIRCLE: graphics.drawCircle((-(size) / 2), (-(size) / 2), size); break; }; graphics.endFill(); } public function clear(){ graphics.clear(); } public function set type(_arg1:String){ _type = _arg1; draw(); } } }//package com.midasplayer.extras
Section 32
//SineWave (com.midasplayer.extras.SineWave) package com.midasplayer.extras { public class SineWave { private var my_cycles:Number; private var my_radius:Number; private var my_phase:Number; private var my_inc:Number; public function SineWave(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ my_phase = _arg1; my_cycles = _arg2; my_radius = _arg3; my_inc = _arg4; } public function set radius(_arg1:Number):void{ my_radius = _arg1; } public function get cycles():Number{ return (my_cycles); } public function get radius():Number{ return (my_radius); } public function set cycles(_arg1:Number):void{ my_cycles = _arg1; } public function get phase():Number{ return (my_phase); } public function set inc(_arg1:Number):void{ my_inc = _arg1; } public function set phase(_arg1:Number):void{ my_phase = _arg1; } public function get inc():Number{ return (my_inc); } } }//package com.midasplayer.extras
Section 33
//Water (com.midasplayer.extras.Water) package com.midasplayer.extras { import flash.display.*; public class Water extends MovieClip { private var m_lines:Array; public function Water(){ m_lines = new Array(); super(); } public function decrThickness(_arg1:Boolean):Boolean{ var _local2:int; var _local3:Boolean; var _local4:int; var _local5:Boolean; if (_arg1){ _local2 = 0; while (_local2 < m_lines.length) { _local3 = false; if (m_lines[_local2].decrThickness()){ _local3 = true; } else { return (false); }; _local2++; }; return (_local3); //unresolved jump }; _local4 = 0; while (_local4 < m_lines.length) { _local5 = false; if (m_lines[_local4].incrThickness()){ _local5 = true; } else { return (false); }; _local4++; }; return (_local5); } public function init(_arg1:Number, _arg2:Number){ var _local3:WaterLine; var _local5:int; var _local4:uint = 0xFF0000; if (this.name == "RED"){ _local4 = 0xFF0000; _local5 = 1; }; if (this.name == "GREEN"){ _local4 = 0xFF00; _local5 = 1; }; if (this.name == "BLUE"){ _local4 = 2782939; _local5 = 1; }; var _local6:* = 0; while (_local6 < _local5) { _local3 = new WaterLine(); _local3.addParams(_local4, _arg1, _arg2); _local3.x = (_local6 * 1.5); addChild(_local3); m_lines.push(_local3); _local6++; }; } } }//package com.midasplayer.extras
Section 34
//WaterLine (com.midasplayer.extras.WaterLine) package com.midasplayer.extras { import flash.display.*; import flash.events.*; public class WaterLine extends MovieClip { private var _height:Number;// = 400 private var _line:Shape; private var _particlesQuantity:Number;// = 20 private var _color:uint; private var _bubbles:Array; private var _step:Number; private var _particles:Array; private var _lineSize:Number; public function incrThickness():Boolean{ _lineSize = (_lineSize + 0.5); if (_lineSize >= 5){ return (true); }; return (false); } public function get randomDirection():Number{ return (((Math.round((Math.random() * 1)) * 2) - 1)); } public function addParams(_arg1:uint, _arg2:Number, _arg3:Number):void{ _color = _arg1; _height = _arg2; _lineSize = _arg3; init(); } private function createBubbles():void{ var _local2:SimpleParticle; var _local4:Number; var _local5:Number; var _local6:*; var _local1:Array = [_color, _color]; var _local3:* = 0; while (_local3 < 5) { _local2 = new SimpleParticle(); _local2.type = SimpleParticle.CIRCLE; _local2.size = 0.8; _local2.color = _local1[Math.round((Math.random() * (_local1.length - 1)))]; _local2.alpha = 1; addChild(_local2); _bubbles.push(_local2); _local3++; }; for (_local6 in _bubbles) { _local2 = _bubbles[_local6]; if (!_local2.isOut){ _local2.y = (_local2.y + ((Math.random() * 5) + 10)); _local4 = Math.floor((_local2.y / this._step)); _local2.x = (_local2.x + (((_particles[_local4].x + ((Math.random() * 1) * randomDirection)) - _local2.x) * 0.8)); _local5 = Math.sqrt((Math.pow((mouseX - _local2.x), 2) + Math.pow((mouseY - _local2.y), 2))); if ((((_local5 < 4)) && (!(_local2.isOut)))){ }; } else { _local2.y = (_local2.y + _local2.speedY); _local2.speedY = (_local2.speedY + 3); _local2.x = (_local2.x + _local2.speedX); _local2.alpha = (_local2.alpha - 0.005); }; if ((((_local2.y > _height)) || ((_local2.alpha < 0)))){ _bubbles.splice(_local6, 1); _local2.parent.removeChild(_local2); _local2 = null; }; }; } private function createLine():void{ var _local1:SimpleParticle; var _local2:* = 0; while (_local2 < _particlesQuantity) { _local1 = new SimpleParticle(); _local1.elasticX = 0; _local1.yIni = (_local1.y = (_step * _local2)); addChild(_local1); _particles.push(_local1); _local2++; }; } private function init(){ _line = new Shape(); _line.alpha = 0.8; addChild(_line); _bubbles = []; _particles = []; _step = (_height / (_particlesQuantity - 1)); createLine(); addEventListener(Event.ENTER_FRAME, animate); } private function animate(_arg1:Event):void{ var _local2:SimpleParticle; var _local3:SimpleParticle; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local9:Number; var _local8:Number = 10; var _local10:Number = 3; _line.graphics.clear(); _line.graphics.moveTo(_particles[0].x, _particles[0].y); _line.graphics.lineStyle(_lineSize, _color, 1); var _local11:* = 0; while (_local11 < _particles.length) { _local3 = _particles[_local11]; if (_local11 == 0){ _local3.x = (_local3.x + ((((Math.random() * _local10) * randomDirection) - _local3.x) * 0.9)); }; _local2 = ((_local11)>0) ? _particles[(_local11 - 1)] : _local3; _local7 = Math.sqrt((Math.pow((mouseX - 0), 2) + Math.pow((mouseY - _local3.yIni), 2))); if (_local7 < _local8){ } else { _local5 = _local2.x; _local3.elasticX = ((_local3.elasticX * 0.4) + ((_local5 - _local3.x) * 0.4)); _local3.x = (_local3.x + _local3.elasticX); }; if (_local11 > 0){ _line.graphics.curveTo(_local2.x, _local2.y, ((_local2.x + _local3.x) / 2), ((_local2.y + _local3.y) / 2)); }; _local11++; }; } private function spreadBubble(_arg1:SimpleParticle):void{ _arg1.isOut = true; parent.parent.addChild(_arg1); _arg1.size = 1.2; _arg1.alpha = 0.35; _arg1.x = (parent.x + _arg1.x); _arg1.y = (parent.y + _arg1.y); _arg1.speedY = (-5 - (Math.random() * 10)); _arg1.speedX = (((Math.random() * 15) + 1) * randomDirection); } public function decrThickness():Boolean{ _lineSize--; if (_lineSize <= 0){ return (true); }; return (false); } } }//package com.midasplayer.extras
Section 35
//WaveEngine (com.midasplayer.extras.WaveEngine) package com.midasplayer.extras { import flash.display.*; import flash.events.*; public class WaveEngine extends MovieClip { private var m_wave:DrawSine; private var m_fillColor:uint; private var m_num_waves:int;// = 3 private var m_waveHolder:MovieClip; private var m_sinArr:Array; private var m_rootRef:MovieClip; public function WaveEngine(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:uint, _arg5:uint, _arg6:MovieClip){ m_waveHolder = new MovieClip(); m_sinArr = new Array(); super(); m_rootRef = _arg1; m_waveHolder = _arg6; m_wave = new DrawSine(m_waveHolder, _arg2, _arg3, 100); var _local7:* = 0; while (_local7 < m_num_waves) { m_sinArr.push(new SineWave(((Math.random() * Math.PI) * 1.5), (Math.random() * 1.5), ((Math.random() * 1.5) + 1), (Math.random() - 0.5))); _local7++; }; m_wave.set_stroke(3, _arg5); m_wave.set_fill(true, _arg4, 100); m_fillColor = _arg4; } public function startWave():void{ m_rootRef.addEventListener(Event.ENTER_FRAME, update); } public function getWave():MovieClip{ return (m_waveHolder); } private function update(_arg1:Event):void{ var _local2:*; for (_local2 in m_sinArr) { m_sinArr[_local2].phase = (m_sinArr[_local2].phase + m_sinArr[_local2].inc); }; m_wave.set_fill(true, m_fillColor, 1); m_wave.draw_waves(m_sinArr); } public function stopWave():void{ m_rootRef.removeEventListener(Event.ENTER_FRAME, update); } public function colorUpdate(_arg1:uint):void{ var _local2:String = ("0x" + _arg1.toString(16)); m_fillColor = uint(_local2); } } }//package com.midasplayer.extras
Section 36
//KingAPI (com.midasplayer.KingAPI) package com.midasplayer { import flash.events.*; import flash.net.*; import com.midasplayer.extras.*; import flash.external.*; public class KingAPI { public static const LINK_TYPE_RIGHT_CLICK:String = "rightclick"; public static const USER_TYPE_SUBSCRIPTION:int = 3; public static const LINK_TYPE_HIGHSCORES:String = "highscores"; public static const LINK_TYPE_SIGN:String = "sign"; public static const INITIALIZED_EVENT:String = "initialized"; public static const LINK_TYPE_OTHER_GAMES:String = "other_games"; public static const USER_TYPE_REGISTERED:int = 1; private static const SAK:String = "ggfd7sday923mdsfd8csfds34"; private static const loadHomeParametersURL:String = "http://www.king.com/servlet/FreeGameServlet?action=load"; public static const LINK_TYPE_LOADER_MOVIE:String = "loader_movie"; private static const bounceURL:String = "http://www.mygame.com/king/bounce.jsp"; public static const LINK_TYPE_PROTECT:String = "protect"; public static const LINK_TYPE_ADD_GAME:String = "add_game"; public static const USER_TYPE_GOLD:int = 2; public static const USER_TYPE_UNREGISTERED:int = 0; public static const HOST_BANNED_EVENT:String = "hostBanned"; private static const SK:String = "vf78hxcsjak77cxzhjkwad87s"; private static const loadCountURL:String = "http://www.mygame.com/king/loadcount.jsp"; public static const LINK_TYPE_LOADER_PROGRESS:String = "loader_progress"; private static var check:String = null; public static var gameName:String; public static var banned:Boolean = false; protected static var dispatcher:EventDispatcher; public static var isHome:Boolean = false; private static var sessionID:String; private static var iscore:int = 123; public static var fromURL:String; private static var SSK:String = "ng43ui54hy35tdsnd6f54rews"; private static function loadUrlErrorHandler(_arg1:Event):void{ } public static function resetScore():void{ iscore = 123; check = null; } public static function openOfflineProtectionLink():void{ openKingPage(LINK_TYPE_PROTECT); } public static function init(_arg1:String, _arg2:String):void{ var so:SharedObject; var rnd1:Number; var rnd2:Number; var name = _arg1; var from = _arg2; gameName = name; fromURL = from; var loadCounter:URLLoader = new URLLoader(); var reqvars:URLVariables = new URLVariables(); reqvars.game = gameName; reqvars.from = fromURL; try { so = SharedObject.getLocal("sessionId"); if (so.data.sessionID == null){ rnd1 = Math.abs(Math.floor((Math.random() * 4294967295))); rnd2 = Math.abs(Math.floor((Math.random() * 4294967295))); so.data.sessionID = (rnd1.toString(16) + rnd2.toString(16)); so.flush(); }; sessionID = so.data.sessionID; } catch(e:Error) { sessionID = "error"; }; reqvars.session = sessionID; var request:URLRequest = new URLRequest(((loadCountURL + "?") + reqvars.toString())); loadCounter.addEventListener(Event.COMPLETE, loadCountHandler); loadCounter.addEventListener(IOErrorEvent.IO_ERROR, loadUrlErrorHandler); loadCounter.addEventListener(SecurityErrorEvent.SECURITY_ERROR, loadUrlErrorHandler); try { loadCounter.load(request); } catch(error:Error) { }; } private static function loadHomeParametersHandler(_arg1:Event):void{ var _local2:URLLoader = URLLoader(_arg1.target); } public static function submitInternalScore():void{ checkScore(); var _local1:int = ((iscore - 123) / 2); submitScore(_local1); } public static function openOtherGamesLink():void{ openKingPage(LINK_TYPE_OTHER_GAMES); } public static function openKingPage(_arg1:String, _arg2:String=null):void{ var _local3:URLVariables = new URLVariables(); _local3.game = gameName; _local3.from = fromURL; _local3.type = _arg1; _local3.session = sessionID; if (_arg2 != null){ _local3.redirect = _arg2; }; var _local4 = "_blank"; if (isHome){ _local4 = "_top"; }; navigateToURL(new URLRequest(((bounceURL + "?") + _local3.toString())), _local4); } private static function loadCountHandler(_arg1:Event):void{ var vars:URLVariables; var event = _arg1; var loadCounter:URLLoader = URLLoader(event.target); try { vars = new URLVariables(loadCounter.data); if (vars.h == "true"){ isHome = true; }; if (vars.b == "true"){ banned = true; dispatcher.dispatchEvent(new Event(HOST_BANNED_EVENT)); } else { dispatcher.dispatchEvent(new Event(INITIALIZED_EVENT)); }; } catch(e:Error) { dispatcher.dispatchEvent(new Event(INITIALIZED_EVENT)); }; } public static function addEventListener(_arg1:String, _arg2:Function):void{ if (dispatcher == null){ dispatcher = new EventDispatcher(); }; dispatcher.addEventListener(_arg1, _arg2); } public static function openLoaderMovieLink():void{ openKingPage(LINK_TYPE_LOADER_MOVIE); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ if (dispatcher == null){ return; }; dispatcher.removeEventListener(_arg1, _arg2); } public static function submitScore(_arg1:int):void{ var score = _arg1; var hash:String = md5.encrypt(((((score + ":") + gameName) + ":") + SSK)); try { if (isHome){ ExternalInterface.call("submitScore", score, hash); } else { openKingPage(LINK_TYPE_HIGHSCORES, ((((("game/" + gameName) + "/submit/") + score) + ":") + hash)); }; } catch(e:Error) { }; } public static function submitLevel(_arg1:int):void{ var level = _arg1; var hash:String = md5.encrypt(((((level + ":") + gameName) + ":") + SSK)); try { if (isHome){ ExternalInterface.call("submitLevel", level, hash); }; } catch(e:Error) { }; } public static function openHighscoresLink():void{ openKingPage(LINK_TYPE_HIGHSCORES, (("game/" + gameName) + "/highscores")); } public static function openSignLink():void{ if (!isHome){ openKingPage(LINK_TYPE_SIGN); }; } public static function openRightClickLink():void{ openKingPage(LINK_TYPE_RIGHT_CLICK); } private static function checkScore():void{ if (check != null){ if (check != md5.encrypt(((((iscore + ":") + gameName) + ":") + SK))){ SSK = "ng41ui54hy35tdsnd6f54rews"; }; }; } public static function addScore(_arg1:int):int{ checkScore(); var _local2:int = ((iscore - 123) / 2); _local2 = (_local2 + _arg1); iscore = ((_local2 * 2) + 123); check = md5.encrypt(((((iscore + ":") + gameName) + ":") + SK)); return (_local2); } public static function openLoaderProgressLink():void{ openKingPage(LINK_TYPE_LOADER_PROGRESS); } public static function openAddToWebsiteLink():void{ openKingPage(LINK_TYPE_ADD_GAME, "website_content.jsp"); } public static function submitAchievement(_arg1:String):void{ var achievement = _arg1; var hash:String = md5.encrypt(((((achievement + ":") + gameName) + ":") + SAK)); try { if (isHome){ ExternalInterface.call("submitAchievement", achievement, hash); }; } catch(e:Error) { }; } } }//package com.midasplayer
Section 37
//MainLoader (com.midasplayer.MainLoader) package com.midasplayer { import flash.display.*; import flash.events.*; import com.midasplayer.extras.*; import fl.transitions.*; import flash.geom.*; import fl.transitions.easing.*; import flash.media.*; public class MainLoader extends MovieClip { private var STAGE_WIDTH:Number;// = 550 private var m_waveEngineCrown:WaveEngine; private var m_streamBlue:Boolean;// = false private var m_clsRed:Water; private var m_ferryGreen:MovieClip; private var m_overBtn:Boolean;// = false private var m_tween:Tween; private var m_startColor:ColorTransform; private var m_dist:Number; private var m_ferryBlue:MovieClip; private var m_yellowDest:Number; private var m_logoHolder:Sprite; private var m_prevPerc:Number;// = -1 private var m_tweenBounceLogo:Tween; private var m_bg:Sprite; private var m_streamHeight:Number; private var m_step:Number; private var m_logoFill:Boolean;// = true private var m_isLoaded:Boolean;// = false private var m_waveHolderLogo:MovieClip; private var m_maskRown:MovieClip; private var m_sun:Sprite; private var m_mask:MovieClip; private var m_rootRef:MovieClip; private var m_crownFill:Boolean;// = false private var m_clsGreen:Water; private var m_GREEN:MovieClip; private var m_loaderContent:Array; private var m_bounce:Boolean;// = false private var m_colorOff:Boolean;// = false private var m_RED:MovieClip; private var m_streamGreen:Boolean;// = true private var MOCHI:String;// = "" private var m_otherGames:Sprite; private var m_streamRed:Boolean;// = false private var STAGE_HEIGHT:Number;// = 400 private var m_ferryRed:MovieClip; private var m_pressBtn:Boolean;// = false private var GAME_NAME:String;// = "take-something-literally" private var m_count;// = 0 private var m_play:Sprite; private var m_sampleLoadPerc:Number;// = -1 private var m_gameFrameRate:int; private var m_clsBlue:Water; private var m_endColor:ColorTransform; private var m_waveHolderCrown:MovieClip; public var armorgames:Boolean;// = false private var m_BLUE:MovieClip; private var m_greenDest:Number; private var m_waveEngineLogo:WaveEngine; public function MainLoader(){ m_loaderContent = new Array(); m_waveHolderLogo = new MovieClip(); m_waveHolderCrown = new MovieClip(); m_play = new Sprite(); m_otherGames = new Sprite(); m_mask = new MovieClip(); m_maskRown = new MovieClip(); m_RED = new WaterHolderR(); m_GREEN = new WaterHolderG(); m_BLUE = new WaterHolderB(); m_ferryGreen = new ferryGreen(); m_ferryRed = new ferryRed(); m_ferryBlue = new ferryBlue(); super(); addFrameScript(1, frame2); stop(); m_rootRef = this; m_bg = new Sprite(); m_bg.graphics.beginFill(0x333333, 1); m_bg.graphics.drawRect(0, 0, STAGE_WIDTH, STAGE_HEIGHT); m_bg.addEventListener(MouseEvent.CLICK, openKingPage); m_rootRef.addChild(m_bg); m_loaderContent.push(m_bg); stage.scaleMode = StageScaleMode.NO_SCALE; KingAPI.addEventListener(KingAPI.INITIALIZED_EVENT, onKingApiInit); KingAPI.addEventListener(KingAPI.HOST_BANNED_EVENT, onKingApiInit); KingAPI.init(GAME_NAME, root.loaderInfo.url); } private function playLoaderMovie():void{ var _local1:MovieClip = new mcFerryLine(); m_rootRef.addChild(m_ferryGreen); m_rootRef.addChild(m_ferryRed); m_rootRef.addChild(m_ferryBlue); m_ferryGreen.x = ((STAGE_WIDTH / 2) - 2); m_ferryRed.x = ((m_ferryGreen.x - (m_ferryGreen.width / 2)) + 15); m_ferryBlue.x = ((m_ferryGreen.x + (m_ferryGreen.width / 2)) - 17); m_ferryBlue.y = (m_ferryGreen.y = (m_ferryRed.y = (m_bg.y + 15))); m_loaderContent.push(m_ferryGreen); m_loaderContent.push(m_ferryRed); m_loaderContent.push(m_ferryBlue); _local1.x = (STAGE_WIDTH / 2); _local1.y = ((m_ferryGreen.y + m_ferryGreen.height) - 9); m_streamHeight = ((STAGE_HEIGHT / 2) - 40); m_clsRed = m_RED.RED; m_clsRed.init(m_streamHeight, 1); m_clsGreen = m_GREEN.GREEN; m_clsGreen.init(m_streamHeight, 1); m_clsBlue = m_BLUE.BLUE; m_clsBlue.init(m_streamHeight, 1); m_RED.alpha = (m_GREEN.alpha = (m_BLUE.alpha = 0)); m_rootRef.addChild(m_RED); m_rootRef.addChild(m_GREEN); m_rootRef.addChild(m_BLUE); m_loaderContent.push(m_RED); m_loaderContent.push(m_GREEN); m_loaderContent.push(m_BLUE); m_RED.x = ((STAGE_WIDTH / 2) - 22); m_GREEN.x = ((STAGE_WIDTH / 2) - 4); m_BLUE.x = ((STAGE_WIDTH / 2) + 16); m_RED.y = (m_GREEN.y = (m_BLUE.y = _local1.y)); m_waveEngineLogo = new WaveEngine(m_rootRef, 205.8, 120, 0xFF00, 0xFF00, m_waveHolderLogo); m_waveHolderLogo = m_waveEngineLogo.getWave(); m_rootRef.addChild(m_waveHolderLogo); m_loaderContent.push(m_waveHolderLogo); m_waveEngineCrown = new WaveEngine(m_rootRef, 67.5, 100, 0xFFAA00, 0xFFAA00, m_waveHolderCrown); m_waveHolderCrown = m_waveEngineCrown.getWave(); m_rootRef.addChild(m_waveHolderCrown); m_loaderContent.push(m_waveHolderCrown); m_logoHolder = new mcLogoHolder(); m_logoHolder.x = (STAGE_WIDTH / 2); m_logoHolder.y = ((STAGE_HEIGHT / 2) - 2); m_logoHolder.mouseEnabled = false; m_rootRef.addChild(m_logoHolder); m_loaderContent.push(m_logoHolder); m_mask = new mcLogoMask(); m_mask.x = m_logoHolder.x; m_mask.y = m_logoHolder.y; m_rootRef.addChild(m_mask); m_loaderContent.push(m_mask); m_maskRown = new mcCrownMask(); m_maskRown.x = m_logoHolder.x; m_maskRown.y = m_logoHolder.y; m_rootRef.addChild(m_maskRown); m_loaderContent.push(m_maskRown); m_waveHolderLogo.mask = m_mask; m_waveHolderLogo.x = ((STAGE_WIDTH / 2) - (m_mask.width / 2)); m_waveHolderLogo.y = (((STAGE_HEIGHT / 2) + (m_mask.height / 2)) + 15); m_waveHolderCrown.mask = m_maskRown; m_waveHolderCrown.x = (m_logoHolder.x - (m_maskRown.width / 2)); m_waveHolderCrown.y = (m_logoHolder.y + 4); m_waveEngineLogo.startWave(); m_waveEngineCrown.startWave(); m_greenDest = ((m_waveHolderLogo.y - (120 / 2)) - 10); m_yellowDest = (m_waveHolderCrown.y - (100 / 2)); m_dist = (m_waveHolderCrown.y - m_yellowDest); m_startColor = new ColorTransform(); m_startColor.color = 0xFF00; m_endColor = new ColorTransform(); m_endColor.color = 35886; m_play = new mcPlay(); m_play.x = (STAGE_WIDTH / 2); m_play.y = ((m_logoHolder.y + m_logoHolder.height) - 5); m_play.buttonMode = true; m_play.alpha = 0; m_play.visible = false; m_play.addEventListener(MouseEvent.MOUSE_UP, onPlayReleased); m_play.addEventListener(MouseEvent.MOUSE_OVER, onBtnOver); m_play.addEventListener(MouseEvent.MOUSE_OUT, onBtnOut); m_rootRef.addChild(m_play); m_loaderContent.push(m_play); m_otherGames = new mcOtherGames(); m_otherGames.x = (STAGE_WIDTH / 2); m_otherGames.y = ((m_play.y + m_play.height) + 15); m_otherGames.buttonMode = true; m_otherGames.alpha = 0; m_otherGames.visible = false; m_otherGames.addEventListener(MouseEvent.MOUSE_UP, onOtherReleased); m_otherGames.addEventListener(MouseEvent.MOUSE_OVER, onBtnOver); m_otherGames.addEventListener(MouseEvent.MOUSE_OUT, onBtnOut); m_rootRef.addChild(m_otherGames); m_loaderContent.push(m_otherGames); m_rootRef.addEventListener(Event.ENTER_FRAME, update); } private function onLoaderMovieFinished():void{ m_tween.removeEventListener(TweenEvent.MOTION_CHANGE, tweenTransformCrown); m_rootRef.removeEventListener(Event.ENTER_FRAME, update); } private function onPlayReleased(_arg1:MouseEvent):void{ cleanUp(); gotoGame(); } private function openKingPage(_arg1:Event):void{ KingAPI.openLoaderMovieLink(); } private function onBtnOut(_arg1:MouseEvent):void{ _arg1.target.removeEventListener(MouseEvent.MOUSE_DOWN, onBtnPress); if (m_pressBtn){ _arg1.target.x = (_arg1.target.x - 1); _arg1.target.y = (_arg1.target.y - 2); m_pressBtn = false; }; } private function onBtnPress(_arg1:MouseEvent):void{ m_pressBtn = true; _arg1.target.x = (_arg1.target.x + 1); _arg1.target.y = (_arg1.target.y + 2); } private function onKingApiInit(_arg1:Event):void{ if (MOCHI != ""){ MochiBot.track(this, MOCHI); }; m_gameFrameRate = root.stage.frameRate; root.stage.frameRate = 30; if (KingAPI.banned){ showBannedScreen(); return; }; if (KingAPI.isHome){ cleanUp(); gotoGame(); } else { playLoaderMovie(); }; } function frame2(){ } private function onBtnOver(_arg1:MouseEvent):void{ _arg1.target.addEventListener(MouseEvent.MOUSE_DOWN, onBtnPress); } private function tweenTransformLogo(_arg1:TweenEvent):void{ m_waveEngineLogo.colorUpdate(interpolateColor(m_startColor, m_endColor, m_tween.position).color); } private function showBannedScreen():void{ var _local1:Sprite = new mcBannedSign(); _local1.buttonMode = true; _local1.addEventListener(MouseEvent.CLICK, openKingPage); m_rootRef.addChild(_local1); } private function update(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:MovieClip; var _local5:Sound; var _local6:Sound; if ((((stage.loaderInfo.bytesLoaded == stage.loaderInfo.bytesTotal)) && (!(m_isLoaded)))){ m_isLoaded = true; }; m_count++; if (m_streamGreen){ if (m_count == 1){ m_GREEN.height = (m_GREEN.height - m_GREEN.height); m_GREEN.alpha = 1; m_ferryGreen.gotoAndStop("on"); }; m_GREEN.height = (m_GREEN.height + 20); if (m_GREEN.height >= m_streamHeight){ m_GREEN.height = m_streamHeight; if (m_clsGreen.decrThickness(false)){ m_streamGreen = false; m_streamBlue = true; m_count = 0; }; }; }; if (m_streamBlue){ if (m_count >= 40){ if (m_count == 40){ m_BLUE.height = (m_BLUE.height - m_BLUE.height); m_BLUE.alpha = 1; m_ferryBlue.gotoAndStop("on"); m_tween = new Tween(m_waveHolderLogo, "", None.easeNone, 0, 1, 2, true); m_tween.addEventListener(TweenEvent.MOTION_CHANGE, tweenTransformLogo); }; m_BLUE.height = (m_BLUE.height + 20); if (m_BLUE.height >= m_streamHeight){ m_BLUE.height = m_streamHeight; if (m_clsBlue.decrThickness(false)){ m_streamBlue = false; }; }; }; }; if (m_logoFill){ if (m_waveHolderLogo.y > m_greenDest){ m_waveHolderLogo.y = (m_waveHolderLogo.y - 0.3); } else { m_waveHolderLogo.y = m_greenDest; if (!m_streamBlue){ m_colorOff = true; m_waveEngineLogo.stopWave(); }; }; }; if (m_colorOff){ if (m_logoFill){ if (m_clsBlue.decrThickness(true)){ if (m_BLUE.rotation != 180){ m_BLUE.rotation = 180; m_BLUE.y = (STAGE_HEIGHT / 2); m_ferryBlue.gotoAndStop("off"); }; m_BLUE.scaleY = (m_BLUE.scaleY - 0.1); if (m_BLUE.scaleY < 0){ m_BLUE.alpha = 0; m_colorOff = false; m_logoFill = false; m_count = 0; m_crownFill = true; m_streamRed = true; m_startColor = new ColorTransform(); m_startColor.color = 0xFF00; m_endColor = new ColorTransform(); m_endColor.color = 0xFFAA00; m_tween.removeEventListener(TweenEvent.MOTION_CHANGE, tweenTransformLogo); m_tween = new Tween(m_waveHolderCrown, "", None.easeNone, 0, 1, 2, true); m_tween.addEventListener(TweenEvent.MOTION_CHANGE, tweenTransformCrown); }; }; }; if (m_crownFill){ if (((m_clsRed.decrThickness(true)) && (m_clsGreen.decrThickness(true)))){ if (m_GREEN.rotation != 180){ m_GREEN.rotation = 180; m_RED.rotation = 180; m_GREEN.y = (STAGE_HEIGHT / 2); m_RED.y = (STAGE_HEIGHT / 2); m_ferryGreen.gotoAndStop("off"); m_ferryRed.gotoAndStop("off"); }; m_GREEN.scaleY = (m_GREEN.scaleY - 0.1); m_RED.scaleY = (m_RED.scaleY - 0.1); if ((((m_GREEN.scaleY < 0)) && ((m_RED.scaleY < 0)))){ m_GREEN.alpha = 0; m_RED.alpha = 0; m_colorOff = false; m_crownFill = false; m_bounce = true; m_count = 0; }; }; }; }; if (m_crownFill){ if (m_sampleLoadPerc == -1){ m_sampleLoadPerc = (100 - (100 * (stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal))); m_step = (m_dist / 100); }; _local2 = (100 - (100 * (stage.loaderInfo.bytesLoaded / stage.loaderInfo.bytesTotal))); _local2 = ((100 * (m_sampleLoadPerc - _local2)) / m_sampleLoadPerc); if (m_waveHolderCrown.y > m_yellowDest){ if ((m_waveHolderCrown.y - m_step) < m_yellowDest){ m_waveHolderCrown.y = m_yellowDest; } else { if (m_isLoaded){ m_waveHolderCrown.y = (m_waveHolderCrown.y - 0.5); } else { if (m_prevPerc != _local2){ _local3 = (_local2 - m_prevPerc); m_waveHolderCrown.y = (m_waveHolderCrown.y - m_step); m_prevPerc = _local2; }; }; }; } else { m_colorOff = true; m_waveEngineCrown.stopWave(); }; }; if (m_streamRed){ if (m_count >= 20){ if (m_count == 20){ m_RED.height = (m_RED.height - m_RED.height); m_RED.alpha = 1; m_ferryRed.gotoAndStop("on"); }; m_RED.height = (m_RED.height + 20); if (m_RED.height >= m_streamHeight){ m_RED.height = m_streamHeight; if (m_clsRed.decrThickness(false)){ m_streamRed = false; }; }; }; }; if (m_bounce){ if (m_count == 1){ _local4 = new mcWaterRing(); _local4.x = (STAGE_WIDTH / 2); _local4.y = ((STAGE_HEIGHT / 2) + 30); m_rootRef.addChild(_local4); m_loaderContent.push(_local4); }; if (m_count == 2){ _local5 = new sfxBounce(); _local5.play(); }; if (m_count < 3){ m_logoHolder.y = (m_logoHolder.y + 1); m_waveHolderCrown.y = (m_waveHolderCrown.y + 1); m_waveHolderLogo.y = (m_waveHolderLogo.y + 1); m_maskRown.y = (m_maskRown.y + 1); m_mask.y = (m_mask.y + 1); }; if ((((m_count > 2)) && ((m_count < 4)))){ m_logoHolder.y = (m_logoHolder.y - 1); m_waveHolderCrown.y = (m_waveHolderCrown.y - 1); m_waveHolderLogo.y = (m_waveHolderLogo.y - 1); m_maskRown.y = (m_maskRown.y - 1); m_mask.y = (m_mask.y - 1); }; if (m_count == 4){ _local6 = new sfxBell(); _local6.play(); }; if (m_count == 30){ m_play.visible = true; m_otherGames.visible = true; }; if (m_count > 30){ m_play.alpha = (m_play.alpha + 0.05); if (m_count > 40){ m_otherGames.alpha = (m_otherGames.alpha + 0.05); }; if ((((m_play.alpha >= 1)) && ((m_otherGames.alpha >= 1)))){ m_bounce = false; onLoaderMovieFinished(); }; }; }; } private function cleanUp():void{ m_otherGames.removeEventListener(MouseEvent.MOUSE_UP, onOtherReleased); m_otherGames.removeEventListener(MouseEvent.MOUSE_DOWN, onBtnPress); m_otherGames.removeEventListener(MouseEvent.MOUSE_OVER, onBtnOver); m_otherGames.removeEventListener(MouseEvent.MOUSE_OUT, onBtnOut); m_play.removeEventListener(MouseEvent.MOUSE_UP, onPlayReleased); m_play.removeEventListener(MouseEvent.MOUSE_DOWN, onBtnPress); m_play.removeEventListener(MouseEvent.MOUSE_OVER, onBtnOver); m_play.removeEventListener(MouseEvent.MOUSE_OUT, onBtnOut); var _local1:int; while (_local1 < m_loaderContent.length) { m_rootRef.removeChild(m_loaderContent[_local1]); m_loaderContent[_local1] = null; _local1++; }; } private function onOtherReleased(_arg1:MouseEvent):void{ cleanUp(); KingAPI.openOtherGamesLink(); } private function interpolateColor(_arg1:ColorTransform, _arg2:ColorTransform, _arg3:Number):ColorTransform{ var _local4:ColorTransform = new ColorTransform(); _local4.redMultiplier = (_arg1.redMultiplier + ((_arg2.redMultiplier - _arg1.redMultiplier) * _arg3)); _local4.greenMultiplier = (_arg1.greenMultiplier + ((_arg2.greenMultiplier - _arg1.greenMultiplier) * _arg3)); _local4.blueMultiplier = (_arg1.blueMultiplier + ((_arg2.blueMultiplier - _arg1.blueMultiplier) * _arg3)); _local4.alphaMultiplier = (_arg1.alphaMultiplier + ((_arg2.alphaMultiplier - _arg1.alphaMultiplier) * _arg3)); _local4.redOffset = (_arg1.redOffset + ((_arg2.redOffset - _arg1.redOffset) * _arg3)); _local4.greenOffset = (_arg1.greenOffset + ((_arg2.greenOffset - _arg1.greenOffset) * _arg3)); _local4.blueOffset = (_arg1.blueOffset + ((_arg2.blueOffset - _arg1.blueOffset) * _arg3)); _local4.alphaOffset = (_arg1.alphaOffset + ((_arg2.alphaOffset - _arg1.alphaOffset) * _arg3)); return (_local4); } private function gotoGame():void{ root.stage.frameRate = m_gameFrameRate; m_rootRef.gotoAndStop(2); } private function tweenTransformCrown(_arg1:TweenEvent):void{ m_waveEngineCrown.colorUpdate(interpolateColor(m_startColor, m_endColor, m_tween.position).color); } } }//package com.midasplayer
Section 38
//Language (com.my.Language) package com.my { import flash.utils.*; public dynamic class Language extends Dictionary { } }//package com.my
Section 39
//MyArray (com.my.MyArray) package com.my { public dynamic class MyArray extends Array { public function MyArray(... _args):void{ splice(this, [0, 0].concat(_args)); super(); } public static function suffle(_arg1:Array):void{ var _local3:int; var _local4:*; var _local2:int = _arg1.length; while (_local2--) { _local3 = Math.floor((Math.random() * _arg1.length)); _local4 = _arg1[_local2]; _arg1[_local2] = _arg1[_local3]; _arg1[_local3] = _local4; }; } public static function remove(_arg1:Array, _arg2):void{ var _local3:int = _arg1.length; var _local4:Array = []; while (_local3--) { if (_arg1[_local3] != _arg2){ _local4.push(_arg1[_local3]); }; }; } public static function selectRandom(_arg1:Array){ return (_arg1[Math.ceil(((Math.random() * _arg1.length) - 1))]); } } }//package com.my
Section 40
//MyButton (com.my.MyButton) package com.my { import flash.display.*; import flash.events.*; import flash.text.*; import flash.media.*; public dynamic class MyButton extends MovieClip { private var arrColor:Object; public var tick:MovieClip; public var sdRollOver:Sound;// = null public var onClick:Function;// = null public var txtId:TextField; public var onRollOver:Function;// = null public var onRollOut:Function;// = null public var sdRelease:Sound;// = null public var txt:TextField; public var roll:MovieClip; public function MyButton(){ arrColor = []; super(); addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true); addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, press, false, 0, true); addEventListener(MouseEvent.CLICK, click, false, 0, true); addEventListener(MouseEvent.MOUSE_OVER, rollOver, false, 0, true); addEventListener(MouseEvent.MOUSE_OUT, rollOut, false, 0, true); buttonMode = true; mouseChildren = false; useHandCursor = true; if (!txt){ txt = new TextField(); }; } private function added(_arg1:Event):void{ stop(); txt.selectable = false; } private function press(_arg1:MouseEvent):void{ stage.addEventListener(MouseEvent.MOUSE_UP, releaseOutside); goto(3); } public function get textColor():Number{ return (txt.textColor); } private function click(_arg1:MouseEvent):void{ goto(2); if (onClick != null){ onClick(_arg1); }; if (sdRelease != null){ sdRelease.play(); }; } private function rollOut(_arg1:MouseEvent):void{ goto(1); if (onRollOut != null){ onRollOut(_arg1); }; } public function set text(_arg1:String):void{ txt.text = String(_arg1); } private function releaseOutside(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, releaseOutside); if (_arg1.currentTarget != this){ dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OUT)); }; } private function goto(_arg1:int):void{ gotoAndStop(_arg1); textColor = arrColor[(_arg1 - 1)]; } public function get text():String{ return (String(txt.text)); } private function removed(_arg1:Event):void{ removeEventListener(Event.REMOVED, removed); removeEventListener(Event.ADDED, added); removeEventListener(MouseEvent.MOUSE_DOWN, press); removeEventListener(MouseEvent.CLICK, click); removeEventListener(MouseEvent.MOUSE_OVER, rollOver); removeEventListener(MouseEvent.MOUSE_OUT, rollOut); stage.removeEventListener(MouseEvent.MOUSE_UP, releaseOutside); } private function rollOver(_arg1:MouseEvent):void{ if (_arg1.buttonDown){ dispatchEvent(new MouseEvent(MouseEvent.MOUSE_DOWN)); } else { goto(2); }; if (sdRollOver){ sdRollOver.play(); }; if (onRollOver != null){ onRollOver(_arg1); }; } public function setColors(_arg1:Number, _arg2:Number, _arg3:Number):void{ arrColor = [_arg1, _arg2, _arg3]; textColor = arrColor[0]; } public function set textColor(_arg1:Number):void{ if (!isNaN(_arg1)){ txt.textColor = _arg1; }; } } }//package com.my
Section 41
//MyFileLoader (com.my.MyFileLoader) package com.my { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class MyFileLoader { public var fcError:Function;// = null public var fcComplete:Function;// = null public function MyFileLoader(_arg1:String, _arg2:Function=null, _arg3:Function=null){ var pDownloadURL = _arg1; var pFcComplete = _arg2; var pFcError = _arg3; super(); var loader:Loader = new Loader(); configureListeners(loader.contentLoaderInfo); fcComplete = pFcComplete; fcError = pFcError; var request:URLRequest = new URLRequest(pDownloadURL); try { loader.load(request); } catch(error:Error) { }; } private function openHandler(_arg1:Event):void{ } private function completeHandler(_arg1:Event):void{ if (fcComplete != null){ fcComplete(_arg1); }; } private function securityErrorHandler(_arg1:SecurityErrorEvent):void{ if (fcError != null){ fcError(_arg1); }; } private function progressHandler(_arg1:ProgressEvent):void{ } private function httpStatusHandler(_arg1:HTTPStatusEvent):void{ } private function ioErrorHandler(_arg1:IOErrorEvent):void{ if (fcError != null){ fcError(_arg1); }; } private function configureListeners(_arg1:IEventDispatcher):void{ _arg1.addEventListener(Event.COMPLETE, completeHandler); _arg1.addEventListener(Event.OPEN, openHandler); _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); _arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); _arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); } } }//package com.my
Section 42
//MyMain (com.my.MyMain) package com.my { import flash.display.*; import flash.events.*; import flash.net.*; import mochi.as3.*; import flash.utils.*; import com.*; import flash.media.*; import flash.system.*; import flash.ui.*; public dynamic class MyMain extends MyMovieClip { protected const ARR_LANGUAGE:Array; protected var size:String; protected var arrDomain:Array; private var cookieName:String; private var fcCookie:Function; protected var gameLoaded:Boolean;// = false private var cookieLoaded:Boolean;// = true protected var website:String; protected var gameUrl:String; protected var nextPage:String; protected var ad:Boolean;// = false private var xmlLanguage:XML; protected var gameId:String; protected var localMode:Boolean;// = false protected var gameNameCopy:String; protected var urlLocal:String; protected var domain:String; protected var mochibotId:String; protected var arrLanguage:Array; protected var kongregate; protected var language:String;// = "en" protected var mochiadId:String; protected var urlLanguage:String; protected var moreGames:String; public static var volume:Number = 1; public static var lang:Dictionary = new Dictionary(); public function MyMain():void{ xmlLanguage = new XML(); ARR_LANGUAGE = [{code:"cs", language:"Czech"}, {code:"da", language:"Danish"}, {code:"nl", language:"Dutch"}, {code:"en", language:"English"}, {code:"fi", language:"Finnish"}, {code:"fr", language:"French"}, {code:"de", language:"German"}, {code:"hu", language:"Hungarian"}, {code:"it", language:"Italian"}, {code:"ja", language:"Japanese"}, {code:"ko", language:"Korean"}, {code:"no", language:"Norwegian"}, {code:"pl", language:"Polish"}, {code:"pt", language:"Portuguese"}, {code:"ru", language:"Russian"}, {code:"zh-CN", language:"Simp. Chinese"}, {code:"es", language:"Spanish"}, {code:"sv", language:"Swedish"}, {code:"zh-TW", language:"Trad. Chinese"}, {code:"tr", language:"Turkish"}]; arrLanguage = []; super(); Security.allowDomain("benoitfreslon.com"); Security.allowDomain("www.benoitfreslon.com"); Security.allowDomain("*"); Security.allowInsecureDomain("*"); myContextMenu(); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); var _local1:Array = loaderInfo.url.split("://"); domain = _local1[1].split("/")[0]; testLocal(); } private function cookieError(_arg1:ErrorEvent=null):void{ fcCookie(SharedObject.getLocal(cookieName, "/")); cookieLoaded = true; } protected function shareOnFacebook(_arg1:MouseEvent=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest(("http://www.facebook.com/share.php?u=" + gameUrl)); navigateToURL(request, "_blank"); } catch(error:Error) { }; } private function loaded(_arg1:Event):void{ gameLoaded = true; } public function mute():void{ if (SoundMixer.soundTransform.volume == 1){ SoundMixer.soundTransform = new SoundTransform(0); } else { SoundMixer.soundTransform = new SoundTransform(1); }; } public function languageError(_arg1:Event):void{ new MyTextLoader("language.xml", null, languageLoaded, loadLanguage); } public function gotoMode(_arg1:MouseEvent=null):void{ changePage("mode"); } private function cookieDownloaded(_arg1:Event):void{ var _local2:LoaderInfo = LoaderInfo(_arg1.target); var _local3:DisplayObject = _local2.content; addChild(_local3); fcCookie(_local3["getCookie"](cookieName)); cookieLoaded = true; } protected function pageLoading():void{ stage.loaderInfo.addEventListener(Event.COMPLETE, loaded); if (stage.loaderInfo.bytesLoaded == stage.loaderInfo.bytesTotal){ gameLoaded = true; }; addEventListener(Event.ENTER_FRAME, loading); } public function gotoCredits(_arg1:MouseEvent=null):void{ changePage("credits"); } protected function gotoWebsite(_arg1=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest(website); navigateToURL(request, "_blank"); } catch(error:Error) { }; } protected function kongregateAPI():void{ var request:URLRequest; var loader:Loader; if (domain != "chat.kongregate.com"){ return; }; var paramObj:Object = LoaderInfo(root.loaderInfo).parameters; if (domain != "chat.kongregate.com"){ }; var api_url:String = ((paramObj.api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf")); Security.loadPolicyFile("http://www.kongregate.com/crossdomain.xml"); try { request = new URLRequest(api_url); loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); loader.load(request); this.addChild(loader); } catch(error:Error) { }; } public function gotoDev(_arg1:MouseEvent=null):void{ changePage("dev"); } public function languageChanged():void{ } protected function gotoMoreGames(_arg1=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest(moreGames); navigateToURL(request, "_blank"); } catch(error:Error) { }; } public function transitionEnd():void{ gotoAndStop2(nextPage); } public function gotoGameover(_arg1:MouseEvent=null):void{ changePage("gameover"); } protected function loading(_arg1:Event):void{ if (((((cookieLoaded) && (!((xmlLanguage == null))))) && (gameLoaded))){ gotoAd(); removeEventListener(Event.ENTER_FRAME, loading); }; } private function loadComplete(_arg1:Event):void{ kongregate = _arg1.target.content; kongregate.services.connect(); } protected function getGlobalCookie(_arg1:String, _arg2:Function):void{ var mfl:MyFileLoader; var pCookieName = _arg1; var pFcCookie = _arg2; fcCookie = pFcCookie; cookieName = pCookieName; try { mfl = new MyFileLoader("http://www.benoitfreslon.com/modules/cookie/cookie_as3.swf", cookieDownloaded, cookieError); } catch(e) { cookieError(); }; } protected function loadLanguage():void{ xmlLanguage = null; new MyTextLoader(urlLanguage, null, languageLoaded, languageError); } protected function setLanguage(_arg1:String):Object{ var _local3:XML; var _local4:XMLList; language = _arg1; xmlLanguage.ignoreWhitespace = true; xmlLanguage.ignoreComments = true; var _local2:XMLList = xmlLanguage.child("en").children(); for each (_local3 in _local2) { Language[_local3.name()] = _local3; }; _local4 = xmlLanguage.child(_arg1).children(); for each (_local3 in _local4) { Language[_local3.name()] = _local3; }; languageChanged(); return (Language); } protected function myContextMenu():void{ var _local1:ContextMenu = new ContextMenu(); _local1.hideBuiltInItems(); var _local2:ContextMenuItem = new ContextMenuItem(gameNameCopy); _local2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, gotoWebsite); _local2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, gotoWebsite); var _local3:ContextMenuItem = new ContextMenuItem("Benoit Freslon"); _local3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, gotoWebsite); var _local4:ContextMenuItem = new ContextMenuItem("www.benoitfreslon.com"); _local4.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, gotoWebsite); _local1.customItems = [_local2, _local3, _local4]; contextMenu = _local1; contextMenu.builtInItems; } public function gotoHiscores(_arg1:MouseEvent=null):void{ changePage("hiscores"); } public function gotoAd(_arg1:MouseEvent=null):void{ changePage("ad"); } protected function keyUp(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 83){ mute(); }; } public function changePage(_arg1:String):void{ nextPage = _arg1; } public function gotoTutorial1(_arg1:MouseEvent=null):void{ changePage("tutorial1"); } public function gotoTutorial2(_arg1:MouseEvent=null):void{ changePage("tutorial2"); } public function gotoGame(_arg1:MouseEvent=null):void{ changePage("game"); } private function testLocal():void{ if (loaderInfo.url == urlLocal){ localMode = true; }; } public function gotoMenu(_arg1:MouseEvent=null):void{ changePage("menu"); } function adFinished():void{ changePage("menu"); } protected function gotoHelpMe(_arg1=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest(urlLanguage); navigateToURL(request, "_blank"); } catch(error:Error) { }; } public function languageLoaded(_arg1:Event):void{ var xml:XML; var pEvt = _arg1; try { xmlLanguage = new XML(pEvt.target.data); arrLanguage = []; for each (xml in xmlLanguage.children()) { arrLanguage.push({code:xml.name(), language:xml.@language}); }; setLanguage(Capabilities.language); } catch(e) { new MyTextLoader("language.xml", null, languageLoaded, loadLanguage); }; } } }//package com.my
Section 43
//MyMath (com.my.MyMath) package com.my { public class MyMath { public static const COEF_RAD_2_DEG:Number = 57.2957795130823; public static const PI_BY_2:Number = 6.28318530717959; public static const COEF_DEG_2_RAD:Number = 0.0174532925199433; public static const PI_ON_2:Number = 1.5707963267949; public static function pythagore(_arg1:Number, _arg2):Number{ return (Math.sqrt((Math.pow(_arg1, 2) + Math.pow(_arg2, 2)))); } public static function getResAngle(_arg1:Number, _arg2:Number):Number{ var _local3:Number = (_arg1 - _arg2); if (_local3 > 180){ _local3 = (_local3 - 360); } else { if (_local3 < -180){ _local3 = (_local3 + 360); }; }; return (_local3); } public static function threshold(_arg1:Number, _arg2:Number, _arg3:Number):Number{ return (Math.max(Math.min(_arg1, _arg3), _arg2)); } public static function getResAngleRad(_arg1:Number, _arg2:Number):Number{ var _local3:Number = (_arg1 - _arg2); if (_local3 > Math.PI){ _local3 = (_local3 - MyMath.PI_BY_2); } else { if (_local3 < -(Math.PI)){ _local3 = (_local3 + MyMath.PI_BY_2); }; }; return (_local3); } public static function randRange(_arg1:Number, _arg2:Number):Number{ return ((_arg1 + (Math.random() * (_arg2 - _arg1)))); } } }//package com.my
Section 44
//MyMovieClip (com.my.MyMovieClip) package com.my { import flash.display.*; import flash.events.*; public dynamic class MyMovieClip extends MovieClip { public function get scale():Number{ return (((scaleX + scaleY) / 2)); } public function angleRadian(_arg1:MovieClip):Number{ return (Math.atan2((_arg1.y - y), (_arg1.x - x))); } public function distance(_arg1):Number{ return (Math.sqrt((Math.pow((x - _arg1.x), 2) + Math.pow((y - _arg1.y), 2)))); } public function set scale(_arg1:Number):void{ scaleX = _arg1; scaleY = _arg1; } public function setColor(_arg1:uint):void{ } public function gotoAndPlay2(_arg1, _arg2:String=null):void{ var myGotoAndPlay:Function; var pFrame = _arg1; var pSequence = _arg2; myGotoAndPlay = function (_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, myGotoAndPlay); if (pSequence){ gotoAndPlay(pFrame, pSequence); } else { gotoAndPlay(pFrame); }; }; addEventListener(Event.ENTER_FRAME, myGotoAndPlay, false, 0, true); } public function mimic(_arg1:MovieClip):void{ gotoAndStop(_arg1.currentFrame); alpha = _arg1.alpha; scaleX = _arg1.scaleX; scaleY = _arg1.scaleY; width = _arg1.width; height = _arg1.height; rotation = _arg1.rotation; } public function gotoAndStop2(_arg1, _arg2:String=null):void{ var myGotoAndStop:Function; var pFrame = _arg1; var pSequence = _arg2; myGotoAndStop = function (_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, myGotoAndStop); if (pSequence){ gotoAndStop(pFrame, pSequence); } else { gotoAndStop(pFrame); }; }; addEventListener(Event.ENTER_FRAME, myGotoAndStop, false, 0, true); } public function remove():void{ stop(); if (MovieClip(parent)){ if (MovieClip(parent).contains(this)){ MovieClip(parent).removeChild(this); }; }; } public function removeAllChildren():void{ while (numChildren) { removeChildAt(0); }; } } }//package com.my
Section 45
//MyTextLoader (com.my.MyTextLoader) package com.my { import flash.events.*; import flash.net.*; public dynamic class MyTextLoader { public var fcError:Function;// = null public var fcComplete:Function;// = null public function MyTextLoader(_arg1:String, _arg2:URLVariables=null, _arg3:Function=null, _arg4:Function=null){ var pDownloadURL = _arg1; var pVariables = _arg2; var pFcComplete = _arg3; var pFcError = _arg4; super(); var loader:URLLoader = new URLLoader(); configureListeners(loader); fcComplete = pFcComplete; fcError = pFcError; var request:URLRequest = new URLRequest(pDownloadURL); if (pVariables != null){ request.data = pVariables; }; try { loader.load(request); } catch(error:Error) { }; } private function openHandler(_arg1:Event):void{ } private function completeHandler(_arg1:Event):void{ if (fcComplete != null){ fcComplete(_arg1); }; } private function securityErrorHandler(_arg1:SecurityErrorEvent):void{ if (fcError != null){ fcError(_arg1); }; } private function progressHandler(_arg1:ProgressEvent):void{ } private function httpStatusHandler(_arg1:HTTPStatusEvent):void{ } private function ioErrorHandler(_arg1:IOErrorEvent):void{ if (fcError != null){ fcError(_arg1); }; } private function configureListeners(_arg1:IEventDispatcher):void{ _arg1.addEventListener(Event.COMPLETE, completeHandler); _arg1.addEventListener(Event.OPEN, openHandler); _arg1.addEventListener(ProgressEvent.PROGRESS, progressHandler); _arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler); _arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); _arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); } } }//package com.my
Section 46
//Sitelock (com.my.Sitelock) package com.my { import flash.display.*; import flash.events.*; import flash.net.*; import flash.text.*; import flash.media.*; public class Sitelock { public function Sitelock(_arg1:MovieClip, _arg2:String, _arg3:Array, _arg4:Boolean=true):void{ } public static function check(_arg1:MovieClip, _arg2:String, _arg3:Array, _arg4:Boolean=true):void{ var mc:MovieClip; var newAddress:String; var i:String; var gotoWebsite:Function; var pMc = _arg1; var pNewAddress = _arg2; var pArrUrl = _arg3; var pLocal = _arg4; var destroy:Function = function (_arg1:String):void{ SoundMixer.stopAll(); SoundMixer.soundTransform = new SoundTransform(0, 0); var _local2:int = mc.numChildren; while (_local2--) { if ((mc.getChildAt(_local2) is MovieClip)){ (mc.getChildAt(_local2) as MovieClip).visible = false; (mc.getChildAt(_local2) as MovieClip).stop(); }; }; var _local3:MovieClip = new MovieClip(); _local3.graphics.beginFill(0); _local3.graphics.drawRect(0, 0, 10000, 10000); _local3.graphics.endFill(); mc.addChild(_local3); var _local4:TextField = new TextField(); _local4.backgroundColor = 0; _local4.border = true; _local4.background = true; _local4.selectable = false; _local4.textColor = 0xFFFFFF; _local4.borderColor = 0xFFFFFF; _local4.htmlText = (((((("<p align='center'><a href='" + newAddress) + "'><font face='Verdana'><b>Sorry!</b>\n\n<font color='#FF9900'><b>") + _arg1) + "</b></font>\n\nPlease go to\n<u>") + newAddress) + "\n\n<b>Click here to play the game</a></p>"); _local4.autoSize = "center"; _local4.x = ((mc.stage.stageWidth / 2) - (_local4.width / 2)); _local4.y = ((mc.stage.stageHeight / 2) - (_local4.height / 2)); mc.buttonMode = true; mc.stage.addChild(_local4); mc.stage.addEventListener(MouseEvent.CLICK, gotoWebsite); }; gotoWebsite = function (_arg1:MouseEvent):void{ var pEvt = _arg1; var request:URLRequest = new URLRequest(newAddress); try { navigateToURL(request, "_blank"); } catch(error:Error) { }; }; mc = pMc; newAddress = pNewAddress; var arrUrl:Array = pArrUrl; var isAut:Boolean; var url:String = mc.loaderInfo.url; var arr:Array = mc.loaderInfo.url.split("://"); var domain:String = arr[1].split("/")[0]; for (i in arrUrl) { arr = domain.split(arrUrl[i]); if (arr.length > 1){ isAut = true; break; }; }; if (url.split("file://").length > 1){ if (pLocal){ return; }; destroy("Local mode is restricted"); return; }; if (!isAut){ destroy("Unauthaurized domain"); }; } } }//package com.my
Section 47
//Main (com.Main) package com { import fl.controls.*; import flash.display.*; import flash.events.*; import flash.net.*; import MoFunZoneAPI.*; import mochi.as3.*; import flash.utils.*; import flash.text.*; import com.my.*; import com.midasplayer.*; import com.fx.*; import com.games.*; import flash.system.*; import flash.ui.*; public dynamic class Main extends MyMain { public var txtTakeTheHints:TextField; private var cheatMode:Boolean;// = false public var cTransition:MovieClip; public var btHost:Button; public var txtGameName:MovieClip; private var sdGameover:SdGameover; public var txtInfo:TextField; private var ARR_GAME:Array; public var btMoreGames:Button; private var testMode:Boolean;// = false public var btBack:Button; public var __setPropDict:Dictionary; private var transition:TransitionPage; public var btPlayAgain:Button; public var so:SharedObject; public var txtRules:TextField; public var smartkit:Boolean;// = false private var finished:Boolean;// = false public var nextGame:int;// = 0 private var previousGame:int;// = -1 private var siTimer:int;// = -1 public var king:Boolean;// = true public var column0:MovieClip; public var column1:MovieClip; public var column2:MovieClip; public var column3:MovieClip; public var column4:MovieClip; public var disclaimer:MovieClip; public var txtGameName2:TextField; public var btPlay:Button; public var btShare:Button; public var btHelp:Button; public var txtCanReadThat:TextField; public var txtTitle:TextField; public var mofunzone:Boolean;// = false public var listLanguage1:ComboBox; public var listLanguage2:ComboBox; public var armorgames:Boolean;// = false public var btTip:Button; private var sdDing:SdDing; private var game:MyMovieClip; public var cGame:MovieClip; public static var lang:Object = new Object(); public function Main():void{ var config:*; __setPropDict = new Dictionary(true); sdGameover = new SdGameover(); sdDing = new SdDing(); ARR_GAME = []; addFrameScript(0, frame1, 6, frame7, 12, frame13, 19, frame20, 26, frame27, 32, frame33, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 33, frame34, 34, frame35, 35, frame36, 36, frame37); gameNameCopy = "Take something literally © 2009"; gameId = "tsl"; gameUrl = "http://www.benoitfreslon.com/my-games/take-something-literally"; mochiadId = "7a8e683f44973999"; size = "550x400"; mochibotId = "0205cfb7"; website = "http://www.benoitfreslon.com/"; urlLocal = "file:///D|/Workshop/Projets/Ceci%20n%27est%20pas%20un%20jeu/2%5Frelease/take%5Fsomething%5Fliterally.swf"; urlLanguage = "http://www.benoitfreslon.com/games/take_something_literally/language.xml"; arrDomain = ["kongregate.com", "thisisgameplay.com", "flashgamelicense.com", "armorgames.com", "mofunzone.com", "benoitfreslon.com"]; moreGames = "http://apps.facebook.com/funflow/games/?ref=take-something-literally"; localMode = false; ad = false; initContextMenu(); getGlobalCookie("take_something_literally", getCookie); stage.scaleMode = StageScaleMode.NO_SCALE; super(); if (((!(armorgames)) && (!(mofunzone)))){ kongregateAPI(); MochiBot.track(this, mochibotId); ad = true; }; if (armorgames){ gameUrl = "http://www.armorgames.com/"; } else { if (mofunzone){ var readyCallBack:Function = function (){ }; gameUrl = "http://www.mofunzone.com/"; Security.loadPolicyFile("http://www.mofunzone.com/crossdomain.xml"); config = new AchievementConfig(); config.test = false; config.gameid = "take_somthing_literally"; config.workspaceWidth = 550; config.workspaceHeight = 400; config.autoPosition = "bc"; config.bringToTop = true; config.fadeout = true; config.dialogScale = 1; AchievementLoaderAS3.readyCallBack(readyCallBack); AchievementLoaderAS3.loadAchievement("http://www.mofunzone.com/api/AchievementAS3.swf", this, config); } else { if (smartkit){ arrDomain = ["smart-kit.com", "www.smart-kit.com"]; ad = false; } else { if (king){ gameLoaded = true; ad = false; moreGames = "http://apps.facebook.com/funflow/games/?ref=take-something-literally"; gameUrl = "http%3A%2F%2Ffacebook.king.com%2Ffacebook%2Fkinggames%2Fgames%2Fshare.jsp%3FgameId%3D72"; }; }; }; }; if (!king){ Sitelock.check(this, gameUrl, arrDomain, true); }; loadLanguage(); } private function pageCredits():void{ } private function pageTutorial():void{ } private function pageHiscores():void{ } function __setProp_btHost_Main_Calque6_12(){ try { btHost["componentInspectorSetting"] = true; } catch(e:Error) { }; btHost.emphasized = false; btHost.enabled = true; btHost.label = "Host this game"; btHost.labelPlacement = "right"; btHost.selected = false; btHost.toggle = false; btHost.visible = true; try { btHost["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function pageAd():void{ if (((((ad) && (!(armorgames)))) && (!(mofunzone)))){ MochiAd.showPreGameAd({clip:root, id:mochiadId, ad_finished:adFinished, res:size, background:"0xCCCCCC", color:"0x999999", no_bg:true}); } else { if (((armorgames) || (mofunzone))){ } else { if (!king){ changePage("dev"); } else { gotoAndStop("menu"); }; }; }; } private function rollOutGame(_arg1:MouseEvent):void{ txtGameName.txt.txt.text = (("< " + Language["selectANumber"]) + " >"); if (finished){ txtGameName.txt.txt.text = (("*** " + Language["congratulations"]) + " ***"); }; txtGameName.gotoAndPlay(1); _arg1.currentTarget.roll.gotoAndStop(1); } private function changeLanguage(_arg1:Event):void{ var _local2:String = _arg1.currentTarget.selectedItem.data; if (_local2 == "null"){ gotoHelpMe(); } else { if (_local2){ setLanguage(_arg1.currentTarget.selectedItem.data); if (nextPage == "menu"){ pageMenu(); } else { if (nextPage == "selection"){ pageSelection(); }; }; }; }; } private function createListLanguage(_arg1):void{ var _local2:String; _arg1.removeAll(); for (_local2 in arrLanguage) { _arg1.addItem({label:arrLanguage[_local2].language, data:arrLanguage[_local2].code}); if (language == arrLanguage[_local2].code){ _arg1.selectedIndex = int(_local2); }; }; _arg1.addEventListener(Event.CHANGE, changeLanguage); _arg1.addItem({label:Language["iWillTranslate"], data:"null"}); } private function pageGame():void{ so.data.currentGame = nextGame; so.flush(); game = new ARR_GAME[nextGame].mc(); txtGameName2.text = ARR_GAME[nextGame].name; txtGameName2.mouseEnabled = false; cGame.addChild(game); game.init(this); btBack.label = Language["iGiveUp"]; if (!ARR_GAME[nextGame].giveup){ btBack.visible = false; } else { btBack.addEventListener(MouseEvent.CLICK, backToSelection); btBack.mouseFocusEnabled = false; btBack.focusEnabled = false; }; siTimer = setInterval(decreaseSecond, 1000); var _local1:String = (" " + Language["seconds"]); if (ARR_GAME[so.data.currentGame].time == 1){ _local1 = (" " + Language["second"]); }; btTip.label = (((Language["aTipWillBeAvailiable"] + " ") + ARR_GAME[so.data.currentGame].time) + _local1); previousGame = nextGame; } override public function languageChanged():void{ ARR_GAME = [{name:Language["toRemove"], mc:OutOfFlash, reloadable:false, giveup:true, time:30, tip:Language["toRemoveTip"]}, {name:Language["readThat"], mc:Read, reloadable:false, giveup:true, time:60, tip:Language["readThatTip"]}, {name:Language["doThat"], mc:RightClick, reloadable:false, giveup:true, time:120, tip:Language["doThatTip"]}, {name:Language["switchTheLight"], mc:SwitchTheLight, reloadable:false, giveup:true, time:120, tip:Language["switchTheLightTip"]}, {name:Language["dodge"], mc:Dodge, reloadable:false, giveup:false, time:60, tip:Language["dodgeTip"]}, {name:Language["beforeStart"], mc:IWasHere, reloadable:false, giveup:false, time:60, tip:Language["beforeStartTip"]}, {name:Language["dontTrust"], mc:DontThrust, reloadable:false, giveup:true, time:60, tip:Language["dontTrust"]}, {name:Language["myUrl"], mc:MyURL, reloadable:false, giveup:true, time:120, tip:Language["myUrlTip"]}, {name:Language["tooFarFromMe"], mc:ZoomIn, reloadable:false, giveup:true, time:120, tip:Language["tooFarFromMeTip"]}, {name:Language["getOut"], mc:GetOut, reloadable:false, giveup:false, time:120, tip:Language["getOutTip"]}, {name:Language["brighter"], mc:Lighter, reloadable:false, giveup:true, time:180, tip:Language["brighterTip"]}, {name:Language["louder"], mc:Laouder, reloadable:false, giveup:true, time:180, tip:Language["louderTip"]}, {name:Language["wheel"], mc:Wheel, reloadable:false, giveup:true, time:180, tip:Language["wheelTip"]}, {name:Language["smoother"], mc:Quality, reloadable:false, giveup:true, time:180, tip:Language["smootherTip"]}, {name:Language["first"], mc:First, reloadable:false, giveup:true, time:180, tip:Language["firstTip"]}, {name:Language["candle"], mc:Candle, reloadable:false, giveup:true, time:180, tip:Language["candleTip"]}, {name:Language["myCorners"], mc:Coordinates, reloadable:false, giveup:true, time:180, tip:Language["myCornersTip"]}, {name:Language["circleMe"], mc:CircleMe, reloadable:false, giveup:true, time:240, tip:Language["circleMeTip"]}, {name:Language["greenLight"], mc:GreenLightRedLight, reloadable:false, giveup:true, time:240, tip:Language["greenLightTip"]}, {name:Language["fullyLoaded"], mc:FullyLoaded, reloadable:true, giveup:true, time:300, tip:Language["fullyLoadedTip"]}, {name:Language["ping"], mc:Ping, reloadable:false, giveup:true, time:300, tip:Language["pingTip"]}, {name:Language["pong"], mc:Pong, reloadable:false, giveup:true, time:300, tip:Language["pongTip"]}, {name:Language["itsAlreadyTooLate"], mc:ItsAlreadyTooLate, reloadable:false, giveup:true, time:420, tip:Language["itsAlreadyTooLateTip"]}, {name:Language["paste"], mc:Paste, reloadable:false, giveup:true, time:420, tip:Language["pasteTip"]}, {name:Language["onThePaper"], mc:OnThePaperOnly, reloadable:false, giveup:true, time:420, tip:Language["onThePaperTip"]}]; } public function getCompletedGames():int{ var _local1:int; var _local2:int; while (_local2 < 25) { if (so.data[("game_" + _local2)] == "ok"){ _local1++; }; _local2++; }; return (_local1); } function __setProp_btPlayAgain_Main_title_19(){ try { btPlayAgain["componentInspectorSetting"] = true; } catch(e:Error) { }; btPlayAgain.emphasized = false; btPlayAgain.enabled = true; btPlayAgain.label = "Play Again"; btPlayAgain.labelPlacement = "right"; btPlayAgain.selected = false; btPlayAgain.toggle = false; btPlayAgain.visible = true; try { btPlayAgain["componentInspectorSetting"] = false; } catch(e:Error) { }; } override public function transitionEnd():void{ super.transitionEnd(); transition.mouseChildren = false; transition.mouseEnabled = false; cTransition.addChild(transition); } private function getCompletedParts():int{ var _local3:int; var _local4:int; var _local1:int; var _local2:int; while (_local2 < 5) { _local3 = 0; _local4 = 0; while (_local4 < 5) { if (so.data[("game_" + (_local4 + (_local2 * 5)))] == "ok"){ _local3++; }; if (_local3 >= 3){ _local1++; _local4 = 5; }; _local4++; }; _local2++; }; if (cheatMode){ return (5); }; return (_local1); } function frame11(){ if ((((__setPropDict[btPlay] == undefined)) || (!((((int(__setPropDict[btPlay]) >= 7)) && ((int(__setPropDict[btPlay]) <= 12))))))){ __setPropDict[btPlay] = currentFrame; __setProp_btPlay_Main_title_6(); }; } function __setProp_btTip_Main_title_26(){ try { btTip["componentInspectorSetting"] = true; } catch(e:Error) { }; btTip.emphasized = false; btTip.enabled = false; btTip.label = ""; btTip.labelPlacement = "right"; btTip.selected = false; btTip.toggle = false; btTip.visible = true; try { btTip["componentInspectorSetting"] = false; } catch(e:Error) { }; } function frame13(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; stop(); pageSelection(); } function frame14(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; } function frame15(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; } function frame16(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; } function frame10(){ if ((((__setPropDict[btPlay] == undefined)) || (!((((int(__setPropDict[btPlay]) >= 7)) && ((int(__setPropDict[btPlay]) <= 12))))))){ __setPropDict[btPlay] = currentFrame; __setProp_btPlay_Main_title_6(); }; } function frame18(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; } protected function getCookie(_arg1:SharedObject):void{ so = _arg1; } function frame12(){ if ((((__setPropDict[btPlay] == undefined)) || (!((((int(__setPropDict[btPlay]) >= 7)) && ((int(__setPropDict[btPlay]) <= 12))))))){ __setPropDict[btPlay] = currentFrame; __setProp_btPlay_Main_title_6(); }; } override public function changePage(_arg1:String):void{ transition = new TransitionPage(); cTransition.addChild(transition); cTransition.mouseChildren = false; cTransition.mouseEnabled = false; transition.gotoAndPlay(1); super.changePage(_arg1); } function frame17(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; } function frame1(){ stop(); pageLoading(); } function __setProp_btPlay_Main_title_6(){ try { btPlay["componentInspectorSetting"] = true; } catch(e:Error) { }; btPlay.emphasized = false; btPlay.enabled = true; btPlay.label = "Agree and Start"; btPlay.labelPlacement = "right"; btPlay.selected = false; btPlay.toggle = false; btPlay.visible = true; try { btPlay["componentInspectorSetting"] = false; } catch(e:Error) { }; } function frame7(){ if ((((__setPropDict[btPlay] == undefined)) || (!((((int(__setPropDict[btPlay]) >= 7)) && ((int(__setPropDict[btPlay]) <= 12))))))){ __setPropDict[btPlay] = currentFrame; __setProp_btPlay_Main_title_6(); }; stop(); pageMenu(); } function frame20(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; stop(); pageGameover(); } function frame9(){ if ((((__setPropDict[btPlay] == undefined)) || (!((((int(__setPropDict[btPlay]) >= 7)) && ((int(__setPropDict[btPlay]) <= 12))))))){ __setPropDict[btPlay] = currentFrame; __setProp_btPlay_Main_title_6(); }; } function frame24(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; } private function gotoSelection(_arg1:MouseEvent=null):void{ if (so.data.currentGame != null){ if (ARR_GAME[so.data.currentGame].reloadable){ nextGame = so.data.currentGame; changePage("game"); return; }; }; backToSelection(); } function frame26(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; } function frame21(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; } private function pageGameover():void{ btPlayAgain.label = Language["playAgain"]; btPlayAgain.addEventListener(MouseEvent.CLICK, gotoSelection); } function frame19(){ if ((((__setPropDict[btShare] == undefined)) || (!((((int(__setPropDict[btShare]) >= 13)) && ((int(__setPropDict[btShare]) <= 19))))))){ __setPropDict[btShare] = currentFrame; __setProp_btShare_Main_Calque6_12(); }; if ((((__setPropDict[btHost] == undefined)) || (!((((int(__setPropDict[btHost]) >= 13)) && ((int(__setPropDict[btHost]) <= 19))))))){ __setPropDict[btHost] = currentFrame; __setProp_btHost_Main_Calque6_12(); }; if ((((__setPropDict[btHelp] == undefined)) || (!((((int(__setPropDict[btHelp]) >= 13)) && ((int(__setPropDict[btHelp]) <= 19))))))){ __setPropDict[btHelp] = currentFrame; __setProp_btHelp_Main_Calque6_12(); }; if ((((__setPropDict[btMoreGames] == undefined)) || (!((((int(__setPropDict[btMoreGames]) >= 13)) && ((int(__setPropDict[btMoreGames]) <= 19))))))){ __setPropDict[btMoreGames] = currentFrame; __setProp_btMoreGames_Main_Calque6_12(); }; } protected function hostThisGame(_arg1=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest("http://apps.facebook.com/funflow/download.jsp?ref=take-something-literally"); navigateToURL(request, "_blank"); } catch(error:Error) { }; } private function displayTip(_arg1:MouseEvent):void{ btTip.enabled = false; btTip.label = (((("< " + Language["tip"]) + " ") + ARR_GAME[so.data.currentGame].tip) + " >"); } function frame29(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function frame23(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; } public function initContextMenu():void{ var _local1:ContextMenu = new ContextMenu(); _local1.hideBuiltInItems(); var _local2:ContextMenuBuiltInItems = _local1.builtInItems; _local2.print = true; _local2.quality = true; _local2.zoom = true; _local2.rewind = false; _local2.save = true; _local2.play = false; _local2.forwardAndBack = false; contextMenu = _local1; } function frame25(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; } public function gameCompleted(_arg1:Boolean=true):void{ so.data[("game_" + nextGame)] = "ok"; if (nextGame == 21){ so.data["game_22"] = "ok"; } else { if (nextGame == 22){ so.data["game_21"] = "ok"; }; }; so.flush(); if (kongregate){ kongregate.stats.submit("Games", getCompletedGames()); }; var _local2:Completed = new Completed(); _local2.x = 275; _local2.y = 200; cGame.addChild(_local2); setTimeout(changePage, 3000, "selection"); btBack.visible = false; if (_arg1){ sdDing.play(); }; } function frame27(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; stop(); pageGame(); } function frame28(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function __setProp_btMoreGames_Main_Calque6_12(){ try { btMoreGames["componentInspectorSetting"] = true; } catch(e:Error) { }; btMoreGames.emphasized = false; btMoreGames.enabled = true; btMoreGames.label = "More games"; btMoreGames.labelPlacement = "right"; btMoreGames.selected = false; btMoreGames.toggle = false; btMoreGames.visible = true; try { btMoreGames["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function rollOverGame(_arg1:MouseEvent):void{ txtGameName.gotoAndPlay(1); txtGameName.txt.txt.text = ARR_GAME[_arg1.currentTarget.idGame].name; _arg1.currentTarget.roll.play(); } function frame31(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } protected function gotoArmorGames(_arg1=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest("http://www.armorgames.com/"); navigateToURL(request, "_blank"); } catch(error:Error) { }; } private function gotoForum(_arg1=null):void{ var request:URLRequest; var pEvt = _arg1; try { request = new URLRequest("http://apps.facebook.com/funflow/games/?gameId=72&ref=take-something-literally_solutions&solutions=1"); navigateToURL(request, "_blank"); } catch(error:Error) { }; } private function pageMenu():void{ btPlay.addEventListener(MouseEvent.CLICK, gotoSelection); btPlay.focusEnabled = false; btPlay.mouseFocusEnabled = false; txtRules.text = Language["rules"]; txtTakeTheHints.text = Language["takeTheHints"]; disclaimer.txt.htmlText = (("<p align='center'>" + Language["disclaimerText"]) + "</p>"); btPlay.label = Language["agreeAndStart"]; txtTitle.text = Language["title"]; createListLanguage(listLanguage1); } function frame30(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function frame32(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function frame33(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; stop(); } function frame34(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function frame35(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function frame8(){ if ((((__setPropDict[btPlay] == undefined)) || (!((((int(__setPropDict[btPlay]) >= 7)) && ((int(__setPropDict[btPlay]) <= 12))))))){ __setPropDict[btPlay] = currentFrame; __setProp_btPlay_Main_title_6(); }; } function frame36(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } function frame37(){ if ((((__setPropDict[btTip] == undefined)) || (!((((int(__setPropDict[btTip]) >= 27)) && ((int(__setPropDict[btTip]) <= 37))))))){ __setPropDict[btTip] = currentFrame; __setProp_btTip_Main_title_26(); }; if ((((__setPropDict[btBack] == undefined)) || (!((((int(__setPropDict[btBack]) >= 27)) && ((int(__setPropDict[btBack]) <= 37))))))){ __setPropDict[btBack] = currentFrame; __setProp_btBack_Main_title_26(); }; } private function clickGame(_arg1:MouseEvent):void{ var _local2:MovieClip; var _local4:int; nextGame = _arg1.currentTarget.idGame; if (ARR_GAME[nextGame].mc == Paste){ System.setClipboard((Language["foundASecretPlace"] + " ofcourse")); }; var _local3:int; while (_local3 < getCompletedParts()) { _local4 = 0; while (_local4 < 5) { _local2 = this[("column" + _local3)][("game" + _local4)]; _local2.mouseEnabled = false; _local2.mouseChildren = false; _local4++; }; _local3++; }; changePage("game"); } private function adFinished():void{ if (king){ changePage("menu"); } else { changePage("dev"); }; } private function decreaseSecond():void{ var _local1:String; ARR_GAME[so.data.currentGame].time--; btTip.enabled = false; if (ARR_GAME[so.data.currentGame].time <= 0){ ARR_GAME[so.data.currentGame].time = 0; clearInterval(siTimer); btTip.enabled = true; btTip.addEventListener(MouseEvent.CLICK, displayTip); btTip.label = Language["tipAvailiable"]; } else { _local1 = (" " + Language["seconds"]); if (ARR_GAME[so.data.currentGame].time == 1){ _local1 = (" " + Language["second"]); }; btTip.label = (((Language["aTipWillBeAvailiable"] + " ") + ARR_GAME[so.data.currentGame].time) + _local1); }; } private function showCursor():void{ Mouse.show(); } function __setProp_btHelp_Main_Calque6_12(){ try { btHelp["componentInspectorSetting"] = true; } catch(e:Error) { }; btHelp.emphasized = false; btHelp.enabled = true; btHelp.label = "Need help ?"; btHelp.labelPlacement = "right"; btHelp.selected = false; btHelp.toggle = false; btHelp.visible = true; try { btHelp["componentInspectorSetting"] = false; } catch(e:Error) { }; } function frame22(){ if ((((__setPropDict[btPlayAgain] == undefined)) || (!((((int(__setPropDict[btPlayAgain]) >= 20)) && ((int(__setPropDict[btPlayAgain]) <= 26))))))){ __setPropDict[btPlayAgain] = currentFrame; __setProp_btPlayAgain_Main_title_19(); }; } private function gotoSecurity(_arg1:MouseEvent=null):void{ changePage("security"); } public function gameover():void{ var _local1:Gameover = new Gameover(); _local1.x = 275; _local1.y = 200; cGame.addChild(_local1); _local1.addEventListener(MouseEvent.CLICK, gotoSelection, false, 0, true); var _local2:Particles = new Particles(ParticleMouse); Mouse.hide(); setTimeout(showCursor, 1000); _local2.x = mouseX; _local2.y = mouseY; _local2.velocityMax = 0.5; _local2.gravity = 0.01; _local2.frequency = 1; _local2.totalTime = 200; _local2.slowDown = 0.99; cGame.addChild(_local2); _local2.start(); btBack.visible = false; sdGameover.play(); } private function pageSelection():void{ var btGame:MyButton; var counter:int; var j:int; btHelp.label = Language["needHelp"]; btHelp.addEventListener(MouseEvent.CLICK, gotoForum); if (king){ this["btHost"].addEventListener(MouseEvent.CLICK, hostThisGame); }; this["btShare"].addEventListener(MouseEvent.CLICK, shareOnFacebook); this["btShare"].setStyle("icon", new FacebookButton()); btMoreGames.label = Language["moreGames"]; btMoreGames.addEventListener(MouseEvent.CLICK, gotoMoreGames); if (armorgames){ btMoreGames.addEventListener(MouseEvent.CLICK, gotoArmorGames); }; txtCanReadThat.text = Language["ifYouCanReadThat"]; createListLanguage(listLanguage2); Mouse.show(); initContextMenu(); stage.quality = "HIGH"; clearInterval(siTimer); if ((((getCompletedGames() == 25)) && (!(finished)))){ gotoGameover(); finished = true; }; if (mofunzone){ if (getCompletedGames() >= 25){ AchievementLoaderAS3.getAPI().success("literally_impossible"); } else { if (getCompletedGames() >= 20){ AchievementLoaderAS3.getAPI().success("literally_hard"); } else { if (getCompletedGames() >= 15){ AchievementLoaderAS3.getAPI().success("literally_fair"); } else { if (getCompletedGames() >= 10){ AchievementLoaderAS3.getAPI().success("literally_easy"); } else { if (getCompletedGames() >= 5){ AchievementLoaderAS3.getAPI().success("literally_very_easy"); }; }; }; }; }; }; if (king){ KingAPI.submitLevel(getCompletedGames()); }; so.data.currentGame = null; try { so.flush(); } catch(e) { }; if (game){ game.remove(); game = null; }; if (cGame){ cGame = null; }; txtGameName.txt.txt.text = (("< " + Language["selectANumber"]) + " >"); if (finished){ txtGameName.txt.txt.text = (("*** " + Language["congratulations"]) + " ***"); }; var arrInfo:Array = [Language["info1"], Language["info2"], Language["info3"], Language["info4"], Language["info5"], Language["info6"], Language["info7"], Language["info8"], Language["info9"], Language["info10"]]; txtInfo.text = ((Language["info"] + " ") + MyArray.selectRandom(arrInfo)); if (kongregate){ kongregate.stats.submit("Games", getCompletedGames()); }; txtGameName.gotoAndPlay(1); var idGame:int; var i:int; while (i < 5) { counter = 0; j = 0; while (j < 5) { btGame = this[("column" + i)][("game" + j)]; btGame.onClick = clickGame; btGame.onRollOver = rollOverGame; btGame.onRollOut = rollOutGame; btGame.idGame = idGame; btGame.txtId.text = String((idGame + 1)); btGame.txtId.alpha = 0.8; if (so.data[("game_" + idGame)] != "ok"){ btGame.tick.visible = false; } else { counter = (counter + 1); }; idGame = (idGame + 1); j = (j + 1); }; i = (i + 1); }; if (getCompletedParts() == 5){ return; }; i = (getCompletedParts() + 1); while (i < 5) { j = 0; while (j < 5) { btGame = this[("column" + i)][("game" + j)]; btGame.txtId.text = String((((5 * i) + j) + 1)); btGame.txtId.alpha = 0.8; btGame.tick.visible = false; btGame.alpha = 0.5; btGame.mouseEnabled = false; j = (j + 1); }; i = (i + 1); }; } function __setProp_btBack_Main_title_26(){ try { btBack["componentInspectorSetting"] = true; } catch(e:Error) { }; btBack.emphasized = false; btBack.enabled = true; btBack.label = "I Give up!"; btBack.labelPlacement = "right"; btBack.selected = false; btBack.toggle = false; btBack.visible = true; try { btBack["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function pageMode():void{ } override public function gotoAd(_arg1:MouseEvent=null):void{ if (king){ gotoMenu(); } else { super.gotoAd(); }; } private function backToSelection(_arg1:MouseEvent=null):void{ changePage("selection"); so.data.fullyLoaded = 0; so.flush(); } private function gotoSelection2(_arg1:MouseEvent=null):void{ Security.showSettings(SecurityPanel.PRIVACY); gotoSelection(); } function __setProp_btShare_Main_Calque6_12(){ try { btShare["componentInspectorSetting"] = true; } catch(e:Error) { }; btShare.emphasized = false; btShare.enabled = true; btShare.label = ""; btShare.labelPlacement = "top"; btShare.selected = false; btShare.toggle = false; btShare.visible = true; try { btShare["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package com
Section 48
//BaseScrollPane (fl.containers.BaseScrollPane) package fl.containers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import flash.geom.*; import fl.events.*; public class BaseScrollPane extends UIComponent { protected var contentHeight:Number;// = 0 protected var _horizontalScrollBar:ScrollBar; protected var _horizontalPageScrollSize:Number;// = 0 protected var _verticalPageScrollSize:Number;// = 0 protected var _maxHorizontalScrollPosition:Number;// = 0 protected var defaultLineScrollSize:Number;// = 4 protected var vOffset:Number;// = 0 protected var contentScrollRect:Rectangle; protected var background:DisplayObject; protected var _verticalScrollBar:ScrollBar; protected var disabledOverlay:Shape; protected var vScrollBar:Boolean; protected var _horizontalScrollPolicy:String; protected var useFixedHorizontalScrolling:Boolean;// = false protected var contentWidth:Number;// = 0 protected var availableHeight:Number; protected var _verticalScrollPolicy:String; protected var contentPadding:Number;// = 0 protected var _useBitmpScrolling:Boolean;// = false protected var availableWidth:Number; protected var hScrollBar:Boolean; protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5}; override public function set enabled(_arg1:Boolean):void{ if (enabled == _arg1){ return; }; _verticalScrollBar.enabled = _arg1; _horizontalScrollBar.enabled = _arg1; super.enabled = _arg1; } public function set useBitmapScrolling(_arg1:Boolean):void{ _useBitmpScrolling = _arg1; invalidate(InvalidationType.STATE); } public function set horizontalLineScrollSize(_arg1:Number):void{ _horizontalScrollBar.lineScrollSize = _arg1; } protected function drawLayout():void{ calculateAvailableSize(); calculateContentWidth(); background.width = width; background.height = height; if (vScrollBar){ _verticalScrollBar.visible = true; _verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding); _verticalScrollBar.y = contentPadding; _verticalScrollBar.height = availableHeight; } else { _verticalScrollBar.visible = false; }; _verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize); setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); if (hScrollBar){ _horizontalScrollBar.visible = true; _horizontalScrollBar.x = contentPadding; _horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding); _horizontalScrollBar.width = availableWidth; } else { _horizontalScrollBar.visible = false; }; _horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize); setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); drawDisabledOverlay(); } protected function handleWheel(_arg1:MouseEvent):void{ if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){ return; }; _verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize)); setVerticalScrollPosition(_verticalScrollBar.scrollPosition); dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition)); } protected function handleScroll(_arg1:ScrollEvent):void{ if (_arg1.target == _verticalScrollBar){ setVerticalScrollPosition(_arg1.position); } else { setHorizontalScrollPosition(_arg1.position); }; } public function get verticalLineScrollSize():Number{ return (_verticalScrollBar.lineScrollSize); } protected function drawBackground():void{ var _local1:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue("skin")); background.width = width; background.height = height; addChildAt(background, 0); if (((!((_local1 == null))) && (!((_local1 == background))))){ removeChild(_local1); }; } protected function calculateAvailableSize():void{ var _local1:Number = ScrollBar.WIDTH; var _local2:Number = (contentPadding = Number(getStyleValue("contentPadding"))); var _local3:Number = ((height - (2 * _local2)) - vOffset); vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3))))); var _local4:Number = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2)); var _local5:Number = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4); hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0))))); if (hScrollBar){ _local3 = (_local3 - _local1); }; if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){ vScrollBar = true; _local4 = (_local4 - _local1); }; availableHeight = (_local3 + vOffset); availableWidth = _local4; } public function get verticalScrollPosition():Number{ return (_verticalScrollBar.scrollPosition); } public function get horizontalScrollPolicy():String{ return (_horizontalScrollPolicy); } protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } public function get horizontalPageScrollSize():Number{ if (isNaN(availableWidth)){ drawNow(); }; return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize); } public function set horizontalScrollPosition(_arg1:Number):void{ drawNow(); _horizontalScrollBar.scrollPosition = _arg1; setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false); } public function set verticalLineScrollSize(_arg1:Number):void{ _verticalScrollBar.lineScrollSize = _arg1; } public function get maxVerticalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentHeight - availableHeight))); } public function set horizontalPageScrollSize(_arg1:Number):void{ _horizontalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){ drawLayout(); }; updateChildren(); super.draw(); } public function get horizontalScrollBar():ScrollBar{ return (_horizontalScrollBar); } protected function calculateContentWidth():void{ } public function set horizontalScrollPolicy(_arg1:String):void{ _horizontalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } override protected function configUI():void{ super.configUI(); contentScrollRect = new Rectangle(0, 0, 85, 85); _verticalScrollBar = new ScrollBar(); _verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _verticalScrollBar.visible = false; _verticalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_verticalScrollBar); copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); _horizontalScrollBar = new ScrollBar(); _horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL; _horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true); _horizontalScrollBar.visible = false; _horizontalScrollBar.lineScrollSize = defaultLineScrollSize; addChild(_horizontalScrollBar); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); disabledOverlay = new Shape(); var _local1:Graphics = disabledOverlay.graphics; _local1.beginFill(0xFFFFFF); _local1.drawRect(0, 0, width, height); _local1.endFill(); addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true); } protected function drawDisabledOverlay():void{ if (enabled){ if (contains(disabledOverlay)){ removeChild(disabledOverlay); }; } else { disabledOverlay.x = (disabledOverlay.y = contentPadding); disabledOverlay.width = availableWidth; disabledOverlay.height = availableHeight; disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number); addChild(disabledOverlay); }; } public function get horizontalScrollPosition():Number{ return (_horizontalScrollBar.scrollPosition); } public function get verticalScrollBar():ScrollBar{ return (_verticalScrollBar); } public function get horizontalLineScrollSize():Number{ return (_horizontalScrollBar.lineScrollSize); } public function set verticalScrollPosition(_arg1:Number):void{ drawNow(); _verticalScrollBar.scrollPosition = _arg1; setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false); } protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ } protected function setStyles():void{ copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES); copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES); } public function set verticalPageScrollSize(_arg1:Number):void{ _verticalPageScrollSize = _arg1; invalidate(InvalidationType.SIZE); } protected function setContentSize(_arg1:Number, _arg2:Number):void{ if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){ return; }; contentWidth = _arg1; contentHeight = _arg2; invalidate(InvalidationType.SIZE); } public function set verticalScrollPolicy(_arg1:String):void{ _verticalScrollPolicy = _arg1; invalidate(InvalidationType.SIZE); } public function get maxHorizontalScrollPosition():Number{ drawNow(); return (Math.max(0, (contentWidth - availableWidth))); } protected function updateChildren():void{ _verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled); _verticalScrollBar.drawNow(); _horizontalScrollBar.drawNow(); } public function get verticalPageScrollSize():Number{ if (isNaN(availableHeight)){ drawNow(); }; return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize); } public function get verticalScrollPolicy():String{ return (_verticalScrollPolicy); } public function get useBitmapScrolling():Boolean{ return (_useBitmpScrolling); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition())); } } }//package fl.containers
Section 49
//CellRenderer (fl.controls.listClasses.CellRenderer) package fl.controls.listClasses { import fl.controls.*; import flash.events.*; public class CellRenderer extends LabelButton implements ICellRenderer { protected var _listData:ListData; protected var _data:Object; private static var defaultStyles:Object = {upSkin:"CellRenderer_upSkin", downSkin:"CellRenderer_downSkin", overSkin:"CellRenderer_overSkin", disabledSkin:"CellRenderer_disabledSkin", selectedDisabledSkin:"CellRenderer_selectedDisabledSkin", selectedUpSkin:"CellRenderer_selectedUpSkin", selectedDownSkin:"CellRenderer_selectedDownSkin", selectedOverSkin:"CellRenderer_selectedOverSkin", textFormat:null, disabledTextFormat:null, embedFonts:null, textPadding:5}; public function CellRenderer():void{ toggle = true; focusEnabled = false; } override public function set selected(_arg1:Boolean):void{ super.selected = _arg1; } override protected function drawLayout():void{ var _local3:Number; var _local1:Number = Number(getStyleValue("textPadding")); var _local2:Number = 0; if (icon != null){ icon.x = _local1; icon.y = Math.round(((height - icon.height) >> 1)); _local2 = (icon.width + _local1); }; if (label.length > 0){ textField.visible = true; _local3 = Math.max(0, ((width - _local2) - (_local1 * 2))); textField.width = _local3; textField.height = (textField.textHeight + 4); textField.x = (_local2 + _local1); textField.y = Math.round(((height - textField.height) >> 1)); } else { textField.visible = false; }; background.width = width; background.height = height; } public function get listData():ListData{ return (_listData); } override public function setSize(_arg1:Number, _arg2:Number):void{ super.setSize(_arg1, _arg2); } public function get data():Object{ return (_data); } public function set data(_arg1:Object):void{ _data = _arg1; } public function set listData(_arg1:ListData):void{ _listData = _arg1; label = _listData.label; setStyle("icon", _listData.icon); } override public function get selected():Boolean{ return (super.selected); } override protected function toggleSelected(_arg1:MouseEvent):void{ } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls.listClasses
Section 50
//ICellRenderer (fl.controls.listClasses.ICellRenderer) package fl.controls.listClasses { public interface ICellRenderer { function set x(_arg1:Number):void; function set y(_arg1:Number):void; function setSize(_arg1:Number, _arg2:Number):void; function set data(_arg1:Object):void; function set selected(_arg1:Boolean):void; function set listData(_arg1:ListData):void; function get listData():ListData; function get data():Object; function get selected():Boolean; function setMouseState(_arg1:String):void; } }//package fl.controls.listClasses
Section 51
//ListData (fl.controls.listClasses.ListData) package fl.controls.listClasses { import fl.core.*; public class ListData { protected var _index:uint; protected var _owner:UIComponent; protected var _label:String; protected var _icon:Object;// = null protected var _row:uint; protected var _column:uint; public function ListData(_arg1:String, _arg2:Object, _arg3:UIComponent, _arg4:uint, _arg5:uint, _arg6:uint=0){ _label = _arg1; _icon = _arg2; _owner = _arg3; _index = _arg4; _row = _arg5; _column = _arg6; } public function get row():uint{ return (_row); } public function get owner():UIComponent{ return (_owner); } public function get label():String{ return (_label); } public function get index():uint{ return (_index); } public function get icon():Object{ return (_icon); } public function get column():uint{ return (_column); } } }//package fl.controls.listClasses
Section 52
//BaseButton (fl.controls.BaseButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import flash.utils.*; import fl.events.*; public class BaseButton extends UIComponent { protected var pressTimer:Timer; protected var _autoRepeat:Boolean;// = false protected var _selected:Boolean;// = false protected var background:DisplayObject; private var unlockedMouseState:String; protected var mouseState:String; private var _mouseStateLocked:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } override public function get enabled():Boolean{ return (super.enabled); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function drawLayout():void{ background.width = width; background.height = height; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } protected function drawBackground():void{ var _local1:String = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); var _local2:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public function get selected():Boolean{ return (_selected); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 53
//Button (fl.controls.Button) package fl.controls { import fl.core.*; import flash.display.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var _emphasized:Boolean;// = false protected var emphasizedBorder:DisplayObject; private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; var _local1:Object = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 54
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 55
//ComboBox (fl.controls.ComboBox) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.data.*; import fl.managers.*; import flash.geom.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class ComboBox extends UIComponent implements IFocusManagerComponent { protected var isKeyDown:Boolean;// = false protected var _labels:Array; protected var background:BaseButton; protected var _dropdownWidth:Number; protected var inputField:TextInput; protected var highlightedCell:int;// = -1 protected var listOverIndex:uint; protected var editableValue:String; protected var _prompt:String; protected var isOpen:Boolean;// = false protected var list:List; protected var _rowCount:uint;// = 5 protected var _editable:Boolean;// = false private var collectionItemImport:SimpleCollectionItem; protected var currentIndex:int; protected static const BACKGROUND_STYLES:Object = {overSkin:"overSkin", downSkin:"downSkin", upSkin:"upSkin", disabledSkin:"disabledSkin", repeatInterval:"repeatInterval"}; protected static const LIST_STYLES:Object = {upSkin:"comboListUpSkin", overSkin:"comboListOverSkin", downSkin:"comobListDownSkin", disabledSkin:"comboListDisabledSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval", textFormat:"textFormat", disabledAlpha:"disabledAlpha", skin:"listSkin"}; private static var defaultStyles:Object = {upSkin:"ComboBox_upSkin", downSkin:"ComboBox_downSkin", overSkin:"ComboBox_overSkin", disabledSkin:"ComboBox_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:3, buttonWidth:24, disabledAlpha:null, listSkin:null}; public static var createAccessibilityImplementation:Function; protected function drawList():void{ list.rowCount = Math.max(0, Math.min(_rowCount, list.dataProvider.length)); } public function get imeMode():String{ return (inputField.imeMode); } protected function onInputFieldFocusOut(_arg1:FocusEvent):void{ inputField.removeEventListener(ComponentEvent.ENTER, onEnter); selectedIndex = selectedIndex; } public function set imeMode(_arg1:String):void{ inputField.imeMode = _arg1; } protected function passEvent(_arg1:Event):void{ dispatchEvent(_arg1); } protected function calculateAvailableHeight():Number{ var _local1:Number = Number(getStyleValue("contentPadding")); return ((list.height - (_local1 * 2))); } public function get dropdown():List{ return (list); } override protected function focusOutHandler(_arg1:FocusEvent):void{ isKeyDown = false; if (isOpen){ if (((!(_arg1.relatedObject)) || (!(list.contains(_arg1.relatedObject))))){ if (((!((highlightedCell == -1))) && (!((highlightedCell == selectedIndex))))){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); }; }; super.focusOutHandler(_arg1); } public function get selectedLabel():String{ if (editableValue != null){ return (editableValue); }; if (selectedIndex == -1){ return (null); }; return (itemToLabel(selectedItem)); } protected function onListChange(_arg1:Event):void{ editableValue = null; dispatchEvent(_arg1); invalidate(InvalidationType.SELECTED); if (isKeyDown){ return; }; close(); } public function get text():String{ return (inputField.text); } protected function onEnter(_arg1:ComponentEvent):void{ _arg1.stopPropagation(); } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (list.sortItemsOn(_arg1, _arg2)); } protected function handleDataChange(_arg1:DataChangeEvent):void{ invalidate(InvalidationType.DATA); } protected function onToggleListVisibility(_arg1:MouseEvent):void{ _arg1.stopPropagation(); dispatchEvent(_arg1); if (isOpen){ close(); } else { open(); stage.addEventListener(MouseEvent.MOUSE_UP, onListItemUp, false, 0, true); }; } public function get dropdownWidth():Number{ return (list.width); } protected function highlightCell(_arg1:int=-1):void{ var _local2:ICellRenderer; if (highlightedCell > -1){ _local2 = list.itemToCellRenderer(getItemAt(highlightedCell)); if (_local2 != null){ _local2.setMouseState("up"); }; }; if (_arg1 == -1){ return; }; list.scrollToIndex(_arg1); list.drawNow(); _local2 = list.itemToCellRenderer(getItemAt(_arg1)); if (_local2 != null){ _local2.setMouseState("over"); highlightedCell = _arg1; }; } public function removeItemAt(_arg1:uint):void{ list.removeItemAt(_arg1); invalidate(InvalidationType.DATA); } override protected function draw():void{ var _local1:* = selectedIndex; if ((((_local1 == -1)) && (((((!((prompt == null))) || (editable))) || ((length == 0)))))){ _local1 = Math.max(-1, Math.min(_local1, (length - 1))); } else { editableValue = null; _local1 = Math.max(0, Math.min(_local1, (length - 1))); }; if (list.selectedIndex != _local1){ list.selectedIndex = _local1; invalidate(InvalidationType.SELECTED, false); }; if (isInvalid(InvalidationType.STYLES)){ setStyles(); setEmbedFonts(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.STATE)){ drawTextFormat(); drawLayout(); invalidate(InvalidationType.DATA); }; if (isInvalid(InvalidationType.DATA)){ drawList(); invalidate(InvalidationType.SELECTED, true); }; if (isInvalid(InvalidationType.SELECTED)){ if ((((_local1 == -1)) && (!((editableValue == null))))){ inputField.text = editableValue; } else { if (_local1 > -1){ if (length > 0){ inputField.horizontalScrollPosition = 0; inputField.text = itemToLabel(list.selectedItem); }; } else { if ((((_local1 == -1)) && (!((_prompt == null))))){ showPrompt(); } else { inputField.text = ""; }; }; }; if (((((editable) && ((selectedIndex > -1)))) && ((stage.focus == inputField.textField)))){ inputField.setSelection(0, inputField.length); }; }; drawTextField(); super.draw(); } public function get selectedItem():Object{ return (list.selectedItem); } public function open():void{ currentIndex = selectedIndex; if (((isOpen) || ((length == 0)))){ return; }; dispatchEvent(new Event(Event.OPEN)); isOpen = true; addEventListener(Event.ENTER_FRAME, addCloseListener, false, 0, true); positionList(); list.scrollToSelected(); stage.addChild(list); } override protected function configUI():void{ super.configUI(); background = new BaseButton(); background.focusEnabled = false; copyStylesToChild(background, BACKGROUND_STYLES); background.addEventListener(MouseEvent.MOUSE_DOWN, onToggleListVisibility, false, 0, true); addChild(background); inputField = new TextInput(); inputField.focusTarget = (this as IFocusManagerComponent); inputField.focusEnabled = false; inputField.addEventListener(Event.CHANGE, onTextInput, false, 0, true); addChild(inputField); list = new List(); list.focusEnabled = false; copyStylesToChild(list, LIST_STYLES); list.addEventListener(Event.CHANGE, onListChange, false, 0, true); list.addEventListener(ListEvent.ITEM_CLICK, onListChange, false, 0, true); list.addEventListener(ListEvent.ITEM_ROLL_OUT, passEvent, false, 0, true); list.addEventListener(ListEvent.ITEM_ROLL_OVER, passEvent, false, 0, true); list.verticalScrollBar.addEventListener(Event.SCROLL, passEvent, false, 0, true); } public function set text(_arg1:String):void{ if (!editable){ return; }; inputField.text = _arg1; } public function addItem(_arg1:Object):void{ list.addItem(_arg1); invalidate(InvalidationType.DATA); } public function get editable():Boolean{ return (_editable); } public function get labelField():String{ return (list.labelField); } protected function positionList():void{ var _local1:Point = localToGlobal(new Point(0, 0)); list.x = _local1.x; if (((_local1.y + height) + list.height) > stage.stageHeight){ list.y = (_local1.y - list.height); } else { list.y = (_local1.y + height); }; } protected function onStageClick(_arg1:MouseEvent):void{ if (!isOpen){ return; }; if (((!(contains((_arg1.target as DisplayObject)))) && (!(list.contains((_arg1.target as DisplayObject)))))){ if (highlightedCell != -1){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); }; } public function set dropdownWidth(_arg1:Number):void{ _dropdownWidth = _arg1; invalidate(InvalidationType.SIZE); } public function get prompt():String{ return (_prompt); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ isKeyDown = true; if (_arg1.ctrlKey){ switch (_arg1.keyCode){ case Keyboard.UP: if (highlightedCell > -1){ selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; close(); break; case Keyboard.DOWN: open(); break; }; return; }; _arg1.stopPropagation(); var _local2:int = Math.max(((calculateAvailableHeight() / list.rowHeight) << 0), 1); var _local3:uint = selectedIndex; var _local4:Number = ((highlightedCell)==-1) ? selectedIndex : highlightedCell; var _local5 = -1; switch (_arg1.keyCode){ case Keyboard.SPACE: if (isOpen){ close(); } else { open(); }; return; case Keyboard.ESCAPE: if (isOpen){ if (highlightedCell > -1){ selectedIndex = selectedIndex; }; close(); }; return; case Keyboard.UP: _local5 = Math.max(0, (_local4 - 1)); break; case Keyboard.DOWN: _local5 = Math.min((length - 1), (_local4 + 1)); break; case Keyboard.PAGE_UP: _local5 = Math.max((_local4 - _local2), 0); break; case Keyboard.PAGE_DOWN: _local5 = Math.min((_local4 + _local2), (length - 1)); break; case Keyboard.HOME: _local5 = 0; break; case Keyboard.END: _local5 = (length - 1); break; case Keyboard.ENTER: if (((_editable) && ((highlightedCell == -1)))){ editableValue = inputField.text; selectedIndex = -1; } else { if (((isOpen) && ((highlightedCell > -1)))){ editableValue = null; selectedIndex = highlightedCell; dispatchEvent(new Event(Event.CHANGE)); }; }; dispatchEvent(new ComponentEvent(ComponentEvent.ENTER)); close(); return; default: if (editable){ break; }; _local5 = list.getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), _local4); break; }; if (_local5 > -1){ if (isOpen){ highlightCell(_local5); inputField.text = list.itemToLabel(getItemAt(_local5)); } else { highlightCell(); selectedIndex = _local5; dispatchEvent(new Event(Event.CHANGE)); }; }; } public function get value():String{ var _local1:Object; if (editableValue != null){ return (editableValue); }; _local1 = selectedItem; if (((!(_editable)) && (!((_local1.data == null))))){ return (_local1.data); }; return (itemToLabel(_local1)); } override protected function focusInHandler(_arg1:FocusEvent):void{ super.focusInHandler(_arg1); if (editable){ stage.focus = inputField.textField; }; } public function set dataProvider(_arg1:DataProvider):void{ _arg1.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); list.dataProvider = _arg1; invalidate(InvalidationType.DATA); } public function get rowCount():uint{ return (_rowCount); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; if (!_editable){ return; }; inputField.restrict = _arg1; } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (list.replaceItemAt(_arg1, _arg2)); } public function removeAll():void{ list.removeAll(); inputField.text = ""; invalidate(InvalidationType.DATA); } protected function onTextInput(_arg1:Event):void{ _arg1.stopPropagation(); if (!_editable){ return; }; editableValue = inputField.text; selectedIndex = -1; dispatchEvent(new Event(Event.CHANGE)); } protected function onInputFieldFocus(_arg1:FocusEvent):void{ inputField.addEventListener(ComponentEvent.ENTER, onEnter, false, 0, true); close(); } protected function onListItemUp(_arg1:MouseEvent):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, onListItemUp); if (((!((_arg1.target is ICellRenderer))) || (!(list.contains((_arg1.target as DisplayObject)))))){ return; }; editableValue = null; var _local2:* = selectedIndex; selectedIndex = _arg1.target.listData.index; if (_local2 != selectedIndex){ dispatchEvent(new Event(Event.CHANGE)); }; close(); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ isKeyDown = false; } protected function drawLayout():void{ var _local1:Number = (getStyleValue("buttonWidth") as Number); var _local2:Number = (getStyleValue("textPadding") as Number); background.setSize(width, height); inputField.x = (inputField.y = _local2); inputField.setSize(((width - _local1) - _local2), (height - _local2)); list.width = (isNaN(_dropdownWidth)) ? width : _dropdownWidth; background.enabled = enabled; background.drawNow(); } public function set selectedItem(_arg1:Object):void{ list.selectedItem = _arg1; invalidate(InvalidationType.SELECTED); } public function getItemAt(_arg1:uint):Object{ return (list.getItemAt(_arg1)); } override protected function initializeAccessibility():void{ if (ComboBox.createAccessibilityImplementation != null){ ComboBox.createAccessibilityImplementation(this); }; } public function itemToLabel(_arg1:Object):String{ if (_arg1 == null){ return (""); }; return (list.itemToLabel(_arg1)); } public function addItemAt(_arg1:Object, _arg2:uint):void{ list.addItemAt(_arg1, _arg2); invalidate(InvalidationType.DATA); } private function addCloseListener(_arg1:Event){ removeEventListener(Event.ENTER_FRAME, addCloseListener); if (!isOpen){ return; }; stage.addEventListener(MouseEvent.MOUSE_DOWN, onStageClick, false, 0, true); } protected function setEmbedFonts():void{ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ inputField.textField.embedFonts = _local1; }; } public function set rowCount(_arg1:uint):void{ _rowCount = _arg1; invalidate(InvalidationType.SIZE); } public function removeItem(_arg1:Object):Object{ return (list.removeItem(_arg1)); } public function get dataProvider():DataProvider{ return (list.dataProvider); } public function get restrict():String{ return (inputField.restrict); } protected function showPrompt():void{ inputField.text = _prompt; } public function sortItems(... _args){ return (list.sortItems.apply(list, _args)); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; drawTextField(); } public function set labelField(_arg1:String):void{ list.labelField = _arg1; invalidate(InvalidationType.DATA); } public function get textField():TextInput{ return (inputField); } public function set prompt(_arg1:String):void{ if (_arg1 == ""){ _prompt = null; } else { _prompt = _arg1; }; invalidate(InvalidationType.STATE); } public function set labelFunction(_arg1:Function):void{ list.labelFunction = _arg1; invalidate(InvalidationType.DATA); } protected function setStyles():void{ copyStylesToChild(background, BACKGROUND_STYLES); copyStylesToChild(list, LIST_STYLES); } public function get length():int{ return (list.length); } protected function drawTextFormat():void{ var _local1:TextFormat = (getStyleValue((_enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local1 == null){ _local1 = new TextFormat(); }; inputField.textField.defaultTextFormat = _local1; inputField.textField.setTextFormat(_local1); setEmbedFonts(); } protected function drawTextField():void{ inputField.setStyle("upSkin", ""); inputField.setStyle("disabledSkin", ""); inputField.enabled = enabled; inputField.editable = _editable; inputField.textField.selectable = ((enabled) && (_editable)); inputField.mouseEnabled = (inputField.mouseChildren = ((enabled) && (_editable))); inputField.focusEnabled = false; if (_editable){ inputField.addEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus, false, 0, true); inputField.addEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut, false, 0, true); } else { inputField.removeEventListener(FocusEvent.FOCUS_IN, onInputFieldFocus); inputField.removeEventListener(FocusEvent.FOCUS_OUT, onInputFieldFocusOut); }; } public function get labelFunction():Function{ return (list.labelFunction); } public function set selectedIndex(_arg1:int):void{ list.selectedIndex = _arg1; highlightCell(); invalidate(InvalidationType.SELECTED); } public function get selectedIndex():int{ return (list.selectedIndex); } public function close():void{ highlightCell(); highlightedCell = -1; if (!isOpen){ return; }; dispatchEvent(new Event(Event.CLOSE)); stage.removeEventListener(MouseEvent.MOUSE_DOWN, onStageClick); isOpen = false; stage.removeChild(list); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, List.getStyleDefinition())); } } }//package fl.controls
Section 56
//LabelButton (fl.controls.LabelButton) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _toggle:Boolean;// = false public var textField:TextField; protected var mode:String;// = "center" protected var _labelPlacement:String;// = "right" protected var oldMouseState:String; protected var _label:String;// = "Label" protected var icon:DisplayObject; private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override protected function drawLayout():void{ var _local7:Number; var _local8:Number; var _local1:Number = Number(getStyleValue("textPadding")); var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); var _local3:Number = (textField.textWidth + 4); var _local4:Number = (textField.textHeight + 4); var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1); var _local6:Number = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } public function get labelPlacement():String{ return (_labelPlacement); } public function get toggle():Boolean{ return (_toggle); } protected function setEmbedFont(){ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } protected function drawIcon():void{ var _local1:DisplayObject = icon; var _local2:String = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); var _local3:Object = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } protected function drawTextFormat():void{ var _local1:Object = UIComponent.getStyleDefinition(); var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public function get label():String{ return (_label); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 57
//List (fl.controls.List) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import flash.utils.*; import fl.managers.*; import flash.geom.*; import flash.ui.*; public class List extends SelectableList implements IFocusManagerComponent { protected var _iconField:String;// = "icon" protected var _labelField:String;// = "label" protected var _iconFunction:Function; protected var _rowHeight:Number;// = 20 protected var _cellRenderer:Object; protected var _labelFunction:Function; private static var defaultStyles:Object = {focusRectSkin:null, focusRectPadding:null}; public static var createAccessibilityImplementation:Function; public function get iconField():String{ return (_iconField); } public function set iconField(_arg1:String):void{ if (_arg1 == _iconField){ return; }; _iconField = _arg1; invalidate(InvalidationType.DATA); } public function set labelField(_arg1:String):void{ if (_arg1 == _labelField){ return; }; _labelField = _arg1; invalidate(InvalidationType.DATA); } public function set rowHeight(_arg1:Number):void{ _rowHeight = _arg1; invalidate(InvalidationType.SIZE); } override protected function draw():void{ var _local1 = !((contentHeight == (rowHeight * length))); contentHeight = (rowHeight * length); if (isInvalid(InvalidationType.STYLES)){ setStyles(); drawBackground(); if (contentPadding != getStyleValue("contentPadding")){ invalidate(InvalidationType.SIZE, false); }; if (_cellRenderer != getStyleValue("cellRenderer")){ _invalidateList(); _cellRenderer = getStyleValue("cellRenderer"); }; }; if (((isInvalid(InvalidationType.SIZE, InvalidationType.STATE)) || (_local1))){ drawLayout(); }; if (isInvalid(InvalidationType.RENDERER_STYLES)){ updateRendererStyles(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.SIZE, InvalidationType.DATA, InvalidationType.SCROLL, InvalidationType.SELECTED)){ drawList(); }; updateChildren(); validate(); } override public function get rowCount():uint{ return (Math.ceil((calculateAvailableHeight() / rowHeight))); } override protected function configUI():void{ useFixedHorizontalScrolling = true; _horizontalScrollPolicy = ScrollPolicy.AUTO; _verticalScrollPolicy = ScrollPolicy.AUTO; super.configUI(); } public function set labelFunction(_arg1:Function):void{ if (_labelFunction == _arg1){ return; }; _labelFunction = _arg1; invalidate(InvalidationType.DATA); } override public function scrollToIndex(_arg1:int):void{ drawNow(); var _local2:uint = (Math.floor(((_verticalScrollPosition + availableHeight) / rowHeight)) - 1); var _local3:uint = Math.ceil((_verticalScrollPosition / rowHeight)); if (_arg1 < _local3){ verticalScrollPosition = (_arg1 * rowHeight); } else { if (_arg1 > _local2){ verticalScrollPosition = (((_arg1 + 1) * rowHeight) - availableHeight); }; }; } override protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ list.x = -(_arg1); super.setHorizontalScrollPosition(_arg1, true); } override protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ var _local4:int = Math.max(Math.floor((calculateAvailableHeight() / rowHeight)), 1); var _local5 = -1; var _local6:int; switch (_arg1){ case Keyboard.UP: if (caretIndex > 0){ _local5 = (caretIndex - 1); }; break; case Keyboard.DOWN: if (caretIndex < (length - 1)){ _local5 = (caretIndex + 1); }; break; case Keyboard.PAGE_UP: if (caretIndex > 0){ _local5 = Math.max((caretIndex - _local4), 0); }; break; case Keyboard.PAGE_DOWN: if (caretIndex < (length - 1)){ _local5 = Math.min((caretIndex + _local4), (length - 1)); }; break; case Keyboard.HOME: if (caretIndex > 0){ _local5 = 0; }; break; case Keyboard.END: if (caretIndex < (length - 1)){ _local5 = (length - 1); }; break; }; if (_local5 >= 0){ doKeySelection(_local5, _arg2, _arg3); scrollToSelected(); }; } protected function doKeySelection(_arg1:int, _arg2:Boolean, _arg3:Boolean):void{ var _local5:int; var _local6:Array; var _local7:int; var _local8:int; var _local4:Boolean; if (_arg2){ _local6 = []; _local7 = lastCaretIndex; _local8 = _arg1; if (_local7 == -1){ _local7 = ((caretIndex)!=-1) ? caretIndex : _arg1; }; if (_local7 > _local8){ _local8 = _local7; _local7 = _arg1; }; _local5 = _local7; while (_local5 <= _local8) { _local6.push(_local5); _local5++; }; selectedIndices = _local6; caretIndex = _arg1; _local4 = true; } else { selectedIndex = _arg1; caretIndex = (lastCaretIndex = _arg1); _local4 = true; }; if (_local4){ dispatchEvent(new Event(Event.CHANGE)); }; invalidate(InvalidationType.DATA); } public function get rowHeight():Number{ return (_rowHeight); } override protected function initializeAccessibility():void{ if (List.createAccessibilityImplementation != null){ List.createAccessibilityImplementation(this); }; } public function get labelField():String{ return (_labelField); } public function set iconFunction(_arg1:Function):void{ if (_iconFunction == _arg1){ return; }; _iconFunction = _arg1; invalidate(InvalidationType.DATA); } public function set rowCount(_arg1:uint):void{ var _local2:Number = Number(getStyleValue("contentPadding")); var _local3:Number = ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0; height = (((rowHeight * _arg1) + (2 * _local2)) + _local3); } public function get labelFunction():Function{ return (_labelFunction); } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ invalidate(InvalidationType.SCROLL); super.setVerticalScrollPosition(_arg1, true); } override protected function drawList():void{ var _local4:uint; var _local5:Object; var _local6:ICellRenderer; var _local9:Boolean; var _local10:String; var _local11:Object; var _local12:Sprite; var _local13:String; listHolder.x = (listHolder.y = contentPadding); var _local1:Rectangle = listHolder.scrollRect; _local1.x = _horizontalScrollPosition; _local1.y = (Math.floor(_verticalScrollPosition) % rowHeight); listHolder.scrollRect = _local1; listHolder.cacheAsBitmap = useBitmapScrolling; var _local2:uint = Math.floor((_verticalScrollPosition / rowHeight)); var _local3:uint = Math.min(length, ((_local2 + rowCount) + 1)); var _local7:Dictionary = (renderedItems = new Dictionary(true)); _local4 = _local2; while (_local4 < _local3) { _local7[_dataProvider.getItemAt(_local4)] = true; _local4++; }; var _local8:Dictionary = new Dictionary(true); while (activeCellRenderers.length > 0) { _local6 = (activeCellRenderers.pop() as ICellRenderer); _local5 = _local6.data; if ((((_local7[_local5] == null)) || ((invalidItems[_local5] == true)))){ availableCellRenderers.push(_local6); } else { _local8[_local5] = _local6; invalidItems[_local5] = true; }; list.removeChild((_local6 as DisplayObject)); }; invalidItems = new Dictionary(true); _local4 = _local2; while (_local4 < _local3) { _local9 = false; _local5 = _dataProvider.getItemAt(_local4); if (_local8[_local5] != null){ _local9 = true; _local6 = _local8[_local5]; delete _local8[_local5]; } else { if (availableCellRenderers.length > 0){ _local6 = (availableCellRenderers.pop() as ICellRenderer); } else { _local6 = (getDisplayObjectInstance(getStyleValue("cellRenderer")) as ICellRenderer); _local12 = (_local6 as Sprite); if (_local12 != null){ _local12.addEventListener(MouseEvent.CLICK, handleCellRendererClick, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OVER, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(MouseEvent.ROLL_OUT, handleCellRendererMouseEvent, false, 0, true); _local12.addEventListener(Event.CHANGE, handleCellRendererChange, false, 0, true); _local12.doubleClickEnabled = true; _local12.addEventListener(MouseEvent.DOUBLE_CLICK, handleCellRendererDoubleClick, false, 0, true); if (_local12.hasOwnProperty("setStyle")){ for (_local13 in rendererStyles) { var _local16 = _local12; _local16["setStyle"](_local13, rendererStyles[_local13]); }; }; }; }; }; list.addChild((_local6 as Sprite)); activeCellRenderers.push(_local6); _local6.y = (rowHeight * (_local4 - _local2)); _local6.setSize((availableWidth + _maxHorizontalScrollPosition), rowHeight); _local10 = itemToLabel(_local5); _local11 = null; if (_iconFunction != null){ _local11 = _iconFunction(_local5); } else { if (_iconField != null){ _local11 = _local5[_iconField]; }; }; if (!_local9){ _local6.data = _local5; }; _local6.listData = new ListData(_local10, _local11, this, _local4, _local4, 0); _local6.selected = !((_selectedIndices.indexOf(_local4) == -1)); if ((_local6 is UIComponent)){ (_local6 as UIComponent).drawNow(); }; _local4++; }; } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); break; case Keyboard.SPACE: if (caretIndex == -1){ caretIndex = 0; }; doKeySelection(caretIndex, _arg1.shiftKey, _arg1.ctrlKey); scrollToSelected(); break; default: _local2 = getNextIndexAtLetter(String.fromCharCode(_arg1.keyCode), selectedIndex); if (_local2 > -1){ selectedIndex = _local2; scrollToSelected(); }; break; }; _arg1.stopPropagation(); } public function get iconFunction():Function{ return (_iconFunction); } override public function itemToLabel(_arg1:Object):String{ if (_labelFunction != null){ return (String(_labelFunction(_arg1))); }; return (((_arg1[_labelField])!=null) ? String(_arg1[_labelField]) : ""); } protected function calculateAvailableHeight():Number{ var _local1:Number = Number(getStyleValue("contentPadding")); return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0)); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, SelectableList.getStyleDefinition())); } } }//package fl.controls
Section 58
//ScrollBar (fl.controls.ScrollBar) package fl.controls { import fl.core.*; import flash.events.*; import fl.events.*; public class ScrollBar extends UIComponent { private var _direction:String;// = "vertical" private var _minScrollPosition:Number;// = 0 private var _pageSize:Number;// = 10 private var _maxScrollPosition:Number;// = 0 protected var downArrow:BaseButton; private var _lineScrollSize:Number;// = 1 protected var upArrow:BaseButton; private var _scrollPosition:Number;// = 0 private var thumbScrollOffset:Number; protected var track:BaseButton; protected var thumb:LabelButton; protected var inDrag:Boolean;// = false private var _pageScrollSize:Number;// = 0 protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0}; public static const WIDTH:Number = 15; protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"}; private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35}; public function ScrollBar(){ setStyles(); focusEnabled = false; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition)))))); updateThumb(); } override public function setSize(_arg1:Number, _arg2:Number):void{ if (_direction == ScrollBarDirection.HORIZONTAL){ super.setSize(_arg2, _arg1); } else { super.setSize(_arg1, _arg2); }; } public function set lineScrollSize(_arg1:Number):void{ if (_arg1 > 0){ _lineScrollSize = _arg1; }; } public function get minScrollPosition():Number{ return (_minScrollPosition); } protected function updateThumb():void{ var _local1:Number = ((_maxScrollPosition - _minScrollPosition) + _pageSize); if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){ thumb.height = 12; thumb.visible = false; } else { thumb.height = Math.max(13, ((_pageSize / _local1) * track.height)); thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition)))); thumb.visible = enabled; }; } public function set minScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _arg1, _maxScrollPosition); } public function get lineScrollSize():Number{ return (_lineScrollSize); } public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{ var _local3:Number = scrollPosition; _scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1)); if (_local3 == _scrollPosition){ return; }; if (_arg2){ dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition)); }; updateThumb(); } public function get maxScrollPosition():Number{ return (_maxScrollPosition); } public function get scrollPosition():Number{ return (_scrollPosition); } override public function get height():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height); } public function get pageSize():Number{ return (_pageSize); } public function set maxScrollPosition(_arg1:Number):void{ setScrollProperties(_pageSize, _minScrollPosition, _arg1); } protected function thumbReleaseHandler(_arg1:MouseEvent):void{ inDrag = false; mouseChildren = true; thumb.mouseStateLocked = false; stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag); stage.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler); } public function set pageScrollSize(_arg1:Number):void{ if (_arg1 >= 0){ _pageScrollSize = _arg1; }; } public function set scrollPosition(_arg1:Number):void{ setScrollPosition(_arg1, true); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Number; if (isInvalid(InvalidationType.SIZE)){ _local1 = super.height; downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height))); track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height)))); updateThumb(); }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ setStyles(); }; downArrow.drawNow(); upArrow.drawNow(); track.drawNow(); thumb.drawNow(); validate(); } override public function get width():Number{ return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width); } override protected function configUI():void{ super.configUI(); track = new BaseButton(); track.move(0, 14); track.useHandCursor = false; track.autoRepeat = true; track.focusEnabled = false; addChild(track); thumb = new LabelButton(); thumb.label = ""; thumb.setSize(WIDTH, 15); thumb.move(0, 15); thumb.focusEnabled = false; addChild(thumb); downArrow = new BaseButton(); downArrow.setSize(WIDTH, 14); downArrow.autoRepeat = true; downArrow.focusEnabled = false; addChild(downArrow); upArrow = new BaseButton(); upArrow.setSize(WIDTH, 14); upArrow.move(0, 0); upArrow.autoRepeat = true; upArrow.focusEnabled = false; addChild(upArrow); upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true); thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true); enabled = false; } public function set pageSize(_arg1:Number):void{ if (_arg1 > 0){ _pageSize = _arg1; }; } public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{ this.pageSize = _arg1; _minScrollPosition = _arg2; _maxScrollPosition = _arg3; if (_arg4 >= 0){ _pageScrollSize = _arg4; }; enabled = (_maxScrollPosition > _minScrollPosition); setScrollPosition(_scrollPosition, false); updateThumb(); } public function get pageScrollSize():Number{ return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize); } protected function handleThumbDrag(_arg1:MouseEvent):void{ var _local2:Number = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset))); setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition)); } protected function setStyles():void{ copyStylesToChild(downArrow, DOWN_ARROW_STYLES); copyStylesToChild(thumb, THUMB_STYLES); copyStylesToChild(track, TRACK_STYLES); copyStylesToChild(upArrow, UP_ARROW_STYLES); } protected function scrollPressHandler(_arg1:ComponentEvent):void{ var _local2:Number; var _local3:Number; _arg1.stopImmediatePropagation(); if (_arg1.currentTarget == upArrow){ setScrollPosition((_scrollPosition - _lineScrollSize)); } else { if (_arg1.currentTarget == downArrow){ setScrollPosition((_scrollPosition + _lineScrollSize)); } else { _local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition); _local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize; if (_scrollPosition < _local2){ setScrollPosition(Math.min(_local2, (_scrollPosition + _local3))); } else { if (_scrollPosition > _local2){ setScrollPosition(Math.max(_local2, (_scrollPosition - _local3))); }; }; }; }; } protected function thumbPressHandler(_arg1:MouseEvent):void{ inDrag = true; thumbScrollOffset = (mouseY - thumb.y); thumb.mouseStateLocked = true; mouseChildren = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true); stage.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true); } public function set direction(_arg1:String):void{ if (_direction == _arg1){ return; }; _direction = _arg1; if (isLivePreview){ return; }; setScaleY(1); var _local2 = (_direction == ScrollBarDirection.HORIZONTAL); if (((_local2) && (componentInspectorSetting))){ if (rotation == 90){ return; }; setScaleX(-1); rotation = -90; }; if (!componentInspectorSetting){ if (((_local2) && ((rotation == 0)))){ rotation = -90; setScaleX(-1); } else { if (((!(_local2)) && ((rotation == -90)))){ rotation = 0; setScaleX(1); }; }; }; invalidate(InvalidationType.SIZE); } public function get direction():String{ return (_direction); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 59
//ScrollBarDirection (fl.controls.ScrollBarDirection) package fl.controls { public class ScrollBarDirection { public static const HORIZONTAL:String = "horizontal"; public static const VERTICAL:String = "vertical"; } }//package fl.controls
Section 60
//ScrollPolicy (fl.controls.ScrollPolicy) package fl.controls { public class ScrollPolicy { public static const OFF:String = "off"; public static const ON:String = "on"; public static const AUTO:String = "auto"; } }//package fl.controls
Section 61
//SelectableList (fl.controls.SelectableList) package fl.controls { import fl.controls.listClasses.*; import fl.core.*; import flash.display.*; import flash.events.*; import fl.data.*; import flash.utils.*; import fl.managers.*; import fl.events.*; import fl.containers.*; import flash.ui.*; public class SelectableList extends BaseScrollPane implements IFocusManagerComponent { protected var invalidItems:Dictionary; protected var renderedItems:Dictionary; protected var caretIndex:int;// = -1 protected var updatedRendererStyles:Object; protected var _allowMultipleSelection:Boolean;// = false protected var lastCaretIndex:int;// = -1 protected var _verticalScrollPosition:Number; protected var _selectedIndices:Array; protected var preChangeItems:Array; protected var activeCellRenderers:Array; protected var availableCellRenderers:Array; protected var rendererStyles:Object; protected var list:Sprite; protected var _dataProvider:DataProvider; protected var _horizontalScrollPosition:Number; private var collectionItemImport:SimpleCollectionItem; protected var listHolder:Sprite; protected var _selectable:Boolean;// = true private static var defaultStyles:Object = {skin:"List_skin", cellRenderer:CellRenderer, contentPadding:null, disabledAlpha:null}; public static var createAccessibilityImplementation:Function; public function SelectableList(){ activeCellRenderers = []; availableCellRenderers = []; invalidItems = new Dictionary(true); renderedItems = new Dictionary(true); _selectedIndices = []; if (dataProvider == null){ dataProvider = new DataProvider(); }; verticalScrollPolicy = ScrollPolicy.AUTO; rendererStyles = {}; updatedRendererStyles = {}; } protected function drawList():void{ } protected function moveSelectionHorizontally(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function get allowMultipleSelection():Boolean{ return (_allowMultipleSelection); } protected function onPreChange(_arg1:DataChangeEvent):void{ switch (_arg1.changeType){ case DataChangeType.REMOVE: case DataChangeType.ADD: case DataChangeType.INVALIDATE: case DataChangeType.REMOVE_ALL: case DataChangeType.REPLACE: case DataChangeType.INVALIDATE_ALL: break; default: preChangeItems = selectedItems; break; }; } public function set selectedIndices(_arg1:Array):void{ if (!_selectable){ return; }; _selectedIndices = ((_arg1)==null) ? [] : _arg1.concat(); invalidate(InvalidationType.SELECTED); } public function isItemSelected(_arg1:Object):Boolean{ return ((selectedItems.indexOf(_arg1) > -1)); } public function set allowMultipleSelection(_arg1:Boolean):void{ if (_arg1 == _allowMultipleSelection){ return; }; _allowMultipleSelection = _arg1; if (((!(_arg1)) && ((_selectedIndices.length > 1)))){ _selectedIndices = [_selectedIndices.pop()]; invalidate(InvalidationType.DATA); }; } override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ if (_arg1 == _verticalScrollPosition){ return; }; var _local3:Number = (_arg1 - _verticalScrollPosition); _verticalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _local3, _arg1)); }; } public function sortItemsOn(_arg1:String, _arg2:Object=null){ return (_dataProvider.sortOn(_arg1, _arg2)); } public function getNextIndexAtLetter(_arg1:String, _arg2:int=-1):int{ var _local5:Number; var _local6:Object; var _local7:String; if (length == 0){ return (-1); }; _arg1 = _arg1.toUpperCase(); var _local3:int = (length - 1); var _local4:Number = 0; while (_local4 < _local3) { _local5 = ((_arg2 + 1) + _local4); if (_local5 > (length - 1)){ _local5 = (_local5 - length); }; _local6 = getItemAt(_local5); if (_local6 == null){ break; }; _local7 = itemToLabel(_local6); if (_local7 == null){ } else { if (_local7.charAt(0).toUpperCase() == _arg1){ return (_local5); }; }; _local4++; }; return (-1); } override protected function draw():void{ super.draw(); } public function removeItemAt(_arg1:uint):Object{ return (_dataProvider.removeItemAt(_arg1)); } public function get selectedItem():Object{ return (((_selectedIndices.length)==0) ? null : _dataProvider.getItemAt(selectedIndex)); } protected function handleDataChange(_arg1:DataChangeEvent):void{ var _local5:uint; var _local2:int = _arg1.startIndex; var _local3:int = _arg1.endIndex; var _local4:String = _arg1.changeType; if (_local4 == DataChangeType.INVALIDATE_ALL){ clearSelection(); invalidateList(); } else { if (_local4 == DataChangeType.INVALIDATE){ _local5 = 0; while (_local5 < _arg1.items.length) { invalidateItem(_arg1.items[_local5]); _local5++; }; } else { if (_local4 == DataChangeType.ADD){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ _selectedIndices[_local5] = (_selectedIndices[_local5] + (_local2 - _local3)); }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE){ _local5 = 0; while (_local5 < _selectedIndices.length) { if (_selectedIndices[_local5] >= _local2){ if (_selectedIndices[_local5] <= _local3){ delete _selectedIndices[_local5]; } else { _selectedIndices[_local5] = (_selectedIndices[_local5] - ((_local2 - _local3) + 1)); }; }; _local5++; }; } else { if (_local4 == DataChangeType.REMOVE_ALL){ clearSelection(); } else { if (_local4 == DataChangeType.REPLACE){ } else { selectedItems = preChangeItems; preChangeItems = null; }; }; }; }; }; }; invalidate(InvalidationType.DATA); } public function itemToCellRenderer(_arg1:Object):ICellRenderer{ var _local2:*; var _local3:ICellRenderer; if (_arg1 != null){ for (_local2 in activeCellRenderers) { _local3 = (activeCellRenderers[_local2] as ICellRenderer); if (_local3.data == _arg1){ return (_local3); }; }; }; return (null); } public function addItem(_arg1:Object):void{ _dataProvider.addItem(_arg1); invalidateList(); } public function get rowCount():uint{ return (0); } override protected function configUI():void{ super.configUI(); listHolder = new Sprite(); addChild(listHolder); listHolder.scrollRect = contentScrollRect; list = new Sprite(); listHolder.addChild(list); } public function get selectable():Boolean{ return (_selectable); } public function clearRendererStyle(_arg1:String, _arg2:int=-1):void{ delete rendererStyles[_arg1]; updatedRendererStyles[_arg1] = null; invalidate(InvalidationType.RENDERER_STYLES); } protected function handleCellRendererMouseEvent(_arg1:MouseEvent):void{ var _local2:ICellRenderer = (_arg1.target as ICellRenderer); var _local3:String = ((_arg1.type)==MouseEvent.ROLL_OVER) ? ListEvent.ITEM_ROLL_OVER : ListEvent.ITEM_ROLL_OUT; dispatchEvent(new ListEvent(_local3, false, false, _local2.listData.column, _local2.listData.row, _local2.listData.index, _local2.data)); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!selectable){ return; }; switch (_arg1.keyCode){ case Keyboard.UP: case Keyboard.DOWN: case Keyboard.END: case Keyboard.HOME: case Keyboard.PAGE_UP: case Keyboard.PAGE_DOWN: moveSelectionVertically(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; case Keyboard.LEFT: case Keyboard.RIGHT: moveSelectionHorizontally(_arg1.keyCode, ((_arg1.shiftKey) && (_allowMultipleSelection)), ((_arg1.ctrlKey) && (_allowMultipleSelection))); _arg1.stopPropagation(); break; }; } protected function handleCellRendererDoubleClick(_arg1:MouseEvent):void{ if (!_enabled){ return; }; var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); var _local3:uint = _local2.listData.index; dispatchEvent(new ListEvent(ListEvent.ITEM_DOUBLE_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)); } public function setRendererStyle(_arg1:String, _arg2:Object, _arg3:uint=0):void{ if (rendererStyles[_arg1] == _arg2){ return; }; updatedRendererStyles[_arg1] = _arg2; rendererStyles[_arg1] = _arg2; invalidate(InvalidationType.RENDERER_STYLES); } public function set dataProvider(_arg1:DataProvider):void{ if (_dataProvider != null){ _dataProvider.removeEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange); _dataProvider.removeEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange); }; _dataProvider = _arg1; _dataProvider.addEventListener(DataChangeEvent.DATA_CHANGE, handleDataChange, false, 0, true); _dataProvider.addEventListener(DataChangeEvent.PRE_DATA_CHANGE, onPreChange, false, 0, true); clearSelection(); invalidateList(); } public function invalidateList():void{ _invalidateList(); invalidate(InvalidationType.DATA); } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ return (_dataProvider.replaceItemAt(_arg1, _arg2)); } public function removeAll():void{ _dataProvider.removeAll(); } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; list.mouseChildren = _enabled; } public function scrollToIndex(_arg1:int):void{ } public function get selectedIndices():Array{ return (_selectedIndices.concat()); } override protected function drawLayout():void{ super.drawLayout(); contentScrollRect = listHolder.scrollRect; contentScrollRect.width = availableWidth; contentScrollRect.height = availableHeight; listHolder.scrollRect = contentScrollRect; } protected function _invalidateList():void{ availableCellRenderers = []; while (activeCellRenderers.length > 0) { list.removeChild((activeCellRenderers.pop() as DisplayObject)); }; } public function set selectedItem(_arg1:Object):void{ var _local2:int = _dataProvider.getItemIndex(_arg1); selectedIndex = _local2; } public function getItemAt(_arg1:uint):Object{ return (_dataProvider.getItemAt(_arg1)); } protected function handleCellRendererChange(_arg1:Event):void{ var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); var _local3:uint = _local2.listData.index; _dataProvider.invalidateItemAt(_local3); } protected function moveSelectionVertically(_arg1:uint, _arg2:Boolean, _arg3:Boolean):void{ } public function itemToLabel(_arg1:Object):String{ return (_arg1["label"]); } public function addItemAt(_arg1:Object, _arg2:uint):void{ _dataProvider.addItemAt(_arg1, _arg2); invalidateList(); } override protected function initializeAccessibility():void{ if (SelectableList.createAccessibilityImplementation != null){ SelectableList.createAccessibilityImplementation(this); }; } protected function updateRendererStyles():void{ var _local4:String; var _local1:Array = availableCellRenderers.concat(activeCellRenderers); var _local2:uint = _local1.length; var _local3:uint; while (_local3 < _local2) { if (_local1[_local3].setStyle == null){ } else { for (_local4 in updatedRendererStyles) { _local1[_local3].setStyle(_local4, updatedRendererStyles[_local4]); }; _local1[_local3].drawNow(); }; _local3++; }; updatedRendererStyles = {}; } public function set selectable(_arg1:Boolean):void{ if (_arg1 == _selectable){ return; }; if (!_arg1){ selectedIndices = []; }; _selectable = _arg1; } public function removeItem(_arg1:Object):Object{ return (_dataProvider.removeItem(_arg1)); } public function get dataProvider():DataProvider{ return (_dataProvider); } public function set maxHorizontalScrollPosition(_arg1:Number):void{ _maxHorizontalScrollPosition = _arg1; invalidate(InvalidationType.SIZE); } public function clearSelection():void{ selectedIndex = -1; } public function invalidateItemAt(_arg1:uint):void{ var _local2:Object = _dataProvider.getItemAt(_arg1); if (_local2 != null){ invalidateItem(_local2); }; } public function sortItems(... _args){ return (_dataProvider.sort.apply(_dataProvider, _args)); } public function set selectedItems(_arg1:Array):void{ var _local4:int; if (_arg1 == null){ selectedIndices = null; return; }; var _local2:Array = []; var _local3:uint; while (_local3 < _arg1.length) { _local4 = _dataProvider.getItemIndex(_arg1[_local3]); if (_local4 != -1){ _local2.push(_local4); }; _local3++; }; selectedIndices = _local2; } override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{ if (_arg1 == _horizontalScrollPosition){ return; }; var _local3:Number = (_arg1 - _horizontalScrollPosition); _horizontalScrollPosition = _arg1; if (_arg2){ dispatchEvent(new ScrollEvent(ScrollBarDirection.HORIZONTAL, _local3, _arg1)); }; } override public function get maxHorizontalScrollPosition():Number{ return (_maxHorizontalScrollPosition); } public function scrollToSelected():void{ scrollToIndex(selectedIndex); } public function get selectedItems():Array{ var _local1:Array = []; var _local2:uint; while (_local2 < _selectedIndices.length) { _local1.push(_dataProvider.getItemAt(_selectedIndices[_local2])); _local2++; }; return (_local1); } public function get length():uint{ return (_dataProvider.length); } public function invalidateItem(_arg1:Object):void{ if (renderedItems[_arg1] == null){ return; }; invalidItems[_arg1] = true; invalidate(InvalidationType.DATA); } public function set selectedIndex(_arg1:int):void{ selectedIndices = ((_arg1)==-1) ? null : [_arg1]; } public function get selectedIndex():int{ return (((_selectedIndices.length)==0) ? -1 : _selectedIndices[(_selectedIndices.length - 1)]); } public function getRendererStyle(_arg1:String, _arg2:int=-1):Object{ return (rendererStyles[_arg1]); } protected function handleCellRendererClick(_arg1:MouseEvent):void{ var _local5:int; var _local6:uint; if (!_enabled){ return; }; var _local2:ICellRenderer = (_arg1.currentTarget as ICellRenderer); var _local3:uint = _local2.listData.index; if (((!(dispatchEvent(new ListEvent(ListEvent.ITEM_CLICK, false, true, _local2.listData.column, _local2.listData.row, _local3, _local2.data)))) || (!(_selectable)))){ return; }; var _local4:int = selectedIndices.indexOf(_local3); if (!_allowMultipleSelection){ if (_local4 != -1){ return; }; _local2.selected = true; _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); } else { if (_arg1.shiftKey){ _local6 = ((_selectedIndices.length)>0) ? _selectedIndices[0] : _local3; _selectedIndices = []; if (_local6 > _local3){ _local5 = _local6; while (_local5 >= _local3) { _selectedIndices.push(_local5); _local5--; }; } else { _local5 = _local6; while (_local5 <= _local3) { _selectedIndices.push(_local5); _local5++; }; }; caretIndex = _local3; } else { if (_arg1.ctrlKey){ if (_local4 != -1){ _local2.selected = false; _selectedIndices.splice(_local4, 1); } else { _local2.selected = true; _selectedIndices.push(_local3); }; caretIndex = _local3; } else { _selectedIndices = [_local3]; lastCaretIndex = (caretIndex = _local3); }; }; }; dispatchEvent(new Event(Event.CHANGE)); invalidate(InvalidationType.DATA); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition())); } } }//package fl.controls
Section 62
//TextInput (fl.controls.TextInput) package fl.controls { import fl.core.*; import flash.display.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class TextInput extends UIComponent implements IFocusManagerComponent { protected var _html:Boolean;// = false protected var background:DisplayObject; protected var _savedHTML:String; protected var _editable:Boolean;// = true public var textField:TextField; private static var defaultStyles:Object = {upSkin:"TextInput_upSkin", disabledSkin:"TextInput_disabledSkin", focusRectSkin:null, focusRectPadding:null, textFormat:null, disabledTextFormat:null, textPadding:0, embedFonts:false}; public static var createAccessibilityImplementation:Function; public function set alwaysShowSelection(_arg1:Boolean):void{ textField.alwaysShowSelection = _arg1; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; updateTextFieldType(); } public function get imeMode():String{ return (_imeMode); } protected function handleChange(_arg1:Event):void{ _arg1.stopPropagation(); dispatchEvent(new Event(Event.CHANGE, true)); } public function set imeMode(_arg1:String):void{ _imeMode = _arg1; } protected function setEmbedFont(){ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } protected function drawLayout():void{ var _local1:Number = Number(getStyleValue("textPadding")); if (background != null){ background.width = width; background.height = height; }; textField.width = (width - (2 * _local1)); textField.height = (height - (2 * _local1)); textField.x = (textField.y = _local1); } public function set condenseWhite(_arg1:Boolean):void{ textField.condenseWhite = _arg1; } public function get textWidth():Number{ return (textField.textWidth); } override protected function focusOutHandler(_arg1:FocusEvent):void{ super.focusOutHandler(_arg1); if (editable){ setIMEMode(false); }; } override public function setFocus():void{ stage.focus = textField; } public function set displayAsPassword(_arg1:Boolean):void{ textField.displayAsPassword = _arg1; } protected function drawBackground():void{ var _local1:DisplayObject = background; var _local2:String = (enabled) ? "upSkin" : "disabledSkin"; background = getDisplayObjectInstance(getStyleValue(_local2)); if (background == null){ return; }; addChildAt(background, 0); if (((((!((_local1 == null))) && (!((_local1 == background))))) && (contains(_local1)))){ removeChild(_local1); }; } public function get text():String{ return (textField.text); } public function set maxChars(_arg1:int):void{ textField.maxChars = _arg1; } public function set horizontalScrollPosition(_arg1:int):void{ textField.scrollH = _arg1; } override protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((((_arg1 == textField)) || (super.isOurFocus(_arg1)))); } public function get textHeight():Number{ return (textField.textHeight); } public function get restrict():String{ return (textField.restrict); } public function get alwaysShowSelection():Boolean{ return (textField.alwaysShowSelection); } override public function get enabled():Boolean{ return (super.enabled); } override protected function draw():void{ var _local1:Object; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawTextFormat(); drawBackground(); _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } public function set editable(_arg1:Boolean):void{ _editable = _arg1; updateTextFieldType(); } public function setSelection(_arg1:int, _arg2:int):void{ textField.setSelection(_arg1, _arg2); } public function get condenseWhite():Boolean{ return (textField.condenseWhite); } public function get displayAsPassword():Boolean{ return (textField.displayAsPassword); } public function get selectionBeginIndex():int{ return (textField.selectionBeginIndex); } override protected function configUI():void{ super.configUI(); tabChildren = true; textField = new TextField(); addChild(textField); updateTextFieldType(); textField.addEventListener(TextEvent.TEXT_INPUT, handleTextInput, false, 0, true); textField.addEventListener(Event.CHANGE, handleChange, false, 0, true); textField.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown, false, 0, true); } public function get maxChars():int{ return (textField.maxChars); } public function set text(_arg1:String):void{ textField.text = _arg1; _html = false; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } protected function updateTextFieldType():void{ textField.type = (((enabled) && (editable))) ? TextFieldType.INPUT : TextFieldType.DYNAMIC; textField.selectable = enabled; } protected function handleKeyDown(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.ENTER){ dispatchEvent(new ComponentEvent(ComponentEvent.ENTER, true)); }; } public function get horizontalScrollPosition():int{ return (textField.scrollH); } public function get selectionEndIndex():int{ return (textField.selectionEndIndex); } public function get editable():Boolean{ return (_editable); } public function get maxHorizontalScrollPosition():int{ return (textField.maxScrollH); } public function appendText(_arg1:String):void{ textField.appendText(_arg1); } protected function drawTextFormat():void{ var _local1:Object = UIComponent.getStyleDefinition(); var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); if (_html){ textField.htmlText = _savedHTML; }; } public function get length():int{ return (textField.length); } public function set htmlText(_arg1:String):void{ if (_arg1 == ""){ text = ""; return; }; _html = true; _savedHTML = _arg1; textField.htmlText = _arg1; invalidate(InvalidationType.DATA); invalidate(InvalidationType.STYLES); } protected function handleTextInput(_arg1:TextEvent):void{ _arg1.stopPropagation(); dispatchEvent(new TextEvent(TextEvent.TEXT_INPUT, true, false, _arg1.text)); } public function set restrict(_arg1:String):void{ if (((componentInspectorSetting) && ((_arg1 == "")))){ _arg1 = null; }; textField.restrict = _arg1; } public function getLineMetrics(_arg1:int):TextLineMetrics{ return (textField.getLineMetrics(_arg1)); } override public function drawFocus(_arg1:Boolean):void{ if (focusTarget != null){ focusTarget.drawFocus(_arg1); return; }; super.drawFocus(_arg1); } override protected function focusInHandler(_arg1:FocusEvent):void{ if (_arg1.target == this){ stage.focus = textField; }; var _local2:IFocusManager = focusManager; if (((editable) && (_local2))){ _local2.showFocusIndicator = true; if (((textField.selectable) && ((textField.selectionBeginIndex == textField.selectionBeginIndex)))){ setSelection(0, textField.length); }; }; super.focusInHandler(_arg1); if (editable){ setIMEMode(true); }; } public function get htmlText():String{ return (textField.htmlText); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 63
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 64
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 65
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import flash.utils.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.system.*; public class UIComponent extends Sprite { protected var _x:Number; protected var _enabled:Boolean;// = true protected var callLaterMethods:Dictionary; private var _mouseFocusEnabled:Boolean;// = true private var tempText:TextField; private var _focusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var invalidateFlag:Boolean;// = false protected var _oldIMEMode:String;// = null protected var _inspector:Boolean;// = false protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var invalidHash:Object; protected var sharedStyles:Object; protected var uiFocusRect:DisplayObject; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var _width:Number; protected var instanceStyles:Object; public var version:String;// = "3.0.0.16" protected var isFocused:Boolean;// = false protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } private function callLaterDispatcher(_arg1:Event):void{ var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; var _local2:Dictionary = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } protected function validate():void{ invalidHash = {}; } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } override public function get height():Number{ return (_height); } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } override public function get scaleY():Number{ return ((height / startHeight)); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function configUI():void{ isLivePreview = checkLivePreview(); var _local1:Number = rotation; rotation = 0; var _local2:Number = super.width; var _local3:Number = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } override public function get scaleX():Number{ return ((width / startWidth)); } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var skin = _arg1; var classDef:Object; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } override public function set visible(_arg1:Boolean):void{ if (super.visible == _arg1){ return; }; super.visible = _arg1; var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set y(_arg1:Number):void{ move(_x, _arg1); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local5:Object; var _local6:String; var _local2:Object = {}; var _local3:uint = _args.length; var _local4:uint; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 66
//DataProvider (fl.data.DataProvider) package fl.data { import flash.events.*; import fl.events.*; public class DataProvider extends EventDispatcher { protected var data:Array; public function DataProvider(_arg1:Object=null){ if (_arg1 == null){ data = []; } else { data = getDataFromObject(_arg1); }; } public function invalidateItemAt(_arg1:int):void{ checkIndex(_arg1, (data.length - 1)); dispatchChangeEvent(DataChangeType.INVALIDATE, [data[_arg1]], _arg1, _arg1); } protected function dispatchPreChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.PRE_DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } public function getItemIndex(_arg1:Object):int{ return (data.indexOf(_arg1)); } public function removeItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); dispatchPreChangeEvent(DataChangeType.REMOVE, data.slice(_arg1, (_arg1 + 1)), _arg1, _arg1); var _local2:Array = data.splice(_arg1, 1); dispatchChangeEvent(DataChangeType.REMOVE, _local2, _arg1, _arg1); return (_local2[0]); } protected function getDataFromObject(_arg1:Object):Array{ var _local2:Array; var _local3:Array; var _local4:uint; var _local5:Object; var _local6:XML; var _local7:XMLList; var _local8:XML; var _local9:XMLList; var _local10:XML; var _local11:XMLList; var _local12:XML; if ((_arg1 is Array)){ _local3 = (_arg1 as Array); if (_local3.length > 0){ if ((((_local3[0] is String)) || ((_local3[0] is Number)))){ _local2 = []; _local4 = 0; while (_local4 < _local3.length) { _local5 = {label:String(_local3[_local4]), data:_local3[_local4]}; _local2.push(_local5); _local4++; }; return (_local2); }; }; return (_arg1.concat()); //unresolved jump }; if ((_arg1 is DataProvider)){ return (_arg1.toArray()); }; if ((_arg1 is XML)){ _local6 = (_arg1 as XML); _local2 = []; _local7 = _local6.*; for each (_local8 in _local7) { _arg1 = {}; _local9 = _local8.attributes(); for each (_local10 in _local9) { _arg1[_local10.localName()] = _local10.toString(); }; _local11 = _local8.*; for each (_local12 in _local11) { if (_local12.hasSimpleContent()){ _arg1[_local12.localName()] = _local12.toString(); }; }; _local2.push(_arg1); }; return (_local2); //unresolved jump }; throw (new TypeError((("Error: Type Coercion failed: cannot convert " + _arg1) + " to Array or DataProvider."))); } public function addItem(_arg1:Object):void{ dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); data.push(_arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], (data.length - 1), (data.length - 1)); } public function concat(_arg1:Object):void{ addItems(_arg1); } public function getItemAt(_arg1:uint):Object{ checkIndex(_arg1, (data.length - 1)); return (data[_arg1]); } public function sortOn(_arg1:Object, _arg2:Object=null){ dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); var _local3:Array = data.sortOn(_arg1, _arg2); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local3); } public function toArray():Array{ return (data.concat()); } public function addItems(_arg1:Object):void{ addItemsAt(_arg1, data.length); } public function clone():DataProvider{ return (new DataProvider(data)); } public function sort(... _args){ dispatchPreChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); var _local2:Array = data.sort.apply(data, _args); dispatchChangeEvent(DataChangeType.SORT, data.concat(), 0, (data.length - 1)); return (_local2); } public function get length():uint{ return (data.length); } public function addItemAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); dispatchPreChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); data.splice(_arg2, 0, _arg1); dispatchChangeEvent(DataChangeType.ADD, [_arg1], _arg2, _arg2); } override public function toString():String{ return ((("DataProvider [" + data.join(" , ")) + "]")); } public function invalidateItem(_arg1:Object):void{ var _local2:uint = getItemIndex(_arg1); if (_local2 == -1){ return; }; invalidateItemAt(_local2); } protected function dispatchChangeEvent(_arg1:String, _arg2:Array, _arg3:int, _arg4:int):void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, _arg1, _arg2, _arg3, _arg4)); } protected function checkIndex(_arg1:int, _arg2:int):void{ if ((((_arg1 > _arg2)) || ((_arg1 < 0)))){ throw (new RangeError((((("DataProvider index (" + _arg1) + ") is not in acceptable range (0 - ") + _arg2) + ")"))); }; } public function addItemsAt(_arg1:Object, _arg2:uint):void{ checkIndex(_arg2, data.length); var _local3:Array = getDataFromObject(_arg1); dispatchPreChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); data.splice.apply(data, [_arg2, 0].concat(_local3)); dispatchChangeEvent(DataChangeType.ADD, _local3, _arg2, ((_arg2 + _local3.length) - 1)); } public function replaceItem(_arg1:Object, _arg2:Object):Object{ var _local3:int = getItemIndex(_arg2); if (_local3 != -1){ return (replaceItemAt(_arg1, _local3)); }; return (null); } public function removeItem(_arg1:Object):Object{ var _local2:int = getItemIndex(_arg1); if (_local2 != -1){ return (removeItemAt(_local2)); }; return (null); } public function merge(_arg1:Object):void{ var _local6:Object; var _local2:Array = getDataFromObject(_arg1); var _local3:uint = _local2.length; var _local4:uint = data.length; dispatchPreChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); var _local5:uint; while (_local5 < _local3) { _local6 = _local2[_local5]; if (getItemIndex(_local6) == -1){ data.push(_local6); }; _local5++; }; if (data.length > _local4){ dispatchChangeEvent(DataChangeType.ADD, data.slice(_local4, data.length), _local4, (this.data.length - 1)); } else { dispatchChangeEvent(DataChangeType.ADD, [], -1, -1); }; } public function replaceItemAt(_arg1:Object, _arg2:uint):Object{ checkIndex(_arg2, (data.length - 1)); var _local3:Array = [data[_arg2]]; dispatchPreChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); data[_arg2] = _arg1; dispatchChangeEvent(DataChangeType.REPLACE, _local3, _arg2, _arg2); return (_local3[0]); } public function invalidate():void{ dispatchEvent(new DataChangeEvent(DataChangeEvent.DATA_CHANGE, DataChangeType.INVALIDATE_ALL, data.concat(), 0, data.length)); } public function removeAll():void{ var _local1:Array = data.concat(); dispatchPreChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); data = []; dispatchChangeEvent(DataChangeType.REMOVE_ALL, _local1, 0, _local1.length); } } }//package fl.data
Section 67
//SimpleCollectionItem (fl.data.SimpleCollectionItem) package fl.data { public dynamic class SimpleCollectionItem { public var data:String; public var label:String; public function toString():String{ return ((((("[SimpleCollectionItem: " + label) + ",") + data) + "]")); } } }//package fl.data
Section 68
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 69
//DataChangeEvent (fl.events.DataChangeEvent) package fl.events { import flash.events.*; public class DataChangeEvent extends Event { protected var _items:Array; protected var _changeType:String; protected var _startIndex:uint; protected var _endIndex:uint; public static const PRE_DATA_CHANGE:String = "preDataChange"; public static const DATA_CHANGE:String = "dataChange"; public function DataChangeEvent(_arg1:String, _arg2:String, _arg3:Array, _arg4:int=-1, _arg5:int=-1):void{ super(_arg1); _changeType = _arg2; _startIndex = _arg4; _items = _arg3; _endIndex = ((_arg5)==-1) ? _startIndex : _arg5; } public function get items():Array{ return (_items); } public function get changeType():String{ return (_changeType); } public function get startIndex():uint{ return (_startIndex); } public function get endIndex():uint{ return (_endIndex); } override public function toString():String{ return (formatToString("DataChangeEvent", "type", "changeType", "startIndex", "endIndex", "bubbles", "cancelable")); } override public function clone():Event{ return (new DataChangeEvent(type, _changeType, _items, _startIndex, _endIndex)); } } }//package fl.events
Section 70
//DataChangeType (fl.events.DataChangeType) package fl.events { public class DataChangeType { public static const ADD:String = "add"; public static const REMOVE:String = "remove"; public static const REMOVE_ALL:String = "removeAll"; public static const CHANGE:String = "change"; public static const REPLACE:String = "replace"; public static const INVALIDATE:String = "invalidate"; public static const INVALIDATE_ALL:String = "invalidateAll"; public static const SORT:String = "sort"; } }//package fl.events
Section 71
//ListEvent (fl.events.ListEvent) package fl.events { import flash.events.*; public class ListEvent extends Event { protected var _item:Object; protected var _index:int; protected var _rowIndex:int; protected var _columnIndex:int; public static const ITEM_DOUBLE_CLICK:String = "itemDoubleClick"; public static const ITEM_ROLL_OUT:String = "itemRollOut"; public static const ITEM_ROLL_OVER:String = "itemRollOver"; public static const ITEM_CLICK:String = "itemClick"; public function ListEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:int=-1, _arg5:int=-1, _arg6:int=-1, _arg7:Object=null){ super(_arg1, _arg2, _arg3); _rowIndex = _arg5; _columnIndex = _arg4; _index = _arg6; _item = _arg7; } public function get item():Object{ return (_item); } override public function toString():String{ return (formatToString("ListEvent", "type", "bubbles", "cancelable", "columnIndex", "rowIndex", "index", "item")); } override public function clone():Event{ return (new ListEvent(type, bubbles, cancelable, _columnIndex, _rowIndex)); } public function get rowIndex():Object{ return (_rowIndex); } public function get index():int{ return (_index); } public function get columnIndex():int{ return (_columnIndex); } } }//package fl.events
Section 72
//ScrollEvent (fl.events.ScrollEvent) package fl.events { import flash.events.*; public class ScrollEvent extends Event { private var _direction:String; private var _position:Number; private var _delta:Number; public static const SCROLL:String = "scroll"; public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){ super(ScrollEvent.SCROLL, false, false); _direction = _arg1; _delta = _arg2; _position = _arg3; } public function get position():Number{ return (_position); } public function get direction():String{ return (_direction); } public function get delta():Number{ return (_delta); } override public function toString():String{ return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position")); } override public function clone():Event{ return (new ScrollEvent(_direction, _delta, _position)); } } }//package fl.events
Section 73
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.core.*; import fl.controls.*; import flash.display.*; import flash.events.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; var _local5:int = focusableCandidates.length; var _local6:int = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } private function setFocusToNextObject(_arg1:FocusEvent):void{ if (!hasFocusableObjects()){ return; }; var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local3:TextField; var _local4:SimpleButton; var _local2:DisplayObjectContainer = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } private function tabChildrenChangeHandler(_arg1:Event):void{ if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } public function getFocus():InteractiveObject{ var _local1:InteractiveObject = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } public function set defaultButton(_arg1:Button):void{ var _local2:Button = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int = focusableCandidates.length; var _local3:int; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local4:InteractiveObject; var _local3:DisplayObject = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local5:int; var _local6:String; var _local7:String; var _local3 = ""; var _local4 = ""; var _local8 = "0000"; var _local9:DisplayObject = DisplayObject(_arg1); var _local10:DisplayObject = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; var _local2:DisplayObject = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); var _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; var _local4:int = getIndexOfFocusedObject(_local2); var _local5:Boolean; var _local6:int = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ if (_arg1.isDefaultPrevented()){ return; }; var _local2:InteractiveObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local3:Button; var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ calculateCandidates = true; var _local2:InteractiveObject = InteractiveObject(_arg1.target); var _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } } }//package fl.managers
Section 74
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function hideFocus():void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function setFocus(_arg1:InteractiveObject):void; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 75
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.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 fl.managers
Section 76
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function get groupName():String; function get selected():Boolean; function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; } }//package fl.managers
Section 77
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.utils.*; import flash.text.*; public class StyleManager { private var classToInstancesDict:Dictionary; private var globalStyles:Object; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToDefaultStylesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class = getClassDef(_arg1); var _local5:Object = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local5:String; var _local2:StyleManager = getInstance(); var _local3:Class = getClassDef(_arg1); var _local4:Object = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local4:Object; var _local5:UIComponent; var _local3:Dictionary = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local3:Object; var _local2:Dictionary = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; var inst:StyleManager = getInstance(); var classDef:Class = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; if (inst.classToStylesDict[classDef] == null){ inst.classToStylesDict[classDef] = {}; }; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:StyleManager = getInstance(); var _local5:Object = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 78
//None (fl.transitions.easing.None) package fl.transitions.easing { public class None { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } } }//package fl.transitions.easing
Section 79
//Tween (fl.transitions.Tween) package fl.transitions { import flash.display.*; import flash.events.*; import flash.utils.*; public class Tween extends EventDispatcher { private var _position:Number;// = NAN public var prevTime:Number;// = NAN public var prevPos:Number;// = NAN public var isPlaying:Boolean;// = false private var _fps:Number;// = NAN private var _time:Number;// = NAN public var begin:Number;// = NAN private var _finish:Number;// = NAN public var change:Number;// = NAN public var looping:Boolean;// = false private var _intervalID:uint;// = 0 public var func:Function; private var _timer:Timer;// = null private var _startTime:Number;// = NAN public var prop:String;// = "" private var _duration:Number;// = NAN public var obj:Object;// = null public var useSeconds:Boolean;// = false protected static var _mc:MovieClip = new MovieClip(); public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){ this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); }; super(); if (!arguments.length){ return; }; this.obj = _arg1; this.prop = _arg2; this.begin = _arg4; this.position = _arg4; this.duration = _arg6; this.useSeconds = _arg7; if ((_arg3 is Function)){ this.func = _arg3; }; this.finish = _arg5; this._timer = new Timer(100); this.start(); } public function continueTo(_arg1:Number, _arg2:Number):void{ this.begin = this.position; this.finish = _arg1; if (!isNaN(_arg2)){ this.duration = _arg2; }; this.start(); } protected function startEnterFrame():void{ var _local1:Number; if (isNaN(this._fps)){ _mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true); } else { _local1 = (1000 / this._fps); this._timer.delay = _local1; this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true); this._timer.start(); }; this.isPlaying = true; } public function stop():void{ this.stopEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position)); } private function fixTime():void{ if (this.useSeconds){ this._startTime = (getTimer() - (this._time * 1000)); }; } public function set FPS(_arg1:Number):void{ var _local2:Boolean = this.isPlaying; this.stopEnterFrame(); this._fps = _arg1; if (_local2){ this.startEnterFrame(); }; } public function get finish():Number{ return ((this.begin + this.change)); } public function get duration():Number{ return (this._duration); } protected function stopEnterFrame():void{ if (isNaN(this._fps)){ _mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame); } else { this._timer.stop(); }; this.isPlaying = false; } public function set time(_arg1:Number):void{ this.prevTime = this._time; if (_arg1 > this.duration){ if (this.looping){ this.rewind((_arg1 - this._duration)); this.update(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position)); } else { if (this.useSeconds){ this._time = this._duration; this.update(); }; this.stop(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position)); }; } else { if (_arg1 < 0){ this.rewind(); this.update(); } else { this._time = _arg1; this.update(); }; }; } public function getPosition(_arg1:Number=NaN):Number{ if (isNaN(_arg1)){ _arg1 = this._time; }; return (this.func(_arg1, this.begin, this.change, this._duration)); } public function set finish(_arg1:Number):void{ this.change = (_arg1 - this.begin); } public function set duration(_arg1:Number):void{ this._duration = ((_arg1)<=0) ? Infinity : _arg1; } public function get position():Number{ return (this.getPosition(this._time)); } public function setPosition(_arg1:Number):void{ this.prevPos = this._position; if (this.prop.length){ this.obj[this.prop] = (this._position = _arg1); }; this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position)); } public function resume():void{ this.fixTime(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position)); } public function fforward():void{ this.time = this._duration; this.fixTime(); } protected function onEnterFrame(_arg1:Event):void{ this.nextFrame(); } public function yoyo():void{ this.continueTo(this.begin, this.time); } public function nextFrame():void{ if (this.useSeconds){ this.time = ((getTimer() - this._startTime) / 1000); } else { this.time = (this._time + 1); }; } protected function timerHandler(_arg1:TimerEvent):void{ this.nextFrame(); _arg1.updateAfterEvent(); } public function get FPS():Number{ return (this._fps); } public function rewind(_arg1:Number=0):void{ this._time = _arg1; this.fixTime(); this.update(); } public function set position(_arg1:Number):void{ this.setPosition(_arg1); } public function get time():Number{ return (this._time); } private function update():void{ this.setPosition(this.getPosition(this._time)); } public function start():void{ this.rewind(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position)); } public function prevFrame():void{ if (!this.useSeconds){ this.time = (this._time - 1); }; } } }//package fl.transitions
Section 80
//TweenEvent (fl.transitions.TweenEvent) package fl.transitions { import flash.events.*; public class TweenEvent extends Event { public var position:Number;// = NAN public var time:Number;// = NAN public static const MOTION_START:String = "motionStart"; public static const MOTION_STOP:String = "motionStop"; public static const MOTION_LOOP:String = "motionLoop"; public static const MOTION_CHANGE:String = "motionChange"; public static const MOTION_FINISH:String = "motionFinish"; public static const MOTION_RESUME:String = "motionResume"; public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){ super(_arg1, _arg4, _arg5); this.time = _arg2; this.position = _arg3; } override public function clone():Event{ return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable)); } } }//package fl.transitions
Section 81
//MochiAd (mochi.as3.MochiAd) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; 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:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ }, 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:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ }, 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"){ }; 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)){ return (null); }; if (MovieClip(clip).stage == null){ 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; //unresolved jump }; 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{ }); 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.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array = _arg2.split("."); var _local4:Number = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": 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; }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ }, 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{ 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{ MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ 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 82
//MochiBot (mochi.as3.MochiBot) package mochi.as3 { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:MochiBot = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package mochi.as3
Section 83
//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"; public static var _inventory:MochiInventory; public static function triggerEvent(_arg1:String, _arg2:Object):void{ MochiSocial.triggerEvent(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ MochiSocial.removeEventListener(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ MochiSocial.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.bringToTop(); MochiServices.send("coins_showStore", {options:_arg1}, null, null); } public static function showItem(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ return; }; 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"))))){ return; }; MochiServices.bringToTop(); MochiServices.send("coins_showVideo", {options:_arg1}, null, null); } MochiSocial.addEventListener(MochiSocial.LOGGED_IN, function (_arg1:Object):void{ _inventory = new MochiInventory(); }); MochiSocial.addEventListener(MochiSocial.LOGGED_OUT, function (_arg1:Object):void{ _inventory = null; }); } }//package mochi.as3
Section 84
//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 85
//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 86
//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 87
//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.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]); }; 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 88
//MochiServices (mochi.as3.MochiServices) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.system.*; public class MochiServices { 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; public static var servicesSync:MochiSync = new MochiSync(); private static var _nextCallbackID:Number; private static var _clip:MovieClip; 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 _loader:Loader; 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 pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = _callbacks[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; var methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; //unresolved jump }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { }; }; }; 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)))){ 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); }; } public static function get childClip():Object{ return (_clip); } 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); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } 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://x.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 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(); } 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.8 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){ return; }; if (_arg1 == "1e113c7239048b3f"){ if (_arg2){ //unresolved jump }; return; } else { if (_arg1 == "84993a1de4031cd8"){ if (_arg2){ //unresolved jump }; 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: 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 "events": MochiEvents.triggerEvent(_arg1.event, _arg1.args); break; case "coins": MochiCoins.triggerEvent(_arg1.event, _arg1.args); break; case "sync": servicesSync.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 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{ _clip._mochiad_ctr_failed = true; MochiServices.disconnect(); MochiServices.onError("IOError"); } private static function initComChannels():void{ if (!_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()); }; }; } private static function loadLCBridge(_arg1:Object):void{ var loader:Loader; var clip = _arg1; loader = new Loader(); var mochiLCURL:String = (_servURL + _mochiLC); var req:URLRequest = new URLRequest(mochiLCURL); var complete:Function = function (_arg1:Object):void{ _mochiLocalConnection = MovieClip(loader.content); listen(); }; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); loader.load(req); clip.addChild(loader); } private static function listen():void{ _mochiLocalConnection.connect(_listenChannelName); _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; } public static function get clip():Object{ return (_container); } 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(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 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){ }; if (((!(_connected)) && ((_clip == null)))){ _connecting = true; init(id, clip); }; //unresolved jump }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ }; }; }; } public static function updateCopy(_arg1:Object):void{ MochiServices.send("coins_updateCopy", _arg1, null, null); } 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) { _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; } public static function connectWait(_arg1:TimerEvent):void{ if (!_connected){ _clip._mochiad_ctr_failed = true; MochiServices.disconnect(); MochiServices.onError("IOError"); }; } } }//package mochi.as3
Section 89
//MochiSocial (mochi.as3.MochiSocial) package mochi.as3 { public class MochiSocial { public static const LOGGED_IN:String = "LoggedIn"; public static const PROFILE_HIDE:String = "ProfileHide"; public static const NO_USER:String = "NoUser"; public static const PROPERTIES_SIZE:String = "PropertiesSize"; public static const IO_ERROR:String = "IOError"; public static const PROPERTIES_SAVED:String = "PropertySaved"; public static const WIDGET_LOADED:String = "WidgetLoaded"; public static const USER_INFO:String = "UserInfo"; public static const ERROR:String = "Error"; public static const LOGIN_SHOW:String = "LoginShow"; public static const LOGGED_OUT:String = "LoggedOut"; public static const PROFILE_SHOW:String = "ProfileShow"; public static const LOGIN_SHOWN:String = "LoginShown"; public static const LOGIN_HIDE:String = "LoginHide"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public static var _user_info:Object = null; public static function getVersion():String{ return (MochiServices.getVersion()); } public static function saveUserProperties(_arg1:Object):void{ MochiServices.send("coins_saveUserProperties", _arg1); } public static function get loggedIn():Boolean{ return (!((_user_info == null))); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function getUserInfo():void{ MochiServices.send("coins_getUserInfo"); } public static function showLoginWidget(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showLoginWidget", {options:_arg1}); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function requestLogin():void{ MochiServices.send("coins_requestLogin"); } public static function getAPIURL():String{ if (!_user_info){ return (null); }; return (_user_info.api_url); } public static function hideLoginWidget():void{ MochiServices.send("coins_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 90
//MochiSync (mochi.as3.MochiSync) package mochi.as3 { import flash.utils.*; public dynamic class MochiSync extends Proxy { private var _syncContainer:Object; public static var SYNC_PROPERTY:String = "UpdateProperty"; public static var SYNC_REQUEST:String = "SyncRequest"; public function MochiSync():void{ _syncContainer = {}; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ if (_syncContainer[_arg1] == _arg2){ return; }; var _local3:String = _arg1.toString(); _syncContainer[_local3] = _arg2; MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ return (_syncContainer[_arg1]); } public function triggerEvent(_arg1:String, _arg2:Object):void{ switch (_arg1){ case SYNC_REQUEST: MochiServices.send("sync_syncronize", _syncContainer); break; case SYNC_PROPERTY: _syncContainer[_arg2.name] = _arg2.value; break; }; } } }//package mochi.as3
Section 91
//MochiUserData (mochi.as3.MochiUserData) package mochi.as3 { import flash.events.*; import flash.net.*; import flash.utils.*; 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) { }; } 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 92
//AchievementConfig (MoFunZoneAPI.AchievementConfig) package MoFunZoneAPI { public class AchievementConfig { public var bringToTop:Boolean;// = true public var dialogScale:Number;// = 1 public var gameid:String;// = "" public var workspaceWidth:Number;// = 550 public var test:Boolean;// = true public var fadeout:Boolean;// = true public var workspaceHeight:Number;// = 400 public var autoPosition:String;// = "cc" public function AchievementConfig(){ test = true; gameid = ""; workspaceWidth = 550; workspaceHeight = 400; autoPosition = "cc"; bringToTop = true; fadeout = true; dialogScale = 1; } } }//package MoFunZoneAPI
Section 93
//AchievementLoaderAS3 (MoFunZoneAPI.AchievementLoaderAS3) package MoFunZoneAPI { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class AchievementLoaderAS3 { private static var _achiconfig:AchievementConfig = null; private static var _intervalId:uint; private static var _achievement:MovieClip = null; private static var _readyFuntion:Function = null; public static function loadAchievement(_arg1:String, _arg2:Object, _arg3:AchievementConfig, _arg4=null){ var ach_complete:Function; var status_loop:Function; var ach_ioerror:Function; var ach_http:Function; var ach_progress:Function; var ach_security:Function; var achievement_address = _arg1; var topleveltimeline = _arg2; var config = _arg3; var debug = _arg4; ach_complete = function (_arg1){ if (debug != null){ debug.text = "complete"; }; _achievement = topleveltimeline.addChild(_arg1.target.loader.content); _achievement.test = config.test; _achievement.gameid = config.gameid; _achievement.workspaceWidth = config.workspaceWidth; _achievement.workspaceHeight = config.workspaceHeight; _achievement.autoPosition = config.autoPosition; _achievement.bringToTop = config.bringToTop; _achievement.fadeout = config.fadeout; _achievement.dialogScale = config.dialogScale; if (debug != null){ debug.text = "config setup"; }; _achievement.play(); if (debug != null){ debug.text = "complete"; }; _intervalId = setInterval(status_loop, 1000); }; status_loop = function (){ if (_achievement.achistatus == "ok"){ if (debug != null){ debug.text = "ready"; }; if (_readyFuntion != null){ _readyFuntion(); }; clearInterval(_intervalId); }; }; ach_ioerror = function (_arg1){ if (debug != null){ debug.text = "Achievement SWF not found"; }; }; ach_http = function (_arg1){ if (debug != null){ debug.text = ("httpstatus: " + _arg1.status); }; }; ach_progress = function (_arg1){ if (debug != null){ debug.text = (debug.text + ((("progressHandler: bytesLoaded=" + _arg1.bytesLoaded) + " bytesTotal=") + _arg1.bytesTotal)); }; }; ach_security = function (_arg1){ if (debug != null){ debug.text = _arg1; }; }; Security.allowDomain("*"); if (_achievement != null){ return; }; var achievementload:Loader = new Loader(); var achievement_request:URLRequest = new URLRequest(achievement_address); _achiconfig = config; achievementload.contentLoaderInfo.addEventListener(Event.COMPLETE, ach_complete); achievementload.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, ach_security); achievementload.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ach_ioerror); achievementload.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, ach_http); achievementload.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, ach_progress); try { achievementload.load(achievement_request); if (debug != null){ debug.text = "loading"; }; } catch(error) { if (debug != null){ debug.text = "loaderror"; }; }; } public static function readyCallBack(_arg1:Function){ _readyFuntion = _arg1; } public static function getAPI(){ return (_achievement); } } }//package MoFunZoneAPI
Section 94
//batteryLevel_84 (take_something_literally_king_fla.batteryLevel_84) package take_something_literally_king_fla { import flash.display.*; public dynamic class batteryLevel_84 extends MovieClip { public function batteryLevel_84(){ addFrameScript(605, frame606); } function frame606(){ stop(); } } }//package take_something_literally_king_fla
Section 95
//bomb_103 (take_something_literally_king_fla.bomb_103) package take_something_literally_king_fla { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.text.*; import flash.media.*; import flash.external.*; import flash.system.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class bomb_103 extends MovieClip { public function bomb_103(){ addFrameScript(238, frame239); } function frame239(){ stop(); MovieClip(parent).lose(); } } }//package take_something_literally_king_fla
Section 96
//compledtedMc_120 (take_something_literally_king_fla.compledtedMc_120) package take_something_literally_king_fla { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.text.*; import com.my.*; import flash.media.*; import flash.external.*; import flash.system.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class compledtedMc_120 extends MovieClip { public var txtCompleted:TextField; public function compledtedMc_120(){ addFrameScript(0, frame1); } function frame1(){ txtCompleted.text = (("\"" + Language["completed"]) + "\""); } } }//package take_something_literally_king_fla
Section 97
//flameMotion_94 (take_something_literally_king_fla.flameMotion_94) package take_something_literally_king_fla { import flash.display.*; public dynamic class flameMotion_94 extends MovieClip { public function flameMotion_94(){ addFrameScript(100, frame101); } function frame101(){ stop(); } } }//package take_something_literally_king_fla
Section 98
//gameNameMotion_54 (take_something_literally_king_fla.gameNameMotion_54) package take_something_literally_king_fla { import flash.display.*; public dynamic class gameNameMotion_54 extends MovieClip { public var txt:MovieClip; public function gameNameMotion_54(){ addFrameScript(75, frame76); } function frame76(){ stop(); } } }//package take_something_literally_king_fla
Section 99
//gameoverMc_122 (take_something_literally_king_fla.gameoverMc_122) package take_something_literally_king_fla { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.text.*; import com.my.*; import flash.media.*; import flash.external.*; import flash.system.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class gameoverMc_122 extends MovieClip { public var txtContinue:TextField; public function gameoverMc_122(){ addFrameScript(0, frame1); } function frame1(){ txtContinue.text = Language["clickToContinue"]; } } }//package take_something_literally_king_fla
Section 100
//logo_4 (take_something_literally_king_fla.logo_4) package take_something_literally_king_fla { import flash.display.*; import flash.events.*; import flash.net.*; public dynamic class logo_4 extends MovieClip { public function logo_4(){ addFrameScript(0, frame1); } public function click(_arg1){ var request:URLRequest; var e = _arg1; try { request = new URLRequest("http://www.benoitfreslon.com/"); navigateToURL(request, "_blank"); } finally { }; } function frame1(){ this.buttonMode = true; this.addEventListener(MouseEvent.CLICK, click); } } }//package take_something_literally_king_fla
Section 101
//man_100 (take_something_literally_king_fla.man_100) package take_something_literally_king_fla { import flash.display.*; public dynamic class man_100 extends MovieClip { public function man_100(){ addFrameScript(0, frame1); } function frame1(){ } } }//package take_something_literally_king_fla
Section 102
//mouse_111 (take_something_literally_king_fla.mouse_111) package take_something_literally_king_fla { import flash.display.*; public dynamic class mouse_111 extends MovieClip { public function mouse_111(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package take_something_literally_king_fla
Section 103
//pannel_76 (take_something_literally_king_fla.pannel_76) package take_something_literally_king_fla { import flash.display.*; public dynamic class pannel_76 extends MovieClip { public function pannel_76(){ addFrameScript(65, frame66); } function frame66(){ stop(); } } }//package take_something_literally_king_fla
Section 104
//rollMc_59 (take_something_literally_king_fla.rollMc_59) package take_something_literally_king_fla { import flash.display.*; public dynamic class rollMc_59 extends MovieClip { public function rollMc_59(){ addFrameScript(0, frame1, 59, frame60); } function frame1(){ stop(); } function frame60(){ stop(); } } }//package take_something_literally_king_fla
Section 105
//safeArea_108 (take_something_literally_king_fla.safeArea_108) package take_something_literally_king_fla { import flash.display.*; public dynamic class safeArea_108 extends MovieClip { public function safeArea_108(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package take_something_literally_king_fla
Section 106
//BtPlay (BtPlay) package { import com.my.*; public dynamic class BtPlay extends MyButton { public function BtPlay(){ addFrameScript(0, frame1); } function frame1(){ setColors(0x333333, 0x444444, 0x555555); } } }//package
Section 107
//Button_disabledSkin (Button_disabledSkin) package { import flash.display.*; public dynamic class Button_disabledSkin extends MovieClip { } }//package
Section 108
//Button_downSkin (Button_downSkin) package { import flash.display.*; public dynamic class Button_downSkin extends MovieClip { } }//package
Section 109
//Button_emphasizedSkin (Button_emphasizedSkin) package { import flash.display.*; public dynamic class Button_emphasizedSkin extends MovieClip { } }//package
Section 110
//Button_overSkin (Button_overSkin) package { import flash.display.*; public dynamic class Button_overSkin extends MovieClip { } }//package
Section 111
//Button_selectedDisabledSkin (Button_selectedDisabledSkin) package { import flash.display.*; public dynamic class Button_selectedDisabledSkin extends MovieClip { } }//package
Section 112
//Button_selectedDownSkin (Button_selectedDownSkin) package { import flash.display.*; public dynamic class Button_selectedDownSkin extends MovieClip { } }//package
Section 113
//Button_selectedOverSkin (Button_selectedOverSkin) package { import flash.display.*; public dynamic class Button_selectedOverSkin extends MovieClip { } }//package
Section 114
//Button_selectedUpSkin (Button_selectedUpSkin) package { import flash.display.*; public dynamic class Button_selectedUpSkin extends MovieClip { } }//package
Section 115
//Button_upSkin (Button_upSkin) package { import flash.display.*; public dynamic class Button_upSkin extends MovieClip { } }//package
Section 116
//CellRenderer_disabledSkin (CellRenderer_disabledSkin) package { import flash.display.*; public dynamic class CellRenderer_disabledSkin extends MovieClip { } }//package
Section 117
//CellRenderer_downSkin (CellRenderer_downSkin) package { import flash.display.*; public dynamic class CellRenderer_downSkin extends MovieClip { } }//package
Section 118
//CellRenderer_overSkin (CellRenderer_overSkin) package { import flash.display.*; public dynamic class CellRenderer_overSkin extends MovieClip { } }//package
Section 119
//CellRenderer_selectedDisabledSkin (CellRenderer_selectedDisabledSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDisabledSkin extends MovieClip { } }//package
Section 120
//CellRenderer_selectedDownSkin (CellRenderer_selectedDownSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedDownSkin extends MovieClip { } }//package
Section 121
//CellRenderer_selectedOverSkin (CellRenderer_selectedOverSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedOverSkin extends MovieClip { } }//package
Section 122
//CellRenderer_selectedUpSkin (CellRenderer_selectedUpSkin) package { import flash.display.*; public dynamic class CellRenderer_selectedUpSkin extends MovieClip { } }//package
Section 123
//CellRenderer_upSkin (CellRenderer_upSkin) package { import flash.display.*; public dynamic class CellRenderer_upSkin extends MovieClip { } }//package
Section 124
//ComboBox_disabledSkin (ComboBox_disabledSkin) package { import flash.display.*; public dynamic class ComboBox_disabledSkin extends MovieClip { } }//package
Section 125
//ComboBox_downSkin (ComboBox_downSkin) package { import flash.display.*; public dynamic class ComboBox_downSkin extends MovieClip { } }//package
Section 126
//ComboBox_overSkin (ComboBox_overSkin) package { import flash.display.*; public dynamic class ComboBox_overSkin extends MovieClip { } }//package
Section 127
//ComboBox_upSkin (ComboBox_upSkin) package { import flash.display.*; public dynamic class ComboBox_upSkin extends MovieClip { } }//package
Section 128
//Completed (Completed) package { import com.my.*; public dynamic class Completed extends MyMovieClip { public function Completed(){ addFrameScript(110, frame111); } function frame111(){ stop(); } } }//package
Section 129
//Cursor (Cursor) package { import com.my.*; public dynamic class Cursor extends MyMovieClip { } }//package
Section 130
//FacebookButton (FacebookButton) package { import flash.display.*; public dynamic class FacebookButton extends MovieClip { } }//package
Section 131
//ferryBlue (ferryBlue) package { import flash.display.*; public dynamic class ferryBlue extends MovieClip { public function ferryBlue(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 132
//ferryGreen (ferryGreen) package { import flash.display.*; public dynamic class ferryGreen extends MovieClip { public function ferryGreen(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 133
//ferryRed (ferryRed) package { import flash.display.*; public dynamic class ferryRed extends MovieClip { public function ferryRed(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 134
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 135
//Gameover (Gameover) package { import com.my.*; public dynamic class Gameover extends MyMovieClip { public function Gameover(){ addFrameScript(41, frame42); } function frame42(){ stop(); } } }//package
Section 136
//Gift (Gift) package { import fl.controls.*; import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.text.*; import com.my.*; import flash.media.*; import flash.external.*; import flash.system.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class Gift extends MovieClip { public var txtCongratulationsTo:TextField; public var btReward:Button; public var bg:MovieClip; public var request:URLRequest; public var txtThanks:TextField; public var loader:Loader; public function Gift(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); btReward.addEventListener(MouseEvent.CLICK, gotoGift); txtCongratulationsTo.text = Language["congratulationsTo"]; btReward.label = Language["reward"]; txtThanks.text = Language["thanks"]; } function frame2(){ loader = new Loader(); Security.allowDomain("*"); Security.allowInsecureDomain("*"); Security.loadPolicyFile("http://www.youtube.com/crossdomain.xml"); request = new URLRequest("http://www.youtube.com/v/J---aiyznGQ&autoplay=1"); loader.load(request); addChild(loader); loader.x = 40; loader.y = 10; addEventListener(Event.REMOVED_FROM_STAGE, removed); } public function gotoGift(_arg1){ gotoAndStop(2); } public function removed(_arg1){ removeChild(loader); loader = null; } } }//package
Section 137
//IconGame (IconGame) package { import com.my.*; public dynamic class IconGame extends MyButton { } }//package
Section 138
//List_skin (List_skin) package { import flash.display.*; public dynamic class List_skin extends MovieClip { } }//package
Section 139
//mcBannedSign (mcBannedSign) package { import flash.display.*; public dynamic class mcBannedSign extends MovieClip { public var bg:MovieClip; } }//package
Section 140
//mcCrownMask (mcCrownMask) package { import flash.display.*; public dynamic class mcCrownMask extends MovieClip { } }//package
Section 141
//mcFerryLine (mcFerryLine) package { import flash.display.*; public dynamic class mcFerryLine extends MovieClip { } }//package
Section 142
//mcLogoHolder (mcLogoHolder) package { import flash.display.*; public dynamic class mcLogoHolder extends MovieClip { } }//package
Section 143
//mcLogoMask (mcLogoMask) package { import flash.display.*; public dynamic class mcLogoMask extends MovieClip { } }//package
Section 144
//mcOtherGames (mcOtherGames) package { import flash.display.*; public dynamic class mcOtherGames extends MovieClip { } }//package
Section 145
//mcPlay (mcPlay) package { import flash.display.*; public dynamic class mcPlay extends MovieClip { } }//package
Section 146
//mcWaterRing (mcWaterRing) package { import flash.display.*; public dynamic class mcWaterRing extends MovieClip { public function mcWaterRing(){ addFrameScript(39, frame40); } function frame40(){ stop(); } } }//package
Section 147
//ParticleMouse (ParticleMouse) package { import flash.display.*; public dynamic class ParticleMouse extends MovieClip { } }//package
Section 148
//ParticleSmoke (ParticleSmoke) package { import flash.display.*; public dynamic class ParticleSmoke extends MovieClip { } }//package
Section 149
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_disabledSkin extends MovieClip { } }//package
Section 150
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_downSkin extends MovieClip { } }//package
Section 151
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_overSkin extends MovieClip { } }//package
Section 152
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin) package { import flash.display.*; public dynamic class ScrollArrowDown_upSkin extends MovieClip { } }//package
Section 153
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_disabledSkin extends MovieClip { } }//package
Section 154
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_downSkin extends MovieClip { } }//package
Section 155
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_overSkin extends MovieClip { } }//package
Section 156
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin) package { import flash.display.*; public dynamic class ScrollArrowUp_upSkin extends MovieClip { } }//package
Section 157
//ScrollBar_thumbIcon (ScrollBar_thumbIcon) package { import flash.display.*; public dynamic class ScrollBar_thumbIcon extends MovieClip { } }//package
Section 158
//ScrollThumb_downSkin (ScrollThumb_downSkin) package { import flash.display.*; public dynamic class ScrollThumb_downSkin extends MovieClip { } }//package
Section 159
//ScrollThumb_overSkin (ScrollThumb_overSkin) package { import flash.display.*; public dynamic class ScrollThumb_overSkin extends MovieClip { } }//package
Section 160
//ScrollThumb_upSkin (ScrollThumb_upSkin) package { import flash.display.*; public dynamic class ScrollThumb_upSkin extends MovieClip { } }//package
Section 161
//ScrollTrack_skin (ScrollTrack_skin) package { import flash.display.*; public dynamic class ScrollTrack_skin extends MovieClip { } }//package
Section 162
//SdBeep (SdBeep) package { import flash.media.*; public dynamic class SdBeep extends Sound { } }//package
Section 163
//SdDing (SdDing) package { import flash.media.*; public dynamic class SdDing extends Sound { } }//package
Section 164
//SdGameover (SdGameover) package { import flash.media.*; public dynamic class SdGameover extends Sound { } }//package
Section 165
//SdPong (SdPong) package { import flash.media.*; public dynamic class SdPong extends Sound { } }//package
Section 166
//sfxBell (sfxBell) package { import flash.media.*; public dynamic class sfxBell extends Sound { } }//package
Section 167
//sfxBounce (sfxBounce) package { import flash.media.*; public dynamic class sfxBounce extends Sound { } }//package
Section 168
//TextInput_disabledSkin (TextInput_disabledSkin) package { import flash.display.*; public dynamic class TextInput_disabledSkin extends MovieClip { } }//package
Section 169
//TextInput_upSkin (TextInput_upSkin) package { import flash.display.*; public dynamic class TextInput_upSkin extends MovieClip { } }//package
Section 170
//TransitionPage (TransitionPage) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.geom.*; import flash.text.*; import com.my.*; import flash.media.*; import flash.external.*; import flash.system.*; import flash.ui.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class TransitionPage extends MyMovieClip { public function TransitionPage(){ addFrameScript(40, frame41, 79, frame80); } function frame41(){ MovieClip(parent.parent).transitionEnd(); } function frame80(){ remove(); stop(); } } }//package
Section 171
//WaterHolderB (WaterHolderB) package { import flash.display.*; import com.midasplayer.extras.*; public dynamic class WaterHolderB extends MovieClip { public var BLUE:Water; } }//package
Section 172
//WaterHolderG (WaterHolderG) package { import flash.display.*; import com.midasplayer.extras.*; public dynamic class WaterHolderG extends MovieClip { public var GREEN:Water; } }//package
Section 173
//WaterHolderR (WaterHolderR) package { import flash.display.*; import com.midasplayer.extras.*; public dynamic class WaterHolderR extends MovieClip { public var RED:Water; } }//package

Library Items

Symbol 1 Sound {SdPong}
Symbol 2 Sound {SdGameover}
Symbol 3 Sound {SdDing}
Symbol 4 Sound {SdBeep}
Symbol 5 Sound {sfxBounce}
Symbol 6 Sound {sfxBell}
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:11
Symbol 9 FontUsed by:10
Symbol 10 EditableTextUses:9Used by:11
Symbol 11 MovieClip {mcBannedSign}Uses:8 10
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClip {mcLogoHolder}Uses:13
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip {mcWaterRing}Uses:15
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClip {mcCrownMask}Uses:17
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip {mcLogoMask}Uses:19
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:27 32 37
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:27
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:27
Symbol 27 MovieClip {ferryBlue}Uses:22 24 26
Symbol 28 BitmapUsed by:29
Symbol 29 GraphicUses:28Used by:32
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:32
Symbol 32 MovieClip {ferryGreen}Uses:22 29 31
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:37
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:37
Symbol 37 MovieClip {ferryRed}Uses:22 34 36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip {mcFerryLine}Uses:38
Symbol 40 BitmapUsed by:41
Symbol 41 GraphicUses:40Used by:42
Symbol 42 MovieClip {mcOtherGames}Uses:41
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 MovieClip {mcPlay}Uses:44
Symbol 46 MovieClip {com.midasplayer.extras.WaterLine}
Symbol 47 MovieClip {com.midasplayer.extras.Water}Used by:48 49 50
Symbol 48 MovieClip {WaterHolderB}Uses:47
Symbol 49 MovieClip {WaterHolderG}Uses:47
Symbol 50 MovieClip {WaterHolderR}Uses:47
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:53
Symbol 53 MovieClip {FacebookButton}Uses:52
Symbol 54 GraphicUsed by:55 233
Symbol 55 MovieClipUses:54Used by:56
Symbol 56 MovieClip {TransitionPage}Uses:55
Symbol 57 GraphicUsed by:60 241
Symbol 58 FontUsed by:59 75 151 195 197 201 203 206 208 209 210 213 244 309 311 322 324 325 326 333 336
Symbol 59 EditableTextUses:58 62 70Used by:60
Symbol 60 MovieClip {BtPlay}Uses:57 59
Symbol 61 GraphicUsed by:64
Symbol 62 FontUsed by:59 63 67 113 119 120 123 129 160 175 180 181 182 183 201 203 208 219 226 234 235 244 309 311 318 319 323 326 328 332
Symbol 63 EditableTextUses:62Used by:64
Symbol 64 MovieClipUses:61 63Used by:65
Symbol 65 MovieClip {com.games.OutOfFlash}Uses:64
Symbol 66 GraphicUsed by:68
Symbol 67 EditableTextUses:62Used by:68
Symbol 68 MovieClip {take_something_literally_king_fla.gameoverMc_122}Uses:66 67Used by:69
Symbol 69 MovieClip {Gameover}Uses:68
Symbol 70 FontUsed by:59 71 201 203 208 244 309 311 326 334
Symbol 71 EditableTextUses:70Used by:72
Symbol 72 MovieClip {take_something_literally_king_fla.compledtedMc_120}Uses:71Used by:73
Symbol 73 MovieClip {Completed}Uses:72
Symbol 74 GraphicUsed by:76 141 238
Symbol 75 EditableTextUses:58Used by:76
Symbol 76 MovieClip {com.games.Read}Uses:74 75
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:77Used by:100 294 299 308
Symbol 79 MovieClip {fl.core.ComponentShim}Used by:100 264 293 294 299 308
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClip {Button_disabledSkin}Uses:80Used by:100
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClip {Button_downSkin}Uses:82Used by:100
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClip {Button_emphasizedSkin}Uses:84Used by:100
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClip {Button_overSkin}Uses:86Used by:100
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClip {Button_selectedDisabledSkin}Uses:88Used by:100
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClip {Button_selectedDownSkin}Uses:90Used by:100
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClip {Button_selectedOverSkin}Uses:92Used by:100
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClip {Button_selectedUpSkin}Uses:94Used by:100
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClip {Button_upSkin}Uses:96Used by:100
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClip {focusRectSkin}Uses:98Used by:100 293 294 299 308
Symbol 100 MovieClip {fl.controls.Button}Uses:78 79 81 83 85 87 89 91 93 95 97 99Used by:104 121 176 220 237 337
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:103
Symbol 103 MovieClip {Cursor}Uses:102Used by:104
Symbol 104 MovieClip {com.games.DontThrust}Uses:100 103
Symbol 105 GraphicUsed by:111
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClipUses:106Used by:108
Symbol 108 MovieClipUses:107Used by:111
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:109Used by:111
Symbol 111 MovieClip {com.games.SwitchTheLight}Uses:105 108 110
Symbol 112 GraphicUsed by:117
Symbol 113 TextUses:62Used by:116
Symbol 114 GraphicUsed by:116
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClip {take_something_literally_king_fla.mouse_111}Uses:113 114 115Used by:117
Symbol 117 MovieClip {com.games.RightClick}Uses:112 116
Symbol 118 GraphicUsed by:121
Symbol 119 EditableTextUses:62Used by:121
Symbol 120 EditableTextUses:62Used by:121
Symbol 121 MovieClip {com.games.MyURL}Uses:118 119 120 100
Symbol 122 GraphicUsed by:125
Symbol 123 TextUses:62Used by:125
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClip {take_something_literally_king_fla.safeArea_108}Uses:122 123 124Used by:126
Symbol 126 MovieClip {com.games.IWasHere}Uses:125
Symbol 127 GraphicUsed by:128
Symbol 128 MovieClip {ParticleMouse}Uses:127
Symbol 129 EditableTextUses:62Used by:130
Symbol 130 MovieClip {com.games.ZoomIn}Uses:129
Symbol 131 GraphicUsed by:142 232
Symbol 132 GraphicUsed by:141
Symbol 133 GraphicUsed by:136
Symbol 134 GraphicUsed by:136
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:133 134 135Used by:141
Symbol 137 GraphicUsed by:141
Symbol 138 GraphicUsed by:141
Symbol 139 GraphicUsed by:141
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClip {take_something_literally_king_fla.bomb_103}Uses:132 136 137 138 139 74 140Used by:142
Symbol 142 MovieClip {com.games.GetOut}Uses:131 141
Symbol 143 GraphicUsed by:146
Symbol 144 FontUsed by:145
Symbol 145 EditableTextUses:144Used by:146
Symbol 146 MovieClip {com.games.Lighter}Uses:143 145
Symbol 147 GraphicUsed by:152
Symbol 148 GraphicUsed by:150
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClip {take_something_literally_king_fla.man_100}Uses:148 149 SS1Used by:152
Symbol 151 EditableTextUses:58Used by:152
Symbol 152 MovieClip {com.games.Laouder}Uses:147 150 151
Symbol 153 GraphicUsed by:156 159 166 172 176
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:154Used by:156
Symbol 156 MovieClip {com.games.Wheel}Uses:153 155
Symbol 157 FontUsed by:158
Symbol 158 TextUses:157Used by:159
Symbol 159 MovieClip {com.games.Quality}Uses:153 158
Symbol 160 EditableTextUses:62Used by:166
Symbol 161 GraphicUsed by:164
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:162Used by:164
Symbol 164 MovieClip {take_something_literally_king_fla.flameMotion_94}Uses:161 163Used by:166
Symbol 165 MovieClipUsed by:166 337
Symbol 166 MovieClip {com.games.Candle}Uses:153 160 164 165
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClip {ParticleSmoke}Uses:167
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:172
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClip {com.games.Coordinates}Uses:153 170 171
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:176
Symbol 175 EditableTextUses:62Used by:176
Symbol 176 MovieClip {com.games.CircleMe}Uses:153 100 174 175
Symbol 177 GraphicUsed by:184
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClipUses:178Used by:184
Symbol 180 EditableTextUses:62Used by:184
Symbol 181 EditableTextUses:62Used by:184
Symbol 182 EditableTextUses:62Used by:184
Symbol 183 EditableTextUses:62Used by:184
Symbol 184 MovieClip {com.games.First}Uses:177 179 180 181 182 183
Symbol 185 GraphicUsed by:193 207
Symbol 186 GraphicUsed by:192
Symbol 187 GraphicUsed by:188 192 221 222 224
Symbol 188 MovieClipUses:187Used by:189
Symbol 189 MovieClip {take_something_literally_king_fla.batteryLevel_84}Uses:188Used by:192
Symbol 190 GraphicUsed by:192
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:186 189 187 190 191Used by:193
Symbol 193 MovieClip {com.games.FullyLoaded}Uses:185 192
Symbol 194 GraphicUsed by:199 223 225
Symbol 195 EditableTextUses:58Used by:199
Symbol 196 GraphicUsed by:198
Symbol 197 EditableTextUses:58Used by:198
Symbol 198 MovieClipUses:196 197Used by:199
Symbol 199 MovieClip {com.games.Paste}Uses:194 195 198
Symbol 200 MovieClip {com.games.DejaVu}
Symbol 201 EditableTextUses:58 62 70Used by:202
Symbol 202 MovieClipUses:201Used by:205
Symbol 203 EditableTextUses:58 62 70Used by:204
Symbol 204 MovieClipUses:203Used by:205
Symbol 205 MovieClip {take_something_literally_king_fla.pannel_76}Uses:202 204Used by:207
Symbol 206 EditableTextUses:58Used by:207
Symbol 207 MovieClip {com.games.ItsAlreadyTooLate}Uses:185 205 206
Symbol 208 EditableTextUses:58 62 70Used by:215
Symbol 209 EditableTextUses:58Used by:211
Symbol 210 EditableTextUses:58Used by:211
Symbol 211 MovieClipUses:209 210Used by:215
Symbol 212 GraphicUsed by:214
Symbol 213 TextUses:58Used by:214
Symbol 214 MovieClipUses:212 213Used by:215
Symbol 215 MovieClip {com.games.OnThePaperOnly}Uses:208 211 214
Symbol 216 GraphicUsed by:220
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:220
Symbol 219 EditableTextUses:62Used by:220
Symbol 220 MovieClip {com.games.Dodge}Uses:216 218 100 219
Symbol 221 MovieClipUses:187Used by:223 225
Symbol 222 MovieClipUses:187Used by:223
Symbol 223 MovieClip {com.games.Ping}Uses:194 221 222
Symbol 224 MovieClipUses:187Used by:225
Symbol 225 MovieClip {com.games.Pong}Uses:221 224 194
Symbol 226 EditableTextUses:62Used by:232
Symbol 227 GraphicUsed by:229
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:227 228Used by:232
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:232
Symbol 232 MovieClip {com.games.GreenLightRedLight}Uses:226 229 231 131
Symbol 233 MovieClipUses:54Used by:237 337
Symbol 234 EditableTextUses:62Used by:237
Symbol 235 EditableTextUses:62Used by:237
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClip {Gift}Uses:233 234 235 236 100Used by:337
Symbol 238 MovieClipUses:74Used by:245
Symbol 239 GraphicUsed by:245
Symbol 240 ShapeTweeningUsed by:241
Symbol 241 MovieClip {take_something_literally_king_fla.rollMc_59}Uses:240 57Used by:245
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242Used by:245
Symbol 244 EditableTextUses:58 62 70Used by:245
Symbol 245 MovieClip {IconGame}Uses:238 239 241 243 244Used by:331
Symbol 246 GraphicUsed by:247
Symbol 247 MovieClip {List_skin}Uses:246Used by:294
Symbol 248 GraphicUsed by:249
Symbol 249 MovieClip {CellRenderer_upSkin}Uses:248Used by:264
Symbol 250 GraphicUsed by:251
Symbol 251 MovieClip {CellRenderer_disabledSkin}Uses:250Used by:264
Symbol 252 GraphicUsed by:253
Symbol 253 MovieClip {CellRenderer_downSkin}Uses:252Used by:264
Symbol 254 GraphicUsed by:255
Symbol 255 MovieClip {CellRenderer_overSkin}Uses:254Used by:264
Symbol 256 GraphicUsed by:257
Symbol 257 MovieClip {CellRenderer_selectedDisabledSkin}Uses:256Used by:264
Symbol 258 GraphicUsed by:259
Symbol 259 MovieClip {CellRenderer_selectedDownSkin}Uses:258Used by:264
Symbol 260 GraphicUsed by:261
Symbol 261 MovieClip {CellRenderer_selectedOverSkin}Uses:260Used by:264
Symbol 262 GraphicUsed by:263
Symbol 263 MovieClip {CellRenderer_selectedUpSkin}Uses:262Used by:264
Symbol 264 MovieClip {fl.controls.listClasses.CellRenderer}Uses:249 79 251 253 255 257 259 261 263Used by:294
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClip {ScrollTrack_skin}Uses:265Used by:293
Symbol 267 GraphicUsed by:270
Symbol 268 GraphicUsed by:269 272 276 286
Symbol 269 MovieClipUses:268Used by:270 280 282
Symbol 270 MovieClip {ScrollArrowUp_downSkin}Uses:267 269Used by:293
Symbol 271 GraphicUsed by:272
Symbol 272 MovieClip {ScrollArrowDown_downSkin}Uses:271 268Used by:293
Symbol 273 GraphicUsed by:274
Symbol 274 MovieClip {ScrollThumb_downSkin}Uses:273Used by:293
Symbol 275 GraphicUsed by:276
Symbol 276 MovieClip {ScrollArrowDown_overSkin}Uses:275 268Used by:293
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClip {ScrollThumb_overSkin}Uses:277Used by:293
Symbol 279 GraphicUsed by:280
Symbol 280 MovieClip {ScrollArrowUp_overSkin}Uses:279 269Used by:293
Symbol 281 GraphicUsed by:282
Symbol 282 MovieClip {ScrollArrowUp_upSkin}Uses:281 269Used by:293
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClip {ScrollThumb_upSkin}Uses:283Used by:293
Symbol 285 GraphicUsed by:286
Symbol 286 MovieClip {ScrollArrowDown_upSkin}Uses:285 268Used by:293
Symbol 287 GraphicUsed by:288
Symbol 288 MovieClip {ScrollArrowDown_disabledSkin}Uses:287Used by:293
Symbol 289 GraphicUsed by:290
Symbol 290 MovieClip {ScrollArrowUp_disabledSkin}Uses:289Used by:293
Symbol 291 GraphicUsed by:292
Symbol 292 MovieClip {ScrollBar_thumbIcon}Uses:291Used by:293
Symbol 293 MovieClip {fl.controls.ScrollBar}Uses:266 79 99 270 272 274 276 278 280 282 284 286 288 290 292Used by:294
Symbol 294 MovieClip {fl.controls.List}Uses:78 79 247 264 99 293Used by:308
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClip {TextInput_disabledSkin}Uses:295Used by:299
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClip {TextInput_upSkin}Uses:297Used by:299
Symbol 299 MovieClip {fl.controls.TextInput}Uses:78 79 296 298 99Used by:308
Symbol 300 GraphicUsed by:301
Symbol 301 MovieClip {ComboBox_upSkin}Uses:300Used by:308
Symbol 302 GraphicUsed by:303
Symbol 303 MovieClip {ComboBox_disabledSkin}Uses:302Used by:308
Symbol 304 GraphicUsed by:305
Symbol 305 MovieClip {ComboBox_overSkin}Uses:304Used by:308
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClip {ComboBox_downSkin}Uses:306Used by:308
Symbol 308 MovieClip {fl.controls.ComboBox}Uses:78 79 99 301 303 305 307 299 294Used by:337
Symbol 309 EditableTextUses:58 62 70Used by:337
Symbol 310 GraphicUsed by:337
Symbol 311 EditableTextUses:58 62 70Used by:337
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312Used by:317
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:314Used by:317
Symbol 316 GraphicUsed by:317
Symbol 317 MovieClip {take_something_literally_king_fla.logo_4}Uses:313 315 316Used by:337
Symbol 318 TextUses:62Used by:337
Symbol 319 EditableTextUses:62Used by:321
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClipUses:319 320Used by:337
Symbol 322 EditableTextUses:58Used by:337
Symbol 323 TextUses:62Used by:337
Symbol 324 EditableTextUses:58Used by:337
Symbol 325 EditableTextUses:58Used by:337
Symbol 326 EditableTextUses:58 62 70Used by:337
Symbol 327 GraphicUsed by:337
Symbol 328 EditableTextUses:62Used by:329
Symbol 329 MovieClipUses:328Used by:330
Symbol 330 MovieClip {take_something_literally_king_fla.gameNameMotion_54}Uses:329Used by:337
Symbol 331 MovieClipUses:245Used by:337
Symbol 332 EditableTextUses:62Used by:337
Symbol 333 EditableTextUses:58Used by:337
Symbol 334 EditableTextUses:70Used by:337
Symbol 335 GraphicUsed by:337
Symbol 336 EditableTextUses:58Used by:337
Symbol 337 MovieClip {com.Main}Uses:233 309 165 310 311 317 318 321 322 323 324 325 100 308 326 327 330 331 332 333 237 334 335 336Used by:Timeline
Streaming Sound 1Used by:Symbol 150 MovieClip {take_something_literally_king_fla.man_100}

Instance Names

"bg"Symbol 11 MovieClip {mcBannedSign} Frame 1Symbol 8 MovieClip
"BLUE"Symbol 48 MovieClip {WaterHolderB} Frame 1Symbol 47 MovieClip {com.midasplayer.extras.Water}
"GREEN"Symbol 49 MovieClip {WaterHolderG} Frame 1Symbol 47 MovieClip {com.midasplayer.extras.Water}
"RED"Symbol 50 MovieClip {WaterHolderR} Frame 1Symbol 47 MovieClip {com.midasplayer.extras.Water}
"txt"Symbol 60 MovieClip {BtPlay} Frame 1Symbol 59 EditableText
"txtToRemove"Symbol 64 MovieClip Frame 1Symbol 63 EditableText
"mc"Symbol 65 MovieClip {com.games.OutOfFlash} Frame 1Symbol 64 MovieClip
"txtContinue"Symbol 68 MovieClip {take_something_literally_king_fla.gameoverMc_122} Frame 1Symbol 67 EditableText
"txtCompleted"Symbol 72 MovieClip {take_something_literally_king_fla.compledtedMc_120} Frame 1Symbol 71 EditableText
"txtRead"Symbol 76 MovieClip {com.games.Read} Frame 1Symbol 75 EditableText
"bt"Symbol 104 MovieClip {com.games.DontThrust} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"btStart"Symbol 104 MovieClip {com.games.DontThrust} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"cursor"Symbol 104 MovieClip {com.games.DontThrust} Frame 1Symbol 103 MovieClip {Cursor}
"cursor2"Symbol 104 MovieClip {com.games.DontThrust} Frame 1Symbol 103 MovieClip {Cursor}
"txtUrl"Symbol 121 MovieClip {com.games.MyURL} Frame 1Symbol 119 EditableText
"txtSecretPlace"Symbol 121 MovieClip {com.games.MyURL} Frame 1Symbol 120 EditableText
"btPush"Symbol 121 MovieClip {com.games.MyURL} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"safeArea"Symbol 126 MovieClip {com.games.IWasHere} Frame 1Symbol 125 MovieClip {take_something_literally_king_fla.safeArea_108}
"txtZoom"Symbol 130 MovieClip {com.games.ZoomIn} Frame 1Symbol 129 EditableText
"bomb"Symbol 142 MovieClip {com.games.GetOut} Frame 1Symbol 141 MovieClip {take_something_literally_king_fla.bomb_103}
"txtPassword"Symbol 146 MovieClip {com.games.Lighter} Frame 1Symbol 145 EditableText
"man"Symbol 152 MovieClip {com.games.Laouder} Frame 1Symbol 150 MovieClip {take_something_literally_king_fla.man_100}
"txtInfo"Symbol 152 MovieClip {com.games.Laouder} Frame 1Symbol 151 EditableText
"txtError"Symbol 166 MovieClip {com.games.Candle} Frame 1Symbol 160 EditableText
"flame"Symbol 166 MovieClip {com.games.Candle} Frame 1Symbol 164 MovieClip {take_something_literally_king_fla.flameMotion_94}
"candleBase"Symbol 166 MovieClip {com.games.Candle} Frame 1Symbol 165 MovieClip
"bt1"Symbol 172 MovieClip {com.games.Coordinates} Frame 1Symbol 170 MovieClip
"bt2"Symbol 172 MovieClip {com.games.Coordinates} Frame 1Symbol 170 MovieClip
"bt3"Symbol 172 MovieClip {com.games.Coordinates} Frame 1Symbol 170 MovieClip
"bt4"Symbol 172 MovieClip {com.games.Coordinates} Frame 1Symbol 170 MovieClip
"btStart"Symbol 176 MovieClip {com.games.CircleMe} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"pen"Symbol 176 MovieClip {com.games.CircleMe} Frame 1Symbol 174 MovieClip
"txtKeepPressing"Symbol 176 MovieClip {com.games.CircleMe} Frame 1Symbol 175 EditableText
"txtFindAndEnter"Symbol 184 MovieClip {com.games.First} Frame 1Symbol 180 EditableText
"txtLookOverThere"Symbol 184 MovieClip {com.games.First} Frame 1Symbol 182 EditableText
"txtSpam"Symbol 184 MovieClip {com.games.First} Frame 1Symbol 183 EditableText
"battery"Symbol 193 MovieClip {com.games.FullyLoaded} Frame 1Symbol 192 MovieClip
"txtNotHere"Symbol 198 MovieClip Frame 1Symbol 197 EditableText
"txtHelp"Symbol 199 MovieClip {com.games.Paste} Frame 1Symbol 195 EditableText
"cb"Symbol 199 MovieClip {com.games.Paste} Frame 1Symbol 198 MovieClip
"pannel"Symbol 207 MovieClip {com.games.ItsAlreadyTooLate} Frame 1Symbol 205 MovieClip {take_something_literally_king_fla.pannel_76}
"txtHelp"Symbol 207 MovieClip {com.games.ItsAlreadyTooLate} Frame 1Symbol 206 EditableText
"txtTheEnd"Symbol 211 MovieClip Frame 1Symbol 209 EditableText
"txtTheEnd1"Symbol 211 MovieClip Frame 1Symbol 210 EditableText
"theEnd"Symbol 215 MovieClip {com.games.OnThePaperOnly} Frame 1Symbol 211 MovieClip
"fire"Symbol 220 MovieClip {com.games.Dodge} Frame 1Symbol 218 MovieClip
"btPush"Symbol 220 MovieClip {com.games.Dodge} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"btStart"Symbol 220 MovieClip {com.games.Dodge} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"txtDontTouch"Symbol 220 MovieClip {com.games.Dodge} Frame 1Symbol 219 EditableText
"racket"Symbol 223 MovieClip {com.games.Ping} Frame 1Symbol 221 MovieClip
"ball"Symbol 223 MovieClip {com.games.Ping} Frame 1Symbol 222 MovieClip
"racket"Symbol 225 MovieClip {com.games.Pong} Frame 1Symbol 221 MovieClip
"ball"Symbol 225 MovieClip {com.games.Pong} Frame 1Symbol 224 MovieClip
"txtError"Symbol 232 MovieClip {com.games.GreenLightRedLight} Frame 1Symbol 226 EditableText
"light"Symbol 232 MovieClip {com.games.GreenLightRedLight} Frame 1Symbol 229 MovieClip
"cVideo"Symbol 232 MovieClip {com.games.GreenLightRedLight} Frame 1Symbol 231 MovieClip
"bg"Symbol 237 MovieClip {Gift} Frame 1Symbol 233 MovieClip
"txtCongratulationsTo"Symbol 237 MovieClip {Gift} Frame 1Symbol 234 EditableText
"txtThanks"Symbol 237 MovieClip {Gift} Frame 1Symbol 235 EditableText
"btReward"Symbol 237 MovieClip {Gift} Frame 1Symbol 100 MovieClip {fl.controls.Button}
"roll"Symbol 245 MovieClip {IconGame} Frame 1Symbol 241 MovieClip {take_something_literally_king_fla.rollMc_59}
"tick"Symbol 245 MovieClip {IconGame} Frame 1Symbol 243 MovieClip
"txtId"Symbol 245 MovieClip {IconGame} Frame 1Symbol 244 EditableText
"txt"Symbol 321 MovieClip Frame 1Symbol 319 EditableText
"txt"Symbol 329 MovieClip Frame 1Symbol 328 EditableText
"txt"Symbol 330 MovieClip {take_something_literally_king_fla.gameNameMotion_54} Frame 1Symbol 329 MovieClip
"game0"Symbol 331 MovieClip Frame 1Symbol 245 MovieClip {IconGame}
"game1"Symbol 331 MovieClip Frame 1Symbol 245 MovieClip {IconGame}
"game2"Symbol 331 MovieClip Frame 1Symbol 245 MovieClip {IconGame}
"game3"Symbol 331 MovieClip Frame 1Symbol 245 MovieClip {IconGame}
"game4"Symbol 331 MovieClip Frame 1Symbol 245 MovieClip {IconGame}
"cTransition"Symbol 337 MovieClip {com.Main} Frame 1Symbol 165 MovieClip
"txtTitle"Symbol 337 MovieClip {com.Main} Frame 7Symbol 311 EditableText
"disclaimer"Symbol 337 MovieClip {com.Main} Frame 7Symbol 321 MovieClip
"txtRules"Symbol 337 MovieClip {com.Main} Frame 7Symbol 322 EditableText
"txtTakeTheHints"Symbol 337 MovieClip {com.Main} Frame 7Symbol 324 EditableText
"txtTitle"Symbol 337 MovieClip {com.Main} Frame 7Symbol 325 EditableText
"btPlay"Symbol 337 MovieClip {com.Main} Frame 7Symbol 100 MovieClip {fl.controls.Button}
"listLanguage1"Symbol 337 MovieClip {com.Main} Frame 7Symbol 308 MovieClip {fl.controls.ComboBox}
"btMoreGames"Symbol 337 MovieClip {com.Main} Frame 13Symbol 100 MovieClip {fl.controls.Button}
"btHelp"Symbol 337 MovieClip {com.Main} Frame 13Symbol 100 MovieClip {fl.controls.Button}
"btHost"Symbol 337 MovieClip {com.Main} Frame 13Symbol 100 MovieClip {fl.controls.Button}
"btShare"Symbol 337 MovieClip {com.Main} Frame 13Symbol 100 MovieClip {fl.controls.Button}
"txtGameName"Symbol 337 MovieClip {com.Main} Frame 13Symbol 330 MovieClip {take_something_literally_king_fla.gameNameMotion_54}
"column0"Symbol 337 MovieClip {com.Main} Frame 13Symbol 331 MovieClip
"column1"Symbol 337 MovieClip {com.Main} Frame 13Symbol 331 MovieClip
"column2"Symbol 337 MovieClip {com.Main} Frame 13Symbol 331 MovieClip
"column3"Symbol 337 MovieClip {com.Main} Frame 13Symbol 331 MovieClip
"column4"Symbol 337 MovieClip {com.Main} Frame 13Symbol 331 MovieClip
"txtInfo"Symbol 337 MovieClip {com.Main} Frame 13Symbol 332 EditableText
"txtCanReadThat"Symbol 337 MovieClip {com.Main} Frame 13Symbol 333 EditableText
"listLanguage2"Symbol 337 MovieClip {com.Main} Frame 13Symbol 308 MovieClip {fl.controls.ComboBox}
"btPlayAgain"Symbol 337 MovieClip {com.Main} Frame 20Symbol 100 MovieClip {fl.controls.Button}
"cGame"Symbol 337 MovieClip {com.Main} Frame 27Symbol 165 MovieClip
"txtGameName2"Symbol 337 MovieClip {com.Main} Frame 27Symbol 336 EditableText
"btBack"Symbol 337 MovieClip {com.Main} Frame 27Symbol 100 MovieClip {fl.controls.Button}
"btTip"Symbol 337 MovieClip {com.Main} Frame 27Symbol 100 MovieClip {fl.controls.Button}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 11284 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..."
Protect (24)Timeline Frame 10 bytes ""

Labels

"off"Symbol 27 MovieClip {ferryBlue} Frame 1
"on"Symbol 27 MovieClip {ferryBlue} Frame 2
"off"Symbol 32 MovieClip {ferryGreen} Frame 1
"on"Symbol 32 MovieClip {ferryGreen} Frame 2
"off"Symbol 37 MovieClip {ferryRed} Frame 1
"on"Symbol 37 MovieClip {ferryRed} Frame 2
"dead"Symbol 141 MovieClip {take_something_literally_king_fla.bomb_103} Frame 241
"dead"Symbol 164 MovieClip {take_something_literally_king_fla.flameMotion_94} Frame 101
"loading"Symbol 337 MovieClip {com.Main} Frame 1
"menu"Symbol 337 MovieClip {com.Main} Frame 7
"selection"Symbol 337 MovieClip {com.Main} Frame 13
"gameover"Symbol 337 MovieClip {com.Main} Frame 20
"game"Symbol 337 MovieClip {com.Main} Frame 27
"win"Symbol 337 MovieClip {com.Main} Frame 33




http://swfchan.com/23/111272/info.shtml
Created: 13/3 -2019 08:15:44 Last modified: 13/3 -2019 08:15:44 Server time: 21/12 -2024 18:12:08