Section 1
//ColorShortcuts (caurina.transitions.properties.ColorShortcuts)
package caurina.transitions.properties {
import flash.geom.*;
import flash.filters.*;
import caurina.transitions.*;
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 2
//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 3
//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 4
//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 5
//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 6
//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 7
//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 8
//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 9
//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 10
//BackgroundButton (drimlike.background.BackgroundButton)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
import flash.filters.*;
import caurina.transitions.*;
public class BackgroundButton extends Sprite {
protected var outline:Sprite;
public var checkbox:Sprite;
protected var hitTest:Sprite;
protected var graphic:Sprite;
private var CheckData:Class;
public function BackgroundButton(){
CheckData = BackgroundButton_CheckData;
super();
init();
}
protected function addCheck():void{
checkbox = (new CheckData() as Sprite);
checkbox.x = 60;
checkbox.y = 40;
checkbox.mouseEnabled = false;
checkbox.mouseChildren = false;
checkbox.visible = false;
addChild(checkbox);
}
protected function onMouseClick(_arg1:MouseEvent):void{
var _local2:BackgroundButton;
for each (_local2 in Engine.getInstance().sandbox.scenesArray) {
if (_local2 != this){
_local2.checkbox.visible = false;
} else {
_local2.checkbox.visible = true;
};
};
}
protected function onMouseOut(_arg1:MouseEvent):void{
Tweener.addTween(this, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo"});
}
protected function init():void{
hitTest = new Sprite();
hitTest.graphics.beginFill(0xFFFFFF, 1);
hitTest.graphics.drawRect(0, 0, 110, 80);
hitTest.graphics.endFill();
addChild(hitTest);
outline = new Sprite();
outline.graphics.lineStyle(1, 0);
outline.graphics.drawRect(0, 0, 110, 80);
outline.graphics.endFill();
outline.mouseEnabled = false;
addChild(outline);
hitTest.addEventListener(MouseEvent.CLICK, onMouseClick);
hitTest.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
hitTest.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
var _local1:DropShadowFilter = new DropShadowFilter();
_local1.alpha = 0.5;
_local1.blurX = 8;
_local1.blurY = 8;
_local1.color = 0;
_local1.distance = 0;
_local1.strength = 1;
this.filters = new Array(_local1);
hitTest.useHandCursor = true;
hitTest.buttonMode = true;
}
protected function onMouseOver(_arg1:MouseEvent):void{
Tweener.addTween(this, {scaleX:1.1, scaleY:1.2, time:0.5, transition:"easeOutExpo"});
}
}
}//package drimlike.background
Section 11
//BackgroundButton_CheckData (drimlike.background.BackgroundButton_CheckData)
package drimlike.background {
import mx.core.*;
public class BackgroundButton_CheckData extends SpriteAsset {
}
}//package drimlike.background
Section 12
//BackgroundButton1 (drimlike.background.BackgroundButton1)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class BackgroundButton1 extends BackgroundButton {
private var BackgroundData1:Class;
public function BackgroundButton1(){
BackgroundData1 = BackgroundButton1_BackgroundData1;
super();
}
override protected function init():void{
super.init();
graphic = (new BackgroundData1() as Sprite);
graphic.width = (hitTest.width + 1);
graphic.height = (hitTest.height + 1);
graphic.mouseEnabled = false;
graphic.mouseChildren = false;
addChild(graphic);
addCheck();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
super.onMouseClick(_arg1);
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_1);
}
}
}//package drimlike.background
Section 13
//BackgroundButton1_BackgroundData1 (drimlike.background.BackgroundButton1_BackgroundData1)
package drimlike.background {
import mx.core.*;
public class BackgroundButton1_BackgroundData1 extends SpriteAsset {
}
}//package drimlike.background
Section 14
//BackgroundButton2 (drimlike.background.BackgroundButton2)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class BackgroundButton2 extends BackgroundButton {
private var BackgroundData2:Class;
public function BackgroundButton2(){
BackgroundData2 = BackgroundButton2_BackgroundData2;
super();
}
override protected function init():void{
super.init();
graphic = (new BackgroundData2() as Sprite);
graphic.width = (hitTest.width + 1);
graphic.height = (hitTest.height + 1);
graphic.mouseEnabled = false;
graphic.mouseChildren = false;
addChild(graphic);
addCheck();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
super.onMouseClick(_arg1);
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_2);
}
}
}//package drimlike.background
Section 15
//BackgroundButton2_BackgroundData2 (drimlike.background.BackgroundButton2_BackgroundData2)
package drimlike.background {
import mx.core.*;
public class BackgroundButton2_BackgroundData2 extends SpriteAsset {
}
}//package drimlike.background
Section 16
//BackgroundButton3 (drimlike.background.BackgroundButton3)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class BackgroundButton3 extends BackgroundButton {
private var BackgroundData3:Class;
public function BackgroundButton3(){
BackgroundData3 = BackgroundButton3_BackgroundData3;
super();
}
override protected function init():void{
super.init();
graphic = (new BackgroundData3() as Sprite);
graphic.width = (hitTest.width + 1);
graphic.height = (hitTest.height + 1);
graphic.mouseEnabled = false;
graphic.mouseChildren = false;
addChild(graphic);
addCheck();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
super.onMouseClick(_arg1);
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_3);
}
}
}//package drimlike.background
Section 17
//BackgroundButton3_BackgroundData3 (drimlike.background.BackgroundButton3_BackgroundData3)
package drimlike.background {
import mx.core.*;
public class BackgroundButton3_BackgroundData3 extends SpriteAsset {
}
}//package drimlike.background
Section 18
//BackgroundButton4 (drimlike.background.BackgroundButton4)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class BackgroundButton4 extends BackgroundButton {
private var BackgroundData4:Class;
public function BackgroundButton4(){
BackgroundData4 = BackgroundButton4_BackgroundData4;
super();
}
override protected function init():void{
super.init();
graphic = (new BackgroundData4() as Sprite);
graphic.width = (hitTest.width + 1);
graphic.height = (hitTest.height + 1);
graphic.mouseEnabled = false;
graphic.mouseChildren = false;
addChild(graphic);
addCheck();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
super.onMouseClick(_arg1);
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_4);
}
}
}//package drimlike.background
Section 19
//BackgroundButton4_BackgroundData4 (drimlike.background.BackgroundButton4_BackgroundData4)
package drimlike.background {
import mx.core.*;
public class BackgroundButton4_BackgroundData4 extends SpriteAsset {
}
}//package drimlike.background
Section 20
//BackgroundButton5 (drimlike.background.BackgroundButton5)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class BackgroundButton5 extends BackgroundButton {
private var BackgroundData5:Class;
public function BackgroundButton5(){
BackgroundData5 = BackgroundButton5_BackgroundData5;
super();
}
override protected function init():void{
super.init();
graphic = (new BackgroundData5() as Sprite);
graphic.width = (hitTest.width + 1);
graphic.height = (hitTest.height + 1);
graphic.mouseEnabled = false;
graphic.mouseChildren = false;
addChild(graphic);
addCheck();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
super.onMouseClick(_arg1);
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_5);
}
}
}//package drimlike.background
Section 21
//BackgroundButton5_BackgroundData5 (drimlike.background.BackgroundButton5_BackgroundData5)
package drimlike.background {
import mx.core.*;
public class BackgroundButton5_BackgroundData5 extends SpriteAsset {
}
}//package drimlike.background
Section 22
//BackgroundButton6 (drimlike.background.BackgroundButton6)
package drimlike.background {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class BackgroundButton6 extends BackgroundButton {
private var BackgroundData6:Class;
public function BackgroundButton6(){
BackgroundData6 = BackgroundButton6_BackgroundData6;
super();
}
override protected function init():void{
super.init();
graphic = (new BackgroundData6() as Sprite);
graphic.width = (hitTest.width + 1);
graphic.height = (hitTest.height + 1);
graphic.mouseEnabled = false;
graphic.mouseChildren = false;
addChild(graphic);
addCheck();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
super.onMouseClick(_arg1);
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_6);
}
}
}//package drimlike.background
Section 23
//BackgroundButton6_BackgroundData6 (drimlike.background.BackgroundButton6_BackgroundData6)
package drimlike.background {
import mx.core.*;
public class BackgroundButton6_BackgroundData6 extends SpriteAsset {
}
}//package drimlike.background
Section 24
//BackgroundManager (drimlike.background.BackgroundManager)
package drimlike.background {
import flash.display.*;
import caurina.transitions.*;
public class BackgroundManager extends Sprite {
public var background1:Sprite;
public var background2:Sprite;
public var background3:Sprite;
public var background5:Sprite;
public var background4:Sprite;
public var background6:Sprite;
private var BackgroundData1:Class;
private var BackgroundData2:Class;
private var BackgroundData3:Class;
private var BackgroundData4:Class;
private var BackgroundData5:Class;
private var BackgroundData6:Class;
public var selected:Sprite;
public static const BACKGROUND_1:String = "backgroundChoice1";
public static const BACKGROUND_2:String = "backgroundChoice2";
public static const BACKGROUND_4:String = "backgroundChoice4";
public static const BACKGROUND_6:String = "backgroundChoice6";
public static const BACKGROUND_3:String = "backgroundChoice3";
public static const BACKGROUND_5:String = "backgroundChoice5";
public function BackgroundManager(){
BackgroundData1 = BackgroundManager_BackgroundData1;
BackgroundData2 = BackgroundManager_BackgroundData2;
BackgroundData3 = BackgroundManager_BackgroundData3;
BackgroundData4 = BackgroundManager_BackgroundData4;
BackgroundData5 = BackgroundManager_BackgroundData5;
BackgroundData6 = BackgroundManager_BackgroundData6;
super();
background1 = (new BackgroundData1() as Sprite);
addChild(background1);
background2 = (new BackgroundData2() as Sprite);
addChild(background2);
background3 = (new BackgroundData3() as Sprite);
addChild(background3);
background4 = (new BackgroundData4() as Sprite);
addChild(background4);
background5 = (new BackgroundData5() as Sprite);
addChild(background5);
background6 = (new BackgroundData6() as Sprite);
selected = background6;
addChild(background6);
background1.cacheAsBitmap = true;
background2.cacheAsBitmap = true;
background3.cacheAsBitmap = true;
background4.cacheAsBitmap = true;
background5.cacheAsBitmap = true;
background6.cacheAsBitmap = true;
this.cacheAsBitmap = true;
}
public function changeBackground(_arg1:String):void{
switch (_arg1){
case BACKGROUND_1:
if (selected != background1){
background1.alpha = 0;
setChildIndex(background1, (numChildren - 1));
Tweener.addTween(background1, {alpha:1, time:1});
selected = background1;
};
break;
case BACKGROUND_2:
if (selected != background2){
background2.alpha = 0;
setChildIndex(background2, (numChildren - 1));
Tweener.addTween(background2, {alpha:1, time:1});
selected = background2;
};
break;
case BACKGROUND_3:
if (selected != background3){
background3.alpha = 0;
setChildIndex(background3, (numChildren - 1));
Tweener.addTween(background3, {alpha:1, time:1});
selected = background3;
};
break;
case BACKGROUND_4:
if (selected != background4){
background4.alpha = 0;
setChildIndex(background4, (numChildren - 1));
Tweener.addTween(background4, {alpha:1, time:1});
selected = background4;
};
break;
case BACKGROUND_5:
if (selected != background5){
background5.alpha = 0;
setChildIndex(background5, (numChildren - 1));
Tweener.addTween(background5, {alpha:1, time:1});
selected = background5;
};
break;
case BACKGROUND_6:
if (selected != background6){
background6.alpha = 0;
setChildIndex(background6, (numChildren - 1));
Tweener.addTween(background6, {alpha:1, time:1});
selected = background6;
};
break;
};
}
}
}//package drimlike.background
Section 25
//BackgroundManager_BackgroundData1 (drimlike.background.BackgroundManager_BackgroundData1)
package drimlike.background {
import mx.core.*;
public class BackgroundManager_BackgroundData1 extends SpriteAsset {
}
}//package drimlike.background
Section 26
//BackgroundManager_BackgroundData2 (drimlike.background.BackgroundManager_BackgroundData2)
package drimlike.background {
import mx.core.*;
public class BackgroundManager_BackgroundData2 extends SpriteAsset {
}
}//package drimlike.background
Section 27
//BackgroundManager_BackgroundData3 (drimlike.background.BackgroundManager_BackgroundData3)
package drimlike.background {
import mx.core.*;
public class BackgroundManager_BackgroundData3 extends SpriteAsset {
}
}//package drimlike.background
Section 28
//BackgroundManager_BackgroundData4 (drimlike.background.BackgroundManager_BackgroundData4)
package drimlike.background {
import mx.core.*;
public class BackgroundManager_BackgroundData4 extends SpriteAsset {
}
}//package drimlike.background
Section 29
//BackgroundManager_BackgroundData5 (drimlike.background.BackgroundManager_BackgroundData5)
package drimlike.background {
import mx.core.*;
public class BackgroundManager_BackgroundData5 extends SpriteAsset {
}
}//package drimlike.background
Section 30
//BackgroundManager_BackgroundData6 (drimlike.background.BackgroundManager_BackgroundData6)
package drimlike.background {
import mx.core.*;
public class BackgroundManager_BackgroundData6 extends SpriteAsset {
}
}//package drimlike.background
Section 31
//Baby (drimlike.character.Baby)
package drimlike.character {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
public class Baby extends Sprite {
public var mouthPoint:Point;
public var misc1Point:Point;
public var hairPoint:Point;
private var overlay:Sprite;
private var CharOverlayData:Class;
public var hatAsset:Garment;
public var hatFirstRun:Boolean;// = true
public var topAsset:Garment;
private var CharColorData:Class;
public var eyePoint:Point;
public var mouthFirstRun:Boolean;// = true
private var color:Sprite;
private var nappy:Nappy;
public var misc1FirstRun:Boolean;// = true
public var mouthAsset:Garment;
public var hairAsset:Garment;
public var topFirstRun:Boolean;// = true
public var misc1Asset:Garment;
public var hatPoint:Point;
private var colorArray:Array;
public var topPoint:Point;
public var hairFirstRun:Boolean;// = true
public var eyeAsset:Garment;
public function Baby(){
colorArray = new Array("0xE1CA7D", "0xFDE1C3", "0xCE9268", "0x7A4021");
CharColorData = Baby_CharColorData;
CharOverlayData = Baby_CharOverlayData;
super();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
eyePoint = new Point((this.x + 0), (this.y + -70));
mouthPoint = new Point((this.x + 0), (this.y + -18));
hairPoint = new Point((this.x + -2), (this.y + -108));
topPoint = new Point((this.x + 0), (this.y + 60));
hatPoint = new Point((this.x + 0), (this.y - 128));
misc1Point = new Point((this.x - 50), (this.y + 67));
nappy = new Nappy();
nappy.x = -1;
nappy.y = 101;
addChild(nappy);
color = (new CharColorData() as Sprite);
addChild(color);
nappy.useHandCursor = true;
nappy.buttonMode = true;
color.useHandCursor = true;
color.buttonMode = true;
overlay = (new CharOverlayData() as Sprite);
overlay.mouseEnabled = false;
addChild(overlay);
color.addEventListener(MouseEvent.CLICK, onColorClick);
}
private function onColorClick(_arg1:MouseEvent):void{
Engine.getInstance().colorSelector.open(color, colorArray);
}
}
}//package drimlike.character
Section 32
//Baby_CharColorData (drimlike.character.Baby_CharColorData)
package drimlike.character {
import mx.core.*;
public class Baby_CharColorData extends SpriteAsset {
}
}//package drimlike.character
Section 33
//Baby_CharOverlayData (drimlike.character.Baby_CharOverlayData)
package drimlike.character {
import mx.core.*;
public class Baby_CharOverlayData extends SpriteAsset {
}
}//package drimlike.character
Section 34
//Nappy (drimlike.character.Nappy)
package drimlike.character {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
public class Nappy extends Sprite {
private var NappyData:Class;
protected var colorSwatchArray:Array;
public function Nappy(){
colorSwatchArray = new Array("0xCBA069", "0xB28250", "0x946441", "0x6C452A", "0x4A362E", "0x2D2C2E", "0xFFED00", "0xFBBF2D", "0xF3971A", "0xE5403A", "0xBF2535", "0x9B243B", "0xC0E3E7", "0x6BBADD", "0x009AD5", "0x0067A3", "0x273C86", "0x293361", "0xF1A0B0", "0xE3007E", "0xC40D6A", "0xA23386", "0x7B276D", "0x683284", "0xDFDC00", "0x9AC027", "0x4AA838", "0x0E683B", "0xC7C8C9", "0x747577");
NappyData = Nappy_NappyData;
super();
var _local1 = 120;
var _local2 = 120;
var _local3:Sprite = new Sprite();
_local3.graphics.beginFill(0x333333, 0);
_local3.graphics.drawRect((-(_local1) / 2), (-(_local2) / 2), _local1, _local2);
_local3.graphics.endFill();
_local3.x = 10;
_local3.y = 30;
addChild(_local3);
var _local4:Sprite = (new NappyData() as Sprite);
addChild(_local4);
_local4.addEventListener(MouseEvent.CLICK, onMouseClick);
}
private function onMouseClick(_arg1:MouseEvent):void{
Engine.getInstance().colorSelector.open(this, colorSwatchArray);
}
}
}//package drimlike.character
Section 35
//Nappy_NappyData (drimlike.character.Nappy_NappyData)
package drimlike.character {
import mx.core.*;
public class Nappy_NappyData extends SpriteAsset {
}
}//package drimlike.character
Section 36
//CloseButton (drimlike.color.CloseButton)
package drimlike.color {
import flash.events.*;
import flash.display.*;
import caurina.transitions.*;
public class CloseButton extends Sprite {
private var foreground:Sprite;
private var CloseButtonFGData:Class;
private var CloseButtonBGData:Class;
private var background:Sprite;
public function CloseButton(){
CloseButtonBGData = CloseButton_CloseButtonBGData;
CloseButtonFGData = CloseButton_CloseButtonFGData;
super();
background = (new CloseButtonBGData() as Sprite);
addChild(background);
foreground = (new CloseButtonFGData() as Sprite);
addChild(foreground);
this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
}
private function onMouseOut(_arg1:MouseEvent):void{
Tweener.addTween(foreground, {_color:12502215, time:1, transition:"easeOutExpo"});
}
private function onMouseOver(_arg1:MouseEvent):void{
Tweener.addTween(foreground, {_color:15539236, time:1, transition:"easeOutExpo"});
}
}
}//package drimlike.color
Section 37
//CloseButton_CloseButtonBGData (drimlike.color.CloseButton_CloseButtonBGData)
package drimlike.color {
import mx.core.*;
public class CloseButton_CloseButtonBGData extends SpriteAsset {
}
}//package drimlike.color
Section 38
//CloseButton_CloseButtonFGData (drimlike.color.CloseButton_CloseButtonFGData)
package drimlike.color {
import mx.core.*;
public class CloseButton_CloseButtonFGData extends SpriteAsset {
}
}//package drimlike.color
Section 39
//ColorSelector (drimlike.color.ColorSelector)
package drimlike.color {
import flash.events.*;
import flash.display.*;
import drimlike.events.*;
import drimlike.data.*;
import flash.filters.*;
import caurina.transitions.*;
public class ColorSelector extends Sprite {
private var padding:int;// = 10
private var target:Sprite;
private var closeButton:CloseButton;
private var maxRows:int;// = 6
private var isInUse:Boolean;
private var colorTiles:Array;
private var canvas:Sprite;
private var background:Sprite;
private var tileHeight:int;// = 20
private var colorArray:Array;
private var tileWidth:int;// = 20
public function ColorSelector(){
canvas = new Sprite();
canvas.alpha = 0;
canvas.visible = false;
addChild(canvas);
background = new Sprite();
canvas.addChild(background);
closeButton = new CloseButton();
closeButton.addEventListener(MouseEvent.CLICK, onCloseButtonClick);
closeButton.mouseChildren = false;
canvas.addChild(closeButton);
addEventListener(ColorEvent.COLOR_SELECTED_EVENT, onColorSelected);
}
private function onColorSelected(_arg1:ColorEvent):void{
Tweener.addTween(target, {_color:_arg1.hex, time:1, transition:"easeOutExpo"});
close();
}
public function open(_arg1:Sprite, _arg2:Array):void{
var _local3:int;
var _local4:int;
var _local5:DropShadowFilter;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:ColorTile;
Engine.getInstance().tooltipCommander.closeToolTip();
if (isInUse){
} else {
isInUse = true;
target = _arg1;
colorArray = _arg2;
canvas.visible = true;
background.graphics.clear();
background.graphics.beginFill(0xFFFFFF, 1);
_local3 = (((maxRows * tileWidth) + (maxRows * padding)) + padding);
if (_arg2.length < maxRows){
_local3 = (((_arg2.length * tileWidth) + (_arg2.length * padding)) + padding);
};
_local4 = ((Math.ceil((_arg2.length / maxRows)) * 30) + padding);
background.graphics.drawRoundRect(0, 0, _local3, _local4, 20, 20);
background.graphics.endFill();
_local5 = new DropShadowFilter();
_local5.alpha = 0.5;
_local5.angle = 25;
_local5.blurX = 5;
_local5.blurY = 5;
_local5.color = 0;
_local5.distance = 0;
_local5.strength = 1;
_local5.quality = BitmapFilterQuality.LOW;
this.filters = new Array(_local5);
closeButton.visible = true;
closeButton.alpha = 0;
closeButton.x = 2;
closeButton.y = 2;
if (_arg2.length < 5){
canvas.x = (525 - (canvas.width / 2));
canvas.y = (300 - (canvas.width / 2));
} else {
canvas.x = ((728 / 2) - (canvas.width / 2));
canvas.y = ((530 / 2) - (canvas.height / 2));
};
Tweener.addTween(closeButton, {alpha:1, time:1, transition:"easeOutExpo", x:(_local3 - 2)});
Tweener.addTween(canvas, {alpha:1, time:1, x:(canvas.x + 25), transition:"easeOutExpo"});
_local6 = padding;
_local7 = padding;
_local8 = 0;
_local9 = 0;
colorTiles = new Array();
_local10 = 0;
while (_local10 < _arg2.length) {
if (_local8 == maxRows){
_local8 = 0;
_local9++;
};
_local11 = new ColorTile(uint(_arg2[_local10]));
_local11.x = (((_local8 * 20) + (_local8 * padding)) + (padding * 2));
_local11.y = (((_local9 * 20) + (_local9 * padding)) + (padding * 2));
canvas.addChild(_local11);
colorTiles.push(_local11);
_local8++;
_local10++;
};
};
}
private function onCloseButtonClick(_arg1:MouseEvent):void{
close();
}
public function close():void{
var c:ColorTile;
var cleanUp:Function;
cleanUp = function ():void{
isInUse = false;
colorTiles = null;
canvas.visible = false;
};
for each (c in colorTiles) {
canvas.removeChild(c);
c = null;
Tweener.addTween(canvas, {alpha:0, x:(canvas.x + 25), time:0.5, transition:"easeOutExpo", onComplete:cleanUp});
};
}
}
}//package drimlike.color
Section 40
//ColorTile (drimlike.color.ColorTile)
package drimlike.color {
import flash.events.*;
import flash.display.*;
import drimlike.events.*;
import drimlike.data.*;
import caurina.transitions.*;
public class ColorTile extends Sprite {
private var outline:Sprite;
private var _hex:uint;
private var canvas:Sprite;
public function ColorTile(_arg1:uint){
_hex = _arg1;
init();
}
public function destroy():void{
removeChild(outline);
removeChild(canvas);
canvas.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
canvas.removeEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
canvas.removeEventListener(MouseEvent.CLICK, onMouseClick);
}
private function onMouseOut(_arg1:Event):void{
Tweener.addTween(outline, {_color:"0x000000", time:1});
Tweener.addTween(outline, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
Tweener.addTween(canvas, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
}
private function init():void{
canvas = new Sprite();
canvas.graphics.beginFill(_hex, 1);
canvas.graphics.drawRoundRect(-10, -10, 20, 20, 5, 5);
canvas.graphics.endFill();
addChild(canvas);
outline = new Sprite();
outline.graphics.lineStyle(2, 0x333333);
outline.graphics.drawRoundRect(-10, -10, 20, 20, 5, 5);
outline.graphics.endFill();
addChild(outline);
canvas.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
canvas.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
canvas.addEventListener(MouseEvent.CLICK, onMouseClick);
}
private function onMouseClick(_arg1:Event):void{
Engine.getInstance().colorSelector.dispatchEvent(new ColorEvent(_hex, ColorEvent.COLOR_SELECTED_EVENT));
}
private function onMouseOver(_arg1:Event):void{
Tweener.addTween(outline, {_color:"0xFF0000", time:1});
Tweener.addTween(outline, {scaleX:1.2, scaleY:1.2, time:1, transition:"easeOutExpo"});
Tweener.addTween(canvas, {scaleX:1.2, scaleY:1.2, time:1, transition:"easeOutExpo"});
}
}
}//package drimlike.color
Section 41
//Engine (drimlike.data.Engine)
package drimlike.data {
import flash.events.*;
import flash.display.*;
import drimlike.sounds.*;
import drimlike.color.*;
import drimlike.scenes.*;
import drimlike.character.*;
import drimlike.xml.*;
import drimlike.inventory.*;
import drimlike.background.*;
import drimlike.tooltip.*;
public class Engine extends EventDispatcher {
public var container:Sprite;
public var officialLink:String;
public var sandbox:Sandbox;
public var isOfficialFlag:Boolean;
public var xmlFeed:XMLFeed;
public var imageFeed:XMLRotator;
public var inventory:Inventory;
public var soundManager:SoundManager;
public var backgroundManager:BackgroundManager;
public var soundButton:SoundButton;
public var colorSelector:ColorSelector;
public var unofficialLink:String;
public var character:Baby;
public var tooltipCommander:ToolTipCommander;
private static var _instance:Engine;
public static function getInstance():Engine{
if (_instance == null){
_instance = new (Engine);
};
return (_instance);
}
}
}//package drimlike.data
Section 42
//ColorEvent (drimlike.events.ColorEvent)
package drimlike.events {
import flash.events.*;
public class ColorEvent extends Event {
private var _hex:uint;
public static const COLOR_SELECTED_EVENT:String = "colorSelectedEvent";
public function ColorEvent(_arg1:uint, _arg2:String, _arg3:Boolean=false, _arg4:Boolean=false){
_hex = _arg1;
super(_arg2, _arg3, _arg4);
}
public function get hex():uint{
return (_hex);
}
override public function clone():Event{
return (new ColorEvent(_hex, type, bubbles, cancelable));
}
}
}//package drimlike.events
Section 43
//GarmentEvent (drimlike.events.GarmentEvent)
package drimlike.events {
import flash.events.*;
import drimlike.garment.*;
public class GarmentEvent extends Event {
private var _garment:Garment;
public static const GARMENT_MOUSE_DOWN_EVENT:String = "garmentMouseDownEvent";
public static const GARMENT_ROLLOUT_EVENT:String = "garmentRollOutEvent";
public static const GARMENT_MOUSE_MOVE_EVENT:String = "garmentMouseMoveEvent";
public static const GARMENT_ROLLOVER_EVENT:String = "garmentRollOverEvent";
public static const GARMENT_MOUSE_UP_EVENT:String = "garmentMouseUpEvent";
public static const GARMENT_CLICK_EVENT:String = "garmentClickEvent";
public static const GARMENT_DOUBLE_CLICK_EVENT:String = "garmentDoubleClickEvent";
public function GarmentEvent(_arg1:Garment, _arg2:String, _arg3:Boolean=false, _arg4:Boolean=false){
_garment = _arg1;
super(_arg2, _arg3, _arg4);
}
public function get garment():Garment{
return (_garment);
}
override public function clone():Event{
return (new GarmentEvent(_garment, type, bubbles, cancelable));
}
}
}//package drimlike.events
Section 44
//InventoryEvent (drimlike.events.InventoryEvent)
package drimlike.events {
import flash.events.*;
import drimlike.inventory.buttons.*;
public class InventoryEvent extends Event {
private var _targetButton:InvButton;
public static const INVENTORY_BUTTON_OVER_EVENT:String = "inventoryButtonOverEvent";
public static const INVENTORY_BUTTON_CLICK_EVENT:String = "inventoryButtonClickEvent";
public static const INVENTORY_BUTTON_OUT_EVENT:String = "inventoryButtonOutEvent";
public function InventoryEvent(_arg1:InvButton, _arg2:String, _arg3:Boolean=false, _arg4:Boolean=false){
_targetButton = _arg1;
super(_arg2, _arg3, _arg4);
}
public function get targetButton():InvButton{
return (_targetButton);
}
override public function clone():Event{
return (new InventoryEvent(targetButton, type, bubbles, cancelable));
}
}
}//package drimlike.events
Section 45
//Eye1 (drimlike.garment.eye.Eye1)
package drimlike.garment.eye {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Eye1 extends Garment {
private var Overlay1Data:Class;
public function Eye1(){
Overlay1Data = Eye1_Overlay1Data;
super();
hitWidth = 100;
hitHeight = 50;
itemType = EYE_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.eyePoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.eyeAsset);
}
override protected function customInit():void{
overlay = (new Overlay1Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.eyeAsset = this;
}
}
}//package drimlike.garment.eye
Section 46
//Eye1_Overlay1Data (drimlike.garment.eye.Eye1_Overlay1Data)
package drimlike.garment.eye {
import mx.core.*;
public class Eye1_Overlay1Data extends SpriteAsset {
}
}//package drimlike.garment.eye
Section 47
//Eye2 (drimlike.garment.eye.Eye2)
package drimlike.garment.eye {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Eye2 extends Garment {
private var Overlay2Data:Class;
public function Eye2(){
Overlay2Data = Eye2_Overlay2Data;
super();
hitWidth = 100;
hitHeight = 50;
itemType = EYE_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.eyePoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.eyeAsset);
}
override protected function customInit():void{
overlay = (new Overlay2Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.eyeAsset = this;
}
}
}//package drimlike.garment.eye
Section 48
//Eye2_Overlay2Data (drimlike.garment.eye.Eye2_Overlay2Data)
package drimlike.garment.eye {
import mx.core.*;
public class Eye2_Overlay2Data extends SpriteAsset {
}
}//package drimlike.garment.eye
Section 49
//Eye3 (drimlike.garment.eye.Eye3)
package drimlike.garment.eye {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Eye3 extends Garment {
private var Overlay3Data:Class;
public function Eye3(){
Overlay3Data = Eye3_Overlay3Data;
super();
hitWidth = 100;
hitHeight = 50;
itemType = EYE_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.eyePoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.eyeAsset);
}
override protected function customInit():void{
overlay = (new Overlay3Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.eyeAsset = this;
}
}
}//package drimlike.garment.eye
Section 50
//Eye3_Overlay3Data (drimlike.garment.eye.Eye3_Overlay3Data)
package drimlike.garment.eye {
import mx.core.*;
public class Eye3_Overlay3Data extends SpriteAsset {
}
}//package drimlike.garment.eye
Section 51
//Eye4 (drimlike.garment.eye.Eye4)
package drimlike.garment.eye {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Eye4 extends Garment {
private var Overlay4Data:Class;
public function Eye4(){
Overlay4Data = Eye4_Overlay4Data;
super();
hitWidth = 100;
hitHeight = 50;
itemType = EYE_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.eyePoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.eyeAsset);
}
override protected function customInit():void{
overlay = (new Overlay4Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.eyeAsset = this;
}
}
}//package drimlike.garment.eye
Section 52
//Eye4_Overlay4Data (drimlike.garment.eye.Eye4_Overlay4Data)
package drimlike.garment.eye {
import mx.core.*;
public class Eye4_Overlay4Data extends SpriteAsset {
}
}//package drimlike.garment.eye
Section 53
//Hair1 (drimlike.garment.hair.Hair1)
package drimlike.garment.hair {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hair1 extends Garment {
private var OverlayData:Class;
private var AssetData:Class;
private var ColorData:Class;
public function Hair1(){
ColorData = Hair1_ColorData;
AssetData = Hair1_AssetData;
OverlayData = Hair1_OverlayData;
super();
hitWidth = 200;
hitHeight = 100;
itemType = HAIR_GARMENT;
catagoryType = HAIR_TYPE;
targetPoint = Engine.getInstance().character.hairPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = -5;
hittest.y = 10;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hairAsset);
}
override protected function customInit():void{
color = (new ColorData() as Sprite);
addChild(color);
asset = (new AssetData() as Sprite);
addChild(asset);
overlay = (new OverlayData() as Sprite);
overlay.mouseEnabled = false;
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hairAsset = this;
if (Engine.getInstance().character.hairFirstRun){
Engine.getInstance().character.hairFirstRun = false;
_local1 = Engine.getInstance().character.hairPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hair
Section 54
//Hair1_AssetData (drimlike.garment.hair.Hair1_AssetData)
package drimlike.garment.hair {
import mx.core.*;
public class Hair1_AssetData extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 55
//Hair1_ColorData (drimlike.garment.hair.Hair1_ColorData)
package drimlike.garment.hair {
import mx.core.*;
public class Hair1_ColorData extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 56
//Hair1_OverlayData (drimlike.garment.hair.Hair1_OverlayData)
package drimlike.garment.hair {
import mx.core.*;
public class Hair1_OverlayData extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 57
//Hair2 (drimlike.garment.hair.Hair2)
package drimlike.garment.hair {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hair2 extends Garment {
private var Color2Data:Class;
private var Overlay2Data:Class;
public function Hair2(){
Color2Data = Hair2_Color2Data;
Overlay2Data = Hair2_Overlay2Data;
super();
hitWidth = 180;
hitHeight = 160;
itemType = HAIR_GARMENT;
catagoryType = HAIR_TYPE;
targetPoint = Engine.getInstance().character.hairPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = -5;
hittest.y = -10;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hairAsset);
}
override protected function customInit():void{
color = (new Color2Data() as Sprite);
addChild(color);
overlay = (new Overlay2Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hairAsset = this;
if (Engine.getInstance().character.hairFirstRun){
Engine.getInstance().character.hairFirstRun = false;
_local1 = Engine.getInstance().character.hairPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hair
Section 58
//Hair2_Color2Data (drimlike.garment.hair.Hair2_Color2Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair2_Color2Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 59
//Hair2_Overlay2Data (drimlike.garment.hair.Hair2_Overlay2Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair2_Overlay2Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 60
//Hair3 (drimlike.garment.hair.Hair3)
package drimlike.garment.hair {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hair3 extends Garment {
private var Color3Data:Class;
private var Overlay3Data:Class;
public function Hair3(){
Color3Data = Hair3_Color3Data;
Overlay3Data = Hair3_Overlay3Data;
super();
hitWidth = 180;
hitHeight = 120;
itemType = HAIR_GARMENT;
catagoryType = HAIR_TYPE;
targetPoint = Engine.getInstance().character.hairPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 10;
addChild(hittest);
}
override protected function customInit():void{
color = (new Color3Data() as Sprite);
addChild(color);
overlay = (new Overlay3Data() as Sprite);
addChild(overlay);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hairAsset);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hairAsset = this;
if (Engine.getInstance().character.hairFirstRun){
Engine.getInstance().character.hairFirstRun = false;
_local1 = Engine.getInstance().character.hairPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hair
Section 61
//Hair3_Color3Data (drimlike.garment.hair.Hair3_Color3Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair3_Color3Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 62
//Hair3_Overlay3Data (drimlike.garment.hair.Hair3_Overlay3Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair3_Overlay3Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 63
//Hair4 (drimlike.garment.hair.Hair4)
package drimlike.garment.hair {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hair4 extends Garment {
private var Color4Data:Class;
private var Overlay4Data:Class;
public function Hair4(){
Color4Data = Hair4_Color4Data;
Overlay4Data = Hair4_Overlay4Data;
super();
hitWidth = 160;
hitHeight = 90;
itemType = HAIR_GARMENT;
catagoryType = HAIR_TYPE;
targetPoint = Engine.getInstance().character.hairPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 10;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hairAsset);
}
override protected function customInit():void{
color = (new Color4Data() as Sprite);
addChild(color);
overlay = (new Overlay4Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hairAsset = this;
if (Engine.getInstance().character.hairFirstRun){
Engine.getInstance().character.hairFirstRun = false;
_local1 = Engine.getInstance().character.hairPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hair
Section 64
//Hair4_Color4Data (drimlike.garment.hair.Hair4_Color4Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair4_Color4Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 65
//Hair4_Overlay4Data (drimlike.garment.hair.Hair4_Overlay4Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair4_Overlay4Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 66
//Hair5 (drimlike.garment.hair.Hair5)
package drimlike.garment.hair {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hair5 extends Garment {
private var Asset5Data:Class;
private var Overlay5Data:Class;
private var Color5Data:Class;
public function Hair5(){
Color5Data = Hair5_Color5Data;
Asset5Data = Hair5_Asset5Data;
Overlay5Data = Hair5_Overlay5Data;
super();
hitWidth = 200;
hitHeight = 160;
itemType = HAIR_GARMENT;
catagoryType = HAIR_TYPE;
targetPoint = Engine.getInstance().character.hairPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = -20;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hairAsset);
}
override protected function customInit():void{
color = (new Color5Data() as Sprite);
addChild(color);
asset = (new Asset5Data() as Sprite);
addChild(asset);
overlay = (new Overlay5Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hairAsset = this;
if (Engine.getInstance().character.hairFirstRun){
Engine.getInstance().character.hairFirstRun = false;
_local1 = Engine.getInstance().character.hairPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hair
Section 67
//Hair5_Asset5Data (drimlike.garment.hair.Hair5_Asset5Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair5_Asset5Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 68
//Hair5_Color5Data (drimlike.garment.hair.Hair5_Color5Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair5_Color5Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 69
//Hair5_Overlay5Data (drimlike.garment.hair.Hair5_Overlay5Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair5_Overlay5Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 70
//Hair6 (drimlike.garment.hair.Hair6)
package drimlike.garment.hair {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hair6 extends Garment {
private var Asset6Data:Class;
private var Color6Data:Class;
private var Overlay6Data:Class;
public function Hair6(){
Color6Data = Hair6_Color6Data;
Asset6Data = Hair6_Asset6Data;
Overlay6Data = Hair6_Overlay6Data;
super();
hitWidth = 200;
hitHeight = 160;
itemType = HAIR_GARMENT;
catagoryType = HAIR_TYPE;
targetPoint = Engine.getInstance().character.hairPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitHeight, hitWidth);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = -20;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hairAsset);
}
override protected function customInit():void{
color = (new Color6Data() as Sprite);
addChild(color);
asset = (new Asset6Data() as Sprite);
addChild(asset);
overlay = (new Overlay6Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hairAsset = this;
if (Engine.getInstance().character.hairFirstRun){
Engine.getInstance().character.hairFirstRun = false;
_local1 = Engine.getInstance().character.hairPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hair
Section 71
//Hair6_Asset6Data (drimlike.garment.hair.Hair6_Asset6Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair6_Asset6Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 72
//Hair6_Color6Data (drimlike.garment.hair.Hair6_Color6Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair6_Color6Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 73
//Hair6_Overlay6Data (drimlike.garment.hair.Hair6_Overlay6Data)
package drimlike.garment.hair {
import mx.core.*;
public class Hair6_Overlay6Data extends SpriteAsset {
}
}//package drimlike.garment.hair
Section 74
//Hat1 (drimlike.garment.hat.Hat1)
package drimlike.garment.hat {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hat1 extends Garment {
private var Asset1Data:Class;
private var Overlay1Data:Class;
private var Color1Data:Class;
public function Hat1(){
Color1Data = Hat1_Color1Data;
Asset1Data = Hat1_Asset1Data;
Overlay1Data = Hat1_Overlay1Data;
super();
hitWidth = 240;
hitHeight = 150;
itemType = HAT_GARMENT;
catagoryType = HAT_TYPE;
targetPoint = Engine.getInstance().character.hatPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 15;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hatAsset);
}
override protected function customInit():void{
color = (new Color1Data() as Sprite);
addChild(color);
asset = (new Asset1Data() as Sprite);
addChild(asset);
overlay = (new Overlay1Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hatAsset = this;
if (Engine.getInstance().character.hatFirstRun){
Engine.getInstance().character.hatFirstRun = false;
_local1 = Engine.getInstance().character.hatPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hat
Section 75
//Hat1_Asset1Data (drimlike.garment.hat.Hat1_Asset1Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat1_Asset1Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 76
//Hat1_Color1Data (drimlike.garment.hat.Hat1_Color1Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat1_Color1Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 77
//Hat1_Overlay1Data (drimlike.garment.hat.Hat1_Overlay1Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat1_Overlay1Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 78
//Hat2 (drimlike.garment.hat.Hat2)
package drimlike.garment.hat {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hat2 extends Garment {
private var Overlay2Data:Class;
private var Color2Data:Class;
private var Asset2Data:Class;
public function Hat2(){
Color2Data = Hat2_Color2Data;
Asset2Data = Hat2_Asset2Data;
Overlay2Data = Hat2_Overlay2Data;
super();
hitWidth = 160;
hitHeight = 110;
itemType = HAT_GARMENT;
catagoryType = HAT_TYPE;
targetPoint = Engine.getInstance().character.hatPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hatAsset);
}
override protected function customInit():void{
color = (new Color2Data() as Sprite);
addChild(color);
asset = (new Asset2Data() as Sprite);
addChild(asset);
overlay = (new Overlay2Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hatAsset = this;
if (Engine.getInstance().character.hatFirstRun){
Engine.getInstance().character.hatFirstRun = false;
_local1 = Engine.getInstance().character.hatPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hat
Section 79
//Hat2_Asset2Data (drimlike.garment.hat.Hat2_Asset2Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat2_Asset2Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 80
//Hat2_Color2Data (drimlike.garment.hat.Hat2_Color2Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat2_Color2Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 81
//Hat2_Overlay2Data (drimlike.garment.hat.Hat2_Overlay2Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat2_Overlay2Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 82
//Hat3 (drimlike.garment.hat.Hat3)
package drimlike.garment.hat {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hat3 extends Garment {
private var Color3Data:Class;
private var Overlay3Data:Class;
private var Asset3Data:Class;
public function Hat3(){
Color3Data = Hat3_Color3Data;
Asset3Data = Hat3_Asset3Data;
Overlay3Data = Hat3_Overlay3Data;
super();
hitWidth = 160;
hitHeight = 110;
itemType = HAT_GARMENT;
catagoryType = HAT_TYPE;
targetPoint = Engine.getInstance().character.hatPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hatAsset);
}
override protected function customInit():void{
asset = (new Asset3Data() as Sprite);
addChild(asset);
color = (new Color3Data() as Sprite);
addChild(color);
overlay = (new Overlay3Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hatAsset = this;
if (Engine.getInstance().character.hatFirstRun){
Engine.getInstance().character.hatFirstRun = false;
_local1 = Engine.getInstance().character.hatPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hat
Section 83
//Hat3_Asset3Data (drimlike.garment.hat.Hat3_Asset3Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat3_Asset3Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 84
//Hat3_Color3Data (drimlike.garment.hat.Hat3_Color3Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat3_Color3Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 85
//Hat3_Overlay3Data (drimlike.garment.hat.Hat3_Overlay3Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat3_Overlay3Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 86
//Hat4 (drimlike.garment.hat.Hat4)
package drimlike.garment.hat {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hat4 extends Garment {
private var Color4Data:Class;
private var Overlay4Data:Class;
private var Asset4Data:Class;
public function Hat4(){
Color4Data = Hat4_Color4Data;
Asset4Data = Hat4_Asset4Data;
Overlay4Data = Hat4_Overlay4Data;
super();
hitWidth = 160;
hitHeight = 110;
itemType = HAT_GARMENT;
catagoryType = HAT_TYPE;
targetPoint = Engine.getInstance().character.hatPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hatAsset);
}
override protected function customInit():void{
asset = (new Asset4Data() as Sprite);
addChild(asset);
color = (new Color4Data() as Sprite);
addChild(color);
overlay = (new Overlay4Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hatAsset = this;
if (Engine.getInstance().character.hatFirstRun){
Engine.getInstance().character.hatFirstRun = false;
_local1 = Engine.getInstance().character.hatPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hat
Section 87
//Hat4_Asset4Data (drimlike.garment.hat.Hat4_Asset4Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat4_Asset4Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 88
//Hat4_Color4Data (drimlike.garment.hat.Hat4_Color4Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat4_Color4Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 89
//Hat4_Overlay4Data (drimlike.garment.hat.Hat4_Overlay4Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat4_Overlay4Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 90
//Hat5 (drimlike.garment.hat.Hat5)
package drimlike.garment.hat {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Hat5 extends Garment {
private var Asset5Data:Class;
private var Overlay5Data:Class;
private var Color5Data:Class;
public function Hat5(){
Color5Data = Hat5_Color5Data;
Asset5Data = Hat5_Asset5Data;
Overlay5Data = Hat5_Overlay5Data;
super();
hitWidth = 160;
hitHeight = 110;
itemType = HAT_GARMENT;
catagoryType = HAT_TYPE;
targetPoint = Engine.getInstance().character.hatPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.hatAsset);
}
override protected function customInit():void{
asset = (new Asset5Data() as Sprite);
addChild(asset);
color = (new Color5Data() as Sprite);
addChild(color);
overlay = (new Overlay5Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.hatAsset = this;
if (Engine.getInstance().character.hatFirstRun){
Engine.getInstance().character.hatFirstRun = false;
_local1 = Engine.getInstance().character.hatPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.hat
Section 91
//Hat5_Asset5Data (drimlike.garment.hat.Hat5_Asset5Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat5_Asset5Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 92
//Hat5_Color5Data (drimlike.garment.hat.Hat5_Color5Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat5_Color5Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 93
//Hat5_Overlay5Data (drimlike.garment.hat.Hat5_Overlay5Data)
package drimlike.garment.hat {
import mx.core.*;
public class Hat5_Overlay5Data extends SpriteAsset {
}
}//package drimlike.garment.hat
Section 94
//Misc1 (drimlike.garment.misc.Misc1)
package drimlike.garment.misc {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Misc1 extends Garment {
private var Asset1Data:Class;
private var Overlay1Data:Class;
private var Color1Data:Class;
public function Misc1(){
Color1Data = Misc1_Color1Data;
Asset1Data = Misc1_Asset1Data;
Overlay1Data = Misc1_Overlay1Data;
super();
scaleSmall = 0.6;
scaleLarge = 0.8;
hitWidth = 120;
hitHeight = 120;
itemType = MISC_GARMENT;
catagoryType = MISC_TYPE;
targetPoint = Engine.getInstance().character.misc1Point;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 10;
hittest.y = 30;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.misc1Asset);
}
override protected function customInit():void{
color = (new Color1Data() as Sprite);
addChild(color);
asset = (new Asset1Data() as Sprite);
addChild(asset);
overlay = (new Overlay1Data() as Sprite);
addChild(overlay);
overlay.mouseEnabled = false;
}
override public function setToSlot():void{
Engine.getInstance().character.misc1Asset = this;
}
}
}//package drimlike.garment.misc
Section 95
//Misc1_Asset1Data (drimlike.garment.misc.Misc1_Asset1Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc1_Asset1Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 96
//Misc1_Color1Data (drimlike.garment.misc.Misc1_Color1Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc1_Color1Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 97
//Misc1_Overlay1Data (drimlike.garment.misc.Misc1_Overlay1Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc1_Overlay1Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 98
//Misc2 (drimlike.garment.misc.Misc2)
package drimlike.garment.misc {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Misc2 extends Garment {
private var Overlay2Data:Class;
private var Color2Data:Class;
private var Asset2Data:Class;
public function Misc2(){
Color2Data = Misc2_Color2Data;
Asset2Data = Misc2_Asset2Data;
Overlay2Data = Misc2_Overlay2Data;
super();
scaleSmall = 0.6;
scaleLarge = 0.8;
hitWidth = 120;
hitHeight = 100;
itemType = MISC_GARMENT;
catagoryType = MISC_TYPE;
targetPoint = Engine.getInstance().character.misc1Point;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.misc1Asset);
}
override protected function customInit():void{
color = (new Color2Data() as Sprite);
addChild(color);
asset = (new Asset2Data() as Sprite);
addChild(asset);
overlay = (new Overlay2Data() as Sprite);
addChild(overlay);
overlay.mouseEnabled = false;
}
override public function setToSlot():void{
Engine.getInstance().character.misc1Asset = this;
}
}
}//package drimlike.garment.misc
Section 99
//Misc2_Asset2Data (drimlike.garment.misc.Misc2_Asset2Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc2_Asset2Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 100
//Misc2_Color2Data (drimlike.garment.misc.Misc2_Color2Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc2_Color2Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 101
//Misc2_Overlay2Data (drimlike.garment.misc.Misc2_Overlay2Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc2_Overlay2Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 102
//Misc3 (drimlike.garment.misc.Misc3)
package drimlike.garment.misc {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Misc3 extends Garment {
private var Color3Data:Class;
private var Overlay3Data:Class;
private var Asset3Data:Class;
public function Misc3(){
Color3Data = Misc3_Color3Data;
Asset3Data = Misc3_Asset3Data;
Overlay3Data = Misc3_Overlay3Data;
super();
scaleSmall = 0.6;
scaleLarge = 0.8;
hitWidth = 40;
hitHeight = 140;
itemType = MISC_GARMENT;
catagoryType = MISC_TYPE;
targetPoint = Engine.getInstance().character.misc1Point;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.misc1Asset);
}
override protected function customInit():void{
color = (new Color3Data() as Sprite);
addChild(color);
asset = (new Asset3Data() as Sprite);
addChild(asset);
overlay = (new Overlay3Data() as Sprite);
addChild(overlay);
overlay.mouseEnabled = false;
}
override public function setToSlot():void{
Engine.getInstance().character.misc1Asset = this;
}
}
}//package drimlike.garment.misc
Section 103
//Misc3_Asset3Data (drimlike.garment.misc.Misc3_Asset3Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc3_Asset3Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 104
//Misc3_Color3Data (drimlike.garment.misc.Misc3_Color3Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc3_Color3Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 105
//Misc3_Overlay3Data (drimlike.garment.misc.Misc3_Overlay3Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc3_Overlay3Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 106
//Misc4 (drimlike.garment.misc.Misc4)
package drimlike.garment.misc {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Misc4 extends Garment {
private var Color4Data:Class;
private var Overlay4Data:Class;
private var Asset4Data:Class;
public function Misc4(){
Color4Data = Misc4_Color4Data;
Asset4Data = Misc4_Asset4Data;
Overlay4Data = Misc4_Overlay4Data;
super();
scaleSmall = 0.6;
scaleLarge = 0.8;
hitWidth = 120;
hitHeight = 200;
itemType = MISC_GARMENT;
catagoryType = MISC_TYPE;
targetPoint = Engine.getInstance().character.misc1Point;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = -30;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.misc1Asset);
}
override protected function customInit():void{
color = (new Color4Data() as Sprite);
addChild(color);
asset = (new Asset4Data() as Sprite);
addChild(asset);
overlay = (new Overlay4Data() as Sprite);
addChild(overlay);
overlay.mouseEnabled = false;
}
override public function setToSlot():void{
Engine.getInstance().character.misc1Asset = this;
}
}
}//package drimlike.garment.misc
Section 107
//Misc4_Asset4Data (drimlike.garment.misc.Misc4_Asset4Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc4_Asset4Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 108
//Misc4_Color4Data (drimlike.garment.misc.Misc4_Color4Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc4_Color4Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 109
//Misc4_Overlay4Data (drimlike.garment.misc.Misc4_Overlay4Data)
package drimlike.garment.misc {
import mx.core.*;
public class Misc4_Overlay4Data extends SpriteAsset {
}
}//package drimlike.garment.misc
Section 110
//Mouth1 (drimlike.garment.mouth.Mouth1)
package drimlike.garment.mouth {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Mouth1 extends Garment {
private var Overlay1Data:Class;
public function Mouth1(){
Overlay1Data = Mouth1_Overlay1Data;
super();
hitWidth = 50;
hitHeight = 50;
itemType = MOUTH_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.mouthPoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.mouthAsset);
}
override protected function customInit():void{
overlay = (new Overlay1Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.mouthAsset = this;
}
}
}//package drimlike.garment.mouth
Section 111
//Mouth1_Overlay1Data (drimlike.garment.mouth.Mouth1_Overlay1Data)
package drimlike.garment.mouth {
import mx.core.*;
public class Mouth1_Overlay1Data extends SpriteAsset {
}
}//package drimlike.garment.mouth
Section 112
//Mouth2 (drimlike.garment.mouth.Mouth2)
package drimlike.garment.mouth {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Mouth2 extends Garment {
private var Overlay2Data:Class;
public function Mouth2(){
Overlay2Data = Mouth2_Overlay2Data;
super();
hitWidth = 50;
hitHeight = 50;
itemType = MOUTH_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.mouthPoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.mouthAsset);
}
override protected function customInit():void{
overlay = (new Overlay2Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.mouthAsset = this;
}
}
}//package drimlike.garment.mouth
Section 113
//Mouth2_Overlay2Data (drimlike.garment.mouth.Mouth2_Overlay2Data)
package drimlike.garment.mouth {
import mx.core.*;
public class Mouth2_Overlay2Data extends SpriteAsset {
}
}//package drimlike.garment.mouth
Section 114
//Mouth3 (drimlike.garment.mouth.Mouth3)
package drimlike.garment.mouth {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
public class Mouth3 extends Garment {
private var Overlay3Data:Class;
public function Mouth3(){
Overlay3Data = Mouth3_Overlay3Data;
super();
hitWidth = 50;
hitHeight = 50;
itemType = MOUTH_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.mouthPoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.mouthAsset);
}
override protected function customInit():void{
overlay = (new Overlay3Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
Engine.getInstance().character.mouthAsset = this;
}
}
}//package drimlike.garment.mouth
Section 115
//Mouth3_Overlay3Data (drimlike.garment.mouth.Mouth3_Overlay3Data)
package drimlike.garment.mouth {
import mx.core.*;
public class Mouth3_Overlay3Data extends SpriteAsset {
}
}//package drimlike.garment.mouth
Section 116
//Mouth4 (drimlike.garment.mouth.Mouth4)
package drimlike.garment.mouth {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Mouth4 extends Garment {
private var Color4Data:Class;
private var Overlay4Data:Class;
public function Mouth4(){
Overlay4Data = Mouth4_Overlay4Data;
Color4Data = Mouth4_Color4Data;
super();
hitWidth = 50;
hitHeight = 50;
itemType = MOUTH_GARMENT;
catagoryType = FACE_TYPE;
targetPoint = Engine.getInstance().character.mouthPoint;
hittest = new Sprite();
hittest.graphics.beginFill(3355647, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.mouthAsset);
}
override protected function customInit():void{
color = (new Color4Data() as Sprite);
addChild(color);
overlay = (new Overlay4Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.mouthAsset = this;
if (Engine.getInstance().character.mouthFirstRun){
Engine.getInstance().character.mouthFirstRun = false;
_local1 = Engine.getInstance().character.mouthPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.mouth
Section 117
//Mouth4_Color4Data (drimlike.garment.mouth.Mouth4_Color4Data)
package drimlike.garment.mouth {
import mx.core.*;
public class Mouth4_Color4Data extends SpriteAsset {
}
}//package drimlike.garment.mouth
Section 118
//Mouth4_Overlay4Data (drimlike.garment.mouth.Mouth4_Overlay4Data)
package drimlike.garment.mouth {
import mx.core.*;
public class Mouth4_Overlay4Data extends SpriteAsset {
}
}//package drimlike.garment.mouth
Section 119
//Top1 (drimlike.garment.top.Top1)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top1 extends Garment {
private var Asset1Data:Class;
private var Overlay1Data:Class;
private var Color1Data:Class;
public function Top1(){
Color1Data = Top1_Color1Data;
Asset1Data = Top1_Asset1Data;
Overlay1Data = Top1_Overlay1Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color1Data() as Sprite);
addChild(color);
asset = (new Asset1Data() as Sprite);
addChild(asset);
overlay = (new Overlay1Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 120
//Top1_Asset1Data (drimlike.garment.top.Top1_Asset1Data)
package drimlike.garment.top {
import mx.core.*;
public class Top1_Asset1Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 121
//Top1_Color1Data (drimlike.garment.top.Top1_Color1Data)
package drimlike.garment.top {
import mx.core.*;
public class Top1_Color1Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 122
//Top1_Overlay1Data (drimlike.garment.top.Top1_Overlay1Data)
package drimlike.garment.top {
import mx.core.*;
public class Top1_Overlay1Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 123
//Top10 (drimlike.garment.top.Top10)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top10 extends Garment {
private var Overlay10Data:Class;
private var Asset10Data:Class;
private var Color10Data:Class;
public function Top10(){
Color10Data = Top10_Color10Data;
Asset10Data = Top10_Asset10Data;
Overlay10Data = Top10_Overlay10Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color10Data() as Sprite);
addChild(color);
asset = (new Asset10Data() as Sprite);
addChild(asset);
overlay = (new Overlay10Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.topAsset = this;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.top
Section 124
//Top10_Asset10Data (drimlike.garment.top.Top10_Asset10Data)
package drimlike.garment.top {
import mx.core.*;
public class Top10_Asset10Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 125
//Top10_Color10Data (drimlike.garment.top.Top10_Color10Data)
package drimlike.garment.top {
import mx.core.*;
public class Top10_Color10Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 126
//Top10_Overlay10Data (drimlike.garment.top.Top10_Overlay10Data)
package drimlike.garment.top {
import mx.core.*;
public class Top10_Overlay10Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 127
//Top11 (drimlike.garment.top.Top11)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top11 extends Garment {
private var Overlay11Data:Class;
private var Asset11Data:Class;
private var Color11Data:Class;
public function Top11(){
Color11Data = Top11_Color11Data;
Asset11Data = Top11_Asset11Data;
Overlay11Data = Top11_Overlay11Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color11Data() as Sprite);
addChild(color);
asset = (new Asset11Data() as Sprite);
addChild(asset);
overlay = (new Overlay11Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.topAsset = this;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.top
Section 128
//Top11_Asset11Data (drimlike.garment.top.Top11_Asset11Data)
package drimlike.garment.top {
import mx.core.*;
public class Top11_Asset11Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 129
//Top11_Color11Data (drimlike.garment.top.Top11_Color11Data)
package drimlike.garment.top {
import mx.core.*;
public class Top11_Color11Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 130
//Top11_Overlay11Data (drimlike.garment.top.Top11_Overlay11Data)
package drimlike.garment.top {
import mx.core.*;
public class Top11_Overlay11Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 131
//Top12 (drimlike.garment.top.Top12)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top12 extends Garment {
private var Asset12Data:Class;
private var Overlay12Data:Class;
private var Color12Data:Class;
public function Top12(){
Color12Data = Top12_Color12Data;
Asset12Data = Top12_Asset12Data;
Overlay12Data = Top12_Overlay12Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
asset = (new Asset12Data() as Sprite);
addChild(asset);
color = (new Color12Data() as Sprite);
addChild(color);
overlay = (new Overlay12Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.topAsset = this;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.top
Section 132
//Top12_Asset12Data (drimlike.garment.top.Top12_Asset12Data)
package drimlike.garment.top {
import mx.core.*;
public class Top12_Asset12Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 133
//Top12_Color12Data (drimlike.garment.top.Top12_Color12Data)
package drimlike.garment.top {
import mx.core.*;
public class Top12_Color12Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 134
//Top12_Overlay12Data (drimlike.garment.top.Top12_Overlay12Data)
package drimlike.garment.top {
import mx.core.*;
public class Top12_Overlay12Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 135
//Top2 (drimlike.garment.top.Top2)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top2 extends Garment {
private var Overlay2Data:Class;
private var Color2Data:Class;
private var Asset2Data:Class;
public function Top2(){
Color2Data = Top2_Color2Data;
Asset2Data = Top2_Asset2Data;
Overlay2Data = Top2_Overlay2Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color2Data() as Sprite);
addChild(color);
asset = (new Asset2Data() as Sprite);
addChild(asset);
overlay = (new Overlay2Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 136
//Top2_Asset2Data (drimlike.garment.top.Top2_Asset2Data)
package drimlike.garment.top {
import mx.core.*;
public class Top2_Asset2Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 137
//Top2_Color2Data (drimlike.garment.top.Top2_Color2Data)
package drimlike.garment.top {
import mx.core.*;
public class Top2_Color2Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 138
//Top2_Overlay2Data (drimlike.garment.top.Top2_Overlay2Data)
package drimlike.garment.top {
import mx.core.*;
public class Top2_Overlay2Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 139
//Top3 (drimlike.garment.top.Top3)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top3 extends Garment {
private var Color3Data:Class;
private var Overlay3Data:Class;
private var Asset3Data:Class;
public function Top3(){
Color3Data = Top3_Color3Data;
Asset3Data = Top3_Asset3Data;
Overlay3Data = Top3_Overlay3Data;
super();
hitWidth = 120;
hitHeight = 100;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color3Data() as Sprite);
addChild(color);
asset = (new Asset3Data() as Sprite);
addChild(asset);
overlay = (new Overlay3Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 140
//Top3_Asset3Data (drimlike.garment.top.Top3_Asset3Data)
package drimlike.garment.top {
import mx.core.*;
public class Top3_Asset3Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 141
//Top3_Color3Data (drimlike.garment.top.Top3_Color3Data)
package drimlike.garment.top {
import mx.core.*;
public class Top3_Color3Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 142
//Top3_Overlay3Data (drimlike.garment.top.Top3_Overlay3Data)
package drimlike.garment.top {
import mx.core.*;
public class Top3_Overlay3Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 143
//Top4 (drimlike.garment.top.Top4)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top4 extends Garment {
private var Color4Data:Class;
private var Overlay4Data:Class;
public function Top4(){
Color4Data = Top4_Color4Data;
Overlay4Data = Top4_Overlay4Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color4Data() as Sprite);
addChild(color);
overlay = (new Overlay4Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 144
//Top4_Color4Data (drimlike.garment.top.Top4_Color4Data)
package drimlike.garment.top {
import mx.core.*;
public class Top4_Color4Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 145
//Top4_Overlay4Data (drimlike.garment.top.Top4_Overlay4Data)
package drimlike.garment.top {
import mx.core.*;
public class Top4_Overlay4Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 146
//Top5 (drimlike.garment.top.Top5)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top5 extends Garment {
private var Asset5Data:Class;
private var Overlay5Data:Class;
private var Color5Data:Class;
public function Top5(){
Color5Data = Top5_Color5Data;
Asset5Data = Top5_Asset5Data;
Overlay5Data = Top5_Overlay5Data;
super();
hitWidth = 120;
hitHeight = 100;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color5Data() as Sprite);
addChild(color);
asset = (new Asset5Data() as Sprite);
addChild(asset);
overlay = (new Overlay5Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 147
//Top5_Asset5Data (drimlike.garment.top.Top5_Asset5Data)
package drimlike.garment.top {
import mx.core.*;
public class Top5_Asset5Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 148
//Top5_Color5Data (drimlike.garment.top.Top5_Color5Data)
package drimlike.garment.top {
import mx.core.*;
public class Top5_Color5Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 149
//Top5_Overlay5Data (drimlike.garment.top.Top5_Overlay5Data)
package drimlike.garment.top {
import mx.core.*;
public class Top5_Overlay5Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 150
//Top6 (drimlike.garment.top.Top6)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top6 extends Garment {
private var Overlay6Data:Class;
private var Color6Data:Class;
public function Top6(){
Color6Data = Top6_Color6Data;
Overlay6Data = Top6_Overlay6Data;
super();
hitWidth = 120;
hitHeight = 100;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color6Data() as Sprite);
addChild(color);
overlay = (new Overlay6Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 151
//Top6_Color6Data (drimlike.garment.top.Top6_Color6Data)
package drimlike.garment.top {
import mx.core.*;
public class Top6_Color6Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 152
//Top6_Overlay6Data (drimlike.garment.top.Top6_Overlay6Data)
package drimlike.garment.top {
import mx.core.*;
public class Top6_Overlay6Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 153
//Top7 (drimlike.garment.top.Top7)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top7 extends Garment {
private var Asset7Data:Class;
private var Overlay7Data:Class;
private var Color7Data:Class;
public function Top7(){
Color7Data = Top7_Color7Data;
Asset7Data = Top7_Asset7Data;
Overlay7Data = Top7_Overlay7Data;
super();
hitWidth = 120;
hitHeight = 100;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color7Data() as Sprite);
addChild(color);
asset = (new Asset7Data() as Sprite);
addChild(asset);
overlay = (new Overlay7Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 154
//Top7_Asset7Data (drimlike.garment.top.Top7_Asset7Data)
package drimlike.garment.top {
import mx.core.*;
public class Top7_Asset7Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 155
//Top7_Color7Data (drimlike.garment.top.Top7_Color7Data)
package drimlike.garment.top {
import mx.core.*;
public class Top7_Color7Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 156
//Top7_Overlay7Data (drimlike.garment.top.Top7_Overlay7Data)
package drimlike.garment.top {
import mx.core.*;
public class Top7_Overlay7Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 157
//Top8 (drimlike.garment.top.Top8)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top8 extends Garment {
private var Asset8Data:Class;
private var Overlay8Data:Class;
private var Color8Data:Class;
public function Top8(){
Color8Data = Top8_Color8Data;
Asset8Data = Top8_Asset8Data;
Overlay8Data = Top8_Overlay8Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color8Data() as Sprite);
addChild(color);
asset = (new Asset8Data() as Sprite);
addChild(asset);
overlay = (new Overlay8Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
Engine.getInstance().character.topAsset = this;
}
}
}//package drimlike.garment.top
Section 158
//Top8_Asset8Data (drimlike.garment.top.Top8_Asset8Data)
package drimlike.garment.top {
import mx.core.*;
public class Top8_Asset8Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 159
//Top8_Color8Data (drimlike.garment.top.Top8_Color8Data)
package drimlike.garment.top {
import mx.core.*;
public class Top8_Color8Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 160
//Top8_Overlay8Data (drimlike.garment.top.Top8_Overlay8Data)
package drimlike.garment.top {
import mx.core.*;
public class Top8_Overlay8Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 161
//Top9 (drimlike.garment.top.Top9)
package drimlike.garment.top {
import flash.display.*;
import drimlike.data.*;
import drimlike.garment.*;
import flash.geom.*;
import flash.system.*;
public class Top9 extends Garment {
private var Overlay9Data:Class;
private var Color9Data:Class;
private var Asset9Data:Class;
public function Top9(){
Color9Data = Top9_Color9Data;
Asset9Data = Top9_Asset9Data;
Overlay9Data = Top9_Overlay9Data;
super();
hitWidth = 100;
hitHeight = 60;
itemType = TOP_GARMENT;
catagoryType = TOP_TYPE;
targetPoint = Engine.getInstance().character.topPoint;
hittest = new Sprite();
hittest.graphics.beginFill(0x333333, 0);
hittest.graphics.drawRect((-(hitWidth) / 2), (-(hitHeight) / 2), hitWidth, hitHeight);
hittest.graphics.endFill();
hittest.x = 0;
hittest.y = 0;
addChild(hittest);
}
override public function isSlotBusy():Garment{
return (Engine.getInstance().character.topAsset);
}
override protected function customInit():void{
color = (new Color9Data() as Sprite);
addChild(color);
asset = (new Asset9Data() as Sprite);
addChild(asset);
overlay = (new Overlay9Data() as Sprite);
addChild(overlay);
}
override public function setToSlot():void{
var _local1:Point;
Engine.getInstance().character.topAsset = this;
if (Engine.getInstance().character.topFirstRun){
Engine.getInstance().character.topFirstRun = false;
_local1 = Engine.getInstance().character.topPoint;
switch (Capabilities.language){
default:
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Click on any item to change it's color", 5000);
break;
case "de":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Klicken auf irgend eine Sache um sie zu ändern die Farbe", 5000);
break;
case "es":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Haz clic en cualquier elemento para que cambie de color", 5000);
break;
case "fr":
Engine.getInstance().tooltipCommander.openToolTip(_local1.x, (_local1.y - 50), "Clique sur les objets pour changer les couleurs", 5000);
break;
};
};
}
}
}//package drimlike.garment.top
Section 162
//Top9_Asset9Data (drimlike.garment.top.Top9_Asset9Data)
package drimlike.garment.top {
import mx.core.*;
public class Top9_Asset9Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 163
//Top9_Color9Data (drimlike.garment.top.Top9_Color9Data)
package drimlike.garment.top {
import mx.core.*;
public class Top9_Color9Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 164
//Top9_Overlay9Data (drimlike.garment.top.Top9_Overlay9Data)
package drimlike.garment.top {
import mx.core.*;
public class Top9_Overlay9Data extends SpriteAsset {
}
}//package drimlike.garment.top
Section 165
//Garment (drimlike.garment.Garment)
package drimlike.garment {
import flash.events.*;
import flash.display.*;
import drimlike.events.*;
import drimlike.data.*;
import flash.geom.*;
import flash.utils.*;
import caurina.transitions.*;
public class Garment extends Sprite {
public var isPlaced:Boolean;
protected var scaleLarge:Number;// = 1
public var isDragging:Boolean;
protected var colorSwatchArray:Array;
private var selected:Sprite;
protected var hitHeight:int;
protected var hittest:Sprite;
private var timer:Timer;
protected var overlay:Sprite;
public var catagoryType:String;
public var spawnPoint:Point;
private var timestamp1:int;
private var timestamp2:int;
public var isMouseDown:Boolean;
protected var color:Sprite;
protected var scaleSmall:Number;// = 0.5
public var itemType:String;
protected var asset:Sprite;
protected var hitWidth:int;
protected var targetPoint:Point;
public static const HAIR_GARMENT:String = "hairGarment";
public static const MISC_GARMENT:String = "miscGarment";
public static const HAT_TYPE:String = "hatType";
public static const EYE_GARMENT:String = "eyeGarment";
public static const TOP_TYPE:String = "topType";
public static const TOP_GARMENT:String = "topGarment";
public static const MISC_TYPE:String = "miscType";
public static const FACE_TYPE:String = "faceType";
public static const HAIR_TYPE:String = "hairType";
public static const HAT_GARMENT:String = "hatGarment";
public static const MOUTH_GARMENT:String = "mouthGarment";
public function Garment(){
colorSwatchArray = new Array("0xC89D64", "0x905E36", "0x673A15", "0x41281B", "0x000000", "0xFFFFFF", "0xFFEC00", "0xFBBD1A", "0xF18700", "0xED172D", "0xBD0926", "0x7D042E", "0xBEE1E6", "0x66CFDC", "0x0096A1", "0x0098D4", "0x0D30A1", "0x13235B", "0xF19DAE", "0xED007A", "0xC40066", "0xA02483", "0x622294", "0x610D68", "0xDEDA00", "0x96BD0D", "0x40A52B", "0x00632E", "0xB3B3B3", "0x4D4D4D");
super();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function onClickOrDrag(_arg1:TimerEvent):void{
var _local2:Sprite;
timer.stop();
if (isMouseDown == false){
if (selected != hittest){
if (isPlaced){
openColorPallette();
};
};
} else {
startDragging();
for each (_local2 in Engine.getInstance().sandbox.containerArray) {
if (_local2 != this.parent){
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
};
};
};
}
public function toTargetPoint():void{
var _local1:Garment = isSlotBusy();
if (_local1 != null){
_local1.toSpawnPoint();
};
setToSlot();
isPlaced = true;
Tweener.addTween(this, {x:targetPoint.x, y:targetPoint.y, time:0.5, transition:"easeOutExpo"});
}
public function shrink():void{
Tweener.addTween(this, {scaleX:scaleSmall, scaleY:scaleSmall, time:0.5, transition:"easeOutExpo"});
}
private function init(_arg1:Event):void{
timer = new Timer(150);
timer.addEventListener(TimerEvent.TIMER, onClickOrDrag);
customInit();
colorCheck();
assetCheck();
hittest.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
hittest.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
hittest.useHandCursor = true;
hittest.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
overlay.mouseEnabled = false;
this.scaleX = (this.scaleY = scaleSmall);
}
public function grow():void{
Tweener.addTween(this, {scaleX:scaleLarge, scaleY:scaleLarge, time:0.5, transition:"easeOutExpo"});
}
private function onColorClick(_arg1:MouseEvent):void{
if (isPlaced){
Engine.getInstance().colorSelector.open(Sprite(_arg1.target), colorSwatchArray);
};
}
public function toSpawnPoint():void{
isPlaced = false;
if (Engine.getInstance().inventory.selectedButton.caragoryType != catagoryType){
Tweener.addTween(this, {x:spawnPoint.x, y:spawnPoint.y, time:0.5, transition:"easeOutExpo", onComplete:shrink});
} else {
Tweener.addTween(this, {x:spawnPoint.x, y:spawnPoint.y, time:0.5, transition:"easeOutExpo", onComplete:shrink});
};
}
private function onAssetClick(_arg1:MouseEvent):void{
if (isPlaced){
Engine.getInstance().colorSelector.open(Sprite(_arg1.target), colorSwatchArray);
};
}
protected function customInit():void{
}
public function setToSlot():void{
}
public function reset():void{
isPlaced = false;
Tweener.addTween(this, {x:spawnPoint.x, y:spawnPoint.y, time:0.5, transition:"easeOutExpo"});
}
private function startDragging():void{
isDragging = true;
startDrag(true);
}
private function onMouseDown(_arg1:MouseEvent):void{
isMouseDown = true;
selected = (_arg1.target as Sprite);
timer.start();
}
private function onMouseUp(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:Point;
var _local4:Number;
var _local5:int;
var _local6:Sprite;
isMouseDown = false;
if (isDragging){
stopDrag();
isDragging = false;
_local2 = new Point(stage.mouseX, stage.mouseY);
_local3 = targetPoint;
_local4 = Point.distance(_local2, _local3);
_local5 = 100;
if (this.catagoryType == MISC_TYPE){
_local5 = 200;
};
if (_local4 < _local5){
toTargetPoint();
} else {
if (isPlaced){
if (Engine.getInstance().inventory.selectedButton.caragoryType != this.catagoryType){
Tweener.addTween(this, {alpha:0, time:0.5});
};
};
toSpawnPoint();
};
for each (_local6 in Engine.getInstance().sandbox.containerArray) {
_local6.mouseChildren = true;
_local6.mouseEnabled = true;
};
};
}
public function isSlotBusy():Garment{
return (null);
}
private function colorCheck():void{
if (color != null){
color.mouseEnabled = true;
color.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
color.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
color.useHandCursor = true;
color.buttonMode = true;
};
}
private function onMouseOut(_arg1:MouseEvent):void{
if (!isPlaced){
Engine.getInstance().sandbox.dispatchEvent(new GarmentEvent(this, GarmentEvent.GARMENT_ROLLOUT_EVENT));
};
}
private function openColorPallette():void{
Engine.getInstance().colorSelector.open(selected, colorSwatchArray);
}
private function assetCheck():void{
if (asset != null){
asset.mouseEnabled = true;
asset.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
asset.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
asset.buttonMode = true;
asset.useHandCursor = true;
};
}
private function onMouseOver(_arg1:MouseEvent):void{
if (!isPlaced){
Engine.getInstance().sandbox.dispatchEvent(new GarmentEvent(this, GarmentEvent.GARMENT_ROLLOVER_EVENT));
};
}
}
}//package drimlike.garment
Section 166
//FaceButton (drimlike.inventory.buttons.FaceButton)
package drimlike.inventory.buttons {
import flash.display.*;
public class FaceButton extends InvButton {
private var OverlayData:Class;
private var OutlineData:Class;
private var ColorData:Class;
public function FaceButton(){
ColorData = FaceButton_ColorData;
OutlineData = FaceButton_OutlineData;
OverlayData = FaceButton_OverlayData;
super();
}
override protected function init():void{
caragoryType = FACE_TYPE;
color = (new ColorData() as Sprite);
addChild(color);
overlay = (new OverlayData() as Sprite);
addChild(overlay);
outline = (new OutlineData() as Sprite);
addChild(outline);
super.init();
}
}
}//package drimlike.inventory.buttons
Section 167
//FaceButton_ColorData (drimlike.inventory.buttons.FaceButton_ColorData)
package drimlike.inventory.buttons {
import mx.core.*;
public class FaceButton_ColorData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 168
//FaceButton_OutlineData (drimlike.inventory.buttons.FaceButton_OutlineData)
package drimlike.inventory.buttons {
import mx.core.*;
public class FaceButton_OutlineData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 169
//FaceButton_OverlayData (drimlike.inventory.buttons.FaceButton_OverlayData)
package drimlike.inventory.buttons {
import mx.core.*;
public class FaceButton_OverlayData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 170
//HairButton (drimlike.inventory.buttons.HairButton)
package drimlike.inventory.buttons {
import flash.display.*;
public class HairButton extends InvButton {
private var OverlayData:Class;
private var OutlineData:Class;
private var ColorData:Class;
public function HairButton(){
ColorData = HairButton_ColorData;
OutlineData = HairButton_OutlineData;
OverlayData = HairButton_OverlayData;
super();
}
override protected function init():void{
caragoryType = HAIR_TYPE;
color = (new ColorData() as Sprite);
addChild(color);
overlay = (new OverlayData() as Sprite);
addChild(overlay);
outline = (new OutlineData() as Sprite);
addChild(outline);
super.init();
}
}
}//package drimlike.inventory.buttons
Section 171
//HairButton_ColorData (drimlike.inventory.buttons.HairButton_ColorData)
package drimlike.inventory.buttons {
import mx.core.*;
public class HairButton_ColorData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 172
//HairButton_OutlineData (drimlike.inventory.buttons.HairButton_OutlineData)
package drimlike.inventory.buttons {
import mx.core.*;
public class HairButton_OutlineData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 173
//HairButton_OverlayData (drimlike.inventory.buttons.HairButton_OverlayData)
package drimlike.inventory.buttons {
import mx.core.*;
public class HairButton_OverlayData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 174
//HatButton (drimlike.inventory.buttons.HatButton)
package drimlike.inventory.buttons {
import flash.display.*;
public class HatButton extends InvButton {
private var OverlayData:Class;
private var OutlineData:Class;
private var ColorData:Class;
public function HatButton(){
ColorData = HatButton_ColorData;
OutlineData = HatButton_OutlineData;
OverlayData = HatButton_OverlayData;
super();
}
override protected function init():void{
caragoryType = HAT_TYPE;
color = (new ColorData() as Sprite);
addChild(color);
overlay = (new OverlayData() as Sprite);
addChild(overlay);
outline = (new OutlineData() as Sprite);
addChild(outline);
super.init();
}
}
}//package drimlike.inventory.buttons
Section 175
//HatButton_ColorData (drimlike.inventory.buttons.HatButton_ColorData)
package drimlike.inventory.buttons {
import mx.core.*;
public class HatButton_ColorData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 176
//HatButton_OutlineData (drimlike.inventory.buttons.HatButton_OutlineData)
package drimlike.inventory.buttons {
import mx.core.*;
public class HatButton_OutlineData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 177
//HatButton_OverlayData (drimlike.inventory.buttons.HatButton_OverlayData)
package drimlike.inventory.buttons {
import mx.core.*;
public class HatButton_OverlayData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 178
//InvButton (drimlike.inventory.buttons.InvButton)
package drimlike.inventory.buttons {
import flash.events.*;
import flash.display.*;
import drimlike.events.*;
import drimlike.data.*;
import flash.media.*;
import caurina.transitions.*;
public class InvButton extends Sprite {
protected var outline:Sprite;
protected var color:Sprite;
public var isSelected:Boolean;
private var sound:Sound;
protected var overlay:Sprite;
public var caragoryType:String;
private var DefaultSoundData:Class;
public static var FACE_TYPE:String = "faceType";
public static var TOP_TYPE:String = "topType";
public static var SCENE_TYPE:String = "sceneType";
public static var MISC_TYPE:String = "miscType";
public static var HAIR_TYPE:String = "hairType";
public static var HAT_TYPE:String = "hatType";
public function InvButton(){
DefaultSoundData = InvButton_DefaultSoundData;
super();
init();
}
private function onMouseOver(_arg1:MouseEvent):void{
sound.play(0, 0);
Engine.getInstance().sandbox.dispatchEvent(new InventoryEvent(this, InventoryEvent.INVENTORY_BUTTON_OVER_EVENT));
}
public function toGreen():void{
Tweener.addTween(color, {_color:"0xBE2992", time:1, transition:"easeOutExpo"});
}
public function shrink():void{
Tweener.addTween(color, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
}
public function activate():void{
isSelected = true;
toGreen();
grow();
}
public function toGray():void{
Tweener.addTween(color, {_color:"0x979FA4", time:1, transition:"easeOutExpo"});
}
private function onMouseClick(_arg1:MouseEvent):void{
Engine.getInstance().sandbox.dispatchEvent(new InventoryEvent(this, InventoryEvent.INVENTORY_BUTTON_CLICK_EVENT));
}
public function deactivate():void{
isSelected = false;
toGray();
shrink();
}
private function onMouseOut(_arg1:MouseEvent):void{
Engine.getInstance().sandbox.dispatchEvent(new InventoryEvent(this, InventoryEvent.INVENTORY_BUTTON_OUT_EVENT));
}
protected function init():void{
this.buttonMode = true;
this.useHandCursor = true;
this.mouseChildren = false;
this.addEventListener(MouseEvent.CLICK, onMouseClick);
this.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
this.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
sound = (new DefaultSoundData() as Sound);
}
public function grow():void{
Tweener.addTween(color, {scaleX:1.35, scaleY:1.35, time:1, transition:"easeOutExpo"});
}
}
}//package drimlike.inventory.buttons
Section 179
//InvButton_DefaultSoundData (drimlike.inventory.buttons.InvButton_DefaultSoundData)
package drimlike.inventory.buttons {
import mx.core.*;
public class InvButton_DefaultSoundData extends SoundAsset {
}
}//package drimlike.inventory.buttons
Section 180
//MiscButton (drimlike.inventory.buttons.MiscButton)
package drimlike.inventory.buttons {
import flash.display.*;
public class MiscButton extends InvButton {
private var OverlayData:Class;
private var OutlineData:Class;
private var ColorData:Class;
public function MiscButton(){
ColorData = MiscButton_ColorData;
OutlineData = MiscButton_OutlineData;
OverlayData = MiscButton_OverlayData;
super();
}
override protected function init():void{
caragoryType = MISC_TYPE;
color = (new ColorData() as Sprite);
addChild(color);
overlay = (new OverlayData() as Sprite);
addChild(overlay);
outline = (new OutlineData() as Sprite);
addChild(outline);
super.init();
}
}
}//package drimlike.inventory.buttons
Section 181
//MiscButton_ColorData (drimlike.inventory.buttons.MiscButton_ColorData)
package drimlike.inventory.buttons {
import mx.core.*;
public class MiscButton_ColorData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 182
//MiscButton_OutlineData (drimlike.inventory.buttons.MiscButton_OutlineData)
package drimlike.inventory.buttons {
import mx.core.*;
public class MiscButton_OutlineData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 183
//MiscButton_OverlayData (drimlike.inventory.buttons.MiscButton_OverlayData)
package drimlike.inventory.buttons {
import mx.core.*;
public class MiscButton_OverlayData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 184
//SceneButton (drimlike.inventory.buttons.SceneButton)
package drimlike.inventory.buttons {
import flash.display.*;
public class SceneButton extends InvButton {
private var OverlayData:Class;
private var OutlineData:Class;
private var ColorData:Class;
public function SceneButton(){
ColorData = SceneButton_ColorData;
OutlineData = SceneButton_OutlineData;
OverlayData = SceneButton_OverlayData;
super();
}
override protected function init():void{
caragoryType = SCENE_TYPE;
color = (new ColorData() as Sprite);
addChild(color);
overlay = (new OverlayData() as Sprite);
addChild(overlay);
outline = (new OutlineData() as Sprite);
addChild(outline);
super.init();
}
}
}//package drimlike.inventory.buttons
Section 185
//SceneButton_ColorData (drimlike.inventory.buttons.SceneButton_ColorData)
package drimlike.inventory.buttons {
import mx.core.*;
public class SceneButton_ColorData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 186
//SceneButton_OutlineData (drimlike.inventory.buttons.SceneButton_OutlineData)
package drimlike.inventory.buttons {
import mx.core.*;
public class SceneButton_OutlineData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 187
//SceneButton_OverlayData (drimlike.inventory.buttons.SceneButton_OverlayData)
package drimlike.inventory.buttons {
import mx.core.*;
public class SceneButton_OverlayData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 188
//TopButton (drimlike.inventory.buttons.TopButton)
package drimlike.inventory.buttons {
import flash.display.*;
public class TopButton extends InvButton {
private var OverlayData:Class;
private var OutlineData:Class;
private var ColorData:Class;
public function TopButton(){
ColorData = TopButton_ColorData;
OutlineData = TopButton_OutlineData;
OverlayData = TopButton_OverlayData;
super();
}
override protected function init():void{
caragoryType = TOP_TYPE;
color = (new ColorData() as Sprite);
addChild(color);
overlay = (new OverlayData() as Sprite);
addChild(overlay);
outline = (new OutlineData() as Sprite);
addChild(outline);
super.init();
}
}
}//package drimlike.inventory.buttons
Section 189
//TopButton_ColorData (drimlike.inventory.buttons.TopButton_ColorData)
package drimlike.inventory.buttons {
import mx.core.*;
public class TopButton_ColorData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 190
//TopButton_OutlineData (drimlike.inventory.buttons.TopButton_OutlineData)
package drimlike.inventory.buttons {
import mx.core.*;
public class TopButton_OutlineData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 191
//TopButton_OverlayData (drimlike.inventory.buttons.TopButton_OverlayData)
package drimlike.inventory.buttons {
import mx.core.*;
public class TopButton_OverlayData extends SpriteAsset {
}
}//package drimlike.inventory.buttons
Section 192
//Inventory (drimlike.inventory.Inventory)
package drimlike.inventory {
import flash.events.*;
import flash.display.*;
import drimlike.inventory.buttons.*;
import flash.utils.*;
import drimlike.garment.top.*;
import drimlike.garment.eye.*;
import drimlike.garment.mouth.*;
import drimlike.garment.hat.*;
import drimlike.garment.hair.*;
import drimlike.garment.misc.*;
public class Inventory extends Sprite {
private var InventoryPanelData:Class;
private var panel:Sprite;
public var selectedButton:InvButton;
public var navButtons:Array;
public function Inventory(){
InventoryPanelData = Inventory_InventoryPanelData;
super();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
panel = (new InventoryPanelData() as Sprite);
addChild(panel);
panel.cacheAsBitmap = true;
addInventoryButtons();
}
private function addInventoryButtons():void{
var _local1:FaceButton = new FaceButton();
_local1.x = -130;
_local1.y = -220;
addChild(_local1);
var _local2:HairButton = new HairButton();
_local2.x = -80;
_local2.y = -220;
addChild(_local2);
var _local3:TopButton = new TopButton();
_local3.x = -30;
_local3.y = -220;
addChild(_local3);
var _local4:HatButton = new HatButton();
_local4.x = 20;
_local4.y = -220;
addChild(_local4);
var _local5:MiscButton = new MiscButton();
_local5.x = 70;
_local5.y = -220;
addChild(_local5);
var _local6:SceneButton = new SceneButton();
_local6.x = 120;
_local6.y = -220;
addChild(_local6);
navButtons = new Array(_local1, _local2, _local3, _local4, _local5);
selectedButton = _local1;
var _local7:Timer = new Timer(500);
_local7.addEventListener(TimerEvent.TIMER, autoSelect);
_local7.start();
}
private function autoSelect(_arg1:TimerEvent):void{
_arg1.target.stop();
_arg1.target.removeEventListener(TimerEvent.TIMER, autoSelect);
selectedButton.activate();
}
}
}//package drimlike.inventory
Section 193
//Inventory_InventoryPanelData (drimlike.inventory.Inventory_InventoryPanelData)
package drimlike.inventory {
import mx.core.*;
public class Inventory_InventoryPanelData extends SpriteAsset {
}
}//package drimlike.inventory
Section 194
//MyGamesForGirls (drimlike.scenes.sandboxItems.MyGamesForGirls)
package drimlike.scenes.sandboxItems {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.net.*;
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=") + "baby");
};
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=") + "baby");
};
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=") + "baby");
};
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=") + "baby");
};
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 "es":
sprite = (new MyGamesForGirlsDEData() as Sprite);
glint = (new MyGamesForGirlsDEGlintData() as MovieClip);
break;
case "de":
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.scenes.sandboxItems
Section 195
//MyGamesForGirls_DefaultSoundData (drimlike.scenes.sandboxItems.MyGamesForGirls_DefaultSoundData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_DefaultSoundData extends SoundAsset {
}
}//package drimlike.scenes.sandboxItems
Section 196
//MyGamesForGirls_MyGamesForGirlsComData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsComData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsComData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 197
//MyGamesForGirls_MyGamesForGirlsComGlintData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsComGlintData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsComGlintData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 198
//MyGamesForGirls_MyGamesForGirlsDEData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsDEData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsDEData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 199
//MyGamesForGirls_MyGamesForGirlsDEGlintData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsDEGlintData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsDEGlintData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 200
//MyGamesForGirls_MyGamesForGirlsFRData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsFRData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsFRData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 201
//MyGamesForGirls_MyGamesForGirlsFRGlintData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsFRGlintData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsFRGlintData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 202
//MyGamesForGirls_MyGamesForGirlsSPData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsSPData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsSPData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 203
//MyGamesForGirls_MyGamesForGirlsSPGlintData (drimlike.scenes.sandboxItems.MyGamesForGirls_MyGamesForGirlsSPGlintData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class MyGamesForGirls_MyGamesForGirlsSPGlintData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 204
//SandboxDone (drimlike.scenes.sandboxItems.SandboxDone)
package drimlike.scenes.sandboxItems {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
public class SandboxDone extends Sprite {
private var DoneDeData:Class;
private var sound:Sound;
private var DoneSoundData:Class;
private var DoneFrData:Class;
private var textSprite:Sprite;
private var SandboxDoneButtonData:Class;
private var DoneSpData:Class;
private var background:Sprite;
private var highlight:MovieClip;
private var DoneEnData:Class;
private var SandboxDoneHighlightData:Class;
public function SandboxDone(){
SandboxDoneButtonData = SandboxDone_SandboxDoneButtonData;
SandboxDoneHighlightData = SandboxDone_SandboxDoneHighlightData;
DoneEnData = SandboxDone_DoneEnData;
DoneFrData = SandboxDone_DoneFrData;
DoneDeData = SandboxDone_DoneDeData;
DoneSpData = SandboxDone_DoneSpData;
DoneSoundData = SandboxDone_DoneSoundData;
super();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
sound = (new DoneSoundData() as Sound);
background = (new SandboxDoneButtonData() as Sprite);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
addChild(background);
switch (Capabilities.language){
default:
textSprite = (new DoneEnData() as Sprite);
break;
case "es":
textSprite = (new DoneSpData() as Sprite);
break;
case "de":
textSprite = (new DoneDeData() as Sprite);
break;
case "fr":
textSprite = (new DoneFrData() as Sprite);
break;
};
textSprite.x = 65;
textSprite.y = 20;
textSprite.mouseChildren = false;
textSprite.mouseEnabled = false;
addChild(textSprite);
highlight = (new SandboxDoneHighlightData() as MovieClip);
highlight.mouseEnabled = false;
highlight.stop();
addChild(highlight);
}
private function onRollOver(_arg1:MouseEvent):void{
sound.play(0, 0);
highlight.gotoAndPlay(1);
}
private function onRollOut(_arg1:MouseEvent):void{
highlight.gotoAndStop(0);
}
}
}//package drimlike.scenes.sandboxItems
Section 205
//SandboxDone_DoneDeData (drimlike.scenes.sandboxItems.SandboxDone_DoneDeData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_DoneDeData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 206
//SandboxDone_DoneEnData (drimlike.scenes.sandboxItems.SandboxDone_DoneEnData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_DoneEnData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 207
//SandboxDone_DoneFrData (drimlike.scenes.sandboxItems.SandboxDone_DoneFrData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_DoneFrData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 208
//SandboxDone_DoneSoundData (drimlike.scenes.sandboxItems.SandboxDone_DoneSoundData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_DoneSoundData extends SoundAsset {
}
}//package drimlike.scenes.sandboxItems
Section 209
//SandboxDone_DoneSpData (drimlike.scenes.sandboxItems.SandboxDone_DoneSpData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_DoneSpData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 210
//SandboxDone_SandboxDoneButtonData (drimlike.scenes.sandboxItems.SandboxDone_SandboxDoneButtonData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_SandboxDoneButtonData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 211
//SandboxDone_SandboxDoneHighlightData (drimlike.scenes.sandboxItems.SandboxDone_SandboxDoneHighlightData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxDone_SandboxDoneHighlightData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 212
//SandboxMoreGames (drimlike.scenes.sandboxItems.SandboxMoreGames)
package drimlike.scenes.sandboxItems {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.net.*;
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=") + "baby");
};
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=") + "baby");
};
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=") + "baby");
};
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=") + "baby");
};
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.scenes.sandboxItems
Section 213
//SandboxMoreGames_DefaultSoundData (drimlike.scenes.sandboxItems.SandboxMoreGames_DefaultSoundData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_DefaultSoundData extends SoundAsset {
}
}//package drimlike.scenes.sandboxItems
Section 214
//SandboxMoreGames_MoreGamesDeData (drimlike.scenes.sandboxItems.SandboxMoreGames_MoreGamesDeData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_MoreGamesDeData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 215
//SandboxMoreGames_MoreGamesEnData (drimlike.scenes.sandboxItems.SandboxMoreGames_MoreGamesEnData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_MoreGamesEnData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 216
//SandboxMoreGames_MoreGamesFrData (drimlike.scenes.sandboxItems.SandboxMoreGames_MoreGamesFrData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_MoreGamesFrData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 217
//SandboxMoreGames_MoreGamesSpData (drimlike.scenes.sandboxItems.SandboxMoreGames_MoreGamesSpData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_MoreGamesSpData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 218
//SandboxMoreGames_SandboxPrintButtonData (drimlike.scenes.sandboxItems.SandboxMoreGames_SandboxPrintButtonData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_SandboxPrintButtonData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 219
//SandboxMoreGames_SandboxPrintGlintData (drimlike.scenes.sandboxItems.SandboxMoreGames_SandboxPrintGlintData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxMoreGames_SandboxPrintGlintData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 220
//SandboxPrint (drimlike.scenes.sandboxItems.SandboxPrint)
package drimlike.scenes.sandboxItems {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
public class SandboxPrint extends Sprite {
private var PrintFrData:Class;
private var SandboxPrintGlintData:Class;
private var sound:Sound;
private var textSprite:Sprite;
private var PrintSpData:Class;
private var PrintEnData:Class;
private var SandboxPrintButtonData:Class;
private var background:Sprite;
private var bitmap:Bitmap;
private var highlight:MovieClip;
private var PrintDeData:Class;
private var bitmapData:BitmapData;
private var DefaultSoundData:Class;
public function SandboxPrint(){
SandboxPrintButtonData = SandboxPrint_SandboxPrintButtonData;
SandboxPrintGlintData = SandboxPrint_SandboxPrintGlintData;
PrintEnData = SandboxPrint_PrintEnData;
PrintFrData = SandboxPrint_PrintFrData;
PrintDeData = SandboxPrint_PrintDeData;
PrintSpData = SandboxPrint_PrintSpData;
DefaultSoundData = SandboxPrint_DefaultSoundData;
super();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
sound = (new DefaultSoundData() as Sound);
background = (new SandboxPrintButtonData() as Sprite);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
addChild(background);
switch (Capabilities.language){
default:
textSprite = (new PrintEnData() as Sprite);
break;
case "es":
textSprite = (new PrintSpData() as Sprite);
break;
case "de":
textSprite = (new PrintDeData() as Sprite);
break;
case "fr":
textSprite = (new PrintFrData() as Sprite);
break;
};
textSprite.x = (background.width / 2);
textSprite.y = (background.height / 2);
textSprite.mouseChildren = false;
textSprite.mouseEnabled = false;
addChild(textSprite);
highlight = (new SandboxPrintGlintData() as MovieClip);
highlight.mouseEnabled = false;
highlight.stop();
addChild(highlight);
this.buttonMode = true;
this.useHandCursor = true;
}
private function onRollOver(_arg1:MouseEvent):void{
sound.play(0, 0);
highlight.gotoAndPlay(1);
}
private function onRollOut(_arg1:MouseEvent):void{
highlight.gotoAndStop(0);
}
}
}//package drimlike.scenes.sandboxItems
Section 221
//SandboxPrint_DefaultSoundData (drimlike.scenes.sandboxItems.SandboxPrint_DefaultSoundData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_DefaultSoundData extends SoundAsset {
}
}//package drimlike.scenes.sandboxItems
Section 222
//SandboxPrint_PrintDeData (drimlike.scenes.sandboxItems.SandboxPrint_PrintDeData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_PrintDeData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 223
//SandboxPrint_PrintEnData (drimlike.scenes.sandboxItems.SandboxPrint_PrintEnData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_PrintEnData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 224
//SandboxPrint_PrintFrData (drimlike.scenes.sandboxItems.SandboxPrint_PrintFrData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_PrintFrData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 225
//SandboxPrint_PrintSpData (drimlike.scenes.sandboxItems.SandboxPrint_PrintSpData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_PrintSpData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 226
//SandboxPrint_SandboxPrintButtonData (drimlike.scenes.sandboxItems.SandboxPrint_SandboxPrintButtonData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_SandboxPrintButtonData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 227
//SandboxPrint_SandboxPrintGlintData (drimlike.scenes.sandboxItems.SandboxPrint_SandboxPrintGlintData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxPrint_SandboxPrintGlintData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 228
//SandboxReplay (drimlike.scenes.sandboxItems.SandboxReplay)
package drimlike.scenes.sandboxItems {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
public class SandboxReplay extends Sprite {
private var ReplaySpData:Class;
private var sound:Sound;
private var textSprite:Sprite;
private var ReplayEnData:Class;
private var SandboxDoneButtonData:Class;
private var background:Sprite;
private var highlight:MovieClip;
private var SandboxDoneHighlightData:Class;
private var DefaultSoundData:Class;
private var ReplayDeData:Class;
private var ReplayFrData:Class;
public function SandboxReplay(){
SandboxDoneButtonData = SandboxReplay_SandboxDoneButtonData;
SandboxDoneHighlightData = SandboxReplay_SandboxDoneHighlightData;
ReplayEnData = SandboxReplay_ReplayEnData;
ReplayFrData = SandboxReplay_ReplayFrData;
ReplayDeData = SandboxReplay_ReplayDeData;
ReplaySpData = SandboxReplay_ReplaySpData;
DefaultSoundData = SandboxReplay_DefaultSoundData;
super();
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
sound = (new DefaultSoundData() as Sound);
background = (new SandboxDoneButtonData() as Sprite);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
addChild(background);
switch (Capabilities.language){
default:
textSprite = (new ReplayEnData() as Sprite);
break;
case "es":
textSprite = (new ReplaySpData() as Sprite);
break;
case "de":
textSprite = (new ReplayDeData() as Sprite);
break;
case "fr":
textSprite = (new ReplayFrData() as Sprite);
break;
};
textSprite.x = (background.width / 2);
textSprite.y = (background.height / 2);
textSprite.mouseChildren = false;
textSprite.mouseEnabled = false;
addChild(textSprite);
highlight = (new SandboxDoneHighlightData() as MovieClip);
highlight.mouseEnabled = false;
highlight.stop();
addChild(highlight);
}
private function onRollOver(_arg1:MouseEvent):void{
sound.play(0, 0);
highlight.gotoAndPlay(1);
}
private function onRollOut(_arg1:MouseEvent):void{
highlight.gotoAndStop(0);
}
}
}//package drimlike.scenes.sandboxItems
Section 229
//SandboxReplay_DefaultSoundData (drimlike.scenes.sandboxItems.SandboxReplay_DefaultSoundData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_DefaultSoundData extends SoundAsset {
}
}//package drimlike.scenes.sandboxItems
Section 230
//SandboxReplay_ReplayDeData (drimlike.scenes.sandboxItems.SandboxReplay_ReplayDeData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_ReplayDeData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 231
//SandboxReplay_ReplayEnData (drimlike.scenes.sandboxItems.SandboxReplay_ReplayEnData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_ReplayEnData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 232
//SandboxReplay_ReplayFrData (drimlike.scenes.sandboxItems.SandboxReplay_ReplayFrData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_ReplayFrData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 233
//SandboxReplay_ReplaySpData (drimlike.scenes.sandboxItems.SandboxReplay_ReplaySpData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_ReplaySpData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 234
//SandboxReplay_SandboxDoneButtonData (drimlike.scenes.sandboxItems.SandboxReplay_SandboxDoneButtonData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_SandboxDoneButtonData extends SpriteAsset {
}
}//package drimlike.scenes.sandboxItems
Section 235
//SandboxReplay_SandboxDoneHighlightData (drimlike.scenes.sandboxItems.SandboxReplay_SandboxDoneHighlightData)
package drimlike.scenes.sandboxItems {
import mx.core.*;
public class SandboxReplay_SandboxDoneHighlightData extends MovieClipAsset {
}
}//package drimlike.scenes.sandboxItems
Section 236
//GameScene (drimlike.scenes.GameScene)
package drimlike.scenes {
import flash.events.*;
import flash.display.*;
public class GameScene extends Sprite {
public function GameScene(){
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
customInit();
}
protected function customInit():void{
}
}
}//package drimlike.scenes
Section 237
//Sandbox (drimlike.scenes.Sandbox)
package drimlike.scenes {
import flash.events.*;
import flash.display.*;
import drimlike.events.*;
import drimlike.data.*;
import drimlike.garment.*;
import drimlike.inventory.buttons.*;
import drimlike.color.*;
import drimlike.character.*;
import drimlike.xml.*;
import drimlike.inventory.*;
import drimlike.background.*;
import drimlike.tooltip.*;
import drimlike.scenes.sandboxItems.*;
import flash.geom.*;
import flash.utils.*;
import drimlike.garment.top.*;
import drimlike.garment.eye.*;
import drimlike.garment.mouth.*;
import drimlike.garment.hat.*;
import drimlike.garment.hair.*;
import drimlike.garment.misc.*;
import caurina.transitions.*;
import flash.system.*;
import flash.printing.*;
public class Sandbox extends GameScene {
private var mouths:Sprite;
private var sandboxReplay:SandboxReplay;
private var padding:Number;// = 20
private var toolTipCommander:ToolTipCommander;
private var imageFeed:XMLRotator;
private var backgroundManager:BackgroundManager;
private var myGamesForGirls:MyGamesForGirls;
private var sandboxPrint:SandboxPrint;
private var myGamesForGirlsHolder:Sprite;
public var scenesArray:Array;
private var bitmap:Bitmap;
private var tops:Sprite;
private var hats:Sprite;
private var hairs:Sprite;
private var xmlFeed:XMLFeed;
private var baby:Baby;
private var inventory:Inventory;
public var containerArray:Array;
private var eyes:Sprite;
public var garmentsArray:Array;
private var scenes:Sprite;
private var sandboxDone:SandboxDone;
private var misc:Sprite;
private var colorSelector:ColorSelector;
private var sandboxMoreGames:SandboxMoreGames;
private var bitmapData:BitmapData;
private var selectedArray:Array;
private function onGarmentMouseOver(_arg1:GarmentEvent):void{
if (_arg1.garment.isPlaced){
trace("placed");
} else {
_arg1.garment.parent.setChildIndex(_arg1.garment, (_arg1.garment.parent.numChildren - 1));
_arg1.garment.grow();
};
}
private function onSandboxDoneClick(_arg1:MouseEvent):void{
var _local2:Garment;
var _local3:int;
for each (_local2 in garmentsArray) {
if (_local2.isPlaced == false){
_local2.visible = false;
};
};
_local3 = 0;
while (_local3 < scenesArray.length) {
Sprite(scenesArray[_local3]).visible = false;
_local3++;
};
Engine.getInstance().tooltipCommander.closeToolTip();
Tweener.addTween(myGamesForGirls, {y:45, x:45, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(inventory, {x:-200, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(sandboxPrint, {x:58, time:1, transition:"easeOutExpo"});
Tweener.addTween(sandboxMoreGames, {x:58, time:1, delay:0.2, transition:"easeOutExpo"});
Tweener.addTween(sandboxDone, {y:600, time:1, transition:"easeOutExpo"});
Tweener.addTween(sandboxReplay, {y:480, time:1, transition:"easeOutExpo"});
Tweener.addTween(Engine.getInstance().xmlFeed, {y:(Engine.getInstance().xmlFeed.y + 200), time:0.5, transition:"easeOutExpo"});
Tweener.addTween(imageFeed, {x:158, time:1, transition:"easeOutExpo"});
}
override protected function customInit():void{
backgroundManager = new BackgroundManager();
addChild(backgroundManager);
Engine.getInstance().backgroundManager = backgroundManager;
baby = new Baby();
baby.x = 550;
baby.y = 250;
addChild(baby);
Engine.getInstance().character = baby;
inventory = new Inventory();
inventory.x = 180;
inventory.y = 251;
addChild(inventory);
Engine.getInstance().inventory = inventory;
eyes = new Sprite();
addChild(eyes);
mouths = new Sprite();
addChild(mouths);
hairs = new Sprite();
addChild(hairs);
tops = new Sprite();
addChild(tops);
hats = new Sprite();
addChild(hats);
misc = new Sprite();
addChild(misc);
containerArray = new Array(eyes, mouths, tops, hairs, hats, misc);
scenes = new Sprite();
addChild(scenes);
var _local1:BackgroundButton1 = new BackgroundButton1();
scenes.addChild(_local1);
var _local2:BackgroundButton2 = new BackgroundButton2();
scenes.addChild(_local2);
var _local3:BackgroundButton3 = new BackgroundButton3();
scenes.addChild(_local3);
var _local4:BackgroundButton4 = new BackgroundButton4();
scenes.addChild(_local4);
var _local5:BackgroundButton5 = new BackgroundButton5();
scenes.addChild(_local5);
var _local6:BackgroundButton6 = new BackgroundButton6();
scenes.addChild(_local6);
_local6.checkbox.visible = true;
scenesArray = new Array();
scenesArray.push(_local1, _local2, _local3, _local4, _local5, _local6);
addAllGarments();
toolTipCommander = new ToolTipCommander();
addChild(toolTipCommander);
Engine.getInstance().tooltipCommander = toolTipCommander;
xmlFeed = new XMLFeed();
addChild(xmlFeed);
Engine.getInstance().xmlFeed = xmlFeed;
colorSelector = new ColorSelector();
addChild(colorSelector);
Engine.getInstance().colorSelector = colorSelector;
addEventListener(InventoryEvent.INVENTORY_BUTTON_CLICK_EVENT, onInventoryButtonClicked);
addEventListener(InventoryEvent.INVENTORY_BUTTON_OUT_EVENT, onInventoryButtonOut);
addEventListener(InventoryEvent.INVENTORY_BUTTON_OVER_EVENT, onInventoryButtonOver);
addEventListener(GarmentEvent.GARMENT_ROLLOVER_EVENT, onGarmentMouseOver);
addEventListener(GarmentEvent.GARMENT_ROLLOUT_EVENT, onGarmentMouseOut);
switch (Capabilities.language){
default:
trace("english");
myGamesForGirls = new MyGamesForGirls();
sandboxDone = new SandboxDone();
sandboxPrint = new SandboxPrint();
sandboxMoreGames = new SandboxMoreGames();
sandboxReplay = new SandboxReplay();
Engine.getInstance().tooltipCommander.openToolTip(550, 150, "Click here to change color!", 10000);
break;
case "de":
trace("german");
myGamesForGirls = new MyGamesForGirls();
sandboxDone = new SandboxDone();
sandboxPrint = new SandboxPrint();
sandboxMoreGames = new SandboxMoreGames();
sandboxReplay = new SandboxReplay();
Engine.getInstance().tooltipCommander.openToolTip(550, 150, "Hier Klicken, die Farbe zu ändern!", 10000);
break;
case "es":
trace("spanish");
myGamesForGirls = new MyGamesForGirls();
sandboxDone = new SandboxDone();
sandboxPrint = new SandboxPrint();
sandboxMoreGames = new SandboxMoreGames();
sandboxReplay = new SandboxReplay();
Engine.getInstance().tooltipCommander.openToolTip(550, 150, "Haz clic aquí para cambiar el color!", 10000);
break;
case "fr":
trace("french");
myGamesForGirls = new MyGamesForGirls();
sandboxDone = new SandboxDone();
sandboxPrint = new SandboxPrint();
sandboxMoreGames = new SandboxMoreGames();
sandboxReplay = new SandboxReplay();
Engine.getInstance().tooltipCommander.openToolTip(550, 150, "Clique ici pour changer la couleur!", 10000);
break;
};
sandboxDone.x = 588;
sandboxDone.y = 480;
sandboxDone.buttonMode = true;
sandboxDone.useHandCursor = true;
sandboxDone.addEventListener(MouseEvent.CLICK, onSandboxDoneClick);
addChildAt(sandboxDone, (numChildren - 3));
sandboxPrint.x = -200;
sandboxPrint.y = 120;
sandboxPrint.addEventListener(MouseEvent.CLICK, onSandboxPrintClick);
addChild(sandboxPrint);
sandboxMoreGames.x = -200;
sandboxMoreGames.y = 174;
addChild(sandboxMoreGames);
sandboxReplay.x = sandboxDone.x;
sandboxReplay.y = 600;
sandboxReplay.buttonMode = true;
sandboxReplay.useHandCursor = true;
sandboxReplay.addEventListener(MouseEvent.CLICK, onSandboxReplayClick);
addChild(sandboxReplay);
myGamesForGirls.x = 18;
myGamesForGirls.y = 474;
addChild(myGamesForGirls);
imageFeed = new XMLRotator();
imageFeed.x = -200;
imageFeed.y = 365;
addChild(imageFeed);
Engine.getInstance().imageFeed = imageFeed;
}
private function print(_arg1:TimerEvent):void{
_arg1.target.stop;
_arg1.target.removeEventListener(TimerEvent.TIMER, print);
var _local2:PrintJob = new PrintJob();
var _local3:PrintJobOptions = new PrintJobOptions();
_local3.printAsBitmap = true;
if (_local2.start()){
if (this.width > _local2.pageWidth){
this.scaleX = (this.scaleY = 0.8);
};
_local2.addPage(this, new Rectangle(0, 0, stage.stageWidth, stage.stageHeight), _local3);
_local2.send();
};
this.scaleX = (this.scaleY = 1);
Tweener.addTween(sandboxPrint, {x:(sandboxPrint.x + 300), time:0.5, transition:"easeOutExpo"});
Tweener.addTween(sandboxMoreGames, {x:(sandboxMoreGames.x + 300), time:0.5, transition:"easeOutExpo"});
Tweener.addTween(sandboxReplay, {x:(sandboxReplay.x - 200), time:0.5, transition:"easeOutExpo"});
if (Engine.getInstance().soundButton != null){
Tweener.addTween(Engine.getInstance().soundButton, {x:(Engine.getInstance().soundButton.x - 200), time:0.5, transition:"easeOutExpo"});
};
Tweener.addTween(imageFeed, {x:148, time:1, transition:"easeOutExpo"});
}
private function onInventoryButtonOver(_arg1:InventoryEvent):void{
_arg1.targetButton.toGreen();
}
private function sortNavigation():void{
var _local8:Garment;
var _local9:int;
var _local10:int;
var _local11:BackgroundButton;
var _local1 = 90;
var _local2 = 150;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
for each (_local8 in garmentsArray) {
if (_local8.catagoryType == inventory.selectedButton.caragoryType){
_local8.visible = true;
switch (_local8.catagoryType){
case Garment.MISC_TYPE:
_local7 = 2;
_local1 = 100;
_local2 = 150;
_local5 = 150;
break;
case Garment.HAT_TYPE:
_local7 = 2;
_local1 = 115;
_local2 = 135;
_local5 = 120;
break;
case Garment.HAIR_TYPE:
_local7 = 2;
_local1 = 115;
_local2 = 130;
_local5 = 120;
break;
default:
_local7 = 3;
_local1 = 90;
_local2 = 135;
_local5 = 85;
break;
};
if (_local3 == _local7){
_local3 = 0;
_local4++;
};
if (!_local8.isPlaced){
_local8.x = (_local1 + (_local3 * _local5));
_local8.y = (_local2 + (_local4 * _local5));
_local8.spawnPoint = new Point(_local8.x, _local8.y);
};
Tweener.addTween(_local8, {delay:(0.05 * _local6), time:0.1, alpha:1, transition:"easeOutExpo"});
_local3++;
_local6++;
} else {
if (_local8.isPlaced == false){
_local8.alpha = 0;
_local8.visible = false;
};
};
};
if (inventory.selectedButton.caragoryType == InvButton.SCENE_TYPE){
_local1 = 50;
_local2 = 100;
_local3 = 0;
_local4 = 0;
_local9 = 150;
_local10 = 120;
_local6 = 0;
_local7 = 1;
for each (_local11 in scenesArray) {
_local11.alpha = 0;
_local11.visible = true;
_local11.x = (_local1 + (_local3 * _local9));
_local11.y = (_local2 + (_local4 * _local10));
if (_local3 == _local7){
_local3 = 0;
_local4++;
} else {
_local3++;
};
_local6++;
Tweener.addTween(_local11, {alpha:1, time:0.5, delay:(_local6 * 0.05)});
};
} else {
for each (_local11 in scenesArray) {
_local11.visible = false;
};
};
}
private function addAllGarments():void{
var _local36:Garment;
garmentsArray = new Array();
var _local1:Misc1 = new Misc1();
var _local2:Misc2 = new Misc2();
var _local3:Misc3 = new Misc3();
var _local4:Misc4 = new Misc4();
var _local5:Top1 = new Top1();
var _local6:Top2 = new Top2();
var _local7:Top3 = new Top3();
var _local8:Top4 = new Top4();
var _local9:Top5 = new Top5();
var _local10:Top6 = new Top6();
var _local11:Top7 = new Top7();
var _local12:Top8 = new Top8();
var _local13:Top9 = new Top9();
var _local14:Top10 = new Top10();
var _local15:Top11 = new Top11();
var _local16:Top12 = new Top12();
var _local17:Eye1 = new Eye1();
var _local18:Eye2 = new Eye2();
var _local19:Eye3 = new Eye3();
var _local20:Eye4 = new Eye4();
var _local21:Mouth1 = new Mouth1();
var _local22:Mouth2 = new Mouth2();
var _local23:Mouth3 = new Mouth3();
var _local24:Mouth4 = new Mouth4();
var _local25:Hat1 = new Hat1();
var _local26:Hat2 = new Hat2();
var _local27:Hat3 = new Hat3();
var _local28:Hat4 = new Hat4();
var _local29:Hat5 = new Hat5();
var _local30:Hair1 = new Hair1();
var _local31:Hair2 = new Hair2();
var _local32:Hair3 = new Hair3();
var _local33:Hair4 = new Hair4();
var _local34:Hair5 = new Hair5();
var _local35:Hair6 = new Hair6();
garmentsArray.push(_local1, _local2, _local3, _local4, _local5, _local6, _local7, _local8, _local9, _local10, _local11, _local12, _local13, _local14, _local15, _local16, _local17, _local18, _local19, _local20, _local21, _local22, _local23, _local24, _local25, _local26, _local27, _local28, _local29, _local30, _local31, _local32, _local33, _local34, _local35);
for each (_local36 in garmentsArray) {
_local36.x = -100;
_local36.y = -100;
_local36.alpha = 0;
_local36.mouseEnabled = false;
switch (_local36.itemType){
case Garment.EYE_GARMENT:
eyes.addChild(_local36);
break;
case Garment.HAIR_GARMENT:
hairs.addChild(_local36);
break;
case Garment.HAT_GARMENT:
hats.addChild(_local36);
break;
case Garment.MISC_GARMENT:
misc.addChild(_local36);
break;
case Garment.MOUTH_GARMENT:
mouths.addChild(_local36);
break;
case Garment.TOP_GARMENT:
tops.addChild(_local36);
break;
};
};
sortNavigation();
}
private function onSandboxReplayClick(_arg1:MouseEvent):void{
var _local2:BackgroundButton;
Engine.getInstance().tooltipCommander.closeToolTip();
if (Engine.getInstance().character.eyeAsset != null){
Garment(Engine.getInstance().character.eyeAsset).toSpawnPoint();
Engine.getInstance().character.eyeAsset = null;
};
if (Engine.getInstance().character.hairAsset != null){
Garment(Engine.getInstance().character.hairAsset).toSpawnPoint();
Engine.getInstance().character.hairAsset = null;
};
if (Engine.getInstance().character.hatAsset != null){
Garment(Engine.getInstance().character.hatAsset).toSpawnPoint();
Engine.getInstance().character.hatAsset = null;
};
if (Engine.getInstance().character.misc1Asset != null){
Garment(Engine.getInstance().character.misc1Asset).toSpawnPoint();
Engine.getInstance().character.misc1Asset = null;
};
if (Engine.getInstance().character.mouthAsset != null){
Garment(Engine.getInstance().character.mouthAsset).toSpawnPoint();
Engine.getInstance().character.mouthAsset = null;
};
if (Engine.getInstance().character.topAsset != null){
Garment(Engine.getInstance().character.topAsset).toSpawnPoint();
Engine.getInstance().character.topAsset = null;
};
inventory.selectedButton.deactivate();
inventory.selectedButton = InvButton(inventory.navButtons[0]);
inventory.selectedButton.activate();
sortNavigation();
Tweener.addTween(myGamesForGirls, {y:474, x:18, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(inventory, {x:180, time:0.5, delay:0.1, transition:"easeOutExpo", onComplete:sortNavigation()});
Tweener.addTween(sandboxPrint, {x:-200, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(sandboxMoreGames, {x:-200, time:0.5, delay:0, transition:"easeOutExpo"});
Tweener.addTween(sandboxDone, {y:480, time:1, transition:"easeOutExpo"});
Tweener.addTween(sandboxReplay, {y:600, time:1, transition:"easeOutExpo"});
Tweener.addTween(Engine.getInstance().xmlFeed, {y:(Engine.getInstance().xmlFeed.y - 200), time:0.5, transition:"easeOutExpo"});
Tweener.addTween(imageFeed, {x:-200, time:1, transition:"easeOutExpo"});
Engine.getInstance().backgroundManager.changeBackground(BackgroundManager.BACKGROUND_6);
for each (_local2 in scenesArray) {
_local2.checkbox.visible = false;
};
BackgroundButton(scenesArray[(scenesArray.length - 1)]).checkbox.visible = true;
}
private function onSandboxPrintClick(_arg1:MouseEvent):void{
var _local2:Timer = new Timer(1000);
_local2.addEventListener(TimerEvent.TIMER, print);
_local2.start();
Tweener.addTween(sandboxPrint, {x:(sandboxPrint.x - 300), time:0.5, transition:"easeOutExpo"});
Tweener.addTween(sandboxMoreGames, {x:(sandboxMoreGames.x - 300), time:0.5, transition:"easeOutExpo"});
Tweener.addTween(sandboxReplay, {x:(sandboxReplay.x + 200), time:0.5, transition:"easeOutExpo"});
if (Engine.getInstance().soundButton != null){
Tweener.addTween(Engine.getInstance().soundButton, {x:(Engine.getInstance().soundButton.x + 200), time:0.5, transition:"easeOutExpo"});
};
Tweener.addTween(imageFeed, {x:-200, time:1, transition:"easeOutExpo"});
}
private function onGarmentMouseOut(_arg1:GarmentEvent):void{
if (_arg1.garment.isPlaced == false){
_arg1.garment.shrink();
} else {
_arg1.garment.grow();
};
}
private function onInventoryButtonClicked(_arg1:InventoryEvent):void{
if (inventory.selectedButton != null){
inventory.selectedButton.deactivate();
};
_arg1.targetButton.activate();
inventory.selectedButton = _arg1.targetButton;
sortNavigation();
}
private function onInventoryButtonOut(_arg1:InventoryEvent):void{
if (_arg1.targetButton.isSelected){
} else {
_arg1.targetButton.toGray();
};
}
}
}//package drimlike.scenes
Section 238
//SoundButton (drimlike.sounds.SoundButton)
package drimlike.sounds {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
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.stop();
soundOn.visible = false;
soundOff.visible = true;
} else {
isSoundOn = true;
Engine.getInstance().soundManager.play();
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.play();
this.mouseChildren = false;
this.buttonMode = true;
this.useHandCursor = true;
this.addEventListener(MouseEvent.CLICK, onMouseClick);
}
}
}//package drimlike.sounds
Section 239
//SoundButton_SoundOffData (drimlike.sounds.SoundButton_SoundOffData)
package drimlike.sounds {
import mx.core.*;
public class SoundButton_SoundOffData extends SpriteAsset {
}
}//package drimlike.sounds
Section 240
//SoundButton_SoundOnData (drimlike.sounds.SoundButton_SoundOnData)
package drimlike.sounds {
import mx.core.*;
public class SoundButton_SoundOnData extends SpriteAsset {
}
}//package drimlike.sounds
Section 241
//SoundManager (drimlike.sounds.SoundManager)
package drimlike.sounds {
import flash.media.*;
public class SoundManager {
private var tune:SoundChannel;
private var TuneData:Class;
private var sound:Sound;
public function SoundManager(){
TuneData = SoundManager_TuneData;
super();
sound = (new TuneData() as Sound);
}
public function stop():void{
tune.stop();
}
public function play():void{
if (tune == null){
tune = sound.play(0, 9999);
} else {
tune.stop();
tune = null;
tune = sound.play(0, 9999);
};
}
}
}//package drimlike.sounds
Section 242
//SoundManager_TuneData (drimlike.sounds.SoundManager_TuneData)
package drimlike.sounds {
import mx.core.*;
public class SoundManager_TuneData extends SoundAsset {
}
}//package drimlike.sounds
Section 243
//ToolTip (drimlike.tooltip.ToolTip)
package drimlike.tooltip {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import caurina.transitions.*;
public class ToolTip extends Sprite {
private var timer:Timer;
private var message:String;
private var ToolTipData:Class;
private var padding:int;// = 3
private var tf:TextField;
private var background:Sprite;
private var source:Sprite;
private var timeNo:Number;
public function ToolTip(_arg1:String, _arg2:Number){
ToolTipData = ToolTip_ToolTipData;
super();
message = _arg1;
timeNo = _arg2;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function onTimer(_arg1:TimerEvent):void{
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, onTimer);
close();
}
private function init(_arg1:Event):void{
background = (new ToolTipData() as Sprite);
background.width = 5;
background.height = 5;
background.alpha = 0;
addChild(background);
var _local2:TextFormat = new TextFormat();
_local2.align = TextFormatAlign.CENTER;
_local2.font = "Trebuchet MS";
tf = new TextField();
tf.defaultTextFormat = _local2;
tf.selectable = false;
tf.autoSize = TextFieldAutoSize.LEFT;
tf.mouseEnabled = false;
tf.blendMode = BlendMode.LAYER;
tf.text = message;
tf.x = (-(tf.width) / 2);
tf.y = 0;
tf.alpha = 0;
addChild(tf);
source = new Sprite();
source.graphics.beginFill(0xFFFFFF, 1);
source.graphics.lineTo(14, 0);
source.graphics.lineTo(7, 7);
source.graphics.lineTo(0, 0);
source.graphics.endFill();
source.x = (-(source.width) / 2);
addChild(source);
source.alpha = 0;
Tweener.addTween(source, {y:10, time:2, transition:"easeOutExpo"});
Tweener.addTween(source, {alpha:1, time:1});
Tweener.addTween(background, {width:(tf.width + 10), height:tf.height, time:2, transition:"easeOutElastic"});
Tweener.addTween(background, {alpha:1, time:1});
Tweener.addTween(tf, {y:-10, time:1, delay:0.5, transition:"easeOutExpo"});
Tweener.addTween(tf, {alpha:1, time:1, delay:0.5});
timer = new Timer(timeNo);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
}
public function close():void{
var destroy:Function;
destroy = function ():void{
removeChild(source);
removeChild(background);
removeChild(tf);
parent.removeChild(this);
};
Tweener.addTween(this, {alpha:0, y:(this.y - 10), time:0.5, transition:"easeOutExpo", onComplete:destroy});
}
}
}//package drimlike.tooltip
Section 244
//ToolTip_ToolTipData (drimlike.tooltip.ToolTip_ToolTipData)
package drimlike.tooltip {
import mx.core.*;
public class ToolTip_ToolTipData extends SpriteAsset {
}
}//package drimlike.tooltip
Section 245
//ToolTipCommander (drimlike.tooltip.ToolTipCommander)
package drimlike.tooltip {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class ToolTipCommander extends Sprite {
private var toolTip:ToolTip;
private var timer:Timer;
private var isInUse:Boolean;// = false
private var ToolTipData:Class;
public function ToolTipCommander(){
ToolTipData = ToolTipCommander_ToolTipData;
super();
this.mouseEnabled = false;
this.mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
}
public function openToolTip(_arg1:Number, _arg2:Number, _arg3:String, _arg4:Number):void{
if (toolTip != null){
toolTip.close();
};
toolTip = new ToolTip(_arg3, _arg4);
toolTip.mouseEnabled = false;
toolTip.x = _arg1;
toolTip.y = _arg2;
addChild(toolTip);
}
public function closeToolTip():void{
if (toolTip){
toolTip.close();
};
}
}
}//package drimlike.tooltip
Section 246
//ToolTipCommander_ToolTipData (drimlike.tooltip.ToolTipCommander_ToolTipData)
package drimlike.tooltip {
import mx.core.*;
public class ToolTipCommander_ToolTipData extends SpriteAsset {
}
}//package drimlike.tooltip
Section 247
//XMLFeed (drimlike.xml.XMLFeed)
package drimlike.xml {
import flash.events.*;
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=") + "baby")), 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 248
//XMLFeed_XMLFeedButton (drimlike.xml.XMLFeed_XMLFeedButton)
package drimlike.xml {
import mx.core.*;
public class XMLFeed_XMLFeedButton extends SpriteAsset {
}
}//package drimlike.xml
Section 249
//XMLFeed_XMLFeedHighlight (drimlike.xml.XMLFeed_XMLFeedHighlight)
package drimlike.xml {
import mx.core.*;
public class XMLFeed_XMLFeedHighlight extends MovieClipAsset {
}
}//package drimlike.xml
Section 250
//XMLFeed_XMLFeedIcon (drimlike.xml.XMLFeed_XMLFeedIcon)
package drimlike.xml {
import mx.core.*;
public class XMLFeed_XMLFeedIcon extends MovieClipAsset {
}
}//package drimlike.xml
Section 251
//XMLFeed_XMLFeedMask (drimlike.xml.XMLFeed_XMLFeedMask)
package drimlike.xml {
import mx.core.*;
public class XMLFeed_XMLFeedMask extends SpriteAsset {
}
}//package drimlike.xml
Section 252
//XMLFeedItem (drimlike.xml.XMLFeedItem)
package drimlike.xml {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
import flash.net.*;
import flash.text.*;
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 253
//XMLRotator (drimlike.xml.XMLRotator)
package drimlike.xml {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.filters.*;
import caurina.transitions.*;
import flash.system.*;
public class XMLRotator extends Sprite {
private var items:Array;
private var XMLRotatorGirls:Class;
private var timer:Timer;
private var homepage:String;
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 rotatorGirls:Sprite;
private var background:Sprite;
private var itemsXML:XMLList;
private var scrollSprite:Sprite;
public var isScrolling:Boolean;// = true
private var counter:int;
private var rightButton:XMLRotatorButtonRight;
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=") + "baby")), 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);
rotatorGirls = (new XMLRotatorGirls() as Sprite);
rotatorGirls.alpha = 0;
addChildAt(rotatorGirls, 0);
Tweener.addTween(rotatorGirls, {y:-100, alpha:1, time:0.5, transition:"easeOutExpo"});
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 254
//XMLRotator_XMLRotatorBackground (drimlike.xml.XMLRotator_XMLRotatorBackground)
package drimlike.xml {
import mx.core.*;
public class XMLRotator_XMLRotatorBackground extends SpriteAsset {
}
}//package drimlike.xml
Section 255
//XMLRotator_XMLRotatorButtonHighlight (drimlike.xml.XMLRotator_XMLRotatorButtonHighlight)
package drimlike.xml {
import mx.core.*;
public class XMLRotator_XMLRotatorButtonHighlight extends SpriteAsset {
}
}//package drimlike.xml
Section 256
//XMLRotator_XMLRotatorGirls (drimlike.xml.XMLRotator_XMLRotatorGirls)
package drimlike.xml {
import mx.core.*;
public class XMLRotator_XMLRotatorGirls extends SpriteAsset {
}
}//package drimlike.xml
Section 257
//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 258
//XMLRotatorButtonLeft_XMLRotatorButtonHighlight (drimlike.xml.XMLRotatorButtonLeft_XMLRotatorButtonHighlight)
package drimlike.xml {
import mx.core.*;
public class XMLRotatorButtonLeft_XMLRotatorButtonHighlight extends SpriteAsset {
}
}//package drimlike.xml
Section 259
//XMLRotatorButtonLeft_XMLRotatorLeft (drimlike.xml.XMLRotatorButtonLeft_XMLRotatorLeft)
package drimlike.xml {
import mx.core.*;
public class XMLRotatorButtonLeft_XMLRotatorLeft extends SpriteAsset {
}
}//package drimlike.xml
Section 260
//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 261
//XMLRotatorButtonRight_XMLRotatorButtonHighlight (drimlike.xml.XMLRotatorButtonRight_XMLRotatorButtonHighlight)
package drimlike.xml {
import mx.core.*;
public class XMLRotatorButtonRight_XMLRotatorButtonHighlight extends SpriteAsset {
}
}//package drimlike.xml
Section 262
//XMLRotatorButtonRight_XMLRotatorRight (drimlike.xml.XMLRotatorButtonRight_XMLRotatorRight)
package drimlike.xml {
import mx.core.*;
public class XMLRotatorButtonRight_XMLRotatorRight extends SpriteAsset {
}
}//package drimlike.xml
Section 263
//XMLRotatorItem (drimlike.xml.XMLRotatorItem)
package drimlike.xml {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
import flash.net.*;
import flash.filters.*;
import caurina.transitions.*;
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 264
//XMLRotatorItem_XMLRotatorMask (drimlike.xml.XMLRotatorItem_XMLRotatorMask)
package drimlike.xml {
import mx.core.*;
public class XMLRotatorItem_XMLRotatorMask extends MovieClipAsset {
}
}//package drimlike.xml
Section 265
//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 266
//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 267
//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 268
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 269
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 270
//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 271
//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 272
//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 273
//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 274
//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 275
//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 276
//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 277
//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 278
//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 279
//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 280
//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 281
//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 282
//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 283
//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 284
//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 285
//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 286
//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 287
//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 288
//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 289
//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 290
//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 291
//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 292
//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 293
//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 294
//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 295
//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 296
//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 297
//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 298
//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 299
//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 300
//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 301
//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 302
//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 303
//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 304
//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 305
//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 306
//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 307
//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 308
//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 309
//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 310
//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 311
//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 312
//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 313
//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 314
//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 315
//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 316
//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 317
//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 318
//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 319
//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 320
//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 321
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import drimlike.data.*;
import drimlike.sounds.*;
import drimlike.color.*;
import drimlike.scenes.*;
import drimlike.character.*;
import caurina.transitions.properties.*;
import flash.utils.*;
public class Main extends Sprite {
private var soundButton:SoundButton;
private var colorSelector:ColorSelector;
private var sandbox:Sandbox;
private var sandboxMask:Sprite;
private var baby:Baby;
private var soundManager:SoundManager;
public function Main(){
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function onTimer(_arg1:TimerEvent):void{
_arg1.target.stop();
Engine.getInstance().soundButton = soundButton;
soundButton = new SoundButton();
soundButton.x = 702;
soundButton.y = 26;
addChild(soundButton);
}
private function init(_arg1:Event=null):void{
sandboxMask = new Sprite();
sandboxMask.graphics.beginFill(0xFFFFFF, 0);
sandboxMask.graphics.drawRect(0, 0, 728, 530);
sandboxMask.graphics.endFill();
addChild(sandboxMask);
ColorShortcuts.init();
if (sandbox == null){
sandbox = new Sandbox();
addChild(sandbox);
Engine.getInstance().sandbox = sandbox;
sandbox.mask = sandboxMask;
};
Engine.getInstance().soundManager = new SoundManager();
var _local2:Timer = new Timer(500, 0);
_local2.addEventListener(TimerEvent.TIMER, onTimer);
_local2.start();
}
}
}//package
Section 322
//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 = "baby";
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;
}
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 323
//Preload_BackgroundData (Preload_BackgroundData)
package {
import mx.core.*;
public class Preload_BackgroundData extends SpriteAsset {
}
}//package
Section 324
//Preload_BurstData (Preload_BurstData)
package {
import mx.core.*;
public class Preload_BurstData extends SoundAsset {
}
}//package
Section 325
//Preload_GirlsHeadsData (Preload_GirlsHeadsData)
package {
import mx.core.*;
public class Preload_GirlsHeadsData extends SpriteAsset {
}
}//package
Section 326
//Preload_Glint (Preload_Glint)
package {
import mx.core.*;
public class Preload_Glint extends MovieClipAsset {
}
}//package
Section 327
//Preload_LoadingBarData (Preload_LoadingBarData)
package {
import mx.core.*;
public class Preload_LoadingBarData extends SpriteAsset {
}
}//package
Section 328
//Preload_LoadingBarHolderData (Preload_LoadingBarHolderData)
package {
import mx.core.*;
public class Preload_LoadingBarHolderData extends SpriteAsset {
}
}//package
Section 329
//Preload_MyGames4GirlsCOMData (Preload_MyGames4GirlsCOMData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsCOMData extends SpriteAsset {
}
}//package
Section 330
//Preload_MyGames4GirlsCOMGlintData (Preload_MyGames4GirlsCOMGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsCOMGlintData extends MovieClipAsset {
}
}//package
Section 331
//Preload_MyGames4GirlsDEData (Preload_MyGames4GirlsDEData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsDEData extends SpriteAsset {
}
}//package
Section 332
//Preload_MyGames4GirlsDEGlintData (Preload_MyGames4GirlsDEGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsDEGlintData extends MovieClipAsset {
}
}//package
Section 333
//Preload_MyGames4GirlsFRData (Preload_MyGames4GirlsFRData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsFRData extends SpriteAsset {
}
}//package
Section 334
//Preload_MyGames4GirlsFRGlintData (Preload_MyGames4GirlsFRGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsFRGlintData extends MovieClipAsset {
}
}//package
Section 335
//Preload_MyGames4GirlsSPData (Preload_MyGames4GirlsSPData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsSPData extends SpriteAsset {
}
}//package
Section 336
//Preload_MyGames4GirlsSPGlintData (Preload_MyGames4GirlsSPGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsSPGlintData extends MovieClipAsset {
}
}//package
Section 337
//Preload_PlayDEData (Preload_PlayDEData)
package {
import mx.core.*;
public class Preload_PlayDEData extends SpriteAsset {
}
}//package
Section 338
//Preload_PlayENData (Preload_PlayENData)
package {
import mx.core.*;
public class Preload_PlayENData extends SpriteAsset {
}
}//package
Section 339
//Preload_PlayFRData (Preload_PlayFRData)
package {
import mx.core.*;
public class Preload_PlayFRData extends SpriteAsset {
}
}//package
Section 340
//Preload_PlaySPData (Preload_PlaySPData)
package {
import mx.core.*;
public class Preload_PlaySPData extends SpriteAsset {
}
}//package
Section 341
//Preload_Stars1Data (Preload_Stars1Data)
package {
import mx.core.*;
public class Preload_Stars1Data extends SpriteAsset {
}
}//package