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

lees-japanese-resta.swf

This is the info page for
Flash #124714

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


Text
MÁS JUEGOS

MORE GAMES

PLUS DE JEUX

MEHR SPIELE

<p align="left"><font face="Cocon" size="14" color="#000000" letterSpacing="0.000000" kerning="1">Objective</font></p>

<p align="left"><font face="Cocon" size="12" color="#000000" letterSpacing="0.000000" kerning="1">Time remaining</font></p>

<p align="center"><font face="Trebuchet MS" size="23" color="#000000" letterSpacing="0.000000" kerning="1"><b>888</b></font></p>

<p align="center"><font face="Trebuchet MS" size="18" color="#000000" letterSpacing="0.000000" kerning="1"><b>00 : 00 </b></font></p>

<p align="left"><font face="Cocon" size="14" color="#000000" letterSpacing="0.000000" kerning="1">Total</font></p>

$

<p align="center"><font face="Cocon" size="20" color="#000000" letterSpacing="0.000000" kerning="1">6</font></p>

000$

ActionScript [AS3]

Section 1
//PanelStar_46 (assets_fla.PanelStar_46) package assets_fla { import flash.display.*; public dynamic class PanelStar_46 extends MovieClip { public function PanelStar_46(){ addFrameScript(0, this.frame1, 1, this.frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package assets_fla
Section 2
//ColorShortcuts (caurina.transitions.properties.ColorShortcuts) package caurina.transitions.properties { import flash.geom.*; import caurina.transitions.*; import flash.filters.*; public class ColorShortcuts { private static var LUMINANCE_B:Number = 0.072169; private static var LUMINANCE_G:Number = 0.71516; private static var LUMINANCE_R:Number = 0.212671; public function ColorShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function _color_splitter(_arg1, _arg2:Array):Array{ var _local3:Array = new Array(); if (_arg1 == null){ _local3.push({name:"_color_redMultiplier", value:1}); _local3.push({name:"_color_redOffset", value:0}); _local3.push({name:"_color_greenMultiplier", value:1}); _local3.push({name:"_color_greenOffset", value:0}); _local3.push({name:"_color_blueMultiplier", value:1}); _local3.push({name:"_color_blueOffset", value:0}); } else { _local3.push({name:"_color_redMultiplier", value:0}); _local3.push({name:"_color_redOffset", value:AuxFunctions.numberToR(_arg1)}); _local3.push({name:"_color_greenMultiplier", value:0}); _local3.push({name:"_color_greenOffset", value:AuxFunctions.numberToG(_arg1)}); _local3.push({name:"_color_blueMultiplier", value:0}); _local3.push({name:"_color_blueOffset", value:AuxFunctions.numberToB(_arg1)}); }; return (_local3); } public static function _contrast_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Number; var _local6:Number; _local5 = (_arg2 + 1); _local6 = Math.round((_arg2 * -128)); var _local7:ColorTransform = new ColorTransform(_local5, _local5, _local5, 1, _local6, _local6, _local6, 0); _arg1.transform.colorTransform = _local7; } public static function _brightness_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Boolean = _arg2[0]; var _local5:ColorTransform = _arg1.transform.colorTransform; var _local6:Number = (1 - (((_local5.redMultiplier + _local5.greenMultiplier) + _local5.blueMultiplier) / 3)); var _local7:Number = (((_local5.redOffset + _local5.greenOffset) + _local5.blueOffset) / 3); if (_local4){ return (((_local7 > 0)) ? (_local7 / 0xFF) : -(_local6)); //unresolved jump }; return ((_local7 / 100)); } public static function _saturation_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Array = getObjectMatrix(_arg1); var _local5:Boolean = _arg2[0]; var _local6:Number = (_local5) ? (1 / 3) : LUMINANCE_R; var _local7:Number = (_local5) ? (1 / 3) : LUMINANCE_G; var _local8:Number = (_local5) ? (1 / 3) : LUMINANCE_B; var _local9:Number = (((((_local4[0] - _local6) / (1 - _local6)) + ((_local4[6] - _local7) / (1 - _local7))) + ((_local4[12] - _local8) / (1 - _local8))) / 3); var _local10:Number = (1 - (((((((_local4[1] / _local7) + (_local4[2] / _local8)) + (_local4[5] / _local6)) + (_local4[7] / _local8)) + (_local4[10] / _local6)) + (_local4[11] / _local7)) / 6)); return (((_local9 + _local10) / 2)); } public static function _oldColor_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return ((_arg1.transform.colorTransform[_arg2[0]] * 100)); } public static function _brightness_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local6:Number; var _local7:Number; var _local5:Boolean = _arg3[0]; if (_local5){ _local6 = (1 - Math.abs(_arg2)); _local7 = ((_arg2 > 0)) ? Math.round((_arg2 * 0xFF)) : 0; } else { _local6 = 1; _local7 = Math.round((_arg2 * 100)); }; var _local8:ColorTransform = new ColorTransform(_local6, _local6, _local6, 1, _local7, _local7, _local7, 0); _arg1.transform.colorTransform = _local8; } public static function _saturation_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Boolean = _arg3[0]; var _local6:Number = (_local5) ? (1 / 3) : LUMINANCE_R; var _local7:Number = (_local5) ? (1 / 3) : LUMINANCE_G; var _local8:Number = (_local5) ? (1 / 3) : LUMINANCE_B; var _local9:Number = _arg2; var _local10:Number = (1 - _local9); var _local11:Number = (_local6 * _local10); var _local12:Number = (_local7 * _local10); var _local13:Number = (_local8 * _local10); var _local14:Array = [(_local11 + _local9), _local12, _local13, 0, 0, _local11, (_local12 + _local9), _local13, 0, 0, _local11, _local12, (_local13 + _local9), 0, 0, 0, 0, 0, 1, 0]; setObjectMatrix(_arg1, _local14); } private static function getObjectMatrix(_arg1:Object):Array{ var _local2:Number = 0; while (_local2 < _arg1.filters.length) { if ((_arg1.filters[_local2] is ColorMatrixFilter)){ return (_arg1.filters[_local2].matrix.concat()); }; _local2++; }; return ([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]); } public static function getHueDistance(_arg1:Array, _arg2:Array):Number{ return (((Math.abs((_arg1[0] - _arg2[0])) + Math.abs((_arg1[1] - _arg2[1]))) + Math.abs((_arg1[2] - _arg2[2])))); } public static function _hue_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ setObjectMatrix(_arg1, getHueMatrix(_arg2)); } public static function _hue_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local6:Number; var _local8:Number; var _local4:Array = getObjectMatrix(_arg1); var _local5:Array = []; _local5[0] = {angle:-179.9, matrix:getHueMatrix(-179.9)}; _local5[1] = {angle:180, matrix:getHueMatrix(180)}; _local6 = 0; while (_local6 < _local5.length) { _local5[_local6].distance = getHueDistance(_local4, _local5[_local6].matrix); _local6++; }; var _local7:Number = 15; _local6 = 0; while (_local6 < _local7) { if (_local5[0].distance < _local5[1].distance){ _local8 = 1; } else { _local8 = 0; }; _local5[_local8].angle = ((_local5[0].angle + _local5[1].angle) / 2); _local5[_local8].matrix = getHueMatrix(_local5[_local8].angle); _local5[_local8].distance = getHueDistance(_local4, _local5[_local8].matrix); _local6++; }; return (_local5[_local8].angle); } public static function getHueMatrix(_arg1:Number):Array{ var _local2:Number = ((_arg1 * Math.PI) / 180); var _local3:Number = LUMINANCE_R; var _local4:Number = LUMINANCE_G; var _local5:Number = LUMINANCE_B; var _local6:Number = Math.cos(_local2); var _local7:Number = Math.sin(_local2); var _local8:Array = [((_local3 + (_local6 * (1 - _local3))) + (_local7 * -(_local3))), ((_local4 + (_local6 * -(_local4))) + (_local7 * -(_local4))), ((_local5 + (_local6 * -(_local5))) + (_local7 * (1 - _local5))), 0, 0, ((_local3 + (_local6 * -(_local3))) + (_local7 * 0.143)), ((_local4 + (_local6 * (1 - _local4))) + (_local7 * 0.14)), ((_local5 + (_local6 * -(_local5))) + (_local7 * -0.283)), 0, 0, ((_local3 + (_local6 * -(_local3))) + (_local7 * -((1 - _local3)))), ((_local4 + (_local6 * -(_local4))) + (_local7 * _local4)), ((_local5 + (_local6 * (1 - _local5))) + (_local7 * _local5)), 0, 0, 0, 0, 0, 1, 0]; return (_local8); } public static function _color_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.transform.colorTransform[_arg2[0]]); } public static function init():void{ Tweener.registerSpecialProperty("_color_ra", _oldColor_property_get, _oldColor_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_rb", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_ga", _oldColor_property_get, _oldColor_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_gb", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_ba", _oldColor_property_get, _oldColor_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_bb", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_aa", _oldColor_property_get, _oldColor_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_ab", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialProperty("_color_redMultiplier", _color_property_get, _color_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_redOffset", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_greenMultiplier", _color_property_get, _color_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_greenOffset", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_blueMultiplier", _color_property_get, _color_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_blueOffset", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_alphaMultiplier", _color_property_get, _color_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_alphaOffset", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialPropertySplitter("_color", _color_splitter); Tweener.registerSpecialPropertySplitter("_colorTransform", _colorTransform_splitter); Tweener.registerSpecialProperty("_brightness", _brightness_get, _brightness_set, [false]); Tweener.registerSpecialProperty("_tintBrightness", _brightness_get, _brightness_set, [true]); Tweener.registerSpecialProperty("_contrast", _contrast_get, _contrast_set); Tweener.registerSpecialProperty("_hue", _hue_get, _hue_set); Tweener.registerSpecialProperty("_saturation", _saturation_get, _saturation_set, [false]); Tweener.registerSpecialProperty("_dumbSaturation", _saturation_get, _saturation_set, [true]); } private static function setObjectMatrix(_arg1:Object, _arg2:Array):void{ var _local6:ColorMatrixFilter; var _local3:Array = _arg1.filters.concat(); var _local4:Boolean; var _local5:Number = 0; while (_local5 < _local3.length) { if ((_local3[_local5] is ColorMatrixFilter)){ _local3[_local5].matrix = _arg2.concat(); _local4 = true; }; _local5++; }; if (!_local4){ _local6 = new ColorMatrixFilter(_arg2); _local3[_local3.length] = _local6; }; _arg1.filters = _local3; } public static function _color_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:ColorTransform = _arg1.transform.colorTransform; _local5[_arg3[0]] = _arg2; _arg1.transform.colorTransform = _local5; } public static function _oldColor_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:ColorTransform = _arg1.transform.colorTransform; _local5[_arg3[0]] = (_arg2 / 100); _arg1.transform.colorTransform = _local5; } public static function _contrast_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local5:Number; var _local6:Number; var _local4:ColorTransform = _arg1.transform.colorTransform; _local5 = ((((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3) - 1); _local6 = ((((_local4.redOffset + _local4.greenOffset) + _local4.blueOffset) / 3) / -128); return (((_local5 + _local6) / 2)); } public static function _colorTransform_splitter(_arg1:Object, _arg2:Array):Array{ var _local3:Array = new Array(); if (_arg1 == null){ _local3.push({name:"_color_redMultiplier", value:1}); _local3.push({name:"_color_redOffset", value:0}); _local3.push({name:"_color_greenMultiplier", value:1}); _local3.push({name:"_color_greenOffset", value:0}); _local3.push({name:"_color_blueMultiplier", value:1}); _local3.push({name:"_color_blueOffset", value:0}); } else { _local3.push({name:"_color_redMultiplier", value:_arg1.redMultiplier}); _local3.push({name:"_color_redOffset", value:_arg1.redOffset}); _local3.push({name:"_color_blueMultiplier", value:_arg1.blueMultiplier}); _local3.push({name:"_color_blueOffset", value:_arg1.blueOffset}); _local3.push({name:"_color_greenMultiplier", value:_arg1.greenMultiplier}); _local3.push({name:"_color_greenOffset", value:_arg1.greenOffset}); _local3.push({name:"_color_alphaMultiplier", value:_arg1.alphaMultiplier}); _local3.push({name:"_color_alphaOffset", value:_arg1.alphaOffset}); }; return (_local3); } } }//package caurina.transitions.properties
Section 3
//CurveModifiers (caurina.transitions.properties.CurveModifiers) package caurina.transitions.properties { import caurina.transitions.*; public class CurveModifiers { public function CurveModifiers(){ trace("This is an static class and should not be instantiated."); } public static function init():void{ Tweener.registerSpecialPropertyModifier("_bezier", _bezier_modifier, _bezier_get); } public static function _bezier_get(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array):Number{ var _local5:uint; var _local6:Number; var _local7:Number; var _local8:Number; if (_arg4.length == 1){ return ((_arg1 + (_arg3 * (((2 * (1 - _arg3)) * (_arg4[0] - _arg1)) + (_arg3 * (_arg2 - _arg1)))))); }; _local5 = Math.floor((_arg3 * _arg4.length)); _local6 = ((_arg3 - (_local5 * (1 / _arg4.length))) * _arg4.length); if (_local5 == 0){ _local7 = _arg1; _local8 = ((_arg4[0] + _arg4[1]) / 2); } else { if (_local5 == (_arg4.length - 1)){ _local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2); _local8 = _arg2; } else { _local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2); _local8 = ((_arg4[_local5] + _arg4[(_local5 + 1)]) / 2); }; }; return ((_local7 + (_local6 * (((2 * (1 - _local6)) * (_arg4[_local5] - _local7)) + (_local6 * (_local8 - _local7)))))); } public static function _bezier_modifier(_arg1):Array{ var _local3:Array; var _local4:uint; var _local5:String; var _local2:Array = []; if ((_arg1 is Array)){ _local3 = _arg1; } else { _local3 = [_arg1]; }; var _local6:Object = {}; _local4 = 0; while (_local4 < _local3.length) { for (_local5 in _local3[_local4]) { if (_local6[_local5] == undefined){ _local6[_local5] = []; }; _local6[_local5].push(_local3[_local4][_local5]); }; _local4++; }; for (_local5 in _local6) { _local2.push({name:_local5, parameters:_local6[_local5]}); }; return (_local2); } } }//package caurina.transitions.properties
Section 4
//AuxFunctions (caurina.transitions.AuxFunctions) package caurina.transitions { public class AuxFunctions { public static function getObjectLength(_arg1:Object):uint{ var _local3:String; var _local2:uint; for (_local3 in _arg1) { _local2++; }; return (_local2); } public static function numberToG(_arg1:Number):Number{ return (((_arg1 & 0xFF00) >> 8)); } public static function numberToB(_arg1:Number):Number{ return ((_arg1 & 0xFF)); } public static function numberToR(_arg1:Number):Number{ return (((_arg1 & 0xFF0000) >> 16)); } public static function concatObjects(... _args):Object{ var _local3:Object; var _local5:String; var _local2:Object = {}; var _local4:int; while (_local4 < _args.length) { _local3 = _args[_local4]; for (_local5 in _local3) { if (_local3[_local5] == null){ delete _local2[_local5]; } else { _local2[_local5] = _local3[_local5]; }; }; _local4++; }; return (_local2); } } }//package caurina.transitions
Section 5
//Equations (caurina.transitions.Equations) package caurina.transitions { public class Equations { public function Equations(){ trace("Equations is a static class and should not be instantiated."); } public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); if (_arg1 < (1 / 2.75)){ return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _arg1 = (_arg1 - (1.5 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _arg1 = (_arg1 - (2.25 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2)); }; _arg1 = (_arg1 - (2.625 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2)); } public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); }; --_arg1; return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2)); } public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2)); }; _arg1 = (_arg1 - 2); _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2)); } public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2)); } public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2)); } public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function init():void{ Tweener.registerTransition("easenone", easeNone); Tweener.registerTransition("linear", easeNone); Tweener.registerTransition("easeinquad", easeInQuad); Tweener.registerTransition("easeoutquad", easeOutQuad); Tweener.registerTransition("easeinoutquad", easeInOutQuad); Tweener.registerTransition("easeoutinquad", easeOutInQuad); Tweener.registerTransition("easeincubic", easeInCubic); Tweener.registerTransition("easeoutcubic", easeOutCubic); Tweener.registerTransition("easeinoutcubic", easeInOutCubic); Tweener.registerTransition("easeoutincubic", easeOutInCubic); Tweener.registerTransition("easeinquart", easeInQuart); Tweener.registerTransition("easeoutquart", easeOutQuart); Tweener.registerTransition("easeinoutquart", easeInOutQuart); Tweener.registerTransition("easeoutinquart", easeOutInQuart); Tweener.registerTransition("easeinquint", easeInQuint); Tweener.registerTransition("easeoutquint", easeOutQuint); Tweener.registerTransition("easeinoutquint", easeInOutQuint); Tweener.registerTransition("easeoutinquint", easeOutInQuint); Tweener.registerTransition("easeinsine", easeInSine); Tweener.registerTransition("easeoutsine", easeOutSine); Tweener.registerTransition("easeinoutsine", easeInOutSine); Tweener.registerTransition("easeoutinsine", easeOutInSine); Tweener.registerTransition("easeincirc", easeInCirc); Tweener.registerTransition("easeoutcirc", easeOutCirc); Tweener.registerTransition("easeinoutcirc", easeInOutCirc); Tweener.registerTransition("easeoutincirc", easeOutInCirc); Tweener.registerTransition("easeinexpo", easeInExpo); Tweener.registerTransition("easeoutexpo", easeOutExpo); Tweener.registerTransition("easeinoutexpo", easeInOutExpo); Tweener.registerTransition("easeoutinexpo", easeOutInExpo); Tweener.registerTransition("easeinelastic", easeInElastic); Tweener.registerTransition("easeoutelastic", easeOutElastic); Tweener.registerTransition("easeinoutelastic", easeInOutElastic); Tweener.registerTransition("easeoutinelastic", easeOutInElastic); Tweener.registerTransition("easeinback", easeInBack); Tweener.registerTransition("easeoutback", easeOutBack); Tweener.registerTransition("easeinoutback", easeInOutBack); Tweener.registerTransition("easeoutinback", easeOutInBack); Tweener.registerTransition("easeinbounce", easeInBounce); Tweener.registerTransition("easeoutbounce", easeOutBounce); Tweener.registerTransition("easeinoutbounce", easeInOutBounce); Tweener.registerTransition("easeoutinbounce", easeOutInBounce); } public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2)); } public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001))); } public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2)); } public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2)); } public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; --_arg1; return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); } public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2)); } public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); } public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 == 0){ return (_arg2); }; if (_arg1 == _arg4){ return ((_arg2 + _arg3)); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005))); }; --_arg1; return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2)); } public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local7:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2)); } public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2)); } public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } } }//package caurina.transitions
Section 6
//PropertyInfoObj (caurina.transitions.PropertyInfoObj) package caurina.transitions { public class PropertyInfoObj { public var modifierParameters:Array; public var isSpecialProperty:Boolean; public var valueComplete:Number; public var modifierFunction:Function; public var extra:Object; public var valueStart:Number; public var hasModifier:Boolean; public var arrayIndex:Number; public var originalValueComplete:Object; public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){ valueStart = _arg1; valueComplete = _arg2; originalValueComplete = _arg3; arrayIndex = _arg4; extra = _arg5; isSpecialProperty = _arg6; hasModifier = Boolean(_arg7); modifierFunction = _arg7; modifierParameters = _arg8; } public function toString():String{ var _local1 = "\n[PropertyInfoObj "; _local1 = (_local1 + ("valueStart:" + String(valueStart))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("valueComplete:" + String(valueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("arrayIndex:" + String(arrayIndex))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("extra:" + String(extra))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("hasModifier:" + String(hasModifier))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters))); _local1 = (_local1 + "]\n"); return (_local1); } public function clone():PropertyInfoObj{ var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters); return (_local1); } } }//package caurina.transitions
Section 7
//SpecialProperty (caurina.transitions.SpecialProperty) package caurina.transitions { public class SpecialProperty { public var parameters:Array; public var getValue:Function; public var preProcess:Function; public var setValue:Function; public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){ getValue = _arg1; setValue = _arg2; parameters = _arg3; preProcess = _arg4; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialProperty "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("setValue:" + String(setValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("preProcess:" + String(preProcess))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 8
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier) package caurina.transitions { public class SpecialPropertyModifier { public var getValue:Function; public var modifyValues:Function; public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){ modifyValues = _arg1; getValue = _arg2; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialPropertyModifier "); _local1 = (_local1 + ("modifyValues:" + String(modifyValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 9
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter) package caurina.transitions { public class SpecialPropertySplitter { public var parameters:Array; public var splitValues:Function; public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){ splitValues = _arg1; parameters = _arg2; } public function toString():String{ var _local1 = ""; _local1 = (_local1 + "[SpecialPropertySplitter "); _local1 = (_local1 + ("splitValues:" + String(splitValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 10
//Tweener (caurina.transitions.Tweener) package caurina.transitions { import flash.events.*; import flash.display.*; import flash.utils.*; public class Tweener { private static var _timeScale:Number = 1; private static var _currentTimeFrame:Number; private static var _specialPropertySplitterList:Object; private static var _engineExists:Boolean = false; private static var _specialPropertyModifierList:Object; private static var _currentTime:Number; private static var _tweenList:Array; private static var _specialPropertyList:Object; private static var _transitionList:Object; private static var _inited:Boolean = false; private static var __tweener_controller__:MovieClip; public function Tweener(){ trace("Tweener is a static class and should not be instantiated."); } public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{ if (!_inited){ init(); }; var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3); _specialPropertyModifierList[_arg1] = _local4; } public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{ if (!_inited){ init(); }; var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5); _specialPropertyList[_arg1] = _local6; } public static function init(... _args):void{ _inited = true; _transitionList = new Object(); Equations.init(); _specialPropertyList = new Object(); _specialPropertyModifierList = new Object(); _specialPropertySplitterList = new Object(); } private static function updateTweens():Boolean{ var _local1:int; if (_tweenList.length == 0){ return (false); }; _local1 = 0; while (_local1 < _tweenList.length) { if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){ if (!updateTweenByIndex(_local1)){ removeTweenByIndex(_local1); }; if (_tweenList[_local1] == null){ removeTweenByIndex(_local1, true); _local1--; }; }; _local1++; }; return (true); } public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Array; var _local8:Function; var _local9:TweenListObj; var _local10:Number; var _local11:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local4 = _arg1.concat(); } else { _local4 = [_arg1]; }; var _local5:Object = _arg2; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time; var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay; if (typeof(_local5.transition) == "string"){ _local11 = _local5.transition.toLowerCase(); _local8 = _transitionList[_local11]; } else { _local8 = _local5.transition; }; if (!Boolean(_local8)){ _local8 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local4.length) { if (_local5.useFrames == true){ _local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams); } else { _local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams); }; _local9.properties = null; _local9.onStart = _local5.onStart; _local9.onUpdate = _local5.onUpdate; _local9.onComplete = _local5.onComplete; _local9.onOverwrite = _local5.onOverwrite; _local9.onStartParams = _local5.onStartParams; _local9.onUpdateParams = _local5.onUpdateParams; _local9.onCompleteParams = _local5.onCompleteParams; _local9.onOverwriteParams = _local5.onOverwriteParams; _local9.onStartScope = _local5.onStartScope; _local9.onUpdateScope = _local5.onUpdateScope; _local9.onCompleteScope = _local5.onCompleteScope; _local9.onOverwriteScope = _local5.onOverwriteScope; _local9.onErrorScope = _local5.onErrorScope; _local9.isCaller = true; _local9.count = _local5.count; _local9.waitFrames = _local5.waitFrames; _tweenList.push(_local9); if ((((_local6 == 0)) && ((_local7 == 0)))){ _local10 = (_tweenList.length - 1); updateTweenByIndex(_local10); removeTweenByIndex(_local10); }; _local3++; }; return (true); } public static function pauseAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { pauseTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function removeTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local5:SpecialPropertySplitter; var _local6:Array; var _local7:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){ if (_specialPropertySplitterList[_args[_local4]]){ _local5 = _specialPropertySplitterList[_args[_local4]]; _local6 = _local5.splitValues(_arg1, null); _local7 = 0; while (_local7 < _local6.length) { _local3.push(_local6[_local7].name); _local7++; }; } else { _local3.push(_args[_local4]); }; }; _local4++; }; return (affectTweens(removeTweenByIndex, _arg1, _local3)); } public static function splitTweens(_arg1:Number, _arg2:Array):uint{ var _local5:uint; var _local6:String; var _local7:Boolean; var _local3:TweenListObj = _tweenList[_arg1]; var _local4:TweenListObj = _local3.clone(false); _local5 = 0; while (_local5 < _arg2.length) { _local6 = _arg2[_local5]; if (Boolean(_local3.properties[_local6])){ _local3.properties[_local6] = undefined; delete _local3.properties[_local6]; }; _local5++; }; for (_local6 in _local4.properties) { _local7 = false; _local5 = 0; while (_local5 < _arg2.length) { if (_arg2[_local5] == _local6){ _local7 = true; break; }; _local5++; }; if (!_local7){ _local4.properties[_local6] = undefined; delete _local4.properties[_local6]; }; }; _tweenList.push(_local4); return ((_tweenList.length - 1)); } public static function updateFrame():void{ _currentTimeFrame++; } public static function resumeTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj = _tweenList[_arg1]; if ((((_local2 == null)) || (!(_local2.isPaused)))){ return (false); }; var _local3:Number = getCurrentTweeningTime(_local2); _local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused)); _local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused)); _local2.timePaused = undefined; _local2.isPaused = false; return (true); } public static function getVersion():String{ return ("AS3 1.31.74"); } public static function onEnterFrame(_arg1:Event):void{ updateTime(); updateFrame(); var _local2:Boolean; _local2 = updateTweens(); if (!_local2){ stopEngine(); }; } public static function updateTime():void{ _currentTime = getTimer(); } private static function updateTweenByIndex(_arg1:Number):Boolean{ var tTweening:TweenListObj; var mustUpdate:Boolean; var nv:Number; var t:Number; var b:Number; var c:Number; var d:Number; var pName:String; var eventScope:Object; var tScope:Object; var tProperty:Object; var pv:Number; var i = _arg1; tTweening = _tweenList[i]; if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){ return (false); }; var isOver:Boolean; var cTime:Number = getCurrentTweeningTime(tTweening); if (cTime >= tTweening.timeStart){ tScope = tTweening.scope; if (tTweening.isCaller){ do { t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1)); b = tTweening.timeStart; c = (tTweening.timeComplete - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); } while (!(cTime >= nv)); } else { mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates))); if (cTime >= tTweening.timeComplete){ isOver = true; mustUpdate = true; }; if (!tTweening.hasStarted){ if (Boolean(tTweening.onStart)){ eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope; try { tTweening.onStart.apply(eventScope, tTweening.onStartParams); } catch(e2:Error) { handleError(tTweening, e2, "onStart"); }; }; for (pName in tTweening.properties) { if (tTweening.properties[pName].isSpecialProperty){ if (Boolean(_specialPropertyList[pName].preProcess)){ tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra); }; pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { pv = tScope[pName]; }; tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv; }; mustUpdate = true; tTweening.hasStarted = true; }; if (mustUpdate){ for (pName in tTweening.properties) { tProperty = tTweening.properties[pName]; if (isOver){ nv = tProperty.valueComplete; } else { if (tProperty.hasModifier){ t = (cTime - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams); nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters); } else { t = (cTime - tTweening.timeStart); b = tProperty.valueStart; c = (tProperty.valueComplete - tProperty.valueStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d, tTweening.transitionParams); }; }; if (tTweening.rounded){ nv = Math.round(nv); }; if (tProperty.isSpecialProperty){ _specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { tScope[pName] = nv; }; }; tTweening.updatesSkipped = 0; if (Boolean(tTweening.onUpdate)){ eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope; try { tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams); } catch(e3:Error) { handleError(tTweening, e3, "onUpdate"); }; }; } else { tTweening.updatesSkipped++; }; }; if (((isOver) && (Boolean(tTweening.onComplete)))){ eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope; try { tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams); } catch(e4:Error) { handleError(tTweening, e4, "onComplete"); }; }; return (!(isOver)); }; return (true); } public static function setTimeScale(_arg1:Number):void{ var _local2:Number; var _local3:Number; if (isNaN(_arg1)){ _arg1 = 1; }; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; if (_arg1 != _timeScale){ if (_tweenList != null){ _local2 = 0; while (_local2 < _tweenList.length) { _local3 = getCurrentTweeningTime(_tweenList[_local2]); _tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1)); _tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1)); if (_tweenList[_local2].timePaused != undefined){ _tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1)); }; _local2++; }; }; _timeScale = _arg1; }; } public static function resumeAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { resumeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{ var eventScope:Object; var pTweening = _arg1; var pError = _arg2; var pCallBackName = _arg3; if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){ eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope; try { pTweening.onError.apply(eventScope, [pTweening.scope, pError]); } catch(metaError:Error) { printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace())); }; } else { if (!Boolean(pTweening.onError)){ printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace())); }; }; } private static function startEngine():void{ _engineExists = true; _tweenList = new Array(); __tweener_controller__ = new MovieClip(); __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); _currentTimeFrame = 0; updateTime(); } public static function removeAllTweens():Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; var _local1:Boolean; _local2 = 0; while (_local2 < _tweenList.length) { removeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Number; var _local5:String; var _local6:Array; var _local13:Function; var _local14:Object; var _local15:TweenListObj; var _local16:Number; var _local17:Array; var _local18:Array; var _local19:Array; var _local20:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local6 = _arg1.concat(); } else { _local6 = [_arg1]; }; var _local7:Object = TweenListObj.makePropertiesChain(_arg2); if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time; var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay; var _local10:Array = new Array(); var _local11:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true}; var _local12:Object = new Object(); for (_local5 in _local7) { if (!_local11[_local5]){ if (_specialPropertySplitterList[_local5]){ _local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters); _local3 = 0; while (_local3 < _local17.length) { if (_specialPropertySplitterList[_local17[_local3].name]){ _local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters); _local4 = 0; while (_local4 < _local18.length) { _local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false}; _local4++; }; } else { _local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false}; }; _local3++; }; } else { if (_specialPropertyModifierList[_local5] != undefined){ _local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]); _local3 = 0; while (_local3 < _local19.length) { _local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue}; _local3++; }; } else { _local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]}; }; }; }; }; for (_local5 in _local10) { if (_specialPropertyList[_local5] != undefined){ _local10[_local5].isSpecialProperty = true; } else { if (_local6[0][_local5] == undefined){ printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property.")); }; }; }; for (_local5 in _local12) { if (_local10[_local5] != undefined){ _local10[_local5].modifierParameters = _local12[_local5].modifierParameters; _local10[_local5].modifierFunction = _local12[_local5].modifierFunction; }; }; if (typeof(_local7.transition) == "string"){ _local20 = _local7.transition.toLowerCase(); _local13 = _transitionList[_local20]; } else { _local13 = _local7.transition; }; if (!Boolean(_local13)){ _local13 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local6.length) { _local14 = new Object(); for (_local5 in _local10) { _local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters); }; if (_local7.useFrames == true){ _local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams); } else { _local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams); }; _local15.properties = _local14; _local15.onStart = _local7.onStart; _local15.onUpdate = _local7.onUpdate; _local15.onComplete = _local7.onComplete; _local15.onOverwrite = _local7.onOverwrite; _local15.onError = _local7.onError; _local15.onStartParams = _local7.onStartParams; _local15.onUpdateParams = _local7.onUpdateParams; _local15.onCompleteParams = _local7.onCompleteParams; _local15.onOverwriteParams = _local7.onOverwriteParams; _local15.onStartScope = _local7.onStartScope; _local15.onUpdateScope = _local7.onUpdateScope; _local15.onCompleteScope = _local7.onCompleteScope; _local15.onOverwriteScope = _local7.onOverwriteScope; _local15.onErrorScope = _local7.onErrorScope; _local15.rounded = _local7.rounded; _local15.skipUpdates = _local7.skipUpdates; removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete); _tweenList.push(_local15); if ((((_local8 == 0)) && ((_local9 == 0)))){ _local16 = (_tweenList.length - 1); updateTweenByIndex(_local16); removeTweenByIndex(_local16); }; _local3++; }; return (true); } public static function registerTransition(_arg1:String, _arg2:Function):void{ if (!_inited){ init(); }; _transitionList[_arg1] = _arg2; } public static function printError(_arg1:String):void{ trace(("## [Tweener] Error: " + _arg1)); } private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{ var _local5:uint; var _local6:Array; var _local7:uint; var _local8:uint; var _local9:uint; var _local4:Boolean; if (!Boolean(_tweenList)){ return (false); }; _local5 = 0; while (_local5 < _tweenList.length) { if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){ if (_arg3.length == 0){ _arg1(_local5); _local4 = true; } else { _local6 = new Array(); _local7 = 0; while (_local7 < _arg3.length) { if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){ _local6.push(_arg3[_local7]); }; _local7++; }; if (_local6.length > 0){ _local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties); if (_local8 == _local6.length){ _arg1(_local5); _local4 = true; } else { _local9 = splitTweens(_local5, _local6); _arg1(_local9); _local4 = true; }; }; }; }; _local5++; }; return (_local4); } public static function getTweens(_arg1:Object):Array{ var _local2:uint; var _local3:String; if (!Boolean(_tweenList)){ return ([]); }; var _local4:Array = new Array(); _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ for (_local3 in _tweenList[_local2].properties) { _local4.push(_local3); }; }; _local2++; }; return (_local4); } public static function isTweening(_arg1:Object):Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ return (true); }; _local2++; }; return (false); } public static function pauseTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj = _tweenList[_arg1]; if ((((_local2 == null)) || (_local2.isPaused))){ return (false); }; _local2.timePaused = getCurrentTweeningTime(_local2); _local2.isPaused = true; return (true); } public static function getCurrentTweeningTime(_arg1:Object):Number{ return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime); } public static function getTweenCount(_arg1:Object):Number{ var _local2:uint; if (!Boolean(_tweenList)){ return (0); }; var _local3:Number = 0; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties)); }; _local2++; }; return (_local3); } private static function stopEngine():void{ _engineExists = false; _tweenList = null; _currentTime = 0; _currentTimeFrame = 0; __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); __tweener_controller__ = null; } public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{ var removedLocally:Boolean; var i:uint; var pName:String; var eventScope:Object; var p_scope = _arg1; var p_properties = _arg2; var p_timeStart = _arg3; var p_timeComplete = _arg4; var removed:Boolean; var tl:uint = _tweenList.length; i = 0; while (i < tl) { if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){ if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){ removedLocally = false; for (pName in _tweenList[i].properties) { if (Boolean(p_properties[pName])){ if (Boolean(_tweenList[i].onOverwrite)){ eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope; try { _tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams); } catch(e:Error) { handleError(_tweenList[i], e, "onOverwrite"); }; }; _tweenList[i].properties[pName] = undefined; delete _tweenList[i].properties[pName]; removedLocally = true; removed = true; }; }; if (removedLocally){ if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){ removeTweenByIndex(i); }; }; }; }; i = (i + 1); }; return (removed); } public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{ if (!_inited){ init(); }; var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3); _specialPropertySplitterList[_arg1] = _local4; } public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{ _tweenList[_arg1] = null; if (_arg2){ _tweenList.splice(_arg1, 1); }; return (true); } public static function resumeTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(resumeTweenByIndex, _arg1, _local3)); } public static function pauseTweens(_arg1:Object, ... _args):Boolean{ var _local4:uint; var _local3:Array = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(pauseTweenByIndex, _arg1, _local3)); } } }//package caurina.transitions
Section 11
//TweenListObj (caurina.transitions.TweenListObj) package caurina.transitions { public class TweenListObj { public var hasStarted:Boolean; public var onUpdate:Function; public var useFrames:Boolean; public var count:Number; public var onOverwriteParams:Array; public var timeStart:Number; public var timeComplete:Number; public var onStartParams:Array; public var onUpdateScope:Object; public var rounded:Boolean; public var onUpdateParams:Array; public var properties:Object; public var onComplete:Function; public var transitionParams:Object; public var updatesSkipped:Number; public var onStart:Function; public var onOverwriteScope:Object; public var skipUpdates:Number; public var onStartScope:Object; public var scope:Object; public var isCaller:Boolean; public var timePaused:Number; public var transition:Function; public var onCompleteParams:Array; public var onError:Function; public var timesCalled:Number; public var onErrorScope:Object; public var onOverwrite:Function; public var isPaused:Boolean; public var waitFrames:Boolean; public var onCompleteScope:Object; public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){ scope = _arg1; timeStart = _arg2; timeComplete = _arg3; useFrames = _arg4; transition = _arg5; transitionParams = _arg6; properties = new Object(); isPaused = false; timePaused = undefined; isCaller = false; updatesSkipped = 0; timesCalled = 0; skipUpdates = 0; hasStarted = false; } public function clone(_arg1:Boolean):TweenListObj{ var _local3:String; var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams); _local2.properties = new Array(); for (_local3 in properties) { _local2.properties[_local3] = properties[_local3].clone(); }; _local2.skipUpdates = skipUpdates; _local2.updatesSkipped = updatesSkipped; if (!_arg1){ _local2.onStart = onStart; _local2.onUpdate = onUpdate; _local2.onComplete = onComplete; _local2.onOverwrite = onOverwrite; _local2.onError = onError; _local2.onStartParams = onStartParams; _local2.onUpdateParams = onUpdateParams; _local2.onCompleteParams = onCompleteParams; _local2.onOverwriteParams = onOverwriteParams; _local2.onStartScope = onStartScope; _local2.onUpdateScope = onUpdateScope; _local2.onCompleteScope = onCompleteScope; _local2.onOverwriteScope = onOverwriteScope; _local2.onErrorScope = onErrorScope; }; _local2.rounded = rounded; _local2.isPaused = isPaused; _local2.timePaused = timePaused; _local2.isCaller = isCaller; _local2.count = count; _local2.timesCalled = timesCalled; _local2.waitFrames = waitFrames; _local2.hasStarted = hasStarted; return (_local2); } public function toString():String{ var _local3:String; var _local1 = "\n[TweenListObj "; _local1 = (_local1 + ("scope:" + String(scope))); _local1 = (_local1 + ", properties:"); var _local2:Boolean; for (_local3 in properties) { if (!_local2){ _local1 = (_local1 + ","); }; _local1 = (_local1 + ("[name:" + properties[_local3].name)); _local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart)); _local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete)); _local1 = (_local1 + "]"); _local2 = false; }; _local1 = (_local1 + (", timeStart:" + String(timeStart))); _local1 = (_local1 + (", timeComplete:" + String(timeComplete))); _local1 = (_local1 + (", useFrames:" + String(useFrames))); _local1 = (_local1 + (", transition:" + String(transition))); _local1 = (_local1 + (", transitionParams:" + String(transitionParams))); if (skipUpdates){ _local1 = (_local1 + (", skipUpdates:" + String(skipUpdates))); }; if (updatesSkipped){ _local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped))); }; if (Boolean(onStart)){ _local1 = (_local1 + (", onStart:" + String(onStart))); }; if (Boolean(onUpdate)){ _local1 = (_local1 + (", onUpdate:" + String(onUpdate))); }; if (Boolean(onComplete)){ _local1 = (_local1 + (", onComplete:" + String(onComplete))); }; if (Boolean(onOverwrite)){ _local1 = (_local1 + (", onOverwrite:" + String(onOverwrite))); }; if (Boolean(onError)){ _local1 = (_local1 + (", onError:" + String(onError))); }; if (onStartParams){ _local1 = (_local1 + (", onStartParams:" + String(onStartParams))); }; if (onUpdateParams){ _local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams))); }; if (onCompleteParams){ _local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams))); }; if (onOverwriteParams){ _local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams))); }; if (onStartScope){ _local1 = (_local1 + (", onStartScope:" + String(onStartScope))); }; if (onUpdateScope){ _local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope))); }; if (onCompleteScope){ _local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope))); }; if (onOverwriteScope){ _local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope))); }; if (onErrorScope){ _local1 = (_local1 + (", onErrorScope:" + String(onErrorScope))); }; if (rounded){ _local1 = (_local1 + (", rounded:" + String(rounded))); }; if (isPaused){ _local1 = (_local1 + (", isPaused:" + String(isPaused))); }; if (timePaused){ _local1 = (_local1 + (", timePaused:" + String(timePaused))); }; if (isCaller){ _local1 = (_local1 + (", isCaller:" + String(isCaller))); }; if (count){ _local1 = (_local1 + (", count:" + String(count))); }; if (timesCalled){ _local1 = (_local1 + (", timesCalled:" + String(timesCalled))); }; if (waitFrames){ _local1 = (_local1 + (", waitFrames:" + String(waitFrames))); }; if (hasStarted){ _local1 = (_local1 + (", hasStarted:" + String(hasStarted))); }; _local1 = (_local1 + "]\n"); return (_local1); } public static function makePropertiesChain(_arg1:Object):Object{ var _local3:Object; var _local4:Object; var _local5:Object; var _local6:Number; var _local7:Number; var _local8:Number; var _local2:Object = _arg1.base; if (_local2){ _local3 = {}; if ((_local2 is Array)){ _local4 = []; _local8 = 0; while (_local8 < _local2.length) { _local4.push(_local2[_local8]); _local8++; }; } else { _local4 = [_local2]; }; _local4.push(_arg1); _local6 = _local4.length; _local7 = 0; while (_local7 < _local6) { if (_local4[_local7]["base"]){ _local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]); } else { _local5 = _local4[_local7]; }; _local3 = AuxFunctions.concatObjects(_local3, _local5); _local7++; }; if (_local3["base"]){ delete _local3["base"]; }; return (_local3); //unresolved jump }; return (_arg1); } } }//package caurina.transitions
Section 12
//Engine (drimlike.data.Engine) package drimlike.data { import flash.events.*; import drimlike.level.*; import drimlike.*; import drimlike.xml.*; import drimlike.sound.*; public class Engine extends EventDispatcher { public var level:Level; public var sandbox:Sandbox; public var xmlFeed:XMLFeed; public var TRACKING_KEY:String;// = "japaneseresto" public var imageFeed:XMLRotator; public var soundManager:SoundManager; private static var _instance:Engine; public function Engine(){ soundManager = new SoundManager(); } public static function getInstance():Engine{ if (_instance == null){ _instance = new (Engine); }; return (_instance); } } }//package drimlike.data
Section 13
//Chef (drimlike.level.objects.Chef) package drimlike.level.objects { import flash.events.*; import drimlike.data.*; import flash.geom.*; import flash.display.*; import flash.utils.*; import caurina.transitions.*; public class Chef extends Sprite { private var pasta1:FoodItem; private var pasta2:FoodItem; private var drink2X:Number;// = 214 private var pasta1X:Number;// = 504 private var pasta1Y:Number;// = 465 private var drink1:FoodItem; private var drink2:FoodItem; private var chefTimer:Timer; public var garbageArray:Array; private var chefResponse:Number;// = 500 private var isChefBusy:Boolean; private var pizza2:FoodItem; private var pizza1:FoodItem; private var pasta2X:Number;// = 504 private var pasta2Y:Number;// = 500 private var garbage:Sprite; private var chef:Sprite; private var pizza1X:Number;// = 315 private var pizza1Y:Number;// = 475 private var drink1X:Number;// = 175 private var drink1Y:Number;// = 476 private var pizza2X:Number;// = 315 private var pizza2Y:Number;// = 504 public var garbagePoints:Array; private var drink2Y:Number;// = 487 public function Chef(){ garbagePoints = new Array(new Point(70, 28), new Point(75, 36), new Point(80, 44), new Point(85, 52)); garbageArray = new Array(); super(); init(); } private function onChefTick(_arg1:TimerEvent):void{ var close:Function; var e = _arg1; close = function ():void{ isChefBusy = false; }; if (isChefBusy == false){ if (!drink1.visible){ isChefBusy = true; Tweener.addTween(chef, {x:drink1X, time:0.5}); Tweener.addTween(chef, {y:530, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), delay:0.5, transition:"easeOutExpo"}); Tweener.addTween(chef, {y:712, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:1.5, onComplete:close}); drink1.visible = true; Tweener.addTween(drink1, {y:drink1Y, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:0.75}); } else { if (!pizza1.visible){ isChefBusy = true; Tweener.addTween(chef, {x:pizza1X, time:0.5}); Tweener.addTween(chef, {y:530, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), delay:0.5, transition:"easeOutExpo"}); Tweener.addTween(chef, {y:712, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:1.5, onComplete:close}); pizza1.visible = true; Tweener.addTween(pizza1, {y:pizza1Y, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:0.75}); } else { if (!pasta1.visible){ isChefBusy = true; Tweener.addTween(chef, {x:pasta1X, time:0.5}); Tweener.addTween(chef, {y:530, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), delay:0.5, transition:"easeOutExpo"}); Tweener.addTween(chef, {y:712, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:1.5, onComplete:close}); pasta1.visible = true; Tweener.addTween(pasta1, {y:pasta1Y, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:0.75}); } else { if (!drink2.visible){ isChefBusy = true; Tweener.addTween(chef, {x:drink2X, time:0.5}); Tweener.addTween(chef, {y:530, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), delay:0.5, transition:"easeOutExpo"}); Tweener.addTween(chef, {y:712, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:1.5, onComplete:close}); drink2.visible = true; Tweener.addTween(drink2, {y:drink2Y, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:0.75}); } else { if (!pizza2.visible){ isChefBusy = true; Tweener.addTween(chef, {x:pizza2X, time:0.5}); Tweener.addTween(chef, {y:530, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), delay:0.5, transition:"easeOutExpo"}); Tweener.addTween(chef, {y:712, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:1.5, onComplete:close}); pizza2.visible = true; Tweener.addTween(pizza2, {y:pizza2Y, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:0.75}); } else { if (!pasta2.visible){ isChefBusy = true; Tweener.addTween(chef, {x:pasta2X, time:0.5}); Tweener.addTween(chef, {y:530, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), delay:0.5, transition:"easeOutExpo"}); Tweener.addTween(chef, {y:712, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:1.5, onComplete:close}); pasta2.visible = true; Tweener.addTween(pasta2, {y:pasta2Y, time:(Engine.getInstance().sandbox.currentChefSpeed / 2), transition:"easeOutExpo", delay:0.75}); }; }; }; }; }; }; }; } private function init():void{ drink1 = new FoodItem(FoodItem.DRINK_ITEM); drink1.scaleX = (drink1.scaleY = 0.7); drink1.useHandCursor = true; drink1.buttonMode = true; drink1.addEventListener(MouseEvent.CLICK, onMouseClick); drink1.x = 190; drink1.y = 650; drink1.visible = false; addChild(drink1); drink2 = new FoodItem(FoodItem.DRINK_ITEM); drink2.useHandCursor = true; drink2.buttonMode = true; drink2.addEventListener(MouseEvent.CLICK, onMouseClick); drink2.scaleX = (drink2.scaleY = 0.7); drink2.x = 214; drink2.y = 650; drink2.visible = false; addChild(drink2); pizza1 = new FoodItem(FoodItem.PIZZA_ITEM); pizza1.useHandCursor = true; pizza1.buttonMode = true; pizza1.addEventListener(MouseEvent.CLICK, onMouseClick); pizza1.scaleX = (pizza1.scaleY = 0.55); pizza1.x = 315; pizza1.y = 650; pizza1.visible = false; addChild(pizza1); pizza2 = new FoodItem(FoodItem.PIZZA_ITEM); pizza2.useHandCursor = true; pizza2.buttonMode = true; pizza2.addEventListener(MouseEvent.CLICK, onMouseClick); pizza2.scaleX = (pizza2.scaleY = 0.55); pizza2.x = 352; pizza2.y = 650; pizza2.visible = false; addChild(pizza2); pasta1 = new FoodItem(FoodItem.PASTA_ITEM); pasta1.scaleX = (pasta1.scaleY = 0.55); pasta1.useHandCursor = true; pasta1.buttonMode = true; pasta1.addEventListener(MouseEvent.CLICK, onMouseClick); pasta1.x = 457; pasta1.y = 650; pasta1.visible = false; addChild(pasta1); pasta2 = new FoodItem(FoodItem.PASTA_ITEM); pasta2.scaleX = (pasta2.scaleY = 0.55); pasta2.useHandCursor = true; pasta2.buttonMode = true; pasta2.addEventListener(MouseEvent.CLICK, onMouseClick); pasta2.x = 504; pasta2.y = 650; pasta2.visible = false; addChild(pasta2); chef = new ChefAsset(); chef.mouseChildren = false; chef.mouseEnabled = false; chef.x = (728 / 2); chef.y = 712; addChild(chef); garbage = new GarbageTrayAsset(); garbage.x = 730; garbage.y = (530 - 90); garbage.mouseChildren = false; garbage.useHandCursor = true; garbage.buttonMode = true; garbage.addEventListener(MouseEvent.CLICK, onGarbageClick); addChild(garbage); this.mouseEnabled = false; this.mouseChildren = true; } private function onMouseClick(_arg1:MouseEvent):void{ var player:Player; var foodItem:FoodItem; var interval:uint; var e = _arg1; player = Engine.getInstance().level.player; if (player.isAvailable){ var doAction:Function = function ():void{ if (player.tray.foodArray.length < 4){ player.tray.addFood(foodItem.itemType); foodItem.visible = false; foodItem.y = 600; }; clearInterval(interval); }; foodItem = FoodItem(e.target); player.gotoCounter(foodItem); interval = setInterval(doAction, 300); }; } public function showGarbageTray():void{ Tweener.addTween(garbage, {x:(728 - 150), time:2, transition:"easeOutExpo"}); } public function reset():void{ var doResetState:Function = function ():void{ var _local2:FoodItem; chef.x = (728 / 2); chef.y = 712; drink1.x = 190; drink1.y = 650; drink1.visible = false; drink2.x = 214; drink2.y = 650; drink2.visible = false; pizza1.x = 315; pizza1.y = 650; pizza1.visible = false; pizza2.x = 352; pizza2.y = 650; pizza2.visible = false; pasta1.x = 457; pasta1.y = 650; pasta1.visible = false; pasta2.x = 504; pasta2.y = 650; pasta2.visible = false; garbage.x = 730; garbage.y = (530 - 90); var _local1:int; while (_local1 < garbageArray.length) { _local2 = FoodItem(garbageArray[_local1]); garbageArray.splice(garbageArray.indexOf(_local2), 1); _local1--; garbage.removeChild(_local2); _local2 = null; _local1++; }; isChefBusy = false; }; if (chefTimer){ chefTimer.removeEventListener(TimerEvent.TIMER, onChefTick); chefTimer.stop(); chefTimer = null; }; Tweener.removeTweens(chef); Tweener.removeTweens(drink1); Tweener.removeTweens(drink2); Tweener.removeTweens(pizza1); Tweener.removeTweens(pizza2); Tweener.removeTweens(pasta1); Tweener.removeTweens(pasta2); Tweener.removeTweens(garbage); Tweener.addTween(chef, {y:712, x:(728 / 2), time:0.2, transition:"easeOutExpo"}); Tweener.addTween(garbage, {x:740, time:0.2, transition:"easeOutExpo"}); doResetState(); } public function startChef(_arg1:int=500):void{ if (chefTimer){ chefTimer.removeEventListener(TimerEvent.TIMER, onChefTick); chefTimer.stop(); chefTimer = null; }; chefTimer = new Timer(_arg1); chefTimer.addEventListener(TimerEvent.TIMER, onChefTick); chefTimer.start(); showGarbageTray(); } public function onGarbageClick(_arg1:MouseEvent):void{ var player:Player; var interval:uint; var e = _arg1; player = Engine.getInstance().level.player; if (player.isAvailable){ if (player.tray.foodArray.length > 0){ var doAction:Function = function ():void{ var _local3:FoodItem; var _local1:int; var _local2:int; while (_local2 < player.tray.foodArray.length) { if (_local2 < 4){ _local3 = FoodItem(player.tray.foodArray[_local2]); player.tray.removeChild(_local3); player.tray.foodArray.splice(player.tray.foodArray.indexOf(_local3), 1); _local2--; garbage.addChild(_local3); _local3.x = Point(garbagePoints[_local1]).x; _local3.y = Point(garbagePoints[_local1]).y; _local1++; garbageArray.push(_local3); }; _local2++; }; hideGarbageTray(); clearInterval(interval); }; player.gotoGarbage(); garbage.mouseEnabled = false; interval = setInterval(doAction, 300); }; }; } public function hideGarbageTray():void{ var interval:uint; var doAction:Function; doAction = function ():void{ var _local2:FoodItem; var _local3:int; var _local1:int; while (_local1 < garbageArray.length) { _local2 = FoodItem(garbageArray[_local1]); if (!_local2.isGarbage){ _local3 = 0; if (_local2.firstType == FoodItem.DRINK_ITEM){ _local3 = Engine.getInstance().sandbox.currentDrinkCost; } else { if (_local2.firstType == FoodItem.PIZZA_ITEM){ _local3 = Engine.getInstance().sandbox.currentPizzaCost; } else { if (_local2.firstType == FoodItem.PASTA_ITEM){ _local3 = Engine.getInstance().sandbox.currentPastaCost; }; }; }; Engine.getInstance().level.panel.removeCashFromCurrent(_local3); }; garbageArray.splice(garbageArray.indexOf(_local2), 1); _local1--; garbage.removeChild(_local2); _local2 = null; _local1++; }; showGarbageTray(); garbage.mouseEnabled = true; clearInterval(interval); }; Tweener.addTween(garbage, {x:740, time:1, delay:1, transition:"easeOutExpo"}); interval = setInterval(doAction, Engine.getInstance().sandbox.currentGarbageDelay); } } }//package drimlike.level.objects
Section 14
//Customer (drimlike.level.objects.Customer) package drimlike.level.objects { import flash.events.*; import flash.display.*; import flash.utils.*; import caurina.transitions.*; public class Customer extends Sprite { public var herHairColor:uint; private var waitingDoorHerShoes:Sprite; private var waitingDoorHisSkin:Sprite; private var waitingDoorHisTrousers:Sprite; private var hairArray:Array; private var waitingDoorHerSkin:Sprite; public var herShoeColor:uint; public var waitingDoorContainer:Sprite; private var waitingDoorButton:Sprite; public var hisHairColor:uint; private var waitingDoorHisShoes:Sprite; private var shoeArray:Array; public var hisTopColor:uint; public var hisTrousersColor:uint; private var customerContainer:Sprite; private var waitingDoorOverlay:Sprite; public var hisShoeColor:uint; public var herSkinColor:uint; private var generalArray:Array; private var waitingDoorHerDress:Sprite; public var herDressColor:uint; private var skinArray:Array; private var waitingDoorHisTop:Sprite; public var hisSkinColor:uint; private var waitingDoorHisHair:Sprite; private var waitingDoorHerHair:Sprite; public static var CUSTOMER_LEAVE_EVENT:String = "customerLeaveEvent"; public static var WELCOME_EVENT:String = "welcomeEvent"; public function Customer(){ hairArray = new Array("0xd3c088", "0xba9b62", "0x7b684a", "0xb3b3b5", "0xb08260", "0x90624a", "0x553c28", "0x302f2a"); skinArray = new Array("0xeed5b2", "0xe4be9c", "0xaf917d", "0x654f3f"); shoeArray = new Array("0x626262", "0x59493f", "0xa3907c", "0x1b1b1b"); generalArray = new Array("0xa0a0a0", "0x535353", "0xfff59b", "0xd0df99", "0x8e9ac9", "0x8baed8", "0x790e11", "0xcebca5", "0x7d695a", "0x38302b", "0xcba674", "0x673b15", "0x313131"); super(); init(); } public function doHideWaitingButton():void{ waitingDoorButton.visible = false; } private function init():void{ this.mouseChildren = false; this.mouseEnabled = false; customerContainer = new Sprite(); customerContainer.x = (728 / 2); customerContainer.y = 270; customerContainer.scaleX = (customerContainer.scaleY = 0.2); addChild(customerContainer); waitingDoorContainer = new Sprite(); waitingDoorContainer.mouseChildren = true; waitingDoorContainer.mouseEnabled = false; customerContainer.addChild(waitingDoorContainer); createWaitingDoorCharacter(); } private function onWaitingDoorClick(_arg1:MouseEvent):void{ trace("character:: waiting door clicked"); dispatchEvent(new Event(WELCOME_EVENT)); } public function gotoTable(_arg1:Table):void{ var interval:uint; var hide:Function; var table = _arg1; hide = function ():void{ clearInterval(interval); customerContainer.visible = false; }; Tweener.addTween(customerContainer, {x:table.x, y:table.y, _bezier:{x:360, y:330}, scaleX:table.scaleX, scaleY:table.scaleY, time:0.2, delay:0.6, transition:"easeOutExpo"}); interval = setInterval(hide, 750); } public function gotoDoor():void{ var interval:uint; var hide:Function; hide = function ():void{ clearInterval(interval); customerContainer.visible = false; dispatchEvent(new Event(CUSTOMER_LEAVE_EVENT)); }; customerContainer.visible = true; customerContainer.alpha = 1; Tweener.addTween(customerContainer, {x:360, y:275, _bezier:{x:360, y:330}, scaleX:0.21, scaleY:0.21, time:0.2, alpha:0, transition:"easeOutExpo"}); interval = setInterval(hide, 180); } public function get characterX():int{ return (waitingDoorContainer.x); } public function get characterY():int{ return (waitingDoorContainer.y); } private function createWaitingDoorCharacter():void{ herDressColor = uint(generalArray[Math.floor((Math.random() * generalArray.length))]); herHairColor = uint(hairArray[Math.floor((Math.random() * hairArray.length))]); herShoeColor = uint(shoeArray[Math.floor((Math.random() * shoeArray.length))]); herSkinColor = uint(skinArray[Math.floor((Math.random() * skinArray.length))]); hisTrousersColor = uint(generalArray[Math.floor((Math.random() * generalArray.length))]); hisTopColor = uint(generalArray[Math.floor((Math.random() * generalArray.length))]); hisSkinColor = uint(skinArray[Math.floor((Math.random() * skinArray.length))]); hisShoeColor = uint(shoeArray[Math.floor((Math.random() * shoeArray.length))]); hisHairColor = uint(hairArray[Math.floor((Math.random() * hairArray.length))]); waitingDoorHisTrousers = new CharacteWaitingDoorHisTrousersAsset(); waitingDoorHisTrousers.mouseEnabled = false; waitingDoorHisTrousers.mouseChildren = false; Tweener.addTween(waitingDoorHisTrousers, {_color:hisTrousersColor}); waitingDoorContainer.addChild(waitingDoorHisTrousers); waitingDoorHisTop = new CharacteWaitingDoorHisTopAsset(); waitingDoorHisTop.mouseChildren = false; waitingDoorHisTop.mouseEnabled = false; Tweener.addTween(waitingDoorHisTop, {_color:hisTopColor}); waitingDoorContainer.addChild(waitingDoorHisTop); waitingDoorHisSkin = new CharacteWaitingDoorHisSkinAsset(); waitingDoorHisSkin.mouseChildren = false; waitingDoorHisSkin.mouseEnabled = false; Tweener.addTween(waitingDoorHisSkin, {_color:hisSkinColor}); waitingDoorContainer.addChild(waitingDoorHisSkin); waitingDoorHisShoes = new CharacteWaitingDoorHisShoesAsset(); waitingDoorHisShoes.mouseChildren = false; waitingDoorHisShoes.mouseEnabled = false; Tweener.addTween(waitingDoorHisShoes, {_color:hisShoeColor}); waitingDoorContainer.addChild(waitingDoorHisShoes); waitingDoorHisHair = new CharacteWaitingDoorHisHairAsset(); waitingDoorHisHair.mouseChildren = false; waitingDoorHisHair.mouseEnabled = false; Tweener.addTween(waitingDoorHisHair, {_color:hisHairColor}); waitingDoorContainer.addChild(waitingDoorHisHair); waitingDoorHerDress = new CharacteWaitingDoorHerDressAsset(); waitingDoorHerDress.mouseChildren = false; waitingDoorHerDress.mouseEnabled = false; Tweener.addTween(waitingDoorHerDress, {_color:herDressColor}); waitingDoorContainer.addChild(waitingDoorHerDress); waitingDoorHerHair = new CharacteWaitingDoorHerHairAsset(); waitingDoorHerHair.mouseChildren = false; waitingDoorHerHair.mouseEnabled = false; Tweener.addTween(waitingDoorHerHair, {_color:herHairColor}); waitingDoorContainer.addChild(waitingDoorHerHair); waitingDoorHerShoes = new CharacteWaitingDoorHerShoesAsset(); waitingDoorHerShoes.mouseChildren = false; waitingDoorHerShoes.mouseEnabled = false; Tweener.addTween(waitingDoorHerShoes, {_color:herShoeColor}); waitingDoorContainer.addChild(waitingDoorHerShoes); waitingDoorHerSkin = new CharacteWaitingDoorHerSkinAsset(); waitingDoorHerShoes.mouseChildren = false; waitingDoorHerShoes.mouseEnabled = false; Tweener.addTween(waitingDoorHerSkin, {_color:herSkinColor}); waitingDoorContainer.addChild(waitingDoorHerSkin); waitingDoorOverlay = new CharacteWaitingDoorOverlayAsset(); waitingDoorOverlay.mouseChildren = false; waitingDoorOverlay.mouseEnabled = false; waitingDoorContainer.addChild(waitingDoorOverlay); this.mouseEnabled = false; this.mouseChildren = true; } public function destroy():void{ herDressColor = 0; herHairColor = 0; herShoeColor = 0; herSkinColor = 0; hisTrousersColor = 0; hisTopColor = 0; hisSkinColor = 0; hisShoeColor = 0; hisHairColor = 0; waitingDoorContainer.removeChild(waitingDoorHisTrousers); waitingDoorHisTrousers = null; waitingDoorContainer.removeChild(waitingDoorHisTop); waitingDoorHisTop = null; waitingDoorContainer.removeChild(waitingDoorHisSkin); waitingDoorHisSkin = null; waitingDoorContainer.removeChild(waitingDoorHisShoes); waitingDoorHisShoes = null; waitingDoorContainer.removeChild(waitingDoorHisHair); waitingDoorHisHair = null; waitingDoorContainer.removeChild(waitingDoorHerDress); waitingDoorHerDress = null; waitingDoorContainer.removeChild(waitingDoorHerHair); waitingDoorHerHair = null; waitingDoorContainer.removeChild(waitingDoorHerShoes); waitingDoorHerShoes = null; waitingDoorContainer.removeChild(waitingDoorHerSkin); waitingDoorHerSkin = null; waitingDoorContainer.removeChild(waitingDoorOverlay); waitingDoorOverlay = null; removeChild(waitingDoorContainer); waitingDoorContainer = null; removeChild(customerContainer); customerContainer = null; } } }//package drimlike.level.objects
Section 15
//FoodItem (drimlike.level.objects.FoodItem) package drimlike.level.objects { import flash.display.*; public class FoodItem extends Sprite { private var asset:Sprite; public var firstType:String; public var isGarbage:Boolean; public var itemType:String; public static var DIRTY_ITEM:String = "dirtyItem"; public static var PIZZA_ITEM:String = "pizzaItem"; public static var PASTA_ITEM:String = "pastaItem"; public static var DRINK_ITEM:String = "drinkItem"; public function FoodItem(_arg1:String){ switch (_arg1){ case DRINK_ITEM: itemType = DRINK_ITEM; firstType = DRINK_ITEM; asset = new DrinksDishAsset(); break; case PIZZA_ITEM: itemType = PIZZA_ITEM; firstType = PIZZA_ITEM; asset = new PizzaDishAsset(); break; case PASTA_ITEM: itemType = PASTA_ITEM; firstType = PASTA_ITEM; asset = new PastaDishAsset(); break; }; asset.mouseChildren = false; asset.mouseEnabled = false; addChild(asset); } public function gotoEmpty():void{ var _local1:DrinksDishAsset; var _local2:PizzaDishAsset; var _local3:PastaDishAsset; switch (itemType){ case DRINK_ITEM: _local1 = DrinksDishAsset(asset); _local1.play(); break; case PIZZA_ITEM: _local2 = PizzaDishAsset(asset); _local2.play(); break; case PASTA_ITEM: _local3 = PastaDishAsset(asset); _local3.play(); break; }; isGarbage = true; itemType = DIRTY_ITEM; } } }//package drimlike.level.objects
Section 16
//Player (drimlike.level.objects.Player) package drimlike.level.objects { import drimlike.data.*; import drimlike.level.*; import flash.geom.*; import flash.display.*; import flash.utils.*; import caurina.transitions.*; public class Player extends Sprite { private var level:Level; private var currentTable:Table; private var playerContainer:Sprite; public var lastPosition:String; private var defaultPose:Sprite; public var tray:Tray; private var cleanPose:Sprite; private var runPose:Sprite; public var isAvailable:Boolean;// = true public static var BIN_POSITION:String = "binPosition"; public static var DOOR_POSITION:String = "doorPosition"; public static var TABLE_POSITION:String = "tablePosition"; public static var COUNTER_POSITION:String = "counterPosition"; public function Player(_arg1:Level){ level = _arg1; init(); } public function gotoStart():void{ Tweener.removeTweens(playerContainer); playerContainer.x = 900; playerContainer.y = 500; playerContainer.scaleX = (playerContainer.scaleY = 0.55); Tweener.addTween(playerContainer, {x:(728 / 2), time:1, delay:1.5, transition:"easeOutExpo"}); isAvailable = true; defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; var _local1:int = (level.getChildIndex(level.foreground) - 1); level.setChildIndex(level.player, _local1); } public function reset():void{ var _local2:FoodItem; Tweener.removeTweens(playerContainer); Tweener.addTween(playerContainer, {x:-600, y:500, scaleX:0.55, scaleY:0.55, time:0.5, transition:"easeOutExpo"}); var _local1:int; while (_local1 < tray.foodArray.length) { _local2 = FoodItem(tray.foodArray[_local1]); tray.removeChild(_local2); tray.foodArray.splice(_local1, 1); _local1--; _local2 = null; _local1++; }; } private function init():void{ this.mouseChildren = false; this.mouseEnabled = false; playerContainer = new Sprite(); playerContainer.scaleX = (playerContainer.scaleY = 0.55); playerContainer.x = (728 / 2); playerContainer.y = 500; addChild(playerContainer); defaultPose = new PlayerDefaultAsset(); playerContainer.addChild(defaultPose); runPose = new PlayerRunAsset(); playerContainer.addChild(runPose); cleanPose = new PlayerCleanAsset(); playerContainer.addChild(cleanPose); tray = new Tray(); tray.x = -42; tray.y = -370; playerContainer.addChild(tray); runPose.visible = false; cleanPose.visible = false; } public function goToDoor(_arg1:Point, _arg2:Number):void{ var soundInterval:uint; var interval:uint; var endPoint = _arg1; var endScale = _arg2; if (isAvailable){ var whooshSound:Function = function ():void{ Engine.getInstance().soundManager.doWhooshSound(); clearInterval(soundInterval); }; var shiftLayer:Function = function ():void{ level.setChildIndex(level.player, 10); defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; isAvailable = true; clearInterval(interval); }; Tweener.removeTweens(playerContainer); isAvailable = false; currentTable = null; lastPosition = DOOR_POSITION; defaultPose.visible = false; cleanPose.visible = false; runPose.visible = true; Tweener.addTween(playerContainer, {x:endPoint.x, y:endPoint.y, _bezier:{x:360, y:330}, scaleX:endScale, scaleY:endScale, time:0.3, delay:0.25, transition:"easeOutExpo"}); soundInterval = setInterval(whooshSound, 100); interval = setInterval(shiftLayer, 300); }; } public function gotoGarbage():void{ var interval:uint; if (isAvailable){ Tweener.removeTweens(playerContainer); currentTable = null; if ((((lastPosition == COUNTER_POSITION)) || ((lastPosition == BIN_POSITION)))){ defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; lastPosition = BIN_POSITION; Tweener.addTween(playerContainer, {x:(728 - 100), y:580, time:0.3, scaleX:0.7, scaleY:0.7, transition:"easeOutExpo", onComplete:doMakeAvailable}); } else { var shiftLayer:Function = function ():void{ var _local1:int = (level.getChildIndex(level.foreground) - 1); level.setChildIndex(level.player, _local1); defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; isAvailable = true; clearInterval(interval); }; defaultPose.visible = false; cleanPose.visible = false; runPose.visible = true; Tweener.addTween(playerContainer, {x:(728 - 100), y:580, _bezier:{x:360, y:330}, scaleX:0.7, scaleY:0.7, time:0.3, delay:0.25, transition:"easeOutExpo"}); lastPosition = BIN_POSITION; Engine.getInstance().soundManager.doWhooshSound(); interval = setInterval(shiftLayer, 300); isAvailable = false; }; }; } public function gotoCounter(_arg1:FoodItem):void{ var itemType:String; var interval:uint; var fooditem = _arg1; if (isAvailable){ itemType = fooditem.itemType; currentTable = null; Tweener.removeTweens(playerContainer); if ((((lastPosition == COUNTER_POSITION)) || ((lastPosition == BIN_POSITION)))){ defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; lastPosition = COUNTER_POSITION; Tweener.addTween(playerContainer, {x:fooditem.x, y:(fooditem.y + 100), time:0.3, transition:"easeOutExpo", onComplete:doMakeAvailable}); } else { var shiftLayer:Function = function ():void{ var _local1:int = (level.getChildIndex(level.foreground) - 1); level.setChildIndex(level.player, _local1); defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; isAvailable = true; clearInterval(interval); }; defaultPose.visible = false; cleanPose.visible = false; runPose.visible = true; isAvailable = false; lastPosition = COUNTER_POSITION; Tweener.addTween(playerContainer, {x:fooditem.x, y:(fooditem.y + 100), _bezier:{x:360, y:330}, scaleX:0.7, scaleY:0.7, time:0.3, delay:0.25, transition:"easeOutExpo"}); interval = setInterval(shiftLayer, 300); }; }; } public function gotoDirtyTable(_arg1:Table):void{ var interval:uint; var table = _arg1; if (isAvailable){ if (currentTable != table){ var shiftLayer:Function = function ():void{ var _local1:int = (level.getChildIndex(table) - 1); level.setChildIndex(level.player, _local1); defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; isAvailable = true; clearInterval(interval); }; Tweener.removeTweens(playerContainer); isAvailable = false; currentTable = table; lastPosition = TABLE_POSITION; defaultPose.visible = false; cleanPose.visible = false; runPose.visible = true; Tweener.addTween(playerContainer, {x:table.x, y:table.y, _bezier:{x:360, y:330}, scaleX:table.scaleX, scaleY:table.scaleY, time:0.3, delay:0.25, transition:"easeOutExpo"}); interval = setInterval(shiftLayer, 300); }; }; } public function gotoTable(_arg1:Table):void{ var soundInterval:uint; var interval:uint; var table = _arg1; if (isAvailable){ if (currentTable != table){ var whooshSound:Function = function ():void{ Engine.getInstance().soundManager.doWhooshSound(); clearInterval(soundInterval); }; var shiftLayer:Function = function ():void{ var _local1:int = (level.getChildIndex(table) - 1); level.setChildIndex(level.player, _local1); defaultPose.visible = true; cleanPose.visible = false; runPose.visible = false; isAvailable = true; clearInterval(interval); }; Tweener.removeTweens(playerContainer); isAvailable = false; currentTable = table; lastPosition = TABLE_POSITION; defaultPose.visible = false; cleanPose.visible = false; runPose.visible = true; Tweener.addTween(playerContainer, {x:table.x, y:table.y, _bezier:{x:360, y:330}, scaleX:table.scaleX, scaleY:table.scaleY, time:0.3, delay:0.25, transition:"easeOutExpo"}); soundInterval = setInterval(whooshSound, 100); interval = setInterval(shiftLayer, 300); }; }; } private function doMakeAvailable():void{ isAvailable = true; } } }//package drimlike.level.objects
Section 17
//Table (drimlike.level.objects.Table) package drimlike.level.objects { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.utils.*; import caurina.transitions.*; public class Table extends Sprite { private var annoyanceTimerSadShake:Number;// = 20 private var menuBrowseMinimum:int; public var isCurrentStateActive:Boolean; private var annoyanceTimer:Timer; private var annoyanceTimerHappy:Number;// = 5 public var currentOrientation:String; public var currentState:String; private var menuBrowseMaximum:int; private var tableButton:Sprite; private var menuTimer:Timer; public var tableOrder:TableOrder; private var tableEmotion:TableEmotion; public var order1Flag:Boolean; public var order2Flag:Boolean; public var order3Flag:Boolean; public var order4Flag:Boolean; private var tableSprite:Sprite; public var order6Flag:Boolean; public var order5Flag:Boolean; public var tablePaid:TablePaid; private var annoyanceCounter:int;// = 0 private var annoyanceTimerSad:Number;// = 15 private var annoyanceScore:int;// = 0 private var eatingTimer:Timer; private var eatFoodMinimum:int; private var tableAccessory:TableAccessories; private var customer:Customer; private var eatFoodMaximum:int; private var annoyanceTimerLeave:Number;// = 25 private var annoyanceTimerStandard:Number;// = 10 public var isAvailableForCustomers:Boolean;// = true private var tableCharacter:TableCharacter; public static var STATE_ORDER:String = "tableStateOrder"; public static var STATE_FINISH:String = "tableStateFinish"; public static var STATE_WAIT:String = "tableStateWait"; public static var STATE_DIRTY:String = "tableStateDirty"; public static var STATE_EAT:String = "tableStateEat"; public static var STATE_MENU:String = "tableStateMenu"; public static var TABLE_CUSTOMER_LEAVE:String = "tableCustomerLeave"; public static var STATE_LEFTOVER:String = "tableStateLeftOver"; public static var ORIENTATION_LEFT:String = "orientationLeft"; public static var TABLE_CLICK_EVENT:String = "tableClickEvent"; public static var ORIENTATION_RIGHT:String = "orientationRight"; public static var STATE_EMPTY:String = "tableStateEmpty"; public function Table(_arg1:String){ currentState = STATE_EMPTY; super(); this.mouseEnabled = false; this.mouseChildren = true; currentOrientation = _arg1; init(); } public function addFoodToTray():void{ var interval:uint; var doAction:Function; doAction = function ():void{ var _local4:FoodItem; var _local5:int; var _local6:FoodItem; var _local1:Tray = Engine.getInstance().level.player.tray; var _local2:int; _local1.rearrange(); var _local3:int; while (_local3 < 4) { _local4 = FoodItem(_local1.foodArray[_local3]); _local5 = 0; while (_local5 < tableAccessory.foodArray.length) { _local6 = FoodItem(tableAccessory.foodArray[_local5]); if (_local1.foodArray.length < 4){ tableAccessory.removeChild(_local6); tableAccessory.foodArray.splice(tableAccessory.foodArray.indexOf(_local6), 1); _local5--; _local1.addDirtyFood(_local6); }; _local5++; }; _local3++; }; if (tableAccessory.foodArray.length == 0){ reset(); }; clearInterval(interval); }; interval = setInterval(doAction, 300); } private function doStartAnnoyanceTimer():void{ if (annoyanceTimer){ annoyanceTimer.stop(); annoyanceTimer.removeEventListener(TimerEvent.TIMER, onAnnoyanceTick); annoyanceTimer = null; }; annoyanceCounter = 0; annoyanceTimer = new Timer(1000); annoyanceTimer.addEventListener(TimerEvent.TIMER, onAnnoyanceTick); annoyanceTimer.start(); } private function createTableButton():void{ tableButton = new TableButtonAsset(); tableButton.useHandCursor = true; tableButton.mouseChildren = false; tableButton.buttonMode = true; tableButton.addEventListener(MouseEvent.CLICK, onTableButtonClick); addChild(tableButton); } public function doShowOrderWait():void{ var interval:uint; var doAction:Function; doAction = function ():void{ tableAccessory.resetAll(); tableEmotion.resetAll(); tableCharacter.showWaitingPose(); currentState = Table.STATE_WAIT; clearInterval(interval); tableOrder.generateTableOrder(); }; isCurrentStateActive = false; interval = setInterval(doAction, 300); } public function cleanAll():void{ tableCharacter.resetAll(); tableAccessory.resetAll(); tableEmotion.resetAll(); } private function init():void{ createTableGraphic(); createTableCharacter(); createTableAccessories(); createTableEmotion(); createTableButton(); createTablePaid(); tableOrder = new TableOrder(); addChild(tableOrder); } private function createTableAccessories():void{ tableAccessory = new TableAccessories(); addChild(tableAccessory); } private function createTableCharacter():void{ tableCharacter = new TableCharacter(); tableCharacter.mouseChildren = false; tableCharacter.mouseEnabled = false; addChild(tableCharacter); } public function doResetAnnoyanceTimer():void{ annoyanceCounter = 0; if (annoyanceTimer){ annoyanceTimer.stop(); annoyanceTimer.removeEventListener(TimerEvent.TIMER, onAnnoyanceTick); annoyanceTimer = null; }; } private function doShowEatingMeal():void{ eatFoodMaximum = Engine.getInstance().sandbox.currentEatFoodTimeMax; eatFoodMinimum = Engine.getInstance().sandbox.currentEatFoodTimeMin; isCurrentStateActive = true; doStopAnnoyanceTimer(); tableCharacter.showEatingPose(); var _local1:int = Math.floor((eatFoodMinimum + ((eatFoodMaximum - eatFoodMinimum) * Math.random()))); if (eatingTimer){ eatingTimer.stop(); eatingTimer.removeEventListener(TimerEvent.TIMER, onFinishDinner); eatingTimer = null; }; eatingTimer = new Timer(_local1); eatingTimer.addEventListener(TimerEvent.TIMER, onFinishDinner); eatingTimer.start(); } public function addLeftOverToTray():void{ var interval:uint; var doAction:Function; doAction = function ():void{ var _local4:FoodItem; var _local5:int; var _local6:FoodItem; var _local1:Tray = Engine.getInstance().level.player.tray; var _local2:int; _local1.rearrange(); var _local3:int; while (_local3 < 4) { _local4 = FoodItem(_local1.foodArray[_local3]); _local5 = 0; while (_local5 < tableAccessory.foodArray.length) { _local6 = FoodItem(tableAccessory.foodArray[_local5]); if (_local1.foodArray.length < 4){ tableAccessory.removeChild(_local6); tableAccessory.foodArray.splice(tableAccessory.foodArray.indexOf(_local6), 1); _local5--; _local1.addFood(_local6.itemType); }; _local5++; }; _local3++; }; if (tableAccessory.foodArray.length == 0){ reset(); }; clearInterval(interval); }; interval = setInterval(doAction, 300); } public function addFoodFromTray():void{ var interval:uint; var doAction:Function; doAction = function ():void{ var _local3:int; var _local4:FoodItem; var _local5:FoodItem; var _local1:Tray = Engine.getInstance().level.player.tray; var _local2:int; while (_local2 < _local1.foodArray.length) { _local3 = 0; while (_local3 < tableOrder.orderArray.length) { _local4 = FoodItem(_local1.foodArray[_local2]); _local5 = FoodItem(tableOrder.orderArray[_local3]); if (_local4.itemType == _local5.itemType){ tableAccessory.addFood(_local5.itemType); tableOrder.orderArray.splice(tableOrder.orderArray.indexOf(_local5), 1); _local3--; _local1.removeChild(_local4); _local1.foodArray.splice(_local1.foodArray.indexOf(_local4), 1); _local4 = null; _local2--; tableOrder.updatePostIt(); break; }; _local3++; }; _local2++; }; if (tableOrder.orderArray.length == 0){ tableOrder.destroyOrder(); doShowEatingMeal(); }; clearInterval(interval); }; interval = setInterval(doAction, 300); } private function createTableEmotion():void{ tableEmotion = new TableEmotion(this); addChild(tableEmotion); } private function onTableButtonClick(_arg1:Event):void{ dispatchEvent(new Event(TABLE_CLICK_EVENT)); } private function showOrderState():void{ Engine.getInstance().soundManager.doWhistleSound(); tableCharacter.showOrderPose(); isCurrentStateActive = false; currentState = STATE_ORDER; doStartAnnoyanceTimer(); } private function doStopAnnoyanceTimer():void{ if (annoyanceTimer){ annoyanceTimer.stop(); annoyanceTimer.removeEventListener(TimerEvent.TIMER, onAnnoyanceTick); annoyanceTimer = null; }; tableEmotion.resetAll(); annoyanceCounter = 0; } private function createTablePaid():void{ tablePaid = new TablePaid(); tablePaid.y = -200; addChild(tablePaid); } private function createTableGraphic():void{ tableSprite = new TableAsset(); addChild(tableSprite); } private function onMenuBrowseComplete(_arg1:TimerEvent):void{ if (menuTimer){ menuTimer.stop(); menuTimer.removeEventListener(TimerEvent.TIMER, onMenuBrowseComplete); menuTimer = null; }; showOrderState(); } public function doShowMenuState(_arg1:Customer):void{ var show:Function; var char = _arg1; show = function ():void{ tableAccessory.showMenu(); tableCharacter.showMenuPose(); if (menuTimer){ menuTimer.stop(); menuTimer.removeEventListener(TimerEvent.TIMER, onMenuBrowseComplete); menuTimer = null; }; currentState = STATE_MENU; var _local1:int = Math.floor((menuBrowseMinimum + ((menuBrowseMaximum - menuBrowseMinimum) * Math.random()))); menuTimer = new Timer(_local1); menuTimer.addEventListener(TimerEvent.TIMER, onMenuBrowseComplete); menuTimer.start(); }; menuBrowseMaximum = Engine.getInstance().sandbox.currentMenuBrowseTimeMax; menuBrowseMinimum = Engine.getInstance().sandbox.currentMenuBrowseTimeMin; customer = char; isAvailableForCustomers = false; isCurrentStateActive = true; Tweener.addTween(this, {delay:0.8, onComplete:show}); tableCharacter.updateColor(char.herDressColor, char.herHairColor, char.herShoeColor, char.herSkinColor, char.hisShoeColor, char.hisHairColor, char.hisTopColor, char.hisTrousersColor, char.hisSkinColor); } private function getRandomNumber(_arg1:int, _arg2:int):int{ var _local3:Number = (_arg2 - _arg1); var _local4:Number = (Math.random() * _local3); var _local5:int = Math.round(_local4); _local5 = (_local5 + _arg1); return (_local5); } public function reset():void{ currentState = STATE_EMPTY; if (menuTimer){ menuTimer.stop(); menuTimer.removeEventListener(TimerEvent.TIMER, onMenuBrowseComplete); menuTimer = null; }; if (eatingTimer){ eatingTimer.stop(); eatingTimer.removeEventListener(TimerEvent.TIMER, onFinishDinner); eatingTimer = null; }; doResetAnnoyanceTimer(); tableAccessory.reset(); tableCharacter.reset(); tableEmotion.reset(); tableOrder.reset(); tablePaid.reset(); isAvailableForCustomers = true; isCurrentStateActive = false; } private function onFinishDinner(_arg1:TimerEvent):void{ eatingTimer.stop(); eatingTimer.removeEventListener(TimerEvent.TIMER, onFinishDinner); eatingTimer = null; tableAccessory.showAllFinished(); doCleanState(); var _local2:int; _local2 = tableOrder.totalPayment; if (tableEmotion.worstMood == 3){ _local2 = (_local2 + getRandomNumber(Engine.getInstance().sandbox.currentHappyTipMin, Engine.getInstance().sandbox.currentHappyTipMax)); } else { if (tableEmotion.worstMood == 2){ _local2 = (_local2 + getRandomNumber(Engine.getInstance().sandbox.currentMediumTipMin, Engine.getInstance().sandbox.currentMediumTipMax)); }; }; tablePaid.showAmountPaid(_local2, tableEmotion.worstMood); Engine.getInstance().level.panel.addCashToCurrent(_local2); } private function onAnnoyanceTick(_arg1:TimerEvent):void{ annoyanceCounter++; switch (annoyanceCounter){ default: break; case annoyanceTimerHappy: tableEmotion.showHappy(); annoyanceScore++; break; case annoyanceTimerStandard: tableEmotion.showStandard(); annoyanceScore++; break; case annoyanceTimerSad: tableEmotion.showAnnoyed(); annoyanceScore++; break; case annoyanceTimerSadShake: tableEmotion.showVeryAnnoyed(); annoyanceScore++; break; case annoyanceTimerLeave: tableEmotion.showLeaving(); tableCharacter.resetAll(); tableOrder.reset(); customer.gotoDoor(); if (tableAccessory.foodArray.length > 0){ currentState = STATE_LEFTOVER; } else { reset(); }; break; }; } private function doCleanState():void{ isCurrentStateActive = false; doStopAnnoyanceTimer(); currentState = STATE_DIRTY; Engine.getInstance().soundManager.doPaymentSound(); tableCharacter.resetAll(); customer.gotoDoor(); } } }//package drimlike.level.objects
Section 18
//TableAccessories (drimlike.level.objects.TableAccessories) package drimlike.level.objects { import flash.geom.*; import flash.display.*; public class TableAccessories extends Sprite { private var pointArray:Array; private var tableMenu:Sprite; public var foodArray:Array; public function TableAccessories(){ pointArray = new Array(new Point(-64, -200), new Point(36, -200), new Point(-64, -190), new Point(36, -190)); super(); foodArray = new Array(); init(); } public function reset():void{ var _local1:FoodItem; resetAll(); while (foodArray.length > 0) { _local1 = FoodItem(foodArray.pop()); removeChild(_local1); _local1 = null; }; } private function init():void{ tableMenu = new TableMenuAsset(); addChild(tableMenu); resetAll(); } public function resetAll():void{ tableMenu.visible = false; } public function showAllFinished():void{ var _local1:FoodItem; for each (_local1 in foodArray) { _local1.gotoEmpty(); }; } public function showMenu():void{ resetAll(); tableMenu.visible = true; } public function addFood(_arg1:String):void{ var _local2:FoodItem; var _local3:Point; if (foodArray.length < 4){ switch (_arg1){ case FoodItem.DRINK_ITEM: _local2 = new FoodItem(FoodItem.DRINK_ITEM); _local2.scaleX = (_local2.scaleY = 0.7); _local3 = Point(pointArray[foodArray.length]); _local2.x = _local3.x; _local2.y = _local3.y; if (foodArray.length < 2){ addChildAt(_local2, 0); } else { addChild(_local2); }; foodArray.push(_local2); break; case FoodItem.PASTA_ITEM: _local2 = new FoodItem(FoodItem.PASTA_ITEM); _local2.scaleX = (_local2.scaleY = 0.5); _local3 = Point(pointArray[foodArray.length]); _local2.x = _local3.x; _local2.y = _local3.y; if (foodArray.length < 2){ addChildAt(_local2, 0); } else { addChild(_local2); }; foodArray.push(_local2); break; case FoodItem.PIZZA_ITEM: _local2 = new FoodItem(FoodItem.PIZZA_ITEM); _local2.scaleX = (_local2.scaleY = 0.5); _local3 = Point(pointArray[foodArray.length]); _local2.x = _local3.x; _local2.y = _local3.y; if (foodArray.length < 2){ addChildAt(_local2, 0); } else { addChild(_local2); }; foodArray.push(_local2); break; }; }; } } }//package drimlike.level.objects
Section 19
//TableCharacter (drimlike.level.objects.TableCharacter) package drimlike.level.objects { import flash.display.*; import caurina.transitions.*; public class TableCharacter extends Sprite { private var _hisTopColor:uint; private var _herShoeColor:uint; private var eatPoseOverlay:Sprite; private var causalHerSkin:Sprite; private var handsUpPoseOverlay:Sprite; private var _hisHairColor:uint; private var casualPoseOverlay:Sprite; private var _hisTrousersColor:uint; private var finishPoseContainer:Sprite; private var eatPoseHerSkin:Sprite; private var _hisShoeColor:uint; private var casualHisHair:Sprite; private var eatPoseHisShirt:Sprite; private var casualHisTop:Sprite; private var _herSkinColor:uint; private var handsUpContainer:Sprite; private var casualHerShoe:Sprite; private var casualHisTrousers:Sprite; private var handsUpPoseHisSkin:Sprite; private var casualPoseHisShirt:Sprite; private var handsUpPoseHerSkin:Sprite; private var casualPoseContainer:Sprite; private var casualHisSkin:Sprite; private var finishPoseHerSkin:Sprite; private var _hisSkinColor:uint; private var casualContainer:Sprite; private var _herDressColor:uint; private var finishPoseHisSkin:Sprite; private var casualOverlay:Sprite; private var finishPoseHisShirt:Sprite; private var causalHerDress:Sprite; private var _herHairColor:uint; private var eatPoseHisSkin:Sprite; private var causalHerHair:Sprite; private var casualHisShow:Sprite; private var casualPoseHisSkin:Sprite; private var handsUpPoseHisShirt:Sprite; private var casualPoseHerSkin:Sprite; private var eatPoseContainer:Sprite; private var finishPoseOverlay:Sprite; public function TableCharacter(){ init(); } private function init():void{ handsUpContainer = new Sprite(); addChild(handsUpContainer); handsUpPoseHerSkin = new HandUpHerSkinAsset(); handsUpContainer.addChild(handsUpPoseHerSkin); handsUpPoseHisSkin = new HandUpHisSkinAsset(); handsUpContainer.addChild(handsUpPoseHisSkin); handsUpPoseHisShirt = new HandUpHisShirtAsset(); handsUpContainer.addChild(handsUpPoseHisShirt); handsUpPoseOverlay = new HandUpOverlayAsset(); handsUpContainer.addChild(handsUpPoseOverlay); finishPoseContainer = new Sprite(); addChild(finishPoseContainer); finishPoseHerSkin = new FinishPoseHerSkinAsset(); finishPoseContainer.addChild(finishPoseHerSkin); finishPoseHisSkin = new FinishPoseHisSkinAsset(); finishPoseContainer.addChild(finishPoseHisSkin); finishPoseHisShirt = new FinishPoseHisShirtAsset(); finishPoseContainer.addChild(finishPoseHisShirt); finishPoseOverlay = new FinishPoseOverlayAsset(); finishPoseContainer.addChild(finishPoseOverlay); eatPoseContainer = new Sprite(); addChild(eatPoseContainer); eatPoseHerSkin = new EatPoseHerSkinAsset(); eatPoseContainer.addChild(eatPoseHerSkin); eatPoseHisShirt = new EatPoseHisShirtAsset(); eatPoseContainer.addChild(eatPoseHisShirt); eatPoseHisSkin = new EatPoseHisSkinAsset(); eatPoseContainer.addChild(eatPoseHisSkin); eatPoseOverlay = new EatPoseOverlayAsset(); eatPoseContainer.addChild(eatPoseOverlay); casualPoseContainer = new Sprite(); addChild(casualPoseContainer); casualPoseHerSkin = new CasualPoseHerSkinAsset(); casualPoseContainer.addChild(casualPoseHerSkin); casualPoseHisShirt = new CasualPoseHisShirtAsset(); casualPoseContainer.addChild(casualPoseHisShirt); casualPoseHisSkin = new CasualPoseHisSkinAsset(); casualPoseContainer.addChild(casualPoseHisSkin); casualPoseOverlay = new CasualPoseOverlayAsset(); casualPoseContainer.addChild(casualPoseOverlay); casualContainer = new Sprite(); addChild(casualContainer); causalHerDress = new TableCharacterDefaultHerDressAsset(); casualContainer.addChild(causalHerDress); causalHerHair = new TableCharacterDefaultHerHairAsset(); casualContainer.addChild(causalHerHair); casualHerShoe = new TableCharacterDefaultHerShoeAsset(); casualContainer.addChild(casualHerShoe); causalHerSkin = new TableCharacterDefaultHerSkinAsset(); casualContainer.addChild(causalHerSkin); casualHisSkin = new TableCharacterDefaultHisSkinAsset(); casualContainer.addChild(casualHisSkin); casualHisHair = new TableCharacterDefaultHisHairAsset(); casualContainer.addChild(casualHisHair); casualHisShow = new TableCharacterDefaultHisShoeAsset(); casualContainer.addChild(casualHisShow); casualHisTop = new TableCharacterDefaultHisTopAsset(); casualContainer.addChild(casualHisTop); casualHisTrousers = new TableCharacterDefaultHisTrousersAsset(); casualContainer.addChild(casualHisTrousers); casualOverlay = new TableCharacterOverlayAsset(); casualContainer.addChild(casualOverlay); resetAll(); } public function showOrderPose():void{ resetAll(); casualContainer.visible = true; handsUpContainer.visible = true; } public function showEatingPose():void{ resetAll(); casualContainer.visible = true; eatPoseContainer.visible = true; } public function updateColor(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint, _arg8:uint, _arg9:uint):void{ _herDressColor = _arg1; _herHairColor = _arg2; _herShoeColor = _arg3; _herSkinColor = _arg4; _hisSkinColor = _arg9; _hisShoeColor = _arg5; _hisHairColor = _arg6; _hisTopColor = _arg7; _hisTrousersColor = _arg8; Tweener.addTween(casualHerShoe, {_color:_herShoeColor}); Tweener.addTween(casualHisHair, {_color:_hisHairColor}); Tweener.addTween(casualHisShow, {_color:_hisShoeColor}); Tweener.addTween(casualHisSkin, {_color:_hisSkinColor}); Tweener.addTween(casualHisTop, {_color:_hisTopColor}); Tweener.addTween(casualHisTrousers, {_color:_hisTrousersColor}); Tweener.addTween(causalHerDress, {_color:_herDressColor}); Tweener.addTween(causalHerHair, {_color:_herHairColor}); Tweener.addTween(causalHerSkin, {_color:_herSkinColor}); Tweener.addTween(handsUpPoseHerSkin, {_color:_herSkinColor}); Tweener.addTween(handsUpPoseHisSkin, {_color:_hisSkinColor}); Tweener.addTween(handsUpPoseHisShirt, {_color:_hisTopColor}); Tweener.addTween(finishPoseHerSkin, {_color:_herSkinColor}); Tweener.addTween(finishPoseHisSkin, {_color:_hisSkinColor}); Tweener.addTween(finishPoseHisShirt, {_color:_hisTopColor}); Tweener.addTween(eatPoseHerSkin, {_color:_herSkinColor}); Tweener.addTween(eatPoseHisSkin, {_color:_hisSkinColor}); Tweener.addTween(eatPoseHisShirt, {_color:_hisTopColor}); Tweener.addTween(casualPoseHerSkin, {_color:_herSkinColor}); Tweener.addTween(casualPoseHisSkin, {_color:_hisSkinColor}); Tweener.addTween(casualPoseHisShirt, {_color:_hisTopColor}); } public function showMenuPose():void{ resetAll(); casualContainer.visible = true; casualPoseContainer.visible = true; } public function showWaitingPose():void{ resetAll(); casualContainer.visible = true; casualPoseContainer.visible = true; } public function reset():void{ resetAll(); } public function resetAll():void{ casualContainer.visible = false; casualPoseContainer.visible = false; eatPoseContainer.visible = false; finishPoseContainer.visible = false; handsUpContainer.visible = false; } } }//package drimlike.level.objects
Section 20
//TableEmotion (drimlike.level.objects.TableEmotion) package drimlike.level.objects { import flash.events.*; import flash.display.*; import caurina.transitions.*; public class TableEmotion extends Sprite { private var standard:Sprite; private var speed:Number;// = 0.5 private var isVeryAnnoyed:Boolean; private var table:Table; public var worstMood:int;// = 3 private var angle:Number;// = 0 private var sad:Sprite; private var centreY:int;// = -450 private var happy:Sprite; private var range:int;// = 10 public function TableEmotion(_arg1:Table){ table = _arg1; init(); } private function update(_arg1:Event):void{ if (isVeryAnnoyed){ sad.y = (centreY + (Math.sin(angle) * range)); angle = (angle + speed); }; } public function reset():void{ worstMood = 3; isVeryAnnoyed = false; angle = 0; happy.visible = false; standard.visible = false; sad.visible = false; } private function init():void{ happy = new HappyFaceAsset(); happy.scaleX = (happy.scaleY = 0.6); addChild(happy); standard = new StandardFaceAsset(); standard.scaleX = (standard.scaleY = 0.6); addChild(standard); sad = new AnnoyedFaceAsset(); sad.scaleX = (sad.scaleY = 0.6); addChild(sad); if (table.currentOrientation == Table.ORIENTATION_LEFT){ happy.x = -180; standard.x = -180; sad.x = -180; } else { happy.x = 120; standard.x = 120; sad.x = 120; }; resetAll(); } public function showVeryAnnoyed():void{ if (isVeryAnnoyed == false){ isVeryAnnoyed = true; addEventListener(Event.ENTER_FRAME, update); }; } public function resetAll():void{ isVeryAnnoyed = false; angle = 0; happy.visible = false; standard.visible = false; sad.visible = false; } public function showStandard():void{ if (worstMood > 2){ worstMood = 2; }; standard.y = -400; standard.alpha = 0; standard.visible = true; Tweener.addTween(happy, {alpha:0, time:1, transition:"easeOutExpo"}); Tweener.addTween(standard, {y:-450, alpha:1, time:2, transition:"easeOutExpo"}); } public function showHappy():void{ resetAll(); if (worstMood == 3){ worstMood = 3; }; happy.y = -400; happy.alpha = 0; happy.visible = true; Tweener.addTween(happy, {y:-450, alpha:1, time:2, transition:"easeOutExpo"}); } public function showAnnoyed():void{ if (worstMood > 1){ worstMood = 1; }; sad.y = -400; sad.alpha = 0; sad.visible = true; Tweener.addTween(standard, {alpha:0, time:1, transition:"easeOutExpo"}); Tweener.addTween(sad, {y:-450, alpha:1, time:2, transition:"easeOutExpo"}); } public function showLeaving():void{ if (isVeryAnnoyed){ isVeryAnnoyed = false; removeEventListener(Event.ENTER_FRAME, update); }; angle = 0; reset(); } } }//package drimlike.level.objects
Section 21
//TableOrder (drimlike.level.objects.TableOrder) package drimlike.level.objects { import drimlike.data.*; import drimlike.level.ui.*; import drimlike.level.*; import flash.display.*; import caurina.transitions.*; public class TableOrder extends Sprite { public var totalPayment:int; public var orderArray:Array; public var postIt:PostItNote; private var orderNumber:int; private var orderBubble:OrderBubbleAsset; public function destroyOrder():void{ var _local2:FoodItem; Engine.getInstance().level.postIt.destroyPostItNote(orderNumber); var _local1:Level = Engine.getInstance().level; switch (orderNumber){ case 1: _local1.order1Flag = false; break; case 2: _local1.order2Flag = false; break; case 3: _local1.order3Flag = false; break; case 4: _local1.order4Flag = false; break; case 5: _local1.order5Flag = false; break; case 6: _local1.order6Flag = false; break; }; if (orderBubble){ removeChild(orderBubble); orderBubble = null; }; for each (_local2 in orderArray) { orderArray.pop(); }; postIt = null; orderNumber = 0; } public function reset():void{ totalPayment = 0; destroyOrder(); } public function generateTableOrder():void{ var foodItem1:FoodItem; var foodItem2:FoodItem; var foodItem3:FoodItem; var getSeed:Function = function ():Boolean{ var _local1:int = (Math.random() * 100); if (_local1 > 50){ return (true); }; return (false); }; totalPayment = 0; var drink1:Boolean = getSeed(); var drink2:Boolean = getSeed(); var pizza1:Boolean = getSeed(); var pizza2:Boolean = getSeed(); var pasta1:Boolean = getSeed(); var pasta2:Boolean = getSeed(); var drinks:int; var pizzas:int; var pastas:int; var food:int; if (drink1){ drinks = (drinks + 1); }; if (drink2){ drinks = (drinks + 1); }; if (pizza1){ pizzas = (pizzas + 1); }; if (pizza2){ pizzas = (pizzas + 1); }; if (pasta1){ if (pizzas < 2){ pastas = (pastas + 1); }; }; if (pasta2){ if ((pizzas + pastas) < 2){ pastas = (pastas + 1); }; }; if (((pizzas + pastas) + drinks) == 0){ pastas = (pastas + 1); pizzas = (pizzas + 1); drinks = (drinks + 1); }; orderArray = new Array(); var i:int; while (i < drinks) { foodItem1 = new FoodItem(FoodItem.DRINK_ITEM); totalPayment = (totalPayment + Engine.getInstance().sandbox.currentDrinkCost); orderArray.push(foodItem1); i = (i + 1); }; var j:int; while (j < pizzas) { foodItem2 = new FoodItem(FoodItem.PIZZA_ITEM); totalPayment = (totalPayment + Engine.getInstance().sandbox.currentPizzaCost); orderArray.push(foodItem2); j = (j + 1); }; var k:int; while (k < pastas) { foodItem3 = new FoodItem(FoodItem.PASTA_ITEM); totalPayment = (totalPayment + Engine.getInstance().sandbox.currentPastaCost); orderArray.push(foodItem3); k = (k + 1); }; var level:Level = Engine.getInstance().level; if (!level.order1Flag){ orderNumber = 1; level.order1Flag = true; } else { if (!level.order2Flag){ orderNumber = 2; level.order2Flag = true; } else { if (!level.order3Flag){ orderNumber = 3; level.order3Flag = true; } else { if (!level.order4Flag){ orderNumber = 4; level.order4Flag = true; } else { if (!level.order5Flag){ orderNumber = 5; level.order5Flag = true; } else { orderNumber = 6; level.order6Flag = true; }; }; }; }; }; postIt = Engine.getInstance().level.postIt.createPostItNote(orderNumber, drinks, pizzas, pastas); if (orderBubble){ removeChild(orderBubble); orderBubble = null; }; orderBubble = new OrderBubbleAsset(); orderBubble.orderNumber.selectable = false; orderBubble.y = -130; orderBubble.alpha = 0; orderBubble.orderNumber.text = orderNumber.toString(); Tweener.addTween(orderBubble, {y:-200, scaleX:2, scaleY:2, time:1, alpha:1, transition:"easeOutElastic"}); addChild(orderBubble); } public function updatePostIt():void{ var _local4:FoodItem; var _local1:int; var _local2:int; var _local3:int; for each (_local4 in orderArray) { switch (_local4.itemType){ case FoodItem.DRINK_ITEM: _local1++; break; case FoodItem.PIZZA_ITEM: _local3++; break; case FoodItem.PASTA_ITEM: _local2++; break; }; }; if (postIt){ postIt.update(_local1, _local3, _local2); }; } } }//package drimlike.level.objects
Section 22
//TablePaid (drimlike.level.objects.TablePaid) package drimlike.level.objects { import flash.display.*; import caurina.transitions.*; public class TablePaid extends Sprite { private var asset:PaymentSignAsset; public function TablePaid(){ asset = new PaymentSignAsset(); asset.dolla.text = ""; asset.visible = false; addChild(asset); } public function showAmountPaid(_arg1:int, _arg2:int):void{ var onComp:Function; var dolla = _arg1; var annoyedStatus = _arg2; onComp = function ():void{ asset.visible = false; }; asset.y = 0; asset.visible = true; asset.dolla.text = ("$" + dolla.toString()); asset.alpha = 1; if (annoyedStatus == 1){ Tweener.addTween(asset, {_color:"0xC3262C"}); } else { if (annoyedStatus == 2){ Tweener.addTween(asset, {_color:"0xEE8000"}); } else { if (annoyedStatus == 3){ Tweener.addTween(asset, {_color:"0x7EB61B"}); }; }; }; Tweener.addTween(asset, {y:-300, time:3, transition:"easeOutExpo"}); Tweener.addTween(asset, {alpha:0, delay:2, time:1, onComplete:onComp}); } public function reset():void{ asset.dolla.text = ""; } } }//package drimlike.level.objects
Section 23
//Tray (drimlike.level.objects.Tray) package drimlike.level.objects { import flash.geom.*; import flash.display.*; public class Tray extends Sprite { public var pointArray:Array; public var foodArray:Array; public function Tray(){ pointArray = new Array(new Point(-64, -5), new Point(36, -5), new Point(-64, 10), new Point(36, 10)); super(); foodArray = new Array(); } public function rearrange():void{ var _local2:FoodItem; var _local3:Point; var _local1:int; while (_local1 < foodArray.length) { _local2 = FoodItem(foodArray[_local1]); _local3 = Point(pointArray[_local1]); _local2.x = _local3.x; _local2.y = _local3.y; _local1++; }; } public function addDirtyFood(_arg1:FoodItem):void{ trace(foodArray); trace(foodArray.length); foodArray.push(_arg1); trace(foodArray); trace(foodArray.length); addChild(_arg1); var _local2:Point = Point(pointArray[(foodArray.length - 1)]); _arg1.x = _local2.x; _arg1.y = _local2.y; } public function addFood(_arg1:String):void{ var _local2:FoodItem; var _local3:Point; if (foodArray.length < 4){ switch (_arg1){ case FoodItem.DRINK_ITEM: _local2 = new FoodItem(FoodItem.DRINK_ITEM); _local2.scaleX = (_local2.scaleY = 0.7); _local3 = Point(pointArray[foodArray.length]); _local2.x = _local3.x; _local2.y = _local3.y; if (foodArray.length < 2){ addChildAt(_local2, 0); } else { addChild(_local2); }; foodArray.push(_local2); break; case FoodItem.PASTA_ITEM: _local2 = new FoodItem(FoodItem.PASTA_ITEM); _local2.scaleX = (_local2.scaleY = 0.5); _local3 = Point(pointArray[foodArray.length]); _local2.x = _local3.x; _local2.y = _local3.y; if (foodArray.length < 2){ addChildAt(_local2, 0); } else { addChild(_local2); }; foodArray.push(_local2); break; case FoodItem.PIZZA_ITEM: _local2 = new FoodItem(FoodItem.PIZZA_ITEM); _local2.scaleX = (_local2.scaleY = 0.5); _local3 = Point(pointArray[foodArray.length]); _local2.x = _local3.x; _local2.y = _local3.y; if (foodArray.length < 2){ addChildAt(_local2, 0); } else { addChild(_local2); }; foodArray.push(_local2); break; }; }; } } }//package drimlike.level.objects
Section 24
//CenteredCocoonFont (drimlike.level.ui.CenteredCocoonFont) package drimlike.level.ui { import flash.text.*; public class CenteredCocoonFont extends CocoonFont { public function CenteredCocoonFont(_arg1:int=12, _arg2:uint=0xFFFFFF){ var _local3:TextFormat = new TextFormat(); _local3.align = TextFormatAlign.CENTER; _local3.bold = false; _local3.font = "Cocon"; _local3.size = _arg1; _local3.color = _arg2; this.defaultTextFormat = _local3; this.selectable = false; this.embedFonts = true; } } }//package drimlike.level.ui
Section 25
//CocoonFont (drimlike.level.ui.CocoonFont) package drimlike.level.ui { import flash.text.*; public class CocoonFont extends TextField { public function CocoonFont(_arg1:int=12, _arg2:uint=0xFFFFFF){ var _local3:TextFormat = new TextFormat(); _local3.align = TextFormatAlign.LEFT; _local3.bold = false; _local3.font = "Cocon"; _local3.size = _arg1; _local3.color = _arg2; this.defaultTextFormat = _local3; this.autoSize = TextFieldAutoSize.LEFT; this.selectable = false; this.embedFonts = true; } } }//package drimlike.level.ui
Section 26
//PanelUI (drimlike.level.ui.PanelUI) package drimlike.level.ui { import drimlike.data.*; import flash.display.*; import flash.system.*; public class PanelUI extends Sprite { private var asset:PanelAsset; private var currentCash:int;// = 0 public function PanelUI(){ asset = new PanelAsset(); asset.objective.selectable = false; asset.timeRemaining.selectable = false; asset.total.selectable = false; asset.currentCash.selectable = false; asset.currentTime.selectable = false; asset.ObjectiveCash.selectable = false; asset.objective.embedFonts = true; asset.timeRemaining.embedFonts = true; asset.total.embedFonts = true; switch (Capabilities.language){ default: asset.objective.text = "Objective:"; asset.timeRemaining.text = "Time remaining:"; asset.total.text = "Total:"; break; case "fr": asset.objective.text = "Objectif:"; asset.timeRemaining.text = "Temps restant:"; asset.total.text = "Total:"; break; case "es": asset.objective.text = "Objetivo:"; asset.timeRemaining.text = "Tiempo restante:"; asset.total.text = "Total:"; break; case "de": asset.objective.text = "Ziel:"; asset.timeRemaining.text = "Restzeit:"; asset.total.text = "Total:"; break; }; addChild(asset); } public function startTimer():void{ } public function startPanelWithInformation(_arg1:int, _arg2:int, _arg3:int):void{ asset.ObjectiveCash.text = _arg2.toString(); switch (_arg3){ case 1: asset.star1.gotoAndStop(2); asset.star2.gotoAndStop(1); asset.star3.gotoAndStop(1); asset.star4.gotoAndStop(1); asset.star5.gotoAndStop(1); break; case 2: asset.star1.gotoAndStop(2); asset.star2.gotoAndStop(2); asset.star3.gotoAndStop(1); asset.star4.gotoAndStop(1); asset.star5.gotoAndStop(1); break; case 3: asset.star1.gotoAndStop(2); asset.star2.gotoAndStop(2); asset.star3.gotoAndStop(2); asset.star4.gotoAndStop(1); asset.star5.gotoAndStop(1); break; case 4: asset.star1.gotoAndStop(2); asset.star2.gotoAndStop(2); asset.star3.gotoAndStop(2); asset.star4.gotoAndStop(2); asset.star5.gotoAndStop(1); break; case 5: asset.star1.gotoAndStop(2); asset.star2.gotoAndStop(2); asset.star3.gotoAndStop(2); asset.star4.gotoAndStop(2); asset.star5.gotoAndStop(2); break; case 6: break; }; currentCash = 0; asset.currentCash.text = "0"; } public function updateTime(_arg1:String):void{ asset.currentTime.text = _arg1; } public function addCashToCurrent(_arg1:int):void{ currentCash = (currentCash + _arg1); asset.currentCash.text = currentCash.toString(); trace(currentCash); trace(Engine.getInstance().sandbox.currentCashTarget); if (currentCash >= Engine.getInstance().sandbox.currentCashTarget){ trace("LEVEL COMPLETE"); Engine.getInstance().level.levelComplete(); }; } public function stopTimer():void{ } public function resetTimer():void{ } public function removeCashFromCurrent(_arg1:int):void{ currentCash = (currentCash - _arg1); asset.currentCash.text = currentCash.toString(); } } }//package drimlike.level.ui
Section 27
//PostItNote (drimlike.level.ui.PostItNote) package drimlike.level.ui { import flash.display.*; public class PostItNote extends Sprite { private var drinkNumber:int;// = 0 private var postit:PostItAsset; private var pizzaNumber:int;// = 0 public var orderNumber:int;// = 0 private var pastaNumber:int;// = 0 public function PostItNote(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ orderNumber = _arg1; drinkNumber = _arg2; pizzaNumber = _arg3; pastaNumber = _arg4; init(); } public function update(_arg1:int, _arg2:int, _arg3:int):void{ drinkNumber = _arg1; pizzaNumber = _arg2; pastaNumber = _arg3; postit.orderNumber.text = orderNumber.toString(); if (drinkNumber == 0){ postit.drink.visible = false; }; if (drinkNumber == 1){ postit.drink.visible = true; postit.drink.drinkNumber.text = "1"; }; if (drinkNumber == 2){ postit.drink.visible = true; postit.drink.drinkNumber.text = "2"; }; if (pastaNumber == 0){ postit.pasta.visible = false; }; if (pastaNumber == 1){ postit.pasta.visible = true; postit.pasta.pastaNumber.text = "1"; }; if (pastaNumber == 2){ postit.pasta.visible = true; postit.pasta.pastaNumber.text = "2"; }; if (pizzaNumber == 0){ postit.pizza.visible = false; }; if (pizzaNumber == 1){ postit.pizza.visible = true; postit.pizza.pizzaNumber.text = "1"; }; if (pizzaNumber == 2){ postit.pizza.visible = true; postit.pizza.pizzaNumber.text = "2"; }; if (postit.pasta.visible){ if (postit.drink.visible){ postit.pasta.y = 60; } else { postit.pasta.y = 39; }; }; if (postit.pizza.visible){ if (postit.pasta.visible){ if (postit.drink.visible){ postit.pizza.y = 78; } else { postit.pizza.y = 60; }; } else { if (postit.drink.visible){ postit.pizza.y = 60; } else { postit.pizza.y = 39; }; }; }; } public function destroy():void{ removeChild(postit); postit = null; } private function init():void{ postit = new PostItAsset(); postit.orderNumber.text = orderNumber.toString(); addChild(postit); update(drinkNumber, pizzaNumber, pastaNumber); } } }//package drimlike.level.ui
Section 28
//PostItUI (drimlike.level.ui.PostItUI) package drimlike.level.ui { import flash.display.*; import caurina.transitions.*; public class PostItUI extends Sprite { private var ordersArray:Array; public function PostItUI(){ init(); } private function init():void{ ordersArray = new Array(); } public function destroyPostItNote(_arg1:int):void{ var _local2:PostItNote; for each (_local2 in ordersArray) { if (_local2.orderNumber == _arg1){ _local2.destroy(); removeChild(_local2); ordersArray.splice(ordersArray.indexOf(_local2), 1); _local2 = null; break; }; }; orderNotes(); } public function createPostItNote(_arg1:int, _arg2:int, _arg3:int, _arg4:int):PostItNote{ var _local5:PostItNote = new PostItNote(_arg1, _arg2, _arg3, _arg4); _local5.x = 728; _local5.y = ((ordersArray.length * 100) + 40); addChild(_local5); Tweener.addTween(_local5, {x:630, time:1, transition:"easeOutExpo"}); ordersArray.push(_local5); return (_local5); } private function orderNotes():void{ var _local2:PostItNote; var _local1:int; while (_local1 < ordersArray.length) { _local2 = PostItNote(ordersArray[_local1]); Tweener.addTween(_local2, {y:((_local1 * 100) + 40), transition:"easeOutExpo", time:1}); _local1++; }; } } }//package drimlike.level.ui
Section 29
//Level (drimlike.level.Level) package drimlike.level { import flash.events.*; import drimlike.data.*; import drimlike.level.objects.*; import drimlike.level.ui.*; import flash.geom.*; import flash.display.*; import flash.utils.*; import caurina.transitions.*; public class Level extends Sprite { private var doorButton:Sprite; public var panel:PanelUI; private var customerTimer:Timer; private var customerIndex:int;// = 0 private var customerArray:Array; private var table1:Table; private var table2:Table; private var table3:Table; private var table4:Table; private var table5:Table; private var table6:Table; public var gameCounter:int; private var background:BackgroundAsset; public var order1Flag:Boolean; public var order2Flag:Boolean; public var order3Flag:Boolean; public var order4Flag:Boolean; public var order5Flag:Boolean; public var order6Flag:Boolean; private var customerIndexMax:int;// = 7 public var foreground:Sprite; private var customerFrequencyMS:int; private var waitingCustomer:Customer; private var chef:Chef; private var isPaired:Boolean; private var customerContainer:Sprite; public var player:Player; private var isCoupleWaiting:Boolean; public var postIt:PostItUI; public var gameTimer:Timer; private var tablesArray:Array; public var isPaused:Boolean; public static var LEVEL_COMPLETE_EVENT:String = "levelCompleteEvent"; public static var RAN_OUT_OF_TIME_EVENT:String = "ranOutOfTimeEvent"; public function Level(){ init(); } private function createTables():void{ var _local1:Table; table1 = new Table(Table.ORIENTATION_LEFT); table1.x = 248; table1.y = 291; table1.scaleX = (table1.scaleY = 0.24); addChild(table1); table2 = new Table(Table.ORIENTATION_RIGHT); table2.x = 480; table2.y = 291; table2.scaleX = (table2.scaleY = 0.24); addChild(table2); table3 = new Table(Table.ORIENTATION_LEFT); table3.x = 225; table3.y = 351; table3.scaleX = (table3.scaleY = 0.32); addChild(table3); table4 = new Table(Table.ORIENTATION_RIGHT); table4.x = 503; table4.y = 351; table4.scaleX = (table4.scaleY = 0.32); addChild(table4); table5 = new Table(Table.ORIENTATION_LEFT); table5.x = 199; table5.y = 439; table5.scaleX = (table5.scaleY = 0.42); addChild(table5); table6 = new Table(Table.ORIENTATION_RIGHT); table6.x = 529; table6.y = 439; table6.scaleX = (table6.scaleY = 0.42); addChild(table6); tablesArray = new Array(table1, table2, table3, table4, table5, table6); for each (_local1 in tablesArray) { _local1.addEventListener(Table.TABLE_CLICK_EVENT, onTableClickEvent); }; } private function init():void{ customerArray = new Array(); createBackground(); createTables(); createCustomers(); createPlayer(); createForeground(); createChef(); createPostit(); createPanel(); } private function openDoor():void{ Tweener.addTween(background.door, {scaleX:-0.5, time:2, transition:"easeOutExpo"}); Tweener.addTween(background.door, {scaleX:1, time:2, transition:"easeOutExpo", delay:2.5}); } private function onTableClickEvent(_arg1:Event):void{ var _local2:Table = Table(_arg1.target); if (!_local2.isAvailableForCustomers){ isPaired = false; doorButton.visible = true; }; if (isPaired){ trace("i am paired"); if (_local2.isAvailableForCustomers){ if (waitingCustomer){ waitingCustomer.gotoTable(_local2); setChildIndex(customerContainer, (getChildIndex(_local2) - 1)); player.gotoTable(_local2); _local2.doShowMenuState(waitingCustomer); isPaired = false; isCoupleWaiting = false; waitingCustomer = null; doorButton.visible = false; } else { isPaired = false; doorButton.visible = false; }; }; } else { if (!_local2.isAvailableForCustomers){ if (!_local2.isCurrentStateActive){ if (player.isAvailable){ if (_local2.currentState == Table.STATE_ORDER){ player.gotoTable(_local2); _local2.doShowOrderWait(); } else { if (_local2.currentState == Table.STATE_WAIT){ player.gotoTable(_local2); _local2.addFoodFromTray(); } else { if (_local2.currentState == Table.STATE_DIRTY){ player.gotoDirtyTable(_local2); _local2.addFoodToTray(); } else { if (_local2.currentState == Table.STATE_LEFTOVER){ player.gotoDirtyTable(_local2); _local2.addLeftOverToTray(); }; }; }; }; }; }; }; }; } private function onGameTick(_arg1:TimerEvent):void{ var _local2:String; if (gameCounter == 0){ gameTimer.stop(); gameTimer.removeEventListener(TimerEvent.TIMER, onGameTick); gameTimer = null; dispatchEvent(new Event(RAN_OUT_OF_TIME_EVENT)); } else { _local2 = formatTime(gameCounter); panel.updateTime(_local2); gameCounter--; }; } private function createCustomers():void{ customerContainer = new Sprite(); customerContainer.mouseChildren = false; customerContainer.mouseEnabled = false; addChild(customerContainer); } public function startLevel(_arg1:int, _arg2:int, _arg3:int):void{ customerFrequencyMS = Engine.getInstance().sandbox.currentSpawnTimer; panel.startPanelWithInformation(120, _arg3, _arg2); if (gameTimer){ gameTimer.stop(); gameTimer.removeEventListener(TimerEvent.TIMER, onGameTick); gameTimer = null; }; gameTimer = new Timer(1000); gameTimer.addEventListener(TimerEvent.TIMER, onGameTick); gameTimer.start(); gameCounter = _arg1; customerTimerUpdate(); customerTimer = new Timer(customerFrequencyMS); customerTimer.addEventListener(TimerEvent.TIMER, customerTimerUpdate); customerTimer.start(); player.gotoStart(); chef.startChef(Engine.getInstance().sandbox.currentChefDelayTime); } private function createBackground():void{ background = new BackgroundAsset(); background.mouseChildren = false; background.mouseEnabled = false; background.cacheAsBitmap = true; addChild(background); doorButton = new Sprite(); doorButton.x = 340; doorButton.y = 162; doorButton.alpha = 0; doorButton.graphics.beginFill(0); doorButton.graphics.drawRect(-15, 0, 70, 120); doorButton.graphics.endFill(); doorButton.useHandCursor = true; doorButton.buttonMode = true; doorButton.addEventListener(MouseEvent.CLICK, onDoorClick); doorButton.visible = false; addChild(doorButton); var _local1:Sprite = new Sprite(); addChild(_local1); } private function onCustomerLeave(_arg1:Event):void{ var _local2:Customer = Customer(_arg1.target); customerArray.splice(customerArray.indexOf(_local2), 1); if (customerContainer.contains(_local2)){ customerContainer.removeChild(_local2); }; _local2 = null; } private function customerTimerUpdate(_arg1:TimerEvent=null):void{ if (!waitingCustomer){ waitingCustomer = createCustomer(); Engine.getInstance().soundManager.doDoorSound(); openDoor(); doorButton.visible = true; isCoupleWaiting = true; }; } private function createForeground():void{ foreground = new ForegroundAsset(); foreground.mouseChildren = false; foreground.mouseEnabled = false; foreground.cacheAsBitmap = true; addChild(foreground); } private function createChef():void{ chef = new Chef(); addChild(chef); } private function onDoorClick(_arg1:Event):void{ if (player.isAvailable){ isPaired = true; doorButton.visible = false; player.goToDoor(new Point(360, 275), 0.21); }; } public function levelComplete():void{ dispatchEvent(new Event(LEVEL_COMPLETE_EVENT)); } private function createPostit():void{ postIt = new PostItUI(); postIt.mouseChildren = false; postIt.mouseEnabled = false; addChild(postIt); } private function onPauseClick(_arg1:MouseEvent):void{ } public function resetLevel():void{ var _local1:Table; var _local3:Customer; background.visible = true; foreground.visible = true; chef.reset(); for each (_local1 in tablesArray) { _local1.reset(); }; if (gameTimer){ gameTimer.stop(); gameTimer.removeEventListener(TimerEvent.TIMER, onGameTick); gameTimer = null; }; if (customerTimer){ customerTimer.stop(); customerTimer.removeEventListener(TimerEvent.TIMER, customerTimerUpdate); customerTimer = null; }; var _local2:int; while (_local2 < customerArray.length) { _local3 = Customer(customerArray[_local2]); customerArray.splice(_local2, 1); customerContainer.removeChild(_local3); _local3 = null; _local2--; _local2++; }; waitingCustomer = null; isCoupleWaiting = false; isPaired = false; player.reset(); gameCounter = 0; } private function createPanel():void{ panel = new PanelUI(); panel.x = 0; panel.y = 50; addChild(panel); } private function createCustomer():Customer{ var _local1:Customer = new Customer(); _local1.addEventListener(Customer.CUSTOMER_LEAVE_EVENT, onCustomerLeave); customerContainer.addChild(_local1); customerArray.push(_local1); return (_local1); } private function formatTime(_arg1:int):String{ var _local2:int; var _local3:String; var _local4:String; if (_arg1 > 59){ _local2 = Math.floor((_arg1 / 60)); _local3 = String(_local2); _local4 = String((_arg1 % 60)); } else { _local3 = "00"; _local4 = String(_arg1); }; if (_local4.length == 1){ _local4 = ("0" + _local4); }; if (_local3.length == 1){ _local3 = ("0" + _local3); }; return (((_local3 + ":") + _local4)); } private function createPlayer():void{ player = new Player(this); addChild(player); } } }//package drimlike.level
Section 30
//GameManager (drimlike.managers.GameManager) package drimlike.managers { import flash.events.*; import drimlike.data.*; import drimlike.level.*; import flash.display.*; public class GameManager extends Sprite { private var level:Level; public function GameManager(){ Engine.getInstance().level = (level = new Level()); level.addEventListener(Level.RAN_OUT_OF_TIME_EVENT, onGameRanOutOfTime); level.addEventListener(Level.LEVEL_COMPLETE_EVENT, onLevelComplete); addChild(level); } private function onGameRanOutOfTime(_arg1:Event):void{ Engine.getInstance().sandbox.showLevelFailed(); } public function startGame(_arg1:int, _arg2:int, _arg3:int):void{ level.startLevel(_arg1, _arg2, _arg3); } private function onLevelComplete(_arg1:Event):void{ Engine.getInstance().sandbox.showLevelPassed(); } public function reset():void{ level.resetLevel(); } } }//package drimlike.managers
Section 31
//ScreenManager (drimlike.managers.ScreenManager) package drimlike.managers { import flash.events.*; import flash.display.*; import drimlike.screens.*; public class ScreenManager extends Sprite { private var levelFailed:LevelFailedScreen; private var gameComplete:GameCompleteScreen; private var levelPassed:LevelPassedScreen; private var howToPlay:HowToPlayScreen; public static var START_NEXT_LEVEL_EVENT:String = "startNextLevelEvent"; public static var START_NEW_GAME_EVENT:String = "startNewGameEvent"; public static var RETRY_SAME_LEVEL_EVENT:String = "retrySameLevelEvent"; public function ScreenManager(){ howToPlay = new HowToPlayScreen(); howToPlay.playNowButton.addEventListener(MouseEvent.CLICK, onStartFreshGame); addChild(howToPlay); levelFailed = new LevelFailedScreen(); levelFailed.playAgainButton.addEventListener(MouseEvent.CLICK, onRetryLevel); addChild(levelFailed); levelPassed = new LevelPassedScreen(); levelPassed.playNewButton.addEventListener(MouseEvent.CLICK, onNextLevel); addChild(levelPassed); gameComplete = new GameCompleteScreen(); gameComplete.playAgainButton.addEventListener(MouseEvent.CLICK, onStartFreshGame); addChild(gameComplete); } public function hideAllScreens():void{ howToPlay.animatedHideScreen(); levelFailed.animatedHideScreen(); levelPassed.animatedHideScreen(); gameComplete.animatedHideScreen(); } public function showLevelFailed(_arg1:int):void{ levelFailed.showScreen(_arg1); } public function showHowToPlay():void{ howToPlay.showScreen(100); } public function showGameComplete():void{ gameComplete.showScreen(); } private function onNextLevel(_arg1:MouseEvent):void{ dispatchEvent(new Event(START_NEXT_LEVEL_EVENT)); } public function showLevelPassed(_arg1:int):void{ levelPassed.showScreen(_arg1); } private function onRetryLevel(_arg1:MouseEvent):void{ dispatchEvent(new Event(RETRY_SAME_LEVEL_EVENT)); } private function onStartFreshGame(_arg1:MouseEvent):void{ dispatchEvent(new Event(START_NEW_GAME_EVENT)); } } }//package drimlike.managers
Section 32
//UIManager (drimlike.managers.UIManager) package drimlike.managers { import drimlike.data.*; import flash.display.*; import drimlike.xml.*; import drimlike.sound.*; import drimlike.ui.*; public class UIManager extends Sprite { private var soundButton:SoundButton; private var xmlFeed:XMLFeed; private var moreGames:SandboxMoreGames; private var myGames4Girls:MyGamesForGirls; public function UIManager(){ moreGames = new SandboxMoreGames(); moreGames.x = 10; moreGames.y = 485; moreGames.scaleX = (moreGames.scaleY = 0.75); addChild(moreGames); myGames4Girls = new MyGamesForGirls(); myGames4Girls.x = 15; myGames4Girls.y = 10; addChild(myGames4Girls); Engine.getInstance().xmlFeed = (xmlFeed = new XMLFeed()); xmlFeed.y = -473; xmlFeed.x = 90; addChild(xmlFeed); soundButton = new SoundButton(); soundButton.x = 700; soundButton.y = 28; soundButton.scaleY = 1.1; addChild(soundButton); } } }//package drimlike.managers
Section 33
//GameCompleteScreen (drimlike.screens.GameCompleteScreen) package drimlike.screens { import drimlike.data.*; import drimlike.level.ui.*; import flash.display.*; import drimlike.xml.*; import caurina.transitions.*; import flash.system.*; public class GameCompleteScreen extends Sprite { private var textHolder:Sprite; private var backgroundAsset:Sprite; private var textHolderMask:Sprite; private var xmlRotator:XMLRotator; private var title1:CocoonFont; private var title2:CenteredCocoonFont; private var girlAsset:Sprite; private var firstLevelObjective:int;// = 100 public var playAgainButton:Sprite; public function GameCompleteScreen(){ backgroundAsset = new ScreenBackgroundAsset(); backgroundAsset.visible = false; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); addChild(backgroundAsset); girlAsset = new HowToPlayGirlAsset(); girlAsset.visible = false; girlAsset.x = -222; girlAsset.y = 106; girlAsset.alpha = 0; addChild(girlAsset); textHolder = new Sprite(); addChild(textHolder); title1 = new CocoonFont(40, 0xFFFFFF); title1.x = 370; title1.y = 130; textHolder.addChild(title1); title2 = new CenteredCocoonFont(20, 0xFFFFFF); title2.x = 370; title2.y = 130; title2.width = 250; title2.multiline = true; title2.wordWrap = true; textHolder.addChild(title2); switch (Capabilities.language){ default: playAgainButton = new PlayAgainENAsset(); break; case "es": playAgainButton = new PlayAgainESAsset(); break; case "fr": playAgainButton = new PlayAgainFRAsset(); break; case "de": playAgainButton = new PlayAgainDEAsset(); break; }; playAgainButton.x = (728 / 2); playAgainButton.useHandCursor = true; playAgainButton.buttonMode = true; textHolder.addChild(playAgainButton); Engine.getInstance().imageFeed = (xmlRotator = new XMLRotator()); textHolder.addChild(xmlRotator); textHolderMask = new HowToPlayTextMask(); textHolderMask.x = -800; textHolderMask.y = 0; addChild(textHolderMask); textHolder.mask = textHolderMask; } public function showScreen():void{ this.visible = true; backgroundAsset.visible = true; Tweener.addTween(backgroundAsset, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo", alpha:1}); girlAsset.visible = true; Tweener.addTween(girlAsset, {x:175, time:1, delay:0.5, alpha:1, transition:"easeOutExpo"}); switch (Capabilities.language){ default: title1.text = "Congratulations !"; title2.text = "You sucessfully completed the game !"; break; case "es": title1.text = "¡Felicidades !"; title2.text = "¡Has terminado el juego con éxito !"; break; case "fr": title1.text = "Félicitations !"; title2.text = "Tu as terminé le jeu avec succès !"; break; case "de": title1.text = "Bravo !"; title2.text = "Du hast das Spiel erfolgreich beendet !"; break; }; title1.x = (530 - (title1.width / 2)); title2.x = (530 - (title2.width / 2)); title2.y = ((title1.y + title1.height) + 15); xmlRotator.x = 530; xmlRotator.y = ((title2.y + title2.height) + 80); playAgainButton.x = 530; playAgainButton.y = ((title2.y + title2.height) + 180); Tweener.addTween(textHolderMask, {x:120, time:1.5, delay:0.8, transition:"easeOutExpo"}); } public function reset():void{ this.visible = false; textHolderMask.x = -800; girlAsset.x = -222; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); } public function animatedHideScreen():void{ Tweener.addTween(textHolderMask, {x:-800, time:1, transition:"easeOutExpo"}); Tweener.addTween(girlAsset, {x:800, time:1, delay:0.6, transition:"easeOutExpo"}); Tweener.addTween(backgroundAsset, {scaleX:0.05, scaleY:0.05, time:1, delay:1.2, alpha:0, onComplete:reset}); } } }//package drimlike.screens
Section 34
//HowToPlayScreen (drimlike.screens.HowToPlayScreen) package drimlike.screens { import drimlike.level.ui.*; import flash.display.*; import caurina.transitions.*; import flash.system.*; public class HowToPlayScreen extends Sprite { private var textHolder:Sprite; private var backgroundAsset:Sprite; public var playNowButton:Sprite; private var textHolderMask:Sprite; private var firstLevelObjective:int;// = 100 private var title3:CocoonFont; private var title1:CocoonFont; private var title2:CocoonFont; private var girlAsset:Sprite; private var title4:CocoonFont; public function HowToPlayScreen(){ this.visible = false; backgroundAsset = new ScreenBackgroundAsset(); backgroundAsset.visible = false; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); addChild(backgroundAsset); girlAsset = new HowToPlayGirlAsset(); girlAsset.visible = false; girlAsset.x = -222; girlAsset.y = 106; girlAsset.alpha = 0; addChild(girlAsset); textHolder = new Sprite(); addChild(textHolder); title1 = new CocoonFont(16, 0xFFFF00); title1.x = 270; title1.y = 110; textHolder.addChild(title1); title2 = new CocoonFont(16, 0xFFFF00); title2.x = 270; title2.y = 130; textHolder.addChild(title2); title3 = new CocoonFont(16, 0xFFFFFF); title3.x = 270; title3.y = 160; title3.width = 400; title3.multiline = true; title3.wordWrap = true; textHolder.addChild(title3); title4 = new CocoonFont(16, 0xFFFF00); title4.x = 270; title4.y = ((title3.y + title3.height) + 15); textHolder.addChild(title4); switch (Capabilities.language){ default: playNowButton = new PlayButtonENAsset(); break; case "es": playNowButton = new PlayButtonESAsset(); break; case "fr": playNowButton = new PlayButtonFRAsset(); break; case "de": playNowButton = new PlayButtonDEAsset(); break; }; playNowButton.x = 425; playNowButton.useHandCursor = true; playNowButton.buttonMode = true; textHolder.addChild(playNowButton); textHolderMask = new HowToPlayTextMask(); textHolderMask.x = -800; textHolderMask.y = 0; addChild(textHolderMask); textHolder.mask = textHolderMask; } public function reset():void{ this.visible = false; textHolderMask.x = -800; girlAsset.x = -222; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); } public function showScreen(_arg1:int=100):void{ this.visible = true; backgroundAsset.visible = true; Tweener.addTween(backgroundAsset, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo", alpha:1}); girlAsset.visible = true; Tweener.addTween(girlAsset, {x:50, time:1, delay:0.5, alpha:1, transition:"easeOutExpo"}); switch (Capabilities.language){ default: title1.text = "The challenge: "; title2.text = "waitress in a Japanese restaurant !"; title3.text = "Are you fast enough to help me become a 5 star waitress? You have 5 days to do your best and to try and make all your customers happy. Your job is to greet the customers at the entrance to the restaurant, and seat them at a table. Once they have chosen from the menu, take their order to give to the chef so that they can prepare the dishes. Once the meal is finished, the customers will pay. Be sure to collect the money quickly and clean the table so that it is ready for the next customers."; title4.text = ("Your first objective is $" + firstLevelObjective.toString()); break; case "es": title1.text = "El reto: "; title2.text = "¡camarera en un restaurante japonés!"; title3.text = "¿Eres lo suficientemente rápida como para ayudarme a convertirme en una camarera cinco estrellas? Tienes cinco días para hacer todo lo que puedas para que tus clientes estén satisfechos. Tu trabajo consiste en saludarlos cuando lleguen al restaurante y llevarlos hasta su mesa. Una vez que hayan elegido lo que quieren del menú, tómales el pedido y pásaselo al chef, para que pueda preparar la comida. Los clientes pagarán una vez que terminen de comer. No te olvides de recoger el dinero y limpiar la mesa rápidamente para que el siguiente cliente pueda sentarse."; title4.text = ("Tu primer objetivo es $" + firstLevelObjective.toString()); break; case "fr": title1.text = "Le défi: "; title2.text = "serveuse au restaurant japonais !"; title3.text = "Sera-tu assez rapide pour m'aider à devenir une serveuse 5 étoiles ? Tu as 5 jours pour faire de ton mieux et réussir à contenter tous les clients du restaurant. Ton travail consiste à accueillir les clients à l'entrée du restaurant, leur attribuer une table. Une fois qu'ils ont fait leur choix dans le menu, prend la commande pour que les cuisiniers puissent préparer les plats. A la fin du repas, le client paye l'addition. Récupère ensuite la monnaie et nettoie la table pour qu'elle soit prête pour les clients suivants."; title4.text = ("Ton premier objectif est $" + firstLevelObjective.toString()); break; case "de": title1.text = "Die Herausforderung:"; title2.text = "Kellnerin in einem japanischen Restaurant !"; title3.text = "Bist du schnell genug um mir zu helfen eine 5-Sterne Kellnerin zu werden ? Du hast 5 Tage Zeit um dein Bestes zu geben und alle Gäste des Restaurants zufriedenzustellen. Du musst die Gäste am Eingang begrüßen und sie zu einem Tisch führen. Nimm ihre Bestellung auf sobald sie gewählt haben damit die Köche das Essen bereiten können. Nach dem die Gäste fertig gegessen haben bezahlen sie die Rechnung. Nimm das Geld entgegen und räum schnell den Tisch ab damit sich der nächste Gast setzten kann."; title4.text = (("Dein erstes Ziel ist es $" + firstLevelObjective.toString()) + " zu verdienen"); break; }; title4.y = ((title3.y + title3.height) + 15); playNowButton.y = ((title4.y + title4.height) + 40); Tweener.addTween(textHolderMask, {x:100, time:1.5, delay:0.8, transition:"easeOutExpo"}); } public function animatedHideScreen():void{ trace("animated"); Tweener.addTween(textHolderMask, {x:-800, time:1, transition:"easeOutExpo"}); Tweener.addTween(girlAsset, {x:800, time:1, delay:0.6, transition:"easeOutExpo"}); Tweener.addTween(backgroundAsset, {scaleX:0.05, scaleY:0.05, time:1, delay:1.2, alpha:0, onComplete:reset}); } } }//package drimlike.screens
Section 35
//LevelFailedScreen (drimlike.screens.LevelFailedScreen) package drimlike.screens { import drimlike.level.ui.*; import flash.display.*; import caurina.transitions.*; import flash.system.*; public class LevelFailedScreen extends Sprite { private var textHolder:Sprite; private var backgroundAsset:Sprite; private var textHolderMask:Sprite; private var title1:CenteredCocoonFont; private var title2:CenteredCocoonFont; private var title3:CenteredCocoonFont; public var playAgainButton:Sprite; public function LevelFailedScreen(){ this.visible = false; backgroundAsset = new ScreenBackgroundAsset(); backgroundAsset.visible = false; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); addChild(backgroundAsset); textHolder = new Sprite(); addChild(textHolder); title1 = new CenteredCocoonFont(40, 0xFFFFFF); title1.x = (728 / 2); title1.y = 110; textHolder.addChild(title1); title2 = new CenteredCocoonFont(20, 0xFFFFFF); title2.width = 200; title2.multiline = true; title2.wordWrap = true; title2.x = (728 / 2); title2.y = 130; textHolder.addChild(title2); title3 = new CenteredCocoonFont(20, 0xFFFF00); title3.x = 270; title3.y = 160; title3.width = 200; title3.multiline = true; title3.wordWrap = true; textHolder.addChild(title3); switch (Capabilities.language){ default: playAgainButton = new PlayAgainENAsset(); break; case "es": playAgainButton = new PlayAgainESAsset(); break; case "fr": playAgainButton = new PlayAgainFRAsset(); break; case "de": playAgainButton = new PlayAgainDEAsset(); break; }; playAgainButton.x = (728 / 2); playAgainButton.useHandCursor = true; playAgainButton.buttonMode = true; textHolder.addChild(playAgainButton); textHolderMask = new HowToPlayTextMask(); textHolderMask.x = -800; textHolderMask.y = 0; addChild(textHolderMask); textHolder.mask = textHolderMask; } public function showScreen(_arg1:int=100):void{ this.visible = true; backgroundAsset.visible = true; Tweener.addTween(backgroundAsset, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo", alpha:1}); switch (Capabilities.language){ default: title1.text = "Bad luck !"; title2.text = "You weren't fast enough !"; title3.text = ("The objective of this level is $" + _arg1.toString()); break; case "es": title1.text = "¡Mala suerte !"; title2.text = "¡No has sido lo suficientemente rápida !"; title3.text = ("El objetivo de este nivel es $" + _arg1.toString()); break; case "fr": title1.text = "Dommage !"; title2.text = "Tu n'as pas été assez rapide !"; title3.text = ("L'objectif du niveau est $" + _arg1.toString()); break; case "de": title1.text = "Schade !"; title2.text = "Du warst leider nicht schnell genug !"; title3.text = (("Das Levelziel ist es $" + _arg1.toString()) + " zu verdienen"); break; }; title1.x = ((728 / 2) - (title1.width / 2)); title2.x = ((728 / 2) - (title2.width / 2)); title3.x = ((728 / 2) - (title3.width / 2)); title2.y = ((title1.y + title1.height) + 20); title3.y = ((title2.y + title2.height) + 20); playAgainButton.y = ((title3.y + title3.height) + 40); Tweener.addTween(textHolderMask, {x:100, time:1.5, delay:0.8, transition:"easeOutExpo"}); } public function reset():void{ this.visible = false; textHolderMask.x = -800; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); } public function animatedHideScreen():void{ Tweener.addTween(textHolderMask, {x:-800, time:1, transition:"easeOutExpo"}); Tweener.addTween(backgroundAsset, {scaleX:0.05, scaleY:0.05, time:1, delay:1.2, alpha:0, onComplete:reset}); } } }//package drimlike.screens
Section 36
//LevelPassedScreen (drimlike.screens.LevelPassedScreen) package drimlike.screens { import drimlike.level.ui.*; import flash.display.*; import caurina.transitions.*; import flash.system.*; public class LevelPassedScreen extends Sprite { private var textHolder:Sprite; private var backgroundAsset:Sprite; private var textHolderMask:Sprite; private var firstLevelObjective:int;// = 100 private var title3:CenteredCocoonFont; private var title1:CocoonFont; private var title2:CenteredCocoonFont; private var girlAsset:Sprite; public var playNewButton:Sprite; public function LevelPassedScreen(){ backgroundAsset = new ScreenBackgroundAsset(); backgroundAsset.visible = false; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); addChild(backgroundAsset); girlAsset = new HowToPlayGirlAsset(); girlAsset.visible = false; girlAsset.x = -222; girlAsset.y = 106; girlAsset.alpha = 0; addChild(girlAsset); textHolder = new Sprite(); addChild(textHolder); title1 = new CocoonFont(40, 0xFFFFFF); title1.x = 370; title1.y = 130; textHolder.addChild(title1); title2 = new CenteredCocoonFont(20, 0xFFFFFF); title2.x = 370; title2.y = 130; title2.width = 200; title2.multiline = true; title2.wordWrap = true; textHolder.addChild(title2); title3 = new CenteredCocoonFont(20, 0xFFFF00); title3.x = 270; title3.y = 160; title3.width = 250; title3.multiline = true; title3.wordWrap = true; textHolder.addChild(title3); switch (Capabilities.language){ default: playNewButton = new NextLevelENAsset(); break; case "es": playNewButton = new NextLevelESAsset(); break; case "fr": playNewButton = new NextLevelFRAsset(); break; case "de": playNewButton = new NextLevelDEAsset(); break; }; playNewButton.x = 530; playNewButton.useHandCursor = true; playNewButton.buttonMode = true; textHolder.addChild(playNewButton); textHolderMask = new HowToPlayTextMask(); textHolderMask.x = -800; textHolderMask.y = 0; addChild(textHolderMask); textHolder.mask = textHolderMask; } public function showScreen(_arg1:int):void{ this.visible = true; backgroundAsset.visible = true; Tweener.addTween(backgroundAsset, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo", alpha:1}); girlAsset.visible = true; Tweener.addTween(girlAsset, {x:175, time:1, delay:0.5, alpha:1, transition:"easeOutExpo"}); switch (Capabilities.language){ default: title1.text = "Congratulations !"; title2.text = "You have won a new star !"; title3.text = ("Your new objective is $" + _arg1.toString()); break; case "es": title1.text = "¡Felicidades!"; title2.text = "¡Has ganado una estrella !"; title3.text = ("Tu nuevo objetivo es $" + _arg1.toString()); break; case "fr": title1.text = "Le défi ! "; title2.text = "serveuse au restaurant italien !"; title3.text = ("Ton nouvel objectif est $" + _arg1.toString()); break; case "de": title1.text = "Bravo !"; title2.text = "Du hast einen Stern dazugewonnen !"; title3.text = (("Dein nächstes Ziel ist es $" + _arg1.toString()) + " zu verdienen"); break; }; title1.x = (530 - (title1.width / 2)); title2.x = (530 - (title2.width / 2)); title2.y = ((title1.y + title1.height) + 20); title3.x = (530 - (title3.width / 2)); title3.y = ((title2.y + title2.height) + 30); playNewButton.y = ((title3.y + title3.height) + 50); Tweener.addTween(textHolderMask, {x:100, time:1.5, delay:0.8, transition:"easeOutExpo"}); } public function reset():void{ this.visible = false; textHolderMask.x = -800; girlAsset.x = -222; backgroundAsset.alpha = 0; backgroundAsset.scaleX = (backgroundAsset.scaleY = 0.01); backgroundAsset.x = (728 / 2); backgroundAsset.y = (530 / 2); } public function animatedHideScreen():void{ Tweener.addTween(textHolderMask, {x:-800, time:1, transition:"easeOutExpo"}); Tweener.addTween(girlAsset, {x:800, time:1, delay:0.6, transition:"easeOutExpo"}); Tweener.addTween(backgroundAsset, {scaleX:0.05, scaleY:0.05, time:1, delay:1.2, alpha:0, onComplete:reset}); } } }//package drimlike.screens
Section 37
//SoundButton (drimlike.sound.SoundButton) package drimlike.sound { import flash.events.*; import drimlike.data.*; import flash.display.*; public class SoundButton extends Sprite { private var soundOff:Sprite; private var isSoundOn:Boolean; private var SoundOffData:Class; private var soundOn:Sprite; private var SoundOnData:Class; private var sponge:Sprite; public function SoundButton(){ SoundOffData = SoundButton_SoundOffData; SoundOnData = SoundButton_SoundOnData; super(); addEventListener(Event.ADDED_TO_STAGE, init); } private function onMouseClick(_arg1:MouseEvent):void{ soundToggle(); } public function soundToggle():void{ if (isSoundOn){ isSoundOn = false; Engine.getInstance().soundManager.stopTheme(); soundOn.visible = false; soundOff.visible = true; } else { isSoundOn = true; Engine.getInstance().soundManager.startTheme(); soundOn.visible = true; soundOff.visible = false; }; } private function init(_arg1:Event):void{ soundOn = (new SoundOnData() as Sprite); soundOff = (new SoundOffData() as Sprite); addChild(soundOn); addChild(soundOff); sponge = new Sprite(); sponge.graphics.beginFill(0xFFFFFF, 1); sponge.graphics.drawRect(-2, -2, 4, 4); sponge.graphics.endFill(); addChildAt(sponge, 0); isSoundOn = true; soundOff.visible = false; Engine.getInstance().soundManager.startTheme(); this.mouseChildren = false; this.buttonMode = true; this.useHandCursor = true; this.addEventListener(MouseEvent.CLICK, onMouseClick); } } }//package drimlike.sound
Section 38
//SoundButton_SoundOffData (drimlike.sound.SoundButton_SoundOffData) package drimlike.sound { import mx.core.*; public class SoundButton_SoundOffData extends SpriteAsset { } }//package drimlike.sound
Section 39
//SoundButton_SoundOnData (drimlike.sound.SoundButton_SoundOnData) package drimlike.sound { import mx.core.*; public class SoundButton_SoundOnData extends SpriteAsset { } }//package drimlike.sound
Section 40
//SoundManager (drimlike.sound.SoundManager) package drimlike.sound { import flash.media.*; public class SoundManager { private var doorSound:Sound; private var whoosh:Sound; private var theme:SoundChannel; private var themeSound:Sound; private var payment:Sound; private var whistleSound:Sound; public function startTheme():void{ themeSound = (new ThemeSoundAsset() as Sound); theme = themeSound.play(0, 9999); } public function doWhistleSound():void{ whistleSound = (new WhistleSoundAsset() as Sound); whistleSound.play(); } public function stopTheme():void{ if (theme){ theme.stop(); theme = null; }; } public function doPaymentSound():void{ var _local1:SoundTransform = new SoundTransform(0.5); payment = (new CashSoundAsset() as Sound); payment.play(0, 0, _local1); } public function doDoorSound():void{ doorSound = (new AtDoorAsset() as Sound); doorSound.play(); } public function doWhooshSound():void{ var _local1:SoundTransform = new SoundTransform(0.5); whoosh = (new WhooshSoundAsset() as Sound); whoosh.play(0, 0, _local1); } } }//package drimlike.sound
Section 41
//MyGamesForGirls (drimlike.ui.MyGamesForGirls) package drimlike.ui { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.net.*; import flash.media.*; import caurina.transitions.*; import flash.system.*; public class MyGamesForGirls extends Sprite { private var sprite:Sprite; private var MyGamesForGirlsComData:Class; private var MyGamesForGirlsDEData:Class; private var sound:Sound; private var MyGamesForGirlsComGlintData:Class; private var MyGamesForGirlsDEGlintData:Class; private var MyGamesForGirlsFRData:Class; private var MyGamesForGirlsFRGlintData:Class; private var MyGamesForGirlsSPData:Class; private var glint:MovieClip; private var MyGamesForGirlsSPGlintData:Class; private var DefaultSoundData:Class; public function MyGamesForGirls(){ MyGamesForGirlsComGlintData = MyGamesForGirls_MyGamesForGirlsComGlintData; MyGamesForGirlsDEGlintData = MyGamesForGirls_MyGamesForGirlsDEGlintData; MyGamesForGirlsSPGlintData = MyGamesForGirls_MyGamesForGirlsSPGlintData; MyGamesForGirlsFRGlintData = MyGamesForGirls_MyGamesForGirlsFRGlintData; MyGamesForGirlsComData = MyGamesForGirls_MyGamesForGirlsComData; MyGamesForGirlsDEData = MyGamesForGirls_MyGamesForGirlsDEData; MyGamesForGirlsSPData = MyGamesForGirls_MyGamesForGirlsSPData; MyGamesForGirlsFRData = MyGamesForGirls_MyGamesForGirlsFRData; DefaultSoundData = MyGamesForGirls_DefaultSoundData; super(); addEventListener(Event.ADDED_TO_STAGE, init); } public function get urlLink():String{ var _local3:Boolean; var _local4:String; var _local5:LocalConnection; var _local6:String; var _local7:String; var _local8:String; var _local9:Number; var _local1:Array = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com"); var _local2:String = loaderInfo.url; for each (_local4 in _local1) { _local7 = _local4.toLowerCase(); _local8 = _local2.toLowerCase(); _local9 = _local8.indexOf(_local7, 0); if (_local9 != -1){ _local3 = true; }; }; _local5 = new LocalConnection(); _local6 = _local5.domain; _local4 = ""; switch (Capabilities.language){ default: if (_local3){ _local4 = "http://www.mygames4girls.com"; } else { _local4 = ((("http://www.mygames4girls.com/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; break; case "de": if (_local3){ _local4 = "http://www.mygames4girls.de"; } else { _local4 = ((("http://www.mygames4girls.de/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; break; case "fr": if (_local3){ _local4 = "http://www.jeux2filles.fr"; } else { _local4 = ((("http://www.jeux2filles.fr/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; break; case "es": if (_local3){ _local4 = "http://www.juegosxachicas.com"; } else { _local4 = ((("http://www.juegosxachicas.com/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; break; }; return (_local4); } private function init(_arg1:Event):void{ sound = (new DefaultSoundData() as Sound); switch (Capabilities.language){ default: sprite = (new MyGamesForGirlsComData() as Sprite); glint = (new MyGamesForGirlsComGlintData() as MovieClip); break; case "de": sprite = (new MyGamesForGirlsDEData() as Sprite); glint = (new MyGamesForGirlsDEGlintData() as MovieClip); break; case "es": sprite = (new MyGamesForGirlsSPData() as Sprite); glint = (new MyGamesForGirlsSPGlintData() as MovieClip); break; case "fr": sprite = (new MyGamesForGirlsFRData() as Sprite); glint = (new MyGamesForGirlsFRGlintData() as MovieClip); break; }; sprite.x = 0; sprite.y = 0; addChild(sprite); sprite.mouseEnabled = false; sprite.mouseChildren = false; glint.x = 0; glint.y = 0; addChild(glint); glint.mouseEnabled = false; glint.mouseChildren = false; var _local2:Sprite = new Sprite(); _local2.graphics.beginFill(0, 0); _local2.graphics.drawRect(0, 0, sprite.width, sprite.height); _local2.graphics.endFill(); _local2.useHandCursor = true; _local2.buttonMode = true; _local2.mouseChildren = false; addChildAt(_local2, 0); _local2.addEventListener(MouseEvent.CLICK, onMouseClick); _local2.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); _local2.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); } private function onMouseClick(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest(urlLink); navigateToURL(_local2, "_blank"); } private function onMouseOut(_arg1:MouseEvent):void{ Tweener.addTween(this, {scaleX:1, scaleY:1, x:(this.x + 10), time:0.5, transition:"easeOutExpo"}); } private function onMouseOver(_arg1:MouseEvent):void{ sound.play(0, 0); glint.gotoAndPlay(1); Tweener.addTween(this, {scaleX:1.1, scaleY:1.1, x:(this.x - 10), time:0.5, transition:"easeOutExpo"}); } } }//package drimlike.ui
Section 42
//MyGamesForGirls_DefaultSoundData (drimlike.ui.MyGamesForGirls_DefaultSoundData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_DefaultSoundData extends SoundAsset { } }//package drimlike.ui
Section 43
//MyGamesForGirls_MyGamesForGirlsComData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsComData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsComData extends SpriteAsset { } }//package drimlike.ui
Section 44
//MyGamesForGirls_MyGamesForGirlsComGlintData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsComGlintData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsComGlintData extends MovieClipAsset { } }//package drimlike.ui
Section 45
//MyGamesForGirls_MyGamesForGirlsDEData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsDEData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsDEData extends SpriteAsset { } }//package drimlike.ui
Section 46
//MyGamesForGirls_MyGamesForGirlsDEGlintData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsDEGlintData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsDEGlintData extends MovieClipAsset { } }//package drimlike.ui
Section 47
//MyGamesForGirls_MyGamesForGirlsFRData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsFRData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsFRData extends SpriteAsset { } }//package drimlike.ui
Section 48
//MyGamesForGirls_MyGamesForGirlsFRGlintData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsFRGlintData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsFRGlintData extends MovieClipAsset { } }//package drimlike.ui
Section 49
//MyGamesForGirls_MyGamesForGirlsSPData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsSPData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsSPData extends SpriteAsset { } }//package drimlike.ui
Section 50
//MyGamesForGirls_MyGamesForGirlsSPGlintData (drimlike.ui.MyGamesForGirls_MyGamesForGirlsSPGlintData) package drimlike.ui { import mx.core.*; public class MyGamesForGirls_MyGamesForGirlsSPGlintData extends MovieClipAsset { } }//package drimlike.ui
Section 51
//SandboxMoreGames (drimlike.ui.SandboxMoreGames) package drimlike.ui { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.net.*; import flash.media.*; import flash.system.*; public class SandboxMoreGames extends Sprite { private var MoreGamesFrData:Class; private var urlS:String; private var SandboxPrintGlintData:Class; private var sound:Sound; private var textSprite:Sprite; private var MoreGamesSpData:Class; private var MoreGamesEnData:Class; private var SandboxPrintButtonData:Class; private var background:Sprite; private var highlight:MovieClip; private var MoreGamesDeData:Class; private var DefaultSoundData:Class; public function SandboxMoreGames(){ SandboxPrintButtonData = SandboxMoreGames_SandboxPrintButtonData; SandboxPrintGlintData = SandboxMoreGames_SandboxPrintGlintData; MoreGamesEnData = SandboxMoreGames_MoreGamesEnData; MoreGamesFrData = SandboxMoreGames_MoreGamesFrData; MoreGamesDeData = SandboxMoreGames_MoreGamesDeData; MoreGamesSpData = SandboxMoreGames_MoreGamesSpData; DefaultSoundData = SandboxMoreGames_DefaultSoundData; super(); addEventListener(Event.ADDED_TO_STAGE, init); } private function init(_arg1:Event):void{ var _local4:Boolean; var _local5:String; var _local6:LocalConnection; var _local7:String; var _local8:String; var _local9:String; var _local10:Number; sound = (new DefaultSoundData() as Sound); background = (new SandboxPrintButtonData() as Sprite); background.addEventListener(MouseEvent.ROLL_OUT, onRollOut); background.addEventListener(MouseEvent.ROLL_OVER, onRollOver); background.addEventListener(MouseEvent.CLICK, onMouseClick); addChild(background); var _local2:Array = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com"); var _local3:String = loaderInfo.url; for each (_local5 in _local2) { _local8 = _local5.toLowerCase(); _local9 = _local3.toLowerCase(); _local10 = _local9.indexOf(_local8, 0); if (_local10 != -1){ _local4 = true; }; }; _local6 = new LocalConnection(); _local7 = _local6.domain; switch (Capabilities.language){ default: if (_local4){ urlS = "http://www.mygames4girls.com"; } else { urlS = ((("http://www.mygames4girls.com/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; textSprite = (new MoreGamesEnData() as Sprite); trace(_local3); break; case "es": if (_local4){ urlS = "http://www.juegosxachicas.com"; } else { urlS = ((("http://www.juegosxachicas.com/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; textSprite = (new MoreGamesSpData() as Sprite); break; case "de": if (_local4){ urlS = "http://www.mygames4girls.de"; } else { urlS = ((("http://www.mygames4girls.de/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; textSprite = (new MoreGamesDeData() as Sprite); break; case "fr": textSprite = (new MoreGamesFrData() as Sprite); if (_local4){ urlS = "http://www.jeux2filles.fr"; } else { urlS = ((("http://www.jeux2filles.fr/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY); }; break; }; textSprite.x = (background.width / 2); textSprite.y = (background.height / 2); textSprite.mouseChildren = false; textSprite.mouseEnabled = false; addChild(textSprite); this.buttonMode = true; this.useHandCursor = true; highlight = (new SandboxPrintGlintData() as MovieClip); highlight.mouseEnabled = false; highlight.stop(); addChild(highlight); } private function onMouseClick(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(urlS), "_blank"); } private function onRollOver(_arg1:MouseEvent):void{ sound.play(0, 0); highlight.gotoAndPlay(1); } private function onRollOut(_arg1:MouseEvent):void{ highlight.gotoAndStop(0); } } }//package drimlike.ui
Section 52
//SandboxMoreGames_DefaultSoundData (drimlike.ui.SandboxMoreGames_DefaultSoundData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_DefaultSoundData extends SoundAsset { } }//package drimlike.ui
Section 53
//SandboxMoreGames_MoreGamesDeData (drimlike.ui.SandboxMoreGames_MoreGamesDeData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_MoreGamesDeData extends SpriteAsset { } }//package drimlike.ui
Section 54
//SandboxMoreGames_MoreGamesEnData (drimlike.ui.SandboxMoreGames_MoreGamesEnData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_MoreGamesEnData extends SpriteAsset { } }//package drimlike.ui
Section 55
//SandboxMoreGames_MoreGamesFrData (drimlike.ui.SandboxMoreGames_MoreGamesFrData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_MoreGamesFrData extends SpriteAsset { } }//package drimlike.ui
Section 56
//SandboxMoreGames_MoreGamesSpData (drimlike.ui.SandboxMoreGames_MoreGamesSpData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_MoreGamesSpData extends SpriteAsset { } }//package drimlike.ui
Section 57
//SandboxMoreGames_SandboxPrintButtonData (drimlike.ui.SandboxMoreGames_SandboxPrintButtonData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_SandboxPrintButtonData extends SpriteAsset { } }//package drimlike.ui
Section 58
//SandboxMoreGames_SandboxPrintGlintData (drimlike.ui.SandboxMoreGames_SandboxPrintGlintData) package drimlike.ui { import mx.core.*; public class SandboxMoreGames_SandboxPrintGlintData extends MovieClipAsset { } }//package drimlike.ui
Section 59
//XMLFeed (drimlike.xml.XMLFeed) package drimlike.xml { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.net.*; import caurina.transitions.*; import flash.system.*; public class XMLFeed extends Sprite { private var heart:Sprite; private var items:Array; private var icon:Sprite; private var XMLFeedButton:Class; private var homepage:String; private var isOpen:Boolean;// = false private var optionsXML:XML; private var urlRequest:URLRequest; private var totalWidth:Number; private var XMLFeedIcon:Class; private var hasBeenOpened:Boolean; private var highlight:MovieClip; public var scrolling:Boolean;// = true private var itemsXML:XMLList; private var scrollSprite:Sprite; private var XMLFeedMask:Class; private var background:Sprite; private var XMLFeedHighlight:Class; public function XMLFeed(){ XMLFeedButton = XMLFeed_XMLFeedButton; XMLFeedIcon = XMLFeed_XMLFeedIcon; XMLFeedMask = XMLFeed_XMLFeedMask; XMLFeedHighlight = XMLFeed_XMLFeedHighlight; super(); this.visible = false; addEventListener(Event.ADDED_TO_STAGE, init); } private function onXMLComplete(_arg1:Event):void{ var _local2:XML = XML(URLLoader(_arg1.target).data); itemsXML = XMLList(_local2.data.item); if (_local2.options.xmlFeedEnabled == 1){ this.visible = true; background = (new XMLFeedButton() as Sprite); background.mouseChildren = false; background.x = 544; background.y = 480; background.addEventListener(MouseEvent.CLICK, onMouseClick); addChild(background); highlight = (new XMLFeedHighlight() as MovieClip); highlight.mouseChildren = false; highlight.mouseEnabled = false; highlight.x = 544; highlight.y = 480; addChild(highlight); icon = (new XMLFeedIcon() as Sprite); icon.buttonMode = true; icon.mouseChildren = false; icon.useHandCursor = true; icon.addEventListener(MouseEvent.CLICK, onMouseClick); icon.x = (background.x + (background.width / 2)); icon.y = (background.y + (background.height / 2)); addChild(icon); }; } private function initScroll():void{ var _local3:Boolean; var _local4:String; var _local5:String; var _local6:String; var _local7:Number; var _local8:LocalConnection; var _local9:String; var _local10:int; var _local11:int; var _local12:Sprite; var _local13:XMLFeedItem; var _local1:Array = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com"); var _local2:String = loaderInfo.url; for each (_local4 in _local1) { _local5 = _local4.toLowerCase(); _local6 = _local2.toLowerCase(); _local7 = _local6.indexOf(_local5, 0); if (_local7 != -1){ _local3 = true; }; }; if (hasBeenOpened == false){ _local8 = new LocalConnection(); _local9 = _local8.domain; _local10 = 0; _local11 = 0; while (_local11 < itemsXML.length()) { _local12 = (new XMLFeedMask() as Sprite); _local12.x = 320; _local12.y = 490; addChild(_local12); if (_local3){ _local13 = new XMLFeedItem(String(homepage), String(itemsXML[_local11].@title)); } else { _local13 = new XMLFeedItem(String(((((itemsXML[_local11].@linkURL + "?utm_source=") + _local9) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY)), String(itemsXML[_local11].@title)); }; _local13.x = (500 + _local10); _local13.y = 492; _local13.mask = _local12; addChild(_local13); _local10 = (_local10 + (_local13.width + 25)); items.push(_local13); _local11++; }; totalWidth = (_local10 + 100); highlight.visible = false; hasBeenOpened = true; addEventListener(Event.ENTER_FRAME, onEnterFrame); } else { open(); }; } private function init(_arg1:Event):void{ items = new Array(); switch (Capabilities.language){ default: urlRequest = new URLRequest("http://www.mygames4girls.com/games.xml"); homepage = "http://www.mygames4girls.com"; break; case "de": urlRequest = new URLRequest("http://www.mygames4girls.de/games.xml"); homepage = "http://www.mygames4girls.de"; break; case "es": urlRequest = new URLRequest("http://www.juegosxachicas.com/games.xml"); homepage = "http://www.juegosxachicas.com"; break; case "fr": urlRequest = new URLRequest("http://www.jeux2filles.fr/games.xml"); homepage = "http://www.jeux2filles.fr"; break; }; var _local2:URLLoader = new URLLoader(); _local2.addEventListener(Event.COMPLETE, onXMLComplete); _local2.addEventListener(IOErrorEvent.IO_ERROR, onError); _local2.load(urlRequest); } private function onError(_arg1:IOErrorEvent):void{ var _local2:URLLoader; if (urlRequest.url == "http://www.mygames4girls.de/games.xml"){ urlRequest = new URLRequest("http://www.mygames4girls.com/games.xml"); _local2 = new URLLoader(); _local2.addEventListener(Event.COMPLETE, onXMLComplete); _local2.addEventListener(IOErrorEvent.IO_ERROR, onError); _local2.load(urlRequest); } else { return; }; } private function open():void{ var _local1:XMLFeedItem; scrolling = true; for each (_local1 in items) { _local1.visible = true; }; } private function onMouseClick(_arg1:MouseEvent):void{ if (isOpen){ isOpen = false; close(); Tweener.addTween(background, {width:38, x:544, time:0.5, transition:"easeOutExpo"}); Tweener.addTween(icon, {x:564, time:0.5, transition:"easeOutExpo"}); } else { isOpen = true; Tweener.addTween(background, {width:302, x:280, time:0.5, transition:"easeOutExpo"}); Tweener.addTween(icon, {x:304, time:0.5, transition:"easeOutExpo", onComplete:initScroll()}); }; } private function close():void{ var _local1:XMLFeedItem; scrolling = false; for each (_local1 in items) { _local1.visible = false; }; } private function onEnterFrame(_arg1:Event):void{ var _local2:XMLFeedItem; if (scrolling){ for each (_local2 in items) { _local2.x--; if (_local2.x < 100){ _local2.x = totalWidth; }; }; }; } } }//package drimlike.xml
Section 60
//XMLFeed_XMLFeedButton (drimlike.xml.XMLFeed_XMLFeedButton) package drimlike.xml { import mx.core.*; public class XMLFeed_XMLFeedButton extends SpriteAsset { } }//package drimlike.xml
Section 61
//XMLFeed_XMLFeedHighlight (drimlike.xml.XMLFeed_XMLFeedHighlight) package drimlike.xml { import mx.core.*; public class XMLFeed_XMLFeedHighlight extends MovieClipAsset { } }//package drimlike.xml
Section 62
//XMLFeed_XMLFeedIcon (drimlike.xml.XMLFeed_XMLFeedIcon) package drimlike.xml { import mx.core.*; public class XMLFeed_XMLFeedIcon extends MovieClipAsset { } }//package drimlike.xml
Section 63
//XMLFeed_XMLFeedMask (drimlike.xml.XMLFeed_XMLFeedMask) package drimlike.xml { import mx.core.*; public class XMLFeed_XMLFeedMask extends SpriteAsset { } }//package drimlike.xml
Section 64
//XMLFeedItem (drimlike.xml.XMLFeedItem) package drimlike.xml { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.text.*; import flash.net.*; import caurina.transitions.*; public class XMLFeedItem extends Sprite { private var link:String; private var textField:TextField; private var text:String; private var background:Sprite; private var highlightSprite:Sprite; public function XMLFeedItem(_arg1:String, _arg2:String){ link = _arg1; text = _arg2; addEventListener(Event.ADDED_TO_STAGE, init); } private function onMouseClick(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(link), "_blank"); } private function onRollOut(_arg1:MouseEvent):void{ Engine.getInstance().xmlFeed.scrolling = true; Tweener.addTween(highlightSprite, {_color:0xFFFFFF, y:20, time:1, height:1, y:(highlightSprite.y + 5), transition:"easeOutExpo"}); } private function init(_arg1:Event):void{ background = new Sprite(); addChild(background); highlightSprite = new Sprite(); addChild(highlightSprite); var _local2:TextFormat = new TextFormat(); _local2.bold = true; _local2.font = "Trebuchet MS"; _local2.size = 12; var _local3:TextField = new TextField(); _local3.defaultTextFormat = _local2; _local3.text = text; _local3.autoSize = TextFieldAutoSize.LEFT; _local3.x = 0; _local3.y = 0; _local3.selectable = false; _local3.mouseEnabled = false; _local3.cacheAsBitmap = true; addChild(_local3); background.graphics.beginFill(0xFFFFFF, 0); background.graphics.drawRect(0, 0, _local3.width, _local3.height); background.graphics.endFill(); background.addEventListener(MouseEvent.CLICK, onMouseClick); background.addEventListener(MouseEvent.ROLL_OVER, onRollOver); background.addEventListener(MouseEvent.ROLL_OUT, onRollOut); background.buttonMode = true; background.useHandCursor = true; highlightSprite.mouseChildren = false; highlightSprite.mouseEnabled = false; highlightSprite.graphics.beginFill(0xFFFFFF, 1); highlightSprite.graphics.drawRect(0, 0, _local3.width, 1); highlightSprite.graphics.endFill(); highlightSprite.y = 20; } private function onRollOver(_arg1:MouseEvent):void{ Engine.getInstance().xmlFeed.scrolling = false; Tweener.addTween(highlightSprite, {_color:9503365, y:18, time:1, height:2, transition:"easeOutExpo"}); } } }//package drimlike.xml
Section 65
//XMLRotator (drimlike.xml.XMLRotator) package drimlike.xml { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.net.*; import flash.utils.*; import flash.filters.*; import flash.system.*; public class XMLRotator extends Sprite { private var items:Array; private var XMLRotatorGirls:Class; private var timer:Timer; private var rightButton:XMLRotatorButtonRight; private var XMLRotatorBackground:Class; private var XMLRotatorButtonHighlight:Class; private var isOpen:Boolean;// = false private var leftButton:XMLRotatorButtonLeft; private var urlRequest:URLRequest; private var totalWidth:Number; private var blink:Sprite; private var homepage:String; private var background:Sprite; private var itemsXML:XMLList; private var scrollSprite:Sprite; public var isScrolling:Boolean;// = true private var counter:int; public function XMLRotator(){ XMLRotatorBackground = XMLRotator_XMLRotatorBackground; XMLRotatorButtonHighlight = XMLRotator_XMLRotatorButtonHighlight; XMLRotatorGirls = XMLRotator_XMLRotatorGirls; super(); this.visible = false; addEventListener(Event.ADDED_TO_STAGE, init); } private function initScroll():void{ var _local3:Boolean; var _local4:String; var _local5:DropShadowFilter; var _local6:LocalConnection; var _local7:String; var _local8:int; var _local9:String; var _local10:String; var _local11:Number; var _local12:XMLRotatorItem; var _local1:Array = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com"); var _local2:String = loaderInfo.url; for each (_local4 in _local1) { _local9 = _local4.toLowerCase(); _local10 = _local2.toLowerCase(); _local11 = _local10.indexOf(_local9, 0); if (_local11 != -1){ _local3 = true; }; }; _local5 = new DropShadowFilter(); _local5.alpha = 50; _local5.blurX = 5; _local5.blurY = 5; _local5.color = 0; _local5.distance = 0; _local5.quality = BitmapFilterQuality.MEDIUM; this.filters = new Array(_local5); _local6 = new LocalConnection(); _local7 = _local6.domain; _local8 = 0; while (_local8 < itemsXML.length()) { if (_local3){ _local12 = new XMLRotatorItem(String(homepage), String(itemsXML[_local8].@src)); } else { _local12 = new XMLRotatorItem(String(((((itemsXML[_local8].@linkURL + "?utm_source=") + _local7) + "&utm_medium=our_games&utm_campaign=") + Engine.getInstance().TRACKING_KEY)), String(itemsXML[_local8].@src)); }; addChild(_local12); items.push(_local12); _local8++; }; leftButton = new XMLRotatorButtonLeft(); leftButton.x = -95; leftButton.addEventListener(MouseEvent.CLICK, goBackOne); addChild(leftButton); rightButton = new XMLRotatorButtonRight(); rightButton.addEventListener(MouseEvent.CLICK, goForwardOne); rightButton.x = 95; addChild(rightButton); background = (new XMLRotatorBackground() as Sprite); background.mouseChildren = false; addChildAt(background, 0); counter = 0; if (timer == null){ timer = new Timer(2000); timer.addEventListener(TimerEvent.TIMER, onTimer); timer.start(); }; } private function init(_arg1:Event):void{ items = new Array(); switch (Capabilities.language){ default: urlRequest = new URLRequest("http://www.mygames4girls.com/games.xml"); homepage = "http://www.mygames4girls.com"; break; case "de": urlRequest = new URLRequest("http://www.mygames4girls.de/games.xml"); homepage = "http://www.mygames4girls.de"; break; case "es": urlRequest = new URLRequest("http://www.juegosxachicas.com/games.xml"); homepage = "http://www.juegosxachicas.com"; break; case "fr": urlRequest = new URLRequest("http://www.jeux2filles.fr/games.xml"); homepage = "http://www.jeux2filles.fr"; break; }; var _local2:URLLoader = new URLLoader(); _local2.addEventListener(Event.COMPLETE, onXMLComplete); _local2.addEventListener(IOErrorEvent.IO_ERROR, onError); _local2.load(urlRequest); } private function onXMLComplete(_arg1:Event):void{ var _local2:XML = XML(URLLoader(_arg1.target).data); itemsXML = XMLList(_local2.data.item); if (_local2.options.xmlImageEnabled == 1){ this.visible = true; initScroll(); }; } private function close():void{ var _local1:XMLFeedItem; for each (_local1 in items) { _local1.visible = false; }; } private function onTimer(_arg1:TimerEvent):void{ if (isScrolling){ goForwardOne(); }; } private function onError(_arg1:IOErrorEvent):void{ var _local2:URLLoader; if (urlRequest.url == "http://www.mygames4girls.de/games.xml"){ urlRequest = new URLRequest("http://www.mygames4girls.com/games.xml"); _local2 = new URLLoader(); _local2.addEventListener(Event.COMPLETE, onXMLComplete); _local2.addEventListener(IOErrorEvent.IO_ERROR, onError); _local2.load(urlRequest); } else { return; }; } private function goForwardOne(_arg1:MouseEvent=null):void{ timer.stop(); counter++; if (counter == items.length){ counter = 0; }; setChildIndex(items[counter], (numChildren - 1)); XMLRotatorItem(items[counter]).DoFlash(); timer.start(); } private function goBackOne(_arg1:MouseEvent):void{ timer.stop(); counter--; if (counter < 0){ counter = (items.length - 1); }; setChildIndex(items[counter], (numChildren - 1)); XMLRotatorItem(items[counter]).DoFlash(); timer.start(); } } }//package drimlike.xml
Section 66
//XMLRotator_XMLRotatorBackground (drimlike.xml.XMLRotator_XMLRotatorBackground) package drimlike.xml { import mx.core.*; public class XMLRotator_XMLRotatorBackground extends SpriteAsset { } }//package drimlike.xml
Section 67
//XMLRotator_XMLRotatorButtonHighlight (drimlike.xml.XMLRotator_XMLRotatorButtonHighlight) package drimlike.xml { import mx.core.*; public class XMLRotator_XMLRotatorButtonHighlight extends SpriteAsset { } }//package drimlike.xml
Section 68
//XMLRotator_XMLRotatorGirls (drimlike.xml.XMLRotator_XMLRotatorGirls) package drimlike.xml { import mx.core.*; public class XMLRotator_XMLRotatorGirls extends SpriteAsset { } }//package drimlike.xml
Section 69
//XMLRotatorButtonLeft (drimlike.xml.XMLRotatorButtonLeft) package drimlike.xml { import flash.events.*; import flash.display.*; import caurina.transitions.*; public class XMLRotatorButtonLeft extends Sprite { private var button:Sprite; private var highlight:Sprite; private var XMLRotatorButtonHighlight:Class; private var XMLRotatorLeft:Class; public function XMLRotatorButtonLeft(){ XMLRotatorLeft = XMLRotatorButtonLeft_XMLRotatorLeft; XMLRotatorButtonHighlight = XMLRotatorButtonLeft_XMLRotatorButtonHighlight; super(); addEventListener(Event.ADDED_TO_STAGE, init); } private function init(_arg1:Event):void{ highlight = (new XMLRotatorButtonHighlight() as Sprite); highlight.mouseEnabled = false; highlight.mouseChildren = false; addChild(highlight); button = (new XMLRotatorLeft() as Sprite); addChild(button); this.buttonMode = true; this.useHandCursor = true; this.addEventListener(MouseEvent.ROLL_OUT, onRollOut); this.addEventListener(MouseEvent.ROLL_OVER, onRollOver); } private function onRollOver(_arg1:MouseEvent):void{ Tweener.addTween(highlight, {_color:9503365, time:1}); } private function onRollOut(_arg1:MouseEvent):void{ Tweener.addTween(highlight, {_color:0xCCCCCC, time:1}); } } }//package drimlike.xml
Section 70
//XMLRotatorButtonLeft_XMLRotatorButtonHighlight (drimlike.xml.XMLRotatorButtonLeft_XMLRotatorButtonHighlight) package drimlike.xml { import mx.core.*; public class XMLRotatorButtonLeft_XMLRotatorButtonHighlight extends SpriteAsset { } }//package drimlike.xml
Section 71
//XMLRotatorButtonLeft_XMLRotatorLeft (drimlike.xml.XMLRotatorButtonLeft_XMLRotatorLeft) package drimlike.xml { import mx.core.*; public class XMLRotatorButtonLeft_XMLRotatorLeft extends SpriteAsset { } }//package drimlike.xml
Section 72
//XMLRotatorButtonRight (drimlike.xml.XMLRotatorButtonRight) package drimlike.xml { import flash.events.*; import flash.display.*; import caurina.transitions.*; public class XMLRotatorButtonRight extends Sprite { private var button:Sprite; private var highlight:Sprite; private var XMLRotatorRight:Class; private var XMLRotatorButtonHighlight:Class; public function XMLRotatorButtonRight(){ XMLRotatorRight = XMLRotatorButtonRight_XMLRotatorRight; XMLRotatorButtonHighlight = XMLRotatorButtonRight_XMLRotatorButtonHighlight; super(); addEventListener(Event.ADDED_TO_STAGE, init); } private function init(_arg1:Event):void{ highlight = (new XMLRotatorButtonHighlight() as Sprite); highlight.mouseEnabled = false; highlight.mouseChildren = false; addChild(highlight); button = (new XMLRotatorRight() as Sprite); addChild(button); this.buttonMode = true; this.useHandCursor = true; this.addEventListener(MouseEvent.ROLL_OUT, onRollOut); this.addEventListener(MouseEvent.ROLL_OVER, onRollOver); } private function onRollOver(_arg1:MouseEvent):void{ Tweener.addTween(highlight, {_color:9503365, time:1}); } private function onRollOut(_arg1:MouseEvent):void{ Tweener.addTween(highlight, {_color:0xCCCCCC, time:1}); } } }//package drimlike.xml
Section 73
//XMLRotatorButtonRight_XMLRotatorButtonHighlight (drimlike.xml.XMLRotatorButtonRight_XMLRotatorButtonHighlight) package drimlike.xml { import mx.core.*; public class XMLRotatorButtonRight_XMLRotatorButtonHighlight extends SpriteAsset { } }//package drimlike.xml
Section 74
//XMLRotatorButtonRight_XMLRotatorRight (drimlike.xml.XMLRotatorButtonRight_XMLRotatorRight) package drimlike.xml { import mx.core.*; public class XMLRotatorButtonRight_XMLRotatorRight extends SpriteAsset { } }//package drimlike.xml
Section 75
//XMLRotatorItem (drimlike.xml.XMLRotatorItem) package drimlike.xml { import flash.events.*; import drimlike.data.*; import flash.display.*; import flash.net.*; import caurina.transitions.*; import flash.filters.*; public class XMLRotatorItem extends Sprite { private var maskMC:MovieClip; private var background:Sprite; private var XMLRotatorMask:Class; private var loader:Loader; private var imageURL:String; private var linkURL:String; private var image:Bitmap; private var flasher:Sprite; public function XMLRotatorItem(_arg1:String, _arg2:String){ XMLRotatorMask = XMLRotatorItem_XMLRotatorMask; super(); linkURL = _arg1; imageURL = _arg2; addEventListener(Event.ADDED_TO_STAGE, init); } public function DoFlash():void{ if (flasher){ flasher.alpha = 1; Tweener.addTween(flasher, {alpha:0, time:0.5}); }; } private function onMouseClick(_arg1:MouseEvent):void{ navigateToURL(new URLRequest(linkURL), "_blank"); } private function onImageComplete(_arg1:Event):void{ trace("on image complete"); image = Bitmap(loader.content); image.x = 3; image.y = 4; addChild(image); background = new Sprite(); background.x = 3; background.y = 4; background.graphics.lineStyle(4, 11121335, 1); background.graphics.beginFill(0xFFFFFF, 0); background.graphics.drawRect(0, 0, image.width, image.height); background.graphics.endFill(); background.buttonMode = true; background.useHandCursor = true; background.addEventListener(MouseEvent.CLICK, onMouseClick); background.addEventListener(MouseEvent.ROLL_OVER, onMouseFlash); background.addEventListener(MouseEvent.ROLL_OUT, onMouseFlashOut); addChildAt(background, 0); flasher = new Sprite(); flasher.x = 3; flasher.y = 4; flasher.graphics.beginFill(0xFFFFFF, 1); flasher.graphics.drawRect(0, 0, image.width, image.height); flasher.graphics.endFill(); flasher.alpha = 0; flasher.mouseChildren = false; flasher.mouseEnabled = false; addChild(flasher); maskMC = (new XMLRotatorMask() as MovieClip); maskMC.x = ((image.x + (image.width / 2)) + 1); maskMC.y = ((image.y + (image.height / 2)) + 2); maskMC.mouseEnabled = false; maskMC.mouseChildren = false; maskMC.gotoAndStop(0); addChild(maskMC); var _local2:DropShadowFilter = new DropShadowFilter(); _local2.alpha = 0.2; _local2.blurX = 10; _local2.blurY = 10; _local2.color = 0; _local2.distance = 0; _local2.quality = BitmapFilterQuality.MEDIUM; image.filters = new Array(_local2); this.x = (-(background.width) / 2); this.y = (-(background.height) / 2); } private function init(_arg1:Event):void{ loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageComplete); loader.load(new URLRequest(imageURL)); } public function onMouseFlash(_arg1:MouseEvent):void{ Engine.getInstance().imageFeed.isScrolling = false; maskMC.gotoAndPlay(0); } public function onMouseFlashOut(_arg1:MouseEvent):void{ Engine.getInstance().imageFeed.isScrolling = true; maskMC.gotoAndStop(0); } } }//package drimlike.xml
Section 76
//XMLRotatorItem_XMLRotatorMask (drimlike.xml.XMLRotatorItem_XMLRotatorMask) package drimlike.xml { import mx.core.*; public class XMLRotatorItem_XMLRotatorMask extends MovieClipAsset { } }//package drimlike.xml
Section 77
//Sandbox (drimlike.Sandbox) package drimlike { import flash.events.*; import flash.display.*; import drimlike.managers.*; public class Sandbox extends Sprite { private const levelSpawnTimers:Array; private const levelHappyTipMin:Array; private const levelMenuBrowseTimeMin:Array; private const levelCashTargets:Array; private const levelHappyTipMax:Array; private const levelMenuBrowseTimeMax:Array; private const levelEatFoodTimeMin:Array; private const levelCurrentChefDelayArray:Array; private const levelMediumTipMin:Array; private const levelEatFoodTimeMax:Array; private const levelGarbageArray:Array; private const levelMediumTipMax:Array; private const levelPastaCost:Array; private const levelTimesArray:Array; private const levelDrinkCost:Array; private const levelPizzaCost:Array; private const levelCurrentChefSpeedArray:Array; public var maxLevel:int;// = 5 public var currentPastaCost:int; public var currentLevel:int;// = 0 public var currentDrinkCost:int; public var currentHappyTipMax:int; public var screenManager:ScreenManager; public var currentMediumTipMin:int; public var currentChefSpeed:Number; public var currentMediumTipMax:int; public var currentMenuBrowseTimeMin:int; public var currentChefDelayTime:Number; public var currentMenuBrowseTimeMax:int; public var gameManager:GameManager; public var currentSpawnTimer:int; public var currentGarbageDelay:int; public var currentEatFoodTimeMin:int; public var currentLevelTime:int; public var uiManager:UIManager; public var currentEatFoodTimeMax:int; public var currentPizzaCost:int; public var currentCashTarget:int; public var currentHappyTipMin:int; public function Sandbox(){ levelTimesArray = new Array(130, 160, 210, 260, 340); levelCashTargets = new Array(100, 150, 225, 350, 600); levelMenuBrowseTimeMin = new Array(6000, 5500, 5000, 6000, 7000); levelMenuBrowseTimeMax = new Array(12000, 11000, 13000, 11000, 12000); levelEatFoodTimeMin = new Array(10000, 9000, 15000, 12000, 13000); levelEatFoodTimeMax = new Array(20000, 17000, 20000, 20000, 21000); levelSpawnTimers = new Array(18000, 17000, 13000, 10000, 8000); levelGarbageArray = new Array(5000, 4500, 3000, 2000, 2000); levelHappyTipMin = new Array(6, 6, 4, 3, 6); levelHappyTipMax = new Array(12, 11, 7, 8, 11); levelMediumTipMin = new Array(2, 2, 1, 1, 1); levelMediumTipMax = new Array(5, 4, 4, 4, 5); levelPastaCost = new Array(5, 5, 4, 4, 5); levelPizzaCost = new Array(8, 8, 7, 7, 6); levelDrinkCost = new Array(5, 5, 5, 4, 3); levelCurrentChefDelayArray = new Array(500, 500, 500, 200, 200); levelCurrentChefSpeedArray = new Array(2, 2, 2, 1.5, 1); super(); init(); } public function showLevelFailed():void{ screenManager.showLevelFailed(currentCashTarget); gameManager.reset(); } private function init():void{ gameManager = new GameManager(); addChild(gameManager); screenManager = new ScreenManager(); addChild(screenManager); uiManager = new UIManager(); addChild(uiManager); screenManager.addEventListener(ScreenManager.START_NEW_GAME_EVENT, onStartFreshGame); screenManager.addEventListener(ScreenManager.RETRY_SAME_LEVEL_EVENT, onRetrySameLevel); screenManager.addEventListener(ScreenManager.START_NEXT_LEVEL_EVENT, onStartNextLevel); screenManager.showHowToPlay(); } private function onRetrySameLevel(_arg1:Event):void{ gameManager.reset(); gameManager.startGame(currentLevelTime, currentLevel, currentCashTarget); screenManager.hideAllScreens(); } private function onStartFreshGame(_arg1:Event):void{ currentLevel = 1; currentMenuBrowseTimeMin = int(levelMenuBrowseTimeMin[(currentLevel - 1)]); currentMenuBrowseTimeMax = int(levelMenuBrowseTimeMax[(currentLevel - 1)]); currentEatFoodTimeMin = int(levelEatFoodTimeMin[(currentLevel - 1)]); currentEatFoodTimeMax = int(levelEatFoodTimeMax[(currentLevel - 1)]); currentLevelTime = int(levelTimesArray[(currentLevel - 1)]); currentCashTarget = int(levelCashTargets[(currentLevel - 1)]); currentSpawnTimer = int(levelSpawnTimers[(currentLevel - 1)]); currentGarbageDelay = int(levelGarbageArray[(currentLevel - 1)]); currentHappyTipMin = int(levelHappyTipMin[(currentLevel - 1)]); currentHappyTipMax = int(levelHappyTipMax[(currentLevel - 1)]); currentMediumTipMin = int(levelMediumTipMin[(currentLevel - 1)]); currentMediumTipMax = int(levelMediumTipMax[(currentLevel - 1)]); currentChefDelayTime = Number(levelCurrentChefDelayArray[(currentLevel - 1)]); currentChefSpeed = Number(levelCurrentChefSpeedArray[(currentLevel - 1)]); currentDrinkCost = int(levelDrinkCost[(currentLevel - 1)]); currentPizzaCost = int(levelPizzaCost[(currentLevel - 1)]); currentPastaCost = int(levelPastaCost[(currentLevel - 1)]); screenManager.hideAllScreens(); gameManager.startGame(currentLevelTime, currentLevel, currentCashTarget); } private function onStartNextLevel(_arg1:Event):void{ gameManager.reset(); gameManager.startGame(currentLevelTime, currentLevel, currentCashTarget); screenManager.hideAllScreens(); } public function showLevelPassed():void{ if (currentLevel < 5){ currentLevel++; currentMenuBrowseTimeMin = int(levelMenuBrowseTimeMin[(currentLevel - 1)]); currentMenuBrowseTimeMax = int(levelMenuBrowseTimeMax[(currentLevel - 1)]); currentEatFoodTimeMin = int(levelEatFoodTimeMin[(currentLevel - 1)]); currentEatFoodTimeMax = int(levelEatFoodTimeMax[(currentLevel - 1)]); currentLevelTime = int(levelTimesArray[(currentLevel - 1)]); currentCashTarget = int(levelCashTargets[(currentLevel - 1)]); currentSpawnTimer = int(levelSpawnTimers[(currentLevel - 1)]); currentGarbageDelay = int(levelGarbageArray[(currentLevel - 1)]); currentHappyTipMin = int(levelHappyTipMin[(currentLevel - 1)]); currentHappyTipMax = int(levelHappyTipMax[(currentLevel - 1)]); currentMediumTipMin = int(levelMediumTipMin[(currentLevel - 1)]); currentMediumTipMax = int(levelMediumTipMax[(currentLevel - 1)]); currentChefDelayTime = int(levelCurrentChefDelayArray[(currentLevel - 1)]); currentChefSpeed = int(levelCurrentChefSpeedArray[(currentLevel - 1)]); currentDrinkCost = int(levelDrinkCost[(currentLevel - 1)]); currentPizzaCost = int(levelPizzaCost[(currentLevel - 1)]); currentPastaCost = int(levelPastaCost[(currentLevel - 1)]); trace(currentCashTarget); screenManager.showLevelPassed(currentCashTarget); } else { screenManager.showGameComplete(); }; trace(currentCashTarget); gameManager.reset(); } } }//package drimlike
Section 78
//EdgeMetrics (mx.core.EdgeMetrics) package mx.core { public class EdgeMetrics { public var top:Number; public var left:Number; public var bottom:Number; public var right:Number; mx_internal static const VERSION:String = "3.2.0.3958"; public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0); ; public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ this.left = _arg1; this.top = _arg2; this.right = _arg3; this.bottom = _arg4; } public function clone():EdgeMetrics{ return (new EdgeMetrics(left, top, right, bottom)); } } }//package mx.core
Section 79
//FlexMovieClip (mx.core.FlexMovieClip) package mx.core { import flash.display.*; import mx.utils.*; public class FlexMovieClip extends MovieClip { mx_internal static const VERSION:String = "3.2.0.3958"; public function FlexMovieClip(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 80
//FlexSprite (mx.core.FlexSprite) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSprite extends Sprite { mx_internal static const VERSION:String = "3.2.0.3958"; public function FlexSprite(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 81
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 82
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 83
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.accessibility.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get visible():Boolean; function get rotation():Number; function localToGlobal(_arg1:Point):Point; function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function get blendMode():String; function get scale9Grid():Rectangle; function set name(_arg1:String):void; function set scaleX(_arg1:Number):void; function set scaleY(_arg1:Number):void; function get measuredWidth():Number; function get accessibilityProperties():AccessibilityProperties; function set scrollRect(_arg1:Rectangle):void; function get cacheAsBitmap():Boolean; function globalToLocal(_arg1:Point):Point; function get height():Number; function set blendMode(_arg1:String):void; function get parent():DisplayObjectContainer; function getBounds(_arg1:DisplayObject):Rectangle; function get opaqueBackground():Object; function set scale9Grid(_arg1:Rectangle):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set alpha(_arg1:Number):void; function set accessibilityProperties(_arg1:AccessibilityProperties):void; function get width():Number; function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean; function set cacheAsBitmap(_arg1:Boolean):void; function get scaleX():Number; function get scaleY():Number; function get scrollRect():Rectangle; function get mouseX():Number; function get mouseY():Number; function set height(_arg1:Number):void; function set mask(_arg1:DisplayObject):void; function getRect(_arg1:DisplayObject):Rectangle; function get alpha():Number; function set transform(_arg1:Transform):void; function move(_arg1:Number, _arg2:Number):void; function get loaderInfo():LoaderInfo; function get root():DisplayObject; function hitTestObject(_arg1:DisplayObject):Boolean; function set opaqueBackground(_arg1:Object):void; function set visible(_arg1:Boolean):void; function get mask():DisplayObject; function set x(_arg1:Number):void; function set y(_arg1:Number):void; function get transform():Transform; function set filters(_arg1:Array):void; function get x():Number; function get y():Number; function get filters():Array; function set rotation(_arg1:Number):void; function get stage():Stage; } }//package mx.core
Section 84
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function get instanceIndices():Array; function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function get repeaters():Array; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 85
//MovieClipAsset (mx.core.MovieClipAsset) package mx.core { public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.2.0.3958"; public function MovieClipAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 86
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 87
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.2.0.3958"; } }//package mx.core
Section 88
//SpriteAsset (mx.core.SpriteAsset) package mx.core { public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.2.0.3958"; public function SpriteAsset(){ _measuredWidth = width; _measuredHeight = height; } public function get measuredWidth():Number{ return (_measuredWidth); } public function get measuredHeight():Number{ return (_measuredHeight); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } public function get borderMetrics():EdgeMetrics{ if (scale9Grid == null){ return (EdgeMetrics.EMPTY); }; return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom)))); } } }//package mx.core
Section 89
//NameUtil (mx.utils.NameUtil) package mx.utils { import mx.core.*; import flash.display.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "3.2.0.3958"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var result:String; var o:DisplayObject; var s:String; var indices:Array; var displayObject = _arg1; try { o = displayObject; while (o != null) { if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){ break; }; s = o.name; if ((o is IRepeaterClient)){ indices = IRepeaterClient(o).instanceIndices; if (indices){ s = (s + (("[" + indices.join("][")) + "]")); }; }; result = ((result == null)) ? s : ((s + ".") + result); o = o.parent; }; } catch(e:SecurityError) { }; return (result); } public static function createUniqueName(_arg1:Object):String{ if (!_arg1){ return (null); }; var _local2:String = getQualifiedClassName(_arg1); var _local3:int = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; var _local4:int = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 90
//Action (org.flintparticles.common.actions.Action) package org.flintparticles.common.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; public interface Action { function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void; function addedToEmitter(_arg1:Emitter):void; function removedFromEmitter(_arg1:Emitter):void; function getDefaultPriority():Number; } }//package org.flintparticles.common.actions
Section 91
//ActionBase (org.flintparticles.common.actions.ActionBase) package org.flintparticles.common.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; public class ActionBase implements Action { public function addedToEmitter(_arg1:Emitter):void{ } public function removedFromEmitter(_arg1:Emitter):void{ } public function getDefaultPriority():Number{ return (0); } public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{ } } }//package org.flintparticles.common.actions
Section 92
//Age (org.flintparticles.common.actions.Age) package org.flintparticles.common.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.energyEasing.*; public class Age extends ActionBase { private var _easing:Function; public function Age(_arg1:Function=null){ if (_arg1 == null){ _easing = Linear.easeNone; } else { _easing = _arg1; }; } public function set easing(_arg1:Function):void{ _easing = _arg1; } override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{ _arg2.age = (_arg2.age + _arg3); if (_arg2.age >= _arg2.lifetime){ _arg2.energy = 0; _arg2.isDead = true; } else { _arg2.energy = _easing(_arg2.age, _arg2.lifetime); }; } public function get easing():Function{ return (_easing); } } }//package org.flintparticles.common.actions
Section 93
//Activity (org.flintparticles.common.activities.Activity) package org.flintparticles.common.activities { import org.flintparticles.common.emitters.*; public interface Activity { function initialize(_arg1:Emitter):void; function removedFromEmitter(_arg1:Emitter):void; function update(_arg1:Emitter, _arg2:Number):void; function addedToEmitter(_arg1:Emitter):void; function getDefaultPriority():Number; } }//package org.flintparticles.common.activities
Section 94
//ActivityBase (org.flintparticles.common.activities.ActivityBase) package org.flintparticles.common.activities { import org.flintparticles.common.emitters.*; public class ActivityBase implements Activity { public function initialize(_arg1:Emitter):void{ } public function addedToEmitter(_arg1:Emitter):void{ } public function removedFromEmitter(_arg1:Emitter):void{ } public function getDefaultPriority():Number{ return (0); } public function update(_arg1:Emitter, _arg2:Number):void{ } } }//package org.flintparticles.common.activities
Section 95
//FrameUpdatable (org.flintparticles.common.activities.FrameUpdatable) package org.flintparticles.common.activities { import org.flintparticles.common.emitters.*; public interface FrameUpdatable { function frameUpdate(_arg1:Emitter, _arg2:Number):void; } }//package org.flintparticles.common.activities
Section 96
//UpdateOnFrame (org.flintparticles.common.activities.UpdateOnFrame) package org.flintparticles.common.activities { import org.flintparticles.common.emitters.*; public class UpdateOnFrame extends ActivityBase { private var action:FrameUpdatable; public function UpdateOnFrame(_arg1:FrameUpdatable){ action = _arg1; } override public function update(_arg1:Emitter, _arg2:Number):void{ action.frameUpdate(_arg1, _arg2); } } }//package org.flintparticles.common.activities
Section 97
//Blast (org.flintparticles.common.counters.Blast) package org.flintparticles.common.counters { import org.flintparticles.common.emitters.*; public class Blast implements Counter { private var _startCount:uint; public function Blast(_arg1:uint){ _startCount = _arg1; } public function stop():void{ } public function updateEmitter(_arg1:Emitter, _arg2:Number):uint{ return (0); } public function startEmitter(_arg1:Emitter):uint{ return (_startCount); } public function resume():void{ } public function set startCount(_arg1:Number):void{ _startCount = _arg1; } public function get startCount():Number{ return (_startCount); } } }//package org.flintparticles.common.counters
Section 98
//Counter (org.flintparticles.common.counters.Counter) package org.flintparticles.common.counters { import org.flintparticles.common.emitters.*; public interface Counter { function stop():void; function startEmitter(_arg1:Emitter):uint; function updateEmitter(_arg1:Emitter, _arg2:Number):uint; function resume():void; } }//package org.flintparticles.common.counters
Section 99
//Steady (org.flintparticles.common.counters.Steady) package org.flintparticles.common.counters { import org.flintparticles.common.emitters.*; public class Steady implements Counter { private var _stop:Boolean; private var _rateInv:Number; private var _timeToNext:Number; private var _rate:Number; public function Steady(_arg1:Number){ _stop = false; _rate = _arg1; _rateInv = (1 / _rate); } public function get rate():Number{ return (_rate); } public function updateEmitter(_arg1:Emitter, _arg2:Number):uint{ if (_stop){ return (0); }; var _local3:uint; _timeToNext = (_timeToNext - _arg2); while (_timeToNext <= 0) { _local3++; _timeToNext = (_timeToNext + _rateInv); }; return (_local3); } public function set rate(_arg1:Number):void{ _rate = _arg1; _rateInv = (1 / _arg1); } public function stop():void{ _stop = true; } public function startEmitter(_arg1:Emitter):uint{ _timeToNext = _rateInv; return (0); } public function resume():void{ _stop = false; } } }//package org.flintparticles.common.counters
Section 100
//ZeroCounter (org.flintparticles.common.counters.ZeroCounter) package org.flintparticles.common.counters { import org.flintparticles.common.emitters.*; public class ZeroCounter implements Counter { public function stop():void{ } public function updateEmitter(_arg1:Emitter, _arg2:Number):uint{ return (0); } public function startEmitter(_arg1:Emitter):uint{ return (0); } public function resume():void{ } } }//package org.flintparticles.common.counters
Section 101
//Emitter (org.flintparticles.common.emitters.Emitter) package org.flintparticles.common.emitters { import flash.events.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.initializers.*; import org.flintparticles.common.actions.*; import org.flintparticles.common.activities.*; import org.flintparticles.common.counters.*; import org.flintparticles.common.events.*; import org.flintparticles.common.utils.*; public class Emitter extends EventDispatcher { protected var _running:Boolean;// = false protected var _activities:PriorityArray; protected var _particles:Array; protected var _initializers:PriorityArray; protected var _counter:Counter; protected var _started:Boolean;// = false protected var _actions:PriorityArray; protected var _useInternalTick:Boolean;// = true protected var _particleFactory:ParticleFactory; protected var _fixedFrameTime:Number;// = 0 protected var _maximumFrameTime:Number;// = 0.1 public function Emitter(){ _particles = new Array(); _actions = new PriorityArray(); _initializers = new PriorityArray(); _activities = new PriorityArray(); _counter = new ZeroCounter(); } public function addInitializer(_arg1:Initializer, _arg2:Number=NaN):void{ if (isNaN(_arg2)){ _arg2 = _arg1.getDefaultPriority(); }; _initializers.add(_arg1, _arg2); _arg1.addedToEmitter(this); } public function stop():void{ if (_useInternalTick){ FrameUpdater.instance.removeEventListener(UpdateEvent.UPDATE, updateEventListener); }; _started = false; killAllParticles(); } public function killAllParticles():void{ var _local1:int = _particles.length; var _local2:int; while (_local2 < _local1) { dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_DEAD, _particles[_local2])); _particleFactory.disposeParticle(_particles[_local2]); _local2++; }; _particles.length = 0; } public function set fixedFrameTime(_arg1:Number):void{ _fixedFrameTime = _arg1; } public function get maximumFrameTime():Number{ return (_maximumFrameTime); } public function get useInternalTick():Boolean{ return (_useInternalTick); } protected function createParticle():Particle{ var _local1:Particle = _particleFactory.createParticle(); var _local2:int = _initializers.length; initParticle(_local1); var _local3:int; while (_local3 < _local2) { _initializers[_local3].initialize(this, _local1); _local3++; }; _particles.push(_local1); dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_CREATED, _local1)); return (_local1); } public function get particleFactory():ParticleFactory{ return (_particleFactory); } private function updateEventListener(_arg1:UpdateEvent):void{ if (_fixedFrameTime){ update(_fixedFrameTime); } else { update(_arg1.time); }; } public function get particles():Array{ return (_particles); } protected function sortParticles():void{ } public function removeActivity(_arg1:Activity):void{ if (_activities.remove(_arg1)){ _arg1.removedFromEmitter(this); }; } public function set maximumFrameTime(_arg1:Number):void{ _maximumFrameTime = _arg1; } protected function initParticle(_arg1:Particle):void{ } public function addAction(_arg1:Action, _arg2:Number=NaN):void{ if (isNaN(_arg2)){ _arg2 = _arg1.getDefaultPriority(); }; _actions.add(_arg1, _arg2); _arg1.addedToEmitter(this); } public function hasInitializerOfType(_arg1:Class):Boolean{ var _local2:uint = _initializers.length; var _local3:uint; while (_local3 < _local2) { if ((_initializers[_local3] is _arg1)){ return (true); }; _local3++; }; return (false); } public function resume():void{ _running = true; } public function removeInitializer(_arg1:Initializer):void{ if (_initializers.remove(_arg1)){ _arg1.removedFromEmitter(this); }; } public function get running():Boolean{ return (_running); } public function hasActionOfType(_arg1:Class):Boolean{ var _local2:uint = _actions.length; var _local3:uint; while (_local3 < _local2) { if ((_actions[_local3] is _arg1)){ return (true); }; _local3++; }; return (false); } public function get fixedFrameTime():Number{ return (_fixedFrameTime); } public function set particleFactory(_arg1:ParticleFactory):void{ _particleFactory = _arg1; } public function hasActivity(_arg1:Activity):Boolean{ return (_activities.contains(_arg1)); } public function addActivity(_arg1:Activity, _arg2:Number=NaN):void{ if (isNaN(_arg2)){ _arg2 = _arg1.getDefaultPriority(); }; _activities.add(_arg1, _arg2); _arg1.addedToEmitter(this); } public function update(_arg1:Number):void{ var _local2:int; var _local3:Particle; var _local5:Action; var _local6:int; var _local7:int; if (!_running){ return; }; if (_arg1 > _maximumFrameTime){ _arg1 = _maximumFrameTime; }; var _local4:int = _counter.updateEmitter(this, _arg1); _local2 = 0; while (_local2 < _local4) { createParticle(); _local2++; }; sortParticles(); _local4 = _activities.length; _local2 = 0; while (_local2 < _local4) { _activities[_local2].update(this, _arg1); _local2++; }; if (_particles.length > 0){ _local4 = _actions.length; _local6 = _particles.length; _local7 = 0; while (_local7 < _local4) { _local5 = _actions[_local7]; _local2 = 0; while (_local2 < _local6) { _local3 = _particles[_local2]; _local5.update(this, _local3, _arg1); _local2++; }; _local7++; }; _local2 = _local6; while (_local2--) { _local3 = _particles[_local2]; if (_local3.isDead){ dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_DEAD, _local3)); _particleFactory.disposeParticle(_local3); _particles.splice(_local2, 1); }; }; } else { dispatchEvent(new EmitterEvent(EmitterEvent.EMITTER_EMPTY)); }; dispatchEvent(new EmitterEvent(EmitterEvent.EMITTER_UPDATED)); } public function addExistingParticles(_arg1:Array, _arg2:Boolean=false):void{ var _local4:int; var _local5:int; var _local6:int; var _local3:int = _arg1.length; if (_arg2){ _local5 = _initializers.length; _local6 = 0; while (_local6 < _local5) { _local4 = 0; while (_local4 < _local3) { _initializers[_local6].initialize(this, _arg1[_local4]); _local4++; }; _local6++; }; }; _local4 = 0; while (_local4 < _local3) { _particles.push(_arg1[_local4]); dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_ADDED, _arg1[_local4])); _local4++; }; } public function removeAction(_arg1:Action):void{ if (_actions.remove(_arg1)){ _arg1.removedFromEmitter(this); }; } public function hasActivityOfType(_arg1:Class):Boolean{ var _local2:uint = _activities.length; var _local3:uint; while (_local3 < _local2) { if ((_activities[_local3] is _arg1)){ return (true); }; _local3++; }; return (false); } public function set useInternalTick(_arg1:Boolean):void{ if (_useInternalTick != _arg1){ _useInternalTick = _arg1; if (_started){ if (_useInternalTick){ FrameUpdater.instance.addEventListener(UpdateEvent.UPDATE, updateEventListener, false, 0, true); } else { FrameUpdater.instance.removeEventListener(UpdateEvent.UPDATE, updateEventListener); }; }; }; } public function hasInitializer(_arg1:Initializer):Boolean{ return (_initializers.contains(_arg1)); } public function start():void{ if (_useInternalTick){ FrameUpdater.instance.addEventListener(UpdateEvent.UPDATE, updateEventListener, false, 0, true); }; _started = true; _running = true; var _local1:int = _activities.length; var _local2:int; while (_local2 < _local1) { _activities[_local2].initialize(this); _local2++; }; _local1 = _counter.startEmitter(this); _local2 = 0; while (_local2 < _local1) { createParticle(); _local2++; }; } public function hasAction(_arg1:Action):Boolean{ return (_actions.contains(_arg1)); } public function pause():void{ _running = false; } public function set counter(_arg1:Counter):void{ _counter = _arg1; if (running){ _counter.startEmitter(this); }; } public function get counter():Counter{ return (_counter); } public function runAhead(_arg1:Number, _arg2:Number=10):void{ var _local3:Number = _maximumFrameTime; var _local4:Number = (1 / _arg2); _maximumFrameTime = _local4; while (_arg1 > 0) { _arg1 = (_arg1 - _local4); update(_local4); }; _maximumFrameTime = _local3; } } }//package org.flintparticles.common.emitters
Section 102
//Linear (org.flintparticles.common.energyEasing.Linear) package org.flintparticles.common.energyEasing { public class Linear { public static function easeOut(_arg1:Number, _arg2:Number):Number{ return ((1 - (_arg1 / _arg2))); } public static function easeIn(_arg1:Number, _arg2:Number):Number{ return ((1 - (_arg1 / _arg2))); } public static function easeInOut(_arg1:Number, _arg2:Number):Number{ return ((1 - (_arg1 / _arg2))); } public static function easeNone(_arg1:Number, _arg2:Number):Number{ return ((1 - (_arg1 / _arg2))); } } }//package org.flintparticles.common.energyEasing
Section 103
//EmitterEvent (org.flintparticles.common.events.EmitterEvent) package org.flintparticles.common.events { import flash.events.*; public class EmitterEvent extends Event { public static var EMITTER_UPDATED:String = "emitterUpdated"; public static var EMITTER_EMPTY:String = "emitterEmpty"; public function EmitterEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } } }//package org.flintparticles.common.events
Section 104
//ParticleEvent (org.flintparticles.common.events.ParticleEvent) package org.flintparticles.common.events { import flash.events.*; import org.flintparticles.common.particles.*; public class ParticleEvent extends Event { public var particle:Particle; public var otherObject; public static var PARTICLES_COLLISION:String = "particlesCollision"; public static var PARTICLE_ADDED:String = "particleAdded"; public static var PARTICLE_DEAD:String = "particleDead"; public static var PARTICLE_CREATED:String = "particleCreated"; public function ParticleEvent(_arg1:String, _arg2:Particle=null, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.particle = _arg2; } } }//package org.flintparticles.common.events
Section 105
//UpdateEvent (org.flintparticles.common.events.UpdateEvent) package org.flintparticles.common.events { import flash.events.*; public class UpdateEvent extends Event { public var time:Number; public static var UPDATE:String = "update"; public function UpdateEvent(_arg1:String, _arg2:Number=NaN, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.time = _arg2; } } }//package org.flintparticles.common.events
Section 106
//ImageClass (org.flintparticles.common.initializers.ImageClass) package org.flintparticles.common.initializers { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.utils.*; public class ImageClass extends InitializerBase { private var _parameters:Array; private var _imageClass:Class; public function ImageClass(_arg1:Class, ... _args){ _imageClass = _arg1; _parameters = _args; } override public function initialize(_arg1:Emitter, _arg2:Particle):void{ _arg2.image = construct(_imageClass, _parameters); } public function get parameters():Array{ return (_parameters); } public function set parameters(_arg1:Array):void{ _parameters = _arg1; } public function set imageClass(_arg1:Class):void{ _imageClass = _arg1; } public function get imageClass():Class{ return (_imageClass); } } }//package org.flintparticles.common.initializers
Section 107
//Initializer (org.flintparticles.common.initializers.Initializer) package org.flintparticles.common.initializers { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; public interface Initializer { function initialize(_arg1:Emitter, _arg2:Particle):void; function addedToEmitter(_arg1:Emitter):void; function removedFromEmitter(_arg1:Emitter):void; function getDefaultPriority():Number; } }//package org.flintparticles.common.initializers
Section 108
//InitializerBase (org.flintparticles.common.initializers.InitializerBase) package org.flintparticles.common.initializers { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; public class InitializerBase implements Initializer { public function initialize(_arg1:Emitter, _arg2:Particle):void{ } public function addedToEmitter(_arg1:Emitter):void{ } public function removedFromEmitter(_arg1:Emitter):void{ } public function getDefaultPriority():Number{ return (0); } } }//package org.flintparticles.common.initializers
Section 109
//Lifetime (org.flintparticles.common.initializers.Lifetime) package org.flintparticles.common.initializers { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; public class Lifetime extends InitializerBase { private var _max:Number; private var _min:Number; public function Lifetime(_arg1:Number, _arg2:Number=NaN){ _max = _arg2; _min = _arg1; } public function get lifetime():Number{ return (((_min == _max)) ? _min : ((_max + _min) * 0.5)); } public function get maxLifetime():Number{ return (_max); } override public function initialize(_arg1:Emitter, _arg2:Particle):void{ if (isNaN(_max)){ _arg2.lifetime = _min; } else { _arg2.lifetime = (_min + (Math.random() * (_max - _min))); }; } public function set lifetime(_arg1:Number):void{ _max = (_min = _arg1); } public function set minLifetime(_arg1:Number):void{ _min = _arg1; } public function set maxLifetime(_arg1:Number):void{ _max = _arg1; } public function get minLifetime():Number{ return (_min); } } }//package org.flintparticles.common.initializers
Section 110
//ScaleImageInit (org.flintparticles.common.initializers.ScaleImageInit) package org.flintparticles.common.initializers { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; public class ScaleImageInit extends InitializerBase { private var _max:Number; private var _min:Number; public function ScaleImageInit(_arg1:Number, _arg2:Number=NaN){ _min = _arg1; if (isNaN(_arg2)){ _max = _min; } else { _max = _arg2; }; } public function get scale():Number{ return (((_min == _max)) ? _min : ((_max + _min) / 2)); } public function set maxScale(_arg1:Number):void{ _max = _arg1; } public function get maxScale():Number{ return (_max); } public function set minScale(_arg1:Number):void{ _min = _arg1; } public function set scale(_arg1:Number):void{ _max = (_min = _arg1); } override public function initialize(_arg1:Emitter, _arg2:Particle):void{ if (_max == _min){ _arg2.scale = _min; } else { _arg2.scale = (_min + (Math.random() * (_max - _min))); }; } public function get minScale():Number{ return (_min); } } }//package org.flintparticles.common.initializers
Section 111
//Particle (org.flintparticles.common.particles.Particle) package org.flintparticles.common.particles { import flash.geom.*; import flash.utils.*; public class Particle { public var energy:Number;// = 1 public var lifetime:Number;// = 0 public var scale:Number;// = 1 public var image;// = null public var color:uint;// = 4294967295 public var collisionRadius:Number;// = 1 private var _colorTransform:ColorTransform;// = null private var _previousColor:uint; public var isDead:Boolean;// = false public var mass:Number;// = 1 private var _dictionary:Dictionary;// = null public var age:Number;// = 0 public function get dictionary():Dictionary{ if (_dictionary == null){ _dictionary = new Dictionary(true); }; return (_dictionary); } public function get colorTransform():ColorTransform{ if (((!(_colorTransform)) || (!((_previousColor == color))))){ _colorTransform = new ColorTransform((((color >>> 16) & 0xFF) / 0xFF), (((color >>> 8) & 0xFF) / 0xFF), ((color & 0xFF) / 0xFF), (((color >>> 24) & 0xFF) / 0xFF), 0, 0, 0, 0); _previousColor = color; }; return (_colorTransform); } protected function cloneInto(_arg1:Particle):Particle{ var _local2:Object; _arg1.color = color; _arg1.scale = scale; _arg1.mass = mass; _arg1.collisionRadius = collisionRadius; _arg1.lifetime = lifetime; _arg1.age = age; _arg1.energy = energy; _arg1.isDead = isDead; _arg1.image = image; if (_dictionary){ _arg1._dictionary = new Dictionary(true); for (_local2 in _dictionary) { _arg1._dictionary[_local2] = _dictionary[_local2]; }; }; return (_arg1); } public function get alpha():Number{ return ((((color & 4278190080) >>> 24) / 0xFF)); } public function initialize():void{ color = 4294967295; scale = 1; mass = 1; collisionRadius = 1; lifetime = 0; age = 0; energy = 1; isDead = false; image = null; _dictionary = null; _colorTransform = null; } public function clone(_arg1:ParticleFactory=null):Particle{ var _local2:Particle; if (_arg1){ _local2 = _arg1.createParticle(); } else { _local2 = new Particle(); }; return (cloneInto(_local2)); } } }//package org.flintparticles.common.particles
Section 112
//ParticleFactory (org.flintparticles.common.particles.ParticleFactory) package org.flintparticles.common.particles { public interface ParticleFactory { function createParticle():Particle; function disposeParticle(_arg1:Particle):void; } }//package org.flintparticles.common.particles
Section 113
//Renderer (org.flintparticles.common.renderers.Renderer) package org.flintparticles.common.renderers { import org.flintparticles.common.emitters.*; public interface Renderer { function removeEmitter(_arg1:Emitter):void; function addEmitter(_arg1:Emitter):void; } }//package org.flintparticles.common.renderers
Section 114
//SpriteRendererBase (org.flintparticles.common.renderers.SpriteRendererBase) package org.flintparticles.common.renderers { import flash.events.*; import flash.display.*; import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.events.*; public class SpriteRendererBase extends Sprite implements Renderer { protected var _emitters:Array; public function SpriteRendererBase(){ _emitters = new Array(); mouseEnabled = false; mouseChildren = false; addEventListener(Event.ADDED_TO_STAGE, addedToStage, false, 0, true); } private function particleAdded(_arg1:ParticleEvent):void{ addParticle(_arg1.particle); if (stage){ stage.invalidate(); }; } private function addedToStage(_arg1:Event):void{ if (stage){ stage.invalidate(); }; } public function get emitters():Array{ return (_emitters); } protected function addParticle(_arg1:Particle):void{ } private function updateParticles(_arg1:Event):void{ var _local2:Array = new Array(); var _local3:int; while (_local3 < _emitters.length) { _local2 = _local2.concat(_emitters[_local3].particles); _local3++; }; renderParticles(_local2); } private function emitterUpdated(_arg1:EmitterEvent):void{ if (stage){ stage.invalidate(); }; } public function removeEmitter(_arg1:Emitter):void{ var _local3:Particle; var _local2:int; while (_local2 < _emitters.length) { if (_emitters[_local2] == _arg1){ _emitters.splice(_local2, 1); _arg1.removeEventListener(EmitterEvent.EMITTER_UPDATED, emitterUpdated); _arg1.removeEventListener(ParticleEvent.PARTICLE_CREATED, particleAdded); _arg1.removeEventListener(ParticleEvent.PARTICLE_ADDED, particleAdded); _arg1.removeEventListener(ParticleEvent.PARTICLE_DEAD, particleRemoved); for each (_local3 in _arg1.particles) { removeParticle(_local3); }; if (_emitters.length == 0){ removeEventListener(Event.RENDER, updateParticles); renderParticles([]); } else { stage.invalidate(); }; return; }; _local2++; }; } protected function renderParticles(_arg1:Array):void{ } protected function removeParticle(_arg1:Particle):void{ } private function particleRemoved(_arg1:ParticleEvent):void{ removeParticle(_arg1.particle); if (stage){ stage.invalidate(); }; } public function addEmitter(_arg1:Emitter):void{ var _local2:Particle; _emitters.push(_arg1); if (stage){ stage.invalidate(); }; _arg1.addEventListener(EmitterEvent.EMITTER_UPDATED, emitterUpdated, false, 0, true); _arg1.addEventListener(ParticleEvent.PARTICLE_CREATED, particleAdded, false, 0, true); _arg1.addEventListener(ParticleEvent.PARTICLE_ADDED, particleAdded, false, 0, true); _arg1.addEventListener(ParticleEvent.PARTICLE_DEAD, particleRemoved, false, 0, true); for each (_local2 in _arg1.particles) { addParticle(_local2); }; if (_emitters.length == 1){ addEventListener(Event.RENDER, updateParticles, false, 0, true); }; } } }//package org.flintparticles.common.renderers
Section 115
//construct (org.flintparticles.common.utils.construct) package org.flintparticles.common.utils { public function construct(_arg1:Class, _arg2:Array){ switch (_arg2.length){ case 0: return (new (_arg1)); case 1: return (new _arg1(_arg2[0])); case 2: return (new _arg1(_arg2[0], _arg2[1])); case 3: return (new _arg1(_arg2[0], _arg2[1], _arg2[2])); case 4: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3])); case 5: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4])); case 6: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5])); case 7: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6])); case 8: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7])); case 9: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8])); case 10: return (new _arg1(_arg2[0], _arg2[1], _arg2[2], _arg2[3], _arg2[4], _arg2[5], _arg2[6], _arg2[7], _arg2[8], _arg2[9])); default: return (null); }; } }//package org.flintparticles.common.utils
Section 116
//FrameUpdater (org.flintparticles.common.utils.FrameUpdater) package org.flintparticles.common.utils { import flash.events.*; import flash.display.*; import org.flintparticles.common.events.*; import flash.utils.*; public class FrameUpdater extends EventDispatcher { private var _shape:Shape; private var _time:Number; private static var _instance:FrameUpdater; public function FrameUpdater(){ _shape = new Shape(); _shape.addEventListener(Event.ENTER_FRAME, frameUpdate, false, 0, true); _time = getTimer(); } private function frameUpdate(_arg1:Event):void{ var _local2:int = _time; _time = getTimer(); var _local3:Number = ((_time - _local2) * 0.001); dispatchEvent(new UpdateEvent(UpdateEvent.UPDATE, _local3)); } public static function get instance():FrameUpdater{ if (_instance == null){ _instance = new (FrameUpdater); }; return (_instance); } } }//package org.flintparticles.common.utils
Section 117
//Maths (org.flintparticles.common.utils.Maths) package org.flintparticles.common.utils { public class Maths { private static const DEGTORAD:Number = 0.0174532925199433; private static const RADTODEG:Number = 57.2957795130823; public static function asRadians(_arg1:Number):Number{ return ((_arg1 * DEGTORAD)); } public static function asDegrees(_arg1:Number):Number{ return ((_arg1 * RADTODEG)); } } }//package org.flintparticles.common.utils
Section 118
//PriorityArray (org.flintparticles.common.utils.PriorityArray) package org.flintparticles.common.utils { import flash.utils.*; public class PriorityArray extends Proxy { private var _values:Array; public function PriorityArray(){ _values = new Array(); } public function remove(_arg1):Boolean{ var _local2:uint = _values.length; while (_local2--) { if (_values[_local2].value == _arg1){ _values.splice(_local2, 1); return (true); }; }; return (false); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(_arg1:int):String{ return ((_arg1 - 1).toString()); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ var _local3:uint = uint(_arg1); if ((((_local3 == _arg1)) && ((_local3 < _values.length)))){ _values[_local3].value = _arg2; }; } public function add(_arg1, _arg2:Number):uint{ var _local3:uint = _values.length; var _local4:uint; while (_local4 < _local3) { if (_values[_local4].priority < _arg2){ break; }; _local4++; }; _values.splice(_local4, 0, new Pair(_arg2, _arg1)); return (_values.length); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ var _local2:int = int(_arg1); if ((((((_local2 == _arg1)) && ((_local2 < _values.length)))) && (_values[_local2]))){ return (_values[_local2].value); }; return (undefined); } public function clear():void{ _values.length = 0; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(_arg1:int):int{ if (_arg1 < _values.length){ return ((_arg1 + 1)); }; return (0); } public function get length():uint{ return (_values.length); } public function removeAt(_arg1:uint){ var _local2:* = _values[_arg1].value; _values.splice(_arg1, 1); return (_local2); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextValue(_arg1:int){ return (_values[(_arg1 - 1)].value); } public function contains(_arg1):Boolean{ var _local2:uint = _values.length; while (_local2--) { if (_values[_local2].value == _arg1){ return (true); }; }; return (false); } } }//package org.flintparticles.common.utils class Pair { private var value; private var priority:Number; private function Pair(_arg1:Number, _arg2){ this.priority = _arg1; this.value = _arg2; } }
Section 119
//Explosion (org.flintparticles.twoD.actions.Explosion) package org.flintparticles.twoD.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.actions.*; import org.flintparticles.common.activities.*; import org.flintparticles.twoD.particles.*; public class Explosion extends ActionBase implements FrameUpdatable { private var _expansionRate:Number;// = 500 private var _radiusChange:Number;// = 0 private var _depth:Number; private var _power:Number; private var _radius:Number;// = 0 private var _updateActivity:UpdateOnFrame; private var _oldRadius:Number;// = 0 private var _epsilonSq:Number; private var _invDepth:Number; private var _x:Number; private var _y:Number; private static const POWER_FACTOR:Number = 100000; public function Explosion(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=300, _arg5:Number=10, _arg6:Number=1){ _power = (_arg1 * POWER_FACTOR); _x = _arg2; _y = _arg3; _expansionRate = _arg4; _depth = (_arg5 * 0.5); _invDepth = (1 / _depth); _epsilonSq = (_arg6 * _arg6); } public function get depth():Number{ return ((_depth * 2)); } public function get power():Number{ return ((_power / POWER_FACTOR)); } public function set power(_arg1:Number):void{ _power = (_arg1 * POWER_FACTOR); } public function set depth(_arg1:Number):void{ _depth = (_arg1 * 0.5); _invDepth = (1 / _depth); } public function get x():Number{ return (_x); } public function get y():Number{ return (_y); } override public function addedToEmitter(_arg1:Emitter):void{ _updateActivity = new UpdateOnFrame(this); _arg1.addActivity(_updateActivity); } public function set y(_arg1:Number):void{ _y = _arg1; } public function frameUpdate(_arg1:Emitter, _arg2:Number):void{ _oldRadius = _radius; _radiusChange = (_expansionRate * _arg2); _radius = (_radius + _radiusChange); } override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{ var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Number; var _local4:Particle2D = Particle2D(_arg2); var _local5:Number = (_local4.x - _x); var _local6:Number = (_local4.y - _y); var _local7:Number = ((_local5 * _local5) + (_local6 * _local6)); if (_local7 == 0){ _local7 = 0.02; _local5 = 0.1; _local6 = 0.1; }; var _local8:Number = Math.sqrt(_local7); if (_local8 < (_oldRadius - _depth)){ return; }; if (_local8 > (_radius + _depth)){ return; }; var _local9:Number = ((_local8 < _radius)) ? ((_depth - _radius) + _local8) : ((_depth - _local8) + _radius); var _local10:Number = ((_local8 < _oldRadius)) ? ((_depth - _oldRadius) + _local8) : ((_depth - _local8) + _oldRadius); _local9 = (_local9 * _invDepth); _local10 = (_local10 * _invDepth); if (_local9 < 0){ _arg3 = ((_arg3 * (_radiusChange + _local9)) / _radiusChange); _local9 = 0; }; if (_local10 < 0){ _arg3 = ((_arg3 * (_radiusChange + _local10)) / _radiusChange); _local10 = 0; }; if ((((_local8 < _oldRadius)) || ((_local8 > _radius)))){ _local11 = (((_arg3 * _power) * (_local9 + _local10)) / (((_radius * 2) * _local8) * _local4.mass)); } else { _local12 = ((1 - _local10) / _radiusChange); _local13 = (((_local12 * _arg3) * _power) * (_local10 + 1)); _local14 = ((((1 - _local12) * _arg3) * _power) * (_local9 + 1)); _local11 = ((_local13 + _local14) / (((_radius * 2) * _local8) * _local4.mass)); }; _local4.velX = (_local4.velX + (_local5 * _local11)); _local4.velY = (_local4.velY + (_local6 * _local11)); } public function set epsilon(_arg1:Number):void{ _epsilonSq = (_arg1 * _arg1); } override public function removedFromEmitter(_arg1:Emitter):void{ if (_updateActivity){ _arg1.removeActivity(_updateActivity); }; } public function get epsilon():Number{ return (Math.sqrt(_epsilonSq)); } public function set x(_arg1:Number):void{ _x = _arg1; } public function set expansionRate(_arg1:Number):void{ _expansionRate = _arg1; } public function get expansionRate():Number{ return (_expansionRate); } } }//package org.flintparticles.twoD.actions
Section 120
//Move (org.flintparticles.twoD.actions.Move) package org.flintparticles.twoD.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.actions.*; import org.flintparticles.twoD.particles.*; public class Move extends ActionBase { private var p:Particle2D; override public function getDefaultPriority():Number{ return (-10); } override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{ p = Particle2D(_arg2); p.x = (p.x + (p.velX * _arg3)); p.y = (p.y + (p.velY * _arg3)); } } }//package org.flintparticles.twoD.actions
Section 121
//RandomDrift (org.flintparticles.twoD.actions.RandomDrift) package org.flintparticles.twoD.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.actions.*; import org.flintparticles.twoD.particles.*; public class RandomDrift extends ActionBase { private var _sizeX:Number; private var _sizeY:Number; public function RandomDrift(_arg1:Number, _arg2:Number){ _sizeX = (_arg1 * 2); _sizeY = (_arg2 * 2); } override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{ var _local4:Particle2D = Particle2D(_arg2); Particle2D(_arg2).velX = (_local4.velX + (((Math.random() - 0.5) * _sizeX) * _arg3)); _local4.velY = (_local4.velY + (((Math.random() - 0.5) * _sizeY) * _arg3)); } public function get driftY():Number{ return ((_sizeY / 2)); } public function set driftY(_arg1:Number):void{ _sizeY = (_arg1 * 2); } public function set driftX(_arg1:Number):void{ _sizeX = (_arg1 * 2); } public function get driftX():Number{ return ((_sizeX / 2)); } } }//package org.flintparticles.twoD.actions
Section 122
//Rotate (org.flintparticles.twoD.actions.Rotate) package org.flintparticles.twoD.actions { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.actions.*; import org.flintparticles.twoD.particles.*; public class Rotate extends ActionBase { override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{ var _local4:Particle2D = Particle2D(_arg2); Particle2D(_arg2).rotation = (_local4.rotation + (_local4.angVelocity * _arg3)); } override public function getDefaultPriority():Number{ return (-10); } } }//package org.flintparticles.twoD.actions
Section 123
//Emitter2D (org.flintparticles.twoD.emitters.Emitter2D) package org.flintparticles.twoD.emitters { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.utils.*; import org.flintparticles.twoD.particles.*; public class Emitter2D extends Emitter { protected var _y:Number;// = 0 public var spaceSort:Boolean;// = false public var spaceSortedX:Array; protected var _x:Number;// = 0 protected var _rotation:Number;// = 0 protected static var _creator:ParticleCreator2D = new ParticleCreator2D(); public function Emitter2D(){ _particleFactory = _creator; } public function get y():Number{ return (_y); } override protected function initParticle(_arg1:Particle):void{ var _local2:Particle2D; _local2 = Particle2D(_arg1); _local2.x = _x; _local2.y = _y; _local2.rotation = _rotation; } override protected function sortParticles():void{ var _local1:int; var _local2:int; if (spaceSort){ spaceSortedX = _particles.sortOn("x", (Array.NUMERIC | Array.RETURNINDEXEDARRAY)); _local1 = _particles.length; _local2 = 0; while (_local2 < _local1) { _particles[spaceSortedX[_local2]].sortID = _local2; _local2++; }; }; } public function set x(_arg1:Number):void{ _x = _arg1; } public function set rotRadians(_arg1:Number):void{ _rotation = _arg1; } public function get x():Number{ return (_x); } public function get rotRadians():Number{ return (_rotation); } public function set rotation(_arg1:Number):void{ _rotation = Maths.asRadians(_arg1); } public function get rotation():Number{ return (Maths.asDegrees(_rotation)); } public function set y(_arg1:Number):void{ _y = _arg1; } public static function get defaultParticleFactory():ParticleFactory{ return (_creator); } } }//package org.flintparticles.twoD.emitters
Section 124
//Position (org.flintparticles.twoD.initializers.Position) package org.flintparticles.twoD.initializers { import flash.geom.*; import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.twoD.zones.*; import org.flintparticles.common.initializers.*; import org.flintparticles.twoD.particles.*; public class Position extends InitializerBase { private var _zone:Zone2D; public function Position(_arg1:Zone2D){ _zone = _arg1; } override public function initialize(_arg1:Emitter, _arg2:Particle):void{ var _local5:Number; var _local6:Number; var _local3:Particle2D = Particle2D(_arg2); var _local4:Point = _zone.getLocation(); if (_local3.rotation == 0){ _local3.x = (_local3.x + _local4.x); _local3.y = (_local3.y + _local4.y); } else { _local5 = Math.sin(_local3.rotation); _local6 = Math.cos(_local3.rotation); _local3.x = (_local3.x + ((_local6 * _local4.x) - (_local5 * _local4.y))); _local3.y = (_local3.y + ((_local6 * _local4.y) + (_local5 * _local4.x))); }; } public function set zone(_arg1:Zone2D):void{ _zone = _arg1; } public function get zone():Zone2D{ return (_zone); } } }//package org.flintparticles.twoD.initializers
Section 125
//Rotation (org.flintparticles.twoD.initializers.Rotation) package org.flintparticles.twoD.initializers { import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.common.initializers.*; import org.flintparticles.twoD.particles.*; public class Rotation extends InitializerBase { private var _max:Number; private var _min:Number; public function Rotation(_arg1:Number, _arg2:Number=NaN){ _min = _arg1; _max = _arg2; } public function get minAngle():Number{ return (_min); } public function set minAngle(_arg1:Number):void{ _min = _arg1; } public function get angle():Number{ return (((_min == _max)) ? _min : ((_max + _min) / 2)); } public function set angle(_arg1:Number):void{ _max = (_min = _arg1); } public function get maxAngle():Number{ return (_max); } override public function initialize(_arg1:Emitter, _arg2:Particle):void{ var _local3:Particle2D = Particle2D(_arg2); if (isNaN(_max)){ _local3.rotation = (_local3.rotation + _min); } else { _local3.rotation = (_local3.rotation + (_min + (Math.random() * (_max - _min)))); }; } public function set maxAngle(_arg1:Number):void{ _max = _arg1; } } }//package org.flintparticles.twoD.initializers
Section 126
//Velocity (org.flintparticles.twoD.initializers.Velocity) package org.flintparticles.twoD.initializers { import flash.geom.*; import org.flintparticles.common.emitters.*; import org.flintparticles.common.particles.*; import org.flintparticles.twoD.zones.*; import org.flintparticles.common.initializers.*; import org.flintparticles.twoD.particles.*; public class Velocity extends InitializerBase { private var _zone:Zone2D; public function Velocity(_arg1:Zone2D){ _zone = _arg1; } override public function initialize(_arg1:Emitter, _arg2:Particle):void{ var _local3:Particle2D; var _local5:Number; var _local6:Number; _local3 = Particle2D(_arg2); var _local4:Point = _zone.getLocation(); if (_local3.rotation == 0){ _local3.velX = _local4.x; _local3.velY = _local4.y; } else { _local5 = Math.sin(_local3.rotation); _local6 = Math.cos(_local3.rotation); _local3.velX = ((_local6 * _local4.x) - (_local5 * _local4.y)); _local3.velY = ((_local6 * _local4.y) + (_local5 * _local4.x)); }; } public function set zone(_arg1:Zone2D):void{ _zone = _arg1; } public function get zone():Zone2D{ return (_zone); } } }//package org.flintparticles.twoD.initializers
Section 127
//Particle2D (org.flintparticles.twoD.particles.Particle2D) package org.flintparticles.twoD.particles { import flash.geom.*; import org.flintparticles.common.particles.*; public class Particle2D extends Particle { public var sortID:int;// = -1 private var _inertia:Number; public var velY:Number;// = 0 private var _previousRadius:Number; private var _previousMass:Number; public var angVelocity:Number;// = 0 public var x:Number;// = 0 public var y:Number;// = 0 public var velX:Number;// = 0 public var rotation:Number;// = 0 override public function clone(_arg1:ParticleFactory=null):Particle{ var _local2:Particle2D; if (_arg1){ _local2 = (_arg1.createParticle() as Particle2D); } else { _local2 = new Particle2D(); }; cloneInto(_local2); _local2.x = x; _local2.y = y; _local2.velX = velX; _local2.velY = velY; _local2.rotation = rotation; _local2.angVelocity = angVelocity; return (_local2); } override public function initialize():void{ super.initialize(); x = 0; y = 0; velX = 0; velY = 0; rotation = 0; angVelocity = 0; sortID = -1; } public function get matrixTransform():Matrix{ var _local1:Number = (scale * Math.cos(rotation)); var _local2:Number = (scale * Math.sin(rotation)); return (new Matrix(_local1, _local2, -(_local2), _local1, x, y)); } public function get inertia():Number{ if (((!((mass == _previousMass))) || (!((collisionRadius == _previousRadius))))){ _inertia = (((mass * collisionRadius) * collisionRadius) * 0.5); _previousMass = mass; _previousRadius = collisionRadius; }; return (_inertia); } } }//package org.flintparticles.twoD.particles
Section 128
//ParticleCreator2D (org.flintparticles.twoD.particles.ParticleCreator2D) package org.flintparticles.twoD.particles { import org.flintparticles.common.particles.*; public class ParticleCreator2D implements ParticleFactory { private var _particles:Array; public function ParticleCreator2D(){ _particles = new Array(); } public function clearAllParticles():void{ _particles = new Array(); } public function disposeParticle(_arg1:Particle):void{ if ((_arg1 is Particle2D)){ _arg1.initialize(); _particles.push(_arg1); }; } public function createParticle():Particle{ if (_particles.length){ return (_particles.pop()); }; return (new Particle2D()); } } }//package org.flintparticles.twoD.particles
Section 129
//DisplayObjectRenderer (org.flintparticles.twoD.renderers.DisplayObjectRenderer) package org.flintparticles.twoD.renderers { import flash.display.*; import org.flintparticles.common.particles.*; import org.flintparticles.twoD.particles.*; import org.flintparticles.common.renderers.*; public class DisplayObjectRenderer extends SpriteRendererBase { override protected function removeParticle(_arg1:Particle):void{ removeChild(_arg1.image); } override protected function addParticle(_arg1:Particle):void{ addChildAt(_arg1.image, 0); } override protected function renderParticles(_arg1:Array):void{ var _local2:Particle2D; var _local3:DisplayObject; var _local4:int = _arg1.length; var _local5:int; while (_local5 < _local4) { _local2 = _arg1[_local5]; _local3 = _local2.image; _local3.transform.colorTransform = _local2.colorTransform; _local3.transform.matrix = _local2.matrixTransform; _local5++; }; } } }//package org.flintparticles.twoD.renderers
Section 130
//LineZone (org.flintparticles.twoD.zones.LineZone) package org.flintparticles.twoD.zones { import flash.geom.*; public class LineZone implements Zone2D { private var _point1:Point; private var _point2:Point; private var _length:Point; public function LineZone(_arg1:Point, _arg2:Point){ _point1 = _arg1; _point2 = _arg2; _length = _arg2.subtract(_arg1); } public function getArea():Number{ return (_length.length); } public function set point2(_arg1:Point):void{ _point2 = _arg1; _length = point2.subtract(point1); } public function get point1():Point{ return (_point1); } public function get point2():Point{ return (_point2); } public function getLocation():Point{ var _local1:Point = _point1.clone(); var _local2:Number = Math.random(); _local1.x = (_local1.x + (_length.x * _local2)); _local1.y = (_local1.y + (_length.y * _local2)); return (_local1); } public function set point1(_arg1:Point):void{ _point1 = _arg1; _length = point2.subtract(point1); } public function contains(_arg1:Number, _arg2:Number):Boolean{ if ((((_arg1 - _point1.x) * _length.y) - ((_arg2 - _point1.y) * _length.x)) != 0){ return (false); }; return (((((_arg1 - _point1.x) * (_arg1 - _point2.x)) + ((_arg2 - _point1.y) * (_arg2 - _point2.y))) <= 0)); } } }//package org.flintparticles.twoD.zones
Section 131
//PointZone (org.flintparticles.twoD.zones.PointZone) package org.flintparticles.twoD.zones { import flash.geom.*; public class PointZone implements Zone2D { private var _point:Point; public function PointZone(_arg1:Point){ _point = _arg1; } public function get point():Point{ return (_point); } public function getArea():Number{ return (1); } public function set point(_arg1:Point):void{ _point = _arg1; } public function getLocation():Point{ return (_point.clone()); } public function contains(_arg1:Number, _arg2:Number):Boolean{ return ((((_point.x == _arg1)) && ((_point.y == _arg2)))); } } }//package org.flintparticles.twoD.zones
Section 132
//RectangleZone (org.flintparticles.twoD.zones.RectangleZone) package org.flintparticles.twoD.zones { import flash.geom.*; public class RectangleZone implements Zone2D { private var _height:Number; private var _width:Number; private var _bottom:Number; private var _right:Number; private var _top:Number; private var _left:Number; public function RectangleZone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){ _left = _arg1; _top = _arg2; _right = _arg3; _bottom = _arg4; _width = (_arg3 - _arg1); _height = (_arg4 - _arg2); } public function getArea():Number{ return ((_width * _height)); } public function get top():Number{ return (_top); } public function set bottom(_arg1:Number):void{ _bottom = _arg1; _height = (bottom - top); } public function get right():Number{ return (_right); } public function set left(_arg1:Number):void{ _left = _arg1; _width = (right - left); } public function get left():Number{ return (_left); } public function set top(_arg1:Number):void{ _top = _arg1; _height = (bottom - top); } public function contains(_arg1:Number, _arg2:Number):Boolean{ return ((((((((_arg1 >= _left)) && ((_arg1 <= _right)))) && ((_arg2 >= _top)))) && ((_arg2 <= _bottom)))); } public function get bottom():Number{ return (_bottom); } public function set right(_arg1:Number):void{ _right = _arg1; _width = (right - left); } public function getLocation():Point{ return (new Point((_left + (Math.random() * _width)), (_top + (Math.random() * _height)))); } } }//package org.flintparticles.twoD.zones
Section 133
//Zone2D (org.flintparticles.twoD.zones.Zone2D) package org.flintparticles.twoD.zones { import flash.geom.*; public interface Zone2D { function getArea():Number; function getLocation():Point; function contains(_arg1:Number, _arg2:Number):Boolean; } }//package org.flintparticles.twoD.zones
Section 134
//AnnoyedFaceAsset (AnnoyedFaceAsset) package { import flash.display.*; public dynamic class AnnoyedFaceAsset extends MovieClip { } }//package
Section 135
//AtDoorAsset (AtDoorAsset) package { import flash.media.*; public dynamic class AtDoorAsset extends Sound { } }//package
Section 136
//BackgroundAsset (BackgroundAsset) package { import flash.display.*; public dynamic class BackgroundAsset extends MovieClip { public var door:BackgroundDoor; } }//package
Section 137
//BackgroundDoor (BackgroundDoor) package { import flash.display.*; public dynamic class BackgroundDoor extends MovieClip { } }//package
Section 138
//CashSoundAsset (CashSoundAsset) package { import flash.media.*; public dynamic class CashSoundAsset extends Sound { } }//package
Section 139
//CasualPoseHerSkinAsset (CasualPoseHerSkinAsset) package { import flash.display.*; public dynamic class CasualPoseHerSkinAsset extends MovieClip { } }//package
Section 140
//CasualPoseHisShirtAsset (CasualPoseHisShirtAsset) package { import flash.display.*; public dynamic class CasualPoseHisShirtAsset extends MovieClip { } }//package
Section 141
//CasualPoseHisSkinAsset (CasualPoseHisSkinAsset) package { import flash.display.*; public dynamic class CasualPoseHisSkinAsset extends MovieClip { } }//package
Section 142
//CasualPoseOverlayAsset (CasualPoseOverlayAsset) package { import flash.display.*; public dynamic class CasualPoseOverlayAsset extends MovieClip { } }//package
Section 143
//CharacteWaitingDoorHerDressAsset (CharacteWaitingDoorHerDressAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHerDressAsset extends MovieClip { } }//package
Section 144
//CharacteWaitingDoorHerHairAsset (CharacteWaitingDoorHerHairAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHerHairAsset extends MovieClip { } }//package
Section 145
//CharacteWaitingDoorHerShoesAsset (CharacteWaitingDoorHerShoesAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHerShoesAsset extends MovieClip { } }//package
Section 146
//CharacteWaitingDoorHerSkinAsset (CharacteWaitingDoorHerSkinAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHerSkinAsset extends MovieClip { } }//package
Section 147
//CharacteWaitingDoorHisHairAsset (CharacteWaitingDoorHisHairAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHisHairAsset extends MovieClip { } }//package
Section 148
//CharacteWaitingDoorHisShoesAsset (CharacteWaitingDoorHisShoesAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHisShoesAsset extends MovieClip { } }//package
Section 149
//CharacteWaitingDoorHisSkinAsset (CharacteWaitingDoorHisSkinAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHisSkinAsset extends MovieClip { } }//package
Section 150
//CharacteWaitingDoorHisTopAsset (CharacteWaitingDoorHisTopAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHisTopAsset extends MovieClip { } }//package
Section 151
//CharacteWaitingDoorHisTrousersAsset (CharacteWaitingDoorHisTrousersAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorHisTrousersAsset extends MovieClip { } }//package
Section 152
//CharacteWaitingDoorOverlayAsset (CharacteWaitingDoorOverlayAsset) package { import flash.display.*; public dynamic class CharacteWaitingDoorOverlayAsset extends MovieClip { } }//package
Section 153
//ChefAsset (ChefAsset) package { import flash.display.*; public dynamic class ChefAsset extends MovieClip { } }//package
Section 154
//Cocon (Cocon) package { import flash.text.*; public dynamic class Cocon extends Font { } }//package
Section 155
//DrinksDishAsset (DrinksDishAsset) package { import flash.display.*; public dynamic class DrinksDishAsset extends MovieClip { public function DrinksDishAsset(){ addFrameScript(0, this.frame1, 1, this.frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 156
//EatPoseHerSkinAsset (EatPoseHerSkinAsset) package { import flash.display.*; public dynamic class EatPoseHerSkinAsset extends MovieClip { } }//package
Section 157
//EatPoseHisShirtAsset (EatPoseHisShirtAsset) package { import flash.display.*; public dynamic class EatPoseHisShirtAsset extends MovieClip { } }//package
Section 158
//EatPoseHisSkinAsset (EatPoseHisSkinAsset) package { import flash.display.*; public dynamic class EatPoseHisSkinAsset extends MovieClip { } }//package
Section 159
//EatPoseOverlayAsset (EatPoseOverlayAsset) package { import flash.display.*; public dynamic class EatPoseOverlayAsset extends MovieClip { } }//package
Section 160
//FinishPoseHerSkinAsset (FinishPoseHerSkinAsset) package { import flash.display.*; public dynamic class FinishPoseHerSkinAsset extends MovieClip { } }//package
Section 161
//FinishPoseHisShirtAsset (FinishPoseHisShirtAsset) package { import flash.display.*; public dynamic class FinishPoseHisShirtAsset extends MovieClip { } }//package
Section 162
//FinishPoseHisSkinAsset (FinishPoseHisSkinAsset) package { import flash.display.*; public dynamic class FinishPoseHisSkinAsset extends MovieClip { } }//package
Section 163
//FinishPoseOverlayAsset (FinishPoseOverlayAsset) package { import flash.display.*; public dynamic class FinishPoseOverlayAsset extends MovieClip { } }//package
Section 164
//ForegroundAsset (ForegroundAsset) package { import flash.display.*; public dynamic class ForegroundAsset extends MovieClip { } }//package
Section 165
//GarbageTrayAsset (GarbageTrayAsset) package { import flash.display.*; public dynamic class GarbageTrayAsset extends MovieClip { } }//package
Section 166
//HandUpHerSkinAsset (HandUpHerSkinAsset) package { import flash.display.*; public dynamic class HandUpHerSkinAsset extends MovieClip { } }//package
Section 167
//HandUpHisShirtAsset (HandUpHisShirtAsset) package { import flash.display.*; public dynamic class HandUpHisShirtAsset extends MovieClip { } }//package
Section 168
//HandUpHisSkinAsset (HandUpHisSkinAsset) package { import flash.display.*; public dynamic class HandUpHisSkinAsset extends MovieClip { } }//package
Section 169
//HandUpOverlayAsset (HandUpOverlayAsset) package { import flash.display.*; public dynamic class HandUpOverlayAsset extends MovieClip { } }//package
Section 170
//HappyFaceAsset (HappyFaceAsset) package { import flash.display.*; public dynamic class HappyFaceAsset extends MovieClip { } }//package
Section 171
//HowToPlayGirlAsset (HowToPlayGirlAsset) package { import flash.display.*; public dynamic class HowToPlayGirlAsset extends MovieClip { } }//package
Section 172
//HowToPlayTextMask (HowToPlayTextMask) package { import flash.display.*; public dynamic class HowToPlayTextMask extends MovieClip { } }//package
Section 173
//Main (Main) package { import drimlike.data.*; import flash.display.*; import drimlike.*; import flash.text.*; import caurina.transitions.properties.*; public class Main extends Sprite { private var sandbox:Sandbox; public function Main(){ init(); } private function init():void{ ColorShortcuts.init(); CurveModifiers.init(); Font.registerFont(Cocon); Engine.getInstance().sandbox = (sandbox = new Sandbox()); addChild(sandbox); } } }//package
Section 174
//NextLevelDEAsset (NextLevelDEAsset) package { import flash.display.*; public dynamic class NextLevelDEAsset extends MovieClip { } }//package
Section 175
//NextLevelENAsset (NextLevelENAsset) package { import flash.display.*; public dynamic class NextLevelENAsset extends MovieClip { } }//package
Section 176
//NextLevelESAsset (NextLevelESAsset) package { import flash.display.*; public dynamic class NextLevelESAsset extends MovieClip { } }//package
Section 177
//NextLevelFRAsset (NextLevelFRAsset) package { import flash.display.*; public dynamic class NextLevelFRAsset extends MovieClip { } }//package
Section 178
//OrderBubbleAsset (OrderBubbleAsset) package { import flash.display.*; import flash.text.*; public dynamic class OrderBubbleAsset extends MovieClip { public var orderNumber:TextField; } }//package
Section 179
//PanelAsset (PanelAsset) package { import flash.display.*; import flash.text.*; public dynamic class PanelAsset extends MovieClip { public var star2:MovieClip; public var star3:MovieClip; public var star5:MovieClip; public var star4:MovieClip; public var total:TextField; public var currentTime:TextField; public var ObjectiveCash:TextField; public var timeRemaining:TextField; public var objective:TextField; public var currentCash:TextField; public var star1:MovieClip; } }//package
Section 180
//PastaDishAsset (PastaDishAsset) package { import flash.display.*; public dynamic class PastaDishAsset extends MovieClip { public function PastaDishAsset(){ addFrameScript(0, this.frame1, 1, this.frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 181
//PaymentSignAsset (PaymentSignAsset) package { import flash.display.*; import flash.text.*; public dynamic class PaymentSignAsset extends MovieClip { public var dolla:TextField; } }//package
Section 182
//PizzaDishAsset (PizzaDishAsset) package { import flash.display.*; public dynamic class PizzaDishAsset extends MovieClip { public function PizzaDishAsset(){ addFrameScript(0, this.frame1, 1, this.frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 183
//PlayAgainDEAsset (PlayAgainDEAsset) package { import flash.display.*; public dynamic class PlayAgainDEAsset extends MovieClip { } }//package
Section 184
//PlayAgainENAsset (PlayAgainENAsset) package { import flash.display.*; public dynamic class PlayAgainENAsset extends MovieClip { } }//package
Section 185
//PlayAgainESAsset (PlayAgainESAsset) package { import flash.display.*; public dynamic class PlayAgainESAsset extends MovieClip { } }//package
Section 186
//PlayAgainFRAsset (PlayAgainFRAsset) package { import flash.display.*; public dynamic class PlayAgainFRAsset extends MovieClip { } }//package
Section 187
//PlayButtonDEAsset (PlayButtonDEAsset) package { import flash.display.*; public dynamic class PlayButtonDEAsset extends MovieClip { } }//package
Section 188
//PlayButtonENAsset (PlayButtonENAsset) package { import flash.display.*; public dynamic class PlayButtonENAsset extends MovieClip { } }//package
Section 189
//PlayButtonESAsset (PlayButtonESAsset) package { import flash.display.*; public dynamic class PlayButtonESAsset extends MovieClip { } }//package
Section 190
//PlayButtonFRAsset (PlayButtonFRAsset) package { import flash.display.*; public dynamic class PlayButtonFRAsset extends MovieClip { } }//package
Section 191
//PlayerCleanAsset (PlayerCleanAsset) package { import flash.display.*; public dynamic class PlayerCleanAsset extends MovieClip { } }//package
Section 192
//PlayerDefaultAsset (PlayerDefaultAsset) package { import flash.display.*; public dynamic class PlayerDefaultAsset extends MovieClip { } }//package
Section 193
//PlayerRunAsset (PlayerRunAsset) package { import flash.display.*; public dynamic class PlayerRunAsset extends MovieClip { } }//package
Section 194
//PostItAsset (PostItAsset) package { import flash.display.*; import flash.text.*; public dynamic class PostItAsset extends MovieClip { public var pasta:MovieClip; public var pizza:PostItPizza; public var orderNumber:TextField; public var drink:MovieClip; } }//package
Section 195
//PostItPizza (PostItPizza) package { import flash.display.*; import flash.text.*; public dynamic class PostItPizza extends MovieClip { public var pizzaNumber:TextField; } }//package
Section 196
//Preload (Preload) package { import flash.events.*; import flash.display.*; import flash.geom.*; import caurina.transitions.*; import org.flintparticles.twoD.zones.*; import org.flintparticles.common.initializers.*; import org.flintparticles.common.actions.*; import org.flintparticles.common.counters.*; import flash.utils.*; import flash.media.*; import org.flintparticles.twoD.emitters.*; import flash.text.*; import org.flintparticles.twoD.renderers.*; import org.flintparticles.twoD.initializers.*; import org.flintparticles.twoD.actions.*; import org.flintparticles.twoD.particles.*; import flash.net.*; import flash.system.*; public class Preload extends MovieClip { private const TRACKING_KEY:String = "japaneseresto"; private var PlaySPData:Class; private var channel:SoundChannel; private var emitter2:Emitter2D; private var emitter3:Emitter2D; private var loadingText:TextField; private var sound:Sound; private var MyGames4GirlsCOMData:Class; private var emitter1:Emitter2D; private var BackgroundData:Class; private var LoadingBarData:Class; private var MyGames4GirlsDEGlintData:Class; private var MyGames4GirlsCOMGlintData:Class; private var titleHittest:Sprite; private var loadText:TextField; private var background:Sprite; private var LoadingBarHolderData:Class; private var MyGames4GirlsFRData:Class; private var loadingBar:Sprite; private var MyGames4GirlsSPData:Class; private var PlayDEData:Class; private var loadingBarHolder:Sprite; private var PlayENData:Class; private var MyGames4GirlsFRGlintData:Class; private var MyGames4GirlsSPGlintData:Class; private var Glint:Class; private var girls:Sprite; private var title:Sprite; private var BurstData:Class; private var render1:DisplayObjectRenderer; private var urlString:String; private var render2:DisplayObjectRenderer; private var Stars1Data:Class; private var glint:MovieClip; private var GirlsHeadsData:Class; private var PlayFRData:Class; private var titleGlint:MovieClip; private var MyGames4GirlsDEData:Class; private var buttonText:Sprite; public function Preload(){ var _local8:Boolean; var _local9:String; var _local10:LocalConnection; var _local11:String; var _local14:String; var _local15:String; var _local16:Number; MyGames4GirlsCOMData = Preload_MyGames4GirlsCOMData; MyGames4GirlsDEData = Preload_MyGames4GirlsDEData; MyGames4GirlsFRData = Preload_MyGames4GirlsFRData; MyGames4GirlsSPData = Preload_MyGames4GirlsSPData; MyGames4GirlsCOMGlintData = Preload_MyGames4GirlsCOMGlintData; MyGames4GirlsDEGlintData = Preload_MyGames4GirlsDEGlintData; MyGames4GirlsFRGlintData = Preload_MyGames4GirlsFRGlintData; MyGames4GirlsSPGlintData = Preload_MyGames4GirlsSPGlintData; BackgroundData = Preload_BackgroundData; GirlsHeadsData = Preload_GirlsHeadsData; LoadingBarHolderData = Preload_LoadingBarHolderData; LoadingBarData = Preload_LoadingBarData; PlayDEData = Preload_PlayDEData; PlayENData = Preload_PlayENData; PlayFRData = Preload_PlayFRData; PlaySPData = Preload_PlaySPData; Glint = Preload_Glint; BurstData = Preload_BurstData; Stars1Data = Preload_Stars1Data; super(); stop(); stage.scaleMode = StageScaleMode.SHOW_ALL; stage.align = StageAlign.TOP_LEFT; background = (new BackgroundData() as Sprite); addChild(background); emitter1 = new Emitter2D(); emitter1.counter = new Steady(20); emitter1.addInitializer(new ImageClass(Stars1Data)); var _local1:LineZone = new LineZone(new Point(110, 150), new Point(590, 150)); var _local2:Position = new Position(_local1); var _local3:Lifetime = new Lifetime(4, 8); var _local4:Rotation = new Rotation(0, 360); emitter1.addInitializer(_local3); emitter1.addInitializer(_local2); emitter1.addInitializer(_local4); emitter1.addInitializer(new Velocity(new PointZone(new Point(10, 10)))); emitter1.addInitializer(new ScaleImageInit(0.25, 1)); emitter1.addAction(new Move()); emitter1.addAction(new RandomDrift(15, 15)); emitter1.addAction(new Age()); emitter1.addAction(new Rotate()); render1 = new DisplayObjectRenderer(); addChild(render1); render1.addEmitter(emitter1); emitter1.start(); emitter1.runAhead(10); emitter2 = new Emitter2D(); emitter2.counter = new Blast(100); emitter2.addInitializer(new ImageClass(Stars1Data)); var _local5:RectangleZone = new RectangleZone((364 - 125), (390 - 25), (364 + 125), (390 + 25)); _local2 = new Position(_local5); _local3 = new Lifetime(1.6, 2.4); emitter2.addInitializer(_local3); emitter2.addInitializer(_local2); emitter2.addInitializer(_local4); emitter2.addInitializer(new Velocity(new PointZone(new Point(0, 0)))); emitter2.addInitializer(new ScaleImageInit(0.25, 1)); emitter2.addAction(new Move()); emitter2.addAction(new RandomDrift(0, 0)); emitter2.addAction(new Age()); emitter2.addAction(new Rotate()); emitter2.addAction(new Explosion(0.5, 364, 390)); emitter3 = new Emitter2D(); emitter3.counter = new Steady(20); emitter3.addInitializer(new ImageClass(Stars1Data)); _local1 = new LineZone(new Point((364 - 150), 280), new Point((364 + 150), 280)); _local2 = new Position(_local1); _local3 = new Lifetime(4, 7); _local4 = new Rotation(0, 360); emitter3.addInitializer(_local3); emitter3.addInitializer(_local2); emitter3.addInitializer(_local4); emitter3.addInitializer(new Velocity(new PointZone(new Point(10, 10)))); emitter3.addInitializer(new ScaleImageInit(0.25, 1)); emitter3.addAction(new Move()); emitter3.addAction(new RandomDrift(15, 15)); emitter3.addAction(new Age()); emitter3.addAction(new Rotate()); render2 = new DisplayObjectRenderer(); addChild(render2); render2.addEmitter(emitter3); emitter3.start(); emitter3.runAhead(10); var _local6:Array = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com"); var _local7:String = loaderInfo.url; for each (_local9 in _local6) { _local14 = _local9.toLowerCase(); _local15 = _local7.toLowerCase(); _local16 = _local15.indexOf(_local14, 0); if (_local16 != -1){ _local8 = true; }; }; _local10 = new LocalConnection(); _local11 = _local10.domain; switch (Capabilities.language){ case "fr": title = (new MyGames4GirlsFRData() as Sprite); if (_local8){ urlString = "http://www.jeux2filles.fr"; } else { urlString = ((("http://www.jeux2filles.fr/?utm_source=" + _local11) + "&utm_medium=our_games&utm_campaign=") + TRACKING_KEY); }; titleGlint = (new MyGames4GirlsFRGlintData() as MovieClip); buttonText = (new PlayFRData() as Sprite); break; case "es": title = (new MyGames4GirlsSPData() as Sprite); if (_local8){ urlString = "http://www.juegosxachicas.com"; } else { urlString = ((("http://www.juegosxachicas.com/?utm_source=" + _local11) + "&utm_medium=our_games&utm_campaign=") + TRACKING_KEY); }; titleGlint = (new MyGames4GirlsSPGlintData() as MovieClip); buttonText = (new PlaySPData() as Sprite); break; case "de": title = (new MyGames4GirlsDEData() as Sprite); if (_local8){ urlString = "http://www.mygames4girls.de"; } else { urlString = ((("http://www.mygames4girls.de/?utm_source=" + _local11) + "&utm_medium=our_games&utm_campaign=") + TRACKING_KEY); }; titleGlint = (new MyGames4GirlsDEGlintData() as MovieClip); buttonText = (new PlayDEData() as Sprite); break; default: title = (new MyGames4GirlsCOMData() as Sprite); if (_local8){ urlString = "http://www.mygames4girls.com"; } else { urlString = ((("http://www.mygames4girls.com/?utm_source=" + _local11) + "&utm_medium=our_games&utm_campaign=") + TRACKING_KEY); }; titleGlint = (new MyGames4GirlsCOMGlintData() as MovieClip); buttonText = (new PlayENData() as Sprite); break; }; title.x = 362; title.y = 147; title.mouseEnabled = false; title.mouseChildren = false; addChild(title); titleGlint.x = 362; titleGlint.y = 147; titleGlint.mouseEnabled = false; titleGlint.mouseChildren = false; addChild(titleGlint); titleHittest = new Sprite(); titleHittest.x = title.x; titleHittest.y = title.y; titleHittest.graphics.beginFill(0xFFFFFF, 0); titleHittest.graphics.drawRect((-(title.width) / 2), (-(title.height) / 2), title.width, title.height); titleHittest.buttonMode = true; titleHittest.useHandCursor = true; titleHittest.addEventListener(MouseEvent.CLICK, onTitleClick); titleHittest.addEventListener(MouseEvent.ROLL_OVER, onTitleRollOver); titleHittest.addEventListener(MouseEvent.ROLL_OUT, onTitleRollOut); addChildAt(titleHittest, 1); girls = (new GirlsHeadsData() as Sprite); girls.x = 362; girls.y = 288; girls.buttonMode = true; girls.useHandCursor = true; girls.addEventListener(MouseEvent.CLICK, onTitleClick); addChild(girls); var _local12:DisplayObjectRenderer = new DisplayObjectRenderer(); addChild(_local12); _local12.addEmitter(emitter2); loadingBarHolder = (new LoadingBarHolderData() as Sprite); loadingBarHolder.x = 194; loadingBarHolder.y = 363; addChild(loadingBarHolder); loadingBar = (new LoadingBarData() as Sprite); loadingBar.x = (loadingBarHolder.x + 6); loadingBar.y = (loadingBarHolder.y + 6); loadingBar.width = 1; addChild(loadingBar); var _local13:TextFormat = new TextFormat(); _local13.font = "Trebuchet MS"; _local13.bold = true; _local13.size = 13; _local13.color = 0xFFFFFF; loadingText = new TextField(); loadingText.defaultTextFormat = _local13; loadingText.x = loadingBar.x; loadingText.y = (loadingBar.y - 3); loadingText.autoSize = TextFieldAutoSize.LEFT; loadingText.text = ""; addChild(loadingText); sound = (new BurstData() as Sound); channel = sound.play(0); channel.stop(); addEventListener(Event.ENTER_FRAME, onEnterFrame); } private function onTitleRollOut(_arg1:MouseEvent):void{ Tweener.addTween(title, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo"}); } private function onButtonMouseOver(_arg1:MouseEvent):void{ glint.gotoAndPlay(1); } private function onEnterFrame(_arg1:Event):void{ trace("enter frame"); var _local2:int = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100)); var _local3:int = ((loadingBarHolder.width - 12) / 100); loadingBar.width = (_local2 * _local3); if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){ loadingBar.width = (loadingBarHolder.width - 12); loadingText.visible = false; removeEventListener(Event.ENTER_FRAME, onEnterFrame); convertToButton(); }; if (loadingText != null){ if (_local2 > 10){ loadingText.x = ((loadingBar.width + loadingBar.x) - 40); }; loadingText.text = (String(_local2) + "%"); }; } private function onButtonMouseClick(_arg1:MouseEvent):void{ nextFrame(); var _local2:Class = (getDefinitionByName("Main") as Class); addChild((new (_local2) as DisplayObject)); emitter1.stop(); emitter2.stop(); emitter3.stop(); ParticleCreator2D(emitter1.particleFactory).clearAllParticles(); ParticleCreator2D(emitter2.particleFactory).clearAllParticles(); ParticleCreator2D(emitter3.particleFactory).clearAllParticles(); render1.removeEmitter(emitter1); render1.removeEmitter(emitter2); render2.removeEmitter(emitter3); removeChild(render1); removeChild(render2); removeChild(title); removeChild(girls); removeChild(loadingBar); removeChild(loadingBarHolder); removeChild(background); removeChild(buttonText); removeChild(loadingText); removeChild(glint); removeChild(titleGlint); title = null; girls = null; loadingBar = null; loadingBarHolder = null; background = null; buttonText = null; loadingText = null; glint = null; render1 = null; render2 = null; titleGlint = null; emitter1 = null; emitter2 = null; emitter3 = null; } private function addGlint():void{ channel = sound.play(0, 0); emitter2.start(); glint = (new Glint() as MovieClip); glint.gotoAndStop(0); glint.x = (728 / 2); glint.y = (loadingBar.y + 25); glint.mouseEnabled = false; glint.mouseChildren = false; addChild(glint); } private function onTitleRollOver(_arg1:MouseEvent):void{ Tweener.addTween(title, {scaleX:1.1, scaleY:1.1, time:0.5, transition:"easeOutExpo"}); } private function onTitleClick(_arg1:MouseEvent):void{ var _local2:URLRequest = new URLRequest(urlString); navigateToURL(_local2, "_blank"); } private function convertToButton():void{ Tweener.addTween(loadingBarHolder, {width:262, x:232, height:60, time:1, transition:"easeOutElastic"}); Tweener.addTween(loadingBar, {width:250, x:238, height:48, time:1, transition:"easeOutElastic", onComplete:addGlint()}); loadingBarHolder.mouseEnabled = false; loadingBarHolder.mouseChildren = false; loadingBar.buttonMode = true; loadingBar.useHandCursor = true; loadingBar.addEventListener(MouseEvent.MOUSE_OVER, onButtonMouseOver); loadingBar.addEventListener(MouseEvent.MOUSE_OUT, onButtonMouseOut); loadingBar.addEventListener(MouseEvent.CLICK, onButtonMouseClick); buttonText.x = 364; buttonText.y = loadingBar.y; buttonText.alpha = 0; buttonText.mouseEnabled = false; buttonText.mouseChildren = false; addChild(buttonText); Tweener.addTween(buttonText, {y:(buttonText.y + 25), time:0.5, alpha:1, transition:"easeOutExpo"}); } private function onButtonMouseOut(_arg1:MouseEvent):void{ if (glint != null){ glint.gotoAndStop(0); }; } } }//package
Section 197
//Preload_BackgroundData (Preload_BackgroundData) package { import mx.core.*; public class Preload_BackgroundData extends SpriteAsset { } }//package
Section 198
//Preload_BurstData (Preload_BurstData) package { import mx.core.*; public class Preload_BurstData extends SoundAsset { } }//package
Section 199
//Preload_GirlsHeadsData (Preload_GirlsHeadsData) package { import mx.core.*; public class Preload_GirlsHeadsData extends SpriteAsset { } }//package
Section 200
//Preload_Glint (Preload_Glint) package { import mx.core.*; public class Preload_Glint extends MovieClipAsset { } }//package
Section 201
//Preload_LoadingBarData (Preload_LoadingBarData) package { import mx.core.*; public class Preload_LoadingBarData extends SpriteAsset { } }//package
Section 202
//Preload_LoadingBarHolderData (Preload_LoadingBarHolderData) package { import mx.core.*; public class Preload_LoadingBarHolderData extends SpriteAsset { } }//package
Section 203
//Preload_MyGames4GirlsCOMData (Preload_MyGames4GirlsCOMData) package { import mx.core.*; public class Preload_MyGames4GirlsCOMData extends SpriteAsset { } }//package
Section 204
//Preload_MyGames4GirlsCOMGlintData (Preload_MyGames4GirlsCOMGlintData) package { import mx.core.*; public class Preload_MyGames4GirlsCOMGlintData extends MovieClipAsset { } }//package
Section 205
//Preload_MyGames4GirlsDEData (Preload_MyGames4GirlsDEData) package { import mx.core.*; public class Preload_MyGames4GirlsDEData extends SpriteAsset { } }//package
Section 206
//Preload_MyGames4GirlsDEGlintData (Preload_MyGames4GirlsDEGlintData) package { import mx.core.*; public class Preload_MyGames4GirlsDEGlintData extends MovieClipAsset { } }//package
Section 207
//Preload_MyGames4GirlsFRData (Preload_MyGames4GirlsFRData) package { import mx.core.*; public class Preload_MyGames4GirlsFRData extends SpriteAsset { } }//package
Section 208
//Preload_MyGames4GirlsFRGlintData (Preload_MyGames4GirlsFRGlintData) package { import mx.core.*; public class Preload_MyGames4GirlsFRGlintData extends MovieClipAsset { } }//package
Section 209
//Preload_MyGames4GirlsSPData (Preload_MyGames4GirlsSPData) package { import mx.core.*; public class Preload_MyGames4GirlsSPData extends SpriteAsset { } }//package
Section 210
//Preload_MyGames4GirlsSPGlintData (Preload_MyGames4GirlsSPGlintData) package { import mx.core.*; public class Preload_MyGames4GirlsSPGlintData extends MovieClipAsset { } }//package
Section 211
//Preload_PlayDEData (Preload_PlayDEData) package { import mx.core.*; public class Preload_PlayDEData extends SpriteAsset { } }//package
Section 212
//Preload_PlayENData (Preload_PlayENData) package { import mx.core.*; public class Preload_PlayENData extends SpriteAsset { } }//package
Section 213
//Preload_PlayFRData (Preload_PlayFRData) package { import mx.core.*; public class Preload_PlayFRData extends SpriteAsset { } }//package
Section 214
//Preload_PlaySPData (Preload_PlaySPData) package { import mx.core.*; public class Preload_PlaySPData extends SpriteAsset { } }//package
Section 215
//Preload_Stars1Data (Preload_Stars1Data) package { import mx.core.*; public class Preload_Stars1Data extends SpriteAsset { } }//package
Section 216
//ScreenBackgroundAsset (ScreenBackgroundAsset) package { import flash.display.*; public dynamic class ScreenBackgroundAsset extends MovieClip { } }//package
Section 217
//StandardFaceAsset (StandardFaceAsset) package { import flash.display.*; public dynamic class StandardFaceAsset extends MovieClip { } }//package
Section 218
//TableAsset (TableAsset) package { import flash.display.*; public dynamic class TableAsset extends MovieClip { } }//package
Section 219
//TableButtonAsset (TableButtonAsset) package { import flash.display.*; public dynamic class TableButtonAsset extends MovieClip { } }//package
Section 220
//TableCharacterDefaultHerDressAsset (TableCharacterDefaultHerDressAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHerDressAsset extends MovieClip { } }//package
Section 221
//TableCharacterDefaultHerHairAsset (TableCharacterDefaultHerHairAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHerHairAsset extends MovieClip { } }//package
Section 222
//TableCharacterDefaultHerShoeAsset (TableCharacterDefaultHerShoeAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHerShoeAsset extends MovieClip { } }//package
Section 223
//TableCharacterDefaultHerSkinAsset (TableCharacterDefaultHerSkinAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHerSkinAsset extends MovieClip { } }//package
Section 224
//TableCharacterDefaultHisHairAsset (TableCharacterDefaultHisHairAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHisHairAsset extends MovieClip { } }//package
Section 225
//TableCharacterDefaultHisShoeAsset (TableCharacterDefaultHisShoeAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHisShoeAsset extends MovieClip { } }//package
Section 226
//TableCharacterDefaultHisSkinAsset (TableCharacterDefaultHisSkinAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHisSkinAsset extends MovieClip { } }//package
Section 227
//TableCharacterDefaultHisTopAsset (TableCharacterDefaultHisTopAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHisTopAsset extends MovieClip { } }//package
Section 228
//TableCharacterDefaultHisTrousersAsset (TableCharacterDefaultHisTrousersAsset) package { import flash.display.*; public dynamic class TableCharacterDefaultHisTrousersAsset extends MovieClip { } }//package
Section 229
//TableCharacterOverlayAsset (TableCharacterOverlayAsset) package { import flash.display.*; public dynamic class TableCharacterOverlayAsset extends MovieClip { } }//package
Section 230
//TableMenuAsset (TableMenuAsset) package { import flash.display.*; public dynamic class TableMenuAsset extends MovieClip { } }//package
Section 231
//ThemeSoundAsset (ThemeSoundAsset) package { import flash.media.*; public dynamic class ThemeSoundAsset extends Sound { } }//package
Section 232
//WhistleSoundAsset (WhistleSoundAsset) package { import flash.media.*; public dynamic class WhistleSoundAsset extends Sound { } }//package
Section 233
//WhooshSoundAsset (WhooshSoundAsset) package { import flash.media.*; public dynamic class WhooshSoundAsset extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip {Preload_LoadingBarHolderData} [LoadingBarHolder]Uses:1
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip {Preload_PlayFRData} [PlayFR]Uses:3
Symbol 5 GraphicUsed by:8
Symbol 6 GraphicUsed by:7 20 46 50 61
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClip {Preload_Glint} [Glint]Uses:5 7
Symbol 9 GraphicUsed by:16
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:16
Symbol 12 GraphicUsed by:16
Symbol 13 GraphicUsed by:14 54
Symbol 14 MovieClipUses:13Used by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip {Preload_MyGames4GirlsSPData} [MyGames4GirlsSP]Uses:9 11 12 14 15
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClip {Preload_GirlsHeadsData} [GirlsHeads]Uses:17
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip {Preload_MyGames4GirlsSPGlintData} [MyGames4GirlsSPGlint]Uses:19 6
Symbol 21 BitmapUsed by:22
Symbol 22 GraphicUses:21Used by:25
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:23Used by:25
Symbol 25 MovieClip {Preload_Stars1Data} [Stars2]Uses:22 24
Symbol 26 GraphicUsed by:33
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:27Used by:33
Symbol 29 GraphicUsed by:33
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:30Used by:33
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClip {Preload_MyGames4GirlsDEData} [MyGames4GirlsDE]Uses:26 28 29 31 32
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClip {Preload_BackgroundData} [background]Uses:34
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClip {Preload_PlayDEData} [PlayDE]Uses:36
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip {Preload_PlaySPData} [PlaySP]Uses:38
Symbol 40 GraphicUsed by:44
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:44
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClip {Preload_MyGames4GirlsFRData} [MyGames4GirlsFR]Uses:40 42 43
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClip {Preload_MyGames4GirlsFRGlintData} [MyGames4GirlsFRGlint]Uses:45 6
Symbol 47 GraphicUsed by:48
Symbol 48 MovieClip {Preload_LoadingBarData} [LoadingBar]Uses:47
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClip {Preload_MyGames4GirlsCOMGlintData} [MyGames4GirlsCOMGlint]Uses:49 6
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClip {Preload_PlayENData} [PlayEN]Uses:51
Symbol 53 GraphicUsed by:59
Symbol 54 MovieClipUses:13Used by:59
Symbol 55 GraphicUsed by:59
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:59
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClip {Preload_MyGames4GirlsCOMData} [MyGames4GirlsCOM]Uses:53 54 55 57 58
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClip {Preload_MyGames4GirlsDEGlintData} [MyGames4GirlsDEGlint]Uses:60 6
Symbol 62 Sound {Preload_BurstData} [Burst.mp3]
Symbol 63 Font {Cocon} [Cocon]Used by:131 134 142 145 199 200 204 206 242
Symbol 64 ShapeTweeningUsed by:67
Symbol 65 ShapeTweeningUsed by:67
Symbol 66 GraphicUsed by:67
Symbol 67 MovieClip {drimlike.xml.XMLFeed_XMLFeedHighlight} [XMLFeedHighlight]Uses:64 65 66
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClip {drimlike.xml.XMLFeed_XMLFeedMask} [XMLFeedMask]Uses:68
Symbol 70 GraphicUsed by:75
Symbol 71 GraphicUsed by:75
Symbol 72 GraphicUsed by:75
Symbol 73 GraphicUsed by:75
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClip {drimlike.xml.XMLFeed_XMLFeedIcon} [XMLFeedIcon]Uses:70 71 72 73 74
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClip {drimlike.xml.XMLFeed_XMLFeedButton} [XMLFeedButton]Uses:76
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClip {ForegroundAsset} [ForegroundAsset]Uses:78
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClip {BackgroundDoor} [BackgroundDoor]Uses:81Used by:83
Symbol 83 MovieClip {BackgroundAsset} [BackgroundAsset]Uses:80 82
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClip {drimlike.xml.XMLRotator_XMLRotatorBackground} [XMLRotatorBackground]Uses:84
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClip {drimlike.xml.XMLRotator_XMLRotatorGirls} [XMLRotatorGirls]Uses:86
Symbol 88 Sound {WhooshSoundAsset} [WhooshSoundAsset]
Symbol 89 Sound {CashSoundAsset} [CashSoundAsset]
Symbol 90 Sound {ThemeSoundAsset} [ThemeSoundAsset]
Symbol 91 Sound {AtDoorAsset} [AtDoorAsset]
Symbol 92 Sound {WhistleSoundAsset} [WhistleSoundAsset]
Symbol 93 GraphicUsed by:94
Symbol 94 MovieClip {PlayButtonDEAsset} [PlayButtonDEAsset]Uses:93
Symbol 95 GraphicUsed by:98
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClipUses:96Used by:98
Symbol 98 MovieClip {HowToPlayGirlAsset} [HowToPlayGirlAsset]Uses:95 97
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClip {PlayButtonESAsset} [PlayButtonESAsset]Uses:99
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClip {ScreenBackgroundAsset} [ScreenBackgroundAsset]Uses:102
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {HowToPlayTextMask} [HowToPlayTextMask]Uses:104
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClip {PlayButtonENAsset} [PlayButtonENAsset]Uses:106
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClip {PlayButtonFRAsset} [PlayButtonFRAsset]Uses:108
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClip {NextLevelFRAsset} [NextLevelFRAsset]Uses:110
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClip {NextLevelESAsset} [NextLevelESAsset]Uses:112
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClip {NextLevelENAsset} [NextLevelENAsset]Uses:114
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClip {NextLevelDEAsset} [NextLevelDEAsset]Uses:116
Symbol 118 GraphicUsed by:119
Symbol 119 MovieClip {PlayAgainENAsset} [PlayAgainENAsset]Uses:118
Symbol 120 GraphicUsed by:121
Symbol 121 MovieClip {PlayAgainFRAsset} [PlayAgainFRAsset]Uses:120
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClip {PlayAgainDEAsset} [PlayAgainDEAsset]Uses:122
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClip {PlayAgainESAsset} [PlayAgainESAsset]Uses:124
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClip {drimlike.sound.SoundButton_SoundOnData} [SoundOn]Uses:126
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClip {drimlike.sound.SoundButton_SoundOffData} [SoundOff]Uses:128
Symbol 130 GraphicUsed by:132
Symbol 131 TextUses:63Used by:132
Symbol 132 MovieClip {drimlike.ui.SandboxMoreGames_MoreGamesSpData} [MoreGamesSp]Uses:130 131
Symbol 133 GraphicUsed by:135
Symbol 134 TextUses:63Used by:135
Symbol 135 MovieClip {drimlike.ui.SandboxMoreGames_MoreGamesEnData} [MoreGamesEn]Uses:133 134
Symbol 136 GraphicUsed by:138
Symbol 137 GraphicUsed by:138 148 152 165 167 232
Symbol 138 MovieClip {drimlike.ui.SandboxMoreGames_SandboxPrintGlintData} [SandboxPrintGlint]Uses:136 137
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClip {drimlike.ui.SandboxMoreGames_SandboxPrintButtonData} [SandboxPrintButton]Uses:139
Symbol 141 GraphicUsed by:143
Symbol 142 TextUses:63Used by:143
Symbol 143 MovieClip {drimlike.ui.SandboxMoreGames_MoreGamesFrData} [MoreGamesFr]Uses:141 142
Symbol 144 GraphicUsed by:146
Symbol 145 TextUses:63Used by:146
Symbol 146 MovieClip {drimlike.ui.SandboxMoreGames_MoreGamesDeData} [MoreGamesDe]Uses:144 145
Symbol 147 GraphicUsed by:148
Symbol 148 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsSPGlintData} [MyGamesForGirlsSPGlint]Uses:147 137
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsDEData} [MyGamesForGirlsDE]Uses:149
Symbol 151 GraphicUsed by:152
Symbol 152 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsDEGlintData} [MyGamesForGirlsDEGlint]Uses:151 137
Symbol 153 Sound {drimlike.ui.MyGamesForGirls_DefaultSoundData} [DefaultButton.mp3]
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsFRData} [MyGamesForGirlsFR]Uses:154
Symbol 156 GraphicUsed by:163
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClipUses:157Used by:163
Symbol 159 GraphicUsed by:163
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClipUses:160Used by:163
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsSPData} [MyGamesForGirlsSP]Uses:156 158 159 161 162
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsComGlintData} [MyGamesForGirlsCOMGlint]Uses:164 137
Symbol 166 GraphicUsed by:167
Symbol 167 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsFRGlintData} [MyGamesForGirlsFRGlint]Uses:166 137
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClip {drimlike.ui.MyGamesForGirls_MyGamesForGirlsComData} [MyGamesForGirlsCOM]Uses:168
Symbol 170 GraphicUsed by:171
Symbol 171 MovieClip {CharacteWaitingDoorHisSkinAsset} [CharacteWaitingDoorHisSkinAsset]Uses:170
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClip {CharacteWaitingDoorHisTrousersAsset} [CharacteWaitingDoorHisTrousersAsset]Uses:172
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClip {CharacteWaitingDoorHerDressAsset} [CharacteWaitingDoorHerDressAsset]Uses:174
Symbol 176 GraphicUsed by:177
Symbol 177 MovieClip {CharacteWaitingDoorHisTopAsset} [CharacteWaitingDoorHisTopAsset]Uses:176
Symbol 178 GraphicUsed by:179
Symbol 179 MovieClip {CharacteWaitingDoorHerHairAsset} [CharacteWaitingDoorHerHairAsset]Uses:178
Symbol 180 GraphicUsed by:181
Symbol 181 MovieClip {CharacteWaitingDoorHerShoesAsset} [CharacteWaitingDoorHerShoesAsset]Uses:180
Symbol 182 GraphicUsed by:183
Symbol 183 MovieClip {CharacteWaitingDoorHerSkinAsset} [CharacteWaitingDoorHerSkinAsset]Uses:182
Symbol 184 GraphicUsed by:185
Symbol 185 MovieClip {CharacteWaitingDoorHisHairAsset} [CharacteWaitingDoorHisHairAsset]Uses:184
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClip {CharacteWaitingDoorHisShoesAsset} [CharacteWaitingDoorHisShoesAsset]Uses:186
Symbol 188 GraphicUsed by:189
Symbol 189 MovieClip {CharacteWaitingDoorOverlayAsset} [CharacteWaitingDoorOverlayAsset]Uses:188
Symbol 190 GraphicUsed by:212
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:212
Symbol 193 GraphicUsed by:212
Symbol 194 GraphicUsed by:195 197 240
Symbol 195 MovieClipUses:194Used by:212
Symbol 196 GraphicUsed by:212
Symbol 197 MovieClipUses:194Used by:212
Symbol 198 GraphicUsed by:212
Symbol 199 EditableTextUses:63Used by:212
Symbol 200 EditableTextUses:63Used by:212
Symbol 201 FontUsed by:202 203 325
Symbol 202 EditableTextUses:201Used by:212
Symbol 203 EditableTextUses:201Used by:212
Symbol 204 EditableTextUses:63Used by:212
Symbol 205 GraphicUsed by:212
Symbol 206 TextUses:63Used by:212
Symbol 207 GraphicUsed by:212
Symbol 208 GraphicUsed by:209
Symbol 209 MovieClipUses:208Used by:211
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClip {assets_fla.PanelStar_46} [assets_fla.PanelStar_46]Uses:209 210Used by:212
Symbol 212 MovieClip {PanelAsset} [PanelAsset]Uses:190 192 193 195 196 197 198 199 200 202 203 204 205 206 207 211
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClip {ChefAsset} [ChefAsset]Uses:213
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClipUses:215Used by:218
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClip {GarbageTrayAsset} [GarbageTrayAsset]Uses:216 217
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClip {TableAsset} [TableAsset]Uses:219
Symbol 221 GraphicUsed by:222
Symbol 222 MovieClip {TableButtonAsset} [TableButtonAsset]Uses:221
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClip {PlayerDefaultAsset} [PlayerDefaultAsset]Uses:223
Symbol 225 GraphicUsed by:226
Symbol 226 MovieClip {PlayerRunAsset} [PlayerRunAsset]Uses:225
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClip {PlayerCleanAsset} [PlayerCleanAsset]Uses:227
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClip {drimlike.xml.XMLRotatorButtonLeft_XMLRotatorLeft} [XMLRotatorLeft]Uses:229
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClip {drimlike.xml.XMLRotatorItem_XMLRotatorMask} [XMLRotatorMask]Uses:231 137
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClip {drimlike.xml.XMLRotatorButtonLeft_XMLRotatorButtonHighlight} [XMLRotatorButtonHighlight]Uses:233
Symbol 235 GraphicUsed by:236
Symbol 236 MovieClip {drimlike.xml.XMLRotatorButtonRight_XMLRotatorRight} [XMLRotatorRight]Uses:235
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:237Used by:255
Symbol 239 GraphicUsed by:255
Symbol 240 MovieClipUses:194Used by:255
Symbol 241 GraphicUsed by:255
Symbol 242 EditableTextUses:63Used by:250 252 254 255 324
Symbol 243 GraphicUsed by:250 252 254
Symbol 244 GraphicUsed by:250 258
Symbol 245 GraphicUsed by:246
Symbol 246 MovieClipUses:245Used by:250 258
Symbol 247 GraphicUsed by:250
Symbol 248 GraphicUsed by:249
Symbol 249 MovieClipUses:248Used by:250 258
Symbol 250 MovieClipUses:243 242 244 246 247 249Used by:255
Symbol 251 GraphicUsed by:252
Symbol 252 MovieClipUses:243 242 251Used by:255
Symbol 253 GraphicUsed by:254
Symbol 254 MovieClip {PostItPizza} [PostItPizza]Uses:243 242 253Used by:255
Symbol 255 MovieClip {PostItAsset} [PostItAsset]Uses:238 239 240 241 242 250 252 254
Symbol 256 GraphicUsed by:258
Symbol 257 GraphicUsed by:258
Symbol 258 MovieClip {DrinksDishAsset} [DrinksDishAsset]Uses:244 246 256 249 257
Symbol 259 GraphicUsed by:261
Symbol 260 GraphicUsed by:261
Symbol 261 MovieClip {PizzaDishAsset} [PizzaDishAsset]Uses:259 260
Symbol 262 GraphicUsed by:264
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClip {PastaDishAsset} [PastaDishAsset]Uses:262 263
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClip {TableCharacterDefaultHerHairAsset} [TableCharacterDefaultHerHairAsset]Uses:265
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClip {EatPoseOverlayAsset} [EatPoseOverlayAsset]Uses:267
Symbol 269 GraphicUsed by:270
Symbol 270 MovieClip {FinishPoseOverlayAsset} [FinishPoseOverlayAsset]Uses:269
Symbol 271 GraphicUsed by:272
Symbol 272 MovieClip {HandUpHisSkinAsset} [HandUpHisSkinAsset]Uses:271
Symbol 273 GraphicUsed by:274
Symbol 274 MovieClip {TableCharacterDefaultHerShoeAsset} [TableCharacterDefaultHerShoeAsset]Uses:273
Symbol 275 GraphicUsed by:276
Symbol 276 MovieClip {HandUpHisShirtAsset} [HandUpHisShirtAsset]Uses:275
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClip {TableCharacterDefaultHisTrousersAsset} [TableCharacterDefaultHisTrousersAsset]Uses:277
Symbol 279 GraphicUsed by:280
Symbol 280 MovieClip {EatPoseHisSkinAsset} [EatPoseHisSkinAsset]Uses:279
Symbol 281 GraphicUsed by:282
Symbol 282 MovieClip {EatPoseHisShirtAsset} [EatPoseHisShirtAsset]Uses:281
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClip {TableCharacterDefaultHisTopAsset} [TableCharacterDefaultHisTopAsset]Uses:283
Symbol 285 GraphicUsed by:286
Symbol 286 MovieClip {HandUpHerSkinAsset} [HandUpHerSkinAsset]Uses:285
Symbol 287 GraphicUsed by:288
Symbol 288 MovieClip {TableCharacterOverlayAsset} [TableCharacterOverlayAsset]Uses:287
Symbol 289 GraphicUsed by:290
Symbol 290 MovieClip {CasualPoseOverlayAsset} [CasualPoseOverlayAsset]Uses:289
Symbol 291 GraphicUsed by:292
Symbol 292 MovieClip {TableCharacterDefaultHerSkinAsset} [TableCharacterDefaultHerSkinAsset]Uses:291
Symbol 293 GraphicUsed by:294
Symbol 294 MovieClip {FinishPoseHerSkinAsset} [FinishPoseHerSkinAsset]Uses:293
Symbol 295 GraphicUsed by:296
Symbol 296 MovieClip {HandUpOverlayAsset} [HandUpOverlayAsset]Uses:295
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClip {TableCharacterDefaultHisSkinAsset} [TableCharacterDefaultHisSkinAsset]Uses:297
Symbol 299 GraphicUsed by:300
Symbol 300 MovieClip {FinishPoseHisShirtAsset} [FinishPoseHisShirtAsset]Uses:299
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClip {TableCharacterDefaultHisShoeAsset} [TableCharacterDefaultHisShoeAsset]Uses:301
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClip {CasualPoseHisSkinAsset} [CasualPoseHisSkinAsset]Uses:303
Symbol 305 GraphicUsed by:306
Symbol 306 MovieClip {EatPoseHerSkinAsset} [EatPoseHerSkinAsset]Uses:305
Symbol 307 GraphicUsed by:308
Symbol 308 MovieClip {TableCharacterDefaultHerDressAsset} [TableCharacterDefaultHerDressAsset]Uses:307
Symbol 309 GraphicUsed by:310
Symbol 310 MovieClip {FinishPoseHisSkinAsset} [FinishPoseHisSkinAsset]Uses:309
Symbol 311 GraphicUsed by:312
Symbol 312 MovieClip {CasualPoseHerSkinAsset} [CasualPoseHerSkinAsset]Uses:311
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClip {TableCharacterDefaultHisHairAsset} [TableCharacterDefaultHisHairAsset]Uses:313
Symbol 315 GraphicUsed by:316
Symbol 316 MovieClip {CasualPoseHisShirtAsset} [CasualPoseHisShirtAsset]Uses:315
Symbol 317 GraphicUsed by:318
Symbol 318 MovieClip {AnnoyedFaceAsset} [AnnoyedFaceAsset]Uses:317
Symbol 319 GraphicUsed by:320
Symbol 320 MovieClip {HappyFaceAsset} [HappyFaceAsset]Uses:319
Symbol 321 GraphicUsed by:322
Symbol 322 MovieClip {StandardFaceAsset} [StandardFaceAsset]Uses:321
Symbol 323 GraphicUsed by:324
Symbol 324 MovieClip {OrderBubbleAsset} [OrderBubbleAsset]Uses:323 242
Symbol 325 EditableTextUses:201Used by:326
Symbol 326 MovieClip {PaymentSignAsset} [PaymentSignAsset]Uses:325
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClip {TableMenuAsset} [TableMenuAsset]Uses:327

Instance Names

"door"Symbol 83 MovieClip {BackgroundAsset} [BackgroundAsset] Frame 1Symbol 82 MovieClip {BackgroundDoor} [BackgroundDoor]
"objective"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 199 EditableText
"timeRemaining"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 200 EditableText
"ObjectiveCash"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 202 EditableText
"currentCash"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 202 EditableText
"currentTime"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 203 EditableText
"total"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 204 EditableText
"star1"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 211 MovieClip {assets_fla.PanelStar_46} [assets_fla.PanelStar_46]
"star2"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 211 MovieClip {assets_fla.PanelStar_46} [assets_fla.PanelStar_46]
"star3"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 211 MovieClip {assets_fla.PanelStar_46} [assets_fla.PanelStar_46]
"star4"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 211 MovieClip {assets_fla.PanelStar_46} [assets_fla.PanelStar_46]
"star5"Symbol 212 MovieClip {PanelAsset} [PanelAsset] Frame 1Symbol 211 MovieClip {assets_fla.PanelStar_46} [assets_fla.PanelStar_46]
"drinkNumber"Symbol 250 MovieClip Frame 1Symbol 242 EditableText
"pastaNumber"Symbol 252 MovieClip Frame 1Symbol 242 EditableText
"pizzaNumber"Symbol 254 MovieClip {PostItPizza} [PostItPizza] Frame 1Symbol 242 EditableText
"orderNumber"Symbol 255 MovieClip {PostItAsset} [PostItAsset] Frame 1Symbol 242 EditableText
"drink"Symbol 255 MovieClip {PostItAsset} [PostItAsset] Frame 1Symbol 250 MovieClip
"pasta"Symbol 255 MovieClip {PostItAsset} [PostItAsset] Frame 1Symbol 252 MovieClip
"pizza"Symbol 255 MovieClip {PostItAsset} [PostItAsset] Frame 1Symbol 254 MovieClip {PostItPizza} [PostItPizza]
"orderNumber"Symbol 324 MovieClip {OrderBubbleAsset} [OrderBubbleAsset] Frame 1Symbol 242 EditableText
"dolla"Symbol 326 MovieClip {PaymentSignAsset} [PaymentSignAsset] Frame 1Symbol 325 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1458 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 1Symbol 2 as "LoadingBarHolder"
ExportAssets (56)Timeline Frame 1Symbol 4 as "PlayFR"
ExportAssets (56)Timeline Frame 1Symbol 8 as "Glint"
ExportAssets (56)Timeline Frame 1Symbol 16 as "MyGames4GirlsSP"
ExportAssets (56)Timeline Frame 1Symbol 18 as "GirlsHeads"
ExportAssets (56)Timeline Frame 1Symbol 20 as "MyGames4GirlsSPGlint"
ExportAssets (56)Timeline Frame 1Symbol 25 as "Stars2"
ExportAssets (56)Timeline Frame 1Symbol 33 as "MyGames4GirlsDE"
ExportAssets (56)Timeline Frame 1Symbol 35 as "background"
ExportAssets (56)Timeline Frame 1Symbol 37 as "PlayDE"
ExportAssets (56)Timeline Frame 1Symbol 39 as "PlaySP"
ExportAssets (56)Timeline Frame 1Symbol 44 as "MyGames4GirlsFR"
ExportAssets (56)Timeline Frame 1Symbol 46 as "MyGames4GirlsFRGlint"
ExportAssets (56)Timeline Frame 1Symbol 48 as "LoadingBar"
ExportAssets (56)Timeline Frame 1Symbol 50 as "MyGames4GirlsCOMGlint"
ExportAssets (56)Timeline Frame 1Symbol 52 as "PlayEN"
ExportAssets (56)Timeline Frame 1Symbol 59 as "MyGames4GirlsCOM"
ExportAssets (56)Timeline Frame 1Symbol 61 as "MyGames4GirlsDEGlint"
ExportAssets (56)Timeline Frame 1Symbol 62 as "Burst.mp3"
ExportAssets (56)Timeline Frame 2Symbol 63 as "Cocon"
ExportAssets (56)Timeline Frame 2Symbol 67 as "XMLFeedHighlight"
ExportAssets (56)Timeline Frame 2Symbol 69 as "XMLFeedMask"
ExportAssets (56)Timeline Frame 2Symbol 75 as "XMLFeedIcon"
ExportAssets (56)Timeline Frame 2Symbol 77 as "XMLFeedButton"
ExportAssets (56)Timeline Frame 2Symbol 79 as "ForegroundAsset"
ExportAssets (56)Timeline Frame 2Symbol 83 as "BackgroundAsset"
ExportAssets (56)Timeline Frame 2Symbol 85 as "XMLRotatorBackground"
ExportAssets (56)Timeline Frame 2Symbol 87 as "XMLRotatorGirls"
ExportAssets (56)Timeline Frame 2Symbol 88 as "WhooshSoundAsset"
ExportAssets (56)Timeline Frame 2Symbol 89 as "CashSoundAsset"
ExportAssets (56)Timeline Frame 2Symbol 90 as "ThemeSoundAsset"
ExportAssets (56)Timeline Frame 2Symbol 91 as "AtDoorAsset"
ExportAssets (56)Timeline Frame 2Symbol 92 as "WhistleSoundAsset"
ExportAssets (56)Timeline Frame 2Symbol 94 as "PlayButtonDEAsset"
ExportAssets (56)Timeline Frame 2Symbol 98 as "HowToPlayGirlAsset"
ExportAssets (56)Timeline Frame 2Symbol 100 as "PlayButtonESAsset"
ExportAssets (56)Timeline Frame 2Symbol 103 as "ScreenBackgroundAsset"
ExportAssets (56)Timeline Frame 2Symbol 105 as "HowToPlayTextMask"
ExportAssets (56)Timeline Frame 2Symbol 107 as "PlayButtonENAsset"
ExportAssets (56)Timeline Frame 2Symbol 109 as "PlayButtonFRAsset"
ExportAssets (56)Timeline Frame 2Symbol 111 as "NextLevelFRAsset"
ExportAssets (56)Timeline Frame 2Symbol 113 as "NextLevelESAsset"
ExportAssets (56)Timeline Frame 2Symbol 115 as "NextLevelENAsset"
ExportAssets (56)Timeline Frame 2Symbol 117 as "NextLevelDEAsset"
ExportAssets (56)Timeline Frame 2Symbol 119 as "PlayAgainENAsset"
ExportAssets (56)Timeline Frame 2Symbol 121 as "PlayAgainFRAsset"
ExportAssets (56)Timeline Frame 2Symbol 123 as "PlayAgainDEAsset"
ExportAssets (56)Timeline Frame 2Symbol 125 as "PlayAgainESAsset"
ExportAssets (56)Timeline Frame 2Symbol 127 as "SoundOn"
ExportAssets (56)Timeline Frame 2Symbol 129 as "SoundOff"
ExportAssets (56)Timeline Frame 2Symbol 132 as "MoreGamesSp"
ExportAssets (56)Timeline Frame 2Symbol 135 as "MoreGamesEn"
ExportAssets (56)Timeline Frame 2Symbol 138 as "SandboxPrintGlint"
ExportAssets (56)Timeline Frame 2Symbol 140 as "SandboxPrintButton"
ExportAssets (56)Timeline Frame 2Symbol 143 as "MoreGamesFr"
ExportAssets (56)Timeline Frame 2Symbol 146 as "MoreGamesDe"
ExportAssets (56)Timeline Frame 2Symbol 148 as "MyGamesForGirlsSPGlint"
ExportAssets (56)Timeline Frame 2Symbol 150 as "MyGamesForGirlsDE"
ExportAssets (56)Timeline Frame 2Symbol 152 as "MyGamesForGirlsDEGlint"
ExportAssets (56)Timeline Frame 2Symbol 153 as "DefaultButton.mp3"
ExportAssets (56)Timeline Frame 2Symbol 155 as "MyGamesForGirlsFR"
ExportAssets (56)Timeline Frame 2Symbol 163 as "MyGamesForGirlsSP"
ExportAssets (56)Timeline Frame 2Symbol 165 as "MyGamesForGirlsCOMGlint"
ExportAssets (56)Timeline Frame 2Symbol 167 as "MyGamesForGirlsFRGlint"
ExportAssets (56)Timeline Frame 2Symbol 169 as "MyGamesForGirlsCOM"
ExportAssets (56)Timeline Frame 2Symbol 171 as "CharacteWaitingDoorHisSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 173 as "CharacteWaitingDoorHisTrousersAsset"
ExportAssets (56)Timeline Frame 2Symbol 175 as "CharacteWaitingDoorHerDressAsset"
ExportAssets (56)Timeline Frame 2Symbol 177 as "CharacteWaitingDoorHisTopAsset"
ExportAssets (56)Timeline Frame 2Symbol 179 as "CharacteWaitingDoorHerHairAsset"
ExportAssets (56)Timeline Frame 2Symbol 181 as "CharacteWaitingDoorHerShoesAsset"
ExportAssets (56)Timeline Frame 2Symbol 183 as "CharacteWaitingDoorHerSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 185 as "CharacteWaitingDoorHisHairAsset"
ExportAssets (56)Timeline Frame 2Symbol 187 as "CharacteWaitingDoorHisShoesAsset"
ExportAssets (56)Timeline Frame 2Symbol 189 as "CharacteWaitingDoorOverlayAsset"
ExportAssets (56)Timeline Frame 2Symbol 212 as "PanelAsset"
ExportAssets (56)Timeline Frame 2Symbol 214 as "ChefAsset"
ExportAssets (56)Timeline Frame 2Symbol 218 as "GarbageTrayAsset"
ExportAssets (56)Timeline Frame 2Symbol 220 as "TableAsset"
ExportAssets (56)Timeline Frame 2Symbol 222 as "TableButtonAsset"
ExportAssets (56)Timeline Frame 2Symbol 224 as "PlayerDefaultAsset"
ExportAssets (56)Timeline Frame 2Symbol 226 as "PlayerRunAsset"
ExportAssets (56)Timeline Frame 2Symbol 228 as "PlayerCleanAsset"
ExportAssets (56)Timeline Frame 2Symbol 82 as "BackgroundDoor"
ExportAssets (56)Timeline Frame 2Symbol 230 as "XMLRotatorLeft"
ExportAssets (56)Timeline Frame 2Symbol 232 as "XMLRotatorMask"
ExportAssets (56)Timeline Frame 2Symbol 234 as "XMLRotatorButtonHighlight"
ExportAssets (56)Timeline Frame 2Symbol 236 as "XMLRotatorRight"
ExportAssets (56)Timeline Frame 2Symbol 211 as "assets_fla.PanelStar_46"
ExportAssets (56)Timeline Frame 2Symbol 255 as "PostItAsset"
ExportAssets (56)Timeline Frame 2Symbol 258 as "DrinksDishAsset"
ExportAssets (56)Timeline Frame 2Symbol 261 as "PizzaDishAsset"
ExportAssets (56)Timeline Frame 2Symbol 264 as "PastaDishAsset"
ExportAssets (56)Timeline Frame 2Symbol 266 as "TableCharacterDefaultHerHairAsset"
ExportAssets (56)Timeline Frame 2Symbol 268 as "EatPoseOverlayAsset"
ExportAssets (56)Timeline Frame 2Symbol 270 as "FinishPoseOverlayAsset"
ExportAssets (56)Timeline Frame 2Symbol 272 as "HandUpHisSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 274 as "TableCharacterDefaultHerShoeAsset"
ExportAssets (56)Timeline Frame 2Symbol 276 as "HandUpHisShirtAsset"
ExportAssets (56)Timeline Frame 2Symbol 278 as "TableCharacterDefaultHisTrousersAsset"
ExportAssets (56)Timeline Frame 2Symbol 280 as "EatPoseHisSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 282 as "EatPoseHisShirtAsset"
ExportAssets (56)Timeline Frame 2Symbol 284 as "TableCharacterDefaultHisTopAsset"
ExportAssets (56)Timeline Frame 2Symbol 286 as "HandUpHerSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 288 as "TableCharacterOverlayAsset"
ExportAssets (56)Timeline Frame 2Symbol 290 as "CasualPoseOverlayAsset"
ExportAssets (56)Timeline Frame 2Symbol 292 as "TableCharacterDefaultHerSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 294 as "FinishPoseHerSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 296 as "HandUpOverlayAsset"
ExportAssets (56)Timeline Frame 2Symbol 298 as "TableCharacterDefaultHisSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 300 as "FinishPoseHisShirtAsset"
ExportAssets (56)Timeline Frame 2Symbol 302 as "TableCharacterDefaultHisShoeAsset"
ExportAssets (56)Timeline Frame 2Symbol 304 as "CasualPoseHisSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 306 as "EatPoseHerSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 308 as "TableCharacterDefaultHerDressAsset"
ExportAssets (56)Timeline Frame 2Symbol 310 as "FinishPoseHisSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 312 as "CasualPoseHerSkinAsset"
ExportAssets (56)Timeline Frame 2Symbol 314 as "TableCharacterDefaultHisHairAsset"
ExportAssets (56)Timeline Frame 2Symbol 316 as "CasualPoseHisShirtAsset"
ExportAssets (56)Timeline Frame 2Symbol 318 as "AnnoyedFaceAsset"
ExportAssets (56)Timeline Frame 2Symbol 320 as "HappyFaceAsset"
ExportAssets (56)Timeline Frame 2Symbol 322 as "StandardFaceAsset"
ExportAssets (56)Timeline Frame 2Symbol 324 as "OrderBubbleAsset"
ExportAssets (56)Timeline Frame 2Symbol 326 as "PaymentSignAsset"
ExportAssets (56)Timeline Frame 2Symbol 328 as "TableMenuAsset"
ExportAssets (56)Timeline Frame 2Symbol 254 as "PostItPizza"
SerialNumber (41)Timeline Frame 1

Labels

"Preload"Frame 1
"two"Frame 2




http://swfchan.com/25/124714/info.shtml
Created: 1/3 -2019 05:08:50 Last modified: 1/3 -2019 05:08:50 Server time: 22/12 -2024 05:52:38