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/59604988?noj=FRM59604988-22DC" width="1" height="1"></div>

perfect-mix.swf

This is the info page for
Flash #116609

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


Text
<p align="center"><font face="Century Gothic" size="28" color="#000000" letterSpacing="0.000000" kerning="1"><b>00</b></font></p>

32

32

01

02

03

04

05

06

07

08

09

10

99

99

ActionScript [AS3]

Section 1
//MD5 (com.adobe.crypto.MD5) package com.adobe.crypto { import com.adobe.utils.*; public class MD5 { private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function createBlocks(_arg1:String):Array{ var _local2:Array = new Array(); var _local3:int = (_arg1.length * 8); var _local4 = 0xFF; var _local5:int; while (_local5 < _local3) { _local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32))); _local5 = (_local5 + 8); }; _local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32))); _local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3; return (_local2); } private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function f(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 & _arg2) | (~(_arg1) & _arg3))); } private static function g(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 & _arg3) | (_arg2 & ~(_arg3)))); } private static function h(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 ^ _arg2) ^ _arg3)); } private static function i(_arg1:int, _arg2:int, _arg3:int):int{ return ((_arg2 ^ (_arg1 | ~(_arg3)))); } private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{ var _local9:int = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8); return ((IntUtil.rol(_local9, _arg7) + _arg3)); } private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } public static function hash(_arg1:String):String{ var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local2 = 1732584193; var _local3 = -271733879; var _local4 = -1732584194; var _local5 = 271733878; var _local10:Array = createBlocks(_arg1); var _local11:int = _local10.length; var _local12:int; while (_local12 < _local11) { _local6 = _local2; _local7 = _local3; _local8 = _local4; _local9 = _local5; _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551); _local2 = (_local2 + _local6); _local3 = (_local3 + _local7); _local4 = (_local4 + _local8); _local5 = (_local5 + _local9); _local12 = (_local12 + 16); }; return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5))); } private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } } }//package com.adobe.crypto
Section 2
//IntUtil (com.adobe.utils.IntUtil) package com.adobe.utils { public class IntUtil { private static var hexChars:String = "0123456789abcdef"; public static function toHex(_arg1:int, _arg2:Boolean=false):String{ var _local4:int; var _local5:int; var _local3 = ""; if (_arg2){ _local4 = 0; while (_local4 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15)))); _local4++; }; } else { _local5 = 0; while (_local5 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15)))); _local5++; }; }; return (_local3); } public static function ror(_arg1:int, _arg2:int):uint{ var _local3:int = (32 - _arg2); return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3)))); } public static function rol(_arg1:int, _arg2:int):int{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } } }//package com.adobe.utils
Section 3
//PropTween (com.greensock.core.PropTween) package com.greensock.core { public class PropTween { public var priority:int; public var start:Number; public var prevNode:PropTween; public var change:Number; public var target:Object; public var name:String; public var property:String; public var nextNode:PropTween; public var isPlugin:Boolean; public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){ this.target = _arg1; this.property = _arg2; this.start = _arg3; this.change = _arg4; this.name = _arg5; this.isPlugin = _arg6; if (_arg7){ _arg7.prevNode = this; this.nextNode = _arg7; }; this.priority = _arg8; } } }//package com.greensock.core
Section 4
//SimpleTimeline (com.greensock.core.SimpleTimeline) package com.greensock.core { public class SimpleTimeline extends TweenCore { public var autoRemoveChildren:Boolean; protected var _lastChild:TweenCore; protected var _firstChild:TweenCore; public function SimpleTimeline(_arg1:Object=null){ super(0, _arg1); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local5:Number; var _local6:TweenCore; var _local4:TweenCore = _firstChild; this.cachedTotalTime = _arg1; this.cachedTime = _arg1; while (_local4) { _local6 = _local4.nextNode; if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){ if (!_local4.cachedReversed){ _local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false); } else { _local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration; _local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false); }; }; _local4 = _local6; }; } public function addChild(_arg1:TweenCore):void{ if (((!(_arg1.gc)) && (_arg1.timeline))){ _arg1.timeline.remove(_arg1, true); }; _arg1.timeline = this; if (_arg1.gc){ _arg1.setEnabled(true, true); }; if (_firstChild){ _firstChild.prevNode = _arg1; }; _arg1.nextNode = _firstChild; _firstChild = _arg1; _arg1.prevNode = null; } public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{ if (((!(_arg1.gc)) && (!(_arg2)))){ _arg1.setEnabled(false, true); }; if (_arg1.nextNode){ _arg1.nextNode.prevNode = _arg1.prevNode; } else { if (_lastChild == _arg1){ _lastChild = _arg1.prevNode; }; }; if (_arg1.prevNode){ _arg1.prevNode.nextNode = _arg1.nextNode; } else { if (_firstChild == _arg1){ _firstChild = _arg1.nextNode; }; }; } public function get rawTime():Number{ return (this.cachedTotalTime); } } }//package com.greensock.core
Section 5
//TweenCore (com.greensock.core.TweenCore) package com.greensock.core { import com.greensock.*; public class TweenCore { public var initted:Boolean; protected var _hasUpdate:Boolean; public var active:Boolean; protected var _delay:Number; public var cachedTime:Number; public var cachedReversed:Boolean; public var nextNode:TweenCore; protected var _rawPrevTime:Number;// = -1 public var vars:Object; public var cachedTotalTime:Number; public var timeline:SimpleTimeline; public var data; public var cachedStartTime:Number; public var prevNode:TweenCore; public var cachedDuration:Number; public var gc:Boolean; protected var _pauseTime:Number; public var cacheIsDirty:Boolean; public var cachedPaused:Boolean; public var cachedTimeScale:Number; public var cachedTotalDuration:Number; public static const version:Number = 1.11; protected static var _classInitted:Boolean; public function TweenCore(_arg1:Number=0, _arg2:Object=null){ this.vars = ((_arg2) || ({})); this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0))); _delay = ((this.vars.delay) || (0)); this.cachedTimeScale = ((this.vars.timeScale) || (1)); this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false))))); this.cachedTotalTime = (this.cachedTime = 0); this.data = this.vars.data; if (!_classInitted){ if (isNaN(TweenLite.rootFrame)){ TweenLite.initClass(); _classInitted = true; } else { return; }; }; var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline; this.cachedStartTime = (_local3.cachedTotalTime + _delay); _local3.addChild(this); if (this.vars.reversed){ this.cachedReversed = true; }; if (this.vars.paused){ this.paused = true; }; } public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ } public function get delay():Number{ return (_delay); } public function get duration():Number{ return (this.cachedDuration); } public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{ this.reversed = false; this.paused = false; this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2); } public function set reversed(_arg1:Boolean):void{ if (_arg1 != this.cachedReversed){ this.cachedReversed = _arg1; setTotalTime(this.cachedTotalTime, true); }; } public function set startTime(_arg1:Number):void{ var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc))))); this.cachedStartTime = _arg1; if (_local2){ this.timeline.addChild(this); }; } public function set delay(_arg1:Number):void{ this.startTime = (this.startTime + (_arg1 - _delay)); _delay = _arg1; } public function resume():void{ this.paused = false; } public function get paused():Boolean{ return (this.cachedPaused); } public function play():void{ this.reversed = false; this.paused = false; } public function set duration(_arg1:Number):void{ this.cachedDuration = (this.cachedTotalDuration = _arg1); setDirtyCache(false); } public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{ if (!_arg1){ renderTime(this.cachedTotalDuration, _arg2, false); return; }; if (this.timeline.autoRemoveChildren){ this.setEnabled(false, false); } else { this.active = false; }; if (!_arg2){ if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); } else { if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){ this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams); }; }; }; } public function invalidate():void{ } public function get totalTime():Number{ return (this.cachedTotalTime); } public function get reversed():Boolean{ return (this.cachedReversed); } public function get startTime():Number{ return (this.cachedStartTime); } public function set currentTime(_arg1:Number):void{ setTotalTime(_arg1, false); } protected function setDirtyCache(_arg1:Boolean=true):void{ var _local2:TweenCore = (_arg1) ? this : this.timeline; while (_local2) { _local2.cacheIsDirty = true; _local2 = _local2.timeline; }; } public function reverse(_arg1:Boolean=true):void{ this.reversed = true; if (_arg1){ this.paused = false; } else { if (this.gc){ this.setEnabled(true, false); }; }; } public function set paused(_arg1:Boolean):void{ if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){ if (_arg1){ _pauseTime = this.timeline.rawTime; } else { this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime)); _pauseTime = NaN; setDirtyCache(false); }; this.cachedPaused = _arg1; this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration)))); }; if (((!(_arg1)) && (this.gc))){ this.setTotalTime(this.cachedTotalTime, false); this.setEnabled(true, false); }; } public function kill():void{ setEnabled(false, false); } public function set totalTime(_arg1:Number):void{ setTotalTime(_arg1, false); } public function get currentTime():Number{ return (this.cachedTime); } protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{ var _local3:Number; var _local4:Number; if (this.timeline){ _local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime; if (this.cachedReversed){ _local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration; this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale)); } else { this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale)); }; if (!this.timeline.cacheIsDirty){ setDirtyCache(false); }; if (this.cachedTotalTime != _arg1){ renderTime(_arg1, _arg2, false); }; }; } public function pause():void{ this.paused = true; } public function set totalDuration(_arg1:Number):void{ this.duration = _arg1; } public function get totalDuration():Number{ return (this.cachedTotalDuration); } public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ if (_arg1 == this.gc){ if (_arg1){ this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration)))); if (!_arg2){ this.timeline.addChild(this); }; } else { this.active = false; if (!_arg2){ this.timeline.remove(this, true); }; }; this.gc = !(_arg1); }; return (false); } } }//package com.greensock.core
Section 6
//Back (com.greensock.easing.Back) package com.greensock.easing { public class Back { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{ _arg1 = (_arg1 / (_arg4 * 0.5)); if (_arg1 < 1){ _arg5 = (_arg5 * 1.525); return ((((_arg3 * 0.5) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2)); }; _arg1 = (_arg1 - 2); _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2)); } } }//package com.greensock.easing
Section 7
//Elastic (com.greensock.easing.Elastic) package com.greensock.easing { public class Elastic { private static const _2PI:Number = 6.28318530717959; public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * 0.3); }; if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_arg3))))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5))); }; --_arg1; return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 * 0.5)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * (0.3 * 1.5)); }; if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_arg3))))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2)); }; --_arg1; return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2)); } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; if (!_arg6){ _arg6 = (_arg4 * 0.3); }; if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_arg3))))))){ _arg5 = _arg3; _local7 = (_arg6 / 4); } else { _local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5))); }; return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2)); } } }//package com.greensock.easing
Section 8
//FastEase (com.greensock.easing.FastEase) package com.greensock.easing { import com.greensock.*; public class FastEase { public static function activateEase(_arg1:Function, _arg2:int, _arg3:uint):void{ TweenLite.fastEaseLookup[_arg1] = [_arg2, _arg3]; } public static function activate(_arg1:Array):void{ var _local3:Object; var _local2:int = _arg1.length; while (_local2--) { _local3 = _arg1[_local2]; if (_local3.hasOwnProperty("power")){ activateEase(_local3.easeIn, 1, _local3.power); activateEase(_local3.easeOut, 2, _local3.power); activateEase(_local3.easeInOut, 3, _local3.power); if (_local3.hasOwnProperty("easeNone")){ activateEase(_local3.easeNone, 1, 0); }; }; }; } } }//package com.greensock.easing
Section 9
//Quart (com.greensock.easing.Quart) package com.greensock.easing { public class Quart extends FastEase { public static const power:uint = 3; public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 * 0.5)); if (_arg1 < 1){ return (((((((_arg3 * 0.5) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((-(_arg3) * 0.5) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } } }//package com.greensock.easing
Section 10
//TweenEvent (com.greensock.events.TweenEvent) package com.greensock.events { import flash.events.*; public class TweenEvent extends Event { public static const COMPLETE:String = "complete"; public static const START:String = "init"; public static const UPDATE:String = "change"; public static const REVERSE_COMPLETE:String = "reverseComplete"; public static const VERSION:Number = 1; public static const REPEAT:String = "repeat"; public function TweenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function clone():Event{ return (new TweenEvent(this.type, this.bubbles, this.cancelable)); } } }//package com.greensock.events
Section 11
//AutoAlphaPlugin (com.greensock.plugins.AutoAlphaPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class AutoAlphaPlugin extends TweenPlugin { protected var _target:Object; protected var _ignoreVisible:Boolean; public static const API:Number = 1; public function AutoAlphaPlugin(){ this.propName = "autoAlpha"; this.overwriteProps = ["alpha", "visible"]; } override public function killProps(_arg1:Object):void{ super.killProps(_arg1); _ignoreVisible = Boolean(("visible" in _arg1)); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); if (!_ignoreVisible){ _target.visible = Boolean(!((_target.alpha == 0))); }; } } }//package com.greensock.plugins
Section 12
//BevelFilterPlugin (com.greensock.plugins.BevelFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class BevelFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["distance", "angle", "highlightColor", "highlightAlpha", "shadowColor", "shadowAlpha", "blurX", "blurY", "strength", "quality"]; public function BevelFilterPlugin(){ this.propName = "bevelFilter"; this.overwriteProps = ["bevelFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BevelFilter; initFilter(_arg2, new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_arg2.quality) || (2))), _propNames); return (true); } } }//package com.greensock.plugins
Section 13
//BezierPlugin (com.greensock.plugins.BezierPlugin) package com.greensock.plugins { import com.greensock.core.*; import com.greensock.*; public class BezierPlugin extends TweenPlugin { protected var _future:Object; protected var _orient:Boolean; protected var _orientData:Array; protected var _target:Object; protected var _beziers:Object; public static const API:Number = 1; protected static const _RAD2DEG:Number = 57.2957795130823; public function BezierPlugin(){ _future = {}; super(); this.propName = "bezier"; this.overwriteProps = []; } override public function killProps(_arg1:Object):void{ var _local2:String; for (_local2 in _beziers) { if ((_local2 in _arg1)){ delete _beziers[_local2]; }; }; super.killProps(_arg1); } protected function init(_arg1:TweenLite, _arg2:Array, _arg3:Boolean):void{ var _local6:int; var _local7:String; var _local8:Object; _target = _arg1.target; var _local4:Object = ((_arg1.vars.isTV)==true) ? _arg1.vars.exposedVars : _arg1.vars; if (_local4.orientToBezier == true){ _orientData = [["x", "y", "rotation", 0, 0.01]]; _orient = true; } else { if ((_local4.orientToBezier is Array)){ _orientData = _local4.orientToBezier; _orient = true; }; }; var _local5:Object = {}; _local6 = 0; while (_local6 < _arg2.length) { for (_local7 in _arg2[_local6]) { if (_local5[_local7] == undefined){ _local5[_local7] = [_arg1.target[_local7]]; }; if (typeof(_arg2[_local6][_local7]) == "number"){ _local5[_local7].push(_arg2[_local6][_local7]); } else { _local5[_local7].push((_arg1.target[_local7] + Number(_arg2[_local6][_local7]))); }; }; _local6++; }; for (_local7 in _local5) { this.overwriteProps[this.overwriteProps.length] = _local7; if (_local4[_local7] != undefined){ if (typeof(_local4[_local7]) == "number"){ _local5[_local7].push(_local4[_local7]); } else { _local5[_local7].push((_arg1.target[_local7] + Number(_local4[_local7]))); }; _local8 = {}; _local8[_local7] = true; _arg1.killVars(_local8, false); delete _local4[_local7]; }; }; _beziers = parseBeziers(_local5, _arg3); } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), false); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:String; var _local4:Object; var _local5:Number; var _local6:uint; var _local7:Number; var _local8:Object; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Number; var _local13:Object; var _local14:Boolean; if (_arg1 == 1){ for (_local3 in _beziers) { _local2 = (_beziers[_local3].length - 1); _target[_local3] = _beziers[_local3][_local2][2]; }; } else { for (_local3 in _beziers) { _local6 = _beziers[_local3].length; if (_arg1 < 0){ _local2 = 0; } else { if (_arg1 >= 1){ _local2 = (_local6 - 1); } else { _local2 = int((_local6 * _arg1)); }; }; _local5 = ((_arg1 - (_local2 * (1 / _local6))) * _local6); _local4 = _beziers[_local3][_local2]; if (this.round){ _local7 = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); _target[_local3] = ((_local7)>0) ? int((_local7 + 0.5)) : int((_local7 - 0.5)); } else { _target[_local3] = (_local4[0] + (_local5 * (((2 * (1 - _local5)) * (_local4[1] - _local4[0])) + (_local5 * (_local4[2] - _local4[0]))))); }; }; }; if (_orient){ _local2 = _orientData.length; _local8 = {}; while (_local2--) { _local11 = _orientData[_local2]; _local8[_local11[0]] = _target[_local11[0]]; _local8[_local11[1]] = _target[_local11[1]]; }; _local13 = _target; _local14 = this.round; _target = _future; this.round = false; _orient = false; _local2 = _orientData.length; while (_local2--) { _local11 = _orientData[_local2]; this.changeFactor = (_arg1 + ((_local11[4]) || (0.01))); _local12 = ((_local11[3]) || (0)); _local9 = (_future[_local11[0]] - _local8[_local11[0]]); _local10 = (_future[_local11[1]] - _local8[_local11[1]]); _local13[_local11[2]] = ((Math.atan2(_local10, _local9) * _RAD2DEG) + _local12); }; _target = _local13; this.round = _local14; _orient = true; }; } public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{ var _local3:int; var _local4:Array; var _local5:Object; var _local6:String; var _local7:Object = {}; if (_arg2){ for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 2){ _local5[_local5.length] = [_local4[0], (_local4[1] - ((_local4[2] - _local4[0]) / 4)), _local4[1]]; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = [_local4[_local3], (_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)][1])), _local4[(_local3 + 1)]]; _local3++; }; } else { _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = [_local4[0], _local4[1], ((_local4[1] + _local4[2]) / 2)]; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5[_local5.length] = [_local5[(_local3 - 2)][2], _local4[_local3], ((_local4[_local3] + _local4[(_local3 + 1)]) / 2)]; _local3++; }; _local5[_local5.length] = [_local5[(_local5.length - 1)][2], _local4[(_local4.length - 2)], _local4[(_local4.length - 1)]]; } else { if (_local4.length == 3){ _local5[_local5.length] = [_local4[0], _local4[1], _local4[2]]; } else { if (_local4.length == 2){ _local5[_local5.length] = [_local4[0], ((_local4[0] + _local4[1]) / 2), _local4[1]]; }; }; }; }; }; return (_local7); } } }//package com.greensock.plugins
Section 14
//BezierThroughPlugin (com.greensock.plugins.BezierThroughPlugin) package com.greensock.plugins { import com.greensock.*; public class BezierThroughPlugin extends BezierPlugin { public static const API:Number = 1; public function BezierThroughPlugin(){ this.propName = "bezierThrough"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg2 is Array)){ return (false); }; init(_arg3, (_arg2 as Array), true); return (true); } } }//package com.greensock.plugins
Section 15
//BlurFilterPlugin (com.greensock.plugins.BlurFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class BlurFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["blurX", "blurY", "quality"]; public function BlurFilterPlugin(){ this.propName = "blurFilter"; this.overwriteProps = ["blurFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = BlurFilter; initFilter(_arg2, new BlurFilter(0, 0, ((_arg2.quality) || (2))), _propNames); return (true); } } }//package com.greensock.plugins
Section 16
//ColorMatrixFilterPlugin (com.greensock.plugins.ColorMatrixFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class ColorMatrixFilterPlugin extends FilterPlugin { protected var _matrix:Array; protected var _matrixTween:EndArrayPlugin; public static const API:Number = 1; private static var _propNames:Array = []; protected static var _lumG:Number = 0.71516; protected static var _lumR:Number = 0.212671; protected static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; protected static var _lumB:Number = 0.072169; public function ColorMatrixFilterPlugin(){ this.propName = "colorMatrixFilter"; this.overwriteProps = ["colorMatrixFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = ColorMatrixFilter; var _local4:Object = _arg2; initFilter({remove:_arg2.remove, index:_arg2.index, addFilter:_arg2.addFilter}, new ColorMatrixFilter(_idMatrix.slice()), _propNames); _matrix = ColorMatrixFilter(_filter).matrix; var _local5:Array = []; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _local5 = _local4.matrix; } else { if (_local4.relative == true){ _local5 = _matrix.slice(); } else { _local5 = _idMatrix.slice(); }; _local5 = setBrightness(_local5, _local4.brightness); _local5 = setContrast(_local5, _local4.contrast); _local5 = setHue(_local5, _local4.hue); _local5 = setSaturation(_local5, _local4.saturation); _local5 = setThreshold(_local5, _local4.threshold); if (!isNaN(_local4.colorize)){ _local5 = colorize(_local5, _local4.colorize, _local4.amount); }; }; _matrixTween = new EndArrayPlugin(); _matrixTween.init(_matrix, _local5); return (true); } override public function set changeFactor(_arg1:Number):void{ _matrixTween.changeFactor = _arg1; ColorMatrixFilter(_filter).matrix = _matrix; super.changeFactor = _arg1; } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Number = (1 - _arg2); var _local4:Number = (_local3 * _lumR); var _local5:Number = (_local3 * _lumG); var _local6:Number = (_local3 * _lumB); var _local7:Array = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); var _local3:Number = Math.cos(_arg2); var _local4:Number = Math.sin(_arg2); var _local5:Array = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); var _local3:Array = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; var _local3:Array = []; var _local4:int; var _local5:int; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; var _local3:Array = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; var _local4:Number = (((_arg2 >> 16) & 0xFF) / 0xFF); var _local5:Number = (((_arg2 >> 8) & 0xFF) / 0xFF); var _local6:Number = ((_arg2 & 0xFF) / 0xFF); var _local7:Number = (1 - _arg3); var _local8:Array = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } } }//package com.greensock.plugins
Section 17
//ColorTransformPlugin (com.greensock.plugins.ColorTransformPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.geom.*; public class ColorTransformPlugin extends TintPlugin { public static const API:Number = 1; public function ColorTransformPlugin(){ this.propName = "colorTransform"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local5:String; var _local6:Number; if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = _arg1.transform.colorTransform; for (_local5 in _arg2) { if ((((_local5 == "tint")) || ((_local5 == "color")))){ if (_arg2[_local5] != null){ _local4.color = int(_arg2[_local5]); }; } else { if ((((((_local5 == "tintAmount")) || ((_local5 == "exposure")))) || ((_local5 == "brightness")))){ } else { _local4[_local5] = _arg2[_local5]; }; }; }; if (!isNaN(_arg2.tintAmount)){ _local6 = (_arg2.tintAmount / (1 - (((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3))); _local4.redOffset = (_local4.redOffset * _local6); _local4.greenOffset = (_local4.greenOffset * _local6); _local4.blueOffset = (_local4.blueOffset * _local6); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - _arg2.tintAmount))); } else { if (!isNaN(_arg2.exposure)){ _local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = (0xFF * (_arg2.exposure - 1)))); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = 1)); } else { if (!isNaN(_arg2.brightness)){ _local4.redOffset = (_local4.greenOffset = (_local4.blueOffset = Math.max(0, ((_arg2.brightness - 1) * 0xFF)))); _local4.redMultiplier = (_local4.greenMultiplier = (_local4.blueMultiplier = (1 - Math.abs((_arg2.brightness - 1))))); }; }; }; _ignoreAlpha = Boolean(((!((_arg3.vars.alpha == undefined))) && ((_arg2.alphaMultiplier == undefined)))); init((_arg1 as DisplayObject), _local4); return (true); } } }//package com.greensock.plugins
Section 18
//DropShadowFilterPlugin (com.greensock.plugins.DropShadowFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class DropShadowFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["distance", "angle", "color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout", "hideObject"]; public function DropShadowFilterPlugin(){ this.propName = "dropShadowFilter"; this.overwriteProps = ["dropShadowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = DropShadowFilter; initFilter(_arg2, new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout, _arg2.hideObject), _propNames); return (true); } } }//package com.greensock.plugins
Section 19
//EndArrayPlugin (com.greensock.plugins.EndArrayPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class EndArrayPlugin extends TweenPlugin { protected var _a:Array; protected var _info:Array; public static const API:Number = 1; public function EndArrayPlugin(){ _info = []; super(); this.propName = "endArray"; this.overwriteProps = ["endArray"]; } public function init(_arg1:Array, _arg2:Array):void{ _a = _arg1; var _local3:int = _arg2.length; while (_local3--) { if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){ _info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3])); }; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (false); }; init((_arg1 as Array), _arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local3:ArrayTweenInfo; var _local4:Number; var _local2:int = _info.length; if (this.round){ while (_local2--) { _local3 = _info[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _a[_local3.index] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5)); }; } else { while (_local2--) { _local3 = _info[_local2]; _a[_local3.index] = (_local3.start + (_local3.change * _arg1)); }; }; } } }//package com.greensock.plugins class ArrayTweenInfo { public var change:Number; public var start:Number; public var index:uint; private function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){ this.index = _arg1; this.start = _arg2; this.change = _arg3; } }
Section 20
//FilterPlugin (com.greensock.plugins.FilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.core.*; import com.greensock.*; import flash.filters.*; public class FilterPlugin extends TweenPlugin { protected var _remove:Boolean; protected var _target:Object; protected var _index:int; protected var _filter:BitmapFilter; protected var _type:Class; public static const VERSION:Number = 2.03; public static const API:Number = 1; public function onCompleteTween():void{ var _local1:Array; var _local2:int; if (_remove){ _local1 = _target.filters; if (!(_local1[_index] is _type)){ _local2 = _local1.length; while (_local2--) { if ((_local1[_local2] is _type)){ _local1.splice(_local2, 1); break; }; }; } else { _local1.splice(_index, 1); }; _target.filters = _local1; }; } protected function initFilter(_arg1:Object, _arg2:BitmapFilter, _arg3:Array):void{ var _local5:String; var _local6:int; var _local7:HexColorsPlugin; var _local4:Array = _target.filters; var _local8:Object = ((_arg1 is BitmapFilter)) ? {} : _arg1; _index = -1; if (_local8.index != null){ _index = _local8.index; } else { _local6 = _local4.length; while (_local6--) { if ((_local4[_local6] is _type)){ _index = _local6; break; }; }; }; if ((((((_index == -1)) || ((_local4[_index] == null)))) || ((_local8.addFilter == true)))){ _index = ((_local8.index)!=null) ? _local8.index : _local4.length; _local4[_index] = _arg2; _target.filters = _local4; }; _filter = _local4[_index]; if (_local8.remove == true){ _remove = true; this.onComplete = onCompleteTween; }; _local6 = _arg3.length; while (_local6--) { _local5 = _arg3[_local6]; if ((((_local5 in _arg1)) && (!((_filter[_local5] == _arg1[_local5]))))){ if ((((((_local5 == "color")) || ((_local5 == "highlightColor")))) || ((_local5 == "shadowColor")))){ _local7 = new HexColorsPlugin(); _local7.initColor(_filter, _local5, _filter[_local5], _arg1[_local5]); _tweens[_tweens.length] = new PropTween(_local7, "changeFactor", 0, 1, _local5, false); } else { if ((((((((_local5 == "quality")) || ((_local5 == "inner")))) || ((_local5 == "knockout")))) || ((_local5 == "hideObject")))){ _filter[_local5] = _arg1[_local5]; } else { addTween(_filter, _local5, _filter[_local5], _arg1[_local5], _local5); }; }; }; }; } override public function set changeFactor(_arg1:Number):void{ var _local3:PropTween; var _local2:int = _tweens.length; var _local4:Array = _target.filters; while (_local2--) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; if (!(_local4[_index] is _type)){ _local2 = (_index = _local4.length); while (_local2--) { if ((_local4[_local2] is _type)){ _index = _local2; break; }; }; }; _local4[_index] = _filter; _target.filters = _local4; } } }//package com.greensock.plugins
Section 21
//FrameLabelPlugin (com.greensock.plugins.FrameLabelPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class FrameLabelPlugin extends FramePlugin { public static const API:Number = 1; public function FrameLabelPlugin(){ this.propName = "frameLabel"; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if ((!(_arg3.target) is MovieClip)){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; var _local4:Array = _target.currentLabels; var _local5:String = _arg2; var _local6:int = _target.currentFrame; var _local7:int = _local4.length; while (_local7--) { if (_local4[_local7].name == _local5){ _local6 = _local4[_local7].frame; break; }; }; if (this.frame != _local6){ addTween(this, "frame", this.frame, _local6, "frame"); }; return (true); } } }//package com.greensock.plugins
Section 22
//FramePlugin (com.greensock.plugins.FramePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class FramePlugin extends TweenPlugin { protected var _target:MovieClip; public var frame:int; public static const API:Number = 1; public function FramePlugin(){ this.propName = "frame"; this.overwriteProps = ["frame", "frameLabel"]; this.round = true; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){ return (false); }; _target = (_arg1 as MovieClip); this.frame = _target.currentFrame; addTween(this, "frame", this.frame, _arg2, "frame"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.gotoAndStop(this.frame); } } }//package com.greensock.plugins
Section 23
//GlowFilterPlugin (com.greensock.plugins.GlowFilterPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.filters.*; public class GlowFilterPlugin extends FilterPlugin { public static const API:Number = 1; private static var _propNames:Array = ["color", "alpha", "blurX", "blurY", "strength", "quality", "inner", "knockout"]; public function GlowFilterPlugin(){ this.propName = "glowFilter"; this.overwriteProps = ["glowFilter"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _type = GlowFilter; initFilter(_arg2, new GlowFilter(0xFFFFFF, 0, 0, 0, ((_arg2.strength) || (1)), ((_arg2.quality) || (2)), _arg2.inner, _arg2.knockout), _propNames); return (true); } } }//package com.greensock.plugins
Section 24
//HexColorsPlugin (com.greensock.plugins.HexColorsPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class HexColorsPlugin extends TweenPlugin { protected var _colors:Array; public static const API:Number = 1; public function HexColorsPlugin(){ this.propName = "hexColors"; this.overwriteProps = []; _colors = []; } override public function killProps(_arg1:Object):void{ var _local2:int = (_colors.length - 1); while (_local2 > -1) { if (_arg1[_colors[_local2][1]] != undefined){ _colors.splice(_local2, 1); }; _local2--; }; super.killProps(_arg1); } public function initColor(_arg1:Object, _arg2:String, _arg3:uint, _arg4:uint):void{ var _local5:Number; var _local6:Number; var _local7:Number; if (_arg3 != _arg4){ _local5 = (_arg3 >> 16); _local6 = ((_arg3 >> 8) & 0xFF); _local7 = (_arg3 & 0xFF); _colors[_colors.length] = [_arg1, _arg2, _local5, ((_arg4 >> 16) - _local5), _local6, (((_arg4 >> 8) & 0xFF) - _local6), _local7, ((_arg4 & 0xFF) - _local7)]; this.overwriteProps[this.overwriteProps.length] = _arg2; }; } override public function set changeFactor(_arg1:Number):void{ var _local2:int; var _local3:Array; _local2 = (_colors.length - 1); while (_local2 > -1) { _local3 = _colors[_local2]; _local3[0][_local3[1]] = ((((_local3[2] + (_arg1 * _local3[3])) << 16) | ((_local3[4] + (_arg1 * _local3[5])) << 8)) | (_local3[6] + (_arg1 * _local3[7]))); _local2--; }; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; for (_local4 in _arg2) { initColor(_arg1, _local4, uint(_arg1[_local4]), uint(_arg2[_local4])); }; return (true); } } }//package com.greensock.plugins
Section 25
//RemoveTintPlugin (com.greensock.plugins.RemoveTintPlugin) package com.greensock.plugins { public class RemoveTintPlugin extends TintPlugin { public static const API:Number = 1; public function RemoveTintPlugin(){ this.propName = "removeTint"; } } }//package com.greensock.plugins
Section 26
//RoundPropsPlugin (com.greensock.plugins.RoundPropsPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class RoundPropsPlugin extends TweenPlugin { public static const API:Number = 1; public function RoundPropsPlugin(){ this.propName = "roundProps"; this.overwriteProps = []; this.round = true; } public function add(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ addTween(_arg1, _arg2, _arg3, (_arg3 + _arg4), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package com.greensock.plugins
Section 27
//ShortRotationPlugin (com.greensock.plugins.ShortRotationPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class ShortRotationPlugin extends TweenPlugin { public static const API:Number = 1; public function ShortRotationPlugin(){ this.propName = "shortRotation"; this.overwriteProps = []; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ var _local4:String; if (typeof(_arg2) == "number"){ return (false); }; for (_local4 in _arg2) { initRotation(_arg1, _local4, _arg1[_local4], _arg2[_local4]); }; return (true); } public function initRotation(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number):void{ var _local5:Number = ((_arg4 - _arg3) % 360); if (((_arg4 - _arg3) % 360) != (_local5 % 180)){ _local5 = ((_local5)<0) ? (_local5 + 360) : (_local5 - 360); }; addTween(_arg1, _arg2, _arg3, (_arg3 + _local5), _arg2); this.overwriteProps[this.overwriteProps.length] = _arg2; } } }//package com.greensock.plugins
Section 28
//TintPlugin (com.greensock.plugins.TintPlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.core.*; import com.greensock.*; import flash.geom.*; public class TintPlugin extends TweenPlugin { protected var _ct:ColorTransform; protected var _transform:Transform; protected var _ignoreAlpha:Boolean; public static const API:Number = 1; protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"]; public function TintPlugin(){ this.propName = "tint"; this.overwriteProps = ["tint"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (!(_arg1 is DisplayObject)){ return (false); }; var _local4:ColorTransform = new ColorTransform(); if (((!((_arg2 == null))) && (!((_arg3.vars.removeTint == true))))){ _local4.color = uint(_arg2); }; _ignoreAlpha = true; init((_arg1 as DisplayObject), _local4); return (true); } override public function set changeFactor(_arg1:Number):void{ var _local2:ColorTransform; updateTweens(_arg1); if (_ignoreAlpha){ _local2 = _transform.colorTransform; _ct.alphaMultiplier = _local2.alphaMultiplier; _ct.alphaOffset = _local2.alphaOffset; }; _transform.colorTransform = _ct; } public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{ var _local4:String; _transform = _arg1.transform; _ct = _transform.colorTransform; var _local3:int = _props.length; while (_local3--) { _local4 = _props[_local3]; if (_ct[_local4] != _arg2[_local4]){ _tweens[_tweens.length] = new PropTween(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false); }; }; } } }//package com.greensock.plugins
Section 29
//TweenPlugin (com.greensock.plugins.TweenPlugin) package com.greensock.plugins { import com.greensock.core.*; import com.greensock.*; public class TweenPlugin { public var activeDisable:Boolean; protected var _changeFactor:Number;// = 0 protected var _tweens:Array; public var onDisable:Function; public var propName:String; public var round:Boolean; public var onEnable:Function; public var priority:int;// = 0 public var overwriteProps:Array; public var onComplete:Function; public static const VERSION:Number = 1.31; public static const API:Number = 1; public function TweenPlugin(){ _tweens = []; super(); } protected function updateTweens(_arg1:Number):void{ var _local3:PropTween; var _local4:Number; var _local2:int = _tweens.length; if (this.round){ while (_local2--) { _local3 = _tweens[_local2]; _local4 = (_local3.start + (_local3.change * _arg1)); _local3.target[_local3.property] = ((_local4)>0) ? int((_local4 + 0.5)) : int((_local4 - 0.5)); }; } else { while (_local2--) { _local3 = _tweens[_local2]; _local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1)); }; }; } protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{ var _local6:Number; if (_arg4 != null){ _local6 = ((typeof(_arg4))=="number") ? (Number(_arg4) - _arg3) : Number(_arg4); if (_local6 != 0){ _tweens[_tweens.length] = new PropTween(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false); }; }; } public function get changeFactor():Number{ return (_changeFactor); } public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName); return (true); } public function killProps(_arg1:Object):void{ var _local2:int = this.overwriteProps.length; while (_local2--) { if ((this.overwriteProps[_local2] in _arg1)){ this.overwriteProps.splice(_local2, 1); }; }; _local2 = _tweens.length; while (_local2--) { if ((PropTween(_tweens[_local2]).name in _arg1)){ _tweens.splice(_local2, 1); }; }; } public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _changeFactor = _arg1; } public static function activate(_arg1:Array):Boolean{ var _local3:Object; TweenLite.onPluginEvent = TweenPlugin.onTweenEvent; var _local2:int = _arg1.length; while (_local2--) { if (_arg1[_local2].hasOwnProperty("API")){ _local3 = new ((_arg1[_local2] as Class)); TweenLite.plugins[_local3.propName] = _arg1[_local2]; }; }; return (true); } private static function onTweenEvent(_arg1:String, _arg2:TweenLite):Boolean{ var _local4:Boolean; var _local5:Array; var _local6:int; var _local3:PropTween = _arg2.cachedPT1; if (_arg1 == "onInit"){ _local5 = []; while (_local3) { _local5[_local5.length] = _local3; _local3 = _local3.nextNode; }; _local5.sortOn("priority", (Array.NUMERIC | Array.DESCENDING)); _local6 = _local5.length; while (_local6--) { PropTween(_local5[_local6]).nextNode = _local5[(_local6 + 1)]; PropTween(_local5[_local6]).prevNode = _local5[(_local6 - 1)]; }; _arg2.cachedPT1 = _local5[0]; } else { while (_local3) { if (((_local3.isPlugin) && (_local3.target[_arg1]))){ if (_local3.target.activeDisable){ _local4 = true; }; var _local7 = _local3.target; _local7[_arg1](); }; _local3 = _local3.nextNode; }; }; return (_local4); } } }//package com.greensock.plugins
Section 30
//VisiblePlugin (com.greensock.plugins.VisiblePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; public class VisiblePlugin extends TweenPlugin { protected var _target:Object; protected var _initVal:Boolean; protected var _visible:Boolean; protected var _tween:TweenLite; public static const API:Number = 1; public function VisiblePlugin(){ this.propName = "visible"; this.overwriteProps = ["visible"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ _target = _arg1; _tween = _arg3; _initVal = _target.visible; _visible = Boolean(_arg2); return (true); } override public function set changeFactor(_arg1:Number):void{ if ((((_arg1 == 1)) && ((((_tween.cachedDuration == _tween.cachedTime)) || ((_tween.cachedTime == 0)))))){ _target.visible = _visible; } else { _target.visible = _initVal; }; } } }//package com.greensock.plugins
Section 31
//VolumePlugin (com.greensock.plugins.VolumePlugin) package com.greensock.plugins { import flash.display.*; import com.greensock.*; import flash.media.*; public class VolumePlugin extends TweenPlugin { protected var _target:Object; protected var _st:SoundTransform; public static const API:Number = 1; public function VolumePlugin(){ this.propName = "volume"; this.overwriteProps = ["volume"]; } override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{ if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){ return (false); }; _target = _arg1; _st = _target.soundTransform; addTween(_st, "volume", _st.volume, _arg2, "volume"); return (true); } override public function set changeFactor(_arg1:Number):void{ updateTweens(_arg1); _target.soundTransform = _st; } } }//package com.greensock.plugins
Section 32
//OverwriteManager (com.greensock.OverwriteManager) package com.greensock { import com.greensock.core.*; import flash.utils.*; import flash.errors.*; public class OverwriteManager { public static const ALL_ONSTART:int = 4; public static const CONCURRENT:int = 3; public static const ALL_IMMEDIATE:int = 1; public static const PREEXISTING:int = 5; public static const AUTO:int = 2; public static const version:Number = 6; public static const NONE:int = 0; public static var enabled:Boolean; public static var mode:int; public static function getGlobalPaused(_arg1:TweenCore):Boolean{ while (_arg1) { if (_arg1.cachedPaused){ return (true); }; _arg1 = _arg1.timeline; }; return (false); } public static function init(_arg1:int=2):int{ if (TweenLite.version < 11.099994){ throw (new Error("Warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.")); }; TweenLite.overwriteManager = OverwriteManager; mode = _arg1; enabled = true; return (mode); } public static function manageOverwrites(_arg1:TweenLite, _arg2:Object, _arg3:Array, _arg4:uint):Boolean{ var _local5:int; var _local6:Boolean; var _local7:TweenLite; var _local13:uint; var _local14:Number; var _local15:Number; var _local16:TweenCore; var _local17:Number; var _local18:SimpleTimeline; if (_arg4 >= 4){ _local13 = _arg3.length; _local5 = 0; while (_local5 < _local13) { _local7 = _arg3[_local5]; if (_local7 != _arg1){ if (_local7.setEnabled(false, false)){ _local6 = true; }; } else { if (_arg4 == 5){ break; }; }; _local5++; }; return (_local6); }; var _local8:Number = _arg1.startTime; var _local9:Array = []; var _local10:Array = []; var _local11:uint; var _local12:uint; _local5 = _arg3.length; while (_local5--) { _local7 = _arg3[_local5]; if ((((_local7 == _arg1)) || (_local7.gc))){ } else { if (_local7.timeline != _arg1.timeline){ if (!getGlobalPaused(_local7)){ var _temp1 = _local11; _local11 = (_local11 + 1); var _local19 = _temp1; _local10[_local19] = _local7; }; } else { if ((((((_local7.startTime <= _local8)) && (((_local7.startTime + _local7.totalDuration) > _local8)))) && (!(getGlobalPaused(_local7))))){ var _temp2 = _local12; _local12 = (_local12 + 1); _local19 = _temp2; _local9[_local19] = _local7; }; }; }; }; if (_local11 != 0){ _local14 = _arg1.cachedTimeScale; _local15 = _local8; _local18 = _arg1.timeline; while (_local18) { _local14 = (_local14 * _local18.cachedTimeScale); _local15 = (_local15 + _local18.startTime); _local18 = _local18.timeline; }; _local8 = (_local14 * _local15); _local5 = _local11; while (_local5--) { _local16 = _local10[_local5]; _local14 = _local16.cachedTimeScale; _local15 = _local16.startTime; _local18 = _local16.timeline; while (_local18) { _local14 = (_local14 * _local18.cachedTimeScale); _local15 = (_local15 + _local18.startTime); _local18 = _local18.timeline; }; _local17 = (_local14 * _local15); if ((((_local17 <= _local8)) && (((((_local17 + (_local16.totalDuration * _local14)) > _local8)) || ((_local16.cachedDuration == 0)))))){ var _temp3 = _local12; _local12 = (_local12 + 1); _local19 = _temp3; _local9[_local19] = _local16; }; }; }; if (_local12 == 0){ return (_local6); }; _local5 = _local12; if (_arg4 == 2){ while (_local5--) { _local7 = _local9[_local5]; if (_local7.killVars(_arg2)){ _local6 = true; }; if ((((_local7.cachedPT1 == null)) && (_local7.initted))){ _local7.setEnabled(false, false); }; }; } else { while (_local5--) { if (TweenLite(_local9[_local5]).setEnabled(false, false)){ _local6 = true; }; }; }; return (_local6); } } }//package com.greensock
Section 33
//TweenLite (com.greensock.TweenLite) package com.greensock { import flash.display.*; import flash.events.*; import com.greensock.core.*; import flash.utils.*; import com.greensock.plugins.*; public class TweenLite extends TweenCore { protected var _hasPlugins:Boolean; public var propTweenLookup:Object; public var cachedPT1:PropTween; protected var _overwrite:uint; protected var _ease:Function; public var target:Object; public var ratio:Number;// = 0 protected var _overwrittenProps:Object; protected var _notifyPluginsOfEnabled:Boolean; public static const version:Number = 11.12; public static var rootTimeline:SimpleTimeline; public static var fastEaseLookup:Dictionary = new Dictionary(false); public static var onPluginEvent:Function; public static var rootFramesTimeline:SimpleTimeline; public static var defaultEase:Function = TweenLite.easeOut; public static var plugins:Object = {}; public static var masterList:Dictionary = new Dictionary(false); public static var overwriteManager:Object; public static var rootFrame:Number; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _shape:Shape = new Shape(); protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1}; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local5:TweenLite; super(_arg2, _arg3); this.target = _arg1; if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){ this.cachedTimeScale = 1; }; propTweenLookup = {}; _ease = defaultEase; _overwrite = (((!(("overwrite" in _arg3))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); var _local4:Array = masterList[_arg1]; if (!_local4){ masterList[_arg1] = [this]; } else { if (_overwrite == 1){ for each (_local5 in _local4) { if (!_local5.gc){ _local5.setEnabled(false, false); }; }; masterList[_arg1] = [this]; } else { _local4[_local4.length] = this; }; }; if (((this.active) || (this.vars.immediateRender))){ renderTime(0, false, true); }; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local4:Boolean; var _local5:Number = this.cachedTime; if (((!(this.active)) && (!(this.cachedPaused)))){ this.active = true; }; if (_arg1 >= this.cachedDuration){ this.cachedTotalTime = (this.cachedTime = this.cachedDuration); this.ratio = 1; _local4 = true; if (this.cachedDuration == 0){ if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){ _arg3 = true; }; _rawPrevTime = _arg1; }; } else { if (_arg1 <= 0){ this.cachedTotalTime = (this.cachedTime = (this.ratio = 0)); if (_arg1 < 0){ this.active = false; if (this.cachedDuration == 0){ if (_rawPrevTime > 0){ _arg3 = true; _local4 = true; }; _rawPrevTime = _arg1; }; }; if (((this.cachedReversed) && (!((_local5 == 0))))){ _local4 = true; }; } else { this.cachedTotalTime = (this.cachedTime = _arg1); this.ratio = _ease(_arg1, 0, 1, this.cachedDuration); }; }; if ((((this.cachedTime == _local5)) && (!(_arg3)))){ return; }; if (!this.initted){ init(); if (((!(_local4)) && (this.cachedTime))){ this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration); }; }; if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){ this.vars.onStart.apply(null, this.vars.onStartParams); }; var _local6:PropTween = this.cachedPT1; while (_local6) { _local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change)); _local6 = _local6.nextNode; }; if (((_hasUpdate) && (!(_arg2)))){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local4){ if (((_hasPlugins) && (this.cachedPT1))){ onPluginEvent("onComplete", this); }; complete(true, _arg2); }; } override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{ var _local3:Array; if (_arg1 == this.gc){ if (_arg1){ _local3 = TweenLite.masterList[this.target]; if (!_local3){ TweenLite.masterList[this.target] = [this]; } else { _local3[_local3.length] = this; }; }; super.setEnabled(_arg1, _arg2); if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){ return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this)); }; }; return (false); } protected function init():void{ var _local1:String; var _local2:int; var _local3:*; var _local4:Boolean; var _local5:Array; var _local6:PropTween; if (typeof(this.vars.ease) == "function"){ _ease = this.vars.ease; }; if (this.vars.easeParams){ this.vars.proxiedEase = _ease; _ease = easeProxy; }; this.cachedPT1 = null; this.propTweenLookup = {}; for (_local1 in this.vars) { if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){ } else { if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){ this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1); if (this.cachedPT1.name == "_MULTIPLE_"){ _local2 = _local3.overwriteProps.length; while (_local2--) { this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1; }; } else { this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1; }; if (_local3.priority){ this.cachedPT1.priority = _local3.priority; _local4 = true; }; if (((_local3.onDisable) || (_local3.onEnable))){ _notifyPluginsOfEnabled = true; }; _hasPlugins = true; } else { this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1); this.propTweenLookup[_local1] = this.cachedPT1; }; }; }; if (_local4){ onPluginEvent("onInit", this); }; if (this.vars.runBackwards){ _local6 = this.cachedPT1; while (_local6) { _local6.start = (_local6.start + _local6.change); _local6.change = -(_local6.change); _local6 = _local6.nextNode; }; }; _hasUpdate = Boolean(!((this.vars.onUpdate == null))); if (_overwrittenProps){ killVars(_overwrittenProps); if (this.cachedPT1 == null){ this.setEnabled(false, false); }; }; if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){ if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){ init(); }; }; this.initted = true; } public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{ var _local3:String; var _local4:PropTween; var _local5:Boolean; if (_overwrittenProps == null){ _overwrittenProps = {}; }; for (_local3 in _arg1) { if ((_local3 in propTweenLookup)){ _local4 = propTweenLookup[_local3]; if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){ _local4.target.killProps(_arg1); if (_local4.target.overwriteProps.length == 0){ _local4.name = ""; }; }; if (_local4.name != "_MULTIPLE_"){ if (_local4.nextNode){ _local4.nextNode.prevNode = _local4.prevNode; }; if (_local4.prevNode){ _local4.prevNode.nextNode = _local4.nextNode; } else { if (this.cachedPT1 == _local4){ this.cachedPT1 = _local4.nextNode; }; }; if (((_local4.isPlugin) && (_local4.target.onDisable))){ _local4.target.onDisable(); if (_local4.target.activeDisable){ _local5 = true; }; }; delete propTweenLookup[_local3]; }; }; if (_arg2){ _overwrittenProps[_local3] = 1; }; }; return (_local5); } override public function invalidate():void{ if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){ onPluginEvent("onDisable", this); }; this.cachedPT1 = null; _overwrittenProps = null; _hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false))); this.propTweenLookup = {}; } public static function initClass():void{ rootFrame = 0; rootTimeline = new SimpleTimeline(null); rootFramesTimeline = new SimpleTimeline(null); rootTimeline.cachedStartTime = (getTimer() * 0.001); rootFramesTimeline.cachedStartTime = rootFrame; rootTimeline.autoRemoveChildren = true; rootFramesTimeline.autoRemoveChildren = true; _shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; } public static function killTweensOf(_arg1:Object, _arg2:Boolean=false):void{ var _local3:Array; var _local4:int; if ((_arg1 in masterList)){ _local3 = masterList[_arg1]; _local4 = _local3.length; while (_local4--) { if (!TweenLite(_local3[_local4]).gc){ if (_arg2){ TweenLite(_local3[_local4]).complete(false, false); } else { TweenLite(_local3[_local4]).setEnabled(false, false); }; }; }; delete masterList[_arg1]; }; } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (new TweenLite(_arg1, _arg2, _arg3)); } protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (1 - (_arg1 / _arg4)); return ((1 - (_arg1 * _arg1))); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0})); } protected static function updateAll(_arg1:Event=null):void{ var _local2:Dictionary; var _local3:Object; var _local4:Array; var _local5:int; rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false); rootFrame++; rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false); if (!(rootFrame % 60)){ _local2 = masterList; for (_local3 in _local2) { _local4 = _local2[_local3]; _local5 = _local4.length; while (_local5--) { if (TweenLite(_local4[_local5]).gc){ _local4.splice(_local5, 1); }; }; if (_local4.length == 0){ delete _local2[_local3]; }; }; }; } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package com.greensock
Section 34
//TweenMax (com.greensock.TweenMax) package com.greensock { import flash.display.*; import flash.events.*; import com.greensock.core.*; import flash.utils.*; import com.greensock.plugins.*; import com.greensock.events.*; public class TweenMax extends TweenLite implements IEventDispatcher { protected var _easeType:uint; public var yoyo:Boolean; protected var _easePower:uint; protected var _repeat:int;// = 0 protected var _cyclesComplete:uint;// = 0 protected var _dispatcher:EventDispatcher; protected var _hasUpdateListener:Boolean; protected var _repeatDelay:Number;// = 0 public static const version:Number = 11.12; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(2); ; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); if (TweenLite.version < 11.1){ throw (new Error("TweenMax error! Please update your TweenLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.")); }; this.yoyo = Boolean(this.vars.yoyo); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); this.cacheIsDirty = true; if (((((((((this.vars.onCompleteListener) || (this.vars.onUpdateListener))) || (this.vars.onStartListener))) || (this.vars.onRepeatListener))) || (this.vars.onReverseCompleteListener))){ initDispatcher(); if ((((_arg2 == 0)) && ((_delay == 0)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); }; }; if (((("timeScale" in this.vars)) && (!((this.target is TweenCore))))){ this.cachedTimeScale = this.vars.timeScale; }; } override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{ var _local6:Boolean; var _local7:Boolean; var _local8:Boolean; var _local10:Number; var _local11:uint; var _local12:Number; if (((!(this.active)) && (!(this.cachedPaused)))){ this.active = true; }; var _local4:Number = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration; var _local5:Number = this.cachedTime; if (_arg1 >= _local4){ this.cachedTotalTime = _local4; this.cachedTime = this.cachedDuration; this.ratio = 1; _local6 = true; if (this.cachedDuration == 0){ if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){ _arg3 = true; }; _rawPrevTime = _arg1; }; } else { if (_arg1 <= 0){ if (_arg1 < 0){ this.active = false; if (this.cachedDuration == 0){ if (_rawPrevTime > 0){ _arg3 = true; _local6 = true; }; _rawPrevTime = _arg1; }; }; this.cachedTotalTime = (this.cachedTime = (this.ratio = 0)); if (((this.cachedReversed) && (!((_local5 == 0))))){ _local6 = true; }; } else { this.cachedTotalTime = (this.cachedTime = _arg1); _local8 = true; }; }; if (_repeat != 0){ _local10 = (this.cachedDuration + _repeatDelay); if (_local6){ if (((this.yoyo) && ((_repeat % 2)))){ this.cachedTime = (this.ratio = 0); }; } else { if (_arg1 > 0){ if (_cyclesComplete != (_cyclesComplete = int((this.cachedTotalTime / _local10)))){ _local7 = true; }; this.cachedTime = (((this.cachedTotalTime / _local10) - _cyclesComplete) * _local10); if (((this.yoyo) && ((_cyclesComplete % 2)))){ this.cachedTime = (this.cachedDuration - this.cachedTime); } else { if (this.cachedTime >= this.cachedDuration){ this.cachedTime = this.cachedDuration; this.ratio = 1; _local8 = false; }; }; if (this.cachedTime <= 0){ this.cachedTime = (this.ratio = 0); _local8 = false; }; }; }; }; if ((((_local5 == this.cachedTime)) && (!(_arg3)))){ return; }; if (!this.initted){ init(); }; if (_local8){ if (_easeType){ _local11 = _easePower; _local12 = (this.cachedTime / this.cachedDuration); if (_easeType == 2){ _local12 = (1 - _local12); this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; this.ratio = (1 - this.ratio); } else { if (_easeType == 1){ this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; } else { if (_local12 < 0.5){ _local12 = (_local12 * 2); this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; this.ratio = (this.ratio * 0.5); } else { _local12 = ((1 - _local12) * 2); this.ratio = _local12; while (_local11--) { this.ratio = (_local12 * this.ratio); }; this.ratio = (1 - (0.5 * this.ratio)); }; }; }; } else { this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration); }; }; if ((((((_local5 == 0)) && (!((this.cachedTotalTime == 0))))) && (!(_arg2)))){ if (this.vars.onStart){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); }; }; var _local9:PropTween = this.cachedPT1; while (_local9) { _local9.target[_local9.property] = (_local9.start + (this.ratio * _local9.change)); _local9 = _local9.nextNode; }; if (((_hasUpdate) && (!(_arg2)))){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (((_hasUpdateListener) && (!(_arg2)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); }; if (_local6){ if (((_hasPlugins) && (this.cachedPT1))){ onPluginEvent("onComplete", this); }; complete(true, _arg2); } else { if (((_local7) && (!(_arg2)))){ if (this.vars.onRepeat){ this.vars.onRepeat.apply(null, this.vars.onRepeatParams); }; if (_dispatcher){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REPEAT)); }; }; }; } public function willTrigger(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.willTrigger(_arg1)); } protected function insertPropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String, _arg6:Boolean, _arg7:PropTween):PropTween{ var _local9:Array; var _local10:int; var _local8:PropTween = new PropTween(_arg1, _arg2, _arg3, ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4), _arg5, _arg6, _arg7); if (((_arg6) && ((_arg5 == "_MULTIPLE_")))){ _local9 = _arg1.overwriteProps; _local10 = _local9.length; while (_local10--) { this.propTweenLookup[_local9[_local10]] = _local8; }; } else { this.propTweenLookup[_arg5] = _local8; }; return (_local8); } override protected function init():void{ var _local1:TweenMax; var _local2:int; var _local3:String; var _local4:String; var _local5:Array; var _local6:Object; var _local7:PropTween; var _local8:PropTween; var _local9:int; if (this.vars.startAt){ this.vars.startAt.overwrite = 0; this.vars.startAt.immediateRender = true; _local1 = new TweenMax(this.target, 0, this.vars.startAt); }; super.init(); if ((_ease in fastEaseLookup)){ _easeType = fastEaseLookup[_ease][0]; _easePower = fastEaseLookup[_ease][1]; }; if (((!((this.vars.roundProps == null))) && (("roundProps" in TweenLite.plugins)))){ _local5 = this.vars.roundProps; _local9 = _local5.length; while (_local9--) { _local3 = _local5[_local9]; _local8 = this.cachedPT1; while (_local8) { if (_local8.name == _local3){ if (_local8.isPlugin){ _local8.target.round = true; } else { if (_local6 == null){ _local6 = new TweenLite.plugins.roundProps(); _local6.add(_local8.target, _local3, _local8.start, _local8.change); _hasPlugins = true; _local7 = insertPropTween(_local6, "changeFactor", 0, 1, "_MULTIPLE_", true, this.cachedPT1); this.cachedPT1 = _local7; } else { _local6.add(_local8.target, _local3, _local8.start, _local8.change); }; this.removePropTween(_local8); this.propTweenLookup[_local3] = _local7; }; } else { if (((((_local8.isPlugin) && ((_local8.name == "_MULTIPLE_")))) && (!(_local8.target.round)))){ _local4 = ((" " + _local8.target.overwriteProps.join(" ")) + " "); if (_local4.indexOf(((" " + _local3) + " ")) != -1){ _local8.target.round = true; }; }; }; _local8 = _local8.nextNode; }; }; }; } public function get totalProgress():Number{ return ((this.cachedTotalTime / this.totalDuration)); } public function set currentProgress(_arg1:Number):void{ if (_cyclesComplete == 0){ setTotalTime((this.duration * _arg1), false); } else { setTotalTime(((this.duration * _arg1) + (_cyclesComplete * this.cachedDuration)), false); }; } protected function adjustStartValues():void{ var _local1:Number; var _local2:PropTween; var _local3:Number; if (this.cachedTime != 0){ _local1 = (1 / (1 - this.ratio)); _local2 = this.cachedPT1; while (_local2) { if (!_local2.isPlugin){ _local3 = (_local2.start + _local2.change); _local2.change = ((_local3 - _local2.target[_local2.property]) * _local1); _local2.start = (_local3 - _local2.change); _local2 = _local2.nextNode; }; }; }; } public function get repeat():int{ return (_repeat); } public function set totalProgress(_arg1:Number):void{ setTotalTime((this.totalDuration * _arg1), false); } protected function removePropTween(_arg1:PropTween):Boolean{ if (_arg1.nextNode){ _arg1.nextNode.prevNode = _arg1.prevNode; }; if (_arg1.prevNode){ _arg1.prevNode.nextNode = _arg1.nextNode; } else { if (this.cachedPT1 == _arg1){ this.cachedPT1 = _arg1.nextNode; }; }; if (((_arg1.isPlugin) && (_arg1.target.onDisable))){ _arg1.target.onDisable(); if (_arg1.target.activeDisable){ return (true); }; }; return (false); } public function get repeatDelay():Number{ return (_repeatDelay); } protected function updateTo(_arg1:Object, _arg2:Boolean=true):void{ var _local5:String; var _local6:Object; var _local7:Boolean; var _local8:Object; var _local9:int; var _local3:PropTween = this.cachedPT1; var _local4:Number = this.cachedTotalTime; if (this.initted){ if (!_arg2){ this.totalTime = 0; }; killVars(_arg1, false); for (_local5 in _arg1) { if ((_local5 in _reservedProps)){ } else { if ((((_local5 in plugins)) && (new ((plugins[_local5] as Class)).onInitTween(this.target, _arg1[_local5], this)))){ _local8 = {}; _local9 = _local6.overwriteProps.length; while (_local9--) { _local8[_local6.overwriteProps[_local9]] = true; }; killVars(_local8, false); this.cachedPT1 = insertPropTween(_local6, "changeFactor", 0, 1, ((_local6.overwriteProps.length)==1) ? _local6.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1); _hasPlugins = true; if (_local6.priority){ this.cachedPT1.priority = _local6.priority; _local7 = true; }; } else { this.cachedPT1 = insertPropTween(this.target, _local5, this.target[_local5], _arg1[_local5], _local5, false, this.cachedPT1); }; }; this.vars[_local5] = _arg1[_local5]; }; if (_local7){ onPluginEvent("onInit", this); }; if (((_arg2) && (this.cachedTotalTime))){ adjustStartValues(); }; } else { for (_local5 in _arg1) { this.vars[_local5] = _arg1[_local5]; }; }; } public function killProperties(_arg1:Array):void{ var _local2:Object = {}; var _local3:int = _arg1.length; while (_local3--) { _local2[_arg1[_local3]] = true; }; killVars(_local2); } public function set repeat(_arg1:int):void{ _repeat = _arg1; setDirtyCache(true); } override public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{ super.complete(_arg1, _arg2); if (((!(_arg2)) && (_dispatcher))){ if ((((this.cachedTotalTime == this.cachedTotalDuration)) && (!(this.cachedReversed)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } else { if (((this.cachedReversed) && ((this.cachedTotalTime == 0)))){ _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.REVERSE_COMPLETE)); }; }; }; } override public function invalidate():void{ this.yoyo = Boolean((this.vars.yoyo == true)); _repeat = ((this.vars.repeat) || (0)); _repeatDelay = ((this.vars.repeatDelay) || (0)); _hasUpdateListener = false; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); }; setDirtyCache(true); super.invalidate(); } public function dispatchEvent(_arg1:Event):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.dispatchEvent(_arg1)); } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local4:Object = {}; _local4[_arg1] = _arg2; updateTo(_local4, _arg3); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ initDispatcher(); }; if (_arg1 == TweenEvent.UPDATE){ _hasUpdateListener = true; }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function set repeatDelay(_arg1:Number):void{ _repeatDelay = _arg1; setDirtyCache(true); } override public function set currentTime(_arg1:Number):void{ if (_cyclesComplete == 0){ } else { if (((this.yoyo) && (((_cyclesComplete % 2) == 1)))){ _arg1 = ((this.duration - _arg1) + (_cyclesComplete * (this.cachedDuration + _repeatDelay))); } else { _arg1 = (_arg1 + (_cyclesComplete * (this.duration + _repeatDelay))); }; }; setTotalTime(_arg1, false); } public function get currentProgress():Number{ return ((this.cachedTime / this.duration)); } protected function initDispatcher():void{ if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); }; if ((this.vars.onStartListener is Function)){ _dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true); }; if ((this.vars.onUpdateListener is Function)){ _dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true); _hasUpdateListener = true; }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; if ((this.vars.onRepeatListener is Function)){ _dispatcher.addEventListener(TweenEvent.REPEAT, this.vars.onRepeatListener, false, 0, true); }; if ((this.vars.onReverseCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.REVERSE_COMPLETE, this.vars.onReverseCompleteListener, false, 0, true); }; } override public function set totalDuration(_arg1:Number):void{ if (_repeat == -1){ return; }; this.duration = ((_arg1 - (_repeat * _repeatDelay)) / (_repeat + 1)); } public function hasEventListener(_arg1:String):Boolean{ return (((_dispatcher)==null) ? false : _dispatcher.hasEventListener(_arg1)); } override public function get totalDuration():Number{ if (this.cacheIsDirty){ this.cachedTotalDuration = ((_repeat)==-1) ? 999999999999 : ((this.cachedDuration * (_repeat + 1)) + (_repeatDelay * _repeat)); this.cacheIsDirty = false; }; return (this.cachedTotalDuration); } public function set timeScale(_arg1:Number):void{ if (_arg1 == 0){ _arg1 = 0.0001; }; var _local2:Number = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime; this.cachedStartTime = (_local2 - (((_local2 - this.cachedStartTime) * this.cachedTimeScale) / _arg1)); this.cachedTimeScale = _arg1; setDirtyCache(false); } public function get timeScale():Number{ return (this.cachedTimeScale); } public static function set globalTimeScale(_arg1:Number):void{ if (_arg1 == 0){ _arg1 = 0.0001; }; if (TweenLite.rootTimeline == null){ TweenLite.to({}, 0, {}); }; var _local2:SimpleTimeline = TweenLite.rootTimeline; var _local3:Number = (getTimer() * 0.001); _local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1)); _local2 = TweenLite.rootFramesTimeline; _local3 = TweenLite.rootFrame; _local2.cachedStartTime = (_local3 - (((_local3 - _local2.cachedStartTime) * _local2.cachedTimeScale) / _arg1)); TweenLite.rootFramesTimeline.cachedTimeScale = (TweenLite.rootTimeline.cachedTimeScale = _arg1); } public static function fromTo(_arg1:Object, _arg2:Number, _arg3:Object, _arg4:Object):TweenMax{ _arg4.startAt = _arg3; if (_arg3.immediateRender){ _arg4.immediateRender = true; }; return (new TweenMax(_arg1, _arg2, _arg4)); } public static function allFromTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Object, _arg5:Number=0, _arg6:Function=null, _arg7:Array=null):Array{ _arg4.startAt = _arg3; if (_arg3.immediateRender){ _arg4.immediateRender = true; }; return (allTo(_arg1, _arg2, _arg4, _arg5, _arg6, _arg7)); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=true):void{ changePause(true, _arg1, _arg2); } public static function getTweensOf(_arg1:Object):Array{ var _local4:int; var _local2:Array = masterList[_arg1]; var _local3:Array = []; if (_local2){ _local4 = _local2.length; while (_local4--) { if (!_local2[_local4].gc){ _local3[_local3.length] = _local2[_local4]; }; }; }; return (_local3); } public static function get globalTimeScale():Number{ return (((TweenLite.rootTimeline)==null) ? 1 : TweenLite.rootTimeline.cachedTimeScale); } public static function killChildTweensOf(_arg1:DisplayObjectContainer, _arg2:Boolean=false):void{ var _local4:Object; var _local5:DisplayObjectContainer; var _local3:Array = getAllTweens(); var _local6:int = _local3.length; while (_local6--) { _local4 = _local3[_local6].target; if ((_local4 is DisplayObject)){ _local5 = _local4.parent; while (_local5) { if (_local5 == _arg1){ if (_arg2){ _local3[_local6].complete(false); } else { _local3[_local6].setEnabled(false, false); }; }; _local5 = _local5.parent; }; }; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local4:TweenLite; var _local2:Array = getTweensOf(_arg1); var _local3:int = _local2.length; while (_local3--) { _local4 = _local2[_local3]; if (((_local4.active) || ((((_local4.cachedStartTime == _local4.timeline.cachedTime)) && (_local4.timeline.active))))){ return (true); }; }; return (false); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = _local4.length; while (_local6--) { _local5 = (_local4[_local6].target == _local4[_local6].vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ if (_arg1){ _local4[_local6].complete(false); } else { _local4[_local6].setEnabled(false, false); }; }; }; } private static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local5:Boolean; var _local4:Array = getAllTweens(); var _local6:int = _local4.length; while (_local6--) { _local5 = (TweenLite(_local4[_local6]).target == TweenLite(_local4[_local6]).vars.onComplete); if ((((_local5 == _arg3)) || (!((_local5 == _arg2))))){ TweenCore(_local4[_local6]).paused = _arg1; }; }; } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ _arg3.runBackwards = true; if (!("immediateRender" in _arg3)){ _arg3.immediateRender = true; }; return (allTo(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6)); } public static function getAllTweens():Array{ var _local4:Array; var _local5:int; var _local1:Dictionary = masterList; var _local2:uint; var _local3:Array = []; for each (_local4 in _local1) { _local5 = _local4.length; while (_local5--) { if (!TweenLite(_local4[_local5]).gc){ var _temp1 = _local2; _local2 = (_local2 + 1); var _local8 = _temp1; _local3[_local8] = _local4[_local5]; }; }; }; return (_local3); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=true):void{ changePause(false, _arg1, _arg2); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object, _arg4:Number=0, _arg5:Function=null, _arg6:Array=null):Array{ var i:int; var varsDup:Object; var p:String; var onCompleteProxy:Function; var onCompleteParamsProxy:Array; var targets = _arg1; var duration = _arg2; var vars = _arg3; var stagger = _arg4; var onCompleteAll = _arg5; var onCompleteAllParams = _arg6; var l:uint = targets.length; var a:Array = []; var curDelay:Number = ((vars.delay) || (0)); onCompleteProxy = vars.onComplete; onCompleteParamsProxy = vars.onCompleteParams; var lastIndex:int = ((stagger)<=0) ? 0 : (l - 1); i = 0; while (i < l) { varsDup = {}; for (p in vars) { varsDup[p] = vars[p]; }; varsDup.delay = curDelay; if ((((i == lastIndex)) && (!((onCompleteAll == null))))){ varsDup.onComplete = function ():void{ if (onCompleteProxy != null){ onCompleteProxy.apply(null, onCompleteParamsProxy); }; onCompleteAll.apply(null, onCompleteAllParams); }; }; a[a.length] = new TweenMax(targets[i], duration, varsDup); curDelay = (curDelay + stagger); i = (i + 1); }; return (a); } TweenPlugin.activate([AutoAlphaPlugin, EndArrayPlugin, FramePlugin, RemoveTintPlugin, TintPlugin, VisiblePlugin, VolumePlugin, BevelFilterPlugin, BezierPlugin, BezierThroughPlugin, BlurFilterPlugin, ColorMatrixFilterPlugin, ColorTransformPlugin, DropShadowFilterPlugin, FrameLabelPlugin, GlowFilterPlugin, HexColorsPlugin, RoundPropsPlugin, ShortRotationPlugin, {}]); } }//package com.greensock
Section 35
//ArrayUtils (com.stampy.arrays.ArrayUtils) package com.stampy.arrays { public class ArrayUtils { public static function arrayContains(_arg1:Array, _arg2):Boolean{ var _local3:uint = _arg1.length; var _local4:int; while (_local4 < _local3) { if (_arg1[_local4] == _arg2){ return (true); }; _local4++; }; return (false); } public static function randomArray(_arg1:Array):Array{ var _local2:Array = new Array(); while (_arg1.length > 0) { _local2.push(_arg1.splice(Math.floor((Math.random() * _arg1.length)), 1)); }; return (_local2); } } }//package com.stampy.arrays
Section 36
//Cookie (com.stampy.cookies.Cookie) package com.stampy.cookies { import flash.net.*; import flash.utils.*; public class Cookie { public static function addCookieUser(_arg1:String, _arg2:String, _arg3:Object):void{ var _local4:SharedObject = getCookie(_arg1); var _local5:Boolean = _local4.data.hasOwnProperty("users"); if (_local5){ _local4.data.users[_arg2] = _arg3; flushCookie(_local4); } else { addCookieUserStore(_arg1); addCookieUser(_arg1, _arg2, _arg3); }; } public static function addCookieUserStore(_arg1:String):void{ var _local2:SharedObject = getCookie(_arg1); _local2.data.users = new Dictionary(); flushCookie(_local2); } public static function getCookieUser(_arg1:String, _arg2:String=""):Object{ var _local5:Object; var _local3:SharedObject = getCookie(_arg1); var _local4:Boolean = _local3.data.hasOwnProperty("users"); if (_local4){ _local5 = _local3.data.users[_arg2]; } else { addCookieUserStore(_arg1); }; return (_local5); } public static function addCookieLastUser(_arg1:String, _arg2:String=""):void{ var _local3:SharedObject = getCookie((_arg1 + "Last")); _local3.data.LastUser = _arg2; flushCookie(_local3); } private static function flushCookie(_arg1:SharedObject):void{ var soCookie = _arg1; try { soCookie.flush(); } catch(e:Error) { }; } public static function getCookie(_arg1:String):SharedObject{ var _local2:SharedObject = SharedObject.getLocal(_arg1); return (_local2); } public static function getCookieLastUser(_arg1:String):Object{ var _local4:String; var _local5:Object; var _local2:SharedObject = getCookie((_arg1 + "Last")); var _local3:Boolean = _local2.data.hasOwnProperty("LastUser"); if (_local3){ _local4 = _local2.data.LastUser; _local5 = getCookieUser(_arg1, _local4); }; return (_local5); } } }//package com.stampy.cookies
Section 37
//FlashCookie (com.stampy.cookies.FlashCookie) package com.stampy.cookies { public class FlashCookie { private var _strCookieName:String;// = "none" private var _cookie:Object; public function FlashCookie(_arg1:String, _arg2:Object, _arg3:String="guestUser"):void{ _strCookieName = _arg1; _cookie = Cookie.getCookieUser(_strCookieName, _arg3); if (_cookie == null){ Cookie.addCookieUser(_strCookieName, _arg3, _arg2); }; } public function getFromCookie(_arg1:String, _arg2:String="guestUser"){ var _local3:String; _cookie = getCookie(_arg2); for (_local3 in _cookie) { if (_local3 == _arg1){ return (_cookie[_local3]); }; }; return (null); } public function getCookie(_arg1:String="guestUser"):Object{ _cookie = Cookie.getCookieUser(_strCookieName, _arg1); return (_cookie); } public function updateCookieVar(_arg1:String, _arg2, _arg3:String="guestUser"):void{ var _local4:String; _cookie = getCookie(_arg3); for (_local4 in _cookie) { if (_local4 == _arg1){ _cookie[_local4] = _arg2; }; }; updateCookie(_cookie, _arg3); } public function updateCookie(_arg1:Object, _arg2:String="guestUser"):void{ Cookie.addCookieUser(_strCookieName, _arg2, _arg1); } public function get cookieName():String{ return (_strCookieName); } } }//package com.stampy.cookies
Section 38
//FrameUtils (com.stampy.frames.FrameUtils) package com.stampy.frames { import flash.display.*; public class FrameUtils { public static function onEveryFrame(_arg1, _arg2:Function):void{ var _local4:uint; var _local5:uint; var _local6:uint; var _local3:uint = _arg1.framesLoaded; if ((_arg1 is MovieClip)){ _local4 = 1; while (_local4 <= _local3) { onEnterFrame(_local4, _arg1, _arg2); _local4++; }; } else { if ((_arg1 is Array)){ _local5 = _arg1.length; _local6 = 0; while (_local6 < _local5) { onEveryFrame(_arg1[_local6], _arg2); _local6++; }; }; }; } public static function onEnterFrame(_arg1, _arg2, _arg3:Function, ... _args):void{ var _local5:uint; var _local6:uint; var _local7:uint; var _local8:uint; if ((_arg2 is MovieClip)){ if ((_arg1 is uint)){ _arg2.addFrameScript((_arg1 - 1), _arg3); } else { if ((_arg1 is String)){ _arg2.addFrameScript((frameNumByLabel(_arg1, _arg2) - 1), _arg3); } else { if ((_arg1 is Array)){ _local5 = _arg1.length; _local6 = 0; while (_local6 < _local5) { onEnterFrame(_arg1[_local6], _arg2, _arg3); _local6++; }; }; }; }; }; if ((_arg2 is Array)){ _local7 = _arg2.length; _local8 = 0; while (_local8 < _local7) { onEnterFrame(_arg1, _arg2[_local8], _arg3); _local8++; }; }; } public static function frameNumByLabel(_arg1:String, _arg2:MovieClip):Number{ var _local3:uint = _arg2.currentLabels.length; var _local4:uint; while (_local4 < _local3) { if (_arg2.currentLabels[_local4].name == _arg1){ return (_arg2.currentLabels[_local4].frame); }; _local4++; }; return (1); } } }//package com.stampy.frames
Section 39
//PowerLoader (com.stampy.preloader.PowerLoader) package com.stampy.preloader { import flash.display.*; import flash.events.*; import flash.net.*; import flash.media.*; public class PowerLoader extends EventDispatcher { private var _urlLoader:URLLoader; private var _method:String; private var _sound:Sound; private var _loader:Loader; private function loadError(_arg1:IOErrorEvent):void{ dispatchEvent(_arg1); } public function load(_arg1:String){ switch (getFileExtension(_arg1)){ case "xml": default: _method = "_urlLoader"; _urlLoader = new URLLoader(); _urlLoader.addEventListener(Event.COMPLETE, loadComplete); _urlLoader.addEventListener(ProgressEvent.PROGRESS, loadProgress); _urlLoader.addEventListener(IOErrorEvent.IO_ERROR, loadError); _urlLoader.load(new URLRequest(_arg1)); break; case "jpg": case "bmp": case "gif": case "png": case "swf": _method = "_loader"; _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); _loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); _loader.load(new URLRequest(_arg1)); break; case "mp3": _method = "_sound"; _sound = new Sound(); _sound.addEventListener(Event.COMPLETE, loadComplete); _sound.addEventListener(ProgressEvent.PROGRESS, loadProgress); _sound.addEventListener(IOErrorEvent.IO_ERROR, loadError); _sound.load(new URLRequest(_arg1)); break; }; } private function loadProgress(_arg1:ProgressEvent):void{ dispatchEvent(_arg1); } private function getFileExtension(_arg1:String):String{ var _local2 = "."; if (_arg1 == null){ return (""); }; var _local3:int = _arg1.lastIndexOf(_local2); if (_local3 == -1){ return (""); }; _local3 = (_local3 + _local2.length); return (_arg1.substr(_local3)); } public function get content(){ switch (_method){ case "_urlLoader": return (this[_method].data); case "_loader": return (this[_method].content); case "_sound": return (_sound); }; return (null); } private function loadComplete(_arg1:Event):void{ dispatchEvent(_arg1); } } }//package com.stampy.preloader
Section 40
//Random (com.stampy.random.Random) package com.stampy.random { import com.stampy.arrays.*; public class Random { public static function boolean():Boolean{ return (((range(1, 2))==1) ? true : false); } public static function range(_arg1:Number, _arg2:Number):Number{ return ((Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1)); } public static function rangeWithExceptions(_arg1:Number, _arg2, _arg3:Array):Number{ var _local4:Number = 0; do { _local4 = range(_arg1, _arg2); } while (ArrayUtils.arrayContains(_arg3, _local4)); return (_local4); } } }//package com.stampy.random
Section 41
//StringUtils (com.stampy.strings.StringUtils) package com.stampy.strings { public class StringUtils { private static function _swapCase(_arg1:String, ... _args):String{ var _local3:String = _arg1.toLowerCase(); var _local4:String = _arg1.toUpperCase(); switch (_arg1){ case _local3: return (_local4); case _local4: return (_local3); default: return (_arg1); }; } public static function isEmpty(_arg1:String):Boolean{ if (_arg1 == null){ return (true); }; return (!(_arg1.length)); } public static function remove(_arg1:String, _arg2:String, _arg3:Boolean=true):String{ if (_arg1 == null){ return (""); }; var _local4:String = escapePattern(_arg2); var _local5:String = (_arg3) ? "g" : "ig"; return (_arg1.replace(new RegExp(_local4, _local5), "")); } public static function countOf(_arg1:String, _arg2:String, _arg3:Boolean=true):uint{ if (_arg1 == null){ return (0); }; var _local4:String = escapePattern(_arg2); var _local5:String = (_arg3) ? "g" : "ig"; return (_arg1.match(new RegExp(_local4, _local5)).length); } public static function between(_arg1:String, _arg2:String, _arg3:String):String{ var _local6:int; var _local4 = ""; if (_arg1 == null){ return (_local4); }; var _local5:int = _arg1.indexOf(_arg2); if (_local5 != -1){ _local5 = (_local5 + _arg2.length); _local6 = _arg1.indexOf(_arg3, _local5); if (_local6 != -1){ _local4 = _arg1.substr(_local5, (_local6 - _local5)); }; }; return (_local4); } public static function padRight(_arg1:String, _arg2:String, _arg3:uint):String{ var _local4:String = _arg1; while (_local4.length < _arg3) { _local4 = (_local4 + _arg2); }; return (_local4); } public static function isNumeric(_arg1:String):Boolean{ if (_arg1 == null){ return (false); }; var _local2:RegExp = /^[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$/; return (_local2.test(_arg1)); } public static function block(_arg1:String, _arg2:uint, _arg3:String="."):Array{ var _local8:String; var _local4:Array = new Array(); if ((((_arg1 == null)) || (!(contains(_arg1, _arg3))))){ return (_local4); }; var _local5:uint; var _local6:uint = _arg1.length; var _local7:RegExp = new RegExp((("[^" + escapePattern(_arg3)) + "]+$")); while (_local5 < _local6) { _local8 = _arg1.substr(_local5, _arg2); if (!contains(_local8, _arg3)){ _local4.push(truncate(_local8, _local8.length)); _local5 = (_local5 + _local8.length); }; _local8 = _local8.replace(_local7, ""); _local4.push(_local8); _local5 = (_local5 + _local8.length); }; return (_local4); } public static function trim(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.replace(/^\s+|\s+$/g, "")); } public static function beginsWith(_arg1:String, _arg2:String):Boolean{ if (_arg1 == null){ return (false); }; return ((_arg1.indexOf(_arg2) == 0)); } public static function stripTags(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.replace(/<\/?[^>]+>/igm, "")); } public static function afterLast(_arg1:String, _arg2:String):String{ if (_arg1 == null){ return (""); }; var _local3:int = _arg1.lastIndexOf(_arg2); if (_local3 == -1){ return (""); }; _local3 = (_local3 + _arg2.length); return (_arg1.substr(_local3)); } private static function _minimum(_arg1:uint, _arg2:uint, _arg3:uint):uint{ return (Math.min(_arg1, Math.min(_arg2, Math.min(_arg3, _arg1)))); } private static function escapePattern(_arg1:String):String{ return (_arg1.replace(/(\]|\[|\{|\}|\(|\)|\*|\+|\?|\.|\\)/g, "\\$1")); } public static function removeExtraWhitespace(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:String = trim(_arg1); return (_local2.replace(/\s+/g, " ")); } public static function trimRight(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.replace(/\s+$/, "")); } public static function endsWith(_arg1:String, _arg2:String):Boolean{ return ((_arg1.lastIndexOf(_arg2) == (_arg1.length - _arg2.length))); } public static function contains(_arg1:String, _arg2:String):Boolean{ if (_arg1 == null){ return (false); }; return (!((_arg1.indexOf(_arg2) == -1))); } public static function properCase(_arg1:String):String{ if (_arg1 == null){ return (""); }; var _local2:String = _arg1.toLowerCase().replace(/\b([^.?;!]+)/, capitalize); return (_local2.replace(/\b[i]\b/, "I")); } public static function trimLeft(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.replace(/^\s+/, "")); } public static function similarity(_arg1:String, _arg2:String):Number{ var _local3:uint = editDistance(_arg1, _arg2); var _local4:uint = Math.max(_arg1.length, _arg2.length); if (_local4 == 0){ return (100); }; return (((1 - (_local3 / _local4)) * 100)); } public static function wordCount(_arg1:String):uint{ if (_arg1 == null){ return (0); }; return (_arg1.match(/\b\w+\b/g).length); } public static function editDistance(_arg1:String, _arg2:String):uint{ var _local3:uint; var _local5:uint; var _local8:uint; var _local9:String; var _local10:String; if (_arg1 == null){ _arg1 = ""; }; if (_arg2 == null){ _arg2 = ""; }; if (_arg1 == _arg2){ return (0); }; var _local4:Array = new Array(); var _local6:uint = _arg1.length; var _local7:uint = _arg2.length; if (_local6 == 0){ return (_local7); }; if (_local7 == 0){ return (_local6); }; _local3 = 0; while (_local3 <= _local6) { _local4[_local3] = new Array(); _local3++; }; _local3 = 0; while (_local3 <= _local6) { _local4[_local3][0] = _local3; _local3++; }; _local8 = 0; while (_local8 <= _local7) { _local4[0][_local8] = _local8; _local8++; }; _local3 = 1; while (_local3 <= _local6) { _local9 = _arg1.charAt((_local3 - 1)); _local8 = 1; while (_local8 <= _local7) { _local10 = _arg2.charAt((_local8 - 1)); if (_local9 == _local10){ _local5 = 0; } else { _local5 = 1; }; _local4[_local3][_local8] = _minimum((_local4[(_local3 - 1)][_local8] + 1), (_local4[_local3][(_local8 - 1)] + 1), (_local4[(_local3 - 1)][(_local8 - 1)] + _local5)); _local8++; }; _local3++; }; return (_local4[_local6][_local7]); } public static function hasText(_arg1:String):Boolean{ var _local2:String = removeExtraWhitespace(_arg1); return (!(!(_local2.length))); } public static function reverse(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.split("").reverse().join("")); } public static function swapCase(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.replace(/(\w)/, _swapCase)); } public static function capitalize(_arg1:String, ... _args):String{ var _local3:String = trimLeft(_arg1); if (_args[0] === true){ return (_local3.replace(/^.|\b./g, _upperCase)); }; return (_local3.replace(/(^\w)/, _upperCase)); } public static function truncate(_arg1:String, _arg2:uint, _arg3:String="..."):String{ if (_arg1 == null){ return (""); }; _arg2 = (_arg2 - _arg3.length); var _local4:String = _arg1; if (_local4.length > _arg2){ _local4 = _local4.substr(0, _arg2); if (/[^\s]/.test(_arg1.charAt(_arg2))){ _local4 = trimRight(_local4.replace(/\w+$|\s+$/, "")); }; _local4 = (_local4 + _arg3); }; return (_local4); } public static function reverseWords(_arg1:String):String{ if (_arg1 == null){ return (""); }; return (_arg1.split(/\s+/).reverse().join("")); } public static function beforeFirst(_arg1:String, _arg2:String):String{ if (_arg1 == null){ return (""); }; var _local3:int = _arg1.indexOf(_arg2); if (_local3 == -1){ return (""); }; return (_arg1.substr(0, _local3)); } private static function _upperCase(_arg1:String, ... _args):String{ return (_arg1.toUpperCase()); } public static function afterFirst(_arg1:String, _arg2:String):String{ if (_arg1 == null){ return (""); }; var _local3:int = _arg1.indexOf(_arg2); if (_local3 == -1){ return (""); }; _local3 = (_local3 + _arg2.length); return (_arg1.substr(_local3)); } public static function beforeLast(_arg1:String, _arg2:String):String{ if (_arg1 == null){ return (""); }; var _local3:int = _arg1.lastIndexOf(_arg2); if (_local3 == -1){ return (""); }; return (_arg1.substr(0, _local3)); } public static function padLeft(_arg1:String, _arg2:String, _arg3:uint):String{ var _local4:String = _arg1; while (_local4.length < _arg3) { _local4 = (_arg2 + _local4); }; return (_local4); } public static function quote(_arg1:String):String{ var _local2:RegExp = /[\\"\r\n]/g; return ((("\"" + _arg1.replace(_local2, _quote)) + "\"")); } private static function _quote(_arg1:String, ... _args):String{ switch (_arg1){ case "\\": return ("\\\\"); case "\r": return ("\\r"); case "\n": return ("\\n"); case "\"": return ("\\\""); default: return (""); }; } } }//package com.stampy.strings
Section 42
//SendReceiveData (console.loaders.SendReceiveData) package console.loaders { import flash.events.*; import flash.net.*; public class SendReceiveData extends EventDispatcher { public var _loader:URLLoader; public var _errorMessage:String; public static const DATA_LOADED:String = "Data Loaded"; public static const DATA_ERROR:String = "Data Error"; public function sendData(_arg1:String, _arg2:URLVariables):void{ var _local3:URLRequest = new URLRequest(_arg1); _local3.data = _arg2; _local3.method = URLRequestMethod.POST; _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, onComplete); _loader.addEventListener(IOErrorEvent.IO_ERROR, onError); _loader.load(_local3); } public function onComplete(_arg1:Event){ dispatchEvent(new Event(SendReceiveData.DATA_LOADED)); } public function onError(_arg1:IOErrorEvent){ _errorMessage = _arg1.text; dispatchEvent(new Event(SendReceiveData.DATA_ERROR)); } } }//package console.loaders
Section 43
//OpenURL (console.loadurl.OpenURL) package console.loadurl { import flash.net.*; import flash.external.*; public class OpenURL { public static function loadURL(_arg1:String, _arg2:String="_blank"):void{ var url = _arg1; var window = _arg2; var WINDOW_OPEN_FUNCTION = "window.open"; if (ExternalInterface.available){ try { ExternalInterface.call(WINDOW_OPEN_FUNCTION, url, window); } catch(e:Error) { navigateToURL(new URLRequest(url), window); }; //unresolved jump }; } public static function navigateURL_JS(_arg1:String):void{ var _local2:* = (("window.open('" + _arg1) + "', 'PopUpWindow');"); var _local3:* = new URLRequest((("javascript:" + _local2) + "void(0);")); navigateToURL(_local3); } public static function navigateURL(_arg1:String, _arg2:String="_blank"):void{ navigateToURL(new URLRequest(_arg1), _arg2); } } }//package console.loadurl
Section 44
//GamePreloader (console.preloader.GamePreloader) package console.preloader { import flash.display.*; import flash.events.*; import flash.utils.*; public class GamePreloader extends MovieClip { private var _preloadList:Dictionary; private var _percentLoaded:Number;// = 0 private var _bytesLoaded:Number;// = 0 private var _bytesTotal:Number;// = 0 public static const COMPLETE:String = "Complete"; public static const PROGRESS:String = "Progress"; public function GamePreloader():void{ _preloadList = new Dictionary(true); this.addEventListener(Event.ADDED_TO_STAGE, onStage); } private function handleFrame(_arg1:Event):void{ _bytesTotal = stage.loaderInfo.bytesTotal; _bytesLoaded = stage.loaderInfo.bytesLoaded; _percentLoaded = Math.floor((_bytesLoaded * (100 / _bytesTotal))); dispatch(PROGRESS); if (_percentLoaded >= 99){ stage.removeEventListener(Event.ENTER_FRAME, handleFrame); dispatch(COMPLETE); this.parent.removeChild(this); }; } private function onStage(_arg1:Event):void{ this.removeEventListener(Event.ADDED_TO_STAGE, onStage); init(); } public function get percentLoaded():Number{ return (_percentLoaded); } private function init():void{ stage.addEventListener(Event.ENTER_FRAME, handleFrame); } public function get bytesTotal():Number{ return (_bytesTotal); } private function dispatch(_arg1:String):void{ dispatchEvent(new Event(_arg1)); } public function get bytesLoaded():Number{ return (_bytesLoaded); } } }//package console.preloader
Section 45
//Ranking (console.scores.Ranking) package console.scores { import flash.events.*; public class Ranking { protected static var _disp:EventDispatcher; private static var _rankList:XMLList; private static var _rank:uint = 0; private static var _rankXML:Scores; private static var _score:Number; private static var _debug:Boolean; public static function dispatchEvent(_arg1:Event):void{ if (_disp == null){ return; }; _disp.dispatchEvent(_arg1); } public static function findRank(_arg1:Number, _arg2:String, _arg3:Boolean=false):void{ _debug = _arg3; message("---------------- FIND RANK -----------------"); message(("Score:" + _arg1)); message(("URL:" + _arg2)); _score = _arg1; _rankXML = new Scores(); _rankXML.addEventListener(Event.COMPLETE, gotRankXML); _rankXML.load(_arg2); } private static function message(_arg1):void{ if (_debug){ }; } public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_disp == null){ return; }; _disp.removeEventListener(_arg1, _arg2, _arg3); } public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_disp == null){ _disp = new EventDispatcher(); }; _disp.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } private static function setRank(_arg1:uint):void{ message(("set rank:" + _arg1)); if (_rank == 0){ _rank = _arg1; dispatchEvent(new Event(Event.COMPLETE)); }; } private static function detectRank():void{ var _local2:*; var _local3:*; var _local4:int; message("detecting rank"); _rank = 0; var _local1:uint = _rankList.length(); if (_score < int(_rankList[(_local1 - 1)].@player_score)){ setRank((int(_rankList[(_local1 - 1)].@player_rank) + 1)); } else { if (_score > int(_rankList[0].@player_score)){ if (int(_rankList[0].@player_rank) > 1){ setRank((int(_rankList[0].@player_rank) - 1)); } else { setRank(int(_rankList[0].@player_rank)); }; } else { _local4 = (_local1 - 1); while (_local4 > 0) { _local2 = _rankList[_local4]; _local3 = _rankList[(_local4 - 1)]; if (_score == int(_local2.@player_score)){ setRank(int(_local2.@player_rank)); } else { if (_score == int(_local3.@player_score)){ setRank(int(_local3.@player_rank)); } else { if ((((_score > int(_local2.@player_score))) && ((_score < int(_local3.@player_score))))){ calculateBetweenRank(_score, _local2, _local3); }; }; }; _local4--; }; }; }; } private static function calculateBetweenRank(_arg1:Number, _arg2, _arg3):void{ var _local7:int; var _local8:Number; var _local9:Number; var _local4:* = (int(_arg3.@player_score) - int(_arg2.@player_score)); var _local5:* = (int(_arg2.@player_rank) - int(_arg3.@player_rank)); var _local6:uint = Math.round((_local4 / _local5)); message(((((("calculate between rank:" + _arg2.@player_rank) + ":") + _arg3.@player_rank) + " rank score segment value:") + _local6)); if (_local5 == 1){ message("no difference in rank"); setRank(int(_arg2.@player_rank)); } else { if (_local5 == 2){ setRank((int(_arg3.@player_rank) + 1)); } else { message("checking each segment for a match"); _local7 = 1; while (_local7 < (_local5 + 1)) { _local8 = (int(_arg3.@player_score) - (_local6 * (_local7 - 1))); _local9 = (int(_arg3.@player_score) - (_local6 * _local7)); message(("is score less than or equal to " + _local8.toString())); message(("and is score greater than or equal to " + _local9.toString())); if ((((_arg1 <= _local8)) && ((_arg1 >= _local9)))){ setRank((int(_arg3.@player_rank) + _local7)); }; _local7++; }; }; }; } public static function get rank():uint{ return (_rank); } private static function gotRankXML(_arg1:Event):void{ message("XML Recieved"); message("------- XML ------"); message(_rankXML.data); _rankXML.removeEventListener(Event.COMPLETE, gotRankXML); _rankList = new XMLList(_rankXML.data); detectRank(); } } }//package console.scores
Section 46
//Scores (console.scores.Scores) package console.scores { import flash.events.*; import com.stampy.preloader.*; public class Scores extends EventDispatcher { private var _xmlFile:XMLList; private var _scoresXML_loader:PowerLoader; private function load_complete(_arg1:Event):void{ _xmlFile = XMLList(_arg1.target.content); dispatchEvent(_arg1); } private function load_progress(_arg1:ProgressEvent):void{ dispatchEvent(_arg1); } public function load(_arg1:String){ _scoresXML_loader = new PowerLoader(); _scoresXML_loader.addEventListener(Event.COMPLETE, load_complete); _scoresXML_loader.addEventListener(ProgressEvent.PROGRESS, load_progress); _scoresXML_loader.addEventListener(IOErrorEvent.IO_ERROR, load_error); _scoresXML_loader.load(_arg1); } public function get data():XMLList{ return (new XMLList(_xmlFile[0].scores.entry)); } public function set xml(_arg1:XMLList):void{ _xmlFile = _arg1; } private function load_error(_arg1:IOErrorEvent):void{ dispatchEvent(_arg1); } } }//package console.scores
Section 47
//Token (console.security.Token) package console.security { import flash.events.*; import flash.net.*; import com.adobe.crypto.*; import console.loaders.*; public class Token { public static const TOKEN_GENERATED:String = "Token Generated"; private static var _success:Function; private static var _strAction:String = "request_token"; private static var _strOriginalToken:String; private static var _requestToken:SendReceiveData; private static var _strUrl:String; private static var _isDebugging:Boolean = true; private static var _retry:uint = 0; private static var _loadedVars:URLVariables; private static var _loadToken:URLLoader; private static var _strFinalToken:String; private static function loadError(_arg1:Error):void{ if (_retry == 0){ _retry++; request(_strUrl, _success, _isDebugging); //unresolved jump }; } public static function get encypted():String{ return (_strFinalToken); } private static function debug(_arg1):void{ if (_isDebugging){ }; } public static function md5Token(_arg1:String):String{ var _local2:String = MD5.hash(_arg1); return (_local2); } public static function request(_arg1:String, _arg2:Function, _arg3:Boolean=true){ _strUrl = _arg1; _isDebugging = _arg3; debug(("DEBUG: Token.request | strURL = " + _arg1)); _success = _arg2; var _local4:URLVariables = new URLVariables(); _local4.action = _strAction; _requestToken = new SendReceiveData(); _requestToken.sendData(_arg1, _local4); _requestToken.addEventListener(SendReceiveData.DATA_LOADED, load); _requestToken.addEventListener(SendReceiveData.DATA_ERROR, loadError); } private static function load(_arg1:Event):void{ _loadToken = URLLoader(_arg1.target._loader); _loadedVars = new URLVariables(_loadToken.data); _strOriginalToken = _loadedVars.token; debug(("DEBUG: Token.load | original token = " + _strOriginalToken)); _strFinalToken = encrypt(_strOriginalToken); _success(); } public static function getVar(_arg1:String){ if (_loadedVars[_arg1]){ return (_loadedVars[_arg1]); }; return (null); } public static function get original():String{ return (_strOriginalToken); } public static function secret(_arg1, _arg2:Boolean=true):String{ var _local3:String; var _local4:String; var _local5:String; _isDebugging = _arg2; if (((!((_arg1 == null))) && (!((_strOriginalToken == null))))){ _local3 = _arg1.toString(); _local4 = (_strOriginalToken + _local3); _local5 = MD5.hash(_local4); debug(("DEBUG: Token.secret | encrypted secret = " + _local5)); return (_local5); }; return (""); } public static function encrypt(_arg1:String):String{ var _local2:String = _arg1.substr(28, 8); var _local3:String = MD5.hash(_local2); var _local4:* = Math.ceil((Math.random() * 1000000)); var _local5:* = Math.ceil((Math.random() * 1000000)); var _local6:* = Math.ceil((Math.random() * 1000000)); var _local7:String = (((MD5.hash(_local4) + MD5.hash(_local5)) + _local3) + MD5.hash(_local6)); debug(("DEBUG: Token.encrypt | encrypted token = " + _local7)); return (_local7); } } }//package console.security
Section 48
//SoundObject (console.sounds.SoundObject) package console.sounds { import flash.events.*; import gs.*; import flash.utils.*; import flash.media.*; public class SoundObject extends EventDispatcher { private var _isMute:Boolean;// = false private var _sndSound; private var _linkage:String; private var _channel:SoundChannel; private var _intMaxVolume:Number;// = 1 private var _onCompleteFunction:Function; private var _onCompleteParams; private var _isPlaying:Boolean;// = false private var _intVolume:Number;// = 1 private var _intLastPosition:Number;// = 0 private var _isLooping:Boolean;// = false private var _intLoopCount:uint;// = 0 private var _intPrevVolume:Number;// = 1 public function SoundObject(_arg1:String):void{ _linkage = _arg1; var _local2:Class = (getDefinitionByName(_arg1) as Class); _sndSound = new (_local2); _channel = new SoundChannel(); } public function fade(_arg1:Number, _arg2:Number):void{ if (!_isMute){ TweenLite.to(_channel, _arg2, {volume:_arg1}); }; } public function addComplete(_arg1:Function, ... _args):void{ _onCompleteFunction = _arg1; _onCompleteParams = _args; _channel.addEventListener(Event.SOUND_COMPLETE, soundComplete); } public function muteOff(_arg1:Number):void{ if (_isMute){ volume = _intPrevVolume; _isMute = false; }; } private function modifyVolume(_arg1:Number):void{ var mod1:SoundTransform; var value = _arg1; var intValue:Number = (value * _intMaxVolume); try { mod1 = new SoundTransform(); mod1.volume = intValue; _channel.soundTransform = mod1; } catch(evt:Error) { }; } public function muteOn(_arg1:Number=0):void{ if (!_isMute){ _intPrevVolume = volume; volume = 0; _isMute = true; }; } public function get mute():Boolean{ return (_isMute); } public function get currentPosition():Number{ return (_channel.position); } public function removeComplete():void{ _onCompleteFunction = null; _onCompleteParams = null; if (_channel.hasEventListener(Event.SOUND_COMPLETE)){ _channel.removeEventListener(Event.SOUND_COMPLETE, soundComplete); }; } public function set volume(_arg1:Number):void{ if (!_isMute){ _intVolume = _arg1; modifyVolume(_intVolume); }; } public function stop(_arg1:Event=null):void{ var evt = _arg1; try { _channel.removeEventListener(Event.SOUND_COMPLETE, stop); _isPlaying = false; _intLastPosition = _channel.position; _channel.stop(); } catch(evt:Error) { }; } public function get length():Number{ return (_sndSound.length); } public function get linkage():String{ return (_linkage); } private function soundComplete(_arg1:Event):void{ _arg1.target.removeEventListener(Event.SOUND_COMPLETE, soundComplete); _onCompleteFunction.apply(null, _onCompleteParams); } public function set maxVolume(_arg1:Number):void{ if ((((_arg1 >= 0)) && ((_arg1 <= 1)))){ _intMaxVolume = _arg1; volume = _intVolume; }; } public function get isPlaying():Boolean{ return (_isPlaying); } public function get volume():Number{ return (_intVolume); } public function play(_arg1:Boolean, _arg2:uint, _arg3:uint, _arg4:Boolean=false):void{ var newChannel:*; var isLooping = _arg1; var intLoopCount = _arg2; var intStartTime = _arg3; var isTempChannel = _arg4; _isLooping = isLooping; _intLoopCount = intLoopCount; _isPlaying = true; var intRepeatCount:* = (isLooping) ? intLoopCount : 0; try { if (isTempChannel){ newChannel = new SoundChannel(); newChannel = _sndSound.play(intStartTime, intRepeatCount); } else { _channel = _sndSound.play(intStartTime, intRepeatCount); }; modifyVolume(volume); _channel.addEventListener(Event.SOUND_COMPLETE, stop); } catch(evt:Error) { }; } public function resume():void{ if (!_isPlaying){ play(_isLooping, _intLoopCount, _intLastPosition, false); }; } } }//package console.sounds
Section 49
//SoundUtils (console.sounds.SoundUtils) package console.sounds { import gs.*; import flash.utils.*; import flash.media.*; public class SoundUtils { private static var _dictMusic:Dictionary = new Dictionary(); private static var _dictSFX:Dictionary = new Dictionary(); private static var _maxMusicVolume = 1; private static var _sfxChannelVolume:Number = 1; private static var _maxSFXVolume = 1; private static var _musicMute:Boolean = false; private static var _rememberValue:Boolean = true; private static var _musicChannelVolume:Number = 1; private static var _globalMute:Boolean = false; private static var _sfxMute:Boolean = false; public static function addMusic(_arg1:String, _arg2:Number=1):void{ var _local3:SoundObject = new SoundObject(_arg1); _local3.volume = _arg2; _dictMusic[_arg1] = _local3; } public static function fadeAll(_arg1:Number, _arg2:Number):void{ fadeSFXChannel(_arg1, _arg2); fadeMusicChannel(_arg1, _arg2); } public static function getVolumeSFXChannel():Number{ return (_sfxChannelVolume); } public static function setVolumeMusicChannel(_arg1:Number):void{ var _local2:SoundObject; for each (_local2 in _dictMusic) { _local2.volume = _arg1; }; } public static function fadeMusic(_arg1:String, _arg2:Number, _arg3:Number):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].fade(_arg2, _arg3); }; } public static function fadeSFXStop(_arg1:String, _arg2:Number, _arg3:Number):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].fade(_arg2, _arg3); TweenLite.to(_arg1, _arg3, {onComplete:stopSFX, onCompleteParams:[_arg1]}); }; } public static function muteMusic(_arg1:String, _arg2:Number=0):void{ var _local3:*; if ((_dictMusic[_arg1] is SoundObject)){ _local3 = _dictMusic[_arg1]; if (_local3.mute){ _local3.muteOff(_arg2); } else { _local3.muteOn(_arg2); }; }; } public static function isMusicPlaying(_arg1:String):Boolean{ return (_dictMusic[_arg1].isPlaying); } public static function resumeSFX(_arg1:String):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].resume(); }; } public static function setMaxVolumeMusicChannel(_arg1:Number):void{ var _local2:SoundObject; if (_rememberValue){ _musicChannelVolume = _arg1; }; _maxMusicVolume = _arg1; for each (_local2 in _dictMusic) { _local2.maxVolume = _arg1; }; } public static function muteGlobal():void{ if (!_globalMute){ try { _globalMute = true; SoundMixer.soundTransform = new SoundTransform(0); } catch(evt:Error) { }; } else { _globalMute = false; try { SoundMixer.soundTransform = new SoundTransform(1); } catch(evt:Error) { }; }; } public static function isMusicChannelMute():Boolean{ return (_musicMute); } public static function stopSFX(_arg1:String):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].stop(); }; } public static function addSFX(_arg1:String, _arg2:Number=1):void{ var _local3:SoundObject = new SoundObject(_arg1); _local3.volume = _arg2; _dictSFX[_arg1] = _local3; } public static function get isGlobalMute():Boolean{ return (_globalMute); } public static function getLengthMusic(_arg1:String):Number{ var _local2:Number = 0; if ((_dictMusic[_arg1] is SoundObject)){ _local2 = _dictMusic[_arg1].length; }; return (_local2); } public static function fadeMusicStop(_arg1:String, _arg2:Number, _arg3:Number):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].fade(_arg2, _arg3); TweenLite.to(_dictMusic[_arg1], _arg3, {onComplete:stopMusic, onCompleteParams:[_arg1]}); }; } public static function muteSFX(_arg1:String, _arg2:Number=0):void{ var _local3:*; if ((_dictSFX[_arg1] is SoundObject)){ _local3 = _dictSFX[_arg1]; if (_local3.mute){ _local3.muteOff(_arg2); } else { _local3.muteOn(_arg2); }; }; } public static function getMaxVolumeMusicChannel():Number{ return (_maxMusicVolume); } public static function playSFX(_arg1:String, _arg2:Boolean=false, _arg3:uint=999999, _arg4:uint=0, _arg5:Boolean=false):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].play(_arg2, _arg3, _arg4, _arg5); }; } public static function isSFXPlaying(_arg1:String):Boolean{ return (_dictSFX[_arg1].isPlaying); } public static function setMaxVolumeSFX(_arg1:String, _arg2:Number):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].maxVolume = _arg2; }; } public static function muteSFXChannel(_arg1:Number=0):void{ var _local2:SoundObject; var _local3:SoundObject; if (!_sfxMute){ _sfxMute = true; for each (_local2 in _dictSFX) { _local2.muteOn(_arg1); }; } else { _sfxMute = false; for each (_local3 in _dictSFX) { _local3.muteOff(_arg1); }; }; } public static function setMaxVolumeMusic(_arg1:String, _arg2:Number):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].maxVolume = _arg2; }; } public static function removeSFXComplete(_arg1:String){ _dictSFX[_arg1].removeComplete(); } public static function stopMusicChannel():void{ var _local1:SoundObject; for each (_local1 in _dictMusic) { _local1.stop(); }; } public static function isSFXChannelMuted():Boolean{ return (_sfxMute); } public static function getPositionMusic(_arg1:String):Number{ var _local2:Number = 0; if ((_dictMusic[_arg1] is SoundObject)){ _local2 = _dictMusic[_arg1].currentPosition; }; return (_local2); } public static function TrackChannelLastVolume(_arg1:Boolean):void{ _rememberValue = _arg1; } public static function fadeMusicChannel(_arg1:Number, _arg2:Number):void{ var _local3:SoundObject; for each (_local3 in _dictMusic) { _local3.fade(_arg1, _arg2); }; } public static function resumeSFXChannel():void{ var _local1:SoundObject; for each (_local1 in _dictSFX) { _local1.resume(); }; } public static function getMaxVolumeSFXChannel():Number{ return (_maxSFXVolume); } public static function getVolumeMusicChannel():Number{ return (_musicChannelVolume); } public static function muteAll(_arg1:Number=0):void{ muteSFXChannel(_arg1); muteMusicChannel(_arg1); } public static function setVolumeSFX(_arg1:String, _arg2:Number):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].volume = _arg2; }; } public static function playMusic(_arg1:String, _arg2:Boolean=false, _arg3:uint=999999, _arg4:uint=0):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].play(_arg2, _arg3, _arg4); }; } public static function stopMusic(_arg1:String):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].stop(); }; } public static function getVolumeSFX(_arg1:String):Number{ return (_dictSFX[_arg1].volume); } public static function fadeMusicChannelStop(_arg1:Number, _arg2:Number):void{ var _local3:SoundObject; for each (_local3 in _dictMusic) { _local3.fade(_arg1, _arg2); TweenLite.to(_local3, _arg2, {onComplete:stopMusic, onCompleteParams:[_local3.linkage]}); }; } public static function addMusicComplete(_arg1:String, _arg2:Function, ... _args){ _args.splice(0, 0, _arg2); _dictMusic[_arg1].addComplete.apply(null, _args); } public static function muteMusicChannel(_arg1:Number=0):void{ var _local2:SoundObject; var _local3:SoundObject; if (!_musicMute){ _musicMute = true; for each (_local2 in _dictMusic) { _local2.muteOn(_arg1); }; } else { _musicMute = false; for each (_local3 in _dictMusic) { _local3.muteOff(_arg1); }; }; } public static function removeMusicComplete(_arg1:String){ _dictMusic[_arg1].removeComplete(); } public static function fadeMusicPlay(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:uint=999999, _arg6:uint=0):void{ if ((_dictMusic[_arg1] is SoundObject)){ setVolumeMusic(_arg1, 0); playMusic(_arg1, _arg4, _arg5, _arg6); fadeMusic(_arg1, _arg2, _arg3); }; } public static function stopSFXChannel():void{ var _local1:SoundObject; for each (_local1 in _dictSFX) { _local1.stop(); }; } public static function fadeSFX(_arg1:String, _arg2:Number, _arg3:Number):void{ if ((_dictSFX[_arg1] is SoundObject)){ _dictSFX[_arg1].fade(_arg2, _arg3); }; } public static function resumeMusicChannel():void{ var _local1:SoundObject; for each (_local1 in _dictMusic) { _local1.resume(); }; } public static function setVolumeMusic(_arg1:String, _arg2:Number):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].volume = _arg2; }; } public static function fadeSFXChannel(_arg1:Number, _arg2:Number):void{ var _local3:SoundObject; for each (_local3 in _dictSFX) { _local3.fade(_arg1, _arg2); }; } public static function setMaxVolumeSFXChannel(_arg1:Number):void{ var _local2:SoundObject; if (_rememberValue){ _sfxChannelVolume = _arg1; }; _maxSFXVolume = _arg1; for each (_local2 in _dictSFX) { _local2.maxVolume = _arg1; }; } public static function getVolumeMusic(_arg1:String):Number{ return (_dictMusic[_arg1].volume); } public static function resumeMusic(_arg1:String):void{ if ((_dictMusic[_arg1] is SoundObject)){ _dictMusic[_arg1].resume(); }; } public static function setVolumeSFXChannel(_arg1:Number):void{ var _local2:SoundObject; for each (_local2 in _dictSFX) { _local2.volume = _arg1; }; } public static function fadeSFXChannelStop(_arg1:Number, _arg2:Number):void{ var _local3:SoundObject; for each (_local3 in _dictSFX) { _local3.fade(_arg1, _arg2); TweenLite.to(_local3, _arg2, {onComplete:stopSFX, onCompleteParams:[_local3.linkage]}); }; } public static function addSFXComplete(_arg1:String, _arg2:Function, ... _args){ _args.splice(0, 0, _arg2); _dictSFX[_arg1].addComplete.apply(null, _args); } } }//package console.sounds
Section 50
//MochiBot (console.trackers.MochiBot) package console.trackers { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ if (Security.sandboxType == "localWithFile"){ return (null); }; var _local3:MochiBot = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); var _local4 = "http://core.mochibot.com/my/core.swf"; var _local5:URLVariables = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; var _local6:String = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; var _local7:URLRequest = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; var _local8:Loader = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package console.trackers
Section 51
//BaseButton (fl.controls.BaseButton) package fl.controls { import flash.display.*; import fl.core.*; import flash.events.*; import flash.utils.*; import fl.events.*; public class BaseButton extends UIComponent { protected var pressTimer:Timer; protected var _autoRepeat:Boolean;// = false protected var _selected:Boolean;// = false protected var background:DisplayObject; private var unlockedMouseState:String; protected var mouseState:String; private var _mouseStateLocked:Boolean;// = false private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35}; public function BaseButton(){ buttonMode = true; mouseChildren = false; useHandCursor = false; setupMouseEvents(); setMouseState("up"); pressTimer = new Timer(1, 0); pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true); } override public function get enabled():Boolean{ return (super.enabled); } protected function startPress():void{ if (_autoRepeat){ pressTimer.delay = Number(getStyleValue("repeatDelay")); pressTimer.start(); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } override protected function draw():void{ if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } protected function drawLayout():void{ background.width = width; background.height = height; } override public function set enabled(_arg1:Boolean):void{ super.enabled = _arg1; mouseEnabled = _arg1; } public function set autoRepeat(_arg1:Boolean):void{ _autoRepeat = _arg1; } protected function mouseEventHandler(_arg1:MouseEvent):void{ if (_arg1.type == MouseEvent.MOUSE_DOWN){ setMouseState("down"); startPress(); } else { if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){ setMouseState("over"); endPress(); } else { if (_arg1.type == MouseEvent.ROLL_OUT){ setMouseState("up"); endPress(); }; }; }; } protected function drawBackground():void{ var _local1:String = (enabled) ? mouseState : "disabled"; if (selected){ _local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1)); }; _local1 = (_local1 + "Skin"); var _local2:DisplayObject = background; background = getDisplayObjectInstance(getStyleValue(_local1)); addChildAt(background, 0); if (((!((_local2 == null))) && (!((_local2 == background))))){ removeChild(_local2); }; } public function get selected():Boolean{ return (_selected); } protected function setupMouseEvents():void{ addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true); addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true); } protected function endPress():void{ pressTimer.reset(); } public function set mouseStateLocked(_arg1:Boolean):void{ _mouseStateLocked = _arg1; if (_arg1 == false){ setMouseState(unlockedMouseState); } else { unlockedMouseState = mouseState; }; } public function get autoRepeat():Boolean{ return (_autoRepeat); } public function set selected(_arg1:Boolean):void{ if (_selected == _arg1){ return; }; _selected = _arg1; invalidate(InvalidationType.STATE); } protected function buttonDown(_arg1:TimerEvent):void{ if (!_autoRepeat){ endPress(); return; }; if (pressTimer.currentCount == 1){ pressTimer.delay = Number(getStyleValue("repeatInterval")); }; dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true)); } public function setMouseState(_arg1:String):void{ if (_mouseStateLocked){ unlockedMouseState = _arg1; return; }; if (mouseState == _arg1){ return; }; mouseState = _arg1; invalidate(InvalidationType.STATE); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 52
//Button (fl.controls.Button) package fl.controls { import flash.display.*; import fl.core.*; import fl.managers.*; public class Button extends LabelButton implements IFocusManagerComponent { protected var _emphasized:Boolean;// = false protected var emphasizedBorder:DisplayObject; private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2}; public static var createAccessibilityImplementation:Function; public function set emphasized(_arg1:Boolean):void{ _emphasized = _arg1; invalidate(InvalidationType.STYLES); } override protected function initializeAccessibility():void{ if (Button.createAccessibilityImplementation != null){ Button.createAccessibilityImplementation(this); }; } protected function drawEmphasized():void{ var _local2:Number; if (emphasizedBorder != null){ removeChild(emphasizedBorder); }; emphasizedBorder = null; if (!_emphasized){ return; }; var _local1:Object = getStyleValue("emphasizedSkin"); if (_local1 != null){ emphasizedBorder = getDisplayObjectInstance(_local1); }; if (emphasizedBorder != null){ addChildAt(emphasizedBorder, 0); _local2 = Number(getStyleValue("emphasizedPadding")); emphasizedBorder.x = (emphasizedBorder.y = -(_local2)); emphasizedBorder.width = (width + (_local2 * 2)); emphasizedBorder.height = (height + (_local2 * 2)); }; } public function get emphasized():Boolean{ return (_emphasized); } override protected function draw():void{ if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){ drawEmphasized(); }; super.draw(); if (emphasizedBorder != null){ setChildIndex(emphasizedBorder, (numChildren - 1)); }; } override public function drawFocus(_arg1:Boolean):void{ var _local2:Number; var _local3:*; super.drawFocus(_arg1); if (_arg1){ _local2 = Number(getStyleValue("emphasizedPadding")); if ((((_local2 < 0)) || (!(_emphasized)))){ _local2 = 0; }; _local3 = getStyleValue("focusRectPadding"); _local3 = ((_local3)==null) ? 2 : _local3; _local3 = (_local3 + _local2); uiFocusRect.x = -(_local3); uiFocusRect.y = -(_local3); uiFocusRect.width = (width + (_local3 * 2)); uiFocusRect.height = (height + (_local3 * 2)); }; } public static function getStyleDefinition():Object{ return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles)); } } }//package fl.controls
Section 53
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement) package fl.controls { public class ButtonLabelPlacement { public static const TOP:String = "top"; public static const LEFT:String = "left"; public static const BOTTOM:String = "bottom"; public static const RIGHT:String = "right"; } }//package fl.controls
Section 54
//Label (fl.controls.Label) package fl.controls { import fl.core.*; import fl.events.*; import flash.text.*; public class Label extends UIComponent { protected var _savedHTML:String; protected var _html:Boolean;// = false public var textField:TextField; protected var actualHeight:Number; protected var actualWidth:Number; protected var defaultLabel:String;// = "Label" private static var defaultStyles:Object = {textFormat:null, embedFonts:false}; public function Label(){ text = defaultLabel; actualWidth = _width; actualHeight = _height; } override public function setSize(_arg1:Number, _arg2:Number):void{ actualWidth = _arg1; actualHeight = _arg2; super.setSize(_arg1, _arg2); } override protected function draw():void{ var _local1:Object; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawTextFormat(); _local1 = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; if (textField.autoSize != TextFieldAutoSize.NONE){ invalidate(InvalidationType.SIZE, false); }; }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; super.draw(); } override public function get width():Number{ if (((!((textField.autoSize == TextFieldAutoSize.NONE))) && (!(wordWrap)))){ return (_width); }; return (actualWidth); } public function get condenseWhite():Boolean{ return (textField.condenseWhite); } protected function drawLayout():void{ var _local2:Number; var _local3:Number; var _local1:Boolean; textField.width = width; textField.height = height; if (textField.autoSize != TextFieldAutoSize.NONE){ _local2 = textField.width; _local3 = textField.height; _local1 = ((!((_width == _local2))) || (!((_height == _local3)))); _width = _local2; _height = _local3; switch (textField.autoSize){ case TextFieldAutoSize.CENTER: textField.x = ((actualWidth / 2) - (textField.width / 2)); break; case TextFieldAutoSize.LEFT: textField.x = 0; break; case TextFieldAutoSize.RIGHT: textField.x = -((textField.width - actualWidth)); break; }; } else { textField.width = actualWidth; textField.height = actualHeight; textField.x = 0; }; if (_local1){ dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, true)); }; } public function get autoSize():String{ return (textField.autoSize); } override public function set width(_arg1:Number):void{ actualWidth = _arg1; super.width = _arg1; } public function get selectable():Boolean{ return (textField.selectable); } public function set condenseWhite(_arg1:Boolean):void{ textField.condenseWhite = _arg1; if (textField.autoSize != TextFieldAutoSize.NONE){ invalidate(InvalidationType.SIZE); }; } public function set text(_arg1:String):void{ if (_arg1 == text){ return; }; if (((componentInspectorSetting) && ((_arg1 == defaultLabel)))){ return; }; _html = false; textField.text = _arg1; if (textField.autoSize != TextFieldAutoSize.NONE){ invalidate(InvalidationType.SIZE); }; } override protected function configUI():void{ super.configUI(); textField = new TextField(); addChild(textField); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; textField.wordWrap = false; } public function set autoSize(_arg1:String):void{ textField.autoSize = _arg1; invalidate(InvalidationType.SIZE); } override public function get height():Number{ if (((!((textField.autoSize == TextFieldAutoSize.NONE))) && (wordWrap))){ return (_height); }; return (actualHeight); } public function set wordWrap(_arg1:Boolean):void{ textField.wordWrap = _arg1; if (textField.autoSize != TextFieldAutoSize.NONE){ invalidate(InvalidationType.SIZE); }; } public function set selectable(_arg1:Boolean):void{ textField.selectable = _arg1; } public function get text():String{ return (textField.text); } protected function drawTextFormat():void{ var _local2:Object; var _local1:TextFormat = (getStyleValue("textFormat") as TextFormat); if (_local1 == null){ _local2 = UIComponent.getStyleDefinition(); _local1 = (enabled) ? (_local2.defaultTextFormat as TextFormat) : (_local2.defaultDisabledTextFormat as TextFormat); }; textField.defaultTextFormat = _local1; textField.setTextFormat(_local1); if (((_html) && (!((_savedHTML == null))))){ htmlText = _savedHTML; }; } public function get wordWrap():Boolean{ return (textField.wordWrap); } public function set htmlText(_arg1:String):void{ if (_arg1 == htmlText){ return; }; if (((componentInspectorSetting) && ((_arg1 == "")))){ return; }; _html = true; _savedHTML = _arg1; textField.htmlText = _arg1; if (textField.autoSize != TextFieldAutoSize.NONE){ invalidate(InvalidationType.SIZE); }; } public function get htmlText():String{ return (textField.htmlText); } public static function getStyleDefinition():Object{ return (defaultStyles); } } }//package fl.controls
Section 55
//LabelButton (fl.controls.LabelButton) package fl.controls { import flash.display.*; import fl.core.*; import flash.events.*; import fl.managers.*; import fl.events.*; import flash.text.*; import flash.ui.*; public class LabelButton extends BaseButton implements IFocusManagerComponent { protected var _toggle:Boolean;// = false public var textField:TextField; protected var mode:String;// = "center" protected var _labelPlacement:String;// = "right" protected var oldMouseState:String; protected var _label:String;// = "Label" protected var icon:DisplayObject; private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false}; public static var createAccessibilityImplementation:Function; override protected function draw():void{ if (textField.text != _label){ label = _label; }; if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){ drawBackground(); drawIcon(); drawTextFormat(); invalidate(InvalidationType.SIZE, false); }; if (isInvalid(InvalidationType.SIZE)){ drawLayout(); }; if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override protected function drawLayout():void{ var _local7:Number; var _local8:Number; var _local1:Number = Number(getStyleValue("textPadding")); var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement; textField.height = (textField.textHeight + 4); var _local3:Number = (textField.textWidth + 4); var _local4:Number = (textField.textHeight + 4); var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1); var _local6:Number = ((icon)==null) ? 0 : (icon.height + _local1); textField.visible = (label.length > 0); if (icon != null){ icon.x = Math.round(((width - icon.width) / 2)); icon.y = Math.round(((height - icon.height) / 2)); }; if (textField.visible == false){ textField.width = 0; textField.height = 0; } else { if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){ _local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1)))); if ((height - 2) > _local4){ _local8 = _local4; } else { _local8 = (height - 2); }; _local3 = _local7; textField.width = _local3; _local4 = _local8; textField.height = _local4; textField.x = Math.round(((width - _local3) / 2)); textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0)); if (icon != null){ icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1)); }; } else { _local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1)))); _local3 = _local7; textField.width = _local3; textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0)); textField.y = Math.round(((height - textField.height) / 2)); if (icon != null){ icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1)); }; }; }; super.drawLayout(); } protected function toggleSelected(_arg1:MouseEvent):void{ selected = !(selected); dispatchEvent(new Event(Event.CHANGE, true)); } override protected function keyUpHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ setMouseState(oldMouseState); oldMouseState = null; endPress(); dispatchEvent(new MouseEvent(MouseEvent.CLICK)); }; } public function get labelPlacement():String{ return (_labelPlacement); } public function get toggle():Boolean{ return (_toggle); } protected function setEmbedFont(){ var _local1:Object = getStyleValue("embedFonts"); if (_local1 != null){ textField.embedFonts = _local1; }; } override public function get selected():Boolean{ return ((_toggle) ? _selected : false); } override protected function configUI():void{ super.configUI(); textField = new TextField(); textField.type = TextFieldType.DYNAMIC; textField.selectable = false; addChild(textField); } override protected function initializeAccessibility():void{ if (LabelButton.createAccessibilityImplementation != null){ LabelButton.createAccessibilityImplementation(this); }; } public function set labelPlacement(_arg1:String):void{ _labelPlacement = _arg1; invalidate(InvalidationType.SIZE); } protected function drawIcon():void{ var _local1:DisplayObject = icon; var _local2:String = (enabled) ? mouseState : "disabled"; if (selected){ _local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1)); }; _local2 = (_local2 + "Icon"); var _local3:Object = getStyleValue(_local2); if (_local3 == null){ _local3 = getStyleValue("icon"); }; if (_local3 != null){ icon = getDisplayObjectInstance(_local3); }; if (icon != null){ addChildAt(icon, 1); }; if (((!((_local1 == null))) && (!((_local1 == icon))))){ removeChild(_local1); }; } public function set label(_arg1:String):void{ _label = _arg1; if (textField.text != _label){ textField.text = _label; dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE)); }; invalidate(InvalidationType.SIZE); invalidate(InvalidationType.STYLES); } override protected function keyDownHandler(_arg1:KeyboardEvent):void{ if (!enabled){ return; }; if (_arg1.keyCode == Keyboard.SPACE){ if (oldMouseState == null){ oldMouseState = mouseState; }; setMouseState("down"); startPress(); }; } public function set toggle(_arg1:Boolean):void{ if (((!(_arg1)) && (super.selected))){ selected = false; }; _toggle = _arg1; if (_toggle){ addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true); } else { removeEventListener(MouseEvent.CLICK, toggleSelected); }; invalidate(InvalidationType.STATE); } override public function set selected(_arg1:Boolean):void{ _selected = _arg1; if (_toggle){ invalidate(InvalidationType.STATE); }; } protected function drawTextFormat():void{ var _local1:Object = UIComponent.getStyleDefinition(); var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat); textField.setTextFormat(_local2); var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat); if (_local3 != null){ textField.setTextFormat(_local3); } else { _local3 = _local2; }; textField.defaultTextFormat = _local3; setEmbedFont(); } public function get label():String{ return (_label); } public static function getStyleDefinition():Object{ return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition())); } } }//package fl.controls
Section 56
//ComponentShim (fl.core.ComponentShim) package fl.core { import flash.display.*; public dynamic class ComponentShim extends MovieClip { } }//package fl.core
Section 57
//InvalidationType (fl.core.InvalidationType) package fl.core { public class InvalidationType { public static const SIZE:String = "size"; public static const ALL:String = "all"; public static const DATA:String = "data"; public static const SCROLL:String = "scroll"; public static const STATE:String = "state"; public static const STYLES:String = "styles"; public static const SELECTED:String = "selected"; public static const RENDERER_STYLES:String = "rendererStyles"; } }//package fl.core
Section 58
//UIComponent (fl.core.UIComponent) package fl.core { import flash.display.*; import flash.events.*; import fl.managers.*; import flash.utils.*; import fl.events.*; import flash.text.*; import flash.system.*; public class UIComponent extends Sprite { protected var _x:Number; protected var _enabled:Boolean;// = true protected var callLaterMethods:Dictionary; private var _mouseFocusEnabled:Boolean;// = true private var tempText:TextField; private var _focusEnabled:Boolean;// = true protected var startHeight:Number; protected var _height:Number; protected var invalidateFlag:Boolean;// = false protected var _oldIMEMode:String;// = null protected var _inspector:Boolean;// = false protected var startWidth:Number; public var focusTarget:IFocusManagerComponent; protected var errorCaught:Boolean;// = false protected var invalidHash:Object; protected var sharedStyles:Object; protected var uiFocusRect:DisplayObject; protected var isLivePreview:Boolean;// = false protected var _imeMode:String;// = null protected var _width:Number; protected var instanceStyles:Object; public var version:String;// = "3.0.0.16" protected var isFocused:Boolean;// = false protected var _y:Number; public static var inCallLaterPhase:Boolean = false; private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)}; public static var createAccessibilityImplementation:Function; private static var focusManagers:Dictionary = new Dictionary(false); public function UIComponent(){ instanceStyles = {}; sharedStyles = {}; invalidHash = {}; callLaterMethods = new Dictionary(); StyleManager.registerInstance(this); configUI(); invalidate(InvalidationType.ALL); tabEnabled = (this is IFocusManagerComponent); focusRect = false; if (tabEnabled){ addEventListener(FocusEvent.FOCUS_IN, focusInHandler); addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler); addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); }; initializeFocusManager(); addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true); } public function getStyle(_arg1:String):Object{ return (instanceStyles[_arg1]); } protected function checkLivePreview():Boolean{ var className:String; if (parent == null){ return (false); }; try { className = getQualifiedClassName(parent); } catch(e:Error) { }; return ((className == "fl.livepreview::LivePreviewParent")); } private function callLaterDispatcher(_arg1:Event):void{ var _local3:Object; if (_arg1.type == Event.ADDED_TO_STAGE){ removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher); stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); return; }; _arg1.target.removeEventListener(Event.RENDER, callLaterDispatcher); if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); return; }; inCallLaterPhase = true; var _local2:Dictionary = callLaterMethods; for (_local3 in _local2) { _local3(); delete _local2[_local3]; }; inCallLaterPhase = false; } protected function validate():void{ invalidHash = {}; } protected function focusOutHandler(_arg1:FocusEvent):void{ if (isOurFocus((_arg1.target as DisplayObject))){ drawFocus(false); isFocused = false; }; } public function set mouseFocusEnabled(_arg1:Boolean):void{ _mouseFocusEnabled = _arg1; } public function getFocus():InteractiveObject{ if (stage){ return (stage.focus); }; return (null); } override public function get height():Number{ return (_height); } private function addedHandler(_arg1:Event):void{ removeEventListener("addedToStage", addedHandler); initializeFocusManager(); } protected function getStyleValue(_arg1:String):Object{ return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]); } public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{ invalidHash[_arg1] = true; if (_arg2){ this.callLater(draw); }; } protected function isOurFocus(_arg1:DisplayObject):Boolean{ return ((_arg1 == this)); } public function get enabled():Boolean{ return (_enabled); } protected function getScaleX():Number{ return (super.scaleX); } protected function getScaleY():Number{ return (super.scaleY); } public function get focusEnabled():Boolean{ return (_focusEnabled); } protected function afterComponentParameters():void{ } override public function get scaleY():Number{ return ((height / startHeight)); } protected function setIMEMode(_arg1:Boolean){ var enabled = _arg1; if (_imeMode != null){ if (enabled){ IME.enabled = true; _oldIMEMode = IME.conversionMode; try { if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _imeMode; }; errorCaught = false; } catch(e:Error) { errorCaught = true; throw (new Error(("IME mode not supported: " + _imeMode))); }; } else { if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){ IME.conversionMode = _oldIMEMode; }; IME.enabled = false; }; }; } protected function draw():void{ if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){ if (((isFocused) && (focusManager.showFocusIndicator))){ drawFocus(true); }; }; validate(); } override public function set height(_arg1:Number):void{ if (_height == _arg1){ return; }; setSize(width, _arg1); } protected function configUI():void{ isLivePreview = checkLivePreview(); var _local1:Number = rotation; rotation = 0; var _local2:Number = super.width; var _local3:Number = super.height; var _local4 = 1; super.scaleY = _local4; super.scaleX = _local4; setSize(_local2, _local3); move(super.x, super.y); rotation = _local1; startWidth = _local2; startHeight = _local3; if (numChildren > 0){ removeChildAt(0); }; } protected function setScaleY(_arg1:Number):void{ super.scaleY = _arg1; } override public function get scaleX():Number{ return ((width / startWidth)); } protected function setScaleX(_arg1:Number):void{ super.scaleX = _arg1; } private function initializeFocusManager():void{ if (stage == null){ addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true); } else { createFocusManager(); }; } protected function keyDownHandler(_arg1:KeyboardEvent):void{ } public function set focusManager(_arg1:IFocusManager):void{ UIComponent.focusManagers[this] = _arg1; } public function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } protected function isInvalid(_arg1:String, ... _args):Boolean{ if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){ return (true); }; while (_args.length > 0) { if (invalidHash[_args.pop()]){ return (true); }; }; return (false); } public function setStyle(_arg1:String, _arg2:Object):void{ if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; instanceStyles[_arg1] = _arg2; invalidate(InvalidationType.STYLES); } override public function get visible():Boolean{ return (super.visible); } protected function focusInHandler(_arg1:FocusEvent):void{ var _local2:IFocusManager; if (isOurFocus((_arg1.target as DisplayObject))){ _local2 = focusManager; if (((_local2) && (_local2.showFocusIndicator))){ drawFocus(true); isFocused = true; }; }; } public function get componentInspectorSetting():Boolean{ return (_inspector); } override public function get x():Number{ return ((isNaN(_x)) ? super.x : _x); } override public function get y():Number{ return ((isNaN(_y)) ? super.y : _y); } public function set enabled(_arg1:Boolean):void{ if (_arg1 == _enabled){ return; }; _enabled = _arg1; invalidate(InvalidationType.STATE); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; invalidate(InvalidationType.SIZE); dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false)); } protected function keyUpHandler(_arg1:KeyboardEvent):void{ } public function setSharedStyle(_arg1:String, _arg2:Object):void{ if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; sharedStyles[_arg1] = _arg2; if (instanceStyles[_arg1] == null){ invalidate(InvalidationType.STYLES); }; } public function set focusEnabled(_arg1:Boolean):void{ _focusEnabled = _arg1; } override public function set width(_arg1:Number):void{ if (_width == _arg1){ return; }; setSize(_arg1, height); } public function setFocus():void{ if (stage){ stage.focus = this; }; } override public function set scaleX(_arg1:Number):void{ setSize((startWidth * _arg1), height); } public function get mouseFocusEnabled():Boolean{ return (_mouseFocusEnabled); } override public function set scaleY(_arg1:Number):void{ setSize(width, (startHeight * _arg1)); } protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{ var skin = _arg1; var classDef:Object; if ((skin is Class)){ return ((new (skin) as DisplayObject)); }; if ((skin is DisplayObject)){ (skin as DisplayObject).x = 0; (skin as DisplayObject).y = 0; return ((skin as DisplayObject)); }; try { classDef = getDefinitionByName(skin.toString()); } catch(e:Error) { try { classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object); } catch(e:Error) { }; }; if (classDef == null){ return (null); }; return ((new (classDef) as DisplayObject)); } protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{ var _local3:String; for (_local3 in _arg2) { _arg1.setStyle(_local3, getStyleValue(_arg2[_local3])); }; } protected function initializeAccessibility():void{ if (UIComponent.createAccessibilityImplementation != null){ UIComponent.createAccessibilityImplementation(this); }; } public function get focusManager():IFocusManager{ var _local1:DisplayObject = this; while (_local1) { if (UIComponent.focusManagers[_local1] != null){ return (IFocusManager(UIComponent.focusManagers[_local1])); }; _local1 = _local1.parent; }; return (null); } override public function get width():Number{ return (_width); } protected function beforeComponentParameters():void{ } protected function callLater(_arg1:Function):void{ if (inCallLaterPhase){ return; }; callLaterMethods[_arg1] = true; if (stage != null){ stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true); stage.invalidate(); } else { addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true); }; } public function move(_arg1:Number, _arg2:Number):void{ _x = _arg1; _y = _arg2; super.x = Math.round(_arg1); super.y = Math.round(_arg2); dispatchEvent(new ComponentEvent(ComponentEvent.MOVE)); } public function validateNow():void{ invalidate(InvalidationType.ALL, false); draw(); } override public function set visible(_arg1:Boolean):void{ if (super.visible == _arg1){ return; }; super.visible = _arg1; var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE; dispatchEvent(new ComponentEvent(_local2, true)); } protected function createFocusManager():void{ if (focusManagers[stage] == null){ focusManagers[stage] = new FocusManager(stage); }; } protected function hookAccessibility(_arg1:Event):void{ removeEventListener(Event.ENTER_FRAME, hookAccessibility); initializeAccessibility(); } public function set componentInspectorSetting(_arg1:Boolean):void{ _inspector = _arg1; if (_inspector){ beforeComponentParameters(); } else { afterComponentParameters(); }; } override public function set y(_arg1:Number):void{ move(_x, _arg1); } public function drawFocus(_arg1:Boolean):void{ var _local2:Number; isFocused = _arg1; if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){ removeChild(uiFocusRect); uiFocusRect = null; }; if (_arg1){ uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite); if (uiFocusRect == null){ return; }; _local2 = Number(getStyleValue("focusRectPadding")); uiFocusRect.x = -(_local2); uiFocusRect.y = -(_local2); uiFocusRect.width = (width + (_local2 * 2)); uiFocusRect.height = (height + (_local2 * 2)); addChildAt(uiFocusRect, 0); }; } override public function set x(_arg1:Number):void{ move(_arg1, _y); } public function drawNow():void{ draw(); } public static function getStyleDefinition():Object{ return (defaultStyles); } public static function mergeStyles(... _args):Object{ var _local5:Object; var _local6:String; var _local2:Object = {}; var _local3:uint = _args.length; var _local4:uint; while (_local4 < _local3) { _local5 = _args[_local4]; for (_local6 in _local5) { if (_local2[_local6] != null){ } else { _local2[_local6] = _args[_local4][_local6]; }; }; _local4++; }; return (_local2); } } }//package fl.core
Section 59
//ComponentEvent (fl.events.ComponentEvent) package fl.events { import flash.events.*; public class ComponentEvent extends Event { public static const HIDE:String = "hide"; public static const BUTTON_DOWN:String = "buttonDown"; public static const MOVE:String = "move"; public static const RESIZE:String = "resize"; public static const ENTER:String = "enter"; public static const LABEL_CHANGE:String = "labelChange"; public static const SHOW:String = "show"; public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } override public function toString():String{ return (formatToString("ComponentEvent", "type", "bubbles", "cancelable")); } override public function clone():Event{ return (new ComponentEvent(type, bubbles, cancelable)); } } }//package fl.events
Section 60
//FocusManager (fl.managers.FocusManager) package fl.managers { import fl.controls.*; import flash.display.*; import fl.core.*; import flash.events.*; import flash.utils.*; import flash.text.*; import flash.ui.*; public class FocusManager implements IFocusManager { private var focusableObjects:Dictionary; private var _showFocusIndicator:Boolean;// = true private var defButton:Button; private var focusableCandidates:Array; private var _form:DisplayObjectContainer; private var _defaultButtonEnabled:Boolean;// = true private var activated:Boolean;// = false private var _defaultButton:Button; private var calculateCandidates:Boolean;// = true private var lastFocus:InteractiveObject; private var lastAction:String; public function FocusManager(_arg1:DisplayObjectContainer){ focusableObjects = new Dictionary(true); if (_arg1 != null){ _form = _arg1; addFocusables(DisplayObject(_arg1)); _arg1.addEventListener(Event.ADDED, addedHandler); _arg1.addEventListener(Event.REMOVED, removedHandler); activate(); }; } public function get showFocusIndicator():Boolean{ return (_showFocusIndicator); } private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{ var _local7:DisplayObject; var _local8:IFocusManagerGroup; var _local9:int; var _local10:DisplayObject; var _local11:IFocusManagerGroup; var _local5:int = focusableCandidates.length; var _local6:int = _arg1; while (true) { if (_arg2){ _arg1--; } else { _arg1++; }; if (_arg3){ if (((_arg2) && ((_arg1 < 0)))){ break; }; if (((!(_arg2)) && ((_arg1 == _local5)))){ break; }; } else { _arg1 = ((_arg1 + _local5) % _local5); if (_local6 == _arg1){ break; }; }; if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){ _local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1])); if ((_local7 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local7); _local9 = 0; while (_local9 < focusableCandidates.length) { _local10 = focusableCandidates[_local9]; if ((_local10 is IFocusManagerGroup)){ _local11 = IFocusManagerGroup(_local10); if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){ _arg1 = _local9; break; }; }; _local9++; }; }; return (_arg1); }; }; return (_arg1); } private function mouseFocusChangeHandler(_arg1:FocusEvent):void{ if ((_arg1.relatedObject is TextField)){ return; }; _arg1.preventDefault(); } public function set form(_arg1:DisplayObjectContainer):void{ _form = _arg1; } private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{ var focusable:IFocusManagerComponent; var io:InteractiveObject; var doc:DisplayObjectContainer; var i:int; var child:DisplayObject; var o = _arg1; var skipTopLevel = _arg2; if (!skipTopLevel){ if ((o is IFocusManagerComponent)){ focusable = IFocusManagerComponent(o); if (focusable.focusEnabled){ if (((focusable.tabEnabled) && (isTabVisible(o)))){ focusableObjects[o] = true; calculateCandidates = true; }; o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; } else { if ((o is InteractiveObject)){ io = (o as InteractiveObject); if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){ focusableObjects[io] = true; calculateCandidates = true; }; io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); }; }; }; if ((o is DisplayObjectContainer)){ doc = DisplayObjectContainer(o); o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); if ((((((doc is Stage)) || ((doc.parent is Stage)))) || (doc.tabChildren))){ i = 0; while (i < doc.numChildren) { try { child = doc.getChildAt(i); if (child != null){ addFocusables(doc.getChildAt(i)); }; } catch(error:SecurityError) { }; i = (i + 1); }; }; }; } private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{ return (_arg1.getChildIndex(_arg2)); } public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{ var _local2:InteractiveObject = _arg1; while (_arg1) { if ((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))){ return (_arg1); }; _arg1 = _arg1.parent; }; return (_local2); } private function focusOutHandler(_arg1:FocusEvent):void{ var _local2:InteractiveObject = (_arg1.target as InteractiveObject); } private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{ var _local3:IFocusManagerGroup; if (!isEnabledAndVisible(_arg1)){ return (false); }; if ((_arg1 is IFocusManagerGroup)){ _local3 = IFocusManagerGroup(_arg1); if (_arg2 == _local3.groupName){ return (false); }; }; return (true); } private function setFocusToNextObject(_arg1:FocusEvent):void{ if (!hasFocusableObjects()){ return; }; var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey); if (_local2){ setFocus(_local2); }; } private function sortFocusableObjectsTabIndex():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){ focusableCandidates.push(_local2); }; }; focusableCandidates.sort(sortByTabIndex); } private function removeFocusables(_arg1:DisplayObject):void{ var _local2:Object; var _local3:DisplayObject; if ((_arg1 is DisplayObjectContainer)){ _arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler); _arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler); for (_local2 in focusableObjects) { _local3 = DisplayObject(_local2); if (DisplayObjectContainer(_arg1).contains(_local3)){ if (_local3 == lastFocus){ lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local2]; calculateCandidates = true; }; }; }; } private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{ while (_arg1 != InteractiveObject(form)) { if ((((((((_arg1 is IFocusManagerComponent)) && (IFocusManagerComponent(_arg1).focusEnabled))) && (IFocusManagerComponent(_arg1).mouseFocusEnabled))) && (UIComponent(_arg1).enabled))){ return (_arg1); }; _arg1 = _arg1.parent; if (_arg1 == null){ break; }; }; return (null); } public function sendDefaultButtonEvent():void{ defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK)); } private function addedHandler(_arg1:Event):void{ var _local2:DisplayObject = DisplayObject(_arg1.target); if (_local2.stage){ addFocusables(DisplayObject(_arg1.target)); }; } private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{ var _local3:TextField; var _local4:SimpleButton; var _local2:DisplayObjectContainer = DisplayObject(form).parent; while (_arg1 != _local2) { if ((_arg1 is UIComponent)){ if (!UIComponent(_arg1).enabled){ return (false); }; } else { if ((_arg1 is TextField)){ _local3 = TextField(_arg1); if ((((_local3.type == TextFieldType.DYNAMIC)) || (!(_local3.selectable)))){ return (false); }; } else { if ((_arg1 is SimpleButton)){ _local4 = SimpleButton(_arg1); if (!_local4.enabled){ return (false); }; }; }; }; if (!_arg1.visible){ return (false); }; _arg1 = _arg1.parent; }; return (true); } private function tabChildrenChangeHandler(_arg1:Event):void{ if (_arg1.target != _arg1.currentTarget){ return; }; calculateCandidates = true; var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target); if (_local2.tabChildren){ addFocusables(_local2, true); } else { removeFocusables(_local2); }; } private function deactivateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); } public function setFocus(_arg1:InteractiveObject):void{ if ((_arg1 is IFocusManagerComponent)){ IFocusManagerComponent(_arg1).setFocus(); } else { form.stage.focus = _arg1; }; } public function getFocus():InteractiveObject{ var _local1:InteractiveObject = form.stage.focus; return (findFocusManagerComponent(_local1)); } private function hasFocusableObjects():Boolean{ var _local1:Object; for (_local1 in focusableObjects) { return (true); }; return (false); } private function tabIndexChangeHandler(_arg1:Event):void{ calculateCandidates = true; } public function set defaultButton(_arg1:Button):void{ var _local2:Button = (_arg1) ? Button(_arg1) : null; if (_local2 != _defaultButton){ if (_defaultButton){ _defaultButton.emphasized = false; }; if (defButton){ defButton.emphasized = false; }; _defaultButton = _local2; defButton = _local2; if (_local2){ _local2.emphasized = true; }; }; } private function sortFocusableObjects():void{ var _local1:Object; var _local2:InteractiveObject; focusableCandidates = []; for (_local1 in focusableObjects) { _local2 = InteractiveObject(_local1); if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){ sortFocusableObjectsTabIndex(); return; }; focusableCandidates.push(_local2); }; focusableCandidates.sort(sortByDepth); } private function keyFocusChangeHandler(_arg1:FocusEvent):void{ showFocusIndicator = true; if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){ setFocusToNextObject(_arg1); _arg1.preventDefault(); }; } private function getIndexOfFocusedObject(_arg1:DisplayObject):int{ var _local2:int = focusableCandidates.length; var _local3:int; _local3 = 0; while (_local3 < _local2) { if (focusableCandidates[_local3] == _arg1){ return (_local3); }; _local3++; }; return (-1); } public function hideFocus():void{ } private function removedHandler(_arg1:Event):void{ var _local2:int; var _local4:InteractiveObject; var _local3:DisplayObject = DisplayObject(_arg1.target); if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){ if (_local3 == lastFocus){ IFocusManagerComponent(lastFocus).drawFocus(false); lastFocus = null; }; _local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); delete focusableObjects[_local3]; calculateCandidates = true; } else { if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){ _local4 = (_local3 as InteractiveObject); if (_local4){ if (_local4 == lastFocus){ lastFocus = null; }; delete focusableObjects[_local4]; calculateCandidates = true; }; _local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler); }; }; removeFocusables(_local3); } private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{ var _local5:int; var _local6:String; var _local7:String; var _local3 = ""; var _local4 = ""; var _local8 = "0000"; var _local9:DisplayObject = DisplayObject(_arg1); var _local10:DisplayObject = DisplayObject(_arg2); while (((!((_local9 == DisplayObject(form)))) && (_local9.parent))) { _local5 = getChildIndex(_local9.parent, _local9); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local3 = (_local7 + _local3); _local9 = _local9.parent; }; while (((!((_local10 == DisplayObject(form)))) && (_local10.parent))) { _local5 = getChildIndex(_local10.parent, _local10); _local6 = _local5.toString(16); if (_local6.length < 4){ _local7 = (_local8.substring(0, (4 - _local6.length)) + _local6); }; _local4 = (_local7 + _local4); _local10 = _local10.parent; }; return (((_local3 > _local4)) ? 1 : ((_local3 < _local4)) ? -1 : 0); } public function get defaultButton():Button{ return (_defaultButton); } private function activateHandler(_arg1:Event):void{ var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (lastFocus){ if ((lastFocus is IFocusManagerComponent)){ IFocusManagerComponent(lastFocus).setFocus(); } else { form.stage.focus = lastFocus; }; }; lastAction = "ACTIVATE"; } public function showFocus():void{ } public function set defaultButtonEnabled(_arg1:Boolean):void{ _defaultButtonEnabled = _arg1; } public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{ var _local8:IFocusManagerGroup; if (!hasFocusableObjects()){ return (null); }; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; var _local2:DisplayObject = form.stage.focus; _local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2))); var _local3 = ""; if ((_local2 is IFocusManagerGroup)){ _local8 = IFocusManagerGroup(_local2); _local3 = _local8.groupName; }; var _local4:int = getIndexOfFocusedObject(_local2); var _local5:Boolean; var _local6:int = _local4; if (_local4 == -1){ if (_arg1){ _local4 = focusableCandidates.length; }; _local5 = true; }; var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3); return (findFocusManagerComponent(focusableCandidates[_local7])); } private function mouseDownHandler(_arg1:MouseEvent):void{ if (_arg1.isDefaultPrevented()){ return; }; var _local2:InteractiveObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target)); if (!_local2){ return; }; showFocusIndicator = false; if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){ setFocus(_local2); }; lastAction = "MOUSEDOWN"; } private function isTabVisible(_arg1:DisplayObject):Boolean{ var _local2:DisplayObjectContainer = _arg1.parent; while (((((_local2) && (!((_local2 is Stage))))) && (!(((_local2.parent) && ((_local2.parent is Stage))))))) { if (!_local2.tabChildren){ return (false); }; _local2 = _local2.parent; }; return (true); } public function get nextTabIndex():int{ return (0); } private function keyDownHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == Keyboard.TAB){ lastAction = "KEY"; if (calculateCandidates){ sortFocusableObjects(); calculateCandidates = false; }; }; if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){ sendDefaultButtonEvent(); }; } private function focusInHandler(_arg1:FocusEvent):void{ var _local3:Button; var _local2:InteractiveObject = InteractiveObject(_arg1.target); if (form.contains(_local2)){ lastFocus = findFocusManagerComponent(InteractiveObject(_local2)); if ((lastFocus is Button)){ _local3 = Button(lastFocus); if (defButton){ defButton.emphasized = false; defButton = _local3; _local3.emphasized = true; }; } else { if (((defButton) && (!((defButton == _defaultButton))))){ defButton.emphasized = false; defButton = _defaultButton; _defaultButton.emphasized = true; }; }; }; } private function tabEnabledChangeHandler(_arg1:Event):void{ calculateCandidates = true; var _local2:InteractiveObject = InteractiveObject(_arg1.target); var _local3 = (focusableObjects[_local2] == true); if (_local2.tabEnabled){ if (((!(_local3)) && (isTabVisible(_local2)))){ if (!(_local2 is IFocusManagerComponent)){ _local2.focusRect = false; }; focusableObjects[_local2] = true; }; } else { if (_local3){ delete focusableObjects[_local2]; }; }; } public function set showFocusIndicator(_arg1:Boolean):void{ _showFocusIndicator = _arg1; } public function get form():DisplayObjectContainer{ return (_form); } private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{ return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2)); } public function get defaultButtonEnabled():Boolean{ return (_defaultButtonEnabled); } public function activate():void{ if (activated){ return; }; form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true); form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true); form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true); form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true); form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = true; if (lastFocus){ setFocus(lastFocus); }; } public function deactivate():void{ form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler); form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler); form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true); form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true); form.stage.removeEventListener(Event.ACTIVATE, activateHandler); form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler); form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true); activated = false; } } }//package fl.managers
Section 61
//IFocusManager (fl.managers.IFocusManager) package fl.managers { import fl.controls.*; import flash.display.*; public interface IFocusManager { function getFocus():InteractiveObject; function deactivate():void; function set defaultButton(_arg1:Button):void; function set showFocusIndicator(_arg1:Boolean):void; function get defaultButtonEnabled():Boolean; function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject; function get nextTabIndex():int; function get defaultButton():Button; function get showFocusIndicator():Boolean; function hideFocus():void; function activate():void; function showFocus():void; function set defaultButtonEnabled(_arg1:Boolean):void; function setFocus(_arg1:InteractiveObject):void; function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject; } }//package fl.managers
Section 62
//IFocusManagerComponent (fl.managers.IFocusManagerComponent) package fl.managers { public interface IFocusManagerComponent { function set focusEnabled(_arg1:Boolean):void; function drawFocus(_arg1:Boolean):void; function setFocus():void; function get focusEnabled():Boolean; function get tabEnabled():Boolean; function get tabIndex():int; function get mouseFocusEnabled():Boolean; } }//package fl.managers
Section 63
//IFocusManagerGroup (fl.managers.IFocusManagerGroup) package fl.managers { public interface IFocusManagerGroup { function get groupName():String; function get selected():Boolean; function set groupName(_arg1:String):void; function set selected(_arg1:Boolean):void; } }//package fl.managers
Section 64
//StyleManager (fl.managers.StyleManager) package fl.managers { import fl.core.*; import flash.utils.*; import flash.text.*; public class StyleManager { private var classToInstancesDict:Dictionary; private var globalStyles:Object; private var styleToClassesHash:Object; private var classToStylesDict:Dictionary; private var classToDefaultStylesDict:Dictionary; private static var _instance:StyleManager; public function StyleManager(){ styleToClassesHash = {}; classToInstancesDict = new Dictionary(true); classToStylesDict = new Dictionary(true); classToDefaultStylesDict = new Dictionary(true); globalStyles = UIComponent.getStyleDefinition(); } public static function clearComponentStyle(_arg1:Object, _arg2:String):void{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){ delete _local4[_arg2]; invalidateComponentStyle(_local3, _arg2); }; } private static function getClassDef(_arg1:Object):Class{ var component = _arg1; if ((component is Class)){ return ((component as Class)); }; try { return ((getDefinitionByName(getQualifiedClassName(component)) as Class)); } catch(e:Error) { if ((component is UIComponent)){ try { return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class)); } catch(e:Error) { }; }; }; return (null); } public static function clearStyle(_arg1:String):void{ setStyle(_arg1, null); } public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Class = getClassDef(_arg1); var _local5:Object = getInstance().classToStylesDict[_local4]; if (_local5 == null){ _local5 = (getInstance().classToStylesDict[_local4] = {}); }; if (_local5 == _arg3){ return; }; _local5[_arg2] = _arg3; invalidateComponentStyle(_local4, _arg2); } private static function setSharedStyles(_arg1:UIComponent):void{ var _local5:String; var _local2:StyleManager = getInstance(); var _local3:Class = getClassDef(_arg1); var _local4:Object = _local2.classToDefaultStylesDict[_local3]; for (_local5 in _local4) { _arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5)); }; } public static function getComponentStyle(_arg1:Object, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:Object = getInstance().classToStylesDict[_local3]; return (((_local4)==null) ? null : _local4[_arg2]); } private static function getInstance(){ if (_instance == null){ _instance = new (StyleManager); }; return (_instance); } private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{ var _local4:Object; var _local5:UIComponent; var _local3:Dictionary = getInstance().classToInstancesDict[_arg1]; if (_local3 == null){ return; }; for (_local4 in _local3) { _local5 = (_local4 as UIComponent); if (_local5 == null){ } else { _local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2)); }; }; } private static function invalidateStyle(_arg1:String):void{ var _local3:Object; var _local2:Dictionary = getInstance().styleToClassesHash[_arg1]; if (_local2 == null){ return; }; for (_local3 in _local2) { invalidateComponentStyle(Class(_local3), _arg1); }; } public static function registerInstance(_arg1:UIComponent):void{ var target:Class; var defaultStyles:Object; var styleToClasses:Object; var n:String; var instance = _arg1; var inst:StyleManager = getInstance(); var classDef:Class = getClassDef(instance); if (classDef == null){ return; }; if (inst.classToInstancesDict[classDef] == null){ inst.classToInstancesDict[classDef] = new Dictionary(true); target = classDef; while (defaultStyles == null) { if (target["getStyleDefinition"] != null){ defaultStyles = target["getStyleDefinition"](); break; }; try { target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class); } catch(err:Error) { try { target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class); } catch(e:Error) { defaultStyles = UIComponent.getStyleDefinition(); break; }; }; }; styleToClasses = inst.styleToClassesHash; for (n in defaultStyles) { if (styleToClasses[n] == null){ styleToClasses[n] = new Dictionary(true); }; styleToClasses[n][classDef] = true; }; inst.classToDefaultStylesDict[classDef] = defaultStyles; if (inst.classToStylesDict[classDef] == null){ inst.classToStylesDict[classDef] = {}; }; }; inst.classToInstancesDict[classDef][instance] = true; setSharedStyles(instance); } public static function getStyle(_arg1:String):Object{ return (getInstance().globalStyles[_arg1]); } private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{ var _local3:Class = getClassDef(_arg1); var _local4:StyleManager = getInstance(); var _local5:Object = _local4.classToStylesDict[_local3][_arg2]; if (_local5 != null){ return (_local5); }; _local5 = _local4.globalStyles[_arg2]; if (_local5 != null){ return (_local5); }; return (_local4.classToDefaultStylesDict[_local3][_arg2]); } public static function setStyle(_arg1:String, _arg2:Object):void{ var _local3:Object = getInstance().globalStyles; if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){ return; }; _local3[_arg1] = _arg2; invalidateStyle(_arg1); } } }//package fl.managers
Section 65
//TweenLite (gs.TweenLite) package gs { import flash.display.*; import flash.events.*; import flash.geom.*; import flash.utils.*; public class TweenLite { public var delay:Number; protected var _hasUpdate:Boolean; protected var _subTweens:Array; protected var _initted:Boolean; public var startTime:int; public var target:Object; public var duration:Number; protected var _hst:Boolean; protected var _isDisplayObject:Boolean; protected var _active:Boolean; public var tweens:Array; public var vars:Object; public var initTime:int; protected var _timeScale:Number; private static var _timer:Timer = new Timer(2000); private static var _classInitted:Boolean; public static var defaultEase:Function = TweenLite.easeOut; public static var version:Number = 8.15; protected static var _all:Dictionary = new Dictionary(); private static var _sprite:Sprite = new Sprite(); protected static var _curTime:uint; public static var overwriteManager:Object; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _listening:Boolean; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local5:*; super(); if (_arg1 == null){ return; }; if (!_classInitted){ _curTime = getTimer(); _sprite.addEventListener(Event.ENTER_FRAME, executeAll); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _classInitted = true; }; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); _timeScale = ((_arg3.timeScale) || (1)); _active = (((_arg2 == 0)) && ((this.delay == 0))); this.target = _arg1; _isDisplayObject = (_arg1 is DisplayObject); if (!(this.vars.ease is Function)){ this.vars.ease = defaultEase; }; if (this.vars.easeParams != null){ this.vars.proxiedEase = this.vars.ease; this.vars.ease = easeProxy; }; if (!isNaN(Number(this.vars.autoAlpha))){ this.vars.alpha = Number(this.vars.autoAlpha); this.vars.visible = (this.vars.alpha > 0); }; this.tweens = []; _subTweens = []; _hst = (_initted = false); this.initTime = _curTime; this.startTime = (this.initTime + (this.delay * 1000)); var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); if ((((_all[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){ delete _all[_arg1]; _all[_arg1] = new Dictionary(true); } else { if ((((_local4 > 1)) && ((this.delay == 0)))){ overwriteManager.manageOverwrites(this, _all[_arg1]); }; }; _all[_arg1][this] = this; if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){ initTweenVals(); if (_active){ render((this.startTime + 1)); } else { render(this.startTime); }; _local5 = this.vars.visible; if (this.vars.isTV == true){ _local5 = this.vars.exposedProps.visible; }; if (((((!((_local5 == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){ this.target.visible = Boolean(_local5); }; }; if (((!(_listening)) && (!(_active)))){ _timer.addEventListener("timer", killGarbage); _timer.start(); _listening = true; }; } protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{ var _local7:String; var _local6:Object = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5}; _subTweens[_subTweens.length] = _local6; for (_local7 in _arg4) { if (typeof(_arg4[_local7]) == "number"){ this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:(_arg4[_local7] - _arg3[_local7]), sub:_local6, name:_arg1}; } else { this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:Number(_arg4[_local7]), sub:_local6, name:_arg1}; }; }; _hst = true; } public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local6:Array; var _local7:ColorTransform; var _local8:ColorTransform; var _local9:Object; var _local5:Object = this.vars; if (_local5.isTV == true){ _local5 = _local5.exposedProps; }; if (((((!(_arg1)) && (!((this.delay == 0))))) && (overwriteManager.enabled))){ overwriteManager.manageOverwrites(this, _all[this.target]); }; if ((this.target is Array)){ _local6 = ((this.vars.endArray) || ([])); _local4 = 0; while (_local4 < _local6.length) { if (((!((this.target[_local4] == _local6[_local4]))) && (!((this.target[_local4] == undefined))))){ this.tweens[this.tweens.length] = {o:this.target, p:_local4.toString(), s:this.target[_local4], c:(_local6[_local4] - this.target[_local4]), name:_local4.toString()}; }; _local4++; }; } else { if (((((!((typeof(_local5.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){ _local7 = this.target.transform.colorTransform; _local8 = new ColorTransform(); if (_local5.alpha != undefined){ _local8.alphaMultiplier = _local5.alpha; delete _local5.alpha; } else { _local8.alphaMultiplier = this.target.alpha; }; if (((!((this.vars.removeTint == true))) && (((((!((_local5.tint == null))) && (!((_local5.tint == ""))))) || ((_local5.tint == 0)))))){ _local8.color = _local5.tint; }; addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8}); }; if (((!((_local5.frame == null))) && (_isDisplayObject))){ addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_local5.frame}, {target:this.target}); }; if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){ addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target}); }; for (_local3 in _local5) { if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((_local3 == "timeScale")))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){ } else { if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){ if (typeof(_local5[_local3]) == "number"){ this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:(_local5[_local3] - this.target[_local3]), name:_local3}; } else { this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:Number(_local5[_local3]), name:_local3}; }; }; }; }; }; if (this.vars.runBackwards == true){ _local4 = (this.tweens.length - 1); while (_local4 > -1) { _local9 = this.tweens[_local4]; this.tweens[_local4].s = (_local9.s + _local9.c); _local9.c = (_local9.c * -1); _local4--; }; }; if ((((_local5.visible == true)) && (_isDisplayObject))){ this.target.visible = true; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; _initted = true; } public function get active():Boolean{ if (_active){ return (true); }; if (_curTime >= this.startTime){ _active = true; if (!_initted){ initTweenVals(); } else { if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ this.target.visible = true; }; }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; return (true); //unresolved jump }; return (false); } public function render(_arg1:uint):void{ var _local3:Number; var _local4:Object; var _local5:int; var _local2:Number = ((_arg1 - this.startTime) / 1000); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = 1; } else { _local3 = this.vars.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c)); _local5--; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5]); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []); }; } public function complete(_arg1:Boolean=false):void{ if (!_arg1){ if (!_initted){ initTweenVals(); }; this.startTime = (_curTime - ((this.duration * 1000) / _timeScale)); render(_curTime); return; }; if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ if (((!(isNaN(this.vars.autoAlpha))) && ((this.target.alpha == 0)))){ this.target.visible = false; } else { if (this.vars.runBackwards != true){ this.target.visible = this.vars.visible; }; }; }; if (this.vars.persist != true){ removeTween(this); }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function frameProxy(_arg1:Object):void{ _arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame)); } public static function removeTween(_arg1:TweenLite=null):void{ if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){ _all[_arg1.target][_arg1] = null; delete _all[_arg1.target][_arg1]; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Object; var _local4:*; if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){ if (_arg2){ _local3 = _all[_arg1]; for (_local4 in _local3) { _local3[_local4].complete(false); }; }; delete _all[_arg1]; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function executeAll(_arg1:Event=null):void{ var _local3:Dictionary; var _local4:Object; var _local5:Object; var _local2:uint = (_curTime = getTimer()); if (_listening){ _local3 = _all; for each (_local4 in _local3) { for (_local5 in _local4) { if (((!((_local4[_local5] == undefined))) && (_local4[_local5].active))){ _local4[_local5].render(_local2); }; }; }; }; } public static function volumeProxy(_arg1:Object):void{ _arg1.info.target.soundTransform = _arg1.target; } public static function killGarbage(_arg1:TimerEvent):void{ var _local3:Boolean; var _local4:Object; var _local5:Object; var _local6:Object; var _local2:uint; for (_local4 in _all) { _local3 = false; for (_local5 in _all[_local4]) { _local3 = true; break; }; if (!_local3){ delete _all[_local4]; } else { _local2++; }; }; if (_local2 == 0){ _timer.removeEventListener("timer", killGarbage); _timer.stop(); _listening = false; }; } public static function tintProxy(_arg1:Object):void{ var _local2:Number = _arg1.target.progress; var _local3:Number = (1 - _local2); var _local4:Object = _arg1.info.color; var _local5:Object = _arg1.info.endColor; _arg1.info.target.transform.colorTransform = new ColorTransform(((_local4.redMultiplier * _local3) + (_local5.redMultiplier * _local2)), ((_local4.greenMultiplier * _local3) + (_local5.greenMultiplier * _local2)), ((_local4.blueMultiplier * _local3) + (_local5.blueMultiplier * _local2)), ((_local4.alphaMultiplier * _local3) + (_local5.alphaMultiplier * _local2)), ((_local4.redOffset * _local3) + (_local5.redOffset * _local2)), ((_local4.greenOffset * _local3) + (_local5.greenOffset * _local2)), ((_local4.blueOffset * _local3) + (_local5.blueOffset * _local2)), ((_local4.alphaOffset * _local3) + (_local5.alphaOffset * _local2))); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 66
//drink_preload_153 (perfectmix_fla.drink_preload_153) package perfectmix_fla { import flash.display.*; public dynamic class drink_preload_153 extends MovieClip { public function drink_preload_153(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package perfectmix_fla
Section 67
//extras_preloader_148 (perfectmix_fla.extras_preloader_148) package perfectmix_fla { import flash.display.*; public dynamic class extras_preloader_148 extends MovieClip { public function extras_preloader_148(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package perfectmix_fla
Section 68
//fruit_preload_154 (perfectmix_fla.fruit_preload_154) package perfectmix_fla { import flash.display.*; public dynamic class fruit_preload_154 extends MovieClip { public function fruit_preload_154(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package perfectmix_fla
Section 69
//SpriteDumpContainer_Main_19 (perfectmix_fla.SpriteDumpContainer_Main_19) package perfectmix_fla { import flash.display.*; public dynamic class SpriteDumpContainer_Main_19 extends MovieClip { public function SpriteDumpContainer_Main_19(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package perfectmix_fla
Section 70
//Button_disabledSkin (Button_disabledSkin) package { import flash.display.*; public dynamic class Button_disabledSkin extends MovieClip { } }//package
Section 71
//Button_downSkin (Button_downSkin) package { import flash.display.*; public dynamic class Button_downSkin extends MovieClip { } }//package
Section 72
//Button_emphasizedSkin (Button_emphasizedSkin) package { import flash.display.*; public dynamic class Button_emphasizedSkin extends MovieClip { } }//package
Section 73
//Button_overSkin (Button_overSkin) package { import flash.display.*; public dynamic class Button_overSkin extends MovieClip { } }//package
Section 74
//Button_selectedDisabledSkin (Button_selectedDisabledSkin) package { import flash.display.*; public dynamic class Button_selectedDisabledSkin extends MovieClip { } }//package
Section 75
//Button_selectedDownSkin (Button_selectedDownSkin) package { import flash.display.*; public dynamic class Button_selectedDownSkin extends MovieClip { } }//package
Section 76
//Button_selectedOverSkin (Button_selectedOverSkin) package { import flash.display.*; public dynamic class Button_selectedOverSkin extends MovieClip { } }//package
Section 77
//Button_selectedUpSkin (Button_selectedUpSkin) package { import flash.display.*; public dynamic class Button_selectedUpSkin extends MovieClip { } }//package
Section 78
//Button_upSkin (Button_upSkin) package { import flash.display.*; public dynamic class Button_upSkin extends MovieClip { } }//package
Section 79
//CompleteMenu (CompleteMenu) package { import flash.display.*; import flash.text.*; public dynamic class CompleteMenu extends MovieClip { public var score_txt:TextField; public var best_txt:TextField; public var main_btn:SimpleButton; public var client_link_btn:SimpleButton; } }//package
Section 80
//CrowdMember (CrowdMember) package { import flash.display.*; import flash.events.*; import com.greensock.*; import flash.utils.*; import console.sounds.*; import com.stampy.random.*; public class CrowdMember extends MovieClip { private var TIME_HURRY:uint; private var _timeOut; private var TIME_PERFECT:uint;// = 7000 private var _count:SpeechBubble; private var TIME_THANKS:uint;// = 12000 private var _drink:SpeechDrink; private var _shownHurry:Boolean;// = false private var _active:Boolean;// = false private var _bubble:SpeechBubble; private var _startTime; private var _shownLate:Boolean;// = false private var _shownCountDown:Boolean;// = false private var _scoresDisplay; private var _startOut; private var TIME_GREAT:uint;// = 10000 private var _serveTime; public static const FAIL:String = "fail"; public function CrowdMember():void{ TIME_HURRY = TIME_THANKS; super(); addFrameScript(0, frame1); } public function get glass():String{ return (_drink.glass); } private function readyToGo():void{ clearTimeout(_startOut); createDrink(); _startTime = getTimer(); addEventListener(Event.ENTER_FRAME, checkTime); } public function set active(_arg1:Boolean):void{ _active = _arg1; if (_active){ if (_drink){ if (_drink.parent){ _drink.parent.removeChild(_drink); }; }; selectCharacter(); _startOut = setTimeout(readyToGo, 1100); }; } private function selectCharacter():void{ var _local3:int; var _local1:Boolean; var _local2:uint; while (!(_local1)) { _local3 = Random.range(1, 6); if (!_scoresDisplay.isCharacterTaken(_local3)){ _scoresDisplay.characterUsed(_local3); this.gotoAndStop(_local3); _local1 = true; }; if (_local2 == 10){ _local1 = true; selectCharacter(); }; _local2++; }; } private function showCount(_arg1:int):void{ if (((_active) && ((_arg1 == 1)))){ _count = new SpeechBubble(false); _count.x = -27; _count.y = -165; _count.alpha = 0; _count.gotoAndStop((16 - _arg1)); addChild(_count); } else { if (((_active) && ((_arg1 < 10)))){ if (_count){ _count.gotoAndStop((16 - _arg1)); }; } else { if (((_active) && ((_arg1 == 10)))){ if (_count){ _count.gotoAndStop((16 - _arg1)); _count.hide(); }; }; }; }; } public function get fruit():String{ return (_drink.fruit); } public function get active():Boolean{ return (_active); } public function get drink():String{ return (_drink.drink); } public function served(_arg1:Boolean=false):void{ if (!_arg1){ SoundUtils.playSFX("SFX_GULP"); }; _scoresDisplay.characterFree(this.currentFrame); removeEventListener(Event.ENTER_FRAME, checkTime); checkServeTime(); if (_serveTime < TIME_THANKS){ TweenMax.to(this, 0.3, {delay:0.5, alpha:0, onComplete:serveComplete, onCompleteParams:[_arg1]}); } else { TweenMax.to(this, 0.3, {alpha:0, onComplete:serveComplete, onCompleteParams:[_arg1]}); }; } public function display(_arg1){ _scoresDisplay = _arg1; } public function clearDrink():void{ if (_drink){ if (_drink.parent){ _drink.parent.removeChild(_drink); _drink = null; }; }; if (_count){ if (_count.parent){ _count.parent.removeChild(_count); _count = null; }; }; _shownHurry = false; _shownLate = false; _shownCountDown = false; } private function reset():void{ clearTimeout(_timeOut); _active = false; _shownHurry = false; _shownLate = false; _shownCountDown = false; if (_count){ if (_count.parent){ _count.parent.removeChild(_count); }; }; if (_bubble){ if (_bubble.parent){ _bubble.parent.removeChild(_bubble); }; }; } private function showMessage(_arg1:uint):void{ if (_active){ _bubble = new SpeechBubble(); _bubble.x = -27; _bubble.y = -165; _bubble.alpha = 0; _bubble.gotoAndStop(_arg1); addChild(_bubble); if (_arg1 == 1){ clearTimeout(_timeOut); _timeOut = setTimeout(served, 1300, [true]); }; }; } private function checkServeTime():void{ _serveTime = (getTimer() - _startTime); if (_serveTime < TIME_PERFECT){ showMessage(5); } else { if (_serveTime < TIME_GREAT){ showMessage(4); } else { if (_serveTime < TIME_THANKS){ showMessage(3); }; }; }; } public function get extras():String{ return (_drink.extras); } function frame1(){ stop(); } public function setCharacter(_arg1:uint):void{ this.gotoAndStop(_arg1); } private function serveComplete(_arg1:Boolean):void{ if (_arg1){ dispatchEvent(new Event(FAIL)); }; reset(); } private function checkTime(_arg1:Event):void{ var _local2:* = (getTimer() - _startTime); if (((!(_shownHurry)) && ((_local2 > TIME_HURRY)))){ _shownHurry = true; showMessage(2); } else { if (((((!(_shownCountDown)) && ((_local2 >= (TIME_HURRY + 2000))))) && ((_local2 < (TIME_HURRY + 3000))))){ _shownCountDown = true; showCount(1); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 3000))))) && ((_local2 < (TIME_HURRY + 4000))))){ showCount(2); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 4000))))) && ((_local2 < (TIME_HURRY + 5000))))){ showCount(3); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 5000))))) && ((_local2 < (TIME_HURRY + 6000))))){ showCount(4); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 6000))))) && ((_local2 < (TIME_HURRY + 7000))))){ showCount(5); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 7000))))) && ((_local2 < (TIME_HURRY + 8000))))){ showCount(6); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 8000))))) && ((_local2 < (TIME_HURRY + 9000))))){ showCount(7); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 9000))))) && ((_local2 < (TIME_HURRY + 10000))))){ showCount(8); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 10000))))) && ((_local2 < (TIME_HURRY + 11000))))){ showCount(9); } else { if (((((_shownCountDown) && ((_local2 >= (TIME_HURRY + 11000))))) && ((_local2 < (TIME_HURRY + 12000))))){ showCount(10); } else { if (((((_shownCountDown) && (!(_shownLate)))) && ((_local2 >= (TIME_HURRY + 12000))))){ _shownLate = true; showMessage(1); }; }; }; }; }; }; }; }; }; }; }; }; } private function createDrink():void{ if (_drink){ if (_drink.parent){ _drink.parent.removeChild(_drink); }; }; _drink = new SpeechDrink(); _drink.x = -12; _drink.y = -190; addChild(_drink); } } }//package
Section 81
//Document (Document) package { import flash.display.*; import flash.events.*; import com.greensock.*; import console.trackers.*; import com.stampy.cookies.*; import flash.utils.*; import console.sounds.*; import com.stampy.random.*; import com.stampy.strings.*; import console.security.*; import console.scores.*; import com.greensock.easing.*; import com.stampy.frames.*; import console.loadurl.*; import console.preloader.*; import flash.system.*; import com.memecounter.*; public class Document extends MovieClip { private const ACTION_COMPETITION:String = "competition_submit"; private const ACTION_TERMS:String = "/data.php?action=goto_client_terms"; private const ACTION_KOKO:String = "/data.php?action=goto_koko_link_1"; private const ACTION:String = "/data.php"; private const SHARE_MYSPACE:String = "/data.php?action=goto_share_mysapce"; private const ACTION_SUBMIT:String = "scores_submit"; private const SHARE_FACEBOOK:String = "/data.php?action=goto_share_facebook"; private const ACTION_SCORES:String = "/data.php?action=scores_daily_xml"; private const ACTION_PRIVACY:String = "/data.php?action=goto_client_privacy"; private const SHARE_STUMBLE:String = "/data.php?action=goto_share_stumbleupon"; private const SHARE_LINKEDIN:String = "/data.php?action=goto_share_linkedin"; private const SHARE_DELICIOUS:String = "/data.php?action=goto_share_delicious"; private const ACTION_TOKEN:String = "/data.php?action=request_token"; private const SHARE_DIGG:String = "/data.php?action=goto_share_digg"; private const ACTION_CLIENT_1:String = "/data.php?action=goto_client_link_1"; private const ACTION_CLIENT_2:String = "/data.php?action=goto_client_link_2"; private const ACTION_FRIEND:String = "send_invite"; private const SHARE_TWITTER:String = "/data.php?action=goto_share_twitter"; private const ACTION_WORLDRANK:String = "/data.php?action=worldrank"; private const SHARE_REDIT:String = "/data.php?action=goto_share_reddit"; private const CROSSDOMAIN:String = "http://www.viral-game.co.uk/crossdomain.xml"; private var _token:String; private var _container:Sprite; public var gradient_mc:MovieClip; public var fridge_mc:MovieClip; private var _fruit:String; private var _count:uint;// = 0 private var _fridge:uint;// = 1 private var _lastScore:int; private var _bonus:int;// = 3 private var _maxAtBar:uint;// = 0 private var _menu:Object; private var _scores:Scores; private var _gameOver:Boolean;// = false public var CrowdAtBar:MovieClip; private var _served:uint;// = 0 private var _country:String; public var scoresDisplay:TimeScore; private var _drinkSpr:Sprite; public var koko_btn:SimpleButton; private var _layers:Object; public var i:int; private var _maxOut:int; public var SpriteDump:MovieClip; private var _glass:String; private var _cookie:FlashCookie; public var client_link_btn:SimpleButton; private var _extras:String; private var _preloadDisplay:PreloadDisplay; private var _drink:String; private var _cookieName:String;// = "perfectMix2" private var _cookieData:Object; private var _serving:Boolean;// = false private var _correctOrders:uint;// = 0 private var _preloader:GamePreloader; private static const TRACKING_MOCHI:String = "778e0678"; private static const DOMAIN:String = "http://perfectmix.viral-game.co.uk"; private static const TRACKING_MEME:uint = 600; public function Document(){ _menu = {main:null, complete:null, how:null}; _cookieData = {bestScore:0}; _layers = {background:new Sprite(), menus:new Sprite(), game:new Sprite()}; super(); addFrameScript(0, frame1); tracking(); cookie(); crossDomain(); preload(); } private function showMenu(_arg1):void{ if (!_layers.menus.contains(_arg1)){ SoundUtils.playSFX("SFX_SLIDEIN"); _arg1.x = ((_arg1.width / 2) + _arg1.width); _arg1.y = (_arg1.height / 2); _arg1.alpha = 0; _layers.menus.addChild(_arg1); menuEnabled(_arg1, true); menuSetup(_arg1); TweenMax.to(_arg1, 0.6, {delay:0.3, x:(_arg1.width / 2), alpha:1, ease:Quart.easeOut}); }; } private function preload():void{ _preloadDisplay = new PreloadDisplay(); _preloadDisplay.x = 324; _preloadDisplay.y = 225; _preloadDisplay.bar.scaleY = 0; _preloadDisplay.top.y = 70; addChild(_preloadDisplay); TweenMax.to(_preloadDisplay, 0.6, {delay:0.1, x:(_preloadDisplay.width / 2), alpha:1, ease:Quart.easeOut}); _preloader = new GamePreloader(); _preloader.addEventListener(GamePreloader.PROGRESS, handlePreloadProgress); _preloader.addEventListener(GamePreloader.COMPLETE, handlePreloadComplete); addChild(_preloader); } private function customerLeft():void{ if (!_gameOver){ _count--; }; } private function handlePreloadProgress(_arg1:Event):void{ if (_preloadDisplay != null){ _preloadDisplay.bar.scaleY = (_preloader.percentLoaded / 100); _preloadDisplay.top.y = (70 - _preloadDisplay.bar.height); if (_preloader.percentLoaded < 100){ _preloadDisplay.preloadText.text = ((_preloader.percentLoaded)>9) ? _preloader.percentLoaded.toString() : ("0" + _preloader.percentLoaded.toString()); }; }; if (_preloader.percentLoaded >= 99){ _preloader.removeEventListener(GamePreloader.PROGRESS, handlePreloadProgress); }; } private function sound():void{ SoundUtils.addSFX("SFX_WRONG", 0.3); SoundUtils.addSFX("SFX_RIGHT", 0.1); SoundUtils.addSFX("SFX_SLIDEIN", 0.1); SoundUtils.addSFX("SFX_SLIDEOUT", 0.1); SoundUtils.addSFX("SFX_CLOCK", 1); SoundUtils.addSFX("SFX_CLICK", 0.5); SoundUtils.addSFX("SFX_SELECTION", 1); SoundUtils.addSFX("SFX_GULP", 1); SoundUtils.addSFX("SFX_ICE", 0.3); SoundUtils.addSFX("SFX_CLINK", 0.6); SoundUtils.addMusic("SFX_AMBIENT", 0.3); } private function addToDrink(_arg1:String, _arg2):void{ SoundUtils.playSFX("SFX_ICE"); var _local3:* = _arg1; if (_arg1 == "glass"){ _arg2 = new uint(_arg2); } else { _arg1 = (_arg1 + _glass.toString()); }; var _local4:Class = (getDefinitionByName(_arg1) as Class); var _local5:* = new (_local4); _local5.gotoAndStop(_arg2); if (_local3 == "drink"){ _local5.alpha = 0.8; }; if (_local3 != "extras"){ _drinkSpr.addChild(_local5); } else { _drinkSpr.addChildAt(_local5, 1); }; if (_arg2 == "strawberry"){ _local5.alpha = 0.7; } else { if (_arg2 == "cherry"){ _local5.alpha = 0.9; }; }; var _local6:Number = _local5.alpha; if (_local3 != "glass"){ TweenMax.from(_local5, 0.5, {scaleX:0, scaleY:0, alpha:0}); TweenMax.to(_local5, 0.5, {scaleX:1, scaleY:1, alpha:_local6, ease:Elastic.easeOut}); } else { TweenMax.from(_local5, 0.5, {x:60}); TweenMax.to(_local5, 0.5, {x:0, ease:Elastic.easeOut}); }; } private function handlePreloadComplete(_arg1:Event):void{ _preloadDisplay.preloadText.text = "99"; _preloadDisplay.bar.scaleY = (_preloader.percentLoaded / 100); setTimeout(removePreloader, 1500); _preloadDisplay.top.y = (70 - _preloadDisplay.bar.height); _preloader.removeEventListener(GamePreloader.COMPLETE, handlePreloadComplete); } private function removeMenu(_arg1):void{ if (_arg1.parent){ _arg1.parent.removeChild(_arg1); }; } private function init():void{ _menu.main = new MainMenu(); _menu.complete = new CompleteMenu(); _menu.how = new HowMenu(); stop(); gradient_mc.mouseEnabled = false; gradient_mc.mouseChildren = false; sound(); layers(); mouse(); showMenu(_menu.main); } private function submitShareForm():void{ } private function getScores():void{ _scores = new Scores(); _scores.addEventListener(Event.COMPLETE, showScores); _scores.load((DOMAIN + ACTION_SCORES)); } private function crossDomain():void{ Security.allowDomain("*"); Security.loadPolicyFile(CROSSDOMAIN); } private function mouse_over(_arg1:MouseEvent):void{ switch (_arg1.target.name){ }; } private function hideScoreDisplay():void{ TweenMax.to(scoresDisplay, 0.3, {delay:0.6, y:-94}); } private function layers():void{ _container = new Sprite(); _container.addChild(_layers.background); _container.addChild(_layers.game); _container.addChild(_layers.menus); addChild(_container); } private function mouse_move(_arg1:MouseEvent):void{ switch (_arg1.target.name){ }; } private function hideAllMenus():void{ var _local1:uint = _layers.menus.numChildren; var _local2:int; while (_local2 < _local1) { hideMenu(_layers.menus.getChildAt(0)); _local2++; }; } private function clearDrink():void{ if (!_serving){ SoundUtils.playSFX("SFX_WRONG"); _serving = true; TweenMax.to(_drinkSpr, 0.3, {x:650, alpha:0, ease:Back.easeIn, onComplete:deleteDrink}); }; } private function submitScoreForm():void{ } private function removePreloader():void{ _preloadDisplay.top.y = (70 - _preloadDisplay.bar.height); if (_preloadDisplay != null){ _preloadDisplay.parent.removeChild(_preloadDisplay); }; FrameUtils.onEnterFrame(3, this, init); this.gotoAndPlay(2); } private function clearScore():void{ } private function tokenLoaded():void{ _token = Token.encypted; _country = Token.getVar("country_code"); } private function cookie():void{ _cookie = new FlashCookie(_cookieName, _cookieData); } private function startCrowd():void{ var _local1:int; if (!_gameOver){ _maxAtBar = 1; _served = 0; _count = 0; _local1 = 1; while (_local1 <= 5) { CrowdAtBar[("crowd" + _local1)].alpha = 0; CrowdAtBar[("crowd" + _local1)].addEventListener(CrowdMember.FAIL, crowdFail); _local1++; }; addEventListener(Event.ENTER_FRAME, updateCrowd); }; } private function menuSetup(_arg1):void{ var _local2:*; var _local3:int; switch (getQualifiedClassName(_arg1)){ case "MainMenu": _local3 = 1; while (_local3 <= 5) { CrowdAtBar[("crowd" + _local3)].setCharacter(_local3); CrowdAtBar[("crowd" + _local3)].clearDrink(); TweenMax.to(CrowdAtBar[("crowd" + _local3)], 0.4, {alpha:1}); _local3++; }; break; case "ScoresMenu": getScores(); break; case "ShareMenu": break; case "CompleteMenu": _local2 = _cookie.getFromCookie("bestScore"); _arg1.best_txt.text = ("PREVIOUS BEST: " + _local2); _arg1.score_txt.text = ((_lastScore)>9) ? _lastScore.toString() : ("0" + _lastScore.toString()); break; }; } private function mouse_click(_arg1:MouseEvent):void{ var _local2:String; var _local3:String; var _local4:String; switch (_arg1.target.name){ case "main_btn": SoundUtils.playSFX("SFX_CLICK"); hideLastMenu(); showMenu(_menu.main); break; case "play_btn": SoundUtils.playSFX("SFX_CLICK"); hideLastMenu(); showMenu(_menu.how); break; case "share_btn": SoundUtils.playSFX("SFX_CLICK"); hideLastMenu(); showMenu(_menu.share); break; case "client_link_btn": OpenURL.navigateURL((DOMAIN + ACTION_CLIENT_1)); SoundUtils.playSFX("SFX_CLICK"); break; case "koko_btn": OpenURL.navigateURL((DOMAIN + ACTION_KOKO)); SoundUtils.playSFX("SFX_CLICK"); break; case "start_btn": SoundUtils.playSFX("SFX_CLICK"); hideLastMenu(); newGame(); break; case "submit_share_btn": SoundUtils.playSFX("SFX_CLICK"); break; case "submit_score_btn": break; case "share_twitter": case "share_facebook": case "share_linkedin": case "share_myspace": case "share_delicious": case "share_digg": case "share_redit": case "share_stumble": _local2 = _arg1.target.name.toUpperCase(); OpenURL.navigateURL((DOMAIN + this[_local2])); SoundUtils.playSFX("SFX_CLICK"); break; case "clear_btn": clearDrink(); break; case "serve_btn": if (_arg1.target.alpha == 1){ SoundUtils.playSFX("SFX_SELECTION"); serveDrink(); }; break; }; if ((((_arg1.target is SimpleButton)) && ((_arg1.target.parent.name == "fridge_mc")))){ if (!_gameOver){ SoundUtils.playSFX("SFX_CLICK"); _local3 = StringUtils.beforeFirst(_arg1.target.name, "_"); _local4 = StringUtils.afterLast(_arg1.target.name, "_"); addToDrink(_local3, _local4); this[("_" + _local3)] = _local4; nextFridge(); }; }; } private function crowdFail(_arg1:Event):void{ if (!_gameOver){ _correctOrders = 0; setTimeout(customerLeft, 1000); }; } private function updateCrowd(_arg1:Event):void{ var _local2:Boolean; var _local3:uint; var _local4:uint; if (!_gameOver){ switch (_served){ case 3: _maxOut = setTimeout(setMax, Random.range(500, 3000), 2); break; case 6: _maxOut = setTimeout(setMax, Random.range(500, 3000), 3); break; case 11: _maxOut = setTimeout(setMax, Random.range(500, 3000), 4); break; case 17: _maxOut = setTimeout(setMax, Random.range(500, 3000), 5); break; }; _local2 = false; _local3 = 0; _local4 = 0; while ((((_count < _maxAtBar)) && ((_local4 < 10)))) { _local3 = Random.range(1, 5); if (!CrowdAtBar[("crowd" + _local3)].active){ crowdActivate(CrowdAtBar[("crowd" + _local3)]); }; _local4++; }; }; } private function hideLastMenu():void{ hideMenu(_layers.menus.getChildAt(0)); } private function processDrink():void{ var _local1:String; var _local2:String; var _local3:String; var _local4:String; var _local5:Boolean; var _local6:int; var _local7:CrowdMember; var _local8:PopupRow; var _local9:PopupWrong; if (!_gameOver){ _local1 = _glass; _local2 = _drink; _local3 = _fruit; _local4 = _extras; _local5 = false; _local6 = 1; while (_local6 <= 5) { _local7 = CrowdAtBar[("crowd" + _local6)]; if (_local7.active){ if (drinksMatch(_local7.glass, _local7.drink, _local7.fruit, _local7.extras)){ _local5 = true; SoundUtils.playSFX("SFX_RIGHT"); _served++; _correctOrders++; scoresDisplay.score++; _count--; _local7.served(); _local6 = 6; if (!(_correctOrders % _bonus)){ _local8 = new PopupRow(); _local8.x = 203; _local8.y = 200; addChild(_local8); scoresDisplay.timeBonus(); }; }; }; _local6++; }; if (!_local5){ _correctOrders = 0; _local9 = new PopupWrong(); _local9.x = 150; _local9.y = 200; addChild(_local9); TweenMax.to(fridge_mc.serve_options.serve_btn, 0.2, {alpha:0.3}); fridge_mc.serve_options.serve_btn.enabled = false; SoundUtils.playSFX("SFX_WRONG"); clearDrink(); }; }; } private function showScores(_arg1:Event):void{ var _local3:*; clearScore(); var _local2:XMLList = _scores.data; for each (_local3 in _local2) { }; } function frame1(){ i = 1; while (i <= 5) { CrowdAtBar[("crowd" + i)].gotoAndStop(i); i++; }; stop(); } private function showScoreDisplay():void{ TweenMax.from(scoresDisplay, 0.3, {delay:0.6, y:-94}); TweenMax.to(scoresDisplay, 0.3, {delay:0.6, y:-24, onComplete:startClock}); } private function mouse_leave(_arg1:Event):void{ switch (_arg1.target.name){ }; } private function getRank(_arg1:Number):void{ Ranking.addEventListener(Event.COMPLETE, showRank); Ranking.findRank(_arg1, (DOMAIN + ACTION_WORLDRANK)); } private function setMax(_arg1:int):void{ clearTimeout(_maxOut); _maxAtBar = _arg1; } private function resetDrink():void{ fridge_mc.serve_options.serve_btn.alpha = 0.3; fridge_mc.serve_options.serve_btn.enabled = false; _drinkSpr = new Sprite(); _drinkSpr.x = 572; _drinkSpr.y = 80; fridge_mc.addChildAt(_drinkSpr, 0); } private function mouse():void{ stage.addEventListener(MouseEvent.CLICK, mouse_click); stage.addEventListener(MouseEvent.MOUSE_OVER, mouse_over); stage.addEventListener(MouseEvent.MOUSE_OUT, mouse_out); stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse_move); stage.addEventListener(Event.MOUSE_LEAVE, mouse_leave); } private function drinksMatch(_arg1:String, _arg2:String, _arg3:String, _arg4:String):Boolean{ if ((((((((_glass == _arg1)) && ((_drink == _arg2)))) && ((_fruit == _arg3)))) && ((_extras == _arg4)))){ return (true); }; return (false); } private function newGame():void{ var _local1 = 1; while (_local1 <= 5) { TweenMax.to(CrowdAtBar[("crowd" + _local1)], 0.4, {alpha:0}); _local1++; }; SoundUtils.fadeMusicPlay("SFX_AMBIENT", 0.3, 4, true); showScoreDisplay(); _gameOver = false; setTimeout(startCrowd, 1500); TweenMax.to(gradient_mc, 0.5, {alpha:0}); TweenMax.to(fridge_mc, 0.5, {alpha:1}); TweenMax.to(fridge_mc.instruction1, 0.5, {delay:0.8, alpha:1}); TweenMax.to(fridge_mc.door1, 0.5, {delay:0.5, y:225}); resetDrink(); } private function mouse_out(_arg1:MouseEvent):void{ switch (_arg1.target.name){ }; } private function tracking():void{ MochiBot.track(this, TRACKING_MOCHI); } private function deleteDrink():void{ _serving = false; resetFridges(); _drinkSpr.parent.removeChild(_drinkSpr); newDrink(); } private function crowdActivate(_arg1):void{ if (!_gameOver){ _arg1.display(scoresDisplay); _arg1.active = true; TweenMax.to(_arg1, 0.3, {alpha:1}); _count++; }; } private function hideMenu(_arg1):void{ SoundUtils.playSFX("SFX_SLIDEOUT"); menuEnabled(_arg1, false); TweenMax.to(_arg1, 1, {x:-(_arg1.width), alpha:0, onComplete:removeMenu, onCompleteParams:[_arg1], ease:Quart.easeOut}); } private function resetFridges():void{ _fridge = 1; _glass = ""; _drink = ""; _fruit = ""; _extras = ""; var _local1 = 1; while (_local1 <= 4) { if (fridge_mc[("door" + _local1)].y != 69){ TweenMax.to(fridge_mc[("door" + _local1)], 0.1, {y:69}); }; if (fridge_mc[("instruction" + _local1)].alpha != 0){ TweenMax.to(fridge_mc[("instruction" + _local1)], 0.5, {alpha:0}); }; _local1++; }; } private function startClock():void{ scoresDisplay.addEventListener(Event.COMPLETE, gameOver); scoresDisplay.timeStart(); } private function showRank(_arg1:Event):void{ Ranking.removeEventListener(Event.COMPLETE, showRank); } private function newDrink():void{ TweenMax.to(gradient_mc, 0.5, {alpha:0}); TweenMax.to(fridge_mc, 0.5, {alpha:1}); TweenMax.to(fridge_mc.instruction1, 0.5, {delay:0.3, alpha:1}); TweenMax.to(fridge_mc.door1, 0.5, {y:225}); resetDrink(); } private function nextFridge():void{ TweenMax.to(fridge_mc[("door" + _fridge)], 0.1, {y:69}); TweenMax.to(fridge_mc[("instruction" + _fridge)], 0.5, {alpha:0}); if (_fridge < 4){ _fridge++; TweenMax.to(fridge_mc[("instruction" + _fridge)], 0.5, {delay:0.3, alpha:1}); TweenMax.to(fridge_mc[("door" + _fridge)], 0.5, {y:225}); } else { TweenMax.to(fridge_mc.serve_options.serve_btn, 0.3, {alpha:1}); fridge_mc.serve_options.serve_btn.enabled = true; }; } private function serveDrink():void{ if (((!(_serving)) && (!(_gameOver)))){ processDrink(); _serving = true; TweenMax.to(_drinkSpr, 0.5, {scaleX:0.8, scaleY:0.8, y:-40, alpha:0, ease:Back.easeIn, onComplete:deleteDrink}); }; } private function menuEnabled(_arg1, _arg2:Boolean):void{ _arg1.mouseEnabled = _arg2; _arg1.mouseChildren = _arg2; } private function gameOver(_arg1:Event):void{ _gameOver = true; _correctOrders = 0; var _local2:* = _cookie.getFromCookie("bestScore"); if (_local2 < _served){ _cookie.updateCookieVar("bestScore", _served); }; SoundUtils.fadeMusicStop("SFX_AMBIENT", 0, 2); _lastScore = scoresDisplay.score; removeEventListener(Event.ENTER_FRAME, updateCrowd); scoresDisplay.removeEventListener(Event.COMPLETE, gameOver); var _local3 = 1; while (_local3 <= 5) { CrowdAtBar[("crowd" + _local3)].alpha = 0; CrowdAtBar[("crowd" + _local3)].active = false; CrowdAtBar[("crowd" + _local3)].clearDrink(); CrowdAtBar[("crowd" + _local3)].removeEventListener(CrowdMember.FAIL, crowdFail); _local3++; }; setTimeout(resetGame, 1000); clearDrink(); resetFridges(); } private function resetGame():void{ hideScoreDisplay(); scoresDisplay.score = 0; _maxAtBar = 1; _served = 0; _count = 0; _correctOrders = 0; var _local1 = 1; while (_local1 <= 5) { CrowdAtBar[("crowd" + _local1)].clearDrink(); _local1++; }; TweenMax.to(gradient_mc, 0.5, {alpha:1}); TweenMax.to(fridge_mc, 0.5, {alpha:0}); TweenMax.to(fridge_mc.instruction1, 0.5, {alpha:0}); TweenMax.to(fridge_mc.door1, 0.5, {y:69}); showMenu(_menu.complete); } private function token():void{ try { Token.request((DOMAIN + ACTION_TOKEN), tokenLoaded, true); } catch(e:Error) { }; } } }//package
Section 82
//drink1 (drink1) package { import flash.display.*; public dynamic class drink1 extends MovieClip { public function drink1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 83
//drink2 (drink2) package { import flash.display.*; public dynamic class drink2 extends MovieClip { public function drink2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 84
//drink3 (drink3) package { import flash.display.*; public dynamic class drink3 extends MovieClip { public function drink3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 85
//drink4 (drink4) package { import flash.display.*; public dynamic class drink4 extends MovieClip { public function drink4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 86
//drink5 (drink5) package { import flash.display.*; public dynamic class drink5 extends MovieClip { public function drink5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 87
//drink6 (drink6) package { import flash.display.*; public dynamic class drink6 extends MovieClip { public function drink6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 88
//extras1 (extras1) package { import flash.display.*; public dynamic class extras1 extends MovieClip { public function extras1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 89
//extras2 (extras2) package { import flash.display.*; public dynamic class extras2 extends MovieClip { public function extras2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 90
//extras3 (extras3) package { import flash.display.*; public dynamic class extras3 extends MovieClip { public function extras3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 91
//extras4 (extras4) package { import flash.display.*; public dynamic class extras4 extends MovieClip { public function extras4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 92
//extras5 (extras5) package { import flash.display.*; public dynamic class extras5 extends MovieClip { public function extras5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 93
//extras6 (extras6) package { import flash.display.*; public dynamic class extras6 extends MovieClip { public function extras6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 94
//focusRectSkin (focusRectSkin) package { import flash.display.*; public dynamic class focusRectSkin extends MovieClip { } }//package
Section 95
//fruit1 (fruit1) package { import flash.display.*; public dynamic class fruit1 extends MovieClip { public function fruit1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 96
//fruit2 (fruit2) package { import flash.display.*; public dynamic class fruit2 extends MovieClip { public function fruit2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 97
//fruit3 (fruit3) package { import flash.display.*; public dynamic class fruit3 extends MovieClip { public function fruit3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 98
//fruit4 (fruit4) package { import flash.display.*; public dynamic class fruit4 extends MovieClip { public function fruit4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 99
//fruit5 (fruit5) package { import flash.display.*; public dynamic class fruit5 extends MovieClip { public function fruit5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 100
//fruit6 (fruit6) package { import flash.display.*; public dynamic class fruit6 extends MovieClip { public function fruit6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 101
//glass (glass) package { import flash.display.*; public dynamic class glass extends MovieClip { public function glass(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 102
//glass1 (glass1) package { import flash.display.*; public dynamic class glass1 extends BitmapData { public function glass1(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 103
//glass2 (glass2) package { import flash.display.*; public dynamic class glass2 extends BitmapData { public function glass2(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 104
//glass3 (glass3) package { import flash.display.*; public dynamic class glass3 extends BitmapData { public function glass3(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 105
//glass4 (glass4) package { import flash.display.*; public dynamic class glass4 extends BitmapData { public function glass4(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 106
//glass5 (glass5) package { import flash.display.*; public dynamic class glass5 extends BitmapData { public function glass5(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 107
//glass6 (glass6) package { import flash.display.*; public dynamic class glass6 extends BitmapData { public function glass6(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package
Section 108
//glassB (glassB) package { import flash.display.*; public dynamic class glassB extends MovieClip { public function glassB(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 109
//HowMenu (HowMenu) package { import flash.display.*; public dynamic class HowMenu extends MovieClip { public var main_btn:SimpleButton; public var start_btn:SimpleButton; } }//package
Section 110
//MainMenu (MainMenu) package { import flash.display.*; public dynamic class MainMenu extends MovieClip { } }//package
Section 111
//PopupRow (PopupRow) package { import flash.display.*; import flash.events.*; import com.greensock.*; import flash.utils.*; public class PopupRow extends MovieClip { private var _timeOut:uint; private var _range:int;// = 150 public function PopupRow():void{ addEventListener(Event.ADDED_TO_STAGE, onStage); } public function destroy():void{ clearTimeout(_timeOut); if (this.parent){ this.parent.removeChild(this); }; } private function tweenOut():void{ clearTimeout(_timeOut); TweenMax.to(this, 0.2, {alpha:0, y:(this.y - _range), onComplete:destroy}); } private function onStage(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, onStage); var _local2:* = this.y; TweenMax.from(this, 0.2, {alpha:0, y:(_local2 + _range)}); TweenMax.to(this, 0.2, {alpha:1, y:_local2}); _timeOut = setTimeout(tweenOut, 1100); } } }//package
Section 112
//PopupWrong (PopupWrong) package { import flash.display.*; import flash.events.*; import com.greensock.*; import flash.utils.*; public class PopupWrong extends MovieClip { private var _timeOut:uint; private var _range:int;// = 150 public function PopupWrong():void{ addEventListener(Event.ADDED_TO_STAGE, onStage); } public function destroy():void{ clearTimeout(_timeOut); if (this.parent){ this.parent.removeChild(this); }; } private function tweenOut():void{ clearTimeout(_timeOut); TweenMax.to(this, 0.2, {alpha:0, y:(this.y - _range), onComplete:destroy}); } private function onStage(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, onStage); var _local2:* = this.y; TweenMax.from(this, 0.2, {alpha:0, y:(_local2 + _range)}); TweenMax.to(this, 0.2, {alpha:1, y:_local2}); _timeOut = setTimeout(tweenOut, 1100); } } }//package
Section 113
//PreloadDisplay (PreloadDisplay) package { import flash.display.*; import flash.text.*; public dynamic class PreloadDisplay extends MovieClip { public var bar:MovieClip; public var top:MovieClip; public var preloadText:TextField; } }//package
Section 114
//SFX_AMBIENT (SFX_AMBIENT) package { import flash.media.*; public dynamic class SFX_AMBIENT extends Sound { } }//package
Section 115
//SFX_CLICK (SFX_CLICK) package { import flash.media.*; public dynamic class SFX_CLICK extends Sound { } }//package
Section 116
//SFX_CLINK (SFX_CLINK) package { import flash.media.*; public dynamic class SFX_CLINK extends Sound { } }//package
Section 117
//SFX_CLOCK (SFX_CLOCK) package { import flash.media.*; public dynamic class SFX_CLOCK extends Sound { } }//package
Section 118
//SFX_GULP (SFX_GULP) package { import flash.media.*; public dynamic class SFX_GULP extends Sound { } }//package
Section 119
//SFX_ICE (SFX_ICE) package { import flash.media.*; public dynamic class SFX_ICE extends Sound { } }//package
Section 120
//SFX_RIGHT (SFX_RIGHT) package { import flash.media.*; public dynamic class SFX_RIGHT extends Sound { } }//package
Section 121
//SFX_SELECTION (SFX_SELECTION) package { import flash.media.*; public dynamic class SFX_SELECTION extends Sound { } }//package
Section 122
//SFX_SLIDEIN (SFX_SLIDEIN) package { import flash.media.*; public dynamic class SFX_SLIDEIN extends Sound { } }//package
Section 123
//SFX_SLIDEOUT (SFX_SLIDEOUT) package { import flash.media.*; public dynamic class SFX_SLIDEOUT extends Sound { } }//package
Section 124
//SFX_WRONG (SFX_WRONG) package { import flash.media.*; public dynamic class SFX_WRONG extends Sound { } }//package
Section 125
//ShareMenu (ShareMenu) package { import fl.controls.*; import flash.display.*; import flash.events.*; import flash.net.*; import flash.geom.*; import flash.filters.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.external.*; import flash.errors.*; import flash.ui.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class ShareMenu extends MovieClip { public var submit_share_btn:Button; public var main_btn:Button; public var __id0_:Label; public function ShareMenu(){ __setProp_main_btn_ShareMenu_mc_Layer2_0(); __setProp___id0__ShareMenu_mc_Layer2_0(); __setProp_submit_share_btn_ShareMenu_mc_Layer2_0(); } function __setProp_submit_share_btn_ShareMenu_mc_Layer2_0(){ try { submit_share_btn["componentInspectorSetting"] = true; } catch(e:Error) { }; submit_share_btn.emphasized = false; submit_share_btn.enabled = true; submit_share_btn.label = "Submit"; submit_share_btn.labelPlacement = "right"; submit_share_btn.selected = false; submit_share_btn.toggle = false; submit_share_btn.visible = true; try { submit_share_btn["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp_main_btn_ShareMenu_mc_Layer2_0(){ try { main_btn["componentInspectorSetting"] = true; } catch(e:Error) { }; main_btn.emphasized = false; main_btn.enabled = true; main_btn.label = "Main Menu"; main_btn.labelPlacement = "right"; main_btn.selected = false; main_btn.toggle = false; main_btn.visible = true; try { main_btn["componentInspectorSetting"] = false; } catch(e:Error) { }; } function __setProp___id0__ShareMenu_mc_Layer2_0(){ try { __id0_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id0_.autoSize = "center"; __id0_.condenseWhite = false; __id0_.enabled = true; __id0_.htmlText = ""; __id0_.selectable = false; __id0_.text = "Share"; __id0_.visible = true; __id0_.wordWrap = false; try { __id0_["componentInspectorSetting"] = false; } catch(e:Error) { }; } } }//package
Section 126
//SpeechBubble (SpeechBubble) package { import flash.display.*; import flash.events.*; import com.greensock.*; import flash.utils.*; public class SpeechBubble extends MovieClip { private var _timeOut:uint; private var _removeMe:Boolean;// = true public function SpeechBubble(_arg1:Boolean=true):void{ addFrameScript(0, frame1); _removeMe = _arg1; addEventListener(Event.ADDED_TO_STAGE, onStage); } public function destroy():void{ clearTimeout(_timeOut); if (this.parent){ this.parent.removeChild(this); }; } public function hide():void{ _timeOut = setTimeout(tweenOut, 800); } private function tweenOut():void{ clearTimeout(_timeOut); TweenMax.to(this, 0.2, {alpha:0, y:(this.y - 50), onComplete:destroy}); } function frame1(){ stop(); } private function onStage(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, onStage); var _local2:* = this.y; TweenMax.from(this, 0.2, {alpha:0, y:(_local2 + 50)}); TweenMax.to(this, 0.2, {alpha:0.9, y:_local2}); if (_removeMe){ _timeOut = setTimeout(tweenOut, 800); }; } } }//package
Section 127
//SpeechDrink (SpeechDrink) package { import flash.display.*; import com.greensock.*; import flash.utils.*; import com.stampy.random.*; import com.greensock.easing.*; public class SpeechDrink extends MovieClip { public var container:MovieClip; private var _extras:String; private var _fruitArr:Array; private var _drinkArr:Array; private var _timeOut:int; private var _fruit:String; private var _drink:String; private var _drinkSpr:Sprite; private var _glassArr:Array; public var background:MovieClip; private var _glass:String; private var _extrasArr:Array; public function SpeechDrink():void{ _glassArr = ["1", "2", "3", "4", "5", "6"]; _drinkArr = ["green", "red", "yellow", "pink", "orange", "blue"]; _fruitArr = ["strawberry", "cherry", "orange", "star", "lemon", "lime"]; _extrasArr = ["heart", "green", "star", "orange", "umbrella", "blue"]; super(); TweenMax.from(background, 0.3, {alpha:0}); TweenMax.to(background, 0.3, {alpha:0.9}); _timeOut = setTimeout(showDrink, 300); } private function addToDrink(_arg1:String, _arg2, _arg3:Number):void{ var _local4:* = _arg1; if (_arg1 == "glass"){ _arg2 = new uint(_arg2); } else { _arg1 = (_arg1 + _glass.toString()); }; var _local5:* = _arg1; if (_arg1 == "glass"){ _local5 = (_local5 + "B"); }; var _local6:Class = (getDefinitionByName(_local5) as Class); var _local7:* = new (_local6); _local7.gotoAndStop(_arg2); if (_local4 == "drink"){ _local7.alpha = 0.8; }; if (((!((_local4 == "extras"))) && (!((_local4 == "glass"))))){ TweenMax.from(_local7, 0.5, {scaleX:0, scaleY:0, delay:_arg3}); TweenMax.to(_local7, 0.5, {scaleX:1, scaleY:1, ease:Elastic.easeOut, delay:_arg3}); _drinkSpr.addChild(_local7); } else { if (_local4 == "glass"){ TweenMax.from(_local7, 0.5, {scaleX:0, scaleY:0, delay:_arg3}); TweenMax.to(_local7, 0.5, {scaleX:1, scaleY:1, ease:Elastic.easeOut, delay:_arg3}); _local7.x = _drinkSpr.x; _local7.y = _drinkSpr.y; addChildAt(_local7, 1); } else { TweenMax.from(_local7, 0.5, {scaleX:0, scaleY:0, delay:_arg3}); TweenMax.to(_local7, 0.5, {scaleX:1, scaleY:1, ease:Elastic.easeOut, delay:_arg3}); _drinkSpr.addChild(_local7); }; }; if (_arg2 == "strawberry"){ _local7.alpha = 0.7; } else { if (_arg2 == "cherry"){ _local7.alpha = 0.9; }; }; var _local8:Number = _local7.alpha; if (_local4 != "glass"){ TweenMax.from(_local7, 0.5, {scaleX:0, scaleY:0, delay:_arg3}); TweenMax.to(_local7, 0.5, {scaleX:1, scaleY:1, ease:Elastic.easeOut, delay:_arg3}); }; } public function get fruit():String{ return (_fruit); } private function showDrink():void{ clearTimeout(_timeOut); newDrink(); _glass = _glassArr[Random.range(0, 5)]; _drink = _drinkArr[Random.range(0, 5)]; _fruit = _fruitArr[Random.range(0, 5)]; _extras = _extrasArr[Random.range(0, 5)]; addToDrink("glass", _glass, 0.1); addToDrink("extras", _extras, 0.9); addToDrink("drink", _drink, 0.3); addToDrink("fruit", _fruit, 0.6); } public function get drink():String{ return (_drink); } private function newDrink():void{ _drinkSpr = new Sprite(); _drinkSpr.x = 44; _drinkSpr.y = 74; _drinkSpr.scaleX = 0.5; _drinkSpr.scaleY = 0.5; container.addChild(_drinkSpr); } public function get extras():String{ return (_extras); } public function get glass():String{ return (_glass); } } }//package
Section 128
//TimeScore (TimeScore) package { import flash.display.*; import flash.events.*; import flash.utils.*; import console.sounds.*; import flash.text.*; public class TimeScore extends MovieClip { public var score_txt:TextField; private var _timer:Timer; private var _characters:Dictionary; private var _score:int;// = 0 private var _timeBonus:int;// = 10 private var _time:int;// = 99 public var time_txt:TextField; public function get time():int{ return (_timer.currentCount); } public function get score():int{ return (_score); } public function timeStart():void{ _characters = new Dictionary(); var _local1 = 1; while (_local1 < 6) { _characters[_local1] = false; _local1++; }; _time = 99; _timer = new Timer(1000); time_txt.text = _time.toString(); score_txt.text = "00"; _timer.addEventListener(TimerEvent.TIMER, updateTime); _timer.start(); } private function timerComplete():void{ destroy(); dispatchEvent(new Event(Event.COMPLETE)); } public function timeBonus():void{ _time = (_time + _timeBonus); time_txt.text = ((_time)>9) ? _time.toString() : ("0" + _time.toString()); } public function set score(_arg1:int):void{ _score = _arg1; score_txt.text = ((_score)>9) ? _score.toString() : ("0" + _score.toString()); } public function timeStop():void{ _timer.stop(); } public function characterUsed(_arg1:int):void{ _characters[_arg1] = true; } public function characterFree(_arg1:int):void{ _characters[_arg1] = false; } private function updateTime(_arg1:TimerEvent):void{ _time--; time_txt.text = ((_time)>9) ? _time.toString() : ("0" + _time.toString()); if (_time <= 10){ SoundUtils.playSFX("SFX_CLINK", false, 1, 200); }; if (_time <= 0){ _timer.removeEventListener(TimerEvent.TIMER, updateTime); timerComplete(); }; } public function isCharacterTaken(_arg1:int):Boolean{ return (((_characters[_arg1])==true) ? true : false); } public function destroy():void{ _timer.removeEventListener(TimerEvent.TIMER, updateTime); } } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:37 63 81 205 216
Symbol 3 BitmapUsed by:8
Symbol 4 BitmapUsed by:8 167
Symbol 5 BitmapUsed by:8 167
Symbol 6 BitmapUsed by:8 167
Symbol 7 BitmapUsed by:8 167
Symbol 8 GraphicUses:3 4 5 6 7Used by:37
Symbol 9 Bitmap {glass1}Used by:37 245 257
Symbol 10 BitmapUsed by:11 425
Symbol 11 GraphicUses:10Used by:18
Symbol 12 GraphicUsed by:13
Symbol 13 ButtonUses:12Used by:18
Symbol 14 GraphicUsed by:15
Symbol 15 ButtonUses:14Used by:18
Symbol 16 GraphicUsed by:17
Symbol 17 ButtonUses:16Used by:18
Symbol 18 MovieClip {perfectmix_fla.extras_preloader_148}Uses:11 13 15 17Used by:37
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:37
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip {perfectmix_fla.drink_preload_153}Uses:21Used by:37
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:25 27
Symbol 25 MovieClipUses:24Used by:27
Symbol 26 GraphicUsed by:27 407
Symbol 27 MovieClipUses:25 26 24Used by:31 408 411 413 416 418 420
Symbol 28 BitmapUsed by:29 392 410 412 415 417 419
Symbol 29 GraphicUses:28Used by:30
Symbol 30 ButtonUses:29Used by:31
Symbol 31 MovieClip {perfectmix_fla.fruit_preload_154}Uses:27 30Used by:37
Symbol 32 GraphicUsed by:37
Symbol 33 GraphicUsed by:34
Symbol 34 MovieClipUses:33Used by:37
Symbol 35 FontUsed by:36 212 213 229 230 231 232 233 234 235 236 237 238
Symbol 36 EditableTextUses:35Used by:37
Symbol 37 MovieClip {PreloadDisplay}Uses:2 8 9 18 20 22 31 32 34 36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClipUses:38Used by:61 62
Symbol 40 MovieClip {fl.core.ComponentShim}Used by:61 62
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClip {Button_disabledSkin}Uses:41Used by:61
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClip {Button_downSkin}Uses:43Used by:61
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClip {Button_emphasizedSkin}Uses:45Used by:61
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip {Button_overSkin}Uses:47Used by:61
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClip {Button_selectedDisabledSkin}Uses:49Used by:61
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClip {Button_selectedDownSkin}Uses:51Used by:61
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClip {Button_selectedOverSkin}Uses:53Used by:61
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClip {Button_selectedUpSkin}Uses:55Used by:61
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClip {Button_upSkin}Uses:57Used by:61
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClip {focusRectSkin}Uses:59Used by:61
Symbol 61 MovieClip {fl.controls.Button}Uses:39 40 42 44 46 48 50 52 54 56 58 60Used by:63
Symbol 62 MovieClip {fl.controls.Label}Uses:39 40Used by:63
Symbol 63 MovieClip {ShareMenu}Uses:2 61 62
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 MovieClip {PopupWrong}Uses:65
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:69
Symbol 69 MovieClip {PopupRow}Uses:68
Symbol 70 BitmapUsed by:71 207
Symbol 71 GraphicUses:70Used by:81
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:74 75
Symbol 74 MovieClipUses:73Used by:75
Symbol 75 ButtonUses:74 73Used by:81
Symbol 76 BitmapUsed by:77
Symbol 77 GraphicUses:76Used by:81
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:80
Symbol 80 ButtonUses:79Used by:81 216
Symbol 81 MovieClip {HowMenu}Uses:2 71 75 77 80Used by:438
Symbol 82 GraphicUsed by:Timeline
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:Timeline
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 ButtonUses:86Used by:Timeline
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:90 91 92
Symbol 90 MovieClipUses:89Used by:92
Symbol 91 MovieClipUses:89Used by:92
Symbol 92 ButtonUses:90 91 89Used by:Timeline
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:105
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:105
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:105
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:105
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:105
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:105
Symbol 105 MovieClip {CrowdMember}Uses:94 96 98 100 102 104Used by:106 438
Symbol 106 MovieClipUses:105Used by:Timeline
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:115
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 ButtonUses:110Used by:115
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:114
Symbol 114 ButtonUses:113Used by:115
Symbol 115 MovieClipUses:108 111 114Used by:161
Symbol 116 BitmapUsed by:117
Symbol 117 GraphicUses:116Used by:120
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:118Used by:120
Symbol 120 ButtonUses:117 119Used by:161
Symbol 121 BitmapUsed by:145
Symbol 122 BitmapUsed by:145
Symbol 123 BitmapUsed by:145
Symbol 124 BitmapUsed by:145
Symbol 125 BitmapUsed by:145
Symbol 126 BitmapUsed by:145
Symbol 127 BitmapUsed by:145
Symbol 128 BitmapUsed by:145
Symbol 129 BitmapUsed by:145
Symbol 130 BitmapUsed by:145
Symbol 131 BitmapUsed by:145
Symbol 132 BitmapUsed by:145
Symbol 133 BitmapUsed by:145
Symbol 134 BitmapUsed by:145
Symbol 135 BitmapUsed by:145
Symbol 136 BitmapUsed by:145
Symbol 137 BitmapUsed by:145
Symbol 138 BitmapUsed by:145
Symbol 139 BitmapUsed by:145
Symbol 140 BitmapUsed by:145
Symbol 141 BitmapUsed by:145
Symbol 142 BitmapUsed by:145
Symbol 143 BitmapUsed by:145
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144Used by:161
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:148
Symbol 148 MovieClipUses:147Used by:161
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:151
Symbol 151 MovieClipUses:150Used by:161
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:154
Symbol 154 MovieClipUses:153Used by:161
Symbol 155 BitmapUsed by:156
Symbol 156 GraphicUses:155Used by:157
Symbol 157 MovieClipUses:156Used by:161
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:158Used by:160
Symbol 160 MovieClipUses:159Used by:161
Symbol 161 MovieClipUses:115 120 145 148 151 154 157 160Used by:Timeline
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:164
Symbol 164 MovieClipUses:163Used by:166
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClipUses:164 165Used by:Timeline
Symbol 167 GraphicUses:4 5 6 7Used by:204
Symbol 168 BitmapUsed by:169
Symbol 169 GraphicUses:168Used by:170 171
Symbol 170 MovieClipUses:169Used by:171
Symbol 171 ButtonUses:170 169Used by:204
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:174 175
Symbol 174 MovieClipUses:173Used by:175
Symbol 175 ButtonUses:174 173Used by:204
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:178 179
Symbol 178 MovieClipUses:177Used by:179
Symbol 179 ButtonUses:178 177Used by:204
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:182 183
Symbol 182 MovieClipUses:181Used by:183
Symbol 183 ButtonUses:182 181Used by:204
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:186 187
Symbol 186 MovieClipUses:185Used by:187
Symbol 187 ButtonUses:186 185Used by:204
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:190 191
Symbol 190 MovieClipUses:189Used by:191
Symbol 191 ButtonUses:190 189Used by:204
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:194 195
Symbol 194 MovieClipUses:193Used by:195
Symbol 195 ButtonUses:194 193Used by:204
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:198 199
Symbol 198 MovieClipUses:197Used by:199
Symbol 199 ButtonUses:198 197Used by:204
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:202 203
Symbol 202 MovieClipUses:201Used by:203
Symbol 203 ButtonUses:202 201Used by:204
Symbol 204 MovieClipUses:167 171 175 179 183 187 191 195 199 203Used by:205
Symbol 205 MovieClip {MainMenu}Uses:2 204Used by:438
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206 70Used by:216
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:210 211
Symbol 210 MovieClipUses:209Used by:211
Symbol 211 ButtonUses:210 209Used by:216
Symbol 212 EditableTextUses:35Used by:216
Symbol 213 EditableTextUses:35Used by:216
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:216
Symbol 216 MovieClip {CompleteMenu}Uses:207 2 211 212 213 215 80Used by:438
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:239
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:239
Symbol 221 BitmapUsed by:222
Symbol 222 GraphicUses:221Used by:239
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:223Used by:239
Symbol 225 BitmapUsed by:226
Symbol 226 GraphicUses:225Used by:239
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:239
Symbol 229 TextUses:35Used by:239
Symbol 230 TextUses:35Used by:239
Symbol 231 TextUses:35Used by:239
Symbol 232 TextUses:35Used by:239
Symbol 233 TextUses:35Used by:239
Symbol 234 TextUses:35Used by:239
Symbol 235 TextUses:35Used by:239
Symbol 236 TextUses:35Used by:239
Symbol 237 TextUses:35Used by:239
Symbol 238 TextUses:35Used by:239
Symbol 239 MovieClip {SpeechBubble}Uses:218 220 222 224 226 228 229 230 231 232 233 234 235 236 237 238Used by:438
Symbol 240 BitmapUsed by:241
Symbol 241 GraphicUses:240Used by:242
Symbol 242 MovieClipUses:241Used by:244
Symbol 243 MovieClipUsed by:244
Symbol 244 MovieClip {SpeechDrink}Uses:242 243Used by:438
Symbol 245 MovieClipUses:9Used by:257
Symbol 246 GraphicUsed by:257
Symbol 247 Bitmap {glass2}Used by:248 257
Symbol 248 MovieClipUses:247Used by:257
Symbol 249 Bitmap {glass3}Used by:250 257
Symbol 250 MovieClipUses:249Used by:257
Symbol 251 Bitmap {glass4}Used by:252 257
Symbol 252 MovieClipUses:251Used by:257
Symbol 253 Bitmap {glass5}Used by:254 257
Symbol 254 MovieClipUses:253Used by:257
Symbol 255 Bitmap {glass6}Used by:256 257
Symbol 256 MovieClipUses:255Used by:257
Symbol 257 MovieClip {glass}Uses:245 246 9 248 247 250 249 252 251 254 253 256 255Used by:438
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:260
Symbol 260 MovieClipUses:259Used by:276
Symbol 261 BitmapUsed by:262
Symbol 262 GraphicUses:261Used by:263
Symbol 263 MovieClipUses:262Used by:276
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:266
Symbol 266 MovieClipUses:265Used by:276
Symbol 267 BitmapUsed by:268
Symbol 268 GraphicUses:267Used by:269
Symbol 269 MovieClipUses:268Used by:276
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:272
Symbol 272 MovieClipUses:271Used by:276
Symbol 273 BitmapUsed by:274
Symbol 274 GraphicUses:273Used by:275
Symbol 275 MovieClipUses:274Used by:276
Symbol 276 MovieClip {glassB}Uses:260 263 266 269 272 275Used by:438
Symbol 277 BitmapUsed by:278
Symbol 278 GraphicUses:277Used by:279
Symbol 279 MovieClipUses:278Used by:295
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282
Symbol 282 MovieClipUses:281Used by:295
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:285
Symbol 285 MovieClipUses:284Used by:295
Symbol 286 BitmapUsed by:287
Symbol 287 GraphicUses:286Used by:288
Symbol 288 MovieClipUses:287Used by:295
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:291
Symbol 291 MovieClipUses:290Used by:295
Symbol 292 BitmapUsed by:293
Symbol 293 GraphicUses:292Used by:294
Symbol 294 MovieClipUses:293Used by:295
Symbol 295 MovieClip {drink6}Uses:279 282 285 288 291 294Used by:438
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:298
Symbol 298 MovieClipUses:297Used by:314
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:301
Symbol 301 MovieClipUses:300Used by:314
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:304
Symbol 304 MovieClipUses:303Used by:314
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:307
Symbol 307 MovieClipUses:306Used by:314
Symbol 308 BitmapUsed by:309
Symbol 309 GraphicUses:308Used by:310
Symbol 310 MovieClipUses:309Used by:314
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:313
Symbol 313 MovieClipUses:312Used by:314
Symbol 314 MovieClip {drink5}Uses:298 301 304 307 310 313Used by:438
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:317
Symbol 317 MovieClipUses:316Used by:333
Symbol 318 BitmapUsed by:319
Symbol 319 GraphicUses:318Used by:320
Symbol 320 MovieClipUses:319Used by:333
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:323
Symbol 323 MovieClipUses:322Used by:333
Symbol 324 BitmapUsed by:325
Symbol 325 GraphicUses:324Used by:326
Symbol 326 MovieClipUses:325Used by:333
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:329
Symbol 329 MovieClipUses:328Used by:333
Symbol 330 BitmapUsed by:331
Symbol 331 GraphicUses:330Used by:332
Symbol 332 MovieClipUses:331Used by:333
Symbol 333 MovieClip {drink4}Uses:317 320 323 326 329 332Used by:438
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:336
Symbol 336 MovieClipUses:335Used by:352
Symbol 337 BitmapUsed by:338
Symbol 338 GraphicUses:337Used by:339
Symbol 339 MovieClipUses:338Used by:352
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:342
Symbol 342 MovieClipUses:341Used by:352
Symbol 343 BitmapUsed by:344
Symbol 344 GraphicUses:343Used by:345
Symbol 345 MovieClipUses:344Used by:352
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:348
Symbol 348 MovieClipUses:347Used by:352
Symbol 349 BitmapUsed by:350
Symbol 350 GraphicUses:349Used by:351
Symbol 351 MovieClipUses:350Used by:352
Symbol 352 MovieClip {drink3}Uses:336 339 342 345 348 351Used by:438
Symbol 353 BitmapUsed by:354
Symbol 354 GraphicUses:353Used by:355
Symbol 355 MovieClipUses:354Used by:371
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:358
Symbol 358 MovieClipUses:357Used by:371
Symbol 359 BitmapUsed by:360
Symbol 360 GraphicUses:359Used by:361
Symbol 361 MovieClipUses:360Used by:371
Symbol 362 BitmapUsed by:363
Symbol 363 GraphicUses:362Used by:364
Symbol 364 MovieClipUses:363Used by:371
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:367
Symbol 367 MovieClipUses:366Used by:371
Symbol 368 BitmapUsed by:369
Symbol 369 GraphicUses:368Used by:370
Symbol 370 MovieClipUses:369Used by:371
Symbol 371 MovieClip {drink2}Uses:355 358 361 364 367 370Used by:438
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:374
Symbol 374 MovieClipUses:373Used by:389
Symbol 375 BitmapUsed by:376
Symbol 376 GraphicUses:375Used by:377
Symbol 377 MovieClipUses:376Used by:389
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380
Symbol 380 MovieClipUses:379Used by:389
Symbol 381 BitmapUsed by:382
Symbol 382 GraphicUses:381Used by:383
Symbol 383 MovieClipUses:382Used by:389
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:384Used by:389
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:388
Symbol 388 MovieClipUses:387Used by:389
Symbol 389 MovieClip {drink1}Uses:374 377 380 383 385 388Used by:438
Symbol 390 BitmapUsed by:391 409 414
Symbol 391 GraphicUses:390Used by:408 420
Symbol 392 GraphicUses:28Used by:408
Symbol 393 BitmapUsed by:394
Symbol 394 GraphicUses:393Used by:395 397
Symbol 395 MovieClipUses:394Used by:397
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:395 396 394Used by:408 411 413 416 418 420
Symbol 398 BitmapUsed by:399 402
Symbol 399 GraphicUses:398Used by:400
Symbol 400 MovieClipUses:399Used by:403
Symbol 401 GraphicUsed by:403
Symbol 402 GraphicUses:398Used by:403
Symbol 403 MovieClipUses:400 401 402Used by:408 411 413 416 418 420
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:406 407
Symbol 406 MovieClipUses:405Used by:407
Symbol 407 MovieClipUses:406 26 405Used by:408 411 413 416 418 420
Symbol 408 MovieClip {fruit1}Uses:391 392 397 403 27 407Used by:438
Symbol 409 GraphicUses:390Used by:411 413 418
Symbol 410 GraphicUses:28Used by:411
Symbol 411 MovieClip {fruit2}Uses:409 410 397 403 27 407Used by:438
Symbol 412 GraphicUses:28Used by:413
Symbol 413 MovieClip {fruit3}Uses:409 412 397 403 27 407Used by:438
Symbol 414 GraphicUses:390Used by:416
Symbol 415 GraphicUses:28Used by:416
Symbol 416 MovieClip {fruit4}Uses:414 415 397 403 27 407Used by:438
Symbol 417 GraphicUses:28Used by:418
Symbol 418 MovieClip {fruit5}Uses:409 417 397 403 27 407Used by:438
Symbol 419 GraphicUses:28Used by:420
Symbol 420 MovieClip {fruit6}Uses:391 419 397 403 27 407Used by:438
Symbol 421 BitmapUsed by:422
Symbol 422 GraphicUses:421Used by:432 433 434 435 436 437
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:432 433 434 435 436 437
Symbol 425 GraphicUses:10Used by:432 433 434 435 436 437
Symbol 426 BitmapUsed by:427
Symbol 427 GraphicUses:426Used by:432 433 434 435 436 437
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:432 433 434 435 436 437
Symbol 430 BitmapUsed by:431
Symbol 431 GraphicUses:430Used by:432 433 434 435 436 437
Symbol 432 MovieClip {extras1}Uses:422 424 425 427 429 431Used by:438
Symbol 433 MovieClip {extras2}Uses:422 424 425 427 429 431Used by:438
Symbol 434 MovieClip {extras3}Uses:422 424 425 427 429 431Used by:438
Symbol 435 MovieClip {extras4}Uses:422 424 425 427 429 431Used by:438
Symbol 436 MovieClip {extras5}Uses:422 424 425 427 429 431Used by:438
Symbol 437 MovieClip {extras6}Uses:422 424 425 427 429 431Used by:438
Symbol 438 MovieClipUses:205 216 239 244 105 257 276 295 314 333 352 371 389 408 411 413 416 418 420 432 433 434 435 436 437 81Used by:451
Symbol 439 Sound {SFX_WRONG}Used by:450
Symbol 440 Sound {SFX_RIGHT}Used by:450
Symbol 441 Sound {SFX_SLIDEIN}Used by:450
Symbol 442 Sound {SFX_SLIDEOUT}Used by:450
Symbol 443 Sound {SFX_CLOCK}Used by:450
Symbol 444 Sound {SFX_CLICK}Used by:450
Symbol 445 Sound {SFX_SELECTION}Used by:450
Symbol 446 Sound {SFX_AMBIENT}Used by:450
Symbol 447 Sound {SFX_GULP}Used by:450
Symbol 448 Sound {SFX_ICE}Used by:450
Symbol 449 Sound {SFX_CLINK}Used by:450
Symbol 450 MovieClipUses:439 440 441 442 443 444 445 446 447 448 449Used by:451
Symbol 451 MovieClip {perfectmix_fla.SpriteDumpContainer_Main_19}Uses:438 450Used by:Timeline
Symbol 452 BitmapUsed by:453
Symbol 453 GraphicUses:452Used by:457
Symbol 454 FontUsed by:455 456
Symbol 455 EditableTextUses:454Used by:457
Symbol 456 EditableTextUses:454Used by:457
Symbol 457 MovieClip {TimeScore}Uses:453 455 456Used by:Timeline

Instance Names

"client_link_btn"Frame 1Symbol 87 Button
"koko_btn"Frame 1Symbol 92 Button
"CrowdAtBar"Frame 1Symbol 106 MovieClip
"fridge_mc"Frame 1Symbol 161 MovieClip
"gradient_mc"Frame 1Symbol 166 MovieClip
"SpriteDump"Frame 2Symbol 451 MovieClip {perfectmix_fla.SpriteDumpContainer_Main_19}
"scoresDisplay"Frame 3Symbol 457 MovieClip {TimeScore}
"bar"Symbol 37 MovieClip {PreloadDisplay} Frame 1Symbol 20 MovieClip
"top"Symbol 37 MovieClip {PreloadDisplay} Frame 1Symbol 34 MovieClip
"preloadText"Symbol 37 MovieClip {PreloadDisplay} Frame 1Symbol 36 EditableText
"main_btn"Symbol 63 MovieClip {ShareMenu} Frame 1Symbol 61 MovieClip {fl.controls.Button}
"__id0_"Symbol 63 MovieClip {ShareMenu} Frame 1Symbol 62 MovieClip {fl.controls.Label}
"submit_share_btn"Symbol 63 MovieClip {ShareMenu} Frame 1Symbol 61 MovieClip {fl.controls.Button}
"start_btn"Symbol 81 MovieClip {HowMenu} Frame 1Symbol 75 Button
"main_btn"Symbol 81 MovieClip {HowMenu} Frame 1Symbol 80 Button
"crowd1"Symbol 106 MovieClip Frame 1Symbol 105 MovieClip {CrowdMember}
"crowd2"Symbol 106 MovieClip Frame 1Symbol 105 MovieClip {CrowdMember}
"crowd3"Symbol 106 MovieClip Frame 1Symbol 105 MovieClip {CrowdMember}
"crowd4"Symbol 106 MovieClip Frame 1Symbol 105 MovieClip {CrowdMember}
"crowd5"Symbol 106 MovieClip Frame 1Symbol 105 MovieClip {CrowdMember}
"serve_btn"Symbol 115 MovieClip Frame 1Symbol 111 Button
"serve_btn"Symbol 115 MovieClip Frame 1Symbol 111 Button
"clear_btn"Symbol 115 MovieClip Frame 1Symbol 114 Button
"serve_options"Symbol 161 MovieClip Frame 1Symbol 115 MovieClip
"glass_btn_6"Symbol 161 MovieClip Frame 1Symbol 120 Button
"glass_btn_5"Symbol 161 MovieClip Frame 1Symbol 120 Button
"glass_btn_4"Symbol 161 MovieClip Frame 1Symbol 120 Button
"glass_btn_3"Symbol 161 MovieClip Frame 1Symbol 120 Button
"glass_btn_2"Symbol 161 MovieClip Frame 1Symbol 120 Button
"glass_btn_1"Symbol 161 MovieClip Frame 1Symbol 120 Button
"drink_btn_blue"Symbol 161 MovieClip Frame 1Symbol 120 Button
"drink_btn_orange"Symbol 161 MovieClip Frame 1Symbol 120 Button
"drink_btn_pink"Symbol 161 MovieClip Frame 1Symbol 120 Button
"drink_btn_yellow"Symbol 161 MovieClip Frame 1Symbol 120 Button
"drink_btn_red"Symbol 161 MovieClip Frame 1Symbol 120 Button
"drink_btn_green"Symbol 161 MovieClip Frame 1Symbol 120 Button
"fruit_btn_lime"Symbol 161 MovieClip Frame 1Symbol 120 Button
"fruit_btn_lemon"Symbol 161 MovieClip Frame 1Symbol 120 Button
"fruit_btn_star"Symbol 161 MovieClip Frame 1Symbol 120 Button
"fruit_btn_orange"Symbol 161 MovieClip Frame 1Symbol 120 Button
"fruit_btn_cherry"Symbol 161 MovieClip Frame 1Symbol 120 Button
"fruit_btn_strawberry"Symbol 161 MovieClip Frame 1Symbol 120 Button
"extras_btn_blue"Symbol 161 MovieClip Frame 1Symbol 120 Button
"extras_btn_umbrella"Symbol 161 MovieClip Frame 1Symbol 120 Button
"extras_btn_orange"Symbol 161 MovieClip Frame 1Symbol 120 Button
"extras_btn_star"Symbol 161 MovieClip Frame 1Symbol 120 Button
"extras_btn_green"Symbol 161 MovieClip Frame 1Symbol 120 Button
"extras_btn_heart"Symbol 161 MovieClip Frame 1Symbol 120 Button
"door1"Symbol 161 MovieClip Frame 1Symbol 148 MovieClip
"door2"Symbol 161 MovieClip Frame 1Symbol 148 MovieClip
"door3"Symbol 161 MovieClip Frame 1Symbol 148 MovieClip
"door4"Symbol 161 MovieClip Frame 1Symbol 148 MovieClip
"instruction1"Symbol 161 MovieClip Frame 1Symbol 151 MovieClip
"instruction2"Symbol 161 MovieClip Frame 1Symbol 154 MovieClip
"instruction3"Symbol 161 MovieClip Frame 1Symbol 157 MovieClip
"instruction4"Symbol 161 MovieClip Frame 1Symbol 160 MovieClip
"play_btn"Symbol 204 MovieClip Frame 1Symbol 171 Button
"share_twitter"Symbol 204 MovieClip Frame 1Symbol 175 Button
"share_facebook"Symbol 204 MovieClip Frame 1Symbol 179 Button
"share_linkedin"Symbol 204 MovieClip Frame 1Symbol 183 Button
"share_myspace"Symbol 204 MovieClip Frame 1Symbol 187 Button
"share_delicious"Symbol 204 MovieClip Frame 1Symbol 191 Button
"share_digg"Symbol 204 MovieClip Frame 1Symbol 195 Button
"share_redit"Symbol 204 MovieClip Frame 1Symbol 199 Button
"share_stumble"Symbol 204 MovieClip Frame 1Symbol 203 Button
"client_link_btn"Symbol 216 MovieClip {CompleteMenu} Frame 1Symbol 211 Button
"score_txt"Symbol 216 MovieClip {CompleteMenu} Frame 1Symbol 212 EditableText
"best_txt"Symbol 216 MovieClip {CompleteMenu} Frame 1Symbol 213 EditableText
"main_btn"Symbol 216 MovieClip {CompleteMenu} Frame 1Symbol 80 Button
"background"Symbol 244 MovieClip {SpeechDrink} Frame 1Symbol 242 MovieClip
"container"Symbol 244 MovieClip {SpeechDrink} Frame 1Symbol 243 MovieClip
"time_txt"Symbol 457 MovieClip {TimeScore} Frame 1Symbol 455 EditableText
"score_txt"Symbol 457 MovieClip {TimeScore} Frame 1Symbol 456 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS3.

Labels

"Sprite Dump"Frame 2
"Game Frame"Frame 3
"yellow"Symbol 295 MovieClip {drink6} Frame 1
"red"Symbol 295 MovieClip {drink6} Frame 2
"pink"Symbol 295 MovieClip {drink6} Frame 3
"orange"Symbol 295 MovieClip {drink6} Frame 4
"green"Symbol 295 MovieClip {drink6} Frame 5
"blue"Symbol 295 MovieClip {drink6} Frame 6
"yellow"Symbol 314 MovieClip {drink5} Frame 1
"red"Symbol 314 MovieClip {drink5} Frame 2
"pink"Symbol 314 MovieClip {drink5} Frame 3
"orange"Symbol 314 MovieClip {drink5} Frame 4
"green"Symbol 314 MovieClip {drink5} Frame 5
"blue"Symbol 314 MovieClip {drink5} Frame 6
"yellow"Symbol 333 MovieClip {drink4} Frame 1
"red"Symbol 333 MovieClip {drink4} Frame 2
"pink"Symbol 333 MovieClip {drink4} Frame 3
"orange"Symbol 333 MovieClip {drink4} Frame 4
"green"Symbol 333 MovieClip {drink4} Frame 5
"blue"Symbol 333 MovieClip {drink4} Frame 6
"yellow"Symbol 352 MovieClip {drink3} Frame 1
"red"Symbol 352 MovieClip {drink3} Frame 2
"pink"Symbol 352 MovieClip {drink3} Frame 3
"orange"Symbol 352 MovieClip {drink3} Frame 4
"green"Symbol 352 MovieClip {drink3} Frame 5
"blue"Symbol 352 MovieClip {drink3} Frame 6
"yellow"Symbol 371 MovieClip {drink2} Frame 1
"red"Symbol 371 MovieClip {drink2} Frame 2
"pink"Symbol 371 MovieClip {drink2} Frame 3
"orange"Symbol 371 MovieClip {drink2} Frame 4
"green"Symbol 371 MovieClip {drink2} Frame 5
"blue"Symbol 371 MovieClip {drink2} Frame 6
"yellow"Symbol 389 MovieClip {drink1} Frame 1
"red"Symbol 389 MovieClip {drink1} Frame 2
"pink"Symbol 389 MovieClip {drink1} Frame 3
"orange"Symbol 389 MovieClip {drink1} Frame 4
"green"Symbol 389 MovieClip {drink1} Frame 5
"blue"Symbol 389 MovieClip {drink1} Frame 6
"strawberry"Symbol 408 MovieClip {fruit1} Frame 1
"cherry"Symbol 408 MovieClip {fruit1} Frame 2
"orange"Symbol 408 MovieClip {fruit1} Frame 3
"star"Symbol 408 MovieClip {fruit1} Frame 4
"lemon"Symbol 408 MovieClip {fruit1} Frame 5
"lime"Symbol 408 MovieClip {fruit1} Frame 6
"strawberry"Symbol 411 MovieClip {fruit2} Frame 1
"cherry"Symbol 411 MovieClip {fruit2} Frame 2
"orange"Symbol 411 MovieClip {fruit2} Frame 3
"star"Symbol 411 MovieClip {fruit2} Frame 4
"lemon"Symbol 411 MovieClip {fruit2} Frame 5
"lime"Symbol 411 MovieClip {fruit2} Frame 6
"strawberry"Symbol 413 MovieClip {fruit3} Frame 1
"cherry"Symbol 413 MovieClip {fruit3} Frame 2
"orange"Symbol 413 MovieClip {fruit3} Frame 3
"star"Symbol 413 MovieClip {fruit3} Frame 4
"lemon"Symbol 413 MovieClip {fruit3} Frame 5
"lime"Symbol 413 MovieClip {fruit3} Frame 6
"strawberry"Symbol 416 MovieClip {fruit4} Frame 1
"cherry"Symbol 416 MovieClip {fruit4} Frame 2
"orange"Symbol 416 MovieClip {fruit4} Frame 3
"star"Symbol 416 MovieClip {fruit4} Frame 4
"lemon"Symbol 416 MovieClip {fruit4} Frame 5
"lime"Symbol 416 MovieClip {fruit4} Frame 6
"strawberry"Symbol 418 MovieClip {fruit5} Frame 1
"cherry"Symbol 418 MovieClip {fruit5} Frame 2
"orange"Symbol 418 MovieClip {fruit5} Frame 3
"star"Symbol 418 MovieClip {fruit5} Frame 4
"lemon"Symbol 418 MovieClip {fruit5} Frame 5
"lime"Symbol 418 MovieClip {fruit5} Frame 6
"strawberry"Symbol 420 MovieClip {fruit6} Frame 1
"cherry"Symbol 420 MovieClip {fruit6} Frame 2
"orange"Symbol 420 MovieClip {fruit6} Frame 3
"star"Symbol 420 MovieClip {fruit6} Frame 4
"lemon"Symbol 420 MovieClip {fruit6} Frame 5
"lime"Symbol 420 MovieClip {fruit6} Frame 6
"heart"Symbol 432 MovieClip {extras1} Frame 1
"green"Symbol 432 MovieClip {extras1} Frame 2
"star"Symbol 432 MovieClip {extras1} Frame 3
"orange"Symbol 432 MovieClip {extras1} Frame 4
"umbrella"Symbol 432 MovieClip {extras1} Frame 5
"blue"Symbol 432 MovieClip {extras1} Frame 6
"heart"Symbol 433 MovieClip {extras2} Frame 1
"green"Symbol 433 MovieClip {extras2} Frame 2
"star"Symbol 433 MovieClip {extras2} Frame 3
"orange"Symbol 433 MovieClip {extras2} Frame 4
"umbrella"Symbol 433 MovieClip {extras2} Frame 5
"blue"Symbol 433 MovieClip {extras2} Frame 6
"heart"Symbol 434 MovieClip {extras3} Frame 1
"green"Symbol 434 MovieClip {extras3} Frame 2
"star"Symbol 434 MovieClip {extras3} Frame 3
"orange"Symbol 434 MovieClip {extras3} Frame 4
"umbrella"Symbol 434 MovieClip {extras3} Frame 5
"blue"Symbol 434 MovieClip {extras3} Frame 6
"heart"Symbol 435 MovieClip {extras4} Frame 1
"green"Symbol 435 MovieClip {extras4} Frame 2
"star"Symbol 435 MovieClip {extras4} Frame 3
"orange"Symbol 435 MovieClip {extras4} Frame 4
"umbrella"Symbol 435 MovieClip {extras4} Frame 5
"blue"Symbol 435 MovieClip {extras4} Frame 6
"heart"Symbol 436 MovieClip {extras5} Frame 1
"green"Symbol 436 MovieClip {extras5} Frame 2
"star"Symbol 436 MovieClip {extras5} Frame 3
"orange"Symbol 436 MovieClip {extras5} Frame 4
"umbrella"Symbol 436 MovieClip {extras5} Frame 5
"blue"Symbol 436 MovieClip {extras5} Frame 6
"heart"Symbol 437 MovieClip {extras6} Frame 1
"green"Symbol 437 MovieClip {extras6} Frame 2
"star"Symbol 437 MovieClip {extras6} Frame 3
"orange"Symbol 437 MovieClip {extras6} Frame 4
"umbrella"Symbol 437 MovieClip {extras6} Frame 5
"blue"Symbol 437 MovieClip {extras6} Frame 6




http://swfchan.com/24/116609/info.shtml
Created: 8/3 -2019 15:52:51 Last modified: 8/3 -2019 15:52:51 Server time: 22/12 -2024 11:56:15