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

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

Picross Forever.swf

This is the info page for
Flash #48180

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


Text
Ad opens in a new window and will not interupt game loading

Advertise here

Use logic and deduction to find hidden pictures in this
addictive puzzle game, Picross Forever. With over 45 puzzles in
4 categories there is hours of mind bending entertainment to be had.
picross game puzzle addictive logic

ActionScript [AS3]

Section 1
//AdLoader (ahrooga.AdLoader) package ahrooga { import flash.display.*; import flash.events.*; import flash.net.*; public class AdLoader extends Sprite { private var  :uint;// = 0 private var adLink:String; private var adPath:String; private var showAdvertiseHere:Boolean; private var  :uint;// = 0 private var advertiseHereLink:String; private var loader:Loader; private var  :String; public static const AD_LOADED:String = "adLoaded"; public function AdLoader(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String, _arg5:String){ this. = _arg5; this.advertiseHereLink = _arg4; this.showAdvertiseHere = _arg3; this.adPath = _arg1; this.adLink = _arg2; loadAd(); } override public function get height():Number{ return ( ); } private function adLoaded(_arg1:Event):void{ var _local3:Sprite; var _local6:AdFooter;   = _arg1.target.width;   = _arg1.target.height; var _local2:Sprite = new Sprite(); _local2.graphics.beginFill(0xFF); _local2.graphics.drawRect(0, 0,  ,  ); _local2.graphics.endFill(); addChild(_local2); _arg1.target.loader.mask = _local2; _local3 = new Sprite(); _local3.graphics.beginFill(0xFF, 0); _local3.graphics.drawRect(0, 0,  ,  ); _local3.graphics.endFill(); _local3.buttonMode = true; addChild(_local3); _local3.addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); var _local4:Shape = new Shape(); _local4.graphics.lineStyle(0, 15338304, 1, true, LineScaleMode.NONE, null, JointStyle.MITER); _local4.graphics.drawRect(0, 0,  ,  ); addChild(_local4); var _local5:AdDisclaimer = new AdDisclaimer(); _local5.x = -1; _local5.y = -(int((_local5.height + 5))); addChild(_local5); if (showAdvertiseHere){ _local6 = new AdFooter(); _local6.buttonMode = true; _local6.x = (this.width - _local6.width); _local6.y = this.height; _local6.addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); addChild(_local6); }; dispatchEvent(new Event(AdLoader.AD_LOADED)); } override public function get width():Number{ return ( ); } private function  (_arg1:MouseEvent):void{ var _local2:URLVariables = new URLVariables(); _local2.game = "PicrossForever"; var _local3:URLRequest = new URLRequest(advertiseHereLink); _local3.method = URLRequestMethod.GET; _local3.data = _local2; navigateToURL(_local3, "_blank"); } private function loadAd():void{ loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, adLoaded); loader.load(new URLRequest(adPath)); addChild(loader); } private function  (_arg1:MouseEvent):void{ navigateToURL(new URLRequest(adLink), "_blank"); } } }//package ahrooga
Section 2
//Preloader (ahrooga.Preloader) package ahrooga { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.utils.*; public class Preloader extends Sprite { private var :Timer; private var :AdLoader; private var :Boolean;// = false private var :MovieClip; private var minAdSeconds:uint; private var  :uint;// = 4 private var :Bitmap; public static const START_GAME:String = "gameLoadedListener"; public function Preloader():void{ addEventListener(Event.ADDED_TO_STAGE, init); addEventListener(Event.REMOVED_FROM_STAGE, ); } private function (_arg1:Event=null):void{ dispatchEvent(new Event(Preloader.START_GAME)); } private function ():void{  = new _ProgressBar(); .x = Math.round(((600 - .width) / 2)); .y = (600 - 125); addChild(); } private function adLoaded(_arg1:Event):void{ removeChild(); addChild(); .x = Math.round(((stage.stageWidth - .width) / 2)); .y = 150; } public function loadAd(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String, _arg5:uint, _arg6:String):void{ var _local7:int;  = new AdLoader(_arg1, _arg2, _arg3, _arg4, _arg6); .addEventListener(AdLoader.AD_LOADED, adLoaded, false, 0, true); this.minAdSeconds = _arg5; if (((.running) && (!()))){ .repeatCount = _arg5; } else { if (((.running) && ())){ .repeatCount = _arg5; _local7 = .repeatCount; Tweener.removeTweens(.bar); Tweener.addTween(.bar, {time:_local7, scaleX:1, transition:"linear"}); } else { if (((!(.running)) && (!()))){ .repeatCount = _arg5; }; }; }; .reset(); .start(); } private function  (_arg1:ProgressEvent):void{ if (.running){ .bar.scaleX = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 0.8); } else { .bar.scaleX = (_arg1.bytesLoaded / _arg1.bytesTotal); }; } private function init(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, init);  (); ();  (); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS,  , false, 0, true); this.loaderInfo.addEventListener(Event.COMPLETE, gameLoadedListener, false, 0, true); if (this.loaderInfo.bytesLoaded >= this.loaderInfo.bytesTotal){ .bar.scaleX = 0.8; gameLoadedListener(); }; } private function gameLoadedListener(_arg1:Event=null):void{ var _local2:int;  = true; if (.running){ .addEventListener(TimerEvent.TIMER_COMPLETE, gameLoadedListener, false, 0, true); _local2 = (.repeatCount - .currentCount); Tweener.addTween(.bar, {time:_local2, scaleX:1, transition:"linear"}); } else { (); }; this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS,  ); } private function  ():void{  = new Timer(1000,  ); .start(); } private function (_arg1:Event):void{ this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS,  ); this.loaderInfo.removeEventListener(Event.COMPLETE, gameLoadedListener); .removeEventListener(TimerEvent.TIMER_COMPLETE, gameLoadedListener); } private function  ():void{  = new Bitmap(new Logo(317, 188)); .x = Math.round(((600 - 317) / 2)); .y = 150; addChild(); } } }//package ahrooga
Section 3
//AnimalsBlock (categories.animals.AnimalsBlock) package categories.animals { import model.*; import flash.display.*; public class AnimalsBlock extends Block { private var  :MovieClip; public function AnimalsBlock(_arg1:uint, _arg2:uint, _arg3:uint){ super(_arg1, _arg2, _arg3); } override public function setHold():void{  = new AnimalsBlock_Hold(); addChild( ); super.setHold(); } override public function markFalse():void{ var _local1:MovieClip = new AnimalsBlock_Negative(); addChild(_local1); removeChild(defaultBlock); } override public function unsetHold():void{ removeChild( ); super.unsetHold(); } override public function markTrue():void{ var _local1:MovieClip = new AnimalsBlock_Positive(); addChild(_local1); removeChild(defaultBlock); super.markTrue(); } override protected function setDefaultBlock():void{ defaultBlock = new AnimalsBlock_Default(); addChild(defaultBlock); } } }//package categories.animals
Section 4
//AnimalsCategory (categories.animals.AnimalsCategory) package categories.animals { import model.*; public class AnimalsCategory extends Category { public function AnimalsCategory(){  = "Animals"; super();  = new _SND_Animals_Block_Positive();  = new _SND_Animals_Block_Negative(); } override public function getLineColor():uint{ return (6824191); } override public function getBlock(_arg1:uint, _arg2:uint, _arg3:uint):Block{ var _local4:Block = new AnimalsBlock(_arg1, _arg2, _arg3); return (_local4); } override protected function loadGrids():Array{ var _local1:Array = [new GridData(new Cat_10x10(10, 10), "Cat"), new GridData(new Dog_10x10(10, 10), "Dog"), new GridData(new Duck_10x10(10, 10), "Duck"), new GridData(new Bear_10x10(10, 10), "Bear"), new GridData(new Cow_15x15(15, 15), "Cow"), new GridData(new Monkey_15x15(15, 15), "Monkey"), new GridData(new Walrus_15x15(15, 15), "Walrus"), new GridData(new Hippopotamus_15x15(15, 15), "Hippopotamus"), new GridData(new Giraffe_20x20(20, 20), "Giraffe"), new GridData(new Eagle_20x20(20, 20), "Eagle"), new GridData(new Beaver_20x20(20, 20), "Beaver"), new GridData(new Deer_20x20(20, 20), "Deer")]; return (_local1); } } }//package categories.animals
Section 5
//FoodBlock (categories.food.FoodBlock) package categories.food { import model.*; import flash.display.*; public class FoodBlock extends Block { private var  :MovieClip; public function FoodBlock(_arg1:uint, _arg2:uint, _arg3:uint){ super(_arg1, _arg2, _arg3); } override public function setHold():void{  = new FoodBlock_Hold(); addChild( ); super.setHold(); } override public function markFalse():void{ var _local1:MovieClip = new FoodBlock_Negative(); addChild(_local1); removeChild(defaultBlock); } override public function unsetHold():void{ removeChild( ); super.unsetHold(); } override public function markTrue():void{ var _local1:MovieClip = new FoodBlock_Positive(); addChild(_local1); removeChild(defaultBlock); super.markTrue(); } override protected function setDefaultBlock():void{ defaultBlock = new FoodBlock_Default(); addChild(defaultBlock); } } }//package categories.food
Section 6
//FoodCategory (categories.food.FoodCategory) package categories.food { import model.*; public class FoodCategory extends Category { public function FoodCategory(){  = "Food"; super();  = new _SND_Food_Block_Positive();  = new _SND_Food_Block_Negative(); } override public function getLineColor():uint{ return (14838021); } override public function getBlock(_arg1:uint, _arg2:uint, _arg3:uint):Block{ var _local4:Block = new FoodBlock(_arg1, _arg2, _arg3); return (_local4); } override protected function loadGrids():Array{ var _local1:Array = [new GridData(new Cake_10x10(10, 10), "Birthday Cake"), new GridData(new Cereal_10x10(10, 10), "Cereal"), new GridData(new Candy_10x10(10, 10), "Candy"), new GridData(new Pretzel_10x10(10, 10), "Pretzel"), new GridData(new Apple_15x15(15, 15), "Apple"), new GridData(new Doughnut_15x15(15, 15), "Doughnut"), new GridData(new Whisky_15x15(15, 15), "Whisky"), new GridData(new Cheese_15x15(15, 15), "Cheese"), new GridData(new Muffin_20x20(20, 20), "Muffin"), new GridData(new CandyCanes_20x20(20, 20), "Candy Canes"), new GridData(new Bread_20x20(20, 20), "Bread"), new GridData(new Fish_20x20(20, 20), "Fish")]; return (_local1); } } }//package categories.food
Section 7
//HomeBlock (categories.home.HomeBlock) package categories.home { import model.*; import flash.display.*; public class HomeBlock extends Block { private var  :MovieClip; public function HomeBlock(_arg1:uint, _arg2:uint, _arg3:uint){ super(_arg1, _arg2, _arg3); } override public function setHold():void{  = new HomeBlock_Hold(); addChild( ); super.setHold(); } override public function markFalse():void{ var _local1:MovieClip = new HomeBlock_Negative(); addChild(_local1); removeChild(defaultBlock); } override public function unsetHold():void{ removeChild( ); super.unsetHold(); } override public function markTrue():void{ var _local1:MovieClip = new HomeBlock_Positive(); addChild(_local1); removeChild(defaultBlock); super.markTrue(); } override protected function setDefaultBlock():void{ defaultBlock = new HomeBlock_Default(); addChild(defaultBlock); } } }//package categories.home
Section 8
//HomeCategory (categories.home.HomeCategory) package categories.home { import model.*; public class HomeCategory extends Category { public function HomeCategory(){  = "Household"; super();  = new _SND_Home_Block_Positive();  = new _SND_Home_Block_Negative(); } override public function getLineColor():uint{ return (6557442); } override public function getBlock(_arg1:uint, _arg2:uint, _arg3:uint):Block{ var _local4:Block = new HomeBlock(_arg1, _arg2, _arg3); return (_local4); } override protected function loadGrids():Array{ var _local1:Array = [new GridData(new CoatHanger_10x10(10, 10), "Coat Hanger"), new GridData(new Oven_10x10(10, 10), "Oven"), new GridData(new Dryer_10x10(10, 10), "Clothes Dryer"), new GridData(new WineGlass_10x10(10, 10), "Wine Glass"), new GridData(new Toaster_15x15(15, 15), "Toaster"), new GridData(new Clock_15x15(15, 15), "Clock"), new GridData(new Blender_15x15(15, 15), "Blender"), new GridData(new Lamp_15x15(15, 15), "Lamp"), new GridData(new CookingPot_20x20(20, 20), "Cooking Pot"), new GridData(new TV_20x20(20, 20), "TV & DVD Player"), new GridData(new WastePaperBasket_20x20(20, 20), "Waste Paper Basket"), new GridData(new ToiletPaper_20x20(20, 20), "Toilet Paper")]; return (_local1); } } }//package categories.home
Section 9
//SportBlock (categories.sport.SportBlock) package categories.sport { import model.*; import flash.display.*; public class SportBlock extends Block { private var  :MovieClip; public function SportBlock(_arg1:uint, _arg2:uint, _arg3:uint){ super(_arg1, _arg2, _arg3); } override public function setHold():void{  = new SportBlock_Hold(); addChild( ); super.setHold(); } override public function markFalse():void{ var _local1:MovieClip = new SportBlock_Negative(); addChild(_local1); removeChild(defaultBlock); } override public function unsetHold():void{ removeChild( ); super.unsetHold(); } override public function markTrue():void{ var _local1:MovieClip = new SportBlock_Positive(); addChild(_local1); removeChild(defaultBlock); super.markTrue(); } override protected function setDefaultBlock():void{ defaultBlock = new SportBlock_Default(); addChild(defaultBlock); } } }//package categories.sport
Section 10
//SportCategory (categories.sport.SportCategory) package categories.sport { import model.*; public class SportCategory extends Category { public function SportCategory(){  = "Sport"; super();  = new _SND_Sport_Block_Positive();  = new _SND_Sport_Block_Negative(); } override public function getLineColor():uint{ return (4944421); } override public function getBlock(_arg1:uint, _arg2:uint, _arg3:uint):Block{ var _local4:Block = new SportBlock(_arg1, _arg2, _arg3); return (_local4); } override protected function loadGrids():Array{ var _local1:Array = [new GridData(new Croquet_10x10(10, 10), "Croquet"), new GridData(new Billiards_10x10(10, 10), "Billiards"), new GridData(new Sailing_10x10(10, 10), "Sailing"), new GridData(new Badminton_10x10(10, 10), "Badminton"), new GridData(new Archery_15x15(15, 15), "Archery"), new GridData(new Basketball_15x15(15, 15), "Basketball"), new GridData(new Boxing_15x15(15, 15), "Boxing"), new GridData(new Golf_15x15(15, 15), "Golf"), new GridData(new Hockey_20x20(20, 20), "Hockey"), new GridData(new Bowling_20x20(20, 20), "Bowling"), new GridData(new Dodgeball_20x20(20, 20), "Dodgeball"), new GridData(new IceSkating_20x20(20, 20), "Skating")]; return (_local1); } } }//package categories.sport
Section 11
//ColorShortcuts (caurina.transitions.properties.ColorShortcuts) package caurina.transitions.properties { import caurina.transitions.*; import flash.geom.*; import flash.filters.*; public class ColorShortcuts { private static var LUMINANCE_B:Number = 0.072169; private static var LUMINANCE_G:Number = 0.71516; private static var LUMINANCE_R:Number = 0.212671; public function ColorShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function _color_splitter(_arg1, _arg2:Array):Array{ var _local3:Array = new Array(); if (_arg1 == null){ _local3.push({name:"_color_redMultiplier", value:1}); _local3.push({name:"_color_redOffset", value:0}); _local3.push({name:"_color_greenMultiplier", value:1}); _local3.push({name:"_color_greenOffset", value:0}); _local3.push({name:"_color_blueMultiplier", value:1}); _local3.push({name:"_color_blueOffset", value:0}); } else { _local3.push({name:"_color_redMultiplier", value:0}); _local3.push({name:"_color_redOffset", value:AuxFunctions.numberToR(_arg1)}); _local3.push({name:"_color_greenMultiplier", value:0}); _local3.push({name:"_color_greenOffset", value:AuxFunctions.numberToG(_arg1)}); _local3.push({name:"_color_blueMultiplier", value:0}); _local3.push({name:"_color_blueOffset", value:AuxFunctions.numberToB(_arg1)}); }; return (_local3); } public static function _contrast_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Number; var _local6:Number; _local5 = (_arg2 + 1); _local6 = Math.round((_arg2 * -128)); var _local7:ColorTransform = new ColorTransform(_local5, _local5, _local5, 1, _local6, _local6, _local6, 0); _arg1.transform.colorTransform = _local7; } public static function _brightness_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Boolean = _arg2[0]; var _local5:ColorTransform = _arg1.transform.colorTransform; var _local6:Number = (1 - (((_local5.redMultiplier + _local5.greenMultiplier) + _local5.blueMultiplier) / 3)); var _local7:Number = (((_local5.redOffset + _local5.greenOffset) + _local5.blueOffset) / 3); if (_local4){ return (((_local7 > 0)) ? (_local7 / 0xFF) : -(_local6)); //unresolved jump }; return ((_local7 / 100)); } public static function _saturation_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Array = getObjectMatrix(_arg1); var _local5:Boolean = _arg2[0]; var _local6:Number = (_local5) ? (1 / 3) : LUMINANCE_R; var _local7:Number = (_local5) ? (1 / 3) : LUMINANCE_G; var _local8:Number = (_local5) ? (1 / 3) : LUMINANCE_B; var _local9:Number = (((((_local4[0] - _local6) / (1 - _local6)) + ((_local4[6] - _local7) / (1 - _local7))) + ((_local4[12] - _local8) / (1 - _local8))) / 3); var _local10:Number = (1 - (((((((_local4[1] / _local7) + (_local4[2] / _local8)) + (_local4[5] / _local6)) + (_local4[7] / _local8)) + (_local4[10] / _local6)) + (_local4[11] / _local7)) / 6)); return (((_local9 + _local10) / 2)); } public static function _oldColor_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return ((_arg1.transform.colorTransform[_arg2[0]] * 100)); } public static function _brightness_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local6:Number; var _local7:Number; var _local5:Boolean = _arg3[0]; if (_local5){ _local6 = (1 - Math.abs(_arg2)); _local7 = ((_arg2 > 0)) ? Math.round((_arg2 * 0xFF)) : 0; } else { _local6 = 1; _local7 = Math.round((_arg2 * 100)); }; var _local8:ColorTransform = new ColorTransform(_local6, _local6, _local6, 1, _local7, _local7, _local7, 0); _arg1.transform.colorTransform = _local8; } public static function _saturation_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Boolean = _arg3[0]; var _local6:Number = (_local5) ? (1 / 3) : LUMINANCE_R; var _local7:Number = (_local5) ? (1 / 3) : LUMINANCE_G; var _local8:Number = (_local5) ? (1 / 3) : LUMINANCE_B; var _local9:Number = _arg2; var _local10:Number = (1 - _local9); var _local11:Number = (_local6 * _local10); var _local12:Number = (_local7 * _local10); var _local13:Number = (_local8 * _local10); var _local14:Array = [(_local11 + _local9), _local12, _local13, 0, 0, _local11, (_local12 + _local9), _local13, 0, 0, _local11, _local12, (_local13 + _local9), 0, 0, 0, 0, 0, 1, 0]; setObjectMatrix(_arg1, _local14); } private static function getObjectMatrix(_arg1:Object):Array{ var _local2:Number = 0; while (_local2 < _arg1.filters.length) { if ((_arg1.filters[_local2] is ColorMatrixFilter)){ return (_arg1.filters[_local2].matrix.concat()); }; _local2++; }; return ([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]); } public static function getHueDistance(_arg1:Array, _arg2:Array):Number{ return (((Math.abs((_arg1[0] - _arg2[0])) + Math.abs((_arg1[1] - _arg2[1]))) + Math.abs((_arg1[2] - _arg2[2])))); } public static function _hue_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ setObjectMatrix(_arg1, getHueMatrix(_arg2)); } public static function _hue_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local6:Number; var _local8:Number; var _local4:Array = getObjectMatrix(_arg1); var _local5:Array = []; _local5[0] = {angle:-179.9, matrix:getHueMatrix(-179.9)}; _local5[1] = {angle:180, matrix:getHueMatrix(180)}; _local6 = 0; while (_local6 < _local5.length) { _local5[_local6].distance = getHueDistance(_local4, _local5[_local6].matrix); _local6++; }; var _local7:Number = 15; _local6 = 0; while (_local6 < _local7) { if (_local5[0].distance < _local5[1].distance){ _local8 = 1; } else { _local8 = 0; }; _local5[_local8].angle = ((_local5[0].angle + _local5[1].angle) / 2); _local5[_local8].matrix = getHueMatrix(_local5[_local8].angle); _local5[_local8].distance = getHueDistance(_local4, _local5[_local8].matrix); _local6++; }; return (_local5[_local8].angle); } public static function getHueMatrix(_arg1:Number):Array{ var _local2:Number = ((_arg1 * Math.PI) / 180); var _local3:Number = LUMINANCE_R; var _local4:Number = LUMINANCE_G; var _local5:Number = LUMINANCE_B; var _local6:Number = Math.cos(_local2); var _local7:Number = Math.sin(_local2); var _local8:Array = [((_local3 + (_local6 * (1 - _local3))) + (_local7 * -(_local3))), ((_local4 + (_local6 * -(_local4))) + (_local7 * -(_local4))), ((_local5 + (_local6 * -(_local5))) + (_local7 * (1 - _local5))), 0, 0, ((_local3 + (_local6 * -(_local3))) + (_local7 * 0.143)), ((_local4 + (_local6 * (1 - _local4))) + (_local7 * 0.14)), ((_local5 + (_local6 * -(_local5))) + (_local7 * -0.283)), 0, 0, ((_local3 + (_local6 * -(_local3))) + (_local7 * -((1 - _local3)))), ((_local4 + (_local6 * -(_local4))) + (_local7 * _local4)), ((_local5 + (_local6 * (1 - _local5))) + (_local7 * _local5)), 0, 0, 0, 0, 0, 1, 0]; return (_local8); } public static function _color_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.transform.colorTransform[_arg2[0]]); } public static function init():void{ Tweener.registerSpecialProperty("_color_ra", _oldColor_property_get, _oldColor_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_rb", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_ga", _oldColor_property_get, _oldColor_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_gb", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_ba", _oldColor_property_get, _oldColor_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_bb", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_aa", _oldColor_property_get, _oldColor_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_ab", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialProperty("_color_redMultiplier", _color_property_get, _color_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_redOffset", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_greenMultiplier", _color_property_get, _color_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_greenOffset", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_blueMultiplier", _color_property_get, _color_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_blueOffset", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_alphaMultiplier", _color_property_get, _color_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_alphaOffset", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialPropertySplitter("_color", _color_splitter); Tweener.registerSpecialPropertySplitter("_colorTransform", _colorTransform_splitter); Tweener.registerSpecialProperty("_brightness", _brightness_get, _brightness_set, [false]); Tweener.registerSpecialProperty("_tintBrightness", _brightness_get, _brightness_set, [true]); Tweener.registerSpecialProperty("_contrast", _contrast_get, _contrast_set); Tweener.registerSpecialProperty("_hue", _hue_get, _hue_set); Tweener.registerSpecialProperty("_saturation", _saturation_get, _saturation_set, [false]); Tweener.registerSpecialProperty("_dumbSaturation", _saturation_get, _saturation_set, [true]); } private static function setObjectMatrix(_arg1:Object, _arg2:Array):void{ var _local6:ColorMatrixFilter; var _local3:Array = _arg1.filters.concat(); var _local4:Boolean; var _local5:Number = 0; while (_local5 < _local3.length) { if ((_local3[_local5] is ColorMatrixFilter)){ _local3[_local5].matrix = _arg2.concat(); _local4 = true; }; _local5++; }; if (!_local4){ _local6 = new ColorMatrixFilter(_arg2); _local3[_local3.length] = _local6; }; _arg1.filters = _local3; } public static function _color_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:ColorTransform = _arg1.transform.colorTransform; _local5[_arg3[0]] = _arg2; _arg1.transform.colorTransform = _local5; } public static function _oldColor_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:ColorTransform = _arg1.transform.colorTransform; _local5[_arg3[0]] = (_arg2 / 100); _arg1.transform.colorTransform = _local5; } public static function _contrast_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local5:Number; var _local6:Number; var _local4:ColorTransform = _arg1.transform.colorTransform; _local5 = ((((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3) - 1); _local6 = ((((_local4.redOffset + _local4.greenOffset) + _local4.blueOffset) / 3) / -128); return (((_local5 + _local6) / 2)); } public static function _colorTransform_splitter(_arg1:Object, _arg2:Array):Array{ var _local3:Array = new Array(); if (_arg1 == null){ _local3.push({name:"_color_redMultiplier", value:1}); _local3.push({name:"_color_redOffset", value:0}); _local3.push({name:"_color_greenMultiplier", value:1}); _local3.push({name:"_color_greenOffset", value:0}); _local3.push({name:"_color_blueMultiplier", value:1}); _local3.push({name:"_color_blueOffset", value:0}); } else { if (_arg1.ra != undefined){ _local3.push({name:"_color_ra", value:_arg1.ra}); }; if (_arg1.rb != undefined){ _local3.push({name:"_color_rb", value:_arg1.rb}); }; if (_arg1.ga != undefined){ _local3.push({name:"_color_ba", value:_arg1.ba}); }; if (_arg1.gb != undefined){ _local3.push({name:"_color_bb", value:_arg1.bb}); }; if (_arg1.ba != undefined){ _local3.push({name:"_color_ga", value:_arg1.ga}); }; if (_arg1.bb != undefined){ _local3.push({name:"_color_gb", value:_arg1.gb}); }; if (_arg1.aa != undefined){ _local3.push({name:"_color_aa", value:_arg1.aa}); }; if (_arg1.ab != undefined){ _local3.push({name:"_color_ab", value:_arg1.ab}); }; if (_arg1.redMultiplier != undefined){ _local3.push({name:"_color_redMultiplier", value:_arg1.redMultiplier}); }; if (_arg1.redOffset != undefined){ _local3.push({name:"_color_redOffset", value:_arg1.redOffset}); }; if (_arg1.blueMultiplier != undefined){ _local3.push({name:"_color_blueMultiplier", value:_arg1.blueMultiplier}); }; if (_arg1.blueOffset != undefined){ _local3.push({name:"_color_blueOffset", value:_arg1.blueOffset}); }; if (_arg1.greenMultiplier != undefined){ _local3.push({name:"_color_greenMultiplier", value:_arg1.greenMultiplier}); }; if (_arg1.greenOffset != undefined){ _local3.push({name:"_color_greenOffset", value:_arg1.greenOffset}); }; if (_arg1.alphaMultiplier != undefined){ _local3.push({name:"_color_alphaMultiplier", value:_arg1.alphaMultiplier}); }; if (_arg1.alphaOffset != undefined){ _local3.push({name:"_color_alphaOffset", value:_arg1.alphaOffset}); }; }; return (_local3); } } }//package caurina.transitions.properties
Section 12
//DisplayShortcuts (caurina.transitions.properties.DisplayShortcuts) package caurina.transitions.properties { import caurina.transitions.*; import flash.geom.*; public class DisplayShortcuts { public function DisplayShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function init():void{ Tweener.registerSpecialProperty("_frame", _frame_get, _frame_set); Tweener.registerSpecialProperty("_autoAlpha", _autoAlpha_get, _autoAlpha_set); Tweener.registerSpecialPropertySplitter("_scale", _scale_splitter); Tweener.registerSpecialPropertySplitter("_scrollRect", _scrollRect_splitter); Tweener.registerSpecialProperty("_scrollRect_x", _scrollRect_property_get, _scrollRect_property_set, ["x"]); Tweener.registerSpecialProperty("_scrollRect_y", _scrollRect_property_get, _scrollRect_property_set, ["y"]); Tweener.registerSpecialProperty("_scrollRect_left", _scrollRect_property_get, _scrollRect_property_set, ["left"]); Tweener.registerSpecialProperty("_scrollRect_right", _scrollRect_property_get, _scrollRect_property_set, ["right"]); Tweener.registerSpecialProperty("_scrollRect_top", _scrollRect_property_get, _scrollRect_property_set, ["top"]); Tweener.registerSpecialProperty("_scrollRect_bottom", _scrollRect_property_get, _scrollRect_property_set, ["bottom"]); Tweener.registerSpecialProperty("_scrollRect_width", _scrollRect_property_get, _scrollRect_property_set, ["width"]); Tweener.registerSpecialProperty("_scrollRect_height", _scrollRect_property_get, _scrollRect_property_set, ["height"]); } public static function _frame_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ _arg1.gotoAndStop(Math.round(_arg2)); } public static function _autoAlpha_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ _arg1.alpha = _arg2; _arg1.visible = (_arg2 > 0); } public static function _frame_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.currentFrame); } public static function _scrollRect_splitter(_arg1:Rectangle, _arg2:Array, _arg3:Object=null):Array{ var _local4:Array = new Array(); if (_arg1 == null){ _local4.push({name:"_scrollRect_x", value:0}); _local4.push({name:"_scrollRect_y", value:0}); _local4.push({name:"_scrollRect_width", value:100}); _local4.push({name:"_scrollRect_height", value:100}); } else { _local4.push({name:"_scrollRect_x", value:_arg1.x}); _local4.push({name:"_scrollRect_y", value:_arg1.y}); _local4.push({name:"_scrollRect_width", value:_arg1.width}); _local4.push({name:"_scrollRect_height", value:_arg1.height}); }; return (_local4); } public static function _autoAlpha_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.alpha); } public static function _scrollRect_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.scrollRect[_arg2[0]]); } public static function _scale_splitter(_arg1:Number, _arg2:Array):Array{ var _local3:Array = new Array(); _local3.push({name:"scaleX", value:_arg1}); _local3.push({name:"scaleY", value:_arg1}); return (_local3); } public static function _scrollRect_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Rectangle = _arg1.scrollRect; _local5[_arg3[0]] = Math.round(_arg2); _arg1.scrollRect = _local5; } } }//package caurina.transitions.properties
Section 13
//FilterShortcuts (caurina.transitions.properties.FilterShortcuts) package caurina.transitions.properties { import flash.display.*; import caurina.transitions.*; import flash.geom.*; import flash.filters.*; public class FilterShortcuts { public function FilterShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function init():void{ Tweener.registerSpecialPropertySplitter("_filter", _filter_splitter); Tweener.registerSpecialProperty("_Bevel_angle", _filter_property_get, _filter_property_set, [BevelFilter, "angle"]); Tweener.registerSpecialProperty("_Bevel_blurX", _filter_property_get, _filter_property_set, [BevelFilter, "blurX"]); Tweener.registerSpecialProperty("_Bevel_blurY", _filter_property_get, _filter_property_set, [BevelFilter, "blurY"]); Tweener.registerSpecialProperty("_Bevel_distance", _filter_property_get, _filter_property_set, [BevelFilter, "distance"]); Tweener.registerSpecialProperty("_Bevel_highlightAlpha", _filter_property_get, _filter_property_set, [BevelFilter, "highlightAlpha"]); Tweener.registerSpecialPropertySplitter("_Bevel_highlightColor", _generic_color_splitter, ["_Bevel_highlightColor_r", "_Bevel_highlightColor_g", "_Bevel_highlightColor_b"]); Tweener.registerSpecialProperty("_Bevel_highlightColor_r", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "r"]); Tweener.registerSpecialProperty("_Bevel_highlightColor_g", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "g"]); Tweener.registerSpecialProperty("_Bevel_highlightColor_b", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "b"]); Tweener.registerSpecialProperty("_Bevel_knockout", _filter_property_get, _filter_property_set, [BevelFilter, "knockout"]); Tweener.registerSpecialProperty("_Bevel_quality", _filter_property_get, _filter_property_set, [BevelFilter, "quality"]); Tweener.registerSpecialProperty("_Bevel_shadowAlpha", _filter_property_get, _filter_property_set, [BevelFilter, "shadowAlpha"]); Tweener.registerSpecialPropertySplitter("_Bevel_shadowColor", _generic_color_splitter, ["_Bevel_shadowColor_r", "_Bevel_shadowColor_g", "_Bevel_shadowColor_b"]); Tweener.registerSpecialProperty("_Bevel_shadowColor_r", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "r"]); Tweener.registerSpecialProperty("_Bevel_shadowColor_g", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "g"]); Tweener.registerSpecialProperty("_Bevel_shadowColor_b", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "b"]); Tweener.registerSpecialProperty("_Bevel_strength", _filter_property_get, _filter_property_set, [BevelFilter, "strength"]); Tweener.registerSpecialProperty("_Bevel_type", _filter_property_get, _filter_property_set, [BevelFilter, "type"]); Tweener.registerSpecialProperty("_Blur_blurX", _filter_property_get, _filter_property_set, [BlurFilter, "blurX"]); Tweener.registerSpecialProperty("_Blur_blurY", _filter_property_get, _filter_property_set, [BlurFilter, "blurY"]); Tweener.registerSpecialProperty("_Blur_quality", _filter_property_get, _filter_property_set, [BlurFilter, "quality"]); Tweener.registerSpecialPropertySplitter("_ColorMatrix_matrix", _generic_matrix_splitter, [[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ["_ColorMatrix_matrix_rr", "_ColorMatrix_matrix_rg", "_ColorMatrix_matrix_rb", "_ColorMatrix_matrix_ra", "_ColorMatrix_matrix_ro", "_ColorMatrix_matrix_gr", "_ColorMatrix_matrix_gg", "_ColorMatrix_matrix_gb", "_ColorMatrix_matrix_ga", "_ColorMatrix_matrix_go", "_ColorMatrix_matrix_br", "_ColorMatrix_matrix_bg", "_ColorMatrix_matrix_bb", "_ColorMatrix_matrix_ba", "_ColorMatrix_matrix_bo", "_ColorMatrix_matrix_ar", "_ColorMatrix_matrix_ag", "_ColorMatrix_matrix_ab", "_ColorMatrix_matrix_aa", "_ColorMatrix_matrix_ao"]]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_rr", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 0]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_rg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 1]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_rb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 2]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ra", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 3]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ro", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 4]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_gr", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 5]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_gg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 6]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_gb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 7]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ga", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 8]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_go", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 9]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_br", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 10]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_bg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 11]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_bb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 12]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ba", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 13]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_bo", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 14]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ar", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 15]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ag", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 16]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ab", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 17]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_aa", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 18]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ao", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 19]); Tweener.registerSpecialProperty("_Convolution_alpha", _filter_property_get, _filter_property_set, [ConvolutionFilter, "alpha"]); Tweener.registerSpecialProperty("_Convolution_bias", _filter_property_get, _filter_property_set, [ConvolutionFilter, "bias"]); Tweener.registerSpecialProperty("_Convolution_clamp", _filter_property_get, _filter_property_set, [ConvolutionFilter, "clamp"]); Tweener.registerSpecialPropertySplitter("_Convolution_color", _generic_color_splitter, ["_Convolution_color_r", "_Convolution_color_g", "_Convolution_color_b"]); Tweener.registerSpecialProperty("_Convolution_color_r", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_Convolution_color_g", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_Convolution_color_b", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_Convolution_divisor", _filter_property_get, _filter_property_set, [ConvolutionFilter, "divisor"]); Tweener.registerSpecialProperty("_Convolution_matrixX", _filter_property_get, _filter_property_set, [ConvolutionFilter, "matrixX"]); Tweener.registerSpecialProperty("_Convolution_matrixY", _filter_property_get, _filter_property_set, [ConvolutionFilter, "matrixY"]); Tweener.registerSpecialProperty("_Convolution_preserveAlpha", _filter_property_get, _filter_property_set, [ConvolutionFilter, "preserveAlpha"]); Tweener.registerSpecialProperty("_DisplacementMap_alpha", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "alpha"]); Tweener.registerSpecialPropertySplitter("_DisplacementMap_color", _generic_color_splitter, ["_DisplacementMap_color_r", "_DisplacementMap_color_r", "_DisplacementMap_color_r"]); Tweener.registerSpecialProperty("_DisplacementMap_color_r", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_DisplacementMap_color_g", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_DisplacementMap_color_b", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_DisplacementMap_componentX", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "componentX"]); Tweener.registerSpecialProperty("_DisplacementMap_componentY", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "componentY"]); Tweener.registerSpecialProperty("_DisplacementMap_mapBitmap", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapBitmap"]); Tweener.registerSpecialProperty("_DisplacementMap_mapPoint", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapPoint"]); Tweener.registerSpecialProperty("_DisplacementMap_mode", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mode"]); Tweener.registerSpecialProperty("_DisplacementMap_scaleX", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "scaleX"]); Tweener.registerSpecialProperty("_DisplacementMap_scaleY", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "scaleY"]); Tweener.registerSpecialProperty("_DropShadow_alpha", _filter_property_get, _filter_property_set, [DropShadowFilter, "alpha"]); Tweener.registerSpecialProperty("_DropShadow_angle", _filter_property_get, _filter_property_set, [DropShadowFilter, "angle"]); Tweener.registerSpecialProperty("_DropShadow_blurX", _filter_property_get, _filter_property_set, [DropShadowFilter, "blurX"]); Tweener.registerSpecialProperty("_DropShadow_blurY", _filter_property_get, _filter_property_set, [DropShadowFilter, "blurY"]); Tweener.registerSpecialPropertySplitter("_DropShadow_color", _generic_color_splitter, ["_DropShadow_color_r", "_DropShadow_color_g", "_DropShadow_color_b"]); Tweener.registerSpecialProperty("_DropShadow_color_r", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_DropShadow_color_g", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_DropShadow_color_b", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_DropShadow_distance", _filter_property_get, _filter_property_set, [DropShadowFilter, "distance"]); Tweener.registerSpecialProperty("_DropShadow_hideObject", _filter_property_get, _filter_property_set, [DropShadowFilter, "hideObject"]); Tweener.registerSpecialProperty("_DropShadow_inner", _filter_property_get, _filter_property_set, [DropShadowFilter, "inner"]); Tweener.registerSpecialProperty("_DropShadow_knockout", _filter_property_get, _filter_property_set, [DropShadowFilter, "knockout"]); Tweener.registerSpecialProperty("_DropShadow_quality", _filter_property_get, _filter_property_set, [DropShadowFilter, "quality"]); Tweener.registerSpecialProperty("_DropShadow_strength", _filter_property_get, _filter_property_set, [DropShadowFilter, "strength"]); Tweener.registerSpecialProperty("_Glow_alpha", _filter_property_get, _filter_property_set, [GlowFilter, "alpha"]); Tweener.registerSpecialProperty("_Glow_blurX", _filter_property_get, _filter_property_set, [GlowFilter, "blurX"]); Tweener.registerSpecialProperty("_Glow_blurY", _filter_property_get, _filter_property_set, [GlowFilter, "blurY"]); Tweener.registerSpecialPropertySplitter("_Glow_color", _generic_color_splitter, ["_Glow_color_r", "_Glow_color_g", "_Glow_color_b"]); Tweener.registerSpecialProperty("_Glow_color_r", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_Glow_color_g", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_Glow_color_b", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_Glow_inner", _filter_property_get, _filter_property_set, [GlowFilter, "inner"]); Tweener.registerSpecialProperty("_Glow_knockout", _filter_property_get, _filter_property_set, [GlowFilter, "knockout"]); Tweener.registerSpecialProperty("_Glow_quality", _filter_property_get, _filter_property_set, [GlowFilter, "quality"]); Tweener.registerSpecialProperty("_Glow_strength", _filter_property_get, _filter_property_set, [GlowFilter, "strength"]); Tweener.registerSpecialProperty("_GradientBevel_angle", _filter_property_get, _filter_property_set, [GradientBevelFilter, "angle"]); Tweener.registerSpecialProperty("_GradientBevel_blurX", _filter_property_get, _filter_property_set, [GradientBevelFilter, "blurX"]); Tweener.registerSpecialProperty("_GradientBevel_blurY", _filter_property_get, _filter_property_set, [GradientBevelFilter, "blurY"]); Tweener.registerSpecialProperty("_GradientBevel_distance", _filter_property_get, _filter_property_set, [GradientBevelFilter, "distance"]); Tweener.registerSpecialProperty("_GradientBevel_quality", _filter_property_get, _filter_property_set, [GradientBevelFilter, "quality"]); Tweener.registerSpecialProperty("_GradientBevel_strength", _filter_property_get, _filter_property_set, [GradientBevelFilter, "strength"]); Tweener.registerSpecialProperty("_GradientBevel_type", _filter_property_get, _filter_property_set, [GradientBevelFilter, "type"]); Tweener.registerSpecialProperty("_GradientGlow_angle", _filter_property_get, _filter_property_set, [GradientGlowFilter, "angle"]); Tweener.registerSpecialProperty("_GradientGlow_blurX", _filter_property_get, _filter_property_set, [GradientGlowFilter, "blurX"]); Tweener.registerSpecialProperty("_GradientGlow_blurY", _filter_property_get, _filter_property_set, [GradientGlowFilter, "blurY"]); Tweener.registerSpecialProperty("_GradientGlow_distance", _filter_property_get, _filter_property_set, [GradientGlowFilter, "distance"]); Tweener.registerSpecialProperty("_GradientGlow_knockout", _filter_property_get, _filter_property_set, [GradientGlowFilter, "knockout"]); Tweener.registerSpecialProperty("_GradientGlow_quality", _filter_property_get, _filter_property_set, [GradientGlowFilter, "quality"]); Tweener.registerSpecialProperty("_GradientGlow_strength", _filter_property_get, _filter_property_set, [GradientGlowFilter, "strength"]); Tweener.registerSpecialProperty("_GradientGlow_type", _filter_property_get, _filter_property_set, [GradientGlowFilter, "type"]); } public static function _filter_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local5:Number; var _local9:Object; var _local10:String; var _local4:Array = _arg1.filters; var _local6:Object = _arg2[0]; var _local7:String = _arg2[1]; var _local8:String = _arg2[2]; _local5 = 0; while (_local5 < _local4.length) { if ((_local4[_local5] is Class(_local6))){ if (_local8 == "color"){ _local10 = _arg2[3]; if (_local10 == "r"){ return (AuxFunctions.numberToR(_local4[_local5][_local7])); }; if (_local10 == "g"){ return (AuxFunctions.numberToG(_local4[_local5][_local7])); }; if (_local10 == "b"){ return (AuxFunctions.numberToB(_local4[_local5][_local7])); }; } else { if (_local8 == "matrix"){ return (_local4[_local5][_local7][_arg2[3]]); }; return (_local4[_local5][_local7]); }; }; _local5++; }; switch (_local6){ case BevelFilter: _local9 = {angle:NaN, blurX:0, blurY:0, distance:0, highlightAlpha:1, highlightColor:NaN, knockout:null, quality:NaN, shadowAlpha:1, shadowColor:NaN, strength:2, type:null}; break; case BlurFilter: _local9 = {blurX:0, blurY:0, quality:NaN}; break; case ColorMatrixFilter: _local9 = {matrix:[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]}; break; case ConvolutionFilter: _local9 = {alpha:0, bias:0, clamp:null, color:NaN, divisor:1, matrix:[1], matrixX:1, matrixY:1, preserveAlpha:null}; break; case DisplacementMapFilter: _local9 = {alpha:0, color:NaN, componentX:null, componentY:null, mapBitmap:null, mapPoint:null, mode:null, scaleX:0, scaleY:0}; break; case DropShadowFilter: _local9 = {distance:0, angle:NaN, color:NaN, alpha:1, blurX:0, blurY:0, strength:1, quality:NaN, inner:null, knockout:null, hideObject:null}; break; case GlowFilter: _local9 = {alpha:1, blurX:0, blurY:0, color:NaN, inner:null, knockout:null, quality:NaN, strength:2}; break; case GradientBevelFilter: _local9 = {alphas:null, angle:NaN, blurX:0, blurY:0, colors:null, distance:0, knockout:null, quality:NaN, ratios:NaN, strength:1, type:null}; break; case GradientGlowFilter: _local9 = {alphas:null, angle:NaN, blurX:0, blurY:0, colors:null, distance:0, knockout:null, quality:NaN, ratios:NaN, strength:1, type:null}; break; }; if (_local8 == "color"){ return (NaN); }; if (_local8 == "matrix"){ return (_local9[_local7][_arg2[3]]); }; return (_local9[_local7]); } public static function _filter_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local6:Number; var _local10:BitmapFilter; var _local11:String; var _local12:Array; var _local5:Array = _arg1.filters; var _local7:Object = _arg3[0]; var _local8:String = _arg3[1]; var _local9:String = _arg3[2]; _local6 = 0; while (_local6 < _local5.length) { if ((_local5[_local6] is Class(_local7))){ if (_local9 == "color"){ _local11 = _arg3[3]; if (_local11 == "r"){ _local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFFFF) | (_arg2 << 16)); }; if (_local11 == "g"){ _local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFF00FF) | (_arg2 << 8)); }; if (_local11 == "b"){ _local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFFFF00) | _arg2); }; } else { if (_local9 == "matrix"){ _local12 = _local5[_local6][_local8]; _local12[_arg3[3]] = _arg2; _local5[_local6][_local8] = _local12; } else { _local5[_local6][_local8] = _arg2; }; }; _arg1.filters = _local5; return; }; _local6++; }; if (_local5 == null){ _local5 = new Array(); }; switch (_local7){ case BevelFilter: _local10 = new BevelFilter(0, 45, 0xFFFFFF, 1, 0, 1, 0, 0); break; case BlurFilter: _local10 = new BlurFilter(0, 0); break; case ColorMatrixFilter: _local10 = new ColorMatrixFilter([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]); break; case ConvolutionFilter: _local10 = new ConvolutionFilter(1, 1, [1], 1, 0, true, true, 0, 0); break; case DisplacementMapFilter: _local10 = new DisplacementMapFilter(new BitmapData(10, 10), new Point(0, 0), 0, 1, 0, 0); break; case DropShadowFilter: _local10 = new DropShadowFilter(0, 45, 0, 1, 0, 0); break; case GlowFilter: _local10 = new GlowFilter(0xFF0000, 1, 0, 0); break; case GradientBevelFilter: _local10 = new GradientBevelFilter(0, 45, [0xFFFFFF, 0], [1, 1], [32, 223], 0, 0); break; case GradientGlowFilter: _local10 = new GradientGlowFilter(0, 45, [0xFFFFFF, 0], [1, 1], [32, 223], 0, 0); break; }; _local5.push(_local10); _arg1.filters = _local5; _filter_property_set(_arg1, _arg2, _arg3); } public static function _generic_color_splitter(_arg1:Number, _arg2:Array):Array{ var _local3:Array = new Array(); _local3.push({name:_arg2[0], value:AuxFunctions.numberToR(_arg1)}); _local3.push({name:_arg2[1], value:AuxFunctions.numberToG(_arg1)}); _local3.push({name:_arg2[2], value:AuxFunctions.numberToB(_arg1)}); return (_local3); } public static function _generic_matrix_splitter(_arg1:Array, _arg2:Array):Array{ if (_arg1 == null){ _arg1 = _arg2[0].concat(); }; var _local3:Array = new Array(); var _local4:Number = 0; while (_local4 < _arg1.length) { _local3.push({name:_arg2[1][_local4], value:_arg1[_local4]}); _local4++; }; return (_local3); } public static function _filter_splitter(_arg1:BitmapFilter, _arg2:Array, _arg3:Object=null):Array{ var _local4:Array = new Array(); if ((_arg1 is BevelFilter)){ _local4.push({name:"_Bevel_angle", value:BevelFilter(_arg1).angle}); _local4.push({name:"_Bevel_blurX", value:BevelFilter(_arg1).blurX}); _local4.push({name:"_Bevel_blurY", value:BevelFilter(_arg1).blurY}); _local4.push({name:"_Bevel_distance", value:BevelFilter(_arg1).distance}); _local4.push({name:"_Bevel_highlightAlpha", value:BevelFilter(_arg1).highlightAlpha}); _local4.push({name:"_Bevel_highlightColor", value:BevelFilter(_arg1).highlightColor}); _local4.push({name:"_Bevel_knockout", value:BevelFilter(_arg1).knockout}); _local4.push({name:"_Bevel_quality", value:BevelFilter(_arg1).quality}); _local4.push({name:"_Bevel_shadowAlpha", value:BevelFilter(_arg1).shadowAlpha}); _local4.push({name:"_Bevel_shadowColor", value:BevelFilter(_arg1).shadowColor}); _local4.push({name:"_Bevel_strength", value:BevelFilter(_arg1).strength}); _local4.push({name:"_Bevel_type", value:BevelFilter(_arg1).type}); } else { if ((_arg1 is BlurFilter)){ _local4.push({name:"_Blur_blurX", value:BlurFilter(_arg1).blurX}); _local4.push({name:"_Blur_blurY", value:BlurFilter(_arg1).blurY}); _local4.push({name:"_Blur_quality", value:BlurFilter(_arg1).quality}); } else { if ((_arg1 is ColorMatrixFilter)){ _local4.push({name:"_ColorMatrix_matrix", value:ColorMatrixFilter(_arg1).matrix}); } else { if ((_arg1 is ConvolutionFilter)){ _local4.push({name:"_Convolution_alpha", value:ConvolutionFilter(_arg1).alpha}); _local4.push({name:"_Convolution_bias", value:ConvolutionFilter(_arg1).bias}); _local4.push({name:"_Convolution_clamp", value:ConvolutionFilter(_arg1).clamp}); _local4.push({name:"_Convolution_color", value:ConvolutionFilter(_arg1).color}); _local4.push({name:"_Convolution_divisor", value:ConvolutionFilter(_arg1).divisor}); _local4.push({name:"_Convolution_matrixX", value:ConvolutionFilter(_arg1).matrixX}); _local4.push({name:"_Convolution_matrixY", value:ConvolutionFilter(_arg1).matrixY}); _local4.push({name:"_Convolution_preserveAlpha", value:ConvolutionFilter(_arg1).preserveAlpha}); } else { if ((_arg1 is DisplacementMapFilter)){ _local4.push({name:"_DisplacementMap_alpha", value:DisplacementMapFilter(_arg1).alpha}); _local4.push({name:"_DisplacementMap_color", value:DisplacementMapFilter(_arg1).color}); _local4.push({name:"_DisplacementMap_componentX", value:DisplacementMapFilter(_arg1).componentX}); _local4.push({name:"_DisplacementMap_componentY", value:DisplacementMapFilter(_arg1).componentY}); _local4.push({name:"_DisplacementMap_mapBitmap", value:DisplacementMapFilter(_arg1).mapBitmap}); _local4.push({name:"_DisplacementMap_mapPoint", value:DisplacementMapFilter(_arg1).mapPoint}); _local4.push({name:"_DisplacementMap_mode", value:DisplacementMapFilter(_arg1).mode}); _local4.push({name:"_DisplacementMap_scaleX", value:DisplacementMapFilter(_arg1).scaleX}); _local4.push({name:"_DisplacementMap_scaleY", value:DisplacementMapFilter(_arg1).scaleY}); } else { if ((_arg1 is DropShadowFilter)){ _local4.push({name:"_DropShadow_alpha", value:DropShadowFilter(_arg1).alpha}); _local4.push({name:"_DropShadow_angle", value:DropShadowFilter(_arg1).angle}); _local4.push({name:"_DropShadow_blurX", value:DropShadowFilter(_arg1).blurX}); _local4.push({name:"_DropShadow_blurY", value:DropShadowFilter(_arg1).blurY}); _local4.push({name:"_DropShadow_color", value:DropShadowFilter(_arg1).color}); _local4.push({name:"_DropShadow_distance", value:DropShadowFilter(_arg1).distance}); _local4.push({name:"_DropShadow_hideObject", value:DropShadowFilter(_arg1).hideObject}); _local4.push({name:"_DropShadow_inner", value:DropShadowFilter(_arg1).inner}); _local4.push({name:"_DropShadow_knockout", value:DropShadowFilter(_arg1).knockout}); _local4.push({name:"_DropShadow_quality", value:DropShadowFilter(_arg1).quality}); _local4.push({name:"_DropShadow_strength", value:DropShadowFilter(_arg1).strength}); } else { if ((_arg1 is GlowFilter)){ _local4.push({name:"_Glow_alpha", value:GlowFilter(_arg1).alpha}); _local4.push({name:"_Glow_blurX", value:GlowFilter(_arg1).blurX}); _local4.push({name:"_Glow_blurY", value:GlowFilter(_arg1).blurY}); _local4.push({name:"_Glow_color", value:GlowFilter(_arg1).color}); _local4.push({name:"_Glow_inner", value:GlowFilter(_arg1).inner}); _local4.push({name:"_Glow_knockout", value:GlowFilter(_arg1).knockout}); _local4.push({name:"_Glow_quality", value:GlowFilter(_arg1).quality}); _local4.push({name:"_Glow_strength", value:GlowFilter(_arg1).strength}); } else { if ((_arg1 is GradientBevelFilter)){ _local4.push({name:"_GradientBevel_angle", value:GradientBevelFilter(_arg1).strength}); _local4.push({name:"_GradientBevel_blurX", value:GradientBevelFilter(_arg1).blurX}); _local4.push({name:"_GradientBevel_blurY", value:GradientBevelFilter(_arg1).blurY}); _local4.push({name:"_GradientBevel_distance", value:GradientBevelFilter(_arg1).distance}); _local4.push({name:"_GradientBevel_quality", value:GradientBevelFilter(_arg1).quality}); _local4.push({name:"_GradientBevel_strength", value:GradientBevelFilter(_arg1).strength}); _local4.push({name:"_GradientBevel_type", value:GradientBevelFilter(_arg1).type}); } else { if ((_arg1 is GradientGlowFilter)){ _local4.push({name:"_GradientGlow_angle", value:GradientGlowFilter(_arg1).strength}); _local4.push({name:"_GradientGlow_blurX", value:GradientGlowFilter(_arg1).blurX}); _local4.push({name:"_GradientGlow_blurY", value:GradientGlowFilter(_arg1).blurY}); _local4.push({name:"_GradientGlow_distance", value:GradientGlowFilter(_arg1).distance}); _local4.push({name:"_GradientGlow_knockout", value:GradientGlowFilter(_arg1).knockout}); _local4.push({name:"_GradientGlow_quality", value:GradientGlowFilter(_arg1).quality}); _local4.push({name:"_GradientGlow_strength", value:GradientGlowFilter(_arg1).strength}); _local4.push({name:"_GradientGlow_type", value:GradientGlowFilter(_arg1).type}); } else { trace("Tweener FilterShortcuts Error :: Unknown filter class used"); }; }; }; }; }; }; }; }; }; return (_local4); } } }//package caurina.transitions.properties
Section 14
//AuxFunctions (caurina.transitions.AuxFunctions) package caurina.transitions { public class AuxFunctions { public static function concatObjects(... _args):Object{ var _local3:Object; var _local5:String; var _local2:Object = {}; var _local4:int; while (_local4 < _args.length) { _local3 = _args[_local4]; for (_local5 in _local3) { if (_local3[_local5] == null){ delete _local2[_local5]; } else { _local2[_local5] = _local3[_local5]; }; }; _local4++; }; return (_local2); } public static function numberToG(_arg1:Number):Number{ return (((_arg1 & 0xFF00) >> 8)); } public static function numberToR(_arg1:Number):Number{ return (((_arg1 & 0xFF0000) >> 16)); } public static function isInArray(_arg1:String, _arg2:Array):Boolean{ var _local3:uint = _arg2.length; var _local4:uint; while (_local4 < _local3) { if (_arg2[_local4] == _arg1){ return (true); }; _local4++; }; return (false); } public static function getObjectLength(_arg1:Object):uint{ var _local3:String; var _local2:uint; for (_local3 in _arg1) { _local2++; }; return (_local2); } public static function numberToB(_arg1:Number):Number{ return ((_arg1 & 0xFF)); } } }//package caurina.transitions
Section 15
//Equations (caurina.transitions.Equations) package caurina.transitions { public class Equations { public function Equations(){ trace("Equations is a static class and should not be instantiated."); } public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); if (_arg1 < (1 / 2.75)){ return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _arg1 = (_arg1 - (1.5 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _arg1 = (_arg1 - (2.25 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2)); }; _arg1 = (_arg1 - (2.625 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2)); } public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); }; --_arg1; return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2)); } public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2)); }; _arg1 = (_arg1 - 2); _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2)); } public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2)); } public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2)); } public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function init():void{ Tweener.registerTransition("easenone", easeNone); Tweener.registerTransition("linear", easeNone); Tweener.registerTransition("easeinquad", easeInQuad); Tweener.registerTransition("easeoutquad", easeOutQuad); Tweener.registerTransition("easeinoutquad", easeInOutQuad); Tweener.registerTransition("easeoutinquad", easeOutInQuad); Tweener.registerTransition("easeincubic", easeInCubic); Tweener.registerTransition("easeoutcubic", easeOutCubic); Tweener.registerTransition("easeinoutcubic", easeInOutCubic); Tweener.registerTransition("easeoutincubic", easeOutInCubic); Tweener.registerTransition("easeinquart", easeInQuart); Tweener.registerTransition("easeoutquart", easeOutQuart); Tweener.registerTransition("easeinoutquart", easeInOutQuart); Tweener.registerTransition("easeoutinquart", easeOutInQuart); Tweener.registerTransition("easeinquint", easeInQuint); Tweener.registerTransition("easeoutquint", easeOutQuint); Tweener.registerTransition("easeinoutquint", easeInOutQuint); Tweener.registerTransition("easeoutinquint", easeOutInQuint); Tweener.registerTransition("easeinsine", easeInSine); Tweener.registerTransition("easeoutsine", easeOutSine); Tweener.registerTransition("easeinoutsine", easeInOutSine); Tweener.registerTransition("easeoutinsine", easeOutInSine); Tweener.registerTransition("easeincirc", easeInCirc); Tweener.registerTransition("easeoutcirc", easeOutCirc); Tweener.registerTransition("easeinoutcirc", easeInOutCirc); Tweener.registerTransition("easeoutincirc", easeOutInCirc); Tweener.registerTransition("easeinexpo", easeInExpo); Tweener.registerTransition("easeoutexpo", easeOutExpo); Tweener.registerTransition("easeinoutexpo", easeInOutExpo); Tweener.registerTransition("easeoutinexpo", easeOutInExpo); Tweener.registerTransition("easeinelastic", easeInElastic); Tweener.registerTransition("easeoutelastic", easeOutElastic); Tweener.registerTransition("easeinoutelastic", easeInOutElastic); Tweener.registerTransition("easeoutinelastic", easeOutInElastic); Tweener.registerTransition("easeinback", easeInBack); Tweener.registerTransition("easeoutback", easeOutBack); Tweener.registerTransition("easeinoutback", easeInOutBack); Tweener.registerTransition("easeoutinback", easeOutInBack); Tweener.registerTransition("easeinbounce", easeInBounce); Tweener.registerTransition("easeoutbounce", easeOutBounce); Tweener.registerTransition("easeinoutbounce", easeInOutBounce); Tweener.registerTransition("easeoutinbounce", easeOutInBounce); } public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2)); } public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001))); } public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2)); } public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2)); } public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; --_arg1; return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); } public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2)); } public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); } public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 == 0){ return (_arg2); }; if (_arg1 == _arg4){ return ((_arg2 + _arg3)); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005))); }; --_arg1; return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2)); } public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2)); } public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2)); } public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } } }//package caurina.transitions
Section 16
//PropertyInfoObj (caurina.transitions.PropertyInfoObj) package caurina.transitions { public class PropertyInfoObj { public var modifierParameters:Array; public var isSpecialProperty:Boolean; public var valueComplete:Number; public var modifierFunction:Function; public var extra:Object; public var valueStart:Number; public var hasModifier:Boolean; public var arrayIndex:Number; public var originalValueComplete:Object; public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){ valueStart = _arg1; valueComplete = _arg2; originalValueComplete = _arg3; arrayIndex = _arg4; extra = _arg5; isSpecialProperty = _arg6; hasModifier = Boolean(_arg7); modifierFunction = _arg7; modifierParameters = _arg8; } public function toString():String{ var _local1 = "\n[PropertyInfoObj "; _local1 = (_local1 + ("valueStart:" + String(valueStart))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("valueComplete:" + String(valueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("arrayIndex:" + String(arrayIndex))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("extra:" + String(extra))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("hasModifier:" + String(hasModifier))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters))); _local1 = (_local1 + "]\n"); return (_local1); } public function clone():PropertyInfoObj{ var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters); return (_local1); } } }//package caurina.transitions
Section 17
//SpecialProperty (caurina.transitions.SpecialProperty) package caurina.transitions { public class SpecialProperty { public var parameters:Array; public var getValue:Function; public var preProcess:Function; public var setValue:Function; public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){ getValue = _arg1; setValue = _arg2; parameters = _arg3; preProcess = _arg4; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialProperty "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("setValue:" + String(setValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("preProcess:" + String(preProcess))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 18
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier) package caurina.transitions { public class SpecialPropertyModifier { public var getValue:Function; public var modifyValues:Function; public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){ modifyValues = _arg1; getValue = _arg2; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialPropertyModifier "); _local1 = (_local1 + ("modifyValues:" + String(modifyValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 19
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter) package caurina.transitions { public class SpecialPropertySplitter { public var parameters:Array; public var splitValues:Function; public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){ splitValues = _arg1; parameters = _arg2; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialPropertySplitter "); _local1 = (_local1 + ("splitValues:" + String(splitValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 20
//Tweener (caurina.transitions.Tweener) package caurina.transitions { import flash.display.*; import flash.events.*; import flash.utils.*; public class Tweener { private static var _timeScale:Number = 1; private static var _currentTimeFrame:Number; private static var _specialPropertySplitterList:Object; private static var _engineExists:Boolean = false; private static var _specialPropertyModifierList:Object; private static var _currentTime:Number; private static var _tweenList:Array; private static var _specialPropertyList:Object; private static var _transitionList:Object; private static var _inited:Boolean = false; private static var __tweener_controller__:MovieClip; public function Tweener(){ trace("Tweener is a static class and should not be instantiated."); } public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{ if (!_inited){ init(); }; var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3); _specialPropertyModifierList[_arg1] = _local4; } public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{ if (!_inited){ init(); }; var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5); _specialPropertyList[_arg1] = _local6; } public static function init(... _args):void{ _inited = true; _transitionList = new Object(); Equations.init(); _specialPropertyList = new Object(); _specialPropertyModifierList = new Object(); _specialPropertySplitterList = new Object(); } private static function updateTweens():Boolean{ var _local1:int; if (_tweenList.length == 0){ return (false); }; _local1 = 0; while (_local1 < _tweenList.length) { if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){ if (!updateTweenByIndex(_local1)){ removeTweenByIndex(_local1); }; if (_tweenList[_local1] == null){ removeTweenByIndex(_local1, true); _local1--; }; }; _local1++; }; return (true); } public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Array; var _local8:Function; var _local9:TweenListObj; var _local10:Number; var _local11:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local4 = _arg1.concat(); } else { _local4 = [_arg1]; }; var _local5:Object = _arg2; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time; var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay; if (typeof(_local5.transition) == "string"){ _local11 = _local5.transition.toLowerCase(); _local8 = _transitionList[_local11]; } else { _local8 = _local5.transition; }; if (!Boolean(_local8)){ _local8 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local4.length) { if (_local5.useFrames == true){ _local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams); } else { _local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams); }; _local9.properties = null; _local9.onStart = _local5.onStart; _local9.onUpdate = _local5.onUpdate; _local9.onComplete = _local5.onComplete; _local9.onOverwrite = _local5.onOverwrite; _local9.onStartParams = _local5.onStartParams; _local9.onUpdateParams = _local5.onUpdateParams; _local9.onCompleteParams = _local5.onCompleteParams; _local9.onOverwriteParams = _local5.onOverwriteParams; _local9.onStartScope = _local5.onStartScope; _local9.onUpdateScope = _local5.onUpdateScope; _local9.onCompleteScope = _local5.onCompleteScope; _local9.onOverwriteScope = _local5.onOverwriteScope; _local9.onErrorScope = _local5.onErrorScope; _local9.  = true; _local9.count = _local5.count; _local9.waitFrames = _local5.waitFrames; _tweenList.push(_local9); if ((((_local6 == 0)) && ((_local7 == 0)))){ _local10 = (_tweenList.length - 1); updateTweenByIndex(_local10); removeTweenByIndex(_local10); }; _local3++; }; return (true); } public static function pauseAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { pauseTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function removeTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(removeTweenByIndex, _arg1, _local3)); } public static function splitTweens(_arg1:Number, _arg2:Array):uint{ var _local5:uint; var _local6:String; var _local7:Boolean; var _local3:TweenListObj = _tweenList[_arg1]; var _local4:TweenListObj = _local3.clone(false); _local5 = 0; while (_local5 < _arg2.length) { _local6 = _arg2[_local5]; if (Boolean(_local3.properties[_local6])){ _local3.properties[_local6] = undefined; delete _local3.properties[_local6]; }; _local5++; }; for (_local6 in _local4.properties) { _local7 = false; _local5 = 0; while (_local5 < _arg2.length) { if (_arg2[_local5] == _local6){ _local7 = true; break; }; _local5++; }; if (!_local7){ _local4.properties[_local6] = undefined; delete _local4.properties[_local6]; }; }; _tweenList.push(_local4); return ((_tweenList.length - 1)); } public static function updateFrame():void{ _currentTimeFrame++; } public static function resumeTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj = _tweenList[_arg1]; if ((((_local2 == null)) || (!(_local2.isPaused)))){ return (false); }; var _local3:Number = getCurrentTweeningTime(_local2); _local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused)); _local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused)); _local2.timePaused = undefined; _local2.isPaused = false; return (true); } public static function getVersion():String{ return ("AS3 1.31.71"); } public static function onEnterFrame(_arg1:Event):void{ updateTime(); updateFrame(); var _local2:Boolean; _local2 = updateTweens(); if (!_local2){ stopEngine(); }; } public static function updateTime():void{ _currentTime = getTimer(); } private static function updateTweenByIndex(_arg1:Number):Boolean{ var tTweening:TweenListObj; var mustUpdate:Boolean; var nv:Number; var t:Number; var b:Number; var c:Number; var d:Number; var pName:String; var eventScope:Object; var tScope:Object; var tProperty:Object; var pv:Number; var i = _arg1; tTweening = _tweenList[i]; if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){ return (false); }; var isOver:Boolean; var cTime:Number = getCurrentTweeningTime(tTweening); if (cTime >= tTweening.timeStart){ tScope = tTweening.scope; if (tTweening. ){ do { t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.  + 1)); b = tTweening.timeStart; c = (tTweening.timeComplete - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); } while (!(cTime >= nv)); } else { mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.  >= tTweening.skipUpdates))); if (cTime >= tTweening.timeComplete){ isOver = true; mustUpdate = true; }; if (!tTweening. ){ if (Boolean(tTweening.onStart)){ eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope; try { tTweening.onStart.apply(eventScope, tTweening.onStartParams); } catch(e:Error) { handleError(tTweening, e, "onStart"); }; }; for (pName in tTweening.properties) { if (tTweening.properties[pName].isSpecialProperty){ if (Boolean(_specialPropertyList[pName].preProcess)){ tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra); }; pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { pv = tScope[pName]; }; tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv; }; mustUpdate = true; tTweening. = true; }; if (mustUpdate){ for (pName in tTweening.properties) { tProperty = tTweening.properties[pName]; if (isOver){ nv = tProperty.valueComplete; } else { if (tProperty.hasModifier){ t = (cTime - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams); nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters); } else { t = (cTime - tTweening.timeStart); b = tProperty.valueStart; c = (tProperty.valueComplete - tProperty.valueStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d, tTweening.transitionParams); }; }; if (tTweening.rounded){ nv = Math.round(nv); }; if (tProperty.isSpecialProperty){ _specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { tScope[pName] = nv; }; }; tTweening.  = 0; if (Boolean(tTweening.onUpdate)){ eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope; try { tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams); } catch(e:Error) { handleError(tTweening, e, "onUpdate"); }; }; } else { tTweening. ++; }; }; if (((isOver) && (Boolean(tTweening.onComplete)))){ eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope; try { tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams); } catch(e:Error) { handleError(tTweening, e, "onComplete"); }; }; return (!(isOver)); }; return (true); } public static function setTimeScale(_arg1:Number):void{ var _local2:Number; var _local3:Number; if (isNaN(_arg1)){ _arg1 = 1; }; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; if (_arg1 != _timeScale){ if (_tweenList != null){ _local2 = 0; while (_local2 < _tweenList.length) { _local3 = getCurrentTweeningTime(_tweenList[_local2]); _tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1)); _tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1)); if (_tweenList[_local2].timePaused != undefined){ _tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1)); }; _local2++; }; }; _timeScale = _arg1; }; } public static function resumeAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { resumeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{ var eventScope:Object; var pTweening = _arg1; var pError = _arg2; var pCallBackName = _arg3; if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){ eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope; try { pTweening.onError.apply(eventScope, [pTweening.scope, pError]); } catch(metaError:Error) { printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace())); }; } else { if (!Boolean(pTweening.onError)){ printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace())); }; }; } private static function startEngine():void{ _engineExists = true; _tweenList = new Array(); __tweener_controller__ = new MovieClip(); __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); _currentTimeFrame = 0; updateTime(); } public static function removeAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { removeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Number; var _local5:String; var _local6:Array; var _local13:Function; var _local14:Object; var _local15:TweenListObj; var _local16:Number; var _local17:Array; var _local18:Array; var _local19:Array; var _local20:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local6 = _arg1.concat(); } else { _local6 = [_arg1]; }; var _local7:Object = TweenListObj.makePropertiesChain(_arg2); if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time; var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay; var _local10:Array = new Array(); var _local11:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true}; var _local12:Object = new Object(); for (_local5 in _local7) { if (!_local11[_local5]){ if (_specialPropertySplitterList[_local5]){ _local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters); _local3 = 0; while (_local3 < _local17.length) { if (_specialPropertySplitterList[_local17[_local3].name]){ _local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters); _local4 = 0; while (_local4 < _local18.length) { _local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false}; _local4++; }; } else { _local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false}; }; _local3++; }; } else { if (_specialPropertyModifierList[_local5] != undefined){ _local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]); _local3 = 0; while (_local3 < _local19.length) { _local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue}; _local3++; }; } else { _local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]}; }; }; }; }; for (_local5 in _local10) { if (_specialPropertyList[_local5] != undefined){ _local10[_local5].isSpecialProperty = true; } else { if (_local6[0][_local5] == undefined){ printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property.")); }; }; }; for (_local5 in _local12) { if (_local10[_local5] != undefined){ _local10[_local5].modifierParameters = _local12[_local5].modifierParameters; _local10[_local5].modifierFunction = _local12[_local5].modifierFunction; }; }; if (typeof(_local7.transition) == "string"){ _local20 = _local7.transition.toLowerCase(); _local13 = _transitionList[_local20]; } else { _local13 = _local7.transition; }; if (!Boolean(_local13)){ _local13 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local6.length) { _local14 = new Object(); for (_local5 in _local10) { _local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters); }; if (_local7.useFrames == true){ _local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams); } else { _local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams); }; _local15.properties = _local14; _local15.onStart = _local7.onStart; _local15.onUpdate = _local7.onUpdate; _local15.onComplete = _local7.onComplete; _local15.onOverwrite = _local7.onOverwrite; _local15.onError = _local7.onError; _local15.onStartParams = _local7.onStartParams; _local15.onUpdateParams = _local7.onUpdateParams; _local15.onCompleteParams = _local7.onCompleteParams; _local15.onOverwriteParams = _local7.onOverwriteParams; _local15.onStartScope = _local7.onStartScope; _local15.onUpdateScope = _local7.onUpdateScope; _local15.onCompleteScope = _local7.onCompleteScope; _local15.onOverwriteScope = _local7.onOverwriteScope; _local15.onErrorScope = _local7.onErrorScope; _local15.rounded = _local7.rounded; _local15.skipUpdates = _local7.skipUpdates; removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete); _tweenList.push(_local15); if ((((_local8 == 0)) && ((_local9 == 0)))){ _local16 = (_tweenList.length - 1); updateTweenByIndex(_local16); removeTweenByIndex(_local16); }; _local3++; }; return (true); } public static function registerTransition(_arg1:String, _arg2:Function):void{ if (!_inited){ init(); }; _transitionList[_arg1] = _arg2; } public static function printError(_arg1:String):void{ trace(("## [Tweener] Error: " + _arg1)); } private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{ var _local5:uint; var _local6:Array; var _local7:uint; var _local8:uint; var _local9:uint; var _local4:Boolean; if (!Boolean(_tweenList)){ return (false); }; _local5 = 0; while (_local5 < _tweenList.length) { if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){ if (_arg3.length == 0){ _arg1(_local5); _local4 = true; } else { _local6 = new Array(); _local7 = 0; while (_local7 < _arg3.length) { if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){ _local6.push(_arg3[_local7]); }; _local7++; }; if (_local6.length > 0){ _local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties); if (_local8 == _local6.length){ _arg1(_local5); _local4 = true; } else { _local9 = splitTweens(_local5, _local6); _arg1(_local9); _local4 = true; }; }; }; }; _local5++; }; return (_local4); } public static function getTweens(_arg1:Object):Array{ var _local2:uint; var _local3:String; if (!Boolean(_tweenList)){ return ([]); }; var _local4:Array = new Array(); _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ for (_local3 in _tweenList[_local2].properties) { _local4.push(_local3); }; }; _local2++; }; return (_local4); } public static function isTweening(_arg1:Object):Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ return (true); }; _local2++; }; return (false); } public static function pauseTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj = _tweenList[_arg1]; if ((((_local2 == null)) || (_local2.isPaused))){ return (false); }; _local2.timePaused = getCurrentTweeningTime(_local2); _local2.isPaused = true; return (true); } public static function getCurrentTweeningTime(_arg1:Object):Number{ return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime); } public static function getTweenCount(_arg1:Object):Number{ var _local2:uint; if (!Boolean(_tweenList)){ return (0); }; var _local3:Number = 0; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties)); }; _local2++; }; return (_local3); } private static function stopEngine():void{ _engineExists = false; _tweenList = null; _currentTime = 0; _currentTimeFrame = 0; __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); __tweener_controller__ = null; } public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{ var removedLocally:Boolean; var i:uint; var pName:String; var eventScope:Object; var p_scope = _arg1; var p_properties = _arg2; var p_timeStart = _arg3; var p_timeComplete = _arg4; var removed:Boolean; var tl:uint = _tweenList.length; i = 0; while (i < tl) { if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){ if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){ removedLocally = false; for (pName in _tweenList[i].properties) { if (Boolean(p_properties[pName])){ if (Boolean(_tweenList[i].onOverwrite)){ eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope; try { _tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams); } catch(e:Error) { handleError(_tweenList[i], e, "onOverwrite"); }; }; _tweenList[i].properties[pName] = undefined; delete _tweenList[i].properties[pName]; removedLocally = true; removed = true; }; }; if (removedLocally){ if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){ removeTweenByIndex(i); }; }; }; }; i = (i + 1); }; return (removed); } public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{ if (!_inited){ init(); }; var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3); _specialPropertySplitterList[_arg1] = _local4; } public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{ _tweenList[_arg1] = null; if (_arg2){ _tweenList.splice(_arg1, 1); }; return (true); } public static function resumeTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(resumeTweenByIndex, _arg1, _local3)); } public static function pauseTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(pauseTweenByIndex, _arg1, _local3)); } } }//package caurina.transitions
Section 21
//TweenListObj (caurina.transitions.TweenListObj) package caurina.transitions { public class TweenListObj { public var  :Boolean; public var onUpdate:Function; public var useFrames:Boolean; public var count:Number; public var onOverwriteParams:Array; public var timeStart:Number; public var timeComplete:Number; public var onStartParams:Array; public var onUpdateScope:Object; public var rounded:Boolean; public var onUpdateParams:Array; public var properties:Object; public var onComplete:Function; public var transitionParams:Object; public var  :Number; public var onStart:Function; public var onOverwriteScope:Object; public var skipUpdates:Number; public var onStartScope:Object; public var scope:Object; public var  :Boolean; public var timePaused:Number; public var transition:Function; public var onCompleteParams:Array; public var onError:Function; public var  :Number; public var onErrorScope:Object; public var onOverwrite:Function; public var isPaused:Boolean; public var waitFrames:Boolean; public var onCompleteScope:Object; public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){ scope = _arg1; timeStart = _arg2; timeComplete = _arg3; useFrames = _arg4; transition = _arg5; transitionParams = _arg6; properties = new Object(); isPaused = false; timePaused = undefined;   = false;   = 0;   = 0; skipUpdates = 0;  = false; } public function clone(_arg1:Boolean):TweenListObj{ var _local3:String; var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams); _local2.properties = new Array(); for (_local3 in properties) { _local2.properties[_local3] = properties[_local3].clone(); }; _local2.skipUpdates = skipUpdates; _local2.  =  ; if (!_arg1){ _local2.onStart = onStart; _local2.onUpdate = onUpdate; _local2.onComplete = onComplete; _local2.onOverwrite = onOverwrite; _local2.onError = onError; _local2.onStartParams = onStartParams; _local2.onUpdateParams = onUpdateParams; _local2.onCompleteParams = onCompleteParams; _local2.onOverwriteParams = onOverwriteParams; _local2.onStartScope = onStartScope; _local2.onUpdateScope = onUpdateScope; _local2.onCompleteScope = onCompleteScope; _local2.onOverwriteScope = onOverwriteScope; _local2.onErrorScope = onErrorScope; }; _local2.rounded = rounded; _local2.isPaused = isPaused; _local2.timePaused = timePaused; _local2.  =  ; _local2.count = count; _local2.  =  ; _local2.waitFrames = waitFrames; _local2. =  ; return (_local2); } public function toString():String{ var _local3:String; var _local1 = "\n[TweenListObj "; _local1 = (_local1 + ("scope:" + String(scope))); _local1 = (_local1 + ", properties:"); var _local2:Boolean; for (_local3 in properties) { if (!_local2){ _local1 = (_local1 + ","); }; _local1 = (_local1 + ("[name:" + properties[_local3].name)); _local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart)); _local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete)); _local1 = (_local1 + "]"); _local2 = false; }; _local1 = (_local1 + (", timeStart:" + String(timeStart))); _local1 = (_local1 + (", timeComplete:" + String(timeComplete))); _local1 = (_local1 + (", useFrames:" + String(useFrames))); _local1 = (_local1 + (", transition:" + String(transition))); _local1 = (_local1 + (", transitionParams:" + String(transitionParams))); if (skipUpdates){ _local1 = (_local1 + (", skipUpdates:" + String(skipUpdates))); }; if ( ){ _local1 = (_local1 + (", updatesSkipped:" + String( ))); }; if (Boolean(onStart)){ _local1 = (_local1 + (", onStart:" + String(onStart))); }; if (Boolean(onUpdate)){ _local1 = (_local1 + (", onUpdate:" + String(onUpdate))); }; if (Boolean(onComplete)){ _local1 = (_local1 + (", onComplete:" + String(onComplete))); }; if (Boolean(onOverwrite)){ _local1 = (_local1 + (", onOverwrite:" + String(onOverwrite))); }; if (Boolean(onError)){ _local1 = (_local1 + (", onError:" + String(onError))); }; if (onStartParams){ _local1 = (_local1 + (", onStartParams:" + String(onStartParams))); }; if (onUpdateParams){ _local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams))); }; if (onCompleteParams){ _local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams))); }; if (onOverwriteParams){ _local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams))); }; if (onStartScope){ _local1 = (_local1 + (", onStartScope:" + String(onStartScope))); }; if (onUpdateScope){ _local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope))); }; if (onCompleteScope){ _local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope))); }; if (onOverwriteScope){ _local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope))); }; if (onErrorScope){ _local1 = (_local1 + (", onErrorScope:" + String(onErrorScope))); }; if (rounded){ _local1 = (_local1 + (", rounded:" + String(rounded))); }; if (isPaused){ _local1 = (_local1 + (", isPaused:" + String(isPaused))); }; if (timePaused){ _local1 = (_local1 + (", timePaused:" + String(timePaused))); }; if ( ){ _local1 = (_local1 + (", isCaller:" + String( ))); }; if (count){ _local1 = (_local1 + (", count:" + String(count))); }; if ( ){ _local1 = (_local1 + (", timesCalled:" + String( ))); }; if (waitFrames){ _local1 = (_local1 + (", waitFrames:" + String(waitFrames))); }; if ( ){ _local1 = (_local1 + (", hasStarted:" + String( ))); }; _local1 = (_local1 + "]\n"); return (_local1); } public static function makePropertiesChain(_arg1:Object):Object{ var _local3:Object; var _local4:Object; var _local5:Object; var _local6:Number; var _local7:Number; var _local8:Number; var _local2:Object = _arg1.base; if (_local2){ _local3 = {}; if ((_local2 is Array)){ _local4 = []; _local8 = 0; while (_local8 < _local2.length) { _local4.push(_local2[_local8]); _local8++; }; } else { _local4 = [_local2]; }; _local4.push(_arg1); _local6 = _local4.length; _local7 = 0; while (_local7 < _local6) { if (_local4[_local7]["base"]){ _local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]); } else { _local5 = _local4[_local7]; }; _local3 = AuxFunctions.concatObjects(_local3, _local5); _local7++; }; if (_local3["base"]){ delete _local3["base"]; }; return (_local3); //unresolved jump }; return (_arg1); } } }//package caurina.transitions
Section 22
//Math2 (com.willdady.utils.Math2) package com.willdady.utils { public class Math2 { public static function random(_arg1:Number, _arg2:Number):Number{ return (Math.round((_arg1 + (Math.random() * (_arg2 - _arg1))))); } public static function isEven(_arg1:Number):Boolean{ var _local2:Boolean; if ((_arg1 % 2)){ _local2 = false; } else { _local2 = true; }; return (_local2); } public static function ceil(_arg1:Number, _arg2:Number=1):Number{ return ((Math.ceil((_arg1 / _arg2)) * _arg2)); } public static function toRadians(_arg1:Number):Number{ return (((_arg1 * Math.PI) / 180)); } public static function distanceCoords(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ var _local5:int = (_arg3 - _arg1); var _local6:int = (_arg4 - _arg2); return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6)))); } public static function floor(_arg1:Number, _arg2:Number=1):Number{ return ((Math.floor((_arg1 / _arg2)) * _arg2)); } public static function toDegrees(_arg1:Number){ return (((_arg1 * 180) / Math.PI)); } public static function getAngle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ var _local5:Number = (_arg3 - _arg1); var _local6:Number = (_arg4 - _arg2); var _local7:Number = Math.atan2(_local6, _local5); return (_local7); } public static function round(_arg1:Number, _arg2:Number=1):Number{ return ((Math.round((_arg1 / _arg2)) * _arg2)); } public static function relativeRatio(_arg1:Number, _arg2:Number, _arg3:Number):Number{ var _local4:Number; _local4 = ((_arg1 * _arg3) / _arg2); return (_local4); } } }//package com.willdady.utils
Section 23
//GridViewerControl (control.GridViewerControl) package control { import model.*; public class GridViewerControl { private var gameModel:Model; public function GridViewerControl(_arg1:Model):void{ this.gameModel = _arg1; } public function markBlock(_arg1:Block):void{ gameModel.markBlock(_arg1); } public function setDrawMode_Draw():void{ gameModel.setDrawMode_Draw(); } public function setDrawMode_Hold():void{ gameModel.setDrawMode_Hold(); } } }//package control
Section 24
//MenuControl (control.MenuControl) package control { import model.*; public class MenuControl { private var categoriesLoaded:Boolean;// = false private var gameModel:Model; public function MenuControl(_arg1:Model):void{ this.gameModel = _arg1; } public function openGrid(_arg1:GridData):void{ gameModel.openGrid(_arg1); } public function openCategory(_arg1:Category):void{ gameModel.openCategory(_arg1); } public function loadCategories():void{ if (!categoriesLoaded){ trace("Categories loaded"); gameModel.loadCategories(); categoriesLoaded = true; }; } } }//package control
Section 25
//MusicControl (control.MusicControl) package control { import model.*; public class MusicControl { private var  :Boolean;// = false private var :Number;// = 1 private var gameModel:Model; private static var instance:MusicControl; public function MusicControl(_arg1:Model, _arg2:PrivateClass):void{ this.gameModel = _arg1; } public function toggleMute():void{ if ( ){ gameModel.setMusicVolume(); } else { gameModel.setMusicVolume(0); };  = !( ); } public function setMusicVolume(_arg1:Number):void{  = _arg1; gameModel.setMusicVolume(_arg1); } public static function getInstance(_arg1:Model):MusicControl{ if (MusicControl.instance == null){ MusicControl.instance = new MusicControl(_arg1, new PrivateClass()); }; return (MusicControl.instance); } } }//package control class PrivateClass { private function PrivateClass(){ } }
Section 26
//SoundControl (control.SoundControl) package control { import model.*; public class SoundControl { private var  :Boolean;// = false private var :Number;// = 1 private var gameModel:Model; private static var instance:SoundControl; public function SoundControl(_arg1:Model, _arg2:PrivateClass):void{ this.gameModel = _arg1; } public function toggleMute():void{ if ( ){ gameModel.setSoundVolume(); } else { gameModel.setSoundVolume(0); };  = !( ); } public function setSoundVolume(_arg1:Number):void{  = _arg1; gameModel.setSoundVolume(_arg1); } public static function getInstance(_arg1:Model):SoundControl{ if (SoundControl.instance == null){ SoundControl.instance = new SoundControl(_arg1, new PrivateClass()); }; return (SoundControl.instance); } } }//package control class PrivateClass { private function PrivateClass(){ } }
Section 27
//Block (model.Block) package model { import flash.display.*; public class Block extends Sprite { private var  :uint; public var defaultBlock:DisplayObject; private var  :uint; private var  :Boolean; private var  :uint; private var  :Boolean; public function Block(_arg1:uint, _arg2:uint, _arg3:uint){ this. = _arg1; this.  = _arg2; this.  = _arg3;  = false;   = false; setDefaultBlock(); } function getBlockNumber():uint{ return ( ); } public function setHold():void{   = true; } function getMarkStatus():Boolean{ return ( ); } function getHoldStatus():Boolean{ return ( ); } public function unsetHold():void{   = false; } function getRowNumber():uint{ return ( ); } protected function setDefaultBlock():void{ } public function markTrue():void{  = true; } function getColumnNumber():uint{ return ( ); } public function markFalse():void{ } } }//package model
Section 28
//Category (model.Category) package model { import flash.media.*; public class Category { protected var :Array; protected var :String; protected var :Sound; protected var  :Sound; protected var :GridData; protected static var soundTransform:SoundTransform; public function Category(){ soundTransform = new SoundTransform();  = loadGrids(); } public function getCategoryName():String{ return (); } public function getGridsCompletedCount():uint{ var _local1:uint; var _local2:uint; while (_local2 < .length) { if ([_local2].hasBeenCompleted()){ _local1++; }; _local2++; }; return (_local1); } public function getBlock(_arg1:uint, _arg2:uint, _arg3:uint):Block{ return (null); } protected function loadGrids():Array{ return (null); } public function playNegativeBlockSound(_arg1:Number):void{ soundTransform.volume = _arg1; var _local2:SoundChannel = .play(0, 0, soundTransform); } public function playPositiveBlockSound(_arg1:Number):void{ soundTransform.volume = _arg1; var _local2:SoundChannel =  .play(0, 0, soundTransform); } public function getLineColor():uint{ return (5505791); } public function getGridCount():uint{ return (.length); } public function getGridList():Array{ return (); } public function playEndGameSound(_arg1:Number):void{ soundTransform.volume = _arg1; var _local2:Sound = new _SND_EndGame(); var _local3:SoundChannel = _local2.play(0, 0, soundTransform); } } }//package model
Section 29
//CategoryList (model.CategoryList) package model { import categories.home.*; import categories.sport.*; import categories.food.*; import categories.animals.*; class CategoryList { function getList():Array{ var _local1:Array = [new FoodCategory(), new SportCategory(), new AnimalsCategory(), new HomeCategory()]; return (_local1); } } }//package model
Section 30
//ColumnTitle (model.ColumnTitle) package model { import flash.display.*; import flash.text.*; public class ColumnTitle extends Sprite { private var  :uint; public function ColumnTitle(_arg1:uint, _arg2:uint, _arg3:Array):void{ this.  = _arg1; (_arg2, _arg3); if ((((_arg3.length == 1)) && ((_arg3[0] == "0")))){ markComplete(); }; } public function markComplete():void{ this.alpha = 0.5; } private function (_arg1:uint, _arg2:Array):void{ var _local5:TextFormat; var _local6:TextField; var _local3:uint; var _local4:uint; while (_local4 < _arg2.length) { _local5 = new TextFormat(); _local5.font = "FFF Urban Bold"; _local5.size = 8; _local5.color = 0x575757; _local6 = new TextField(); _local6.autoSize = TextFieldAutoSize.LEFT; _local6.defaultTextFormat = _local5; _local6.text = _arg2[_local4]; _local6.embedFonts = true; _local6.selectable = false; addChild(_local6); _local6.x = Math.round(((_arg1 - _local6.width) / 2)); _local6.y = _local3; _local3 = (_local3 + _local6.textHeight); _local4++; }; } public function getColumnNumber():uint{ return ( ); } } }//package model
Section 31
//GridData (model.GridData) package model { import flash.display.*; public class GridData { private var  :BitmapData; private var  :uint; private var  :Array; private var :Array; private var :uint; private var :Array; private var :String; private var :uint; public function GridData(_arg1:BitmapData, _arg2:String):void{ this. = _arg2; this. = _arg1;  = _arg1.width;  = _arg1.height;  =  (_arg1);  =  (_arg1);  =  (_arg1); } public function hasBeenCompleted():Boolean{ var _local1:SaveManager = SaveManager.getInstance(); var _local2:Boolean = _local1.checkIfCompleted(); return (_local2); } public function getPositiveBlocksThisRow(_arg1:uint):uint{ var _local2:Array =  [_arg1]; var _local3:uint; var _local4:int; while (_local4 < _local2.length) { _local3 = (_local3 + _local2[_local4]); _local4++; }; return (_local3); } public function getPositiveBlocksThisColumn(_arg1:uint):uint{ var _local2:Array = [_arg1]; var _local3:uint; var _local4:int; while (_local4 < _local2.length) { _local3 = (_local3 + _local2[_local4]); _local4++; }; return (_local3); } public function getTotalPositiveBlocks():uint{ return ( ); } public function getColumnTitles():Array{ return (); } public function getGridData():Array{ return (); } public function getGridVerticalCount():uint{ return (); } public function getRowTitles():Array{ return ( ); } public function getTitle():String{ return (); } private function  (_arg1:BitmapData):Array{ var _local6:int; var _local2:Array = new Array(); var _local3:uint; var _local4:uint; var _local5:int; while (_local5 < ) { _local6 = 0; while (_local6 < ) { if (_arg1.getPixel(_local3, _local4) == 0){ _local2.push(1);  ++; } else { _local2.push(0); }; _local3++; _local6++; }; _local3 = 0; _local4++; _local5++; }; return (_local2); } private function  (_arg1:BitmapData):Array{ var _local6:int; var _local7:Array; var _local8:uint; var _local2:Array = new Array(); var _local3:uint; var _local4:uint; var _local5:int; while (_local5 < ) { _local6 = 0; while (_local6 < ) { if (_local6 == 0){ _local7 = new Array(); _local8 = 0; }; if (_arg1.getPixel(_local3, _local4) == 0){ _local8++; if (_local6 == ( - 1)){ _local7.push(_local8); }; } else { if (_local8 > 0){ _local7.push(_local8); }; _local8 = 0; }; _local4++; _local6++; }; _local4 = 0; _local3++; if (_local7[0] !== undefined){ _local2.push(_local7); } else { _local2.push(new Array("0")); }; _local5++; }; return (_local2); } private function  (_arg1:BitmapData):Array{ var _local6:int; var _local7:Array; var _local8:uint; var _local2:Array = new Array(); var _local3:uint; var _local4:uint; var _local5:int; while (_local5 < ) { _local6 = 0; while (_local6 < ) { if (_local6 == 0){ _local7 = new Array(); _local8 = 0; }; if (_arg1.getPixel(_local3, _local4) == 0){ _local8++; if (_local6 == ( - 1)){ _local7.push(_local8); }; } else { if (_local8 > 0){ _local7.push(_local8); }; _local8 = 0; }; _local3++; _local6++; }; _local3 = 0; _local4++; if (_local7[0] !== undefined){ _local2.push(_local7); } else { _local2.push(new Array("0")); }; _local5++; }; return (_local2); } public function getGridHorizontalCount():uint{ return (); } public function getBitmapData():BitmapData{ return ( ); } } }//package model
Section 32
//Model (model.Model) package model { import flash.events.*; public class Model extends EventDispatcher { private var :uint; private var :Boolean;// = true private var :Number;// = 1 private var :uint; private var :uint; private var :Category; private var :CategoryList; private var  :Array; private var :MusicManager; private var :Array; private var :uint; private var :Array; private var :Block; private var :GridData; private var  :SaveManager; public static const COLUMN_COMPLETE:String = "columnComplete"; public static const UNSET_BLOCK_HOLD:String = "unsetBlockHold"; public static const CATEGORIES_LOADED:String = "categoriesLoaded"; public static const MUSIC_VOLUME_CHANGE:String = "musicVolumeChange"; public static const GRID_COMPLETE:String = "gridComplete"; public static const DRAW_MODE_CHANGED:String = "drawModeChanged"; public static const CATEGORY_COMPLETE:String = "categoyComplete"; public static const ROW_COMPLETE:String = "rowComplete"; public static const GRID_OPEN:String = "gridOpen"; public static const SOUND_VOLUME_CHANGE:String = "soundVolumeChange"; public static const CATEGORY_OPEN:String = "categoryOpen"; public static const SET_BLOCK_HOLD:String = "setBlockHold"; public static const OUT_OF_LIVES:String = "outOfLives"; public static const SET_BLOCK_FALSE:String = "setBlockFalse"; public static const SET_BLOCK_TRUE:String = "setBlockTrue"; public function Model():void{  ();  (); } public function getLineColor():uint{ return (.getLineColor()); } private function (_arg1:Block){ if (!_arg1.getMarkStatus()){  = _arg1; if (!_arg1.getHoldStatus()){ dispatchEvent(new Event(Model.SET_BLOCK_HOLD)); }; }; } public function getColumnTitles():Array{ var _local4:Array; var _local5:ColumnTitle; var _local1:Array = .getColumnTitles();  = new Array(); var _local2:uint = getBlockSize(); var _local3:uint; while (_local3 < _local1.length) { _local4 = _local1[_local3]; _local5 = new ColumnTitle(_local3, _local2, _local4); .push(_local5); _local3++; }; return (); } public function loadCategories(){  = new CategoryList(); dispatchEvent(new Event(Model.CATEGORIES_LOADED)); } public function getTallestColumnTitle():uint{ var _local1:uint; var _local2:Array = getColumnTitles(); var _local3:uint; while (_local3 < _local2.length) { if (ColumnTitle(_local2[_local3]).height > _local1){ _local1 = ColumnTitle(_local2[_local3]).height; }; _local3++; }; return (_local1); } public function getWidestRowTitle():uint{ var _local1:uint; var _local2:Array = getRowTitles(); var _local3:uint; while (_local3 < _local2.length) { if (RowTitle(_local2[_local3]).width > _local1){ _local1 = RowTitle(_local2[_local3]).width; }; _local3++; }; return (_local1); } public function openGrid(_arg1:GridData):void{  = true;  = undefined;  = undefined;  = undefined;  = undefined;  = 5;  = _arg1; dispatchEvent(new Event(Model.GRID_OPEN)); } private function gridComplete():void{ trace("Game over!");  .saveCompletedGrid(.getTitle()); dispatchEvent(new Event(Model.GRID_COMPLETE)); .playEndGameSound(); if (.getGridCount() == .getGridsCompletedCount()){ trace("Category complete!"); dispatchEvent(new Event(Model.CATEGORY_COMPLETE)); }; } public function getCategoryList():Array{ return (.getList()); } public function getGrid():Array{ var _local6:uint; var _local7:Block; var _local8:uint; var _local9:uint; var _local1:Array = new Array(); var _local2:uint = getGridHorizontalCount(); var _local3:uint = getGridVerticalCount(); var _local4:uint; var _local5:uint; while (_local5 < _local3) { _local6 = 0; while (_local6 < _local2) { _local7 = getBlock(_local4, _local5, _local6); _local8 = .getPositiveBlocksThisRow(_local5); _local9 = .getPositiveBlocksThisColumn(_local6); if ((((_local8 == 0)) || ((_local9 == 0)))){ _local7.setHold(); }; _local1.push(_local7); _local4++; _local6++; }; _local5++; };  = _local1; return (_local1); } private function  ():void{  = SaveManager.getInstance(); } public function markBlock(_arg1:Block):void{ var _local7:Block; var _local8:uint; var _local9:uint; var _local10:uint;  = _arg1; var _local2:uint = _arg1.getBlockNumber(); var _local3:uint = _arg1.getRowNumber(); var _local4:uint = _arg1.getColumnNumber(); var _local5:uint = .getPositiveBlocksThisRow(_local3); var _local6:uint = .getPositiveBlocksThisColumn(_local4); if (){ if (!_arg1.getHoldStatus()){ if (.getGridData()[_local2] == 1){ dispatchEvent(new Event(Model.SET_BLOCK_TRUE)); .playPositiveBlockSound(); _local8 = 0; _local9 = 0; _local10 = 0; while (_local10 < .length) { _local7 = Block([_local10]); if (_local7.getRowNumber() == _local3){ if (_local7.getMarkStatus()){ _local8++; }; }; if (_local7.getColumnNumber() == _local4){ if (_local7.getMarkStatus()){ _local9++; }; }; _local10++; }; if (_local8 == _local5){  = _local3; dispatchEvent(new Event(Model.ROW_COMPLETE)); }; if (_local9 == _local6){  = _local4; dispatchEvent(new Event(Model.COLUMN_COMPLETE)); }; ++; if ( == .getTotalPositiveBlocks()){ gridComplete(); }; } else { dispatchEvent(new Event(Model.SET_BLOCK_FALSE)); .playNegativeBlockSound(); --; if ( == 0){ dispatchEvent(new Event(Model.OUT_OF_LIVES)); }; }; } else { _arg1.unsetHold(); }; } else { (_arg1); }; } public function getLastCompleteColumnNumber():uint{ return (); } public function ():uint{ var _local1:Array = getCategoryList(); var _local2:uint; var _local3:uint; while (_local3 < _local1.length) { _local2 = (_local2 + _local1[_local3].getGridCount()); _local3++; }; return (_local2); } public function getLastClickedBlock():Block{ return (); } public function getSoundVolume():Number{ return (); } public function setDrawMode_Hold():void{  = false; dispatchEvent(new Event(Model.DRAW_MODE_CHANGED)); } public function setSoundVolume(_arg1:Number):void{ if (_arg1 !== getSoundVolume()){  = _arg1; dispatchEvent(new Event(Model.SOUND_VOLUME_CHANGE)); }; } private function getBlock(_arg1:uint, _arg2:uint, _arg3:uint):Block{ return (.getBlock(_arg1, _arg2, _arg3)); } public function setDrawMode_Draw():void{  = true; dispatchEvent(new Event(Model.DRAW_MODE_CHANGED)); } public function getGridVerticalCount():uint{ return (.getGridVerticalCount()); } public function getLastCompleteRowNumber():uint{ return (); } public function ():Category{ return (); } public function setMusicVolume(_arg1:Number):void{ if (_arg1 !== getMusicVolume()){ .setVolume(_arg1); dispatchEvent(new Event(Model.MUSIC_VOLUME_CHANGE)); }; } public function getRowTitles():Array{ var _local4:Array; var _local5:RowTitle; var _local1:Array = .getRowTitles();  = new Array(); var _local2:uint = getBlockSize(); var _local3:uint; while (_local3 < _local1.length) { _local4 = _local1[_local3]; _local5 = new RowTitle(_local3, _local2, _local4);  .push(_local5); _local3++; }; return ( ); } public function openCategory(_arg1:Category){  = _arg1; dispatchEvent(new Event(Model.CATEGORY_OPEN)); } public function getMusicVolume():Number{ return (.getVolume()); } public function  ():uint{ var _local1:Array = getCategoryList(); var _local2:uint; var _local3:uint; while (_local3 < _local1.length) { _local2 = (_local2 + _local1[_local3].getGridsCompletedCount()); _local3++; }; return (_local2); } public function getGridHorizontalCount():uint{ return (.getGridHorizontalCount()); } private function  ():void{  = new MusicManager(); } public function getGridList():Array{ return (.getGridList()); } public function getDrawMode():Boolean{ return (); } public function getBlockSize():uint{ return (getBlock(0, 0, 0).width); } } }//package model
Section 33
//MusicManager (model.MusicManager) package model { import flash.events.*; import flash.media.*; public class MusicManager { private var :Array; private var :uint;// = 0 private var :Number;// = 1 private var :SoundChannel; private var soundTransform:SoundTransform; public function MusicManager():void{ (); (); } private function ():void{  = [new _SND_Sideman_Strut(), new _SND_HacsevJazz(), new _SND_LoungySmoungy(), new _SND_OneNightAlone()]; } private function (_arg1:Event=null):void{ trace("play next track"); .removeEventListener(Event.SOUND_COMPLETE, ); if (( + 1) < .length){ ++; } else {  = 0; };  = Sound([]).play(0, 0, soundTransform); .addEventListener(Event.SOUND_COMPLETE, ); } function getVolume():Number{ return (); } private function ():void{ soundTransform = new SoundTransform(, 0);  = new SoundChannel();  = Sound([]).play(0, 0, soundTransform); .addEventListener(Event.SOUND_COMPLETE, ); } function setVolume(_arg1:Number):void{ trace(("set volume: " + _arg1));  = _arg1; soundTransform.volume = ; .soundTransform = soundTransform; } } }//package model
Section 34
//RowTitle (model.RowTitle) package model { import flash.display.*; import flash.text.*; public class RowTitle extends Sprite { private var  :uint; public function RowTitle(_arg1:uint, _arg2:uint, _arg3:Array):void{ this.  = _arg1; (_arg2, _arg3); if ((((_arg3.length == 1)) && ((_arg3[0] == "0")))){ markComplete(); }; } public function markComplete():void{ this.alpha = 0.5; } private function (_arg1:uint, _arg2:Array):void{ var _local4:TextField; var _local3:TextFormat = new TextFormat(); _local3.font = "FFF Urban Bold"; _local3.size = 8; _local3.color = 0x575757; _local4 = new TextField(); _local4.autoSize = TextFieldAutoSize.LEFT; _local4.defaultTextFormat = _local3; _local4.embedFonts = true; _local4.selectable = false; var _local5:uint; while (_local5 < _arg2.length) { _local4.appendText(_arg2[_local5]); if (_local5 !== (_arg2.length - 1)){ _local4.appendText(" "); }; _local5++; }; addChild(_local4); _local4.y = uint(((_arg1 - _local4.height) / 2)); } public function getRowNumber():uint{ return ( ); } } }//package model
Section 35
//SaveManager (model.SaveManager) package model { import flash.net.*; public class SaveManager { private var :SharedObject; private var completeGridsArray:Array; private static var instance:SaveManager; public function SaveManager(_arg1:PrivateClass):void{ (); } public function checkIfCompleted(_arg1:String):Boolean{ var _local2:Boolean; var _local3:uint; while (_local3 < completeGridsArray.length) { if (_arg1 == completeGridsArray[_local3]){ _local2 = true; break; }; _local3++; }; return (_local2); } private function ():void{  = SharedObject.getLocal("PicrossForever"); if (.data.completeGridsArray == undefined){ .data.completeGridsArray = new Array(); .flush(); trace("Array added to shared object"); }; this.completeGridsArray = .data.completeGridsArray; } public function saveCompletedGrid(_arg1:String){ var _local2:Boolean = checkIfCompleted(_arg1); if (!_local2){ completeGridsArray.push(_arg1); .data.completeGridsArray = completeGridsArray; .flush(); trace((("Grid " + _arg1) + " saved as complete!")); }; } public static function getInstance():SaveManager{ if (SaveManager.instance == null){ SaveManager.instance = new SaveManager(new PrivateClass()); }; return (SaveManager.instance); } } }//package model class PrivateClass { private function PrivateClass():void{ } }
Section 36
//CrumbEffect_19 (Picross_Final_v1_fla.CrumbEffect_19) package Picross_Final_v1_fla { import flash.display.*; public dynamic class CrumbEffect_19 extends MovieClip { public function CrumbEffect_19(){ addFrameScript(12, ); } function (){ stop(); } } }//package Picross_Final_v1_fla
Section 37
//PrimaryText (text.PrimaryText) package text { import flash.text.*; public class PrimaryText extends TextField { public function PrimaryText(_arg1:uint, _arg2:String=""):void{ init(_arg1, _arg2); } private function init(_arg1:uint, _arg2:String):void{ var _local3:TextFormat = new TextFormat(); _local3.font = "Eurostile LT Bold"; _local3.size = _arg1; antiAliasType = AntiAliasType.ADVANCED; defaultTextFormat = _local3; embedFonts = true; autoSize = TextFieldAutoSize.LEFT; text = _arg2; textColor = 0xFFFFFF; selectable = false; mouseEnabled = false; } } }//package text
Section 38
//SecondaryText (text.SecondaryText) package text { import flash.text.*; public class SecondaryText extends TextField { public function SecondaryText(_arg1:uint, _arg2:String=""):void{ init(_arg1, _arg2); } private function init(_arg1:uint, _arg2:String):void{ var _local3:TextFormat = new TextFormat(); _local3.font = "AvantGarde LT Medium"; _local3.size = _arg1; _local3.letterSpacing = 0.3; antiAliasType = AntiAliasType.ADVANCED; defaultTextFormat = _local3; embedFonts = true; autoSize = TextFieldAutoSize.LEFT; text = _arg2; textColor = 0xFFFFFF; selectable = false; mouseEnabled = false; } } }//package text
Section 39
//CloseButton (ui.CloseButton) package ui { import flash.display.*; public class CloseButton extends Sprite { public function CloseButton(){ var _local1:ShinyButton = new ShinyButton(24, 24, 6, ColourTheme.colour5_light, ColourTheme.colour5_dark); addChild(_local1); var _local2:MovieClip = new CloseButton_Cross(); addChild(_local2); } } }//package ui
Section 40
//ColourTheme (ui.ColourTheme) package ui { public class ColourTheme { public static const colour1_light:uint = 5189936; public static const colour5_light:uint = 9148056; public static const colour5_dark:uint = 7963785; public static const colour3_dark:uint = 4443613; public static const colour2_dark:uint = 15338304; public static const colour1_dark:uint = 4860461; public static const particleColour:uint = 2338494; public static const colour4_dark:uint = 13160656; public static const colour2_light:uint = 16719677; public static const colour3_light:uint = 6022115; public static const colour4_light:uint = 15527647; } }//package ui
Section 41
//CrossToolButton (ui.CrossToolButton) package ui { public class CrossToolButton extends ToolButton { override protected function addIcon():void{ var _local1:CrossToolIcon = new CrossToolIcon(); addChild(_local1); } } }//package ui
Section 42
//DrawToolButton (ui.DrawToolButton) package ui { public class DrawToolButton extends ToolButton { override protected function addIcon():void{ var _local1:DrawIcon = new DrawIcon(); addChild(_local1); } } }//package ui
Section 43
//MuteButton (ui.MuteButton) package ui { import flash.display.*; public class MuteButton extends Sprite { protected var soundIcon_On:MovieClip; protected var soundIcon_Off:MovieClip; public function MuteButton(){ var _local1:ShinyButton = new ShinyButton(24, 24, 6, ColourTheme.colour5_light, ColourTheme.colour5_dark); addChild(_local1); addButtonIcons(); } public function setIconOff():void{ soundIcon_On.visible = false; soundIcon_Off.visible = true; } protected function addButtonIcons():void{ } public function setIconOn():void{ soundIcon_On.visible = true; soundIcon_Off.visible = false; } } }//package ui
Section 44
//MuteButton_Music (ui.MuteButton_Music) package ui { public class MuteButton_Music extends MuteButton { public function MuteButton_Music():void{ } override protected function addButtonIcons():void{ soundIcon_On = new MusicIcon_On(); addChild(soundIcon_On); soundIcon_Off = new MusicIcon_Off(); soundIcon_Off.visible = false; addChild(soundIcon_Off); } } }//package ui
Section 45
//MuteButton_Sound (ui.MuteButton_Sound) package ui { public class MuteButton_Sound extends MuteButton { public function MuteButton_Sound():void{ } override protected function addButtonIcons():void{ soundIcon_On = new SoundIcon_On(); addChild(soundIcon_On); soundIcon_Off = new SoundIcon_Off(); soundIcon_Off.visible = false; addChild(soundIcon_Off); } } }//package ui
Section 46
//RetryButton (ui.RetryButton) package ui { import flash.display.*; import text.*; public class RetryButton extends Sprite { public function RetryButton(){ var _local1:ShinyButton = new ShinyButton(100, 30, 8, ColourTheme.colour5_light, ColourTheme.colour5_dark); addChild(_local1); var _local2:PrimaryText = new PrimaryText(14, "Retry"); _local2.x = Math.round(((100 - _local2.width) / 2)); _local2.y = Math.round(((30 - _local2.height) / 2)); addChild(_local2); } } }//package ui
Section 47
//ShinyButton (ui.ShinyButton) package ui { import flash.display.*; import flash.geom.*; public class ShinyButton extends Sprite { private var :uint; private var :uint; private var :uint; public function ShinyButton(_arg1:int, _arg2:int, _arg3:int, _arg4:uint, _arg5:uint):void{ this. = _arg4; this. = _arg5; this. = _arg3; (_arg1, _arg2); } private function (_arg1:Number, _arg2:Number):void{ var _local3:Matrix = new Matrix(); var _local4:Array = new Array(); var _local5:Array = new Array(); var _local6:Array = new Array(); _local4 = [, ]; _local5 = [1, 1]; _local6 = [0, 0xFF]; graphics.clear(); _local3.createGradientBox(_arg1, _arg2, ((270 * Math.PI) / 180)); graphics.beginGradientFill(GradientType.LINEAR, _local4, _local5, _local6, _local3, SpreadMethod.PAD, InterpolationMethod.RGB, 0); graphics.drawRoundRect(0, 0, _arg1, _arg2, ( * 2), ( * 2)); graphics.endFill(); _local3.createGradientBox(_arg1, _arg2, ((90 * Math.PI) / 180)); graphics.beginGradientFill(GradientType.LINEAR, _local4, _local5, _local6, _local3, SpreadMethod.PAD, InterpolationMethod.RGB, 0); graphics.drawRoundRect(2, 2, (_arg1 - 4), (_arg2 - 4), (( - 2) * 2), (( - 2) * 2)); graphics.endFill(); _local4 = [0xFFFFFF, 0xFFFFFF]; _local5 = [0.6, 0]; _local6 = [0, 120]; _local3.createGradientBox(_arg1, _arg2, ((90 * Math.PI) / 180)); graphics.beginGradientFill(GradientType.LINEAR, _local4, _local5, _local6, _local3, SpreadMethod.PAD, InterpolationMethod.RGB, 0); graphics.drawRoundRect(3, 3, (_arg1 - 6), (_arg2 / 2), (( - 3) * 2), (( - 3) * 2)); graphics.endFill(); } override public function set width(_arg1:Number):void{ this.(_arg1, this.height); } override public function set height(_arg1:Number):void{ this.(this.width, _arg1); } } }//package ui
Section 48
//TextButton (ui.TextButton) package ui { import flash.display.*; import flash.text.*; public class TextButton extends Sprite { public function TextButton(_arg1:uint, _arg2:uint, _arg3:String){ var _local4:ShinyButton = new ShinyButton(_arg1, _arg2, 6, ColourTheme.colour5_light, ColourTheme.colour5_dark); addChild(_local4); (_arg3); } private function (_arg1:String):void{ var _local3:TextField; var _local2:TextFormat = new TextFormat(); _local2.font = "Eurostile LT Bold"; _local2.size = 14; _local3 = new TextField(); _local3.defaultTextFormat = _local2; _local3.embedFonts = true; _local3.autoSize = TextFieldAutoSize.LEFT; _local3.textColor = 0xFFFFFF; _local3.text = _arg1; _local3.selectable = false; _local3.x = Math.round(((this.width - _local3.textWidth) / 2)); _local3.y = (Math.round(((this.height - _local3.textHeight) / 2)) - 1); _local3.mouseEnabled = false; addChild(_local3); } } }//package ui
Section 49
//ToolButton (ui.ToolButton) package ui { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.geom.*; import caurina.transitions.properties.*; public class ToolButton extends Sprite { var base:ShinyButton; var  :Point; public function ToolButton(){ base = new ShinyButton(40, 40, 6, ColourTheme.colour2_light, ColourTheme.colour2_dark); addChild(base); addIcon(); addEventListener(Event.ADDED_TO_STAGE,  , false, 0, true); } public function setActive():void{ Tweener.addTween(this, {time:0.5, width:40, height:40, x: .x, y: .y, _tintBrightness:0}); } private function  (_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE,  ); ColorShortcuts.init();  = new Point(this.x, this.y); } protected function addIcon():void{ } public function setInActive():void{ Tweener.addTween(this, {time:0.5, width:34, height:34, x:( .x + 3), y:( .y + 3), _tintBrightness:-0.25}); } } }//package ui
Section 50
//ToolButtons (ui.ToolButtons) package ui { import model.*; import flash.display.*; import flash.events.*; import control.*; public class ToolButtons extends Sprite { private var  :GridViewerControl; private var :DrawToolButton; private var gameModel:Model; private var :CrossToolButton; public function ToolButtons(_arg1:Model, _arg2:GridViewerControl):void{ this. = _arg2; this.gameModel = _arg1; addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } private function  (_arg1:MouseEvent):void{  .setDrawMode_Draw(); } private function  (_arg1:MouseEvent):void{  .setDrawMode_Hold(); } private function (_arg1:Event):void{ if (gameModel.getDrawMode()){ .setInActive(); .buttonMode = true; .setActive(); .buttonMode = false; .addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); .removeEventListener(MouseEvent.MOUSE_DOWN,  ); } else { .setActive(); .buttonMode = false; .setInActive(); .buttonMode = true; .removeEventListener(MouseEvent.MOUSE_DOWN,  ); .addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); }; } private function init(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, init); gameModel.addEventListener(Model.DRAW_MODE_CHANGED, , false, 0, true);  = new DrawToolButton(); .addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); addChild();  = new CrossToolButton(); .x = ((.x + .width) + 10); .addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); addChild(); .setInActive(); .buttonMode = true; .setActive(); } } }//package ui
Section 51
//GridTransitionIn_1 (view.transitions.GridTransitionIn_1) package view.transitions { import flash.display.*; import caurina.transitions.*; import flash.geom.*; import view.*; import com.willdady.utils.*; public class GridTransitionIn_1 { private var stage:Stage; public function GridTransitionIn_1(_arg1:GridViewer, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Sprite, _arg6:Sprite){ this.stage = _arg4[0].stage; (_arg3, 2, 2.5); (_arg2, 2, 2.5); (_arg4, 2, 0.5); (_arg5, 2, 2.5);  (_arg6, 2, 2.5); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } private function (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:Point; var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _local6 = _arg1[_local5].x; _local7 = _arg1[_local5].y; _local8 = Math.round(Math2.random(0, 3)); if (_local8 == 0){ _local9 = -50; _local10 = Math2.random(0, stage.stageHeight); } else { if (_local8 == 1){ _local9 = Math2.random(0, stage.stageWidth); _local10 = -50; } else { if (_local8 == 2){ _local9 = (stage.stageWidth + 50); _local10 = Math2.random(0, stage.stageHeight); } else { _local9 = Math2.random(0, stage.stageWidth); _local10 = (stage.stageHeight + 50); }; }; }; _local11 = _arg1[_local5].parent.globalToLocal(new Point(_local9, _local10)); _arg1[_local5].x = _local11.x; _arg1[_local5].y = _local11.y; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, x:_local6, y:_local7, transition:"easeOutQuart"}); _local5++; }; } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } private function  (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } } }//package view.transitions
Section 52
//GridTransitionIn_2 (view.transitions.GridTransitionIn_2) package view.transitions { import flash.display.*; import caurina.transitions.*; import flash.geom.*; import view.*; public class GridTransitionIn_2 { private var stage:Stage; public function GridTransitionIn_2(_arg1:GridViewer, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Sprite, _arg6:Sprite){ this.stage = _arg4[0].stage; (_arg3, 2, 3); (_arg2, 2, 3); (_arg4, 2, 0.5); (_arg5, 2, 3);  (_arg6, 2, 3); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } private function (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local7:int; var _local8:int; var _local9:Point; var _local4:Number = _arg3; var _local5:Number = (_arg2 / _arg1.length); var _local6:uint; while (_local6 < _arg1.length) { _local7 = _arg1[_local6].x; _local8 = _arg1[_local6].y; _local9 = _arg1[_local6].parent.globalToLocal(new Point(0, (stage.stageHeight + 20))); _arg1[_local6].y = _local9.y; Tweener.addTween(_arg1[_local6], {time:_arg2, delay:_local4, y:_local8, transition:"easeOutQuart"}); _local4 = (_local4 + _local5); _local6++; }; } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } private function  (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } } }//package view.transitions
Section 53
//GridTransitionIn_3 (view.transitions.GridTransitionIn_3) package view.transitions { import flash.display.*; import caurina.transitions.*; import flash.geom.*; import view.*; import com.willdady.utils.*; public class GridTransitionIn_3 { private var gridWidth:int; private var gridHeight:int; private var stage:Stage; public function GridTransitionIn_3(_arg1:GridViewer, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Sprite, _arg6:Sprite){ this.stage = _arg4[0].stage; gridWidth = _arg1.gridWidth; gridHeight = _arg1.gridHeight; (_arg3, 2, 3); (_arg2, 2, 3); (_arg4, 2, 0.5); (_arg5, 2, 3);  (_arg6, 2, 3); } private function (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local8:int; var _local9:int; var _local10:int; var _local11:Point; var _local12:Point; var _local4:Number = _arg3; var _local5:Number = (_arg1.length / _arg2); var _local6:Boolean; var _local7:uint; while (_local7 < _arg1.length) { _local8 = Math2.floor(_local7, int((gridWidth / _arg1[_local7].width))); _local9 = _arg1[_local7].x; _local10 = _arg1[_local7].y; if (_local7 == _local8){ _local6 = !(_local6); }; _local12 = _arg1[_local7].parent.localToGlobal(new Point(_arg1[_local7].x, _arg1[_local7].y)); if (_local6){ _local11 = _arg1[_local7].parent.globalToLocal(new Point(((_local12.x + stage.stageWidth) + 30), ((_local12.y + stage.stageHeight) + 30))); } else { _local11 = _arg1[_local7].parent.globalToLocal(new Point(((_local12.x - stage.stageWidth) + 30), ((_local12.y - stage.stageHeight) + 30))); }; _arg1[_local7].x = _local11.x; Tweener.addTween(_arg1[_local7], {time:_arg2, delay:_local4, x:_local9, transition:"easeOutQuart"}); _local5 = (_local5 + _local5); _local7++; }; } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } private function  (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } } }//package view.transitions
Section 54
//GridTransitionIn_4 (view.transitions.GridTransitionIn_4) package view.transitions { import flash.display.*; import caurina.transitions.*; import flash.geom.*; import view.*; public class GridTransitionIn_4 { private var gridWidth:int; private var gridHeight:int; private var stage:Stage; public function GridTransitionIn_4(_arg1:GridViewer, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Sprite, _arg6:Sprite){ this.stage = _arg4[0].stage; gridWidth = _arg1.gridWidth; gridHeight = _arg1.gridHeight; (_arg3, 2, 3); (_arg2, 2, 3); (_arg4, 2, 0.5); (_arg5, 2, 3);  (_arg6, 2, 3); } private function (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local11:uint; var _local12:uint; var _local13:int; var _local14:int; var _local15:Point; var _local16:Point; var _local4:Number = _arg3; var _local5:Number = (_arg1.length / _arg2); var _local6:Boolean; var _local7:int = (gridWidth / _arg1[_local11].width); var _local8:int = (gridHeight / _arg1[_local11].height); var _local9:int; var _local10:int; _local11 = 0; while (_local11 < _local7) { _local9 = _local11; _local6 = !(_local6); _local12 = 0; while (_local12 < _local8) { _local13 = _arg1[_local9].x; _local14 = _arg1[_local9].y; _local16 = _arg1[_local9].parent.localToGlobal(new Point(_arg1[_local9].x, _arg1[_local9].y)); if (_local6){ _local15 = _arg1[_local9].parent.globalToLocal(new Point(((_local16.x + stage.stageWidth) + 30), ((_local16.y + stage.stageHeight) + 30))); } else { _local15 = _arg1[_local9].parent.globalToLocal(new Point(((_local16.x - stage.stageWidth) + 30), ((_local16.y - stage.stageHeight) + 30))); }; _arg1[_local9].y = _local15.y; Tweener.addTween(_arg1[_local9], {time:_arg2, delay:_local4, y:_local14, transition:"easeOutQuart"}); _local5 = (_local5 + _local5); _local9 = (_local9 + _local7); _local12++; }; _local11++; }; } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } private function  (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ _arg1.alpha = 0; Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:1, transition:"linear"}); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { _arg1[_local5].alpha = 0; Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:1, transition:"linear"}); _local5++; }; } } }//package view.transitions
Section 55
//GridTransitionOut_1 (view.transitions.GridTransitionOut_1) package view.transitions { import flash.display.*; import flash.events.*; import caurina.transitions.*; import flash.geom.*; import view.*; import com.willdady.utils.*; public class GridTransitionOut_1 { private var :Array; private var :uint;// = 0 private var  :Array; private var stage:Stage; public function GridTransitionOut_1(_arg1:GridViewer, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Sprite, _arg6:Sprite){ this.stage = _arg4[0].stage; this. = _arg4; (_arg3, 1, 0); (_arg2, 1, 0); (_arg4); (_arg5, 1, 0);  (_arg6, 1, 0); } private function (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:0, transition:"linear"}); } private function (_arg1:Array):void{ var _local3:Point;  = new Array(); var _local2:uint; while (_local2 < _arg1.length) { _local3 = new Point(_arg1[_local2].x, _arg1[_local2].y);  .push(_local3); _local2++; }; stage.addEventListener(Event.ENTER_FRAME,  ); } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:0, transition:"linear"}); _local5++; }; } private function (_arg1:Array, _arg2:Number, _arg3:Number):void{ var _local4:Number = _arg3; var _local5:uint; while (_local5 < _arg1.length) { Tweener.addTween(_arg1[_local5], {time:_arg2, delay:_local4, alpha:0, transition:"linear"}); _local5++; }; } private function ():void{ var _local2:int; var _local3:int; var _local4:int; var _local5:Point; var _local1:uint; while (_local1 < .length) { _local2 = Math.round(Math2.random(0, 3)); if (_local2 == 0){ _local3 = -150; _local4 = Math2.random(-150, (stage.stageHeight + 150)); } else { if (_local2 == 1){ _local3 = Math2.random(-150, (stage.stageWidth + 150)); _local4 = -150; } else { if (_local2 == 2){ _local3 = (stage.stageWidth + 150); _local4 = Math2.random(-150, (stage.stageHeight + 150)); } else { _local3 = Math2.random(-150, (stage.stageWidth + 150)); _local4 = (stage.stageHeight + 150); }; }; }; _local5 = [_local1].parent.globalToLocal(new Point(_local3, _local4)); Tweener.addTween([_local1], {time:1.5, x:_local5.x, y:_local5.y, transition:"easeOutQuart"}); _local1++; }; } private function  (_arg1:Event):void{ var _local4:Point; var _local2:int = Math2.random(1, 3); var _local3:uint; while (_local3 < .length) { _local4 = Point( [_local3]); [_local3].x = int((_local4.x + Math2.random(-2, 2))); [_local3].y = int((_local4.y + Math2.random(-2, 2))); _local3 = (_local3 + _local2); }; if ( == 45){ (); stage.removeEventListener(Event.ENTER_FRAME,  );  = null; }; ++; } private function  (_arg1:Sprite, _arg2:Number, _arg3:Number):void{ Tweener.addTween(_arg1, {time:_arg2, delay:_arg3, alpha:0, transition:"linear"}); } } }//package view.transitions
Section 56
//CategoryChooser (view.CategoryChooser) package view { import model.*; import flash.events.*; import control.*; import ui.*; import flash.text.*; import text.*; public class CategoryChooser extends MenuPanel { public function CategoryChooser(_arg1:Model, _arg2:MenuControl){ baseSmallWidth = 160; baseSmallHeight = 60; baseLargeWidth = 580; baseLargeHeight = 580;   = ColourTheme.colour2_light;   = ColourTheme.colour2_light; super(_arg1, _arg2); _arg1.addEventListener(Model.CATEGORIES_LOADED, ); (); } override public function open():void{ super.open(); menuControl.loadCategories(); } private function ():void{ var _local1:TextField = new PrimaryText(22, "Begin"); _local1.x = Math.round((((baseSmallWidth - _local1.textWidth) / 2) + 10)); _local1.y = Math.round((((baseSmallHeight - _local1.textHeight) / 2) + 10)); smallContent.addChild(_local1); var _local2:TextField = new PrimaryText(40, "Categories"); _local2.x = 45; _local2.y = 65; largeContent.addChild(_local2); } private function (_arg1:Event):void{ var _local7:Category; var _local8:CategoryPanel; var _local2:Array = gameModel.getCategoryList(); var _local3:uint = 30; var _local4:uint = 130; var _local5:uint; var _local6:uint; while (_local6 < _local2.length) { _local7 = Category(_local2[_local6]); _local8 = new CategoryPanel(gameModel, menuControl, _local7); _local8.x = _local3; _local8.y = _local4; addChildPanel(_local8); _local3 = (_local3 + (_local8.width + 10)); ++_local5; if (_local5 == 2){ _local3 = 30; _local4 = (_local4 + (_local8.height + 10)); _local5 = 0; }; _local6++; }; } } }//package view
Section 57
//CategoryPanel (view.CategoryPanel) package view { import model.*; import flash.events.*; import control.*; import ui.*; import flash.text.*; import text.*; public class CategoryPanel extends MenuPanel { private var :Boolean;// = false private var :TextField; private var :Category; public function CategoryPanel(_arg1:Model, _arg2:MenuControl, _arg3:Category){ baseSmallWidth = 0xFF; baseSmallHeight = 190; baseLargeWidth = 580; baseLargeHeight = 580;   = ColourTheme.colour3_light;   = ColourTheme.colour3_dark; super(_arg1, _arg2); this. = _arg3; (); } override public function open():void{ super.open(); if (!){ gameModel.addEventListener(Model.CATEGORY_OPEN,  );  = true; }; menuControl.openCategory(); } private function  (_arg1:Event){ var _local7:GridData; var _local8:GridPanel; var _local2:Array = gameModel.getGridList(); var _local3:uint = 35; var _local4:uint = 130; var _local5:uint; var _local6:uint; while (_local6 < _local2.length) { _local7 = GridData(_local2[_local6]); _local8 = new GridPanel(gameModel, menuControl, _local7); _local8.x = _local3; _local8.y = _local4; addChildPanel(_local8); _local3 = (_local3 + (_local8.width + 10)); ++_local5; if (_local5 == 4){ _local3 = 35; _local4 = (_local4 + (_local8.height + 10)); _local5 = 0; }; _local6++; }; gameModel.removeEventListener(Model.CATEGORY_OPEN,  ); } override public function close():void{ super.close(); .text = (((.getGridsCompletedCount() + " of ") + .getGridCount()) + " Puzzles Complete"); } private function ():void{ var _local1:TextField; _local1 = new PrimaryText(26, .getCategoryName()); _local1.textColor = 0xFFFFFF; _local1.x = Math.round((((baseSmallWidth - _local1.textWidth) / 2) + 10)); _local1.y = 80; smallContent.addChild(_local1);  = new SecondaryText(12); .defaultTextFormat.letterSpacing = 0.5; .text = (((.getGridsCompletedCount() + " of ") + .getGridCount()) + " Puzzles Complete"); .x = Math.round((((baseSmallWidth - .textWidth) / 2) + 10)); .y = (_local1.y + _local1.height); smallContent.addChild(); var _local2:TextField = new PrimaryText(40, .getCategoryName()); _local2.textColor = ColourTheme.colour2_dark; _local2.x = 45; _local2.y = 65; largeContent.addChild(_local2); } } }//package view
Section 58
//Credits (view.Credits) package view { import model.*; import flash.display.*; import flash.events.*; import control.*; import ui.*; import flash.net.*; import text.*; public class Credits extends MenuPanel { private var :Sprite; public function Credits(_arg1:Model, _arg2:MenuControl){ baseSmallWidth = 160; baseSmallHeight = 40; baseLargeWidth = 580; baseLargeHeight = 580;   = ColourTheme.colour2_light;   = ColourTheme.colour2_light; super(_arg1, _arg2); (); } override protected function onCloseComplete():void{ largeContent.removeChild(); super.onCloseComplete(); } override protected function onOpenComplete():void{  = new Sprite(); var _local1:SecondaryText = new SecondaryText(22, "Development"); .addChild(_local1); var _local2:SecondaryText = new SecondaryText(12); _local2.text = "Art, design & coding by Will Dady"; _local2.y = (_local1.y + _local1.height); .addChild(_local2); var _local3:Bitmap = new Bitmap(new DevLogo_MainMenu(182, 21)); var _local4:Sprite = new Sprite(); _local4.addChild(_local3); _local4.buttonMode = true; _local4.x = 3; _local4.y = ((_local2.y + _local2.height) + 5); _local4.addEventListener(MouseEvent.MOUSE_DOWN, ); .addChild(_local4); var _local5:Bitmap = new Bitmap(new CC_Logo(88, 31)); var _local6:Sprite = new Sprite(); _local6.buttonMode = true; _local6.x = 3; _local6.y = ((_local4.y + _local4.height) + 10); _local6.addEventListener(MouseEvent.MOUSE_DOWN, ); _local6.addChild(_local5); .addChild(_local6); var _local7:SecondaryText = new SecondaryText(22, "Music"); _local7.y = ((_local6.y + _local6.height) + 10); .addChild(_local7); var _local8:SecondaryText = new SecondaryText(12); _local8.mouseEnabled = true; var _local9 = "\"One Night Alone\" - <u><a href='http://dragonspy.newgrounds.com/'>DragonSpy</a></u>\n"; var _local10 = "\"Hacsev Jazz\" - <u><a href='http://hacsev.newgrounds.com/'>Hacsev</a></u>\n"; var _local11 = "\"Sideman Strut\" - <u><a href='http://lewisbrand.net/'>Lewis Brand (musicallewis)</a></u>\n"; var _local12 = "\"Loungy Smoungy Joungy\" -&nbsp;&nbsp;&nbsp;<u><a href='http://smidly.newgrounds.com/'>Smidly</a></u>"; _local8.htmlText = (((_local9 + _local10) + _local11) + _local12); _local8.y = (_local7.y + _local7.height); .addChild(_local8); var _local13:SecondaryText = new SecondaryText(22, "News"); _local13.y = ((_local8.y + _local8.height) + 20); .addChild(_local13); var _local14:SecondaryText = new SecondaryText(12); _local14.width = 510; _local14.wordWrap = true; _local14.mouseEnabled = true; _local14.htmlText = GameXML.news; _local14.y = (_local13.y + _local13.height); .addChild(_local14); .x = 45; .y = 150; largeContent.addChild(); } private function (_arg1:MouseEvent):void{ var _local2:URLVariables = new URLVariables(); _local2.game = "PicrossForever"; var _local3:URLRequest = new URLRequest(GameXML.website); _local3.method = URLRequestMethod.GET; _local3.data = _local2; navigateToURL(_local3, "_blank"); } private function ():void{ var _local1:PrimaryText = new PrimaryText(16, "Credits + News"); _local1.x = Math.round((((baseSmallWidth - _local1.textWidth) / 2) + 5)); _local1.y = Math.round((((baseSmallHeight - _local1.textHeight) / 2) + 9)); smallContent.addChild(_local1); var _local2:PrimaryText = new PrimaryText(40, "Credits + News"); _local2.x = 45; _local2.y = 65; largeContent.addChild(_local2); } private function (_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest("http://creativecommons.org/licenses/by-nd/3.0/"); navigateToURL(_local2, "_blank"); } } }//package view
Section 59
//DialogueBox (view.DialogueBox) package view { import model.*; import flash.events.*; import control.*; import caurina.transitions.*; import ui.*; import flash.text.*; public class DialogueBox extends MenuPanel { private var  :TextField; private var  :Boolean;// = false private var  :TextButton; private var  :TextButton; public static const OK:String = "ok"; public function DialogueBox(_arg1:Model, _arg2:MenuControl){ baseSmallWidth = 50; baseSmallHeight = 50; baseLargeWidth = 320; baseLargeHeight = 150;   = ColourTheme.colour4_light;   = ColourTheme.colour4_dark; super(_arg1, _arg2); OPEN_SPEED = 0.85; CLOSE_SPEED = 0.5; FADE_OUT_SPEED = 0.35;   = 0.35; this.visible = false; this.removeEventListener(MouseEvent.MOUSE_DOWN, dispatchOpenEvent); buttonMode = false;  ();  (); } private function  (_arg1:MouseEvent):void{   = true; dispatchCloseEvent(_arg1); } private function  ():void{ var _local1:TextFormat = new TextFormat(); _local1.font = "AvantGarde LT Medium"; _local1.size = 14; _local1.align = TextFormatAlign.CENTER;   = new TextField();  .defaultTextFormat = _local1;  .embedFonts = true;  .autoSize = TextFieldAutoSize.CENTER;  .textColor = 0x666666;  .selectable = false;  .mouseEnabled = false; largeContent.addChild( ); } public function alert(_arg1:String):void{  .text = _arg1;  .x = Math.round((((baseLargeWidth -  .textWidth) / 2) + 10));  .y = Math.round(((((baseLargeHeight - 20) -  .textHeight) / 2) + 10)); dispatchOpenEvent(); } private function  ():void{ var _local1:uint = 100; var _local2:uint = 30; var _local3:uint = 10;   = new TextButton(_local1, _local2, "Ok"); largeContent.addChild( );  .x = Math.round((((baseLargeWidth + 20) - ((_local1 * 2) + _local3)) / 2));  .y = ((baseLargeHeight - _local2) - 5);   = new TextButton(_local1, _local2, "Cancel"); largeContent.addChild( );  .x = (( .x +  .width) + 15);  .y = ((baseLargeHeight - _local2) - 5);  .addEventListener(MouseEvent.MOUSE_DOWN,  );  .buttonMode = true;  .addEventListener(MouseEvent.MOUSE_DOWN, dispatchCloseEvent);  .buttonMode = true; } override public function open():void{ super.open(); Tweener.addTween(this, {time:OPEN_SPEED, delay:FADE_OUT_SPEED, _autoAlpha:1, transition:"easeOutQuart"}); Tweener.addTween(this, {time:OPEN_SPEED, delay:FADE_OUT_SPEED, x:((stage.stageWidth - baseLargeWidth) / 2), y:((stage.stageHeight - baseLargeHeight) / 2), transition:"easeOutQuart"}); } override protected function onCloseComplete():void{ if ( ){   = false; dispatchEvent(new Event(DialogueBox.OK)); }; } override protected function setupMuteButtons():void{ } override public function close():void{ super.close(); Tweener.addTween(this, {time:CLOSE_SPEED, delay:FADE_OUT_SPEED, _autoAlpha:0, transition:"easeOutQuart"}); Tweener.addTween(this, {time:CLOSE_SPEED, delay:FADE_OUT_SPEED, x:smallXPos, y:smallYPos, transition:"easeOutQuart"}); } } }//package view
Section 60
//GridPanel (view.GridPanel) package view { import model.*; import flash.display.*; import flash.events.*; import control.*; import caurina.transitions.*; import ui.*; import com.willdady.utils.*; import flash.text.*; import text.*; public class GridPanel extends MenuPanel { private var :DisplayObject; private var  :GridViewerControl; private var :GridData; private var :ToolButtons; private var :SoundControl; private var :DialogueBox; private var  :Sprite; private var :MuteButton_Sound; private var  :Boolean;// = false private var  :TextField; private var  :Boolean;// = false private var  :GridViewer; private var  :LivesDisplay; public function GridPanel(_arg1:Model, _arg2:MenuControl, _arg3:GridData){ baseSmallWidth = 120; baseSmallHeight = 120; baseLargeWidth = 580; baseLargeHeight = 580;   = ColourTheme.colour4_light;   = ColourTheme.colour4_dark; super(_arg1, _arg2); this. = _arg3;  = new GridViewerControl(_arg1);  ();  (); if (_arg3.hasBeenCompleted()){  (); } else {  (); }; var _local4:Shape = new Shape(); _local4.graphics.beginFill(0xFF); _local4.graphics.drawRoundRect(10, 10, baseLargeWidth, baseLargeHeight, 8, 8); addChild(_local4); this.mask = _local4; } private function (_arg1:Event):void{ .removeEventListener(DialogueBox.OK, ); dispatchEvent(new Event(MenuPanel.CLOSE)); } private function  ():void{  = new DialogueBox(gameModel, menuControl); .x = (((baseLargeWidth - .width) / 2) + 10); .y = (((baseLargeHeight - .height) / 2) + 10); addChildPanel(); } private function  ():void{ .removeEventListener(MouseEvent.MOUSE_DOWN,  ); gameModel.removeEventListener(Model.SOUND_VOLUME_CHANGE,  ); largeContent.removeChild(); } private function  ():void{ var _local1:SecondaryText = new SecondaryText(14); _local1.text = ((.getGridHorizontalCount() + " x ") + .getGridVerticalCount()); _local1.x = Math.round((((baseSmallWidth - _local1.textWidth) / 2) + 5)); _local1.y = (baseSmallHeight - 20); _local1.textColor = 0x666666; smallContent.addChild(_local1); } private function (_arg1:MouseEvent):void{ var removeFailContent:Function; var e = _arg1; removeFailContent = function ():void{ largeContent.removeChild( );  = null; largeContent.removeChild( );  = null; largeContent.removeChild( );   = null; onOpenComplete(); }; e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, ); Tweener.addTween(largeContent, {time:0.75, alpha:0, transition:"linear", onComplete:removeFailContent}); Tweener.addTween(largeContent, {time:0.75, delay:0.8, alpha:1, transition:"linear"}); } private function  ():void{ if ( !== null){ if (smallContent.contains()){ smallContent.removeChild(); }; };  = new Bitmap(.getBitmapData()); if (.width >= .height){ .height = Math.round(Math2.relativeRatio(.height, .width, 60)); .width = 60; } else { .height = Math.round(Math2.relativeRatio(.height, .width, 45)); .width = 45; }; .x = Math.round((10 + ((baseSmallWidth - .width) / 2))); .y = Math.round((10 + ((95 - .height) / 2))); var _local1:Sprite = new Sprite(); _local1.graphics.lineStyle(1, 0x666666); _local1.graphics.drawRect(0, 0, (.width + 1), (.height + 1)); _local1.x = (.x - 1); _local1.y = (.y - 1); smallContent.addChild(_local1); smallContent.addChild(); } override protected function closeChildPanel(_arg1:Event):void{ var _local2:Number = FADE_OUT_SPEED; FADE_OUT_SPEED = 0; super.closeChildPanel(_arg1); FADE_OUT_SPEED = _local2; } private function  (_arg1:String):void{  = new Sprite(); var _local2:SecondaryText = new SecondaryText(35, "Puzzle Failed"); _local2.textColor = 0x666666;  .addChild(_local2); var _local3:SecondaryText = new SecondaryText(18, _arg1); _local3.textColor = 0x666666; _local3.x = Math.round(((_local2.textWidth - _local3.textWidth) / 2)); _local3.y = _local2.textHeight;  .addChild(_local3); var _local4:RetryButton = new RetryButton(); _local4.x = Math.round(((_local2.textWidth - _local4.width) / 2)); _local4.y = ((_local3.y + _local3.textHeight) + 15); _local4.buttonMode = true; _local4.addEventListener(MouseEvent.MOUSE_DOWN, , false, 0, true);  .addChild(_local4);  .x = Math.round((((baseLargeWidth -  .width) / 2) + 10));  .y = Math.round((((baseLargeHeight -  .height) / 2) + 10)); largeContent.addChild( ); largeContent.swapChildren( ,  ); } override protected function onOpenComplete():void{   = false;   = false; gameModel.addEventListener(Model.GRID_OPEN,  ); gameModel.addEventListener(Model.OUT_OF_LIVES,  ); menuControl.openGrid();  (); } private function  (_arg1:Event):void{   = true;  ("Too many mistakes");  .alpha = 0; Tweener.addTween( , {time:1, delay:1.5, alpha:1, transition:"linear"}); } private function  ():void{  = new ToolButtons(gameModel,  ); largeContent.addChild(); .x = 20; .y = 20; } override protected function dispatchCloseEvent(_arg1:MouseEvent){ if ((((( ) || ( ))) || ((gameModel.getLastClickedBlock() == null)))){ super.dispatchCloseEvent(_arg1); } else { trace("open dialog box"); .addEventListener(DialogueBox.OK, ); .alert("Closing this puzzle will lose any progress.\nContinue?"); }; } private function  (_arg1:Event):void{ if (gameModel.getSoundVolume() > 0){ .setIconOn(); } else { .setIconOff(); }; } private function  (_arg1:Event):void{ gameModel.removeEventListener(Model.GRID_OPEN,  );  = new GridViewer(gameModel,  );  .x = (Math.round((((baseLargeWidth -  .gridWidth) / 2) + 10)) -  .gridOffsetX);  .y = ((Math.round((((baseLargeHeight -  .gridHeight) / 2) + 10)) -  .gridOffsetY) + 30); largeContent.addChild( ); gameModel.addEventListener(Model.GRID_COMPLETE,  );  ();  (); } override protected function onCloseComplete():void{ gameModel.removeEventListener(Model.GRID_COMPLETE,  ); gameModel.removeEventListener(Model.OUT_OF_LIVES,  ); largeContent.removeChild( ); largeContent.removeChild();  = null; if ( ){ largeContent.removeChild( ); } else { if ( ){ largeContent.removeChild( ); }; }; largeContent.removeChild( );  (); super.onCloseComplete(); } private function  (_arg1:MouseEvent):void{ .toggleMute(); } private function  ():void{  = new QuestionMark(); .x = (10 + ((baseSmallWidth - .width) / 2)); .y = 30; smallContent.addChild(); } private function  ():void{  = new MuteButton_Sound(); .x = ((muteButton_Music.x + muteButton_Music.width) + 5); .y = muteButton_Music.y; .addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true); .buttonMode = true; if (gameModel.getSoundVolume() <= 0){ .setIconOff(); }; largeContent.addChild();  = SoundControl.getInstance(gameModel); gameModel.addEventListener(Model.SOUND_VOLUME_CHANGE,  , false, 0, true); } private function  (_arg1:Event):void{ gameModel.removeEventListener(Model.GRID_COMPLETE,  );   = true;   = new SecondaryText(26, .getTitle());  .textColor = 0x666666;  .x = Math.round((((baseLargeWidth -  .textWidth) / 2) + 10));  .y = (( .y +  .height) + 10);  .alpha = 0; largeContent.addChild( ); Tweener.addTween( , {time:1, delay:3, alpha:1, transition:"linear"});  (); } private function  ():void{   = new LivesDisplay(gameModel);  .x = ((.x + .width) + 20);  .y = 20; largeContent.addChild( ); } } }//package view
Section 61
//GridViewer (view.GridViewer) package view { import model.*; import flash.display.*; import flash.events.*; import control.*; import caurina.transitions.*; import caurina.transitions.properties.*; import com.willdady.utils.*; import view.transitions.*; import flash.ui.*; public class GridViewer extends Sprite { private var  :GridViewerControl; private var :Array; private var  :Array; private var  :Sprite; private var :Array; private var gameModel:Model; private var :Sprite; private var :Sprite; private var  :Sprite; private var  :Sprite; private var :Array; public function GridViewer(_arg1:Model, _arg2:GridViewerControl):void{ this.gameModel = _arg1; this. = _arg2; addEventListener(Event.ADDED_TO_STAGE, init); addEventListener(Event.REMOVED_FROM_STAGE, ); (); ();  (); (); (); } private function markBlock(_arg1:MouseEvent):void{ var _local2:Block; if (_arg1.buttonDown){ _local2 = Block(_arg1.currentTarget);  .markBlock(_local2); }; } private function rowComplete(_arg1:Event):void{ var _local4:RowTitle; var _local2:uint = gameModel.getLastCompleteRowNumber(); var _local3:uint; while (_local3 < .length) { _local4 = [_local3]; if (_local4.getRowNumber() == _local2){ _local4.markComplete(); break; }; _local3++; }; } private function unsetBlockHold(_arg1:Event):void{ var _local2:Block = gameModel.getLastClickedBlock(); _local2.unsetHold(); } public function get gridOffsetX():int{ return (.x); } private function (){ var _local5:RowTitle;  = new Sprite();  .y = gameModel.getTallestColumnTitle(); addChild( );  = gameModel.getRowTitles(); var _local1:uint = gameModel.getWidestRowTitle(); var _local2:* = 0; var _local3:uint = gameModel.getBlockSize(); var _local4:uint; _local4 = 0; while (_local4 < .length) { _local5 = [_local4]; _local5.x = uint((_local1 - _local5.width)); _local5.y = _local2;  .addChild(_local5); _local2 = (_local2 + _local3); _local4++; }; } private function (_arg1:MouseEvent):void{ var _local2:int = (_arg1.currentTarget.mouseX - 1); var _local3:int = (_arg1.currentTarget.mouseY - 1); var _local4:int = Math2.floor(_local2, 18); var _local5:int = (_local4 + 18); var _local6:int = Math2.floor(_local3, 18); var _local7:int = (_local6 + 18); .graphics.clear(); .graphics.beginFill(0xFFFFFF, 0.2); .graphics.drawRect(0, _local6, _local4, 18); .graphics.endFill(); .graphics.beginFill(0xFFFFFF, 0.2); .graphics.drawRect(_local5, _local6, (.width - _local5), 18); .graphics.endFill(); .graphics.beginFill(0xFFFFFF, 0.2); .graphics.drawRect(_local4, 0, 18, _local6); .graphics.endFill(); .graphics.beginFill(0xFFFFFF, 0.2); .graphics.drawRect(_local4, _local7, 18, (.height - _local7)); .graphics.endFill(); } private function  (_arg1:Event):void{ var _local4:Block; var _local5:Boolean; var _local6:uint; var _local7:Shape; var _local8:Number; var _local9:Block; Tweener.addTween( , {time:1, _autoAlpha:0, transition:"linear"}); Tweener.addTween( , {time:1, _autoAlpha:0, transition:"linear"}); Tweener.addTween( , {time:1, _autoAlpha:0, transition:"linear"}); Tweener.addTween(, {time:1, _autoAlpha:0, transition:"linear"}); var _local2:Number = 0; var _local3:uint; while (_local3 < .length) { _local4 = [_local3]; _local4.removeEventListener(MouseEvent.ROLL_OVER, markBlock); _local4.removeEventListener(MouseEvent.MOUSE_DOWN, markBlock); _local5 = false; _local6 = 0; while (_local6 < .length) { _local9 = [_local6]; if (_local4 == _local9){ _local5 = true; break; }; _local6++; }; _local8 = 0.5; if (_local5){ _local7 = (_local4.width, _local4.height, 0); _local7.alpha = 0; Tweener.addTween(_local7, {time:_local8, delay:_local2, alpha:1, transition:"linear"}); } else { _local7 = (_local4.width, _local4.height, 0xFFFFFF); _local7.alpha = 0; Tweener.addTween(_local7, {time:_local8, delay:_local2, alpha:1, transition:"linear"}); }; Tweener.addTween(_local4, {time:_local8, delay:_local2, alpha:0, transition:"linear"}); _local7.x = _local4.x; _local7.y = _local4.y; .addChild(_local7); _local2 = (_local2 + (3 / .length)); _local3++; }; } public function get gridHeight():int{ return ( .height); } public function get gridOffsetY():int{ return (.y); } private function init(_arg1:Event):void{ gameModel.addEventListener(Model.GRID_COMPLETE,  ); gameModel.addEventListener(Model.OUT_OF_LIVES, ); gameModel.addEventListener(Model.SET_BLOCK_TRUE, setBlockTrue); gameModel.addEventListener(Model.SET_BLOCK_FALSE, setBlockFalse); gameModel.addEventListener(Model.ROW_COMPLETE, rowComplete); gameModel.addEventListener(Model.COLUMN_COMPLETE, columnComplete); gameModel.addEventListener(Model.SET_BLOCK_HOLD, setBlockHold); gameModel.addEventListener(Model.UNSET_BLOCK_HOLD, unsetBlockHold); stage.addEventListener(KeyboardEvent.KEY_DOWN,  ); stage.addEventListener(KeyboardEvent.KEY_UP, ); DisplayShortcuts.init(); ();  = new Array(); } public function  ():void{ var _local9:uint; var _local10:Block;  = gameModel.getGrid();  = new Sprite(); .x = gameModel.getWidestRowTitle(); .y = gameModel.getTallestColumnTitle(); addChild(); var _local1:uint = gameModel.getGridHorizontalCount(); var _local2:uint = gameModel.getGridVerticalCount(); var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint = gameModel.getBlockSize(); var _local7:uint = _local6; var _local8:uint; while (_local8 < _local2) { _local9 = 0; while (_local9 < _local1) { _local10 = Block([_local5]); _local10.x = _local3; _local10.y = _local4; _local10.addEventListener(MouseEvent.ROLL_OVER, markBlock, false, 0, true); _local10.addEventListener(MouseEvent.MOUSE_DOWN, markBlock, false, 0, true); _local10.mouseChildren = false; .addChild(_local10); _local3 = (_local3 + _local6); _local5++; _local9++; }; _local3 = 0; _local4 = (_local4 + _local7); _local8++; }; } private function ():void{ var _local1:*; var _local2:int = Math.ceil(Math2.random(0, 4)); if (_local2 == 1){ _local1 = new GridTransitionIn_1(this, ,  , ,  , ); } else { if (_local2 == 2){ _local1 = new GridTransitionIn_2(this, ,  , ,  , ); } else { if (_local2 == 3){ _local1 = new GridTransitionIn_3(this, ,  , ,  , ); } else { _local1 = new GridTransitionIn_4(this, ,  , ,  , ); }; }; }; } private function ():void{ var _local1:uint = gameModel.getGridHorizontalCount(); var _local2:uint = gameModel.getGridVerticalCount(); var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint = gameModel.getBlockSize(); var _local7:uint = _local6;  = new Sprite();  .x = gameModel.getWidestRowTitle();  .y = gameModel.getTallestColumnTitle();  .mouseEnabled = false; addChild( ); var _local8:uint = gameModel.getLineColor();  .graphics.lineStyle(1, _local8, 1);  .graphics.moveTo(_local3, _local4);  .graphics.lineTo((_local3 + (_local1 * _local6)), _local4);  .graphics.lineTo((_local3 + (_local1 * _local6)), (_local4 + (_local2 * _local7)));  .graphics.lineTo(_local3, (_local4 + (_local2 * _local7)));  .graphics.lineTo(_local3, _local4); var _local9:uint = (_local3 + (_local6 * 5)); var _local10:uint; var _local11:uint; while (_local11 <= _local1) { if (_local10 == 5){  .graphics.moveTo(_local9, _local4);  .graphics.lineTo(_local9, (_local4 + (_local2 * _local7))); _local9 = (_local9 + (_local6 * 5)); _local10 = 0; }; _local10++; _local11++; }; var _local12:uint = (_local4 + (_local7 * 5)); var _local13:uint; var _local14:uint; while (_local14 <= _local2) { if (_local13 == 5){  .graphics.moveTo(_local3, _local12);  .graphics.lineTo((_local3 + (_local1 * _local6)), _local12); _local12 = (_local12 + (_local7 * 5)); _local13 = 0; }; _local13++; _local14++; }; } private function (_arg1:uint, _arg2:uint, _arg3:uint):Shape{ var _local4:Shape = new Shape(); _local4.graphics.beginFill(_arg3, 1); _local4.graphics.drawRect(0, 0, _arg1, _arg2); _local4.graphics.endFill(); return (_local4); } private function (_arg1:Event):void{ var _local4:Block; var _local2:uint; while (_local2 < .length) { _local4 = Block([_local2]); _local4.removeEventListener(MouseEvent.ROLL_OVER, markBlock); _local4.removeEventListener(MouseEvent.MOUSE_DOWN, markBlock); _local2++; }; stage.removeEventListener(KeyboardEvent.KEY_DOWN,  ); stage.removeEventListener(KeyboardEvent.KEY_UP, ); var _local3:* = new GridTransitionOut_1(this, ,  , ,  , ); } private function (){ var _local5:ColumnTitle;  = new Sprite();  .x = gameModel.getWidestRowTitle(); addChild( );  = gameModel.getColumnTitles(); var _local1:uint = gameModel.getTallestColumnTitle(); var _local2:* = 0; var _local3:uint = gameModel.getBlockSize(); var _local4:uint; _local4 = 0; while (_local4 <  .length) { _local5 = ColumnTitle( [_local4]); _local5.x = _local2; _local5.y = (_local1 - _local5.height);  .addChild(_local5); _local2 = (_local2 + _local3); _local4++; }; } private function setBlockFalse(_arg1:Event):void{ var _local2:Block = gameModel.getLastClickedBlock(); _local2.markFalse(); _local2.removeEventListener(MouseEvent.ROLL_OVER, markBlock); _local2.removeEventListener(MouseEvent.MOUSE_DOWN, markBlock); .setChildIndex(_local2, (.numChildren - 1)); } private function ():void{  = new Sprite(); .x = .x; .y = .y; .mouseEnabled = false; addChild(); .addEventListener(MouseEvent.MOUSE_MOVE, ); .addEventListener(MouseEvent.ROLL_OUT, ); } private function (_arg1:Event):void{ gameModel.removeEventListener(Model.GRID_COMPLETE,  ); gameModel.removeEventListener(Model.OUT_OF_LIVES, ); gameModel.removeEventListener(Model.SET_BLOCK_TRUE, setBlockTrue); gameModel.removeEventListener(Model.SET_BLOCK_FALSE, setBlockFalse); gameModel.removeEventListener(Model.ROW_COMPLETE, rowComplete); gameModel.removeEventListener(Model.COLUMN_COMPLETE, columnComplete); gameModel.removeEventListener(Model.SET_BLOCK_HOLD, setBlockHold); gameModel.removeEventListener(Model.UNSET_BLOCK_HOLD, unsetBlockHold); stage.removeEventListener(KeyboardEvent.KEY_DOWN,  ); stage.removeEventListener(KeyboardEvent.KEY_UP, ); .removeEventListener(MouseEvent.MOUSE_MOVE, ); .removeEventListener(MouseEvent.ROLL_OUT, ); removeChild( ); removeChild( ); removeChild(); removeChild( );  = null;  = null;  = null;  = null; } private function columnComplete(_arg1:Event):void{ var _local4:ColumnTitle; var _local2:uint = gameModel.getLastCompleteColumnNumber(); var _local3:uint; while (_local3 <  .length) { _local4 =  [_local3]; if (_local4.getColumnNumber() == _local2){ _local4.markComplete(); break; }; _local3++; }; } private function setBlockHold(_arg1:Event):void{ var _local2:Block = gameModel.getLastClickedBlock(); _local2.setHold(); } private function  (_arg1:KeyboardEvent){ if ((((((_arg1.keyCode == Keyboard.SHIFT)) || ((_arg1.keyCode == Keyboard.SPACE)))) || ((_arg1.keyCode == 88)))){  .setDrawMode_Hold(); }; } public function get gridWidth():int{ return ( .width); } private function setBlockTrue(_arg1:Event):void{ var _local2:Block = gameModel.getLastClickedBlock(); _local2.markTrue(); _local2.removeEventListener(MouseEvent.ROLL_OVER, markBlock); _local2.removeEventListener(MouseEvent.MOUSE_DOWN, markBlock); .setChildIndex(_local2, (.numChildren - 1)); .push(_local2); } private function (_arg1:KeyboardEvent){ if ((((((_arg1.keyCode == Keyboard.SHIFT)) || ((_arg1.keyCode == Keyboard.SPACE)))) || ((_arg1.keyCode == 88)))){  .setDrawMode_Draw(); }; } private function (_arg1:MouseEvent):void{ .graphics.clear(); } } }//package view
Section 62
//HowToContent (view.HowToContent) package view { import flash.display.*; import flash.events.*; import ui.*; import text.*; public class HowToContent extends Sprite { private var  :ShinyButton; private var  :SecondaryText; private var :ShinyButton; private var :MovieClip; private var :Array; private var :int;// = -1 private var :Array; public function HowToContent(){ var _local1:ShinyButton = new ShinyButton(350, 350, 8, ColourTheme.colour4_light, ColourTheme.colour4_dark); addChild(_local1); addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } private function  (_arg1:Event):void{ if (( - 1) >= 0){ if ( !== null){ removeChild(); }; --;  = []; .x = int(((350 - 90) / 2)); .y = 60; addChild(); .gotoAndPlay(1);  .htmlText = []; if ( == 0){  .visible = false; }; if ( < (.length - 1)){ .visible = true; }; }; } private function  ():void{  = [new TutorialGrid_0(), new TutorialGrid_1(), new TutorialGrid_2(), new TutorialGrid_3(), new TutorialGrid_4(), new TutorialGrid_5(), new TutorialGrid_6(), new TutorialGrid_7(), new TutorialGrid_8()];  = ["Welcome to Picross Forever!\n\nPicross Forever is a puzzle game where you fill in blocks in a grid to find a hidden picture.", "Each row and column has a series of numbers which are the clue to how many consecutive blocks must be filled in on that line.", "As this row's clue is 5, and the puzzle is only 5 blocks wide the entire row can be filled in.\n\nBlocks can be filled in by clicking each block individually with your mouse or by holding\nyour mouse button and dragging across multiple blocks.", "These two columns each have two number clues,\n3 & 1. This tells us there are 3 consecutive blocks followed by 1 single block.\n\nSince the single block is already filled the remaining 3 blocks can only go in the\nplaces shown.", "As you successfully find all blocks on a line the number clues will dim to indicate there are no more blocks needed for that row or column.", "An X can be placed on any unmarked block in the puzzle. This is to remind you that the block should not be filled.\n\nTo place an X, press and hold the SHIFT key while clicking on a block. To remove an X, click the block without the SHIFT key pressed.", "You are allowed a maximum of 5 mistakes\nper puzzle.\n\nIf 5 mistakes are made you will fail the puzzle and have to start over.", "Once you have successfully completed a puzzle the underlying picture will be revealed.\n\nThe game will automatically save puzzles you have completed. Saves are specific to the website you are playing the game on.", "Thank you for watching this short tutorial.\n\nI hope you enjoy playing Picross Forever!"];  = new SecondaryText(12);  .wordWrap = true;  .textColor = ColourTheme.colour2_dark;  .width = 310;  .x = 20;  .y = 180; addChild( ); } private function init(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, init);  (); (); (_arg1); } private function ():void{  = new ShinyButton(30, 30, 6, ColourTheme.colour5_light, ColourTheme.colour5_dark); .addEventListener(MouseEvent.MOUSE_DOWN, , false, 0, true); .buttonMode = true; var _local1:MovieClip = new tutRightArrow(); .addChild(_local1); addChild(); .x = ((this.width - .width) - 20); .y = ((this.height - .height) - 20);  = new ShinyButton(30, 30, 6, ColourTheme.colour5_light, ColourTheme.colour5_dark);  .addEventListener(MouseEvent.MOUSE_DOWN,  , false, 0, true);  .buttonMode = true; var _local2:MovieClip = new tutLeftArrow();  .addChild(_local2); addChild( );  .x = 20;  .y = ((this.height - .height) - 20);  .visible = false; } private function (_arg1:Event):void{ if (( + 1) < .length){ if ( !== null){ removeChild(); }; ++;  = []; .x = int(((350 - 90) / 2)); .y = 60; addChild(); .gotoAndPlay(1);  .htmlText = []; if ( == (.length - 1)){ .visible = false; }; if ( > 0){  .visible = true; }; }; } } }//package view
Section 63
//HowToPlay (view.HowToPlay) package view { import model.*; import control.*; import ui.*; import flash.text.*; import text.*; public class HowToPlay extends MenuPanel { private var  :HowToContent; public function HowToPlay(_arg1:Model, _arg2:MenuControl){ baseSmallWidth = 160; baseSmallHeight = 50; baseLargeWidth = 580; baseLargeHeight = 580;   = ColourTheme.colour2_light;   = ColourTheme.colour2_light; super(_arg1, _arg2); (); } override protected function onOpenComplete():void{  = new HowToContent();  .x = Math.round((((baseLargeWidth + 20) -  .width) / 2));  .y = 150; largeContent.addChild( ); } private function ():void{ var _local1:PrimaryText = new PrimaryText(16, "How To Play"); _local1.x = Math.round((((baseSmallWidth - _local1.textWidth) / 2) + 10)); _local1.y = 16; smallContent.addChild(_local1); var _local2:PrimaryText = new PrimaryText(12, "(Recommended)"); _local2.x = Math.round((((baseSmallWidth - _local2.textWidth) / 2) + 10)); _local2.y = 36; smallContent.addChild(_local2); var _local3:TextField = new PrimaryText(40, "How To Play"); _local3.x = 45; _local3.y = 65; largeContent.addChild(_local3); } override protected function onCloseComplete():void{ largeContent.removeChild( ); super.onCloseComplete(); } } }//package view
Section 64
//LivesDisplay (view.LivesDisplay) package view { import model.*; import flash.display.*; import flash.events.*; public class LivesDisplay extends Sprite { private var :Array; private var gameModel:Model; public function LivesDisplay(_arg1:Model){ var _local4:LifeIcon_Unchecked; super(); this.gameModel = _arg1;  = new Array(); var _local2:uint; var _local3:uint; while (_local3 < 5) { _local4 = new LifeIcon_Unchecked(); _local4.x = _local2; addChild(_local4); .push(_local4); _local2 = (_local2 + (_local4.width + 5)); _local3++; }; addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } private function init(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, init); gameModel.addEventListener(Model.SET_BLOCK_FALSE, ); } private function (_arg1:Event){ var _local2:*; if (.length > 0){ _local2 = new LifeIcon_Checked(); _local2.x = [0].x; _local2.y = [0].y; addChild(_local2); removeChild([0]); .splice(0, 1); } else { gameModel.removeEventListener(Model.SET_BLOCK_FALSE, ); }; } } }//package view
Section 65
//MainMenu (view.MainMenu) package view { import model.*; import flash.display.*; import flash.events.*; import control.*; import ui.*; import flash.net.*; public class MainMenu extends MenuPanel { public function MainMenu(_arg1:Model, _arg2:MenuControl){ baseSmallWidth = 580; baseSmallHeight = 580; baseLargeWidth = 580; baseLargeHeight = 580;   = ColourTheme.colour3_light;   = ColourTheme.colour3_dark; super(_arg1, _arg2); buttonMode = false; var _local3:Bitmap = new Bitmap(new Logo(317, 188)); _local3.x = (((baseLargeWidth - _local3.width) / 2) + 10); _local3.y = 110; largeContent.addChild(_local3); var _local4:CategoryChooser = new CategoryChooser(_arg1, _arg2); _local4.x = Math.round(((baseLargeWidth - _local4.width) / 2)); _local4.y = (baseLargeHeight - 230); addChildPanel(_local4); var _local5:HowToPlay = new HowToPlay(_arg1, _arg2); _local5.x = Math.round(((baseLargeWidth - _local5.width) / 2)); _local5.y = ((_local4.y + _local4.height) + 5); addChildPanel(_local5); var _local6:Credits = new Credits(_arg1, _arg2); _local6.x = Math.round(((baseLargeWidth - _local6.width) / 2)); _local6.y = ((_local5.y + _local5.height) + 5); addChildPanel(_local6); var _local7:Bitmap = new Bitmap(new DevLogo_MainMenu(182, 21)); var _local8:Sprite = new Sprite(); _local8.addChild(_local7); _local8.buttonMode = true; _local8.x = ((baseLargeWidth - _local7.width) - 5); _local8.y = (baseLargeHeight - _local7.height); _local8.addEventListener(MouseEvent.MOUSE_DOWN, ); largeContent.addChild(_local8); } override protected function setupLargeContent(){ largeContent = new Sprite(); mainContainer.addChild(largeContent); var _local1:Shape = new Shape(); _local1.graphics.beginFill(0xFF); _local1.graphics.drawRoundRect(10, 10, baseLargeWidth, baseLargeHeight, 8, 8); _local1.graphics.endFill(); largeContent.mask = _local1; } private function (_arg1:MouseEvent):void{ var _local2:URLVariables = new URLVariables(); _local2.game = "PicrossForever"; var _local3:URLRequest = new URLRequest(GameXML.website); _local3.method = URLRequestMethod.GET; _local3.data = _local2; navigateToURL(_local3, "_blank"); } } }//package view
Section 66
//MenuPanel (view.MenuPanel) package view { import model.*; import flash.display.*; import flash.events.*; import control.*; import caurina.transitions.*; import ui.*; import caurina.transitions.properties.*; public class MenuPanel extends Sprite { protected var CLOSE_SPEED:Number; protected var muteButton_Music:MuteButton; protected var  :uint; protected var baseLargeWidth:uint; protected var  :MusicControl; protected var baseSmallWidth:uint; protected var baseLargeHeight:uint; protected var  :Array; protected var largeContent:Sprite; protected var smallYPos:uint; protected var mainContainer:Sprite; protected var base:ShinyButton; protected var FADE_OUT_SPEED:Number; protected var gameModel:Model; protected var smallXPos:uint; protected var  :uint; protected var smallContent:Sprite; protected var  :Number; protected var OPEN_SPEED:Number; protected var  :Sprite; protected var baseSmallHeight:uint; protected var menuControl:MenuControl; public static const CLOSE:String = "close"; public static const OPEN:String = "open"; public function MenuPanel(_arg1:Model, _arg2:MenuControl){ this.gameModel = _arg1; this.menuControl = _arg2; DisplayShortcuts.init(); FilterShortcuts.init(); ColorShortcuts.init(); OPEN_SPEED = 1.25; CLOSE_SPEED = 1.25; FADE_OUT_SPEED = 0.5;   = 0.5; mainContainer = new Sprite(); addChild(mainContainer);  = new Sprite(); addChild( ); base = new ShinyButton(baseSmallWidth, baseSmallHeight, 8,  ,  ); base.x = 10; base.y = 10; mainContainer.addChild(base);  (); setupLargeContent(); setupMuteButtons(); this.addEventListener(MouseEvent.MOUSE_DOWN, dispatchOpenEvent); buttonMode = true; } protected function  (){ smallContent = new Sprite(); mainContainer.addChild(smallContent); } protected function  (){ this.addEventListener(MouseEvent.MOUSE_DOWN, dispatchOpenEvent); Tweener.addTween(smallContent, {time: , _autoAlpha:1, transition:"linear"}); } protected function dispatchCloseEvent(_arg1:MouseEvent){ dispatchEvent(new Event(MenuPanel.CLOSE)); } protected function dispatchOpenEvent(_arg1:MouseEvent=null){ dispatchEvent(new Event(MenuPanel.OPEN)); } protected function  (){ Tweener.addTween(largeContent, {time:FADE_OUT_SPEED, _autoAlpha:0, transition:"easeOutQuart"}); } override public function get height():Number{ return (base.height); } protected function onOpenComplete():void{ } protected function  (_arg1:Event):void{ largeContent.addEventListener(MouseEvent.MOUSE_DOWN,  , true, 100); largeContent.mouseEnabled = false; largeContent.mouseChildren = false;  .addChild(MenuPanel(_arg1.currentTarget)); MenuPanel(_arg1.currentTarget).open(); Tweener.addTween(mainContainer, {time:FADE_OUT_SPEED, _brightness:-0.75, _Blur_blurX:6, _Blur_blurY:6, _Blur_quality:1, transition:"linear"}); } protected function onCloseComplete():void{ buttonMode = true; } protected function  (_arg1:MouseEvent):void{  .toggleMute(); } protected function  (_arg1:Event):void{ if (gameModel.getMusicVolume() > 0){ muteButton_Music.setIconOn(); } else { muteButton_Music.setIconOff(); }; } protected function addChildPanel(_arg1:MenuPanel){ largeContent.addChild(_arg1); _arg1.addEventListener(MenuPanel.OPEN,  ); _arg1.addEventListener(MenuPanel.CLOSE, closeChildPanel); } public function open():void{ buttonMode = false; this.removeEventListener(MouseEvent.MOUSE_DOWN, dispatchOpenEvent); smallXPos = this.x; smallYPos = this.y;  (); Tweener.addTween(this, {time:OPEN_SPEED, delay:FADE_OUT_SPEED, x:0, y:0, transition:"easeOutQuart"}); Tweener.addTween(base, {time:OPEN_SPEED, delay:FADE_OUT_SPEED, width:baseLargeWidth, height:baseLargeHeight, transition:"easeOutQuart"}); Tweener.addCaller(this, {time:OPEN_SPEED, delay:FADE_OUT_SPEED, onComplete: , count:1}); Tweener.addCaller(this, {time:OPEN_SPEED, delay:FADE_OUT_SPEED, onComplete:onOpenComplete, count:1}); } public function close():void{  (); Tweener.addTween(this, {time:CLOSE_SPEED, delay:FADE_OUT_SPEED, x:smallXPos, y:smallYPos, transition:"easeOutQuart"}); Tweener.addTween(base, {time:CLOSE_SPEED, delay:FADE_OUT_SPEED, width:baseSmallWidth, height:baseSmallHeight, transition:"easeOutQuart"}); Tweener.addCaller(this, {time:CLOSE_SPEED, delay:FADE_OUT_SPEED, onComplete: , count:1}); Tweener.addCaller(this, {time:CLOSE_SPEED, delay:FADE_OUT_SPEED, onComplete:onCloseComplete, count:1}); } override public function get width():Number{ return (base.width); } private function  (_arg1:MouseEvent):void{ _arg1.stopImmediatePropagation(); } protected function  (){ Tweener.addTween(smallContent, {time:FADE_OUT_SPEED, _autoAlpha:0, transition:"easeOutQuart"}); } protected function setupLargeContent(){ largeContent = new Sprite(); largeContent.visible = false; largeContent.alpha = 0; mainContainer.addChild(largeContent); var _local1:* = new CloseButton(); _local1.x = (baseLargeWidth - _local1.width); _local1.y = 20; _local1.buttonMode = true; largeContent.addChild(_local1); _local1.addEventListener(MouseEvent.MOUSE_DOWN, dispatchCloseEvent); } protected function  (){ Tweener.addTween(largeContent, {time: , _autoAlpha:1, transition:"linear"}); } protected function setupMuteButtons():void{  = MusicControl.getInstance(gameModel); muteButton_Music = new MuteButton_Music(); muteButton_Music.x = 20; muteButton_Music.y = (baseLargeHeight - muteButton_Music.height); muteButton_Music.buttonMode = true; if (gameModel.getMusicVolume() <= 0){ muteButton_Music.setIconOff(); }; largeContent.addChild(muteButton_Music); muteButton_Music.addEventListener(MouseEvent.MOUSE_DOWN,  ); gameModel.addEventListener(Model.MUSIC_VOLUME_CHANGE,  ); } protected function closeChildPanel(_arg1:Event):void{ var panel:MenuPanel; var reparentPanel:Function; var e = _arg1; reparentPanel = function ():void{ largeContent.removeEventListener(MouseEvent.MOUSE_DOWN,  , true); largeContent.mouseEnabled = true; largeContent.mouseChildren = true; largeContent.addChild(panel); }; panel = MenuPanel(e.currentTarget); panel.close(); Tweener.addTween(mainContainer, {time: , delay:(FADE_OUT_SPEED + CLOSE_SPEED), _brightness:0, _Blur_blurX:0, _Blur_blurY:0, _Blur_quality:1, transition:"linear", onComplete:reparentPanel}); } } }//package view
Section 67
//_ProgressBar (_ProgressBar) package { import flash.display.*; public dynamic class _ProgressBar extends MovieClip { public var bar:MovieClip; } }//package
Section 68
//_SND_Animals_Block_Negative (_SND_Animals_Block_Negative) package { import flash.media.*; public dynamic class _SND_Animals_Block_Negative extends Sound { } }//package
Section 69
//_SND_Animals_Block_Positive (_SND_Animals_Block_Positive) package { import flash.media.*; public dynamic class _SND_Animals_Block_Positive extends Sound { } }//package
Section 70
//_SND_EndGame (_SND_EndGame) package { import flash.media.*; public dynamic class _SND_EndGame extends Sound { } }//package
Section 71
//_SND_Food_Block_Negative (_SND_Food_Block_Negative) package { import flash.media.*; public dynamic class _SND_Food_Block_Negative extends Sound { } }//package
Section 72
//_SND_Food_Block_Positive (_SND_Food_Block_Positive) package { import flash.media.*; public dynamic class _SND_Food_Block_Positive extends Sound { } }//package
Section 73
//_SND_HacsevJazz (_SND_HacsevJazz) package { import flash.media.*; public dynamic class _SND_HacsevJazz extends Sound { } }//package
Section 74
//_SND_Home_Block_Negative (_SND_Home_Block_Negative) package { import flash.media.*; public dynamic class _SND_Home_Block_Negative extends Sound { } }//package
Section 75
//_SND_Home_Block_Positive (_SND_Home_Block_Positive) package { import flash.media.*; public dynamic class _SND_Home_Block_Positive extends Sound { } }//package
Section 76
//_SND_LoungySmoungy (_SND_LoungySmoungy) package { import flash.media.*; public dynamic class _SND_LoungySmoungy extends Sound { } }//package
Section 77
//_SND_OneNightAlone (_SND_OneNightAlone) package { import flash.media.*; public dynamic class _SND_OneNightAlone extends Sound { } }//package
Section 78
//_SND_Sideman_Strut (_SND_Sideman_Strut) package { import flash.media.*; public dynamic class _SND_Sideman_Strut extends Sound { } }//package
Section 79
//_SND_Sport_Block_Negative (_SND_Sport_Block_Negative) package { import flash.media.*; public dynamic class _SND_Sport_Block_Negative extends Sound { } }//package
Section 80
//_SND_Sport_Block_Positive (_SND_Sport_Block_Positive) package { import flash.media.*; public dynamic class _SND_Sport_Block_Positive extends Sound { } }//package
Section 81
//AdDisclaimer (AdDisclaimer) package { import flash.display.*; public dynamic class AdDisclaimer extends MovieClip { } }//package
Section 82
//AdFooter (AdFooter) package { import flash.display.*; public dynamic class AdFooter extends MovieClip { } }//package
Section 83
//AnimalsBlock_Default (AnimalsBlock_Default) package { import flash.display.*; public dynamic class AnimalsBlock_Default extends MovieClip { } }//package
Section 84
//AnimalsBlock_Hold (AnimalsBlock_Hold) package { import flash.display.*; public dynamic class AnimalsBlock_Hold extends MovieClip { } }//package
Section 85
//AnimalsBlock_Negative (AnimalsBlock_Negative) package { import flash.display.*; public dynamic class AnimalsBlock_Negative extends MovieClip { public function AnimalsBlock_Negative(){ addFrameScript(10, frame11); } function frame11(){ stop(); } } }//package
Section 86
//AnimalsBlock_Positive (AnimalsBlock_Positive) package { import flash.display.*; public dynamic class AnimalsBlock_Positive extends MovieClip { public function AnimalsBlock_Positive(){ addFrameScript(10, frame11); } function frame11(){ stop(); } } }//package
Section 87
//Apple_15x15 (Apple_15x15) package { import flash.display.*; public dynamic class Apple_15x15 extends BitmapData { public function Apple_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 88
//Archery_15x15 (Archery_15x15) package { import flash.display.*; public dynamic class Archery_15x15 extends BitmapData { public function Archery_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 89
//AvantGardeLTMedium (AvantGardeLTMedium) package { import flash.text.*; public dynamic class AvantGardeLTMedium extends Font { } }//package
Section 90
//Badminton_10x10 (Badminton_10x10) package { import flash.display.*; public dynamic class Badminton_10x10 extends BitmapData { public function Badminton_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 91
//Basketball_15x15 (Basketball_15x15) package { import flash.display.*; public dynamic class Basketball_15x15 extends BitmapData { public function Basketball_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 92
//Bear_10x10 (Bear_10x10) package { import flash.display.*; public dynamic class Bear_10x10 extends BitmapData { public function Bear_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 93
//Beaver_20x20 (Beaver_20x20) package { import flash.display.*; public dynamic class Beaver_20x20 extends BitmapData { public function Beaver_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 94
//Billiards_10x10 (Billiards_10x10) package { import flash.display.*; public dynamic class Billiards_10x10 extends BitmapData { public function Billiards_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 95
//Blender_15x15 (Blender_15x15) package { import flash.display.*; public dynamic class Blender_15x15 extends BitmapData { public function Blender_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 96
//Bowling_20x20 (Bowling_20x20) package { import flash.display.*; public dynamic class Bowling_20x20 extends BitmapData { public function Bowling_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 97
//Boxing_15x15 (Boxing_15x15) package { import flash.display.*; public dynamic class Boxing_15x15 extends BitmapData { public function Boxing_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 98
//Bread_20x20 (Bread_20x20) package { import flash.display.*; public dynamic class Bread_20x20 extends BitmapData { public function Bread_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 99
//Cake_10x10 (Cake_10x10) package { import flash.display.*; public dynamic class Cake_10x10 extends BitmapData { public function Cake_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 100
//Candy_10x10 (Candy_10x10) package { import flash.display.*; public dynamic class Candy_10x10 extends BitmapData { public function Candy_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 101
//CandyCanes_20x20 (CandyCanes_20x20) package { import flash.display.*; public dynamic class CandyCanes_20x20 extends BitmapData { public function CandyCanes_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 102
//Cat_10x10 (Cat_10x10) package { import flash.display.*; public dynamic class Cat_10x10 extends BitmapData { public function Cat_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 103
//CC_Logo (CC_Logo) package { import flash.display.*; public dynamic class CC_Logo extends BitmapData { public function CC_Logo(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 104
//Cereal_10x10 (Cereal_10x10) package { import flash.display.*; public dynamic class Cereal_10x10 extends BitmapData { public function Cereal_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 105
//Cheese_15x15 (Cheese_15x15) package { import flash.display.*; public dynamic class Cheese_15x15 extends BitmapData { public function Cheese_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 106
//Clock_15x15 (Clock_15x15) package { import flash.display.*; public dynamic class Clock_15x15 extends BitmapData { public function Clock_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 107
//CloseButton_Cross (CloseButton_Cross) package { import flash.display.*; public dynamic class CloseButton_Cross extends MovieClip { } }//package
Section 108
//CoatHanger_10x10 (CoatHanger_10x10) package { import flash.display.*; public dynamic class CoatHanger_10x10 extends BitmapData { public function CoatHanger_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 109
//CookingPot_20x20 (CookingPot_20x20) package { import flash.display.*; public dynamic class CookingPot_20x20 extends BitmapData { public function CookingPot_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 110
//Cow_15x15 (Cow_15x15) package { import flash.display.*; public dynamic class Cow_15x15 extends BitmapData { public function Cow_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 111
//Croquet_10x10 (Croquet_10x10) package { import flash.display.*; public dynamic class Croquet_10x10 extends BitmapData { public function Croquet_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 112
//CrossToolIcon (CrossToolIcon) package { import flash.display.*; public dynamic class CrossToolIcon extends MovieClip { } }//package
Section 113
//Deer_20x20 (Deer_20x20) package { import flash.display.*; public dynamic class Deer_20x20 extends BitmapData { public function Deer_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 114
//DevLogo_MainMenu (DevLogo_MainMenu) package { import flash.display.*; public dynamic class DevLogo_MainMenu extends BitmapData { public function DevLogo_MainMenu(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 115
//Dodgeball_20x20 (Dodgeball_20x20) package { import flash.display.*; public dynamic class Dodgeball_20x20 extends BitmapData { public function Dodgeball_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 116
//Dog_10x10 (Dog_10x10) package { import flash.display.*; public dynamic class Dog_10x10 extends BitmapData { public function Dog_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 117
//Doughnut_15x15 (Doughnut_15x15) package { import flash.display.*; public dynamic class Doughnut_15x15 extends BitmapData { public function Doughnut_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 118
//DrawIcon (DrawIcon) package { import flash.display.*; public dynamic class DrawIcon extends MovieClip { } }//package
Section 119
//Dryer_10x10 (Dryer_10x10) package { import flash.display.*; public dynamic class Dryer_10x10 extends BitmapData { public function Dryer_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 120
//Duck_10x10 (Duck_10x10) package { import flash.display.*; public dynamic class Duck_10x10 extends BitmapData { public function Duck_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 121
//Eagle_20x20 (Eagle_20x20) package { import flash.display.*; public dynamic class Eagle_20x20 extends BitmapData { public function Eagle_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 122
//EurostileLTBold (EurostileLTBold) package { import flash.text.*; public dynamic class EurostileLTBold extends Font { } }//package
Section 123
//FFFUrbanBold (FFFUrbanBold) package { import flash.text.*; public dynamic class FFFUrbanBold extends Font { } }//package
Section 124
//Fish_20x20 (Fish_20x20) package { import flash.display.*; public dynamic class Fish_20x20 extends BitmapData { public function Fish_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 125
//FoodBlock_Default (FoodBlock_Default) package { import flash.display.*; public dynamic class FoodBlock_Default extends MovieClip { } }//package
Section 126
//FoodBlock_Hold (FoodBlock_Hold) package { import flash.display.*; public dynamic class FoodBlock_Hold extends MovieClip { } }//package
Section 127
//FoodBlock_Negative (FoodBlock_Negative) package { import flash.display.*; public dynamic class FoodBlock_Negative extends MovieClip { } }//package
Section 128
//FoodBlock_Positive (FoodBlock_Positive) package { import flash.display.*; public dynamic class FoodBlock_Positive extends MovieClip { } }//package
Section 129
//GameXML (GameXML) package { import flash.events.*; import flash.net.*; import flash.system.*; import flash.errors.*; public class GameXML extends EventDispatcher { public static const RECEIVED:String = "received"; public static const FAILED:String = "failed"; private static var _minAdSeconds:uint = 7; private static var xml:XML; private static var _news:String = (((("Seems there was trouble loading the XML.\nPlease visit <a href='" + GameXML.website) + "' target='_blank'>") + GameXML.website) + "</a> for the latest news."); private static var _website:String = "http://www.ahrooga.com"; private function onError(_arg1:IOErrorEvent):void{ dispatchEvent(new Event(GameXML.FAILED)); } private function (_arg1:Event):void{ xml = new XML(_arg1.target.data); dispatchEvent(new Event(GameXML.RECEIVED)); } public function load(_arg1:String, _arg2:String):void{ var _local3:URLVariables = new URLVariables(); _local3.domain = _arg2; _local3.version = Capabilities.version; _local3.os = Capabilities.os; _local3.language = Capabilities.language; _local3.sandbox = Security.sandboxType; var _local4:URLRequest = new URLRequest(_arg1); _local4.method = URLRequestMethod.POST; _local4.data = _local3; var _local5:URLLoader = new URLLoader(); _local5.addEventListener(Event.COMPLETE, ); _local5.addEventListener(IOErrorEvent.IO_ERROR, onError); _local5.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onError); _local5.load(_local4); } public static function getElement(_arg1:String){ var _local2:String = xml.game[_arg1].attribute("type").toString().toLowerCase(); var _local3:* = xml.game[_arg1].toString(); if (_local2 == "string"){ } else { if (_local2 == "boolean"){ if (_local3.toLowerCase() == "true"){ _local3 = Boolean(true); } else { if (_local3.toLowerCase() == "false"){ _local3 = Boolean(false); } else { _local3 = Boolean(int(_local3)); }; }; } else { if (_local2 == "number"){ _local3 = Number(_local3); } else { if (_local2 == "int"){ _local3 = int(_local3); } else { if (_local2 == "uint"){ _local3 = uint(_local3); } else { if (_local2 == "array"){ _local3 = _local3.split("|"); }; }; }; }; }; }; return (_local3); } public static function get minAdSeconds():uint{ var _local1:uint; if (xml !== null){ if (GameXML.getElement("minAdSeconds") !== ""){ _local1 = GameXML.getElement("minAdSeconds"); } else { _local1 = _minAdSeconds; }; } else { _local1 = _minAdSeconds; }; return (_local1); } public static function get news():String{ var _local1:String; if (xml !== null){ if (GameXML.getElement("news") !== ""){ _local1 = GameXML.getElement("news"); } else { _local1 = _news; }; } else { _local1 = _news; }; return (_local1); } public static function get website():String{ var _local1:String; if (xml !== null){ if (GameXML.getElement("website") !== ""){ _local1 = GameXML.getElement("website"); } else { _local1 = _website; }; } else { _local1 = _website; }; return (_local1); } } }//package
Section 130
//Giraffe_20x20 (Giraffe_20x20) package { import flash.display.*; public dynamic class Giraffe_20x20 extends BitmapData { public function Giraffe_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 131
//Golf_15x15 (Golf_15x15) package { import flash.display.*; public dynamic class Golf_15x15 extends BitmapData { public function Golf_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 132
//Hippopotamus_15x15 (Hippopotamus_15x15) package { import flash.display.*; public dynamic class Hippopotamus_15x15 extends BitmapData { public function Hippopotamus_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 133
//Hockey_20x20 (Hockey_20x20) package { import flash.display.*; public dynamic class Hockey_20x20 extends BitmapData { public function Hockey_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 134
//HomeBlock_Default (HomeBlock_Default) package { import flash.display.*; public dynamic class HomeBlock_Default extends MovieClip { } }//package
Section 135
//HomeBlock_Hold (HomeBlock_Hold) package { import flash.display.*; public dynamic class HomeBlock_Hold extends MovieClip { } }//package
Section 136
//HomeBlock_Negative (HomeBlock_Negative) package { import flash.display.*; public dynamic class HomeBlock_Negative extends MovieClip { public function HomeBlock_Negative(){ addFrameScript(11, frame12); } function frame12(){ stop(); } } }//package
Section 137
//HomeBlock_Positive (HomeBlock_Positive) package { import flash.display.*; public dynamic class HomeBlock_Positive extends MovieClip { public function HomeBlock_Positive(){ addFrameScript(11, frame12); } function frame12(){ stop(); } } }//package
Section 138
//IceSkating_20x20 (IceSkating_20x20) package { import flash.display.*; public dynamic class IceSkating_20x20 extends BitmapData { public function IceSkating_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 139
//Lamp_15x15 (Lamp_15x15) package { import flash.display.*; public dynamic class Lamp_15x15 extends BitmapData { public function Lamp_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 140
//LifeIcon_Checked (LifeIcon_Checked) package { import flash.display.*; public dynamic class LifeIcon_Checked extends MovieClip { public function LifeIcon_Checked(){ addFrameScript(19, ); } function (){ stop(); } } }//package
Section 141
//LifeIcon_Unchecked (LifeIcon_Unchecked) package { import flash.display.*; public dynamic class LifeIcon_Unchecked extends MovieClip { } }//package
Section 142
//Logo (Logo) package { import flash.display.*; public dynamic class Logo extends BitmapData { public function Logo(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 143
//Main (Main) package { import model.*; import flash.display.*; import flash.events.*; import control.*; import view.*; import ui.*; import ahrooga.*; import flash.system.*; public dynamic class Main extends MovieClip { private var :String;// = "kongregate.com" private var  :Boolean;// = false private var  :Boolean;// = false private var base:ShinyButton; private var  :String;// = "chat.kongregate.com" private var :Preloader; private var  :String; public function Main():void{ var _local1:GameXML; super(); stop(); stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; stage.quality = StageQuality.BEST; Security.allowDomain("*");  = (); if ((((( ) && (((( ==  )) || (( ==  )))))) || (!( )))){ _local1 = new GameXML(); _local1.addEventListener(GameXML.RECEIVED, , false, 0, true); _local1.load("http://www.ahrooga.com/games/pf/pf.php",  ); base = new ShinyButton(580, 580, 8, ColourTheme.colour3_light, ColourTheme.colour3_dark); base.x = 10; base.y = 10; addChildAt(base, 0);  = new Preloader(); .addEventListener(Preloader.START_GAME, startGame, false, 0, true); addChild(); }; } public function ():String{ var _local1:int = (stage.loaderInfo.loaderURL.indexOf("://") + 3); var _local2:int = stage.loaderInfo.loaderURL.indexOf("/", _local1); var _local3:String = stage.loaderInfo.loaderURL.substring(_local1, _local2); if (_local3 == ""){ _local3 = "local"; }; return (_local3); } public function startGame(_arg1:Event=null):void{ var _local2:Model; var _local3:MenuControl; var _local4:MainMenu; if (! ){ removeChild(base);  = true; gotoAndStop("_init"); _local2 = new Model(); _local3 = new MenuControl(_local2); _local4 = new MainMenu(_local2, _local3); addChild(_local4); }; } private function (_arg1:Event):void{ var options:Object; var e = _arg1; trace("xml loaded"); e.currentTarget.removeEventListener(GameXML.RECEIVED, ); var adDisabledDomains:Array = GameXML.getElement("adDisabledDomains"); var canLoadAd:Boolean; var i:int; while (i < adDisabledDomains.length) { if ( == adDisabledDomains[i]){ canLoadAd = false; }; i = (i + 1); }; if (((!( )) && (canLoadAd))){ if (GameXML.getElement("useMochiAds")){ .removeEventListener(Preloader.START_GAME, startGame); removeChild();  = null; options = {clip:root, id:"712de333607d603b", res:"600x600", background:16777161, color:16719677, outline:15338304, no_bg:true, ad_finished:function (){ this.clip.startGame(); }, ad_failed:function (){ this.clip.startGame(); }, ad_skipped:function (){ this.clip.startGame(); }}; MochiAd.showPreGameAd(options); } else { .loadAd(GameXML.getElement("adPath"), GameXML.getElement("adLink"), GameXML.getElement("showAdvertiseHere"), GameXML.getElement("advertiseHereLink"), GameXML.minAdSeconds,  ); }; }; } } }//package
Section 144
//MochiAd (MochiAd) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.7"); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = 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); }; var sendHostProgress:Boolean; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; var idx:Number = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var clip:Object; var 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 (!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; var mc:MovieClip = 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; }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); 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.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; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = 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; 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; bar.y = (h - 20); }; var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local11:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local7:Number = ((100 * _local6) / _local5); var _local8:Number = ((100 * _local3) / chk.ad_msec); var _local9:Object = this._mochiad_bar._inside; var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); options.ad_progress(_local10); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7}); if (_local7 == 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local11 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.showInterLevelAd(_arg1); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var mc = _arg1; var f:Function = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 145
//Monkey_15x15 (Monkey_15x15) package { import flash.display.*; public dynamic class Monkey_15x15 extends BitmapData { public function Monkey_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 146
//Muffin_20x20 (Muffin_20x20) package { import flash.display.*; public dynamic class Muffin_20x20 extends BitmapData { public function Muffin_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 147
//MusicIcon_Off (MusicIcon_Off) package { import flash.display.*; public dynamic class MusicIcon_Off extends MovieClip { } }//package
Section 148
//MusicIcon_On (MusicIcon_On) package { import flash.display.*; public dynamic class MusicIcon_On extends MovieClip { } }//package
Section 149
//Oven_10x10 (Oven_10x10) package { import flash.display.*; public dynamic class Oven_10x10 extends BitmapData { public function Oven_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 150
//Pretzel_10x10 (Pretzel_10x10) package { import flash.display.*; public dynamic class Pretzel_10x10 extends BitmapData { public function Pretzel_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 151
//QuestionMark (QuestionMark) package { import flash.display.*; public dynamic class QuestionMark extends MovieClip { } }//package
Section 152
//Sailing_10x10 (Sailing_10x10) package { import flash.display.*; public dynamic class Sailing_10x10 extends BitmapData { public function Sailing_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 153
//SoundIcon_Off (SoundIcon_Off) package { import flash.display.*; public dynamic class SoundIcon_Off extends MovieClip { } }//package
Section 154
//SoundIcon_On (SoundIcon_On) package { import flash.display.*; public dynamic class SoundIcon_On extends MovieClip { } }//package
Section 155
//SportBlock_Default (SportBlock_Default) package { import flash.display.*; public dynamic class SportBlock_Default extends MovieClip { } }//package
Section 156
//SportBlock_Hold (SportBlock_Hold) package { import flash.display.*; public dynamic class SportBlock_Hold extends MovieClip { } }//package
Section 157
//SportBlock_Negative (SportBlock_Negative) package { import flash.display.*; public dynamic class SportBlock_Negative extends MovieClip { public function SportBlock_Negative(){ addFrameScript(13, frame14); } function frame14(){ stop(); } } }//package
Section 158
//SportBlock_Positive (SportBlock_Positive) package { import flash.display.*; public dynamic class SportBlock_Positive extends MovieClip { public function SportBlock_Positive(){ addFrameScript(13, frame14); } function frame14(){ stop(); } } }//package
Section 159
//Test_CrossOut (Test_CrossOut) package { import flash.display.*; public dynamic class Test_CrossOut extends MovieClip { } }//package
Section 160
//Toaster_15x15 (Toaster_15x15) package { import flash.display.*; public dynamic class Toaster_15x15 extends BitmapData { public function Toaster_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 161
//ToiletPaper_20x20 (ToiletPaper_20x20) package { import flash.display.*; public dynamic class ToiletPaper_20x20 extends BitmapData { public function ToiletPaper_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 162
//tutLeftArrow (tutLeftArrow) package { import flash.display.*; public dynamic class tutLeftArrow extends MovieClip { } }//package
Section 163
//TutorialGrid_0 (TutorialGrid_0) package { import flash.display.*; public dynamic class TutorialGrid_0 extends MovieClip { } }//package
Section 164
//TutorialGrid_1 (TutorialGrid_1) package { import flash.display.*; public dynamic class TutorialGrid_1 extends MovieClip { } }//package
Section 165
//TutorialGrid_2 (TutorialGrid_2) package { import flash.display.*; public dynamic class TutorialGrid_2 extends MovieClip { } }//package
Section 166
//TutorialGrid_3 (TutorialGrid_3) package { import flash.display.*; public dynamic class TutorialGrid_3 extends MovieClip { } }//package
Section 167
//TutorialGrid_4 (TutorialGrid_4) package { import flash.display.*; public dynamic class TutorialGrid_4 extends MovieClip { } }//package
Section 168
//TutorialGrid_5 (TutorialGrid_5) package { import flash.display.*; public dynamic class TutorialGrid_5 extends MovieClip { } }//package
Section 169
//TutorialGrid_6 (TutorialGrid_6) package { import flash.display.*; public dynamic class TutorialGrid_6 extends MovieClip { } }//package
Section 170
//TutorialGrid_7 (TutorialGrid_7) package { import flash.display.*; public dynamic class TutorialGrid_7 extends MovieClip { } }//package
Section 171
//TutorialGrid_8 (TutorialGrid_8) package { import flash.display.*; public dynamic class TutorialGrid_8 extends MovieClip { } }//package
Section 172
//tutRightArrow (tutRightArrow) package { import flash.display.*; public dynamic class tutRightArrow extends MovieClip { } }//package
Section 173
//TV_20x20 (TV_20x20) package { import flash.display.*; public dynamic class TV_20x20 extends BitmapData { public function TV_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 174
//Walrus_15x15 (Walrus_15x15) package { import flash.display.*; public dynamic class Walrus_15x15 extends BitmapData { public function Walrus_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 175
//WastePaperBasket_20x20 (WastePaperBasket_20x20) package { import flash.display.*; public dynamic class WastePaperBasket_20x20 extends BitmapData { public function WastePaperBasket_20x20(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 176
//Whisky_15x15 (Whisky_15x15) package { import flash.display.*; public dynamic class Whisky_15x15 extends BitmapData { public function Whisky_15x15(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 177
//WineGlass_10x10 (WineGlass_10x10) package { import flash.display.*; public dynamic class WineGlass_10x10 extends BitmapData { public function WineGlass_10x10(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package

Library Items

Symbol 1 Font {FFFUrbanBold}
Symbol 2 Font {EurostileLTBold}
Symbol 3 Font {AvantGardeLTMedium}Used by:15
Symbol 4 FontUsed by:5 8
Symbol 5 TextUses:4Used by:6
Symbol 6 MovieClip {AdDisclaimer}Uses:5
Symbol 7 GraphicUsed by:9
Symbol 8 TextUses:4Used by:9
Symbol 9 MovieClip {AdFooter}Uses:7 8
Symbol 10 Bitmap {Logo}Used by:Timeline
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClip {_ProgressBar}Uses:11 13Used by:Timeline
Symbol 15 TextUses:3Used by:Timeline
Symbol 16 Bitmap {Badminton_10x10}Used by:Timeline
Symbol 17 Bitmap {Billiards_10x10}Used by:Timeline
Symbol 18 Bitmap {Croquet_10x10}Used by:Timeline
Symbol 19 Bitmap {Sailing_10x10}Used by:Timeline
Symbol 20 Bitmap {Archery_15x15}Used by:Timeline
Symbol 21 Bitmap {Basketball_15x15}Used by:Timeline
Symbol 22 Bitmap {Boxing_15x15}Used by:Timeline
Symbol 23 Bitmap {Golf_15x15}Used by:Timeline
Symbol 24 Bitmap {Bowling_20x20}Used by:Timeline
Symbol 25 Bitmap {Dodgeball_20x20}Used by:Timeline
Symbol 26 Bitmap {Hockey_20x20}Used by:Timeline
Symbol 27 Bitmap {IceSkating_20x20}Used by:Timeline
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClip {SportBlock_Default}Uses:28Used by:36 39 40  Timeline
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:36 40
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:36 40 79 93 111 113 184
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:36 40
Symbol 36 MovieClip {SportBlock_Positive}Uses:29 31 33 35Used by:Timeline
Symbol 37 GraphicUsed by:38
Symbol 38 MovieClip {Test_CrossOut}Uses:37Used by:39 57 93 115
Symbol 39 MovieClip {SportBlock_Hold}Uses:29 38Used by:Timeline
Symbol 40 MovieClip {SportBlock_Negative}Uses:29 31 33 35Used by:Timeline
Symbol 41 Sound {_SND_Sport_Block_Positive}Used by:Timeline
Symbol 42 Sound {_SND_Sport_Block_Negative}Used by:Timeline
Symbol 43 Bitmap {Dog_10x10}Used by:Timeline
Symbol 44 Bitmap {Cat_10x10}Used by:Timeline
Symbol 45 Bitmap {Walrus_15x15}Used by:Timeline
Symbol 46 Bitmap {Cow_15x15}Used by:Timeline
Symbol 47 Bitmap {Monkey_15x15}Used by:Timeline
Symbol 48 Bitmap {Hippopotamus_15x15}Used by:Timeline
Symbol 49 Bitmap {Beaver_20x20}Used by:Timeline
Symbol 50 Bitmap {Eagle_20x20}Used by:Timeline
Symbol 51 Bitmap {Giraffe_20x20}Used by:Timeline
Symbol 52 Bitmap {Deer_20x20}Used by:Timeline
Symbol 53 Bitmap {Bear_10x10}Used by:Timeline
Symbol 54 Bitmap {Duck_10x10}Used by:Timeline
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClip {AnimalsBlock_Default}Uses:55Used by:57 60 63 143 152 153 156 157 158 163  Timeline
Symbol 57 MovieClip {AnimalsBlock_Hold}Uses:56 38Used by:157 158 163  Timeline
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:60 158 163
Symbol 60 MovieClip {AnimalsBlock_Negative}Uses:59 56Used by:Timeline
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:63 153 156 157 158 163
Symbol 63 MovieClip {AnimalsBlock_Positive}Uses:62 56Used by:152 153  Timeline
Symbol 64 Sound {_SND_Animals_Block_Negative}Used by:Timeline
Symbol 65 Sound {_SND_Animals_Block_Positive}Used by:Timeline
Symbol 66 Bitmap {Apple_15x15}Used by:Timeline
Symbol 67 Bitmap {Fish_20x20}Used by:Timeline
Symbol 68 Bitmap {Bread_20x20}Used by:Timeline
Symbol 69 Bitmap {CandyCanes_20x20}Used by:Timeline
Symbol 70 Bitmap {Doughnut_15x15}Used by:Timeline
Symbol 71 Bitmap {Pretzel_10x10}Used by:Timeline
Symbol 72 Bitmap {Cake_10x10}Used by:Timeline
Symbol 73 Bitmap {Cereal_10x10}Used by:Timeline
Symbol 74 Bitmap {Muffin_20x20}Used by:Timeline
Symbol 75 Bitmap {Cheese_15x15}Used by:Timeline
Symbol 76 Bitmap {Whisky_15x15}Used by:Timeline
Symbol 77 Bitmap {Candy_10x10}Used by:Timeline
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClip {FoodBlock_Default}Uses:78 33Used by:Timeline
Symbol 80 GraphicUsed by:89
Symbol 81 GraphicUsed by:89 91
Symbol 82 GraphicUsed by:89 91
Symbol 83 GraphicUsed by:89 91
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:88
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:86Used by:88
Symbol 88 MovieClip {Picross_Final_v1_fla.CrumbEffect_19}Uses:85 87Used by:89 91
Symbol 89 MovieClip {FoodBlock_Positive}Uses:80 81 82 83 88Used by:Timeline
Symbol 90 GraphicUsed by:91
Symbol 91 MovieClip {FoodBlock_Negative}Uses:90 81 82 83 88Used by:Timeline
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClip {FoodBlock_Hold}Uses:92 38 33Used by:Timeline
Symbol 94 Sound {_SND_Food_Block_Positive}Used by:Timeline
Symbol 95 Sound {_SND_Food_Block_Negative}Used by:Timeline
Symbol 96 Bitmap {Blender_15x15}Used by:Timeline
Symbol 97 Bitmap {Clock_15x15}Used by:Timeline
Symbol 98 Bitmap {Lamp_15x15}Used by:Timeline
Symbol 99 Bitmap {Toaster_15x15}Used by:Timeline
Symbol 100 Bitmap {CoatHanger_10x10}Used by:Timeline
Symbol 101 Bitmap {Dryer_10x10}Used by:Timeline
Symbol 102 Bitmap {Oven_10x10}Used by:Timeline
Symbol 103 Bitmap {WineGlass_10x10}Used by:Timeline
Symbol 104 Bitmap {CookingPot_20x20}Used by:Timeline
Symbol 105 Bitmap {TV_20x20}Used by:Timeline
Symbol 106 Bitmap {WastePaperBasket_20x20}Used by:Timeline
Symbol 107 Bitmap {ToiletPaper_20x20}Used by:Timeline
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClip {HomeBlock_Default}Uses:108Used by:111 113  Timeline
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClip {HomeBlock_Positive}Uses:110 33 109Used by:Timeline
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClip {HomeBlock_Negative}Uses:112 33 109Used by:Timeline
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClip {HomeBlock_Hold}Uses:114 38Used by:Timeline
Symbol 116 Sound {_SND_Home_Block_Positive}Used by:Timeline
Symbol 117 Sound {_SND_Home_Block_Negative}Used by:Timeline
Symbol 118 Sound {_SND_EndGame}Used by:Timeline
Symbol 119 Sound {_SND_LoungySmoungy}Used by:Timeline
Symbol 120 Sound {_SND_HacsevJazz}Used by:Timeline
Symbol 121 Sound {_SND_Sideman_Strut}Used by:Timeline
Symbol 122 Sound {_SND_OneNightAlone}Used by:Timeline
Symbol 123 GraphicUsed by:124
Symbol 124 MovieClipUses:123Used by:143 152 153 156 157 158 163 168
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:125Used by:143 152 153 156 157 158 163
Symbol 127 GraphicUsed by:128 129
Symbol 128 MovieClipUses:127Used by:143 152 153 156 157 158 163
Symbol 129 MovieClipUses:127Used by:143 152 153 156 157 158 163
Symbol 130 GraphicUsed by:131
Symbol 131 MovieClipUses:130Used by:143 152 153 156 157 158 163
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClipUses:132Used by:143 152 153 156 157 158 163
Symbol 134 GraphicUsed by:135 142
Symbol 135 MovieClipUses:134Used by:143 152 153 156 157 158 163
Symbol 136 GraphicUsed by:137
Symbol 137 MovieClipUses:136Used by:143 152 153 156 157 158 163
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:138Used by:143 152 153 156 157 158 163
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:140Used by:143 152 153 156 157 158 163
Symbol 142 MovieClipUses:134Used by:143 152 153 156 157 158 163
Symbol 143 MovieClip {TutorialGrid_0}Uses:56 124 126 128 129 131 133 135 137 139 141 142Used by:146  Timeline
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:144Used by:146
Symbol 146 MovieClip {TutorialGrid_1}Uses:143 145Used by:Timeline
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClipUses:147Used by:152 153
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:151
Symbol 151 MovieClipUses:150Used by:152 153 157 158 163
Symbol 152 MovieClip {TutorialGrid_2}Uses:56 124 126 128 129 131 135 137 139 141 142 133 148 151 63Used by:Timeline
Symbol 153 MovieClip {TutorialGrid_3}Uses:56 62 124 126 137 141 131 139 133 128 129 135 142 151 148 63Used by:Timeline
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClipUses:154Used by:156
Symbol 156 MovieClip {TutorialGrid_4}Uses:62 56 124 126 128 129 135 137 141 142 131 139 133 155Used by:Timeline
Symbol 157 MovieClip {TutorialGrid_5}Uses:62 56 124 126 128 129 135 137 141 142 139 131 133 151 57Used by:Timeline
Symbol 158 MovieClip {TutorialGrid_6}Uses:62 56 57 124 126 128 129 135 137 141 142 133 131 139 151 59Used by:Timeline
Symbol 159 GraphicUsed by:160
Symbol 160 MovieClipUses:159Used by:163 168
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:163 168
Symbol 163 MovieClip {TutorialGrid_7}Uses:59 57 56 62 124 135 137 141 142 139 126 128 129 133 131 151 160 162Used by:Timeline
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:166 167
Symbol 166 MovieClip {tutRightArrow}Uses:165Used by:Timeline
Symbol 167 MovieClip {tutLeftArrow}Uses:165Used by:Timeline
Symbol 168 MovieClip {TutorialGrid_8}Uses:160 162 124Used by:Timeline
Symbol 169 GraphicUsed by:Timeline
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClipUses:170Used by:174 177
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172Used by:174
Symbol 174 MovieClip {SoundIcon_On}Uses:171 173Used by:Timeline
Symbol 175 GraphicUsed by:176
Symbol 176 MovieClipUses:175Used by:177 195
Symbol 177 MovieClip {SoundIcon_Off}Uses:171 176Used by:Timeline
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClip {QuestionMark}Uses:178Used by:Timeline
Symbol 180 GraphicUsed by:181 184
Symbol 181 MovieClip {LifeIcon_Unchecked}Uses:180Used by:Timeline
Symbol 182 GraphicUsed by:184
Symbol 183 GraphicUsed by:184
Symbol 184 MovieClip {LifeIcon_Checked}Uses:180 33 182 183Used by:Timeline
Symbol 185 GraphicUsed by:186
Symbol 186 MovieClip {CloseButton_Cross}Uses:185Used by:Timeline
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClipUses:187Used by:189
Symbol 189 MovieClip {DrawIcon}Uses:188Used by:Timeline
Symbol 190 GraphicUsed by:191
Symbol 191 MovieClip {CrossToolIcon}Uses:190Used by:Timeline
Symbol 192 GraphicUsed by:Timeline
Symbol 193 GraphicUsed by:194 195
Symbol 194 MovieClip {MusicIcon_On}Uses:193Used by:Timeline
Symbol 195 MovieClip {MusicIcon_Off}Uses:193 176Used by:Timeline
Symbol 196 Bitmap {DevLogo_MainMenu}Used by:Timeline
Symbol 197 Bitmap {CC_Logo}Used by:Timeline

Instance Names

"bar"Symbol 14 MovieClip {_ProgressBar} Frame 1Symbol 13 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS3.
Tag 0x0FF (255)Timeline Frame 11 bytes " "

Labels

"_init"Frame 50




http://swfchan.com/10/48180/info.shtml
Created: 30/4 -2019 11:09:33 Last modified: 30/4 -2019 11:09:33 Server time: 22/12 -2024 09:19:41