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
//FilterShortcuts (caurina.transitions.properties.FilterShortcuts)
package caurina.transitions.properties {
import flash.geom.*;
import flash.filters.*;
import flash.display.*;
import caurina.transitions.*;
public class FilterShortcuts {
public function FilterShortcuts(){
trace("This is an static class and should not be instantiated.");
}
public static function init():void{
Tweener.registerSpecialPropertySplitter("_filter", _filter_splitter);
Tweener.registerSpecialProperty("_Bevel_angle", _filter_property_get, _filter_property_set, [BevelFilter, "angle"]);
Tweener.registerSpecialProperty("_Bevel_blurX", _filter_property_get, _filter_property_set, [BevelFilter, "blurX"]);
Tweener.registerSpecialProperty("_Bevel_blurY", _filter_property_get, _filter_property_set, [BevelFilter, "blurY"]);
Tweener.registerSpecialProperty("_Bevel_distance", _filter_property_get, _filter_property_set, [BevelFilter, "distance"]);
Tweener.registerSpecialProperty("_Bevel_highlightAlpha", _filter_property_get, _filter_property_set, [BevelFilter, "highlightAlpha"]);
Tweener.registerSpecialPropertySplitter("_Bevel_highlightColor", _generic_color_splitter, ["_Bevel_highlightColor_r", "_Bevel_highlightColor_g", "_Bevel_highlightColor_b"]);
Tweener.registerSpecialProperty("_Bevel_highlightColor_r", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "r"]);
Tweener.registerSpecialProperty("_Bevel_highlightColor_g", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "g"]);
Tweener.registerSpecialProperty("_Bevel_highlightColor_b", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "b"]);
Tweener.registerSpecialProperty("_Bevel_knockout", _filter_property_get, _filter_property_set, [BevelFilter, "knockout"]);
Tweener.registerSpecialProperty("_Bevel_quality", _filter_property_get, _filter_property_set, [BevelFilter, "quality"]);
Tweener.registerSpecialProperty("_Bevel_shadowAlpha", _filter_property_get, _filter_property_set, [BevelFilter, "shadowAlpha"]);
Tweener.registerSpecialPropertySplitter("_Bevel_shadowColor", _generic_color_splitter, ["_Bevel_shadowColor_r", "_Bevel_shadowColor_g", "_Bevel_shadowColor_b"]);
Tweener.registerSpecialProperty("_Bevel_shadowColor_r", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "r"]);
Tweener.registerSpecialProperty("_Bevel_shadowColor_g", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "g"]);
Tweener.registerSpecialProperty("_Bevel_shadowColor_b", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "b"]);
Tweener.registerSpecialProperty("_Bevel_strength", _filter_property_get, _filter_property_set, [BevelFilter, "strength"]);
Tweener.registerSpecialProperty("_Bevel_type", _filter_property_get, _filter_property_set, [BevelFilter, "type"]);
Tweener.registerSpecialProperty("_Blur_blurX", _filter_property_get, _filter_property_set, [BlurFilter, "blurX"]);
Tweener.registerSpecialProperty("_Blur_blurY", _filter_property_get, _filter_property_set, [BlurFilter, "blurY"]);
Tweener.registerSpecialProperty("_Blur_quality", _filter_property_get, _filter_property_set, [BlurFilter, "quality"]);
Tweener.registerSpecialPropertySplitter("_ColorMatrix_matrix", _generic_matrix_splitter, [[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ["_ColorMatrix_matrix_rr", "_ColorMatrix_matrix_rg", "_ColorMatrix_matrix_rb", "_ColorMatrix_matrix_ra", "_ColorMatrix_matrix_ro", "_ColorMatrix_matrix_gr", "_ColorMatrix_matrix_gg", "_ColorMatrix_matrix_gb", "_ColorMatrix_matrix_ga", "_ColorMatrix_matrix_go", "_ColorMatrix_matrix_br", "_ColorMatrix_matrix_bg", "_ColorMatrix_matrix_bb", "_ColorMatrix_matrix_ba", "_ColorMatrix_matrix_bo", "_ColorMatrix_matrix_ar", "_ColorMatrix_matrix_ag", "_ColorMatrix_matrix_ab", "_ColorMatrix_matrix_aa", "_ColorMatrix_matrix_ao"]]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_rr", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 0]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_rg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 1]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_rb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 2]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ra", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 3]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ro", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 4]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_gr", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 5]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_gg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 6]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_gb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 7]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ga", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 8]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_go", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 9]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_br", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 10]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_bg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 11]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_bb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 12]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ba", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 13]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_bo", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 14]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ar", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 15]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ag", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 16]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ab", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 17]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_aa", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 18]);
Tweener.registerSpecialProperty("_ColorMatrix_matrix_ao", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 19]);
Tweener.registerSpecialProperty("_Convolution_alpha", _filter_property_get, _filter_property_set, [ConvolutionFilter, "alpha"]);
Tweener.registerSpecialProperty("_Convolution_bias", _filter_property_get, _filter_property_set, [ConvolutionFilter, "bias"]);
Tweener.registerSpecialProperty("_Convolution_clamp", _filter_property_get, _filter_property_set, [ConvolutionFilter, "clamp"]);
Tweener.registerSpecialPropertySplitter("_Convolution_color", _generic_color_splitter, ["_Convolution_color_r", "_Convolution_color_g", "_Convolution_color_b"]);
Tweener.registerSpecialProperty("_Convolution_color_r", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "r"]);
Tweener.registerSpecialProperty("_Convolution_color_g", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "g"]);
Tweener.registerSpecialProperty("_Convolution_color_b", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "b"]);
Tweener.registerSpecialProperty("_Convolution_divisor", _filter_property_get, _filter_property_set, [ConvolutionFilter, "divisor"]);
Tweener.registerSpecialProperty("_Convolution_matrixX", _filter_property_get, _filter_property_set, [ConvolutionFilter, "matrixX"]);
Tweener.registerSpecialProperty("_Convolution_matrixY", _filter_property_get, _filter_property_set, [ConvolutionFilter, "matrixY"]);
Tweener.registerSpecialProperty("_Convolution_preserveAlpha", _filter_property_get, _filter_property_set, [ConvolutionFilter, "preserveAlpha"]);
Tweener.registerSpecialProperty("_DisplacementMap_alpha", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "alpha"]);
Tweener.registerSpecialPropertySplitter("_DisplacementMap_color", _generic_color_splitter, ["_DisplacementMap_color_r", "_DisplacementMap_color_r", "_DisplacementMap_color_r"]);
Tweener.registerSpecialProperty("_DisplacementMap_color_r", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "r"]);
Tweener.registerSpecialProperty("_DisplacementMap_color_g", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "g"]);
Tweener.registerSpecialProperty("_DisplacementMap_color_b", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "b"]);
Tweener.registerSpecialProperty("_DisplacementMap_componentX", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "componentX"]);
Tweener.registerSpecialProperty("_DisplacementMap_componentY", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "componentY"]);
Tweener.registerSpecialProperty("_DisplacementMap_mapBitmap", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapBitmap"]);
Tweener.registerSpecialPropertySplitter("_DisplacementMap_mapPoint", _generic_point_splitter, ["_DisplacementMap_mapPoint_x", "_DisplacementMap_mapPoint_y"]);
Tweener.registerSpecialProperty("_DisplacementMap_mapPoint_x", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapPoint", "point", "x"]);
Tweener.registerSpecialProperty("_DisplacementMap_mapPoint_y", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapPoint", "point", "y"]);
Tweener.registerSpecialProperty("_DisplacementMap_mode", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mode"]);
Tweener.registerSpecialProperty("_DisplacementMap_scaleX", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "scaleX"]);
Tweener.registerSpecialProperty("_DisplacementMap_scaleY", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "scaleY"]);
Tweener.registerSpecialProperty("_DropShadow_alpha", _filter_property_get, _filter_property_set, [DropShadowFilter, "alpha"]);
Tweener.registerSpecialProperty("_DropShadow_angle", _filter_property_get, _filter_property_set, [DropShadowFilter, "angle"]);
Tweener.registerSpecialProperty("_DropShadow_blurX", _filter_property_get, _filter_property_set, [DropShadowFilter, "blurX"]);
Tweener.registerSpecialProperty("_DropShadow_blurY", _filter_property_get, _filter_property_set, [DropShadowFilter, "blurY"]);
Tweener.registerSpecialPropertySplitter("_DropShadow_color", _generic_color_splitter, ["_DropShadow_color_r", "_DropShadow_color_g", "_DropShadow_color_b"]);
Tweener.registerSpecialProperty("_DropShadow_color_r", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "r"]);
Tweener.registerSpecialProperty("_DropShadow_color_g", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "g"]);
Tweener.registerSpecialProperty("_DropShadow_color_b", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "b"]);
Tweener.registerSpecialProperty("_DropShadow_distance", _filter_property_get, _filter_property_set, [DropShadowFilter, "distance"]);
Tweener.registerSpecialProperty("_DropShadow_hideObject", _filter_property_get, _filter_property_set, [DropShadowFilter, "hideObject"]);
Tweener.registerSpecialProperty("_DropShadow_inner", _filter_property_get, _filter_property_set, [DropShadowFilter, "inner"]);
Tweener.registerSpecialProperty("_DropShadow_knockout", _filter_property_get, _filter_property_set, [DropShadowFilter, "knockout"]);
Tweener.registerSpecialProperty("_DropShadow_quality", _filter_property_get, _filter_property_set, [DropShadowFilter, "quality"]);
Tweener.registerSpecialProperty("_DropShadow_strength", _filter_property_get, _filter_property_set, [DropShadowFilter, "strength"]);
Tweener.registerSpecialProperty("_Glow_alpha", _filter_property_get, _filter_property_set, [GlowFilter, "alpha"]);
Tweener.registerSpecialProperty("_Glow_blurX", _filter_property_get, _filter_property_set, [GlowFilter, "blurX"]);
Tweener.registerSpecialProperty("_Glow_blurY", _filter_property_get, _filter_property_set, [GlowFilter, "blurY"]);
Tweener.registerSpecialPropertySplitter("_Glow_color", _generic_color_splitter, ["_Glow_color_r", "_Glow_color_g", "_Glow_color_b"]);
Tweener.registerSpecialProperty("_Glow_color_r", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "r"]);
Tweener.registerSpecialProperty("_Glow_color_g", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "g"]);
Tweener.registerSpecialProperty("_Glow_color_b", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "b"]);
Tweener.registerSpecialProperty("_Glow_inner", _filter_property_get, _filter_property_set, [GlowFilter, "inner"]);
Tweener.registerSpecialProperty("_Glow_knockout", _filter_property_get, _filter_property_set, [GlowFilter, "knockout"]);
Tweener.registerSpecialProperty("_Glow_quality", _filter_property_get, _filter_property_set, [GlowFilter, "quality"]);
Tweener.registerSpecialProperty("_Glow_strength", _filter_property_get, _filter_property_set, [GlowFilter, "strength"]);
Tweener.registerSpecialProperty("_GradientBevel_angle", _filter_property_get, _filter_property_set, [GradientBevelFilter, "angle"]);
Tweener.registerSpecialProperty("_GradientBevel_blurX", _filter_property_get, _filter_property_set, [GradientBevelFilter, "blurX"]);
Tweener.registerSpecialProperty("_GradientBevel_blurY", _filter_property_get, _filter_property_set, [GradientBevelFilter, "blurY"]);
Tweener.registerSpecialProperty("_GradientBevel_distance", _filter_property_get, _filter_property_set, [GradientBevelFilter, "distance"]);
Tweener.registerSpecialProperty("_GradientBevel_quality", _filter_property_get, _filter_property_set, [GradientBevelFilter, "quality"]);
Tweener.registerSpecialProperty("_GradientBevel_strength", _filter_property_get, _filter_property_set, [GradientBevelFilter, "strength"]);
Tweener.registerSpecialProperty("_GradientBevel_type", _filter_property_get, _filter_property_set, [GradientBevelFilter, "type"]);
Tweener.registerSpecialProperty("_GradientGlow_angle", _filter_property_get, _filter_property_set, [GradientGlowFilter, "angle"]);
Tweener.registerSpecialProperty("_GradientGlow_blurX", _filter_property_get, _filter_property_set, [GradientGlowFilter, "blurX"]);
Tweener.registerSpecialProperty("_GradientGlow_blurY", _filter_property_get, _filter_property_set, [GradientGlowFilter, "blurY"]);
Tweener.registerSpecialProperty("_GradientGlow_distance", _filter_property_get, _filter_property_set, [GradientGlowFilter, "distance"]);
Tweener.registerSpecialProperty("_GradientGlow_knockout", _filter_property_get, _filter_property_set, [GradientGlowFilter, "knockout"]);
Tweener.registerSpecialProperty("_GradientGlow_quality", _filter_property_get, _filter_property_set, [GradientGlowFilter, "quality"]);
Tweener.registerSpecialProperty("_GradientGlow_strength", _filter_property_get, _filter_property_set, [GradientGlowFilter, "strength"]);
Tweener.registerSpecialProperty("_GradientGlow_type", _filter_property_get, _filter_property_set, [GradientGlowFilter, "type"]);
}
public static function _filter_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{
var _local5:Number;
var _local9:Object;
var _local10:String;
var _local4:Array = _arg1.filters;
var _local6:Object = _arg2[0];
var _local7:String = _arg2[1];
var _local8:String = _arg2[2];
_local5 = 0;
while (_local5 < _local4.length) {
if ((_local4[_local5] is Class(_local6))){
if (_local8 == "color"){
_local10 = _arg2[3];
if (_local10 == "r"){
return (AuxFunctions.numberToR(_local4[_local5][_local7]));
};
if (_local10 == "g"){
return (AuxFunctions.numberToG(_local4[_local5][_local7]));
};
if (_local10 == "b"){
return (AuxFunctions.numberToB(_local4[_local5][_local7]));
};
} else {
if (_local8 == "matrix"){
return (_local4[_local5][_local7][_arg2[3]]);
};
if (_local8 == "point"){
return (_local4[_local5][_local7][_arg2[3]]);
};
return (_local4[_local5][_local7]);
};
};
_local5++;
};
switch (_local6){
case BevelFilter:
_local9 = {angle:NaN, blurX:0, blurY:0, distance:0, highlightAlpha:1, highlightColor:NaN, knockout:null, quality:NaN, shadowAlpha:1, shadowColor:NaN, strength:2, type:null};
break;
case BlurFilter:
_local9 = {blurX:0, blurY:0, quality:NaN};
break;
case ColorMatrixFilter:
_local9 = {matrix:[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]};
break;
case ConvolutionFilter:
_local9 = {alpha:0, bias:0, clamp:null, color:NaN, divisor:1, matrix:[1], matrixX:1, matrixY:1, preserveAlpha:null};
break;
case DisplacementMapFilter:
_local9 = {alpha:0, color:NaN, componentX:null, componentY:null, mapBitmap:null, mapPoint:null, mode:null, scaleX:0, scaleY:0};
break;
case DropShadowFilter:
_local9 = {distance:0, angle:NaN, color:NaN, alpha:1, blurX:0, blurY:0, strength:1, quality:NaN, inner:null, knockout:null, hideObject:null};
break;
case GlowFilter:
_local9 = {alpha:1, blurX:0, blurY:0, color:NaN, inner:null, knockout:null, quality:NaN, strength:2};
break;
case GradientBevelFilter:
_local9 = {alphas:null, angle:NaN, blurX:0, blurY:0, colors:null, distance:0, knockout:null, quality:NaN, ratios:NaN, strength:1, type:null};
break;
case GradientGlowFilter:
_local9 = {alphas:null, angle:NaN, blurX:0, blurY:0, colors:null, distance:0, knockout:null, quality:NaN, ratios:NaN, strength:1, type:null};
break;
};
if (_local8 == "color"){
return (NaN);
};
if (_local8 == "matrix"){
return (_local9[_local7][_arg2[3]]);
};
if (_local8 == "point"){
return (_local9[_local7][_arg2[3]]);
};
return (_local9[_local7]);
}
public static function _filter_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{
var _local6:Number;
var _local10:BitmapFilter;
var _local11:String;
var _local12:Array;
var _local13:Point;
var _local5:Array = _arg1.filters;
var _local7:Object = _arg3[0];
var _local8:String = _arg3[1];
var _local9:String = _arg3[2];
_local6 = 0;
while (_local6 < _local5.length) {
if ((_local5[_local6] is Class(_local7))){
if (_local9 == "color"){
_local11 = _arg3[3];
if (_local11 == "r"){
_local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFFFF) | (_arg2 << 16));
};
if (_local11 == "g"){
_local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFF00FF) | (_arg2 << 8));
};
if (_local11 == "b"){
_local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFFFF00) | _arg2);
};
} else {
if (_local9 == "matrix"){
_local12 = _local5[_local6][_local8];
_local12[_arg3[3]] = _arg2;
_local5[_local6][_local8] = _local12;
} else {
if (_local9 == "point"){
_local13 = Point(_local5[_local6][_local8]);
_local13[_arg3[3]] = _arg2;
_local5[_local6][_local8] = _local13;
} else {
_local5[_local6][_local8] = _arg2;
};
};
};
_arg1.filters = _local5;
return;
};
_local6++;
};
if (_local5 == null){
_local5 = new Array();
};
switch (_local7){
case BevelFilter:
_local10 = new BevelFilter(0, 45, 0xFFFFFF, 1, 0, 1, 0, 0);
break;
case BlurFilter:
_local10 = new BlurFilter(0, 0);
break;
case ColorMatrixFilter:
_local10 = new ColorMatrixFilter([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]);
break;
case ConvolutionFilter:
_local10 = new ConvolutionFilter(1, 1, [1], 1, 0, true, true, 0, 0);
break;
case DisplacementMapFilter:
_local10 = new DisplacementMapFilter(new BitmapData(10, 10), new Point(0, 0), 0, 1, 0, 0);
break;
case DropShadowFilter:
_local10 = new DropShadowFilter(0, 45, 0, 1, 0, 0);
break;
case GlowFilter:
_local10 = new GlowFilter(0xFF0000, 1, 0, 0);
break;
case GradientBevelFilter:
_local10 = new GradientBevelFilter(0, 45, [0xFFFFFF, 0], [1, 1], [32, 223], 0, 0);
break;
case GradientGlowFilter:
_local10 = new GradientGlowFilter(0, 45, [0xFFFFFF, 0], [1, 1], [32, 223], 0, 0);
break;
};
_local5.push(_local10);
_arg1.filters = _local5;
_filter_property_set(_arg1, _arg2, _arg3);
}
public static function _generic_color_splitter(_arg1:Number, _arg2:Array):Array{
var _local3:Array = new Array();
_local3.push({name:_arg2[0], value:AuxFunctions.numberToR(_arg1)});
_local3.push({name:_arg2[1], value:AuxFunctions.numberToG(_arg1)});
_local3.push({name:_arg2[2], value:AuxFunctions.numberToB(_arg1)});
return (_local3);
}
public static function _generic_point_splitter(_arg1:Point, _arg2:Array):Array{
var _local3:Array = new Array();
_local3.push({name:_arg2[0], value:_arg1.x});
_local3.push({name:_arg2[1], value:_arg1.y});
return (_local3);
}
public static function _generic_matrix_splitter(_arg1:Array, _arg2:Array):Array{
if (_arg1 == null){
_arg1 = _arg2[0].concat();
};
var _local3:Array = new Array();
var _local4:Number = 0;
while (_local4 < _arg1.length) {
_local3.push({name:_arg2[1][_local4], value:_arg1[_local4]});
_local4++;
};
return (_local3);
}
public static function _filter_splitter(_arg1:BitmapFilter, _arg2:Array, _arg3:Object=null):Array{
var _local4:Array = new Array();
if ((_arg1 is BevelFilter)){
_local4.push({name:"_Bevel_angle", value:BevelFilter(_arg1).angle});
_local4.push({name:"_Bevel_blurX", value:BevelFilter(_arg1).blurX});
_local4.push({name:"_Bevel_blurY", value:BevelFilter(_arg1).blurY});
_local4.push({name:"_Bevel_distance", value:BevelFilter(_arg1).distance});
_local4.push({name:"_Bevel_highlightAlpha", value:BevelFilter(_arg1).highlightAlpha});
_local4.push({name:"_Bevel_highlightColor", value:BevelFilter(_arg1).highlightColor});
_local4.push({name:"_Bevel_knockout", value:BevelFilter(_arg1).knockout});
_local4.push({name:"_Bevel_quality", value:BevelFilter(_arg1).quality});
_local4.push({name:"_Bevel_shadowAlpha", value:BevelFilter(_arg1).shadowAlpha});
_local4.push({name:"_Bevel_shadowColor", value:BevelFilter(_arg1).shadowColor});
_local4.push({name:"_Bevel_strength", value:BevelFilter(_arg1).strength});
_local4.push({name:"_Bevel_type", value:BevelFilter(_arg1).type});
} else {
if ((_arg1 is BlurFilter)){
_local4.push({name:"_Blur_blurX", value:BlurFilter(_arg1).blurX});
_local4.push({name:"_Blur_blurY", value:BlurFilter(_arg1).blurY});
_local4.push({name:"_Blur_quality", value:BlurFilter(_arg1).quality});
} else {
if ((_arg1 is ColorMatrixFilter)){
_local4.push({name:"_ColorMatrix_matrix", value:ColorMatrixFilter(_arg1).matrix});
} else {
if ((_arg1 is ConvolutionFilter)){
_local4.push({name:"_Convolution_alpha", value:ConvolutionFilter(_arg1).alpha});
_local4.push({name:"_Convolution_bias", value:ConvolutionFilter(_arg1).bias});
_local4.push({name:"_Convolution_clamp", value:ConvolutionFilter(_arg1).clamp});
_local4.push({name:"_Convolution_color", value:ConvolutionFilter(_arg1).color});
_local4.push({name:"_Convolution_divisor", value:ConvolutionFilter(_arg1).divisor});
_local4.push({name:"_Convolution_matrixX", value:ConvolutionFilter(_arg1).matrixX});
_local4.push({name:"_Convolution_matrixY", value:ConvolutionFilter(_arg1).matrixY});
_local4.push({name:"_Convolution_preserveAlpha", value:ConvolutionFilter(_arg1).preserveAlpha});
} else {
if ((_arg1 is DisplacementMapFilter)){
_local4.push({name:"_DisplacementMap_alpha", value:DisplacementMapFilter(_arg1).alpha});
_local4.push({name:"_DisplacementMap_color", value:DisplacementMapFilter(_arg1).color});
_local4.push({name:"_DisplacementMap_componentX", value:DisplacementMapFilter(_arg1).componentX});
_local4.push({name:"_DisplacementMap_componentY", value:DisplacementMapFilter(_arg1).componentY});
_local4.push({name:"_DisplacementMap_mapBitmap", value:DisplacementMapFilter(_arg1).mapBitmap});
_local4.push({name:"_DisplacementMap_mapPoint", value:DisplacementMapFilter(_arg1).mapPoint});
_local4.push({name:"_DisplacementMap_mode", value:DisplacementMapFilter(_arg1).mode});
_local4.push({name:"_DisplacementMap_scaleX", value:DisplacementMapFilter(_arg1).scaleX});
_local4.push({name:"_DisplacementMap_scaleY", value:DisplacementMapFilter(_arg1).scaleY});
} else {
if ((_arg1 is DropShadowFilter)){
_local4.push({name:"_DropShadow_alpha", value:DropShadowFilter(_arg1).alpha});
_local4.push({name:"_DropShadow_angle", value:DropShadowFilter(_arg1).angle});
_local4.push({name:"_DropShadow_blurX", value:DropShadowFilter(_arg1).blurX});
_local4.push({name:"_DropShadow_blurY", value:DropShadowFilter(_arg1).blurY});
_local4.push({name:"_DropShadow_color", value:DropShadowFilter(_arg1).color});
_local4.push({name:"_DropShadow_distance", value:DropShadowFilter(_arg1).distance});
_local4.push({name:"_DropShadow_hideObject", value:DropShadowFilter(_arg1).hideObject});
_local4.push({name:"_DropShadow_inner", value:DropShadowFilter(_arg1).inner});
_local4.push({name:"_DropShadow_knockout", value:DropShadowFilter(_arg1).knockout});
_local4.push({name:"_DropShadow_quality", value:DropShadowFilter(_arg1).quality});
_local4.push({name:"_DropShadow_strength", value:DropShadowFilter(_arg1).strength});
} else {
if ((_arg1 is GlowFilter)){
_local4.push({name:"_Glow_alpha", value:GlowFilter(_arg1).alpha});
_local4.push({name:"_Glow_blurX", value:GlowFilter(_arg1).blurX});
_local4.push({name:"_Glow_blurY", value:GlowFilter(_arg1).blurY});
_local4.push({name:"_Glow_color", value:GlowFilter(_arg1).color});
_local4.push({name:"_Glow_inner", value:GlowFilter(_arg1).inner});
_local4.push({name:"_Glow_knockout", value:GlowFilter(_arg1).knockout});
_local4.push({name:"_Glow_quality", value:GlowFilter(_arg1).quality});
_local4.push({name:"_Glow_strength", value:GlowFilter(_arg1).strength});
} else {
if ((_arg1 is GradientBevelFilter)){
_local4.push({name:"_GradientBevel_angle", value:GradientBevelFilter(_arg1).strength});
_local4.push({name:"_GradientBevel_blurX", value:GradientBevelFilter(_arg1).blurX});
_local4.push({name:"_GradientBevel_blurY", value:GradientBevelFilter(_arg1).blurY});
_local4.push({name:"_GradientBevel_distance", value:GradientBevelFilter(_arg1).distance});
_local4.push({name:"_GradientBevel_quality", value:GradientBevelFilter(_arg1).quality});
_local4.push({name:"_GradientBevel_strength", value:GradientBevelFilter(_arg1).strength});
_local4.push({name:"_GradientBevel_type", value:GradientBevelFilter(_arg1).type});
} else {
if ((_arg1 is GradientGlowFilter)){
_local4.push({name:"_GradientGlow_angle", value:GradientGlowFilter(_arg1).strength});
_local4.push({name:"_GradientGlow_blurX", value:GradientGlowFilter(_arg1).blurX});
_local4.push({name:"_GradientGlow_blurY", value:GradientGlowFilter(_arg1).blurY});
_local4.push({name:"_GradientGlow_distance", value:GradientGlowFilter(_arg1).distance});
_local4.push({name:"_GradientGlow_knockout", value:GradientGlowFilter(_arg1).knockout});
_local4.push({name:"_GradientGlow_quality", value:GradientGlowFilter(_arg1).quality});
_local4.push({name:"_GradientGlow_strength", value:GradientGlowFilter(_arg1).strength});
_local4.push({name:"_GradientGlow_type", value:GradientGlowFilter(_arg1).type});
} else {
trace("Tweener FilterShortcuts Error :: Unknown filter class used");
};
};
};
};
};
};
};
};
};
return (_local4);
}
}
}//package caurina.transitions.properties
Section 3
//TextShortcuts (caurina.transitions.properties.TextShortcuts)
package caurina.transitions.properties {
import flash.text.*;
import caurina.transitions.*;
public class TextShortcuts {
public function TextShortcuts(){
trace("This is an static class and should not be instantiated.");
}
public static function init():void{
Tweener.registerSpecialProperty("_text", _text_get, _text_set, null, _text_preProcess);
Tweener.registerSpecialPropertySplitter("_text_color", _generic_color_splitter, ["_text_color_r", "_text_color_g", "_text_color_b"]);
Tweener.registerSpecialProperty("_text_color_r", _textFormat_property_get, _textFormat_property_set, ["color", true, "r"]);
Tweener.registerSpecialProperty("_text_color_g", _textFormat_property_get, _textFormat_property_set, ["color", true, "g"]);
Tweener.registerSpecialProperty("_text_color_b", _textFormat_property_get, _textFormat_property_set, ["color", true, "b"]);
Tweener.registerSpecialProperty("_text_indent", _textFormat_property_get, _textFormat_property_set, ["indent"]);
Tweener.registerSpecialProperty("_text_leading", _textFormat_property_get, _textFormat_property_set, ["leading"]);
Tweener.registerSpecialProperty("_text_leftMargin", _textFormat_property_get, _textFormat_property_set, ["leftMargin"]);
Tweener.registerSpecialProperty("_text_letterSpacing", _textFormat_property_get, _textFormat_property_set, ["letterSpacing"]);
Tweener.registerSpecialProperty("_text_rightMargin", _textFormat_property_get, _textFormat_property_set, ["rightMargin"]);
Tweener.registerSpecialProperty("_text_size", _textFormat_property_get, _textFormat_property_set, ["size"]);
}
public static function _text_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{
return (-(_arg1.text.length));
}
public static function _textFormat_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{
var _local8:String;
var _local5:TextFormat = _arg1.getTextFormat();
var _local6:String = _arg3[0];
var _local7:Boolean = _arg3[1];
if (!_local7){
_local5[_local6] = _arg2;
} else {
_local8 = _arg3[2];
if (_local8 == "r"){
_local5[_local6] = ((_local5[_local6] & 0xFFFF) | (_arg2 << 16));
};
if (_local8 == "g"){
_local5[_local6] = ((_local5[_local6] & 0xFF00FF) | (_arg2 << 8));
};
if (_local8 == "b"){
_local5[_local6] = ((_local5[_local6] & 0xFFFF00) | _arg2);
};
};
_arg1.defaultTextFormat = _local5;
_arg1.setTextFormat(_local5);
}
public static function _text_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{
if (_arg2 < 0){
_arg1.text = _arg4.oldText.substr(0, -(Math.round(_arg2)));
} else {
_arg1.text = _arg4.newText.substr(0, Math.round(_arg2));
};
}
public static function _textFormat_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{
var _local7:String;
var _local4:TextFormat = _arg1.getTextFormat();
var _local5:String = _arg2[0];
var _local6:Boolean = _arg2[1];
if (!_local6){
return (_local4[_local5]);
};
_local7 = _arg2[2];
if (_local7 == "r"){
return (AuxFunctions.numberToR(_local4[_local5]));
};
if (_local7 == "g"){
return (AuxFunctions.numberToG(_local4[_local5]));
};
if (_local7 == "b"){
return (AuxFunctions.numberToB(_local4[_local5]));
};
return (NaN);
}
public static function _generic_color_splitter(_arg1:Number, _arg2:Array):Array{
var _local3:Array = new Array();
_local3.push({name:_arg2[0], value:AuxFunctions.numberToR(_arg1)});
_local3.push({name:_arg2[1], value:AuxFunctions.numberToG(_arg1)});
_local3.push({name:_arg2[2], value:AuxFunctions.numberToB(_arg1)});
return (_local3);
}
public static function _text_preProcess(_arg1:Object, _arg2:Array, _arg3:Object, _arg4:Object):Number{
_arg4.oldText = _arg1.text;
_arg4.newText = _arg3;
return (_arg4.newText.length);
}
}
}//package caurina.transitions.properties
Section 4
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 5
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 6
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var valueComplete:Number;
public var modifierFunction:Function;
public var extra:Object;
public var valueStart:Number;
public var hasModifier:Boolean;
public var arrayIndex:Number;
public var originalValueComplete:Object;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function toString():String{
var _local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 7
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var getValue:Function;
public var preProcess:Function;
public var setValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 8
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 9
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 10
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
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 updateFrame():void{
_currentTimeFrame++;
}
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 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.33.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 = {overwrite:true, 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;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
};
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 11
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var onError:Function;
public var timesCalled:Number;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local3:String;
var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local3:String;
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local2:Object = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 12
//ShinyButtonVertical (com.drimlike.games.dressup.button.ShinyButtonVertical)
package com.drimlike.games.dressup.button {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import caurina.transitions.*;
public class ShinyButtonVertical extends Sprite {
private var glint:Sprite;
private var targetY:int;// = 0
private var glintMask:Sprite;
private var defaultY:int;// = 0
public function ShinyButtonVertical(_arg1:Class){
glintMask = new (_arg1);
glintMask.cacheAsBitmap = true;
glintMask.mouseChildren = false;
glintMask.mouseEnabled = false;
addChild(glintMask);
defaultY = (-(glintMask.height) - 50);
targetY = (glintMask.height + 50);
glint = new HighlightGlintAsset();
glint.mouseChildren = false;
glint.mouseEnabled = false;
glint.cacheAsBitmap = true;
glint.y = defaultY;
addChild(glint);
glint.mask = glintMask;
mouseChildren = false;
enable();
}
public function enable():void{
useHandCursor = true;
buttonMode = true;
addEventListener(MouseEvent.ROLL_OVER, onRollOver);
addEventListener(MouseEvent.ROLL_OUT, onRollOut);
}
public function disable():void{
Tweener.removeTweens(glint);
glint.y = defaultY;
useHandCursor = false;
buttonMode = false;
removeEventListener(MouseEvent.ROLL_OVER, onRollOver);
removeEventListener(MouseEvent.ROLL_OUT, onRollOut);
}
protected function onRollOut(_arg1:MouseEvent):void{
Tweener.removeTweens(glint);
Tweener.addTween(glint, {y:defaultY, time:1});
}
protected function onRollOver(_arg1:MouseEvent):void{
GameData.getInstance().soundManager.playOldStyleButtonWhoosh();
Tweener.removeTweens(glint);
Tweener.addTween(glint, {y:targetY, time:1});
}
}
}//package com.drimlike.games.dressup.button
Section 13
//ShinyCloseButton (com.drimlike.games.dressup.button.ShinyCloseButton)
package com.drimlike.games.dressup.button {
import flash.display.*;
public class ShinyCloseButton extends ShinyButtonVertical {
protected var background:Sprite;
public function ShinyCloseButton(){
background = new CupboardCloseButtonAsset();
background.mouseChildren = false;
background.mouseEnabled = false;
background.cacheAsBitmap = true;
addChild(background);
super(CupboardCloseButtonAsset);
}
}
}//package com.drimlike.games.dressup.button
Section 14
//ShinyCloseButtonArrow (com.drimlike.games.dressup.button.ShinyCloseButtonArrow)
package com.drimlike.games.dressup.button {
import flash.display.*;
public class ShinyCloseButtonArrow extends ShinyButtonVertical {
protected var arrow:Sprite;
protected var background:Sprite;
public function ShinyCloseButtonArrow(){
background = new CupboardCloseButtonAsset();
background.mouseChildren = false;
background.mouseEnabled = false;
background.cacheAsBitmap = true;
addChild(background);
arrow = new CupboardArrowCloseButtonAsset();
arrow.mouseChildren = false;
arrow.mouseEnabled = false;
arrow.cacheAsBitmap = true;
addChild(arrow);
arrow.visible = false;
super(CupboardCloseButtonAsset);
}
public function hideArrow():void{
arrow.visible = false;
}
public function showArrow():void{
arrow.visible = true;
}
}
}//package com.drimlike.games.dressup.button
Section 15
//ShinyDragButton (com.drimlike.games.dressup.button.ShinyDragButton)
package com.drimlike.games.dressup.button {
import flash.display.*;
public class ShinyDragButton extends ShinyButtonVertical {
protected var background:Sprite;
public function ShinyDragButton(){
background = new ColorDragButtonAsset();
background.mouseChildren = false;
background.mouseEnabled = false;
background.cacheAsBitmap = true;
addChild(background);
super(ColorDragButtonAsset);
}
}
}//package com.drimlike.games.dressup.button
Section 16
//Character (com.drimlike.games.dressup.character.Character)
package com.drimlike.games.dressup.character {
import flash.events.*;
import flash.display.*;
public class Character extends Sprite {
private var characterHasSkinFlag:Boolean;
private var character_color:Sprite;
private var character_assets:Array;
private var character_overlay:Sprite;
public static const CHARACTER_SKIN_CHANGE_COLOR_EVENT:String = "characterSkinChangeColorEvent";
public static const CHARACTER_CHANGE_COLOR_EVENT:String = "characterChangeColorEvent";
public function updateCharacter(_arg1:Class, _arg2:Class, _arg3:Array, _arg4:Boolean=false):void{
var _local5:Class;
var _local6:Sprite;
var _local7:Sprite;
characterHasSkinFlag = _arg4;
if (character_overlay){
removeChild(character_overlay);
character_overlay.removeEventListener(MouseEvent.CLICK, onMouseClick);
character_overlay = null;
};
if (character_color){
removeChild(character_color);
character_color.removeEventListener(MouseEvent.CLICK, onMouseClick);
character_color = null;
};
if (character_assets){
for each (_local6 in character_assets) {
removeChild(_local6);
_local6.removeEventListener(MouseEvent.CLICK, onMouseClick);
_local6 = null;
};
};
character_assets = new Array();
character_color = new (_arg2);
character_color.useHandCursor = true;
character_color.buttonMode = true;
character_color.addEventListener(MouseEvent.CLICK, onMouseClick);
addChild(character_color);
for each (_local5 in _arg3) {
_local7 = new (_local5);
_local7.useHandCursor = true;
_local7.buttonMode = true;
_local7.addEventListener(MouseEvent.CLICK, onMouseClick);
addChild(_local7);
character_assets.push(_local7);
};
character_overlay = new (_arg1);
character_overlay.mouseChildren = false;
character_overlay.mouseEnabled = false;
addChild(character_overlay);
}
private function onMouseClick(_arg1:MouseEvent):void{
trace(_arg1.target);
trace(characterHasSkinFlag);
if (characterHasSkinFlag){
if (_arg1.target == character_color){
trace("char has skinz");
_arg1.target.dispatchEvent(new Event(CHARACTER_SKIN_CHANGE_COLOR_EVENT, true, true));
} else {
_arg1.target.dispatchEvent(new Event(CHARACTER_CHANGE_COLOR_EVENT, true, true));
};
} else {
_arg1.target.dispatchEvent(new Event(CHARACTER_CHANGE_COLOR_EVENT, true, true));
};
}
public function enable():void{
var _local1:Sprite;
this.cacheAsBitmap = false;
for each (_local1 in character_assets) {
_local1.cacheAsBitmap = false;
_local1.mouseEnabled = true;
_local1.mouseChildren = true;
};
character_color.mouseChildren = true;
character_color.mouseEnabled = true;
character_color.cacheAsBitmap = false;
character_overlay.cacheAsBitmap = false;
}
public function disable():void{
var _local1:Sprite;
for each (_local1 in character_assets) {
_local1.cacheAsBitmap = true;
_local1.mouseEnabled = false;
_local1.mouseChildren = false;
};
character_color.mouseChildren = false;
character_color.mouseEnabled = false;
character_color.cacheAsBitmap = true;
character_overlay.cacheAsBitmap = true;
this.cacheAsBitmap = true;
}
}
}//package com.drimlike.games.dressup.character
Section 17
//GarmentShadow (com.drimlike.games.dressup.character.GarmentShadow)
package com.drimlike.games.dressup.character {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import caurina.transitions.*;
public class GarmentShadow extends Sprite {
private var bg:Sprite;
private var masker:Sprite;
private var destroyInterval:Number;
public static const GARMENT_SHADOW_DESTROY:String = "garmentShadowDestroy";
public function GarmentShadow(_arg1:Class){
masker = new (_arg1);
addChild(masker);
var _local2:Rectangle = getRect(masker);
bg = new Sprite();
bg.alpha = 0;
bg.graphics.beginFill(0xFFFFFF, 1);
bg.graphics.drawRect(_local2.x, _local2.y, _local2.width, _local2.height);
bg.graphics.endFill();
addChild(bg);
bg.mask = masker;
Tweener.addTween(bg, {alpha:0.6, time:0.1, transition:"easeOutExpo"});
Tweener.addTween(bg, {alpha:0, time:0.1, transition:"easeOutExpo", delay:0.1});
Tweener.addTween(bg, {alpha:0.4, time:0.1, transition:"easeOutExpo", delay:0.2});
Tweener.addTween(bg, {alpha:0, time:0.1, transition:"easeOutExpo", delay:0.3, onComplete:destroy});
}
public function destroy():void{
removeChild(bg);
removeChild(masker);
bg = null;
masker = null;
dispatchEvent(new Event(GARMENT_SHADOW_DESTROY, true, true));
}
}
}//package com.drimlike.games.dressup.character
Section 18
//PointOfInterest (com.drimlike.games.dressup.character.PointOfInterest)
package com.drimlike.games.dressup.character {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.interfaces.*;
import com.drimlike.games.util.*;
public class PointOfInterest extends Sprite {
private var counter:int;// = 0
private var point_of_interest_position:Vector2d;
private var bg:Sprite;
private var isFirstUseFlag:Boolean;// = true
private var point_of_interest_type:String;
private var masker:Sprite;
private var maskerClass:Class;
private var point_of_interest_garment:IGarment;
private var interval:Number;
private var bool:Boolean;
private var is_tool_tip_enabled:Boolean;
private var conflicting_point_of_interest:Array;
private var tool_tip_string:String;
private var tool_tip_offset:Vector2d;
public function PointOfInterest(_arg1:String, _arg2:Vector2d, _arg3:Vector2d=null, _arg4:Boolean=true){
is_tool_tip_enabled = _arg4;
point_of_interest_type = _arg1;
point_of_interest_position = _arg2;
tool_tip_offset = _arg3;
if (_arg3 == null){
tool_tip_offset = new Vector2d(0, 0);
} else {
tool_tip_offset = _arg3;
};
switch (GameData.getInstance().language){
default:
tool_tip_string = "Click on any item to change it's color";
break;
case GameData.FRENCH:
tool_tip_string = "Clique sur les objets pour changer les couleurs";
break;
case GameData.GERMAN:
tool_tip_string = "Klicken auf irgend eine Sache um sie zu ändern die Farbe";
break;
case GameData.SPANISH:
tool_tip_string = "Haz clic en cualquier elemento para que cambie de color";
break;
};
}
public function set garment(_arg1:IGarment):void{
point_of_interest_garment = _arg1;
}
public function set isFirstUsed(_arg1:Boolean):void{
isFirstUseFlag = _arg1;
}
public function set position(_arg1:Vector2d):void{
point_of_interest_position = _arg1;
}
public function createHighlight(_arg1:Class):void{
var _local2:GarmentShadow = new GarmentShadow(_arg1);
_local2.addEventListener(GarmentShadow.GARMENT_SHADOW_DESTROY, onGarmentDestroy, true, 0, true);
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
addChild(_local2);
}
public function get isFirstUsed():Boolean{
return (isFirstUseFlag);
}
private function onGarmentDestroy(_arg1:Event):void{
var _local2:GarmentShadow = GarmentShadow(_arg1.target);
_local2.removeEventListener(GarmentShadow.GARMENT_SHADOW_DESTROY, onGarmentDestroy);
removeChild(_local2);
_local2 = null;
}
public function destroyHighlight():void{
}
public function get tooltipString():String{
return (tool_tip_string);
}
public function get isToolTipEnabled():Boolean{
return (is_tool_tip_enabled);
}
public function get position():Vector2d{
return (point_of_interest_position);
}
public function get conflictingPOIs():Array{
return (conflicting_point_of_interest);
}
public function get garment():IGarment{
return (point_of_interest_garment);
}
public function set conflictingPOIs(_arg1:Array):void{
conflicting_point_of_interest = _arg1;
}
public function get tooltipOffset():Vector2d{
return (tool_tip_offset);
}
}
}//package com.drimlike.games.dressup.character
Section 19
//CharacterSelectorCharacter (com.drimlike.games.dressup.characterSelection.CharacterSelectorCharacter)
package com.drimlike.games.dressup.characterSelection {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import caurina.transitions.*;
public class CharacterSelectorCharacter extends Sprite {
private var char_name:String;
private var label:Sprite;
private var isRollOver:Boolean;
private var girl:Sprite;
private var hitzone:Sprite;
public static const MOUSE_OUT_GIRL_EVENT:String = "mouseOutGirlEvent";
public static const MOUSE_OVER_GIRL_EVENT:String = "mouseOverGirlEvent";
public static const LEA_CHARACTER:String = "leaCharacter";
public static const LEE_CHARACTER:String = "leeCharacter";
public static const GIRL_SELECTED_EVENT:String = "girlSelectedEvent";
public static const LILOU_CHARACTER:String = "lilouCharacter";
public function CharacterSelectorCharacter(_arg1:Class, _arg2:Class, _arg3:String){
girl = new (_arg1);
girl.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
girl.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
girl.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
girl.addEventListener(MouseEvent.CLICK, onClick);
girl.useHandCursor = true;
girl.buttonMode = true;
addChild(girl);
label = new (_arg2);
label.alpha = 0;
label.mouseChildren = false;
label.mouseEnabled = false;
addChild(label);
var _local4:Rectangle = getRect(girl);
char_name = _arg3;
}
public function get charName():String{
return (char_name);
}
public function hide():void{
label.visible = false;
label.alpha = 0;
girl.removeEventListener(MouseEvent.ROLL_OVER, onRollOver);
girl.removeEventListener(MouseEvent.ROLL_OUT, onRollOut);
girl.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
girl.removeEventListener(MouseEvent.CLICK, onClick);
}
protected function onClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(GIRL_SELECTED_EVENT, true, true));
}
protected function onRollOver(_arg1:MouseEvent):void{
isRollOver = true;
label.x = mouseX;
label.y = mouseY;
Tweener.removeTweens(label);
Tweener.addTween(label, {alpha:1, time:1});
dispatchEvent(new Event(MOUSE_OVER_GIRL_EVENT, true, true));
}
protected function onRollOut(_arg1:MouseEvent):void{
isRollOver = false;
Tweener.removeTweens(label);
Tweener.addTween(label, {alpha:0, time:1});
dispatchEvent(new Event(MOUSE_OUT_GIRL_EVENT, true, true));
}
protected function onMouseMove(_arg1:MouseEvent):void{
if (isRollOver){
label.x = mouseX;
label.y = mouseY;
};
}
public function show():void{
label.visible = true;
label.alpha = 0;
girl.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
girl.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
girl.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
girl.addEventListener(MouseEvent.CLICK, onClick);
}
}
}//package com.drimlike.games.dressup.characterSelection
Section 20
//Light (com.drimlike.games.dressup.characterSelection.Light)
package com.drimlike.games.dressup.characterSelection {
import flash.display.*;
public class Light extends Sprite {
private var container:Sprite;
public var max:Number;
public var min:Number;
private var light:Sprite;
private var lightCone:Sprite;
public function Light(_arg1:Number, _arg2:Number){
min = _arg1;
max = _arg2;
container = new Sprite();
addChild(container);
light = new LightAsset();
light.mouseChildren = false;
light.mouseEnabled = false;
light.cacheAsBitmap = true;
container.addChild(light);
lightCone = new LightConeAsset();
lightCone.mouseChildren = false;
lightCone.mouseEnabled = false;
lightCone.alpha = 0.5;
container.addChild(lightCone);
}
public function hide():void{
toBitmap();
container.visible = false;
light.visible = false;
lightCone.visible = false;
}
public function toBitmap():void{
container.cacheAsBitmap = true;
light.cacheAsBitmap = true;
lightCone.cacheAsBitmap = true;
}
public function show():void{
toVector();
container.visible = true;
light.visible = true;
lightCone.visible = true;
}
public function toVector():void{
container.cacheAsBitmap = false;
light.cacheAsBitmap = false;
lightCone.cacheAsBitmap = false;
}
}
}//package com.drimlike.games.dressup.characterSelection
Section 21
//Portrait (com.drimlike.games.dressup.characterSelection.Portrait)
package com.drimlike.games.dressup.characterSelection {
import flash.display.*;
import caurina.transitions.*;
public class Portrait extends Sprite {
private var container:Sprite;
private var label:Sprite;
private var girl:Sprite;
public function destroyPortrait():void{
if (girl){
container.removeChild(girl);
};
if (label){
container.removeChild(label);
};
if (container){
removeChild(container);
};
container = null;
girl = null;
label = null;
}
public function showPortrait(_arg1:Class, _arg2:Class):void{
container = new Sprite();
container.x = -500;
addChild(container);
label = new (_arg2);
label.x = -15;
label.y = 180;
label.scaleX = (label.scaleY = 4);
label.cacheAsBitmap = true;
container.addChild(label);
girl = new (_arg1);
girl.cacheAsBitmap = true;
container.addChild(girl);
Tweener.addTween(container, {x:300, time:1, transition:"easeOutExpo", delay:0.6});
}
}
}//package com.drimlike.games.dressup.characterSelection
Section 22
//ColorPalletteTile (com.drimlike.games.dressup.color.ColorPalletteTile)
package com.drimlike.games.dressup.color {
import caurina.transitions.*;
public class ColorPalletteTile extends ColorTile {
protected var defaultDepth:int;
public function ColorPalletteTile(_arg1:uint, _arg2:int){
defaultDepth = _arg2;
super(_arg1);
}
public function get tileDefaultDepth():int{
return (defaultDepth);
}
public function setHighlightColor(_arg1:uint):void{
Tweener.addTween(overlay, {_color:_arg1});
}
}
}//package com.drimlike.games.dressup.color
Section 23
//ColorSwatch (com.drimlike.games.dressup.color.ColorSwatch)
package com.drimlike.games.dressup.color {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.button.*;
import caurina.transitions.*;
public class ColorSwatch extends Sprite {
private const colors:Array;
private var dragButton:ShinyDragButton;
private var colorSprite:Sprite;
private var closeButton:ShinyCloseButton;
private var backgroundSprite:Sprite;
private var colorTileArray:Array;
public var selectedTile:ColorPalletteTile;
public static const COLOR_SWATCH_CLOSE_EVENT:String = "colorSwatchCloseEvent";
public static const COLOR_TILE_CLICK_EVENT:String = "colorTileClickEvent";
public function ColorSwatch(){
var _local6:uint;
var _local7:ColorPalletteTile;
colors = new Array(13453898, 13395558, 12344664, 16733001, 16604755, 16612462, 16628916, 16739914, 16752777, 15367773, 11822925, 10840399, 16741688, 16744265, 14521461, 16745027, 16753780, 10453360, 13473141, 15715768, 14060121, 14592648, 16426860, 16764843, 16760200, 16636341, 16753475, 15719365, 16758355, 15189655, 9075037, 16443317, 16764744, 16570741, 16636781, 16574595, 15788177, 15526590, 12236908, 16645236, 16777113, 12968836, 11725917, 8890731, 11068576, 1964308, 7798650, 7453816, 7188097, 10478271, 1879160, 3193487, 4574882, 3911823, 1889186, 1540205, 2084555, 7855591, 8444651, 4278860, 1679037, 1878473, 1944790, 10145515, 1722486, 1668306, 2845892, 2061822, 12964070, 11581382, 6125259, 10661328, 9935530, 11382230, 7562941, 7619272, 7885225, 10322362, 9596590, 13477086, 9392285, 12805317, 16482045, 16545021, 9323909, 16719310, 16730320, 15116503, 12600463, 7229792, 14501010, 16728996, 16147631, 16561365, 16760025, 16208788, 16755404, 14886251, 16635876, 13252455, 14572931, 16550316, 16220321, 13121626, 15605837, 16730476, 15702186, 16542853, 16525383, 16751530, 13320532, 0xEDEDED, 14407634, 13485506, 9802124, 0x232323, 0xFFFFFF);
super();
colorTileArray = new Array();
colorSprite = new ColorPalletteColorAsset();
addChild(colorSprite);
backgroundSprite = new ColorPalletteBackgroundAsset();
addChild(backgroundSprite);
var _local1 = -117;
var _local2 = -65;
var _local3 = 12;
var _local4:int;
var _local5:int;
for each (_local6 in colors) {
_local7 = new ColorPalletteTile(_local6, numChildren);
if (_local7.colorHex == 0xFFFFFF){
_local7.setHighlightColor(0);
};
_local7.addEventListener(MouseEvent.CLICK, onColorTileClick);
_local7.addEventListener(MouseEvent.ROLL_OVER, onColorTileRollOver);
_local7.addEventListener(MouseEvent.ROLL_OUT, onColorTileRollOut);
_local7.mouseChildren = false;
_local7.useHandCursor = true;
_local7.buttonMode = true;
_local7.x = (_local1 + (_local4 * 20));
_local7.y = (_local2 + (_local5 * 20));
_local7.rotation = 45;
_local7.scaleX = (_local7.scaleY = 1.1);
addChild(_local7);
if (_local4 == _local3){
_local4 = 0;
_local5++;
} else {
_local4++;
};
colorTileArray.push(_local7);
};
closeButton = new ShinyCloseButton();
closeButton.x = 143;
closeButton.y = -103;
closeButton.addEventListener(MouseEvent.CLICK, onCloseClick);
addChild(closeButton);
dragButton = new ShinyDragButton();
dragButton.x = -137;
dragButton.y = -104;
dragButton.addEventListener(MouseEvent.MOUSE_DOWN, onDragButtonDown);
dragButton.addEventListener(MouseEvent.MOUSE_UP, onDragButtonUp);
addChild(dragButton);
}
private function onDragButtonUp(_arg1:MouseEvent):void{
enable();
stopDrag();
}
public function enable():void{
var _local1:ColorTile;
colorSprite.mouseChildren = true;
colorSprite.mouseEnabled = true;
colorSprite.cacheAsBitmap = false;
backgroundSprite.mouseChildren = true;
backgroundSprite.mouseEnabled = true;
backgroundSprite.cacheAsBitmap = false;
for each (_local1 in colorTileArray) {
_local1.mouseChildren = true;
_local1.mouseEnabled = true;
_local1.cacheAsBitmap = false;
};
closeButton.mouseChildren = true;
closeButton.mouseEnabled = true;
closeButton.cacheAsBitmap = false;
dragButton.cacheAsBitmap = false;
this.cacheAsBitmap = false;
}
private function onDragButtonDown(_arg1:MouseEvent):void{
disable();
startDrag(false);
}
public function open():void{
}
private function onColorTileClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(COLOR_TILE_CLICK_EVENT, true, true));
}
private function onColorTileRollOut(_arg1:MouseEvent):void{
var _local2:ColorPalletteTile = ColorPalletteTile(_arg1.target);
setChildIndex(_local2, _local2.tileDefaultDepth);
Tweener.removeTweens(_local2);
Tweener.addTween(_local2, {rotation:45, time:1, scaleX:1.1, scaleY:1.1, transition:"easeOutExpo"});
}
private function onColorTileRollOver(_arg1:MouseEvent):void{
var _local2:ColorPalletteTile = ColorPalletteTile(_arg1.target);
selectedTile = _local2;
setChildIndex(_local2, (numChildren - 1));
Tweener.removeTweens(_local2);
Tweener.addTween(_local2, {rotation:0, time:1, scaleX:1.6, scaleY:1.6, transition:"easeOutExpo"});
}
public function changeThemeColor(_arg1:uint):void{
Tweener.addTween(colorSprite, {_color:_arg1, time:1});
}
public function disable():void{
var _local1:ColorTile;
colorSprite.mouseChildren = false;
colorSprite.mouseEnabled = false;
colorSprite.cacheAsBitmap = true;
backgroundSprite.mouseChildren = false;
backgroundSprite.mouseEnabled = false;
backgroundSprite.cacheAsBitmap = true;
for each (_local1 in colorTileArray) {
_local1.mouseChildren = false;
_local1.mouseEnabled = false;
_local1.cacheAsBitmap = true;
};
closeButton.mouseChildren = false;
closeButton.mouseEnabled = false;
closeButton.cacheAsBitmap = true;
dragButton.cacheAsBitmap = true;
this.cacheAsBitmap = true;
}
private function onCloseClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(COLOR_SWATCH_CLOSE_EVENT, true, true));
}
public function close():void{
}
}
}//package com.drimlike.games.dressup.color
Section 24
//ColorTile (com.drimlike.games.dressup.color.ColorTile)
package com.drimlike.games.dressup.color {
import flash.display.*;
import caurina.transitions.*;
public class ColorTile extends Sprite {
protected var overlay:Sprite;
protected var container:Sprite;
protected var color:Sprite;
protected var hex:uint;
public function ColorTile(_arg1:uint){
hex = _arg1;
container = new Sprite();
addChild(container);
color = new ColorTileColorAsset();
color.mouseChildren = false;
color.mouseEnabled = false;
container.addChild(color);
Tweener.addTween(color, {_color:_arg1});
overlay = new ColorTileOutlineAsset();
overlay.mouseChildren = false;
overlay.mouseEnabled = false;
container.addChild(overlay);
}
public function enable():void{
this.cacheAsBitmap = false;
color.cacheAsBitmap = false;
overlay.cacheAsBitmap = false;
}
public function get colorHex():uint{
return (hex);
}
public function disable():void{
this.cacheAsBitmap = true;
color.cacheAsBitmap = true;
overlay.cacheAsBitmap = true;
}
}
}//package com.drimlike.games.dressup.color
Section 25
//SkinSwatch (com.drimlike.games.dressup.color.SkinSwatch)
package com.drimlike.games.dressup.color {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.button.*;
import caurina.transitions.*;
public class SkinSwatch extends Sprite {
private const colors:Array;
private var dragButton:ShinyDragButton;
private var colorSprite:Sprite;
private var closeButton:ShinyCloseButton;
private var backgroundSprite:Sprite;
private var colorTileArray:Array;
public var selectedTile:ColorPalletteTile;
public static const COLOR_SWATCH_CLOSE_EVENT:String = "colorSwatchCloseEvent";
public static const COLOR_TILE_CLICK_EVENT:String = "colorTileClickEvent";
public function SkinSwatch(){
var _local6:uint;
var _local7:ColorPalletteTile;
colors = new Array(16770252, 16572861, 15526590, 16443317, 16636341, 16764843, 16760200, 16426860, 13473141, 13472104, 14060121, 10840399, 9075037);
super();
colorTileArray = new Array();
colorSprite = new ColorPalletteSkinColorAsset();
addChild(colorSprite);
backgroundSprite = new ColorPalletteSkinBackgroundAsset();
addChild(backgroundSprite);
var _local1 = -117;
var _local2 = 10;
var _local3 = 12;
var _local4:int;
var _local5:int;
for each (_local6 in colors) {
_local7 = new ColorPalletteTile(_local6, numChildren);
if (_local7.colorHex == 0xFFFFFF){
_local7.setHighlightColor(0);
};
_local7.addEventListener(MouseEvent.CLICK, onColorTileClick);
_local7.addEventListener(MouseEvent.ROLL_OVER, onColorTileRollOver);
_local7.addEventListener(MouseEvent.ROLL_OUT, onColorTileRollOut);
_local7.useHandCursor = true;
_local7.buttonMode = true;
_local7.x = (_local1 + (_local4 * 20));
_local7.y = (_local2 + (_local5 * 20));
_local7.scaleX = (_local7.scaleY = 1.1);
_local7.rotation = 45;
addChild(_local7);
if (_local4 == _local3){
_local4 = 0;
_local5++;
} else {
_local4++;
};
colorTileArray.push(_local7);
};
closeButton = new ShinyCloseButton();
closeButton.x = 143;
closeButton.y = -16;
closeButton.addEventListener(MouseEvent.CLICK, onCloseClick);
addChild(closeButton);
dragButton = new ShinyDragButton();
dragButton.x = -137;
dragButton.y = -17;
dragButton.addEventListener(MouseEvent.MOUSE_DOWN, onDragButtonDown);
dragButton.addEventListener(MouseEvent.MOUSE_UP, onDragButtonUp);
addChild(dragButton);
}
private function onDragButtonUp(_arg1:MouseEvent):void{
enable();
stopDrag();
}
public function enable():void{
var _local1:ColorTile;
colorSprite.mouseChildren = true;
colorSprite.mouseEnabled = true;
colorSprite.cacheAsBitmap = false;
backgroundSprite.mouseChildren = true;
backgroundSprite.mouseEnabled = true;
backgroundSprite.cacheAsBitmap = false;
for each (_local1 in colorTileArray) {
_local1.mouseChildren = true;
_local1.mouseEnabled = true;
_local1.cacheAsBitmap = false;
};
closeButton.mouseChildren = true;
closeButton.mouseEnabled = true;
closeButton.cacheAsBitmap = false;
dragButton.cacheAsBitmap = false;
this.cacheAsBitmap = false;
}
private function onDragButtonDown(_arg1:MouseEvent):void{
disable();
startDrag(false);
}
public function open():void{
}
private function onColorTileClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(COLOR_TILE_CLICK_EVENT, true, true));
}
private function onColorTileRollOut(_arg1:MouseEvent):void{
var _local2:ColorPalletteTile = ColorPalletteTile(_arg1.target);
setChildIndex(_local2, _local2.tileDefaultDepth);
Tweener.removeTweens(_local2);
Tweener.addTween(_local2, {rotation:45, time:1, scaleX:1.1, scaleY:1.1, transition:"easeOutExpo"});
}
private function onColorTileRollOver(_arg1:MouseEvent):void{
var _local2:ColorPalletteTile = ColorPalletteTile(_arg1.target);
selectedTile = _local2;
setChildIndex(_local2, (numChildren - 1));
Tweener.removeTweens(_local2);
Tweener.addTween(_local2, {rotation:0, time:1, scaleX:1.6, scaleY:1.6, transition:"easeOutExpo"});
}
public function changeThemeColor(_arg1:uint):void{
Tweener.addTween(colorSprite, {_color:_arg1, time:1});
}
public function disable():void{
var _local1:ColorTile;
colorSprite.mouseChildren = false;
colorSprite.mouseEnabled = false;
colorSprite.cacheAsBitmap = true;
backgroundSprite.mouseChildren = false;
backgroundSprite.mouseEnabled = false;
backgroundSprite.cacheAsBitmap = true;
for each (_local1 in colorTileArray) {
_local1.mouseChildren = false;
_local1.mouseEnabled = false;
_local1.cacheAsBitmap = true;
};
closeButton.mouseChildren = false;
closeButton.mouseEnabled = false;
closeButton.cacheAsBitmap = true;
dragButton.cacheAsBitmap = true;
this.cacheAsBitmap = true;
}
private function onCloseClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(COLOR_SWATCH_CLOSE_EVENT, true, true));
}
public function close():void{
}
}
}//package com.drimlike.games.dressup.color
Section 26
//CupboardEvent (com.drimlike.games.dressup.cupboard.event.CupboardEvent)
package com.drimlike.games.dressup.cupboard.event {
import flash.events.*;
public class CupboardEvent extends Event {
public static const SECTION_BUTTON_CLICK_EVENT:String = "sectionButtonClickEvent";
public function CupboardEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.drimlike.games.dressup.cupboard.event
Section 27
//AbstractCupboard (com.drimlike.games.dressup.cupboard.AbstractCupboard)
package com.drimlike.games.dressup.cupboard {
import flash.display.*;
import com.drimlike.games.dressup.interfaces.*;
public class AbstractCupboard extends Sprite implements ICupboard {
protected var sections_array:Array;
protected var cupboard_section_width:Number;// = 350
protected var cupboard_sections:Number;// = 0
protected var has_done_auto_scroll:Boolean;
protected var cupboard_items:Array;
protected var cupboard_type:String;
protected var cupboard_index:int;
public function AbstractCupboard(_arg1:Array, _arg2:String, _arg3:int){
sections_array = new Array();
super();
cupboard_index = _arg3;
cupboard_type = _arg2;
cupboard_items = _arg1;
init();
}
public function get type():String{
return (cupboard_type);
}
public function get sectionArray():Array{
return (sections_array);
}
public function set hasScrolled(_arg1:Boolean):void{
has_done_auto_scroll = _arg1;
}
protected function init():void{
}
public function get index():int{
return (cupboard_index);
}
public function get hasScrolled():Boolean{
return (has_done_auto_scroll);
}
public function get sectionWidth():Number{
return (cupboard_section_width);
}
public function get totalWidth():Number{
return ((cupboard_section_width * cupboard_sections));
}
public function disable():void{
}
public function get sectionCount():Number{
return (cupboard_sections);
}
public function enable():void{
}
}
}//package com.drimlike.games.dressup.cupboard
Section 28
//BackgroundCupboard (com.drimlike.games.dressup.cupboard.BackgroundCupboard)
package com.drimlike.games.dressup.cupboard {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import com.drimlike.games.util.*;
import caurina.transitions.*;
public class BackgroundCupboard extends AbstractCupboard {
public var selectedSprite:Sprite;
protected var topPosition:Vector2d;
protected var spacingVector:Vector2d;
public var check:Sprite;
public var selectedIndex:int;// = 0
public static const BACKGROUND_CHANGE_EVENT:String = "backgroundChangeEvent";
public function BackgroundCupboard(_arg1:Array, _arg2:String, _arg3:int){
var _local5:Class;
var _local6:Sprite;
var _local7:Sprite;
topPosition = new Vector2d(-100, -115);
spacingVector = new Vector2d(120, 90);
cupboard_section_width = 289;
cupboard_sections = 0;
var _local4:Array = new Array();
for each (_local5 in _arg1) {
_local6 = new Sprite();
_local6.mouseChildren = false;
_local6.useHandCursor = true;
_local6.buttonMode = true;
_local6.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
_local6.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
_local6.addEventListener(MouseEvent.CLICK, onClick);
_local7 = new (_local5);
_local7.width = 89;
_local7.height = 64;
_local7.x = (-89 / 2);
_local7.y = (-64 / 2);
_local7.cacheAsBitmap = true;
_local7.mouseChildren = false;
_local7.mouseEnabled = false;
_local7.filters = new Array(new DropShadowFilter(0, 0, 0, 1, 6, 6));
_local6.addChild(_local7);
_local4.push(_local6);
};
super(_local4, _arg2, _arg3);
check = new CheckBoxAsset();
check.mouseChildren = false;
check.mouseEnabled = false;
check.cacheAsBitmap = true;
if (Sprite(cupboard_items[0])){
Sprite(cupboard_items[0]).addChild(check);
};
selectedIndex = 0;
selectedSprite = Sprite(cupboard_items[0]);
Tweener.addTween(selectedSprite, {scaleX:1.2, scaleY:1.2, time:1, transition:"easeOutExpo"});
}
private function doGrid2():void{
var _local4:int;
var _local5:int;
var _local6:Sprite;
var _local1:int;
var _local2:int;
var _local3:int;
while (_local3 < cupboard_items.length) {
_local4 = 0;
_local5 = 0;
_local6 = Sprite(cupboard_items[_local3]);
switch (_local1){
case 0:
_local4 = (_local2 * cupboard_section_width);
_local5 = -57;
_local1++;
break;
case 1:
_local4 = (_local2 * cupboard_section_width);
_local5 = 57;
_local1 = 0;
_local2++;
break;
};
_local6.x = _local4;
_local6.y = _local5;
addChild(_local6);
_local3++;
};
}
private function doGrid3():void{
var _local4:int;
var _local5:int;
var _local6:Sprite;
var _local1:int;
var _local2:int;
var _local3:int;
while (_local3 < cupboard_items.length) {
_local4 = 0;
_local5 = 0;
_local6 = Sprite(cupboard_items[_local3]);
switch (_local1){
case 0:
_local4 = (_local2 * cupboard_section_width);
_local5 = -90;
_local1++;
break;
case 1:
_local4 = (_local2 * cupboard_section_width);
_local5 = 0;
_local1++;
break;
case 2:
_local4 = (_local2 * cupboard_section_width);
_local5 = 90;
_local1 = 0;
_local2++;
break;
};
_local6.x = _local4;
_local6.y = _local5;
addChild(_local6);
_local3++;
};
}
private function doGrid4():void{
var _local4:int;
var _local5:int;
var _local6:Sprite;
var _local1:int;
var _local2:int;
var _local3:int;
while (_local3 < cupboard_items.length) {
_local4 = 0;
_local5 = 0;
_local6 = Sprite(cupboard_items[_local3]);
switch (_local1){
case 0:
_local4 = -60;
_local5 = -90;
_local1++;
break;
case 1:
_local4 = 60;
_local5 = -90;
_local1++;
break;
case 2:
_local4 = -60;
_local5 = 0;
_local1++;
break;
case 3:
_local4 = 60;
_local5 = 0;
_local1 = 0;
_local2++;
break;
};
_local6.x = _local4;
_local6.y = _local5;
addChild(_local6);
_local3++;
};
}
private function doGrid5():void{
var _local4:int;
var _local5:int;
var _local6:Sprite;
var _local1:int;
var _local2:int;
var _local3:int;
while (_local3 < cupboard_items.length) {
_local4 = 0;
_local5 = 0;
_local6 = Sprite(cupboard_items[_local3]);
switch (_local1){
case 0:
_local4 = -60;
_local5 = -90;
_local1++;
break;
case 1:
_local4 = 60;
_local5 = -90;
_local1++;
break;
case 2:
_local4 = -60;
_local5 = 0;
_local1++;
break;
case 3:
_local4 = 60;
_local5 = 0;
_local1++;
break;
case 4:
_local4 = -60;
_local5 = 90;
_local1 = 0;
_local2++;
break;
};
_local6.x = _local4;
_local6.y = _local5;
addChild(_local6);
_local3++;
};
}
private function onClick(_arg1:MouseEvent):void{
if (selectedSprite != _arg1.target){
if (selectedSprite){
if (selectedSprite.contains(check)){
selectedSprite.removeChild(check);
Tweener.addTween(selectedSprite, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
};
};
selectedSprite = Sprite(_arg1.target);
selectedIndex = cupboard_items.indexOf(selectedSprite);
selectedSprite.addChild(check);
Tweener.addTween(selectedSprite, {scaleX:1.2, scaleY:1.2, time:1, transition:"easeOutExpo"});
dispatchEvent(new Event(BACKGROUND_CHANGE_EVENT, true, true));
};
}
public function reset(_arg1:Event=null):void{
if (selectedSprite != Sprite(cupboard_items[0])){
if (selectedSprite){
if (selectedSprite.contains(check)){
selectedSprite.removeChild(check);
Tweener.addTween(selectedSprite, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
};
};
if (Sprite(cupboard_items[0])){
Sprite(cupboard_items[0]).addChild(check);
};
selectedIndex = 0;
selectedSprite = Sprite(cupboard_items[0]);
Tweener.addTween(selectedSprite, {scaleX:1.2, scaleY:1.2, time:1, transition:"easeOutExpo"});
dispatchEvent(new Event(BACKGROUND_CHANGE_EVENT, true, true));
};
}
private function onRollOut(_arg1:MouseEvent):void{
var _local2:Sprite = Sprite(_arg1.target);
if (_local2 != selectedSprite){
Tweener.addTween(_local2, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
};
}
private function doGrid6():void{
var _local4:int;
var _local5:int;
var _local6:Sprite;
trace("do 6 grid");
var _local1:int;
var _local2:int;
var _local3:int;
while (_local3 < cupboard_items.length) {
_local4 = 0;
_local5 = 0;
_local6 = Sprite(cupboard_items[_local3]);
switch (_local1){
case 0:
_local4 = -60;
_local5 = -90;
_local1++;
break;
case 1:
_local4 = 60;
_local5 = -90;
_local1++;
break;
case 2:
_local4 = -60;
_local5 = 0;
_local1++;
break;
case 3:
_local4 = 60;
_local5 = 0;
_local1++;
break;
case 4:
_local4 = -60;
_local5 = 90;
_local1++;
break;
case 5:
_local4 = 60;
_local5 = 90;
_local1 = 0;
_local2++;
break;
};
_local6.x = _local4;
_local6.y = _local5;
addChild(_local6);
_local3++;
};
}
override protected function init():void{
if ((((cupboard_items.length == 0)) || ((cupboard_items.length == 1)))){
throw (new Error("Theres no point in having a cupboard for one background"));
};
if (cupboard_items.length == 2){
doGrid2();
} else {
if (cupboard_items.length == 3){
doGrid3();
} else {
if (cupboard_items.length == 4){
doGrid4();
} else {
if (cupboard_items.length == 5){
doGrid5();
} else {
if (cupboard_items.length == 6){
doGrid6();
};
};
};
};
};
}
private function onRollOver(_arg1:MouseEvent):void{
var _local2:Sprite = Sprite(_arg1.target);
if (_local2 != selectedSprite){
Tweener.addTween(_local2, {scaleX:1.2, scaleY:1.2, time:1, transition:"easeOutExpo"});
};
}
}
}//package com.drimlike.games.dressup.cupboard
Section 29
//CupboardSectionButton (com.drimlike.games.dressup.cupboard.CupboardSectionButton)
package com.drimlike.games.dressup.cupboard {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.cupboard.event.*;
import flash.utils.*;
import caurina.transitions.*;
public class CupboardSectionButton extends Sprite {
protected var arrow:Sprite;
private var count:int;// = 0
protected var isActive:Boolean;
protected var arrowMask:Sprite;
private var scrollerInterval:Number;
protected var background:Sprite;
private var odd:Boolean;
protected var highlight:Sprite;
protected var scroller:Sprite;
public function CupboardSectionButton(){
background = new CupboardSectionButtonBackgroundAsset();
background.addEventListener(MouseEvent.CLICK, onMouseClick, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver, false, 0, true);
background.useHandCursor = true;
background.buttonMode = true;
background.cacheAsBitmap = true;
addChild(background);
arrow = new CupboardSectionButtonArrowAsset();
arrow.mouseChildren = false;
arrow.mouseEnabled = false;
addChild(arrow);
highlight = new HighlightGlintAsset();
highlight.y = -50;
highlight.mouseChildren = false;
highlight.mouseEnabled = false;
addChild(highlight);
arrowMask = new CupboardSectionButtonArrowAsset();
arrowMask.mouseChildren = false;
arrowMask.mouseEnabled = false;
addChild(arrowMask);
highlight.mask = arrowMask;
scroller = new CupboardArrowAsset();
scroller.mouseChildren = false;
scroller.mouseEnabled = false;
arrow.addChild(scroller);
deactive();
}
public function active():void{
scrollerInterval = setInterval(doScroller, 1000);
isActive = true;
background.mouseEnabled = true;
background.mouseChildren = true;
arrow.alpha = 1;
}
public function deactive():void{
clearInterval(scrollerInterval);
isActive = false;
background.mouseChildren = false;
background.mouseEnabled = false;
arrow.alpha = 0.2;
}
protected function onMouseClick(_arg1:MouseEvent):void{
if (isActive){
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {alpha:0, time:1, transition:"easeOutExpo"});
Tweener.removeTweens(arrow);
Tweener.addTween(arrow, {x:-5, time:0.1, transition:"easeOutExpo"});
Tweener.addTween(arrow, {x:0, time:0.1, delay:0.1, transition:"easeOutExpo"});
dispatchEvent(new CupboardEvent(CupboardEvent.SECTION_BUTTON_CLICK_EVENT, true, true));
GameData.getInstance().soundManager.playSectionClick();
};
}
private function doScroller():void{
if (odd){
odd = false;
Tweener.addTween(scroller, {scaleY:1, time:1});
} else {
odd = true;
Tweener.addTween(scroller, {scaleY:-1, time:1});
};
count++;
if (count == 2){
clearInterval(scrollerInterval);
scrollerInterval = setInterval(doScroller, 5000);
count = 0;
} else {
clearInterval(scrollerInterval);
scrollerInterval = setInterval(doScroller, 1000);
};
}
protected function onRollOver(_arg1:MouseEvent):void{
Tweener.addTween(highlight, {y:50, alpha:1, time:1, transition:"easeOutExpo"});
}
public function showToggle():void{
Tweener.removeTweens(arrow);
Tweener.addTween(arrow, {x:-8, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(arrow, {x:0, time:0.5, delay:0.5, transition:"easeOutExpo"});
}
protected function onRollOut(_arg1:MouseEvent):void{
Tweener.addTween(highlight, {y:-50, alpha:1, time:1, transition:"easeOutExpo"});
}
}
}//package com.drimlike.games.dressup.cupboard
Section 30
//HangerManualCupboard (com.drimlike.games.dressup.cupboard.HangerManualCupboard)
package com.drimlike.games.dressup.cupboard {
import com.drimlike.games.dressup.interfaces.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.garment.*;
public class HangerManualCupboard extends AbstractCupboard implements ICupboard {
protected var items_per_section:Number;
protected var sectionCounter:int;// = 0
public function HangerManualCupboard(_arg1:Array, _arg2:String, _arg3:int, _arg4:Number=9){
var _local5:IGarment;
items_per_section = _arg4;
cupboard_section_width = 350;
for each (_local5 in _arg1) {
_local5.cupboard = this;
};
super(_arg1, _arg2, _arg3);
}
protected function create6Grid():void{
var _local6:Garment;
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Array = new Array();
var _local5:int;
while (_local5 < cupboard_items.length) {
_local6 = Garment(cupboard_items[_local5]);
_local6.x = ((-80 + ((_local3 * cupboard_section_width) + (_local1 * 75))) + _local6.cupboardOffset.x);
_local6.y = ((-70 + (_local2 * 120)) + _local6.cupboardOffset.y);
_local4.push(_local6);
_local6.defaultPosition = new Vector2d(_local6.x, _local6.y);
addChild(_local6);
if (_local1 == 2){
if (_local2 == 1){
_local2 = 0;
_local1 = 0;
sections_array[_local3] = _local4;
_local4 = new Array();
sectionCounter++;
_local3++;
} else {
_local1 = 0;
_local2++;
};
} else {
_local1++;
};
if (_local5 == (cupboard_items.length - 1)){
sections_array[_local3] = _local4;
_local4 = new Array();
};
_local5++;
};
}
protected function create65Grid():void{
var _local6:Garment;
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Array = new Array();
var _local5:int;
while (_local5 < cupboard_items.length) {
_local6 = Garment(cupboard_items[_local5]);
_local6.x = ((-60 + ((_local3 * cupboard_section_width) + (_local1 * 120))) + _local6.cupboardOffset.x);
_local6.y = ((-70 + (_local2 * 90)) + _local6.cupboardOffset.y);
_local4.push(_local6);
_local6.defaultPosition = new Vector2d(_local6.x, _local6.y);
addChild(_local6);
if (_local1 == 1){
if (_local2 == 2){
_local2 = 0;
_local1 = 0;
sections_array[_local3] = _local4;
_local4 = new Array();
sectionCounter++;
_local3++;
} else {
_local1 = 0;
_local2++;
};
} else {
_local1++;
};
if (_local5 == (cupboard_items.length - 1)){
sections_array[_local3] = _local4;
_local4 = new Array();
};
_local5++;
};
}
protected function create9Grid():void{
var _local6:Garment;
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:Array = new Array();
var _local5:int;
while (_local5 < cupboard_items.length) {
_local6 = Garment(cupboard_items[_local5]);
_local6.x = ((-80 + ((_local3 * cupboard_section_width) + (_local1 * 75))) + _local6.cupboardOffset.x);
_local6.y = ((-90 + (_local2 * 90)) + _local6.cupboardOffset.y);
_local4.push(_local6);
_local6.defaultPosition = new Vector2d(_local6.x, _local6.y);
addChild(_local6);
if (_local1 == 2){
if (_local2 == 2){
_local2 = 0;
_local1 = 0;
sections_array[_local3] = _local4;
_local4 = new Array();
sectionCounter++;
_local3++;
} else {
_local1 = 0;
_local2++;
};
} else {
_local1++;
};
if (_local5 == (cupboard_items.length - 1)){
sections_array[_local3] = _local4;
_local4 = new Array();
};
_local5++;
};
}
protected function positionGarments():void{
}
override public function disable():void{
var _local1:IGarment;
for each (_local1 in cupboard_items) {
_local1.disable();
};
this.cacheAsBitmap = true;
}
override protected function init():void{
cupboard_sections = findSectionRequirements();
switch (items_per_section){
default:
create9Grid();
break;
case 6:
create6Grid();
break;
case 6.5:
create65Grid();
break;
};
}
override public function enable():void{
var _local1:IGarment;
for each (_local1 in cupboard_items) {
_local1.disable();
};
this.cacheAsBitmap = false;
}
protected function findSectionRequirements():int{
return (Math.ceil((cupboard_items.length / items_per_section)));
}
}
}//package com.drimlike.games.dressup.cupboard
Section 31
//CupboardData (com.drimlike.games.dressup.data.CupboardData)
package com.drimlike.games.dressup.data {
import flash.display.*;
public class CupboardData extends Sprite {
public static const CUPBOARD_7:String = "cupboard7";
public static const CUPBOARD_1:String = "cupboard1";
public static const CUPBOARD_3:String = "cupboard3";
public static const CUPBOARD_8:String = "cupboard8";
public static const CUPBOARD_10:String = "cupboard10";
public static const CUPBOARD_9:String = "cupboard9";
public static const CUPBOARD_SCENE:String = "cupboardScene";
public static const CUPBOARD_2:String = "cupboard2";
public static const CUPBOARD_4:String = "cupboard4";
public static const CUPBOARD_5:String = "cupboard5";
public static const CUPBOARD_6:String = "cupboard6";
}
}//package com.drimlike.games.dressup.data
Section 32
//GameData (com.drimlike.games.dressup.data.GameData)
package com.drimlike.games.dressup.data {
import flash.events.*;
import com.drimlike.games.dressup.sound.*;
public class GameData extends EventDispatcher {
public var TRACKING_KEY:String;// = "boyVampire"
public var language:String;
public var soundManager:SoundManager;
public static var SPANISH:String = "sp";
private static var _instance:GameData;
public static var GERMAN:String = "de";
public static var ENGLISH:String = "en";
public static var FRENCH:String = "fr";
public static function getInstance():GameData{
if (_instance == null){
_instance = new (GameData);
};
return (_instance);
}
}
}//package com.drimlike.games.dressup.data
Section 33
//PointsOfInterestData (com.drimlike.games.dressup.data.PointsOfInterestData)
package com.drimlike.games.dressup.data {
public class PointsOfInterestData {
public static const RIGHT_SHOULDER:String = "rightShoulder";
public static const LOW_NECK:String = "lowNeck";
public static const MIDDLE_SCALP:String = "middleScalp";
public static const LEFT_ELBOW:String = "leftElbow";
public static const FOOT:String = "foot";
public static const BELT:String = "belt";
public static const FOREHEAD:String = "forehead";
public static const RIGHT_ELBOW:String = "rightElbow";
public static const RIGHT_SHIN:String = "rightShin";
public static const LEGS:String = "legs";
public static const RIGHT_KNEE:String = "rightKnee";
public static const MOUTH:String = "mouth";
public static const RIGHT_HIP:String = "rightHip";
public static const LEFT_HAND:String = "leftHand";
public static const NEAR_HEAD_LEFT:String = "nearHeadLeft";
public static const RIGHT_SCALP:String = "rightScalp";
public static const RIGHT_WRIST:String = "rightWrist";
public static const RIGHT_ANKLE:String = "rightAnkle";
public static const TOP:String = "top";
public static const LEFT_HIP:String = "leftHip";
public static const RIGHT_BAG:String = "rightBag";
public static const LEFT_THIGH:String = "leftThigh";
public static const RIGHT_HAND:String = "rightHand";
public static const NOSE:String = "nose";
public static const FLOWER:String = "flower";
public static const LEFT_SHOULDER:String = "leftShoulder";
public static const EYES:String = "eyes";
public static const NECK:String = "neck";
public static const LEFT_SHIN:String = "leftShin";
public static const RIGHT_THIGH:String = "rightThigh";
public static const BUST:String = "bust";
public static const LEFT_WRIST:String = "leftWrist";
public static const RIGHT_EAR:String = "rightEar";
public static const LEFT_KNEE:String = "leftKnee";
public static const LEFT_SCALP:String = "leftScalp";
public static const LEFT_EAR:String = "leftEar";
public static const LEFT_ANKLE:String = "leftAnkle";
}
}//package com.drimlike.games.dressup.data
Section 34
//GarmentEvent (com.drimlike.games.dressup.garment.event.GarmentEvent)
package com.drimlike.games.dressup.garment.event {
import flash.events.*;
public class GarmentEvent extends Event {
public static const GARMENT_END_DRAG_EVENT:String = "garmentEndDragEvent";
public static const MOUSE_MOVE_EVENT:String = "mouseGMoveEvent";
public static const GARMENT_OPEN_SKIN_COLOR_EVENT:String = "garmentOpenSkinColorEvent";
public static const MOUSE_OVER_EVENT:String = "mouseGOverEvent";
public static const GARMENT_RESET_TO_CUPBOARD_EVENT:String = "garmentResetToCupboardEvent";
public static const MOUSE_OUT_EVENT:String = "mouseGOutEvent";
public static const GARMENT_OPEN_COLOR_EVENT:String = "garmentOpenColorEvent";
public static const GARMENT_START_DRAG_EVENT:String = "garmentStartDragEvent";
public static const MOUSE_DOWN_EVENT:String = "mouseGDownEvent";
public static const MOUSE_UP_EVENT:String = "mouseGUpEvent";
public function GarmentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.drimlike.games.dressup.garment.event
Section 35
//Garment (com.drimlike.games.dressup.garment.Garment)
package com.drimlike.games.dressup.garment {
import flash.events.*;
import flash.geom.*;
import com.drimlike.games.dressup.garment.event.*;
import flash.display.*;
import com.drimlike.games.dressup.interfaces.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.character.*;
import flash.utils.*;
import caurina.transitions.*;
public class Garment extends Sprite implements IGarment {
protected var isOnCharacter:Boolean;
protected var container:Sprite;
protected var assets:Array;
protected var cupboard_position_offset:Vector2d;
protected var small_scale:Number;
private var is_color_enabled:Boolean;
protected var isDragging:Boolean;
protected var highlight_class:Class;
protected var cupboard_reference:ICupboard;
protected var isInTransition:Boolean;
protected var hitzone:Sprite;
protected var large_scale:Number;
protected var hit_zone_rectangle:Rectangle;
protected var overlay:Sprite;
protected var hit_zone_offset:Vector2d;
protected var isMouseDown:Boolean;
private var mouseCheckInterval:Number;
protected var color:Sprite;
protected var default_position:Vector2d;
protected var point_of_interest:PointOfInterest;
private var binInterval:Number;
public function Garment(_arg1:Class, _arg2:Class, _arg3:Class, _arg4:Array, _arg5:PointOfInterest, _arg6:Number=0.9, _arg7:Number=1, _arg8:Vector2d=null, _arg9:Vector2d=null, _arg10:Rectangle=null, _arg11:Boolean=true, _arg12:Boolean=true){
var _local13:Class;
var _local14:Sprite;
var _local15:Rectangle;
super();
point_of_interest = _arg5;
is_color_enabled = _arg12;
small_scale = _arg6;
large_scale = _arg7;
highlight_class = _arg3;
if (_arg8){
cupboard_position_offset = _arg8;
} else {
cupboard_position_offset = new Vector2d(0, 0);
};
if (_arg9){
hit_zone_offset = _arg9;
} else {
hit_zone_offset = new Vector2d(0, 0);
};
hit_zone_rectangle = _arg10;
container = new Sprite();
container.scaleX = (container.scaleY = small_scale);
addChild(container);
color = new (_arg1);
color.useHandCursor = true;
color.buttonMode = true;
color.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
color.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
container.addChild(color);
assets = new Array();
for each (_local13 in _arg4) {
_local14 = new (_local13);
_local14.useHandCursor = true;
_local14.buttonMode = true;
_local14.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
_local14.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
container.addChild(_local14);
assets.push(assets);
};
overlay = new (_arg2);
overlay.mouseChildren = false;
overlay.mouseEnabled = false;
container.addChild(overlay);
if (_arg11){
hitzone = new Sprite();
hitzone.x = hit_zone_offset.x;
hitzone.y = hit_zone_offset.y;
hitzone.graphics.beginFill(0, 0);
if (hit_zone_rectangle){
hitzone.graphics.drawRect(hit_zone_rectangle.x, hit_zone_rectangle.y, hit_zone_rectangle.width, hit_zone_rectangle.height);
} else {
_local15 = getRect(overlay);
hitzone.graphics.drawRect(_local15.x, _local15.y, _local15.width, _local15.height);
};
hitzone.graphics.endFill();
} else {
hitzone = new (_arg3);
hitzone.x = hit_zone_offset.x;
hitzone.y = hit_zone_offset.y;
};
hitzone.useHandCursor = true;
hitzone.buttonMode = true;
hitzone.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
hitzone.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
container.addChildAt(hitzone, 0);
addEventListener(MouseEvent.ROLL_OUT, onMouseOut, false, 0);
addEventListener(MouseEvent.ROLL_OVER, onMouseOver, false, 0);
}
public function shrink():void{
Tweener.addTween(container, {scaleX:small_scale, scaleY:small_scale, time:0.5, transition:"easeOutExpo"});
}
public function enable():void{
}
public function get defaultPosition():Vector2d{
return (default_position);
}
public function grow():void{
Tweener.addTween(container, {scaleX:(small_scale + 0.2), scaleY:(small_scale + 0.2), time:0.5, transition:"easeOutExpo"});
}
public function set defaultPosition(_arg1:Vector2d):void{
default_position = _arg1;
}
public function get cupboard():ICupboard{
return (cupboard_reference);
}
public function get cupboardOffset():Vector2d{
return (cupboard_position_offset);
}
public function get isOnChar():Boolean{
return (isOnCharacter);
}
public function set pointOfInterest(_arg1:PointOfInterest):void{
point_of_interest = _arg1;
}
public function get isColorEnabled():Boolean{
return (is_color_enabled);
}
public function set isOnChar(_arg1:Boolean):void{
isOnChar = _arg1;
}
private function onMouseUp(_arg1:MouseEvent):void{
isMouseDown = false;
if (isDragging){
dispatchEvent(new GarmentEvent(GarmentEvent.GARMENT_END_DRAG_EVENT, true, true));
} else {
if (isOnCharacter){
if (is_color_enabled){
_arg1.target.dispatchEvent(new GarmentEvent(GarmentEvent.GARMENT_OPEN_COLOR_EVENT, true, true));
};
};
};
isDragging = false;
clearInterval(mouseCheckInterval);
}
public function get cupboardType():String{
return (cupboard_reference.type);
}
public function gotoBin():void{
var doCloseBin:Function;
doCloseBin = function ():void{
clearInterval(binInterval);
dispatchEvent(new GarmentEvent(GarmentEvent.GARMENT_RESET_TO_CUPBOARD_EVENT, true, true));
isInTransition = false;
};
isInTransition = true;
trace("goto bin");
Tweener.addTween(container, {scaleX:0, scaleY:0, alpha:0, time:0.5, transition:"easeOutExpo", delay:0.5});
Tweener.addTween(this, {x:320, y:430, time:0.5, transition:"easeOutExpo"});
binInterval = setInterval(doCloseBin, 800);
isDragging = false;
isOnCharacter = false;
mouseChildren = false;
mouseEnabled = false;
}
public function gotoTarget():void{
Tweener.addTween(container, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(this, {x:0, y:0, time:0.5, transition:"easeOutExpo"});
isDragging = false;
isOnCharacter = true;
}
private function onMouseDown(_arg1:MouseEvent):void{
var checkMouseDown:Function;
var e = _arg1;
checkMouseDown = function ():void{
if (isMouseDown){
isDragging = true;
Tweener.removeTweens(this);
dispatchEvent(new GarmentEvent(GarmentEvent.GARMENT_START_DRAG_EVENT, true, true));
};
clearInterval(mouseCheckInterval);
};
isMouseDown = true;
mouseCheckInterval = setInterval(checkMouseDown, 300);
}
public function gotoSource():void{
this.x = defaultPosition.x;
this.y = defaultPosition.y;
Tweener.addTween(container, {scaleX:small_scale, scaleY:small_scale, alpha:1, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(this, {x:defaultPosition.x, y:defaultPosition.y, time:0.5, transition:"easeOutExpo"});
isDragging = false;
isOnCharacter = false;
}
public function set cupboard(_arg1:ICupboard):void{
cupboard_reference = _arg1;
}
public function get hitzoneSprite():Sprite{
return (hitzone);
}
public function get pointOfInterest():PointOfInterest{
return (point_of_interest);
}
public function get highlightClass():Class{
return (highlight_class);
}
private function onMouseOut(_arg1:MouseEvent):void{
if (((!(isOnCharacter)) && (!(isInTransition)))){
shrink();
};
dispatchEvent(new GarmentEvent(GarmentEvent.MOUSE_OUT_EVENT, true, true));
}
public function convertToVector():void{
color.cacheAsBitmap = false;
overlay.cacheAsBitmap = false;
hitzone.cacheAsBitmap = false;
this.cacheAsBitmap = false;
}
public function convertToBitmap():void{
color.cacheAsBitmap = true;
overlay.cacheAsBitmap = true;
hitzone.cacheAsBitmap = true;
this.cacheAsBitmap = true;
}
public function disable():void{
}
private function onMouseOver(_arg1:MouseEvent):void{
if (!isOnCharacter){
grow();
parent.setChildIndex(this, (parent.numChildren - 1));
};
dispatchEvent(new GarmentEvent(GarmentEvent.MOUSE_OVER_EVENT, true, true));
}
}
}//package com.drimlike.games.dressup.garment
Section 36
//ICupboard (com.drimlike.games.dressup.interfaces.ICupboard)
package com.drimlike.games.dressup.interfaces {
public interface ICupboard {
function get sectionWidth():Number;
function get totalWidth():Number;
function enable():void;
function get hasScrolled():Boolean;
function disable():void;
function get sectionCount():Number;
function set hasScrolled(_arg1:Boolean):void;
function set x(_arg1:Number):void;
function get index():int;
function get sectionArray():Array;
function get x():Number;
function get type():String;
}
}//package com.drimlike.games.dressup.interfaces
Section 37
//IGarment (com.drimlike.games.dressup.interfaces.IGarment)
package com.drimlike.games.dressup.interfaces {
import flash.display.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.character.*;
public interface IGarment {
function get cupboardType():String;
function enable():void;
function shrink():void;
function get defaultPosition():Vector2d;
function set cupboard(_arg1:ICupboard):void;
function get pointOfInterest():PointOfInterest;
function grow():void;
function gotoTarget():void;
function set defaultPosition(_arg1:Vector2d):void;
function gotoSource():void;
function get isOnChar():Boolean;
function set pointOfInterest(_arg1:PointOfInterest):void;
function get highlightClass():Class;
function disable():void;
function get cupboardOffset():Vector2d;
function get hitzoneSprite():Sprite;
function get cupboard():ICupboard;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get isColorEnabled():Boolean;
function get x():Number;
function get y():Number;
function gotoBin():void;
function set isOnChar(_arg1:Boolean):void;
}
}//package com.drimlike.games.dressup.interfaces
Section 38
//AbstractInventoryButton (com.drimlike.games.dressup.inventory.button.AbstractInventoryButton)
package com.drimlike.games.dressup.inventory.button {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.inventory.definitions.*;
import com.drimlike.games.dressup.inventory.events.*;
import caurina.transitions.*;
public class AbstractInventoryButton extends Sprite {
protected var foreground:Sprite;
protected var isSelected:Boolean;
protected var background:Sprite;
protected var definition:InventoryButtonDefinition;
protected var highlight:Sprite;
protected var icon:Sprite;
public function AbstractInventoryButton(_arg1:Class, _arg2:Class, _arg3:Class, _arg4:Class, _arg5:uint=0xFFFFFF){
background = new (_arg1);
background.useHandCursor = true;
background.buttonMode = true;
background.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver, false, 0, true);
addChild(background);
highlight = new (_arg2);
highlight.mouseChildren = false;
highlight.mouseEnabled = false;
highlight.scaleX = (highlight.scaleY = 0.1);
addChild(highlight);
foreground = new (_arg3);
foreground.mouseChildren = false;
foreground.mouseEnabled = false;
addChild(foreground);
icon = new (_arg4);
icon.mouseChildren = false;
icon.mouseEnabled = false;
addChild(icon);
changeCupboardColor(_arg5);
}
public function destroy():void{
Tweener.removeTweens(highlight);
removeChild(background);
removeChild(highlight);
removeChild(foreground);
removeChild(icon);
definition = null;
isSelected = false;
background.removeEventListener(MouseEvent.CLICK, onClick);
background.removeEventListener(MouseEvent.ROLL_OUT, onRollOut);
background.removeEventListener(MouseEvent.MOUSE_OVER, onRollOver);
background = null;
highlight = null;
foreground = null;
icon = null;
dispatchEvent(new InventoryButtonEvent(InventoryButtonEvent.BUTTON_DESTROYED_EVENT, true, true));
}
protected function onClick(_arg1:MouseEvent):void{
dispatchEvent(new InventoryButtonEvent(InventoryButtonEvent.BUTTON_CLICK_EVENT, true, true));
}
public function changeCupboardColor(_arg1:uint):void{
}
public function get def():InventoryButtonDefinition{
return (definition);
}
public function disable():void{
background.cacheAsBitmap = false;
background.useHandCursor = false;
background.buttonMode = false;
background.removeEventListener(MouseEvent.CLICK, onClick);
background.removeEventListener(MouseEvent.ROLL_OUT, onRollOut);
background.removeEventListener(MouseEvent.ROLL_OVER, onRollOver);
highlight.cacheAsBitmap = true;
foreground.cacheAsBitmap = true;
icon.cacheAsBitmap = true;
}
protected function onRollOver(_arg1:MouseEvent):void{
if (!isSelected){
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
};
}
public function set def(_arg1:InventoryButtonDefinition):void{
definition = _arg1;
}
public function enable():void{
background.useHandCursor = true;
background.buttonMode = true;
background.cacheAsBitmap = true;
background.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver, false, 0, true);
highlight.cacheAsBitmap = false;
foreground.cacheAsBitmap = false;
icon.cacheAsBitmap = false;
}
public function deselect():void{
if (isSelected){
isSelected = false;
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:0.1, scaleY:0.1, time:1, transition:"easeOutExpo"});
};
}
public function select():void{
if (!isSelected){
isSelected = true;
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
};
}
protected function onRollOut(_arg1:MouseEvent):void{
if (!isSelected){
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:0.1, scaleY:0.1, time:1, transition:"easeOutExpo"});
};
}
}
}//package com.drimlike.games.dressup.inventory.button
Section 39
//CharacterSelectorButton (com.drimlike.games.dressup.inventory.button.CharacterSelectorButton)
package com.drimlike.games.dressup.inventory.button {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import caurina.transitions.*;
public class CharacterSelectorButton extends Sprite {
private var glint:Sprite;
private var background:Sprite;
private var arrows:Sprite;
private var glintMask:Sprite;
private var angularVelocity:int;// = 1
public function CharacterSelectorButton(){
background = new CharacterSelectorBackgroundButtonAsset();
background.buttonMode = true;
background.useHandCursor = true;
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
addChild(background);
arrows = new CharacterSelectorArrowsAsset();
arrows.mouseChildren = false;
arrows.mouseEnabled = false;
addChild(arrows);
glint = new HighlightGlintAsset();
glint.mouseChildren = false;
glint.mouseEnabled = false;
glint.width = background.width;
glint.y = -50;
addChild(glint);
glintMask = new CharacterSelectorBackgroundButtonAsset();
glintMask.mouseChildren = false;
glintMask.mouseEnabled = false;
addChild(glintMask);
glint.mask = glintMask;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
arrows.rotation = (arrows.rotation + angularVelocity);
}
public function enable():void{
this.cacheAsBitmap = false;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function disable():void{
this.cacheAsBitmap = true;
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onRollOver(_arg1:MouseEvent):void{
GameData.getInstance().soundManager.playOldStyleButtonWhoosh();
GameData.getInstance().soundManager.playTinkleSound();
angularVelocity = 5;
Tweener.removeTweens(glint);
Tweener.addTween(glint, {y:50, time:1, transition:"easeOutExpo"});
}
private function onRollOut(_arg1:MouseEvent):void{
GameData.getInstance().soundManager.stopTinkleSound();
angularVelocity = 2;
Tweener.removeTweens(glint);
Tweener.addTween(glint, {y:-50, time:1, transition:"easeOutExpo"});
}
}
}//package com.drimlike.games.dressup.inventory.button
Section 40
//SimpleInventoryButton (com.drimlike.games.dressup.inventory.button.SimpleInventoryButton)
package com.drimlike.games.dressup.inventory.button {
import flash.events.*;
import caurina.transitions.*;
public class SimpleInventoryButton extends AbstractInventoryButton {
public function SimpleInventoryButton(_arg1:Class, _arg2:Class, _arg3:Class, _arg4:Class){
super(_arg1, _arg2, _arg3, _arg4);
}
override protected function onRollOver(_arg1:MouseEvent):void{
if (!isSelected){
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:0.9, scaleY:0.9, time:1});
};
}
override protected function onRollOut(_arg1:MouseEvent):void{
if (!isSelected){
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:0.1, scaleY:0.1, time:2});
};
}
override protected function onClick(_arg1:MouseEvent):void{
super.onClick(_arg1);
}
override public function destroy():void{
super.destroy();
}
override public function select():void{
isSelected = true;
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:1, scaleY:1, time:0.9, transition:"easeOutExpo"});
}
override public function deselect():void{
isSelected = false;
Tweener.removeTweens(highlight);
Tweener.addTween(highlight, {scaleX:0.1, scaleY:0.1, time:1, transition:"easeOutExpo"});
}
}
}//package com.drimlike.games.dressup.inventory.button
Section 41
//InventoryButtonDefinition (com.drimlike.games.dressup.inventory.definitions.InventoryButtonDefinition)
package com.drimlike.games.dressup.inventory.definitions {
import com.drimlike.games.dressup.interfaces.*;
public class InventoryButtonDefinition {
protected var cupboardReference:ICupboard;
public function InventoryButtonDefinition(_arg1:ICupboard){
cupboardReference = _arg1;
}
public function get referenceCupboard():ICupboard{
return (cupboardReference);
}
}
}//package com.drimlike.games.dressup.inventory.definitions
Section 42
//InventoryButtonEvent (com.drimlike.games.dressup.inventory.events.InventoryButtonEvent)
package com.drimlike.games.dressup.inventory.events {
import flash.events.*;
public class InventoryButtonEvent extends Event {
public static const BUTTON_ROLL_OVER_EVENT:String = "inventoryButtonRollOverEvent";
public static const BUTTON_CLICK_EVENT:String = "inventoryButtonClickEvent";
public static const BUTTON_DESTROYED_EVENT:String = "inventoryButtonDestroyedEvent";
public static const BUTTON_ROLL_OUT_EVENT:String = "inventoryButtonRollOutEvent";
public function InventoryButtonEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.drimlike.games.dressup.inventory.events
Section 43
//SoundManager (com.drimlike.games.dressup.sound.SoundManager)
package com.drimlike.games.dressup.sound {
import flash.media.*;
public class SoundManager {
private var theme:Sound;
private var sectionButtonSound:Sound;
private var oldStyleClick:Sound;
private var tinkleChannel:SoundChannel;
private var openCloseSound:Sound;
private var tinkleSound:Sound;
private var whooshSound:Sound;
private var papparazi:Sound;
private var jingle:Sound;
private var themeChannel:SoundChannel;
public function SoundManager(){
sectionButtonSound = (new SectionClickAsset() as Sound);
papparazi = (new PapAsset() as Sound);
openCloseSound = (new CupboardOpenCloseAsset() as Sound);
tinkleSound = (new TinkleSoundAsset() as Sound);
whooshSound = (new OldStyleMouseOverSoundAsset2() as Sound);
oldStyleClick = (new OldStyleMouseOverSoundAsset() as Sound);
jingle = (new JingleAsset() as Sound);
theme = (new ThemeTuneAsset() as Sound);
}
public function playPapSound():void{
papparazi.play();
}
public function playJingle():void{
jingle.play(0, 0);
}
public function stopThemeTune():void{
themeChannel.stop();
themeChannel = null;
}
public function playThemeTune():void{
var _local1:SoundTransform = new SoundTransform(0.7, 0);
themeChannel = theme.play(0, 9999, _local1);
}
public function playTinkleSound():void{
tinkleChannel = tinkleSound.play(0, 100);
}
public function stopTinkleSound():void{
if (tinkleChannel){
tinkleChannel.stop();
tinkleChannel = null;
};
}
public function playOldStyleButtonWhoosh():void{
whooshSound.play(0.1, 0);
}
public function playOpenCloseSound():void{
openCloseSound.play();
}
public function playSectionClick():void{
sectionButtonSound.play();
}
public function playOldStyleButtonClick():void{
oldStyleClick.play(0, 0);
}
}
}//package com.drimlike.games.dressup.sound
Section 44
//CupboardSystemEvent (com.drimlike.games.dressup.systems.Events.CupboardSystemEvent)
package com.drimlike.games.dressup.systems.Events {
import flash.events.*;
public class CupboardSystemEvent extends Event {
public static const HIDE_CUPBOARD_EVENT:String = "hideCupboardEvent";
public static const SHOW_CUPBOARD_EVENT:String = "showCupboardEvent";
public static const OPEN_CHARACTER_SELECT_SYSTEM:String = "openCharacterSelectSystem";
public static const COLOR_THEME_CHANGE_EVENT:String = "colorThemeChangeEvent";
public function CupboardSystemEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.drimlike.games.dressup.systems.Events
Section 45
//NavigationEvent (com.drimlike.games.dressup.systems.Events.NavigationEvent)
package com.drimlike.games.dressup.systems.Events {
import flash.events.*;
public class NavigationEvent extends Event {
public static const NAVIGATION_BUTTON_SELECTED_EVENT:String = "navigationButtonSelectedEvent";
public function NavigationEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.drimlike.games.dressup.systems.Events
Section 46
//BackgroundSystem (com.drimlike.games.dressup.systems.BackgroundSystem)
package com.drimlike.games.dressup.systems {
import flash.display.*;
import caurina.transitions.*;
public class BackgroundSystem extends Sprite {
protected var mask_array:Array;
protected var background_array:Array;
protected var masker:Sprite;
protected var old_sprite:Sprite;
public function BackgroundSystem(_arg1:Array){
var _local2:Class;
var _local3:int;
var _local4:Sprite;
var _local5:Sprite;
super();
background_array = new Array();
for each (_local2 in _arg1) {
_local4 = new (_local2);
_local4.mouseChildren = false;
_local4.mouseEnabled = false;
_local4.cacheAsBitmap = true;
addChild(_local4);
background_array.push(_local4);
};
masker = new Sprite();
addChild(masker);
mask_array = new Array();
_local3 = 0;
while (_local3 < 3) {
_local5 = new Sprite();
_local5.graphics.beginFill(0, 1);
_local5.graphics.drawCircle(0, 0, 100);
_local5.graphics.endFill();
_local5.mouseChildren = false;
_local5.mouseEnabled = false;
_local5.x = ((Math.random() * 500) + 100);
_local5.y = ((Math.random() * 300) + 100);
masker.addChild(_local5);
mask_array.push(_local5);
_local3++;
};
reset(0);
}
public function selectBackground(_arg1:int):void{
reset(_arg1);
}
public function reset(_arg1:int=0):void{
var _local3:Sprite;
if (old_sprite){
old_sprite.mask = null;
};
var _local2:Sprite = Sprite(background_array[_arg1]);
setChildIndex(_local2, (numChildren - 1));
for each (_local3 in mask_array) {
Tweener.removeTweens(_local3);
_local3.width = 1;
_local3.height = 1;
_local3.x = ((Math.random() * 500) + 100);
_local3.y = ((Math.random() * 300) + 100);
Tweener.addTween(_local3, {width:1200, height:1200, transition:"easeOutExpo", time:3, delay:(Math.random() * 0.5)});
};
_local2.mask = masker;
old_sprite = _local2;
}
}
}//package com.drimlike.games.dressup.systems
Section 47
//CharacterSelectionSystem (com.drimlike.games.dressup.systems.CharacterSelectionSystem)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import flash.utils.*;
import com.drimlike.games.dressup.characterSelection.*;
import caurina.transitions.*;
public class CharacterSelectionSystem extends Sprite {
private var closeInterval:Number;
private var instantOpen:Boolean;
private var isActive:Boolean;// = true
private var alphaOverlay:Sprite;
private var lightCycleInterval:Number;
private var girls:Array;
private var blurContainer:Sprite;
private var portrait:Portrait;
private var maskOpen:Sprite;
private var background:Sprite;
private var girlsContainer:Sprite;
private var selectedCharName:String;
private var lights:Array;
public static const GIRL_SELECTION_EVENT:String = "girlSelectionEvent";
private function randomNumberBetween(_arg1:Number, _arg2:Number):Number{
return ((_arg1 + ((_arg2 - _arg1) * Math.random())));
}
public function openInstantly():void{
this.visible = true;
instantOpen = true;
GameData.getInstance().soundManager.playPapSound();
}
public function get selectedName():String{
return (selectedCharName);
}
public function close():void{
var finalClose:Function;
finalClose = function ():void{
this.visible = false;
};
clearInterval(closeInterval);
if (instantOpen){
this.visible = false;
} else {
portrait.destroyPortrait();
Tweener.addTween(maskOpen, {scaleX:0, scaleY:0, transition:"easeOutExpo", time:1, onComplete:finalClose});
};
}
public function reset():void{
var _local1:Light;
var _local2:CharacterSelectorCharacter;
clearInterval(closeInterval);
for each (_local1 in lights) {
_local1.visible = true;
_local1.show();
};
blurContainer.filters = null;
portrait.destroyPortrait();
cycleLights();
for each (_local2 in girls) {
_local2.show();
_local2.visible = true;
};
this.visible = true;
alphaOverlay.alpha = 0;
alphaOverlay.visible = false;
}
public function init():void{
var _local4:Sprite;
var _local5:Light;
var _local6:Light;
var _local7:Light;
var _local8:Light;
var _local9:Light;
var _local10:Light;
var _local11:Light;
blurContainer = new Sprite();
addChild(blurContainer);
girlsContainer = new Sprite();
blurContainer.addChild(girlsContainer);
background = new BackgroundAsset();
background.cacheAsBitmap = true;
blurContainer.addChildAt(background, 0);
var _local1:CharacterSelectorCharacter = new CharacterSelectorCharacter(Char1Asset, Char1LabelAsset, CharacterSelectorCharacter.LEA_CHARACTER);
_local1.x = 176;
_local1.y = 248;
var _local2:CharacterSelectorCharacter = new CharacterSelectorCharacter(Char2Asset, Char2LabelAsset, CharacterSelectorCharacter.LILOU_CHARACTER);
_local2.x = 348;
_local2.y = 248;
var _local3:CharacterSelectorCharacter = new CharacterSelectorCharacter(Char3Asset, Char3LabelAsset, CharacterSelectorCharacter.LEE_CHARACTER);
_local3.x = 526;
_local3.y = 245;
girls = new Array(_local1, _local2, _local3);
for each (_local4 in girls) {
_local4.addEventListener(CharacterSelectorCharacter.MOUSE_OUT_GIRL_EVENT, onMouseOutGirl);
_local4.addEventListener(CharacterSelectorCharacter.MOUSE_OVER_GIRL_EVENT, onMouseOverGirl);
_local4.addEventListener(CharacterSelectorCharacter.GIRL_SELECTED_EVENT, onGirlSelected);
girlsContainer.addChild(_local4);
};
_local5 = new Light(70, 30);
_local5.x = 16;
_local5.y = 52;
blurContainer.addChild(_local5);
_local6 = new Light(120, 45);
_local6.x = 113;
_local6.y = 17;
blurContainer.addChild(_local6);
_local7 = new Light(130, 30);
_local7.x = 292;
_local7.y = 18;
blurContainer.addChild(_local7);
_local8 = new Light(140, 50);
_local8.x = 439;
_local8.y = 14;
blurContainer.addChild(_local8);
_local9 = new Light(150, 60);
_local9.x = 570;
_local9.y = 14;
blurContainer.addChild(_local9);
_local10 = new Light(130, 100);
_local10.x = 717;
_local10.y = 39;
blurContainer.addChild(_local10);
lights = new Array(_local5, _local6, _local7, _local8, _local9, _local10);
for each (_local11 in lights) {
_local11.mouseChildren = false;
_local11.mouseEnabled = false;
};
cycleLights();
lightCycleInterval = setInterval(cycleLights, 5000);
alphaOverlay = new Sprite();
alphaOverlay.x = 0;
alphaOverlay.y = 0;
alphaOverlay.graphics.beginFill(0);
alphaOverlay.graphics.drawRect(0, 0, 728, 530);
alphaOverlay.graphics.endFill();
alphaOverlay.alpha = 0;
alphaOverlay.mouseChildren = false;
alphaOverlay.mouseEnabled = false;
alphaOverlay.visible = false;
addChild(alphaOverlay);
portrait = new Portrait();
addChild(portrait);
maskOpen = new Sprite();
maskOpen.graphics.beginFill(0);
maskOpen.graphics.drawCircle(0, 0, 5);
maskOpen.graphics.endFill();
maskOpen.x = 65;
maskOpen.y = 426;
maskOpen.visible = false;
addChild(maskOpen);
instantOpen = true;
GameData.getInstance().soundManager.playPapSound();
}
private function cycleLights():void{
var _local1:Light;
for each (_local1 in lights) {
Tweener.addTween(_local1, {rotation:randomNumberBetween(_local1.min, _local1.max), time:1, transition:"easeOutExpo", delay:randomNumberBetween(0, 2)});
};
}
private function onGirlSelected(_arg1:Event):void{
var l:Light;
var c:CharacterSelectorCharacter;
var interval:Number;
var doFireEvent:Function;
var tx:int;
var ty:int;
var angle:Number;
var e = _arg1;
doFireEvent = function ():void{
alphaOverlay.visible = false;
clearInterval(interval);
dispatchEvent(new Event(GIRL_SELECTION_EVENT, true, true));
};
var girl:CharacterSelectorCharacter = CharacterSelectorCharacter(e.target);
girl.visible = false;
isActive = false;
clearInterval(lightCycleInterval);
for each (l in lights) {
tx = (girl.x - l.x);
ty = ((girl.y + 200) - l.y);
angle = (Math.atan((ty / tx)) / (Math.PI / 180));
if (tx < 0){
angle = (angle + 180);
};
Tweener.removeTweens(l);
l.rotation = angle;
};
alphaOverlay.visible = true;
Tweener.addTween(alphaOverlay, {alpha:0.8, time:1, transition:"easeOutExpo"});
for each (c in girls) {
c.hide();
};
switch (girl.charName){
case CharacterSelectorCharacter.LILOU_CHARACTER:
trace("lil");
selectedCharName = CharacterSelectorCharacter.LILOU_CHARACTER;
portrait.showPortrait(Portrait2Asset, Char2LabelAsset);
break;
case CharacterSelectorCharacter.LEE_CHARACTER:
trace("lee");
selectedCharName = CharacterSelectorCharacter.LEE_CHARACTER;
portrait.showPortrait(Portrait3Asset, Char3LabelAsset);
break;
case CharacterSelectorCharacter.LEA_CHARACTER:
trace("lea");
selectedCharName = CharacterSelectorCharacter.LEA_CHARACTER;
portrait.showPortrait(Portrait1Asset, Char1LabelAsset);
break;
};
interval = setInterval(doFireEvent, 3000);
}
private function onMouseOutGirl(_arg1:Event):void{
if (isActive){
cycleLights();
lightCycleInterval = setInterval(cycleLights, 5000);
};
}
public function openViaMask():void{
this.visible = true;
instantOpen = false;
isActive = true;
reset();
maskOpen.visible = true;
blurContainer.mask = maskOpen;
Tweener.addTween(maskOpen, {scaleX:160, scaleY:160, time:2, transition:"easeOutExpo"});
GameData.getInstance().soundManager.playPapSound();
}
private function onMouseOverGirl(_arg1:Event):void{
var _local2:CharacterSelectorCharacter;
var _local3:Light;
var _local4:int;
var _local5:int;
var _local6:Number;
clearInterval(lightCycleInterval);
if (isActive){
_local2 = CharacterSelectorCharacter(_arg1.target);
for each (_local3 in lights) {
_local4 = (_local2.x - _local3.x);
_local5 = ((_local2.y + 200) - _local3.y);
_local6 = (Math.atan((_local5 / _local4)) / (Math.PI / 180));
if (_local4 < 0){
_local6 = (_local6 + 180);
};
Tweener.removeTweens(_local3);
Tweener.addTween(_local3, {rotation:_local6, time:1, transition:"easeOutExpo", delay:randomNumberBetween(0, 0.5)});
};
};
}
}
}//package com.drimlike.games.dressup.systems
Section 48
//CharacterSystem (com.drimlike.games.dressup.systems.CharacterSystem)
package com.drimlike.games.dressup.systems {
import flash.display.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.character.*;
public class CharacterSystem extends Sprite {
protected var character_depth_index:int;
protected var character_reference:Character;
protected var point_of_interest_array:Array;
protected var character_position:Vector2d;
public function CharacterSystem(_arg1:Vector2d, _arg2:Array, _arg3:int=0){
character_depth_index = _arg3;
point_of_interest_array = _arg2;
character_position = _arg1;
init();
}
public function enable():void{
character_reference.cacheAsBitmap = false;
character_reference.enable();
cacheAsBitmap = false;
}
public function updateCharacter(_arg1:Class, _arg2:Class, _arg3:Array, _arg4:Boolean=false):void{
character_reference.updateCharacter(_arg1, _arg2, _arg3, _arg4);
}
public function disable():void{
character_reference.disable();
character_reference.cacheAsBitmap = true;
cacheAsBitmap = true;
}
private function init():void{
var _local1:PointOfInterest;
var _local2:Vector2d;
character_reference = new Character();
character_reference.x = character_position.x;
character_reference.y = character_position.y;
for each (_local1 in point_of_interest_array) {
_local2 = new Vector2d((character_position.x + _local1.position.x), (character_position.y + _local1.position.y));
_local1.position = _local2;
_local1.x = _local1.position.x;
_local1.y = _local1.position.y;
addChild(_local1);
};
addChildAt(character_reference, character_depth_index);
}
}
}//package com.drimlike.games.dressup.systems
Section 49
//ColorSystem (com.drimlike.games.dressup.systems.ColorSystem)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.color.*;
import caurina.transitions.*;
public class ColorSystem extends Sprite {
private var isOpenFlag:Boolean;
private var containerPosition:Vector2d;
private var target:Sprite;
private var skinSwatch:SkinSwatch;
private var colorSwatch:ColorSwatch;
public function ColorSystem(_arg1:Vector2d=null){
if (_arg1){
containerPosition = _arg1;
} else {
containerPosition = new Vector2d((728 / 2), (530 / 2));
};
skinSwatch = new SkinSwatch();
skinSwatch.addEventListener(SkinSwatch.COLOR_SWATCH_CLOSE_EVENT, onClosePalette, false, 0, true);
skinSwatch.addEventListener(SkinSwatch.COLOR_TILE_CLICK_EVENT, onColorTileClick, false, 0, true);
skinSwatch.visible = false;
skinSwatch.x = 1000;
skinSwatch.y = containerPosition.y;
addChild(skinSwatch);
colorSwatch = new ColorSwatch();
colorSwatch.addEventListener(ColorSwatch.COLOR_SWATCH_CLOSE_EVENT, onClosePalette, false, 0, true);
colorSwatch.addEventListener(ColorSwatch.COLOR_TILE_CLICK_EVENT, onColorTileClick, false, 0, true);
colorSwatch.visible = false;
colorSwatch.x = 1000;
colorSwatch.y = containerPosition.y;
addChild(colorSwatch);
disable();
}
public function openWithTarget(_arg1:Sprite, _arg2:Boolean=false):void{
if (!isOpenFlag){
GameData.getInstance().soundManager.playOldStyleButtonWhoosh();
isOpenFlag = true;
target = _arg1;
if (_arg2){
skinSwatch.visible = true;
skinSwatch.enable();
skinSwatch.y = containerPosition.y;
Tweener.removeTweens(skinSwatch);
Tweener.addTween(skinSwatch, {x:containerPosition.x, time:1, transition:"easeOutExpo"});
} else {
colorSwatch.visible = true;
colorSwatch.enable();
colorSwatch.y = containerPosition.y;
Tweener.removeTweens(colorSwatch);
Tweener.addTween(colorSwatch, {x:containerPosition.x, time:1, transition:"easeOutExpo"});
};
};
}
public function enable():void{
skinSwatch.enable();
colorSwatch.enable();
}
public function disable():void{
skinSwatch.disable();
colorSwatch.disable();
}
public function closePallette():void{
GameData.getInstance().soundManager.playOldStyleButtonWhoosh();
isOpenFlag = false;
skinSwatch.disable();
colorSwatch.disable();
Tweener.removeTweens(skinSwatch);
Tweener.removeTweens(colorSwatch);
Tweener.addTween(skinSwatch, {x:1000, time:1, transition:"easeOutExpo"});
Tweener.addTween(colorSwatch, {x:1000, time:1, transition:"easeOutExpo"});
}
public function changeThemeColor(_arg1:uint):void{
colorSwatch.changeThemeColor(_arg1);
skinSwatch.changeThemeColor(_arg1);
}
private function onColorTileClick(_arg1:Event):void{
if (_arg1.target == skinSwatch){
Tweener.addTween(target, {_color:skinSwatch.selectedTile.colorHex, time:1});
containerPosition = new Vector2d(skinSwatch.x, skinSwatch.y);
} else {
Tweener.addTween(target, {_color:colorSwatch.selectedTile.colorHex, time:1});
containerPosition = new Vector2d(colorSwatch.x, colorSwatch.y);
};
closePallette();
}
private function onClosePalette(_arg1:Event):void{
if (_arg1.target == skinSwatch){
containerPosition = new Vector2d(skinSwatch.x, skinSwatch.y);
} else {
containerPosition = new Vector2d(colorSwatch.x, colorSwatch.y);
};
closePallette();
}
public function get isOpen():Boolean{
return (isOpenFlag);
}
}
}//package com.drimlike.games.dressup.systems
Section 50
//CupboardSystem (com.drimlike.games.dressup.systems.CupboardSystem)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.systems.Events.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.inventory.definitions.*;
import com.drimlike.games.dressup.interfaces.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.cupboard.event.*;
import com.drimlike.games.dressup.color.*;
import com.drimlike.games.dressup.inventory.button.*;
import com.drimlike.games.dressup.cupboard.*;
import flash.utils.*;
import com.drimlike.games.dressup.garment.*;
import com.drimlike.games.dressup.button.*;
import caurina.transitions.*;
public class CupboardSystem extends Sprite {
private var bin_system_position:Vector2d;
private var left_section_button:CupboardSectionButton;
private var isOpen:Boolean;// = true
private var section_counter:int;// = 0
private var container_color:Sprite;
private var container_position:Vector2d;
private var container_background:Sprite;
private var container_system:Sprite;
private var selected_color_tile:ColorTile;
private var color_hex_1:uint;
private var cupboards_array:Array;
private var color_hex_2:uint;
private var navigation_system:CupboardSystemNavgation;
private var color_check:Sprite;
private var sectionDefaultX:Number;
private var section_default_position_x:int;
private var color_hex_3:uint;
private var color_tiles_array:Array;
private var hiddenOverlay:Sprite;
private var right_section_button:CupboardSectionButton;
private var firstRun:Boolean;// = true
private var close_button:ShinyCloseButtonArrow;
private var cupboard_mask:Sprite;
private var cupboard_system:Sprite;
private var bin_system:Sprite;
private var sectionScrollInterval:Number;
private var navigation_position:Vector2d;
private var character_selector_button:CharacterSelectorButton;
public static const CUPBOARD_TOOLTIP_DESTROY_EVENT:String = "cupboardTooltipDestroyEvent";
public static const CUPBOARD_TOOLTIP_SYSTEM_EVENT:String = "cupboardTooltipSystemEvent2";
public function CupboardSystem(_arg1:Vector2d, _arg2:Vector2d=null, _arg3:uint=0, _arg4:uint=0, _arg5:uint=0, _arg6:Boolean=false){
var _local7:ColorTile;
var _local8:ColorTile;
super();
bin_system_position = new Vector2d(150, 100);
container_position = _arg1;
if (_arg2){
navigation_position = _arg2;
} else {
navigation_position = new Vector2d(0, 0);
};
container_system = new Sprite();
container_system.x = _arg1.x;
container_system.y = _arg1.y;
addChild(container_system);
cupboard_mask = new CupboardBackgroundMaskAsset();
cupboard_mask.mouseChildren = false;
cupboard_mask.mouseEnabled = false;
container_system.addChild(cupboard_mask);
container_color = new CupboardColorAsset();
container_color.cacheAsBitmap = true;
container_color.mouseChildren = false;
container_color.mouseEnabled = false;
container_system.addChild(container_color);
container_background = new CupboardBackgroundAsset();
container_background.cacheAsBitmap = true;
container_system.addChild(container_background);
cupboard_system = new Sprite();
container_system.addChild(cupboard_system);
cupboard_system.mask = cupboard_mask;
cupboards_array = new Array();
navigation_system = new CupboardSystemNavgation();
navigation_system.addEventListener(NavigationEvent.NAVIGATION_BUTTON_SELECTED_EVENT, onNavigationChange);
navigation_system.x = navigation_position.x;
navigation_system.y = navigation_position.y;
container_system.addChild(navigation_system);
left_section_button = new CupboardSectionButton();
left_section_button.x = -163;
left_section_button.y = -29;
left_section_button.addEventListener(CupboardEvent.SECTION_BUTTON_CLICK_EVENT, onSectionButtonClick);
container_system.addChild(left_section_button);
right_section_button = new CupboardSectionButton();
right_section_button.scaleX = (right_section_button.scaleX * -1);
right_section_button.x = 163;
right_section_button.y = -29;
right_section_button.addEventListener(CupboardEvent.SECTION_BUTTON_CLICK_EVENT, onSectionButtonClick);
container_system.addChild(right_section_button);
bin_system = new CupboardBinIconAsset();
bin_system.x = 130;
bin_system.y = 184;
bin_system.mouseChildren = false;
bin_system.mouseEnabled = false;
container_system.addChild(bin_system);
close_button = new ShinyCloseButtonArrow();
close_button.x = 145;
close_button.y = -189;
close_button.addEventListener(MouseEvent.CLICK, onCloseClick);
container_system.addChild(close_button);
if (_arg6){
character_selector_button = new CharacterSelectorButton();
character_selector_button.x = -123;
character_selector_button.y = 166;
character_selector_button.addEventListener(MouseEvent.CLICK, onCharacterSelectionClick);
container_system.addChild(character_selector_button);
};
color_tiles_array = new Array();
if (_arg3 != 0){
color_hex_1 = _arg3;
_local7 = new ColorTile(color_hex_1);
_local7.x = 90;
_local7.y = 185;
container_system.addChild(_local7);
color_tiles_array.push(_local7);
};
if (_arg4 != 0){
color_hex_2 = _arg4;
_local7 = new ColorTile(color_hex_2);
_local7.x = 60;
_local7.y = 185;
container_system.addChild(_local7);
color_tiles_array.push(_local7);
};
if (_arg5 != 0){
color_hex_3 = _arg5;
_local7 = new ColorTile(color_hex_3);
_local7.x = 30;
_local7.y = 185;
container_system.addChild(_local7);
color_tiles_array.push(_local7);
};
color_check = new CheckBoxAsset();
color_check.scaleX = (color_check.scaleY = 0.5);
color_check.mouseChildren = false;
color_check.mouseEnabled = false;
color_check.cacheAsBitmap = true;
container_system.addChild(color_check);
for each (_local8 in color_tiles_array) {
_local8.useHandCursor = true;
_local8.buttonMode = true;
_local8.addEventListener(MouseEvent.CLICK, onColorCheckClick);
_local8.mouseChildren = false;
};
if (color_tiles_array.length > 0){
onThemeColorSelect(ColorTile(color_tiles_array[1]));
changeThemeColor(8488329);
};
hiddenOverlay = new Sprite();
hiddenOverlay.graphics.beginFill(0, 0);
hiddenOverlay.graphics.drawRect(-200, -210, 700, 420);
hiddenOverlay.graphics.endFill();
hiddenOverlay.visible = false;
hiddenOverlay.useHandCursor = true;
hiddenOverlay.buttonMode = true;
hiddenOverlay.cacheAsBitmap = true;
hiddenOverlay.addEventListener(MouseEvent.CLICK, onCloseClick);
container_system.addChild(hiddenOverlay);
}
public function showCupboard():void{
var _local1:ICupboard;
isOpen = true;
hiddenOverlay.visible = false;
close_button.hideArrow();
Tweener.removeTweens(container_system);
Tweener.addTween(container_system, {x:container_position.x, time:1, transition:"easeOutExpo"});
dispatchEvent(new CupboardSystemEvent(CupboardSystemEvent.SHOW_CUPBOARD_EVENT, true, true));
for each (_local1 in cupboards_array) {
_local1.enable();
};
}
public function enable():void{
var _local1:ICupboard;
var _local2:ColorTile;
navigation_system.enable();
container_system.cacheAsBitmap = false;
cupboard_system.cacheAsBitmap = false;
for each (_local1 in cupboards_array) {
_local1.enable();
};
left_section_button.cacheAsBitmap = false;
right_section_button.cacheAsBitmap = false;
bin_system.cacheAsBitmap = false;
close_button.cacheAsBitmap = false;
character_selector_button.enable();
character_selector_button.cacheAsBitmap = false;
for each (_local2 in color_tiles_array) {
_local2.enable();
_local2.cacheAsBitmap = false;
};
hiddenOverlay.cacheAsBitmap = false;
}
private function onCharacterSelectionClick(_arg1:MouseEvent):void{
GameData.getInstance().soundManager.playOldStyleButtonClick();
dispatchEvent(new CupboardSystemEvent(CupboardSystemEvent.OPEN_CHARACTER_SELECT_SYSTEM, true, true));
}
public function get cupboardsArray():Array{
return (cupboards_array);
}
private function onSectionButtonClick(_arg1:CupboardEvent):void{
var _local2:Number;
var _local11:*;
var _local3:CupboardSectionButton = CupboardSectionButton(_arg1.target);
var _local4:ICupboard = navigation_system.currentlySelectedButton.def.referenceCupboard;
var _local5:int = _local4.sectionCount;
var _local6:int = _local4.sectionWidth;
var _local7:int = _local4.index;
var _local8:int = _local4.totalWidth;
var _local9:Array = (_local4.sectionArray[section_counter] as Array);
var _local10:Boolean;
for each (_local11 in _local9) {
if (Garment(_local11)){
if (!Garment(_local11).isOnChar){
_local10 = false;
break;
};
if (!_local10){
break;
};
};
if (!_local10){
break;
};
};
if (_local10){
};
if (_local3 == left_section_button){
if (section_counter > -1){
section_counter--;
};
} else {
if (section_counter < _local5){
section_counter++;
};
};
if (section_counter == -1){
section_counter = (_local5 - 1);
} else {
if (section_counter == _local5){
section_counter = 0;
};
};
_local2 = (sectionDefaultX - (section_counter * _local6));
Tweener.addTween(cupboard_system, {x:_local2, time:1, transition:"easeOutExpo"});
}
public function addCupboard(_arg1:ICupboard, _arg2:AbstractInventoryButton):void{
var _local5:ICupboard;
var _local3:InventoryButtonDefinition = new InventoryButtonDefinition(_arg1);
var _local4:int;
for each (_local5 in cupboards_array) {
_local4 = (_local4 + (_local5.totalWidth + 30));
};
_arg1.x = _local4;
_arg2.def = _local3;
navigation_system.addNavigationButton(_arg2);
cupboards_array.push(_arg1);
cupboard_system.addChild(AbstractCupboard(_arg1));
}
private function onCloseClick(_arg1:MouseEvent):void{
if (isOpen){
dispatchEvent(new Event(CUPBOARD_TOOLTIP_DESTROY_EVENT, true, true));
hideCupboard();
} else {
showCupboard();
};
GameData.getInstance().soundManager.playOpenCloseSound();
GameData.getInstance().soundManager.playOldStyleButtonClick();
}
private function onThemeColorSelect(_arg1:ColorTile):void{
if (_arg1 != selected_color_tile){
if (selected_color_tile){
selected_color_tile.removeChild(color_check);
};
selected_color_tile = _arg1;
selected_color_tile.addChild(color_check);
};
dispatchEvent(new CupboardSystemEvent(CupboardSystemEvent.COLOR_THEME_CHANGE_EVENT, true, true));
}
public function addGarmentToCupboard(_arg1:IGarment):void{
var _local2:ICupboard;
for each (_local2 in cupboards_array) {
if (_local2.type == _arg1.cupboardType){
AbstractCupboard(_local2).addChild(Garment(_arg1));
_arg1.gotoSource();
};
};
}
public function getClass(_arg1:Object):Class{
return (Class(getDefinitionByName(getQualifiedClassName(_arg1))));
}
private function onColorCheckClick(_arg1:MouseEvent):void{
var _local2:ColorTile = ColorTile(_arg1.target);
GameData.getInstance().soundManager.playOpenCloseSound();
onThemeColorSelect(_local2);
}
public function addScenic(_arg1:AbstractCupboard, _arg2:AbstractInventoryButton):void{
}
public function reset():void{
navigation_system.reset();
}
public function get selectedColorTileHex():uint{
return (selected_color_tile.colorHex);
}
private function onNavigationChange(_arg1:Event):void{
var cupboardRef:ICupboard;
var c:AbstractCupboard;
var doScroll:Function;
var e = _arg1;
doScroll = function ():void{
var _local1:AbstractCupboard;
if (section_counter == 0){
clearInterval(sectionScrollInterval);
Tweener.addTween(cupboard_system, {x:sectionDefaultX, time:0.9});
if (cupboardRef.sectionCount < 1){
left_section_button.deactive();
right_section_button.deactive();
} else {
dispatchEvent(new Event(CUPBOARD_TOOLTIP_SYSTEM_EVENT, true, true));
left_section_button.active();
right_section_button.active();
left_section_button.showToggle();
right_section_button.showToggle();
for each (_local1 in cupboards_array) {
_local1.mouseChildren = true;
_local1.mouseEnabled = true;
};
};
} else {
section_counter = (section_counter - 1);
Tweener.addTween(cupboard_system, {x:(cupboard_system.x + cupboardRef.sectionWidth), time:1});
};
};
clearInterval(sectionScrollInterval);
cupboardRef = navigation_system.currentlySelectedButton.def.referenceCupboard;
sectionDefaultX = -(cupboardRef.x);
Tweener.removeTweens(cupboard_system);
left_section_button.deactive();
right_section_button.deactive();
section_counter = (cupboardRef.sectionCount - 1);
if ((((cupboardRef is BackgroundCupboard)) || ((cupboardRef.sectionCount < 2)))){
Tweener.addTween(cupboard_system, {x:sectionDefaultX, time:1});
for each (c in cupboards_array) {
c.mouseChildren = true;
c.mouseEnabled = true;
};
} else {
if (!cupboardRef.hasScrolled){
Tweener.addTween(cupboard_system, {x:(sectionDefaultX - ((cupboardRef.sectionCount - 1) * cupboardRef.sectionWidth)), time:1});
cupboardRef.hasScrolled = true;
sectionScrollInterval = setInterval(doScroll, 900);
for each (c in cupboards_array) {
c.mouseChildren = false;
c.mouseEnabled = false;
};
} else {
section_counter = 0;
Tweener.addTween(cupboard_system, {x:sectionDefaultX, time:1});
if (cupboardRef.sectionCount < 1){
left_section_button.deactive();
right_section_button.deactive();
} else {
left_section_button.active();
right_section_button.active();
left_section_button.showToggle();
right_section_button.showToggle();
};
for each (c in cupboards_array) {
c.mouseChildren = true;
c.mouseEnabled = true;
};
};
};
}
public function hideCupboard():void{
var _local1:ICupboard;
isOpen = false;
hiddenOverlay.visible = true;
close_button.showArrow();
Tweener.removeTweens(container_system);
Tweener.addTween(container_system, {x:(container_position.x - 300), time:1, transition:"easeOutExpo"});
dispatchEvent(new CupboardSystemEvent(CupboardSystemEvent.HIDE_CUPBOARD_EVENT, true, true));
for each (_local1 in cupboards_array) {
_local1.disable();
};
}
public function disable():void{
var _local1:ICupboard;
var _local2:ColorTile;
navigation_system.disable();
container_system.cacheAsBitmap = true;
cupboard_system.cacheAsBitmap = true;
for each (_local1 in cupboards_array) {
_local1.disable();
};
left_section_button.cacheAsBitmap = true;
right_section_button.cacheAsBitmap = true;
bin_system.cacheAsBitmap = true;
close_button.cacheAsBitmap = true;
character_selector_button.disable();
character_selector_button.cacheAsBitmap = true;
for each (_local2 in color_tiles_array) {
_local2.disable();
_local2.cacheAsBitmap = true;
};
hiddenOverlay.cacheAsBitmap = true;
}
public function get garbageVector():Vector2d{
return (bin_system_position);
}
public function changeThemeColor(_arg1:uint):void{
Tweener.addTween(container_color, {_color:_arg1, time:1});
}
public function animateBin():void{
Tweener.addTween(bin_system, {scaleX:2, scaleY:2, time:0.5, transition:"easeOutExpo"});
Tweener.addTween(bin_system, {scaleX:1, scaleY:1, transition:"easeOutExpo", time:0.5, delay:0.75});
}
public function resetScene():void{
var _local1:ICupboard;
for each (_local1 in cupboards_array) {
if (_local1.type == CupboardData.CUPBOARD_SCENE){
BackgroundCupboard(_local1).reset();
};
};
}
}
}//package com.drimlike.games.dressup.systems
Section 51
//CupboardSystemNavgation (com.drimlike.games.dressup.systems.CupboardSystemNavgation)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.systems.Events.*;
import com.drimlike.games.dressup.inventory.button.*;
import com.drimlike.games.dressup.inventory.events.*;
public class CupboardSystemNavgation extends Sprite {
protected var buttons:Array;
protected var selectedButton:AbstractInventoryButton;
protected var buttonSpacing:int;// = 10
public function CupboardSystemNavgation(){
buttons = new Array();
}
public function enable():void{
var _local1:AbstractInventoryButton;
for each (_local1 in buttons) {
_local1.addEventListener(InventoryButtonEvent.BUTTON_CLICK_EVENT, onInventoryButtonClicked);
_local1.mouseChildren = true;
_local1.mouseEnabled = true;
};
}
public function addNavigationButton(_arg1:AbstractInventoryButton):void{
_arg1.x = ((buttons.length * _arg1.width) + (buttonSpacing * buttons.length));
_arg1.addEventListener(InventoryButtonEvent.BUTTON_CLICK_EVENT, onInventoryButtonClicked);
addChild(_arg1);
buttons.push(_arg1);
}
public function disable():void{
var _local1:AbstractInventoryButton;
for each (_local1 in buttons) {
_local1.removeEventListener(InventoryButtonEvent.BUTTON_CLICK_EVENT, onInventoryButtonClicked);
_local1.mouseChildren = false;
_local1.mouseEnabled = false;
};
}
public function get currentlySelectedButton():AbstractInventoryButton{
return (selectedButton);
}
public function reset():void{
var _local1:AbstractInventoryButton;
var _local2:AbstractInventoryButton;
for each (_local1 in buttons) {
_local1.deselect();
};
_local2 = AbstractInventoryButton(buttons[0]);
selectedButton = _local2;
selectedButton.select();
dispatchEvent(new NavigationEvent(NavigationEvent.NAVIGATION_BUTTON_SELECTED_EVENT, true, true));
}
public function destroy():void{
var _local1:AbstractInventoryButton;
buttonSpacing = 0;
for each (_local1 in buttons) {
_local1.removeEventListener(InventoryButtonEvent.BUTTON_CLICK_EVENT, onInventoryButtonClicked);
removeChild(_local1);
_local1.destroy();
};
buttons = null;
selectedButton = null;
}
protected function onInventoryButtonClicked(_arg1:Event):void{
var _local2:AbstractInventoryButton;
var _local3:AbstractInventoryButton;
for each (_local2 in buttons) {
_local2.deselect();
};
_local3 = AbstractInventoryButton(_arg1.target);
selectedButton = _local3;
selectedButton.select();
dispatchEvent(new NavigationEvent(NavigationEvent.NAVIGATION_BUTTON_SELECTED_EVENT, true, true));
}
}
}//package com.drimlike.games.dressup.systems
Section 52
//DraggingSystem (com.drimlike.games.dressup.systems.DraggingSystem)
package com.drimlike.games.dressup.systems {
import flash.display.*;
public class DraggingSystem extends Sprite {
}
}//package com.drimlike.games.dressup.systems
Section 53
//InitSystem (com.drimlike.games.dressup.systems.InitSystem)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import flash.utils.*;
import flash.text.*;
import com.drimlike.games.dressup.ui.textfields.*;
import caurina.transitions.*;
public class InitSystem extends Sprite {
private var timerTick:Timer;
private var loadingBarHolder:Sprite;
private var timer:Timer;
private var time:Number;
private var MyGames4GirlsFRData:Class;
private var MyGames4GirlsCOMData:Class;
private var girls:Sprite;
private var title:Sprite;
private var MyGames4GirlsDEData:Class;
private var text:TextField;
private var background:Sprite;
private var increment:Number;
private var LoadingBarHolderData:Class;
private var loadingBar:Sprite;
private var LoadingBarData:Class;
private var counter:Number;// = 1.5
private var MyGames4GirlsSPData:Class;
public static const START_GAME_EVENT:String = "startGameEvent";
public function InitSystem(_arg1:Number=3){
MyGames4GirlsCOMData = InitSystem_MyGames4GirlsCOMData;
MyGames4GirlsDEData = InitSystem_MyGames4GirlsDEData;
MyGames4GirlsFRData = InitSystem_MyGames4GirlsFRData;
MyGames4GirlsSPData = InitSystem_MyGames4GirlsSPData;
LoadingBarHolderData = InitSystem_LoadingBarHolderData;
LoadingBarData = InitSystem_LoadingBarData;
super();
time = _arg1;
background = new PreloaderBackgroundAsset();
addChild(background);
girls = new GirlsHeads();
girls.x = 362;
girls.y = 288;
girls.buttonMode = true;
girls.useHandCursor = true;
addChild(girls);
text = new TrebuchetField(12, 0);
text.selectable = false;
switch (GameData.getInstance().language){
case GameData.FRENCH:
text.text = "Le jeu va commencer dans quelques secondes ...";
title = (new MyGames4GirlsFRData() as Sprite);
break;
case GameData.SPANISH:
text.text = "El juego empezará en unos segundos...";
title = (new MyGames4GirlsSPData() as Sprite);
break;
case GameData.GERMAN:
text.text = "Das Spiel beginnt in wenigen Sekunden...";
title = (new MyGames4GirlsDEData() as Sprite);
break;
default:
text.text = "The game will start in a few seconds ...";
title = (new MyGames4GirlsCOMData() as Sprite);
break;
};
title.x = 362;
title.y = 147;
title.mouseEnabled = false;
title.mouseChildren = false;
addChild(title);
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);
text.x = ((194 + (loadingBarHolder.width / 2)) - (text.width / 2));
text.y = 368;
addChild(text);
increment = (loadingBarHolder.width / (_arg1 * 2));
if (time > 0){
timerTick = new Timer(500);
timerTick.addEventListener(TimerEvent.TIMER, onTimerTick);
timerTick.start();
timer = new Timer((time * 1000));
timer.addEventListener(TimerEvent.TIMER, onStartGame);
timer.start();
} else {
onStartGame();
};
}
private function onStartGame(_arg1:TimerEvent=null):void{
if (timer){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, onStartGame);
timer = null;
};
if (timerTick){
timerTick.stop();
timerTick.removeEventListener(TimerEvent.TIMER, onStartGame);
timerTick = null;
};
removeChild(loadingBarHolder);
removeChild(title);
removeChild(girls);
removeChild(background);
removeChild(loadingBar);
removeChild(text);
loadingBarHolder = null;
title = null;
girls = null;
background = null;
loadingBar = null;
text = null;
dispatchEvent(new Event(START_GAME_EVENT, true, true));
}
private function onTimerTick(_arg1:TimerEvent):void{
Tweener.addTween(loadingBar, {width:(increment * counter), time:0.4});
counter++;
}
}
}//package com.drimlike.games.dressup.systems
Section 54
//InitSystem_LoadingBarData (com.drimlike.games.dressup.systems.InitSystem_LoadingBarData)
package com.drimlike.games.dressup.systems {
import mx.core.*;
public class InitSystem_LoadingBarData extends SpriteAsset {
}
}//package com.drimlike.games.dressup.systems
Section 55
//InitSystem_LoadingBarHolderData (com.drimlike.games.dressup.systems.InitSystem_LoadingBarHolderData)
package com.drimlike.games.dressup.systems {
import mx.core.*;
public class InitSystem_LoadingBarHolderData extends SpriteAsset {
}
}//package com.drimlike.games.dressup.systems
Section 56
//InitSystem_MyGames4GirlsCOMData (com.drimlike.games.dressup.systems.InitSystem_MyGames4GirlsCOMData)
package com.drimlike.games.dressup.systems {
import mx.core.*;
public class InitSystem_MyGames4GirlsCOMData extends SpriteAsset {
}
}//package com.drimlike.games.dressup.systems
Section 57
//InitSystem_MyGames4GirlsDEData (com.drimlike.games.dressup.systems.InitSystem_MyGames4GirlsDEData)
package com.drimlike.games.dressup.systems {
import mx.core.*;
public class InitSystem_MyGames4GirlsDEData extends SpriteAsset {
}
}//package com.drimlike.games.dressup.systems
Section 58
//InitSystem_MyGames4GirlsFRData (com.drimlike.games.dressup.systems.InitSystem_MyGames4GirlsFRData)
package com.drimlike.games.dressup.systems {
import mx.core.*;
public class InitSystem_MyGames4GirlsFRData extends SpriteAsset {
}
}//package com.drimlike.games.dressup.systems
Section 59
//InitSystem_MyGames4GirlsSPData (com.drimlike.games.dressup.systems.InitSystem_MyGames4GirlsSPData)
package com.drimlike.games.dressup.systems {
import mx.core.*;
public class InitSystem_MyGames4GirlsSPData extends SpriteAsset {
}
}//package com.drimlike.games.dressup.systems
Section 60
//Sandbox (com.drimlike.games.dressup.systems.Sandbox)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.geom.*;
import com.drimlike.games.dressup.garment.event.*;
import flash.display.*;
import com.drimlike.games.dressup.systems.Events.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.interfaces.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.character.*;
import com.drimlike.games.dressup.inventory.button.*;
import com.drimlike.games.dressup.cupboard.*;
import com.drimlike.games.dressup.characterSelection.*;
import com.drimlike.games.dressup.garment.*;
import caurina.transitions.*;
import flash.printing.*;
public class Sandbox extends Sprite {
private var tooltipCounter:int;// = 0
private var garments:Array;
private var isFirstRun:Boolean;// = true
private var isSkinEnabled:Boolean;// = true
private var isOnPrintScreen:Boolean;
private var tooltipSystem:TooltipSystem;
private var characterPosition:Vector2d;
private var cupboardPosition:Vector2d;
private var cupboardSystem:CupboardSystem;
private var characterSystem:CharacterSystem;
private var systemsContainer:Sprite;
private var selectionContainer:Sprite;
private var draggingSystem:DraggingSystem;
private var uiSystem:UISystem;
private var isDragEnabled:Boolean;// = true
private var characterSelectionFlag:Boolean;
private var characterSelectionSystem:CharacterSelectionSystem;
private var colorSystem:ColorSystem;
private var backgroundSystem:BackgroundSystem;
public function Sandbox(_arg1:Boolean=false){
cupboardPosition = new Vector2d(190, 260);
characterPosition = new Vector2d(503, 265);
super();
characterSelectionFlag = _arg1;
systemsContainer = new Sprite();
systemsContainer.mouseEnabled = false;
addChild(systemsContainer);
selectionContainer = new Sprite();
selectionContainer.mouseEnabled = false;
addChild(selectionContainer);
if (_arg1){
characterSelectionSystem = new CharacterSelectionSystem();
characterSelectionSystem.addEventListener(CharacterSelectionSystem.GIRL_SELECTION_EVENT, onGirlSelectionEvent, false, 0, isSkinEnabled);
selectionContainer.addChild(characterSelectionSystem);
};
init();
}
private function onGarmentMouseOver(_arg1:GarmentEvent):void{
var _local2:IGarment = IGarment(_arg1.target);
if (_local2 != _local2.isOnChar){
if (_local2.pointOfInterest.garment == null){
_local2.pointOfInterest.createHighlight(_local2.highlightClass);
};
};
}
private function onCupboardTooltipSystem(_arg1:Event=null):void{
var _local2:String;
if (tooltipSystem){
tooltipSystem.destroyAllTooltips();
if (tooltipCounter < cupboardSystem.cupboardsArray.length){
switch (GameData.getInstance().language){
case GameData.ENGLISH:
_local2 = "click to see more !";
break;
case GameData.FRENCH:
_local2 = "clique pour en voir plus !";
break;
case GameData.GERMAN:
_local2 = "klick hier für mehr info !";
break;
case GameData.SPANISH:
_local2 = "¡Haz clic para ver más!";
break;
};
if (!isOnPrintScreen){
tooltipSystem.addToolTip(_local2, new Vector2d(350, 190));
};
tooltipCounter++;
};
};
}
private function onBackgroundChange(_arg1:Event):void{
var _local2:BackgroundCupboard = BackgroundCupboard(_arg1.target);
backgroundSystem.selectBackground(_local2.selectedIndex);
}
private function createGame():void{
var _local50:Garment;
var _local51:ICupboard;
var _local52:ICupboard;
var _local53:ICupboard;
var _local54:ICupboard;
var _local55:ICupboard;
var _local56:ICupboard;
var _local57:AbstractInventoryButton;
var _local58:AbstractInventoryButton;
var _local59:AbstractInventoryButton;
var _local60:AbstractInventoryButton;
var _local61:AbstractInventoryButton;
var _local62:AbstractInventoryButton;
var _local1:Array = new Array(Background1, Background2, Background3, Background4);
backgroundSystem = new BackgroundSystem(_local1);
systemsContainer.addChild(backgroundSystem);
var _local2:PointOfInterest = new PointOfInterest(PointsOfInterestData.MOUTH, new Vector2d(11, -181), new Vector2d(0, -40));
var _local3:PointOfInterest = new PointOfInterest(PointsOfInterestData.BUST, new Vector2d(6, -112), new Vector2d(0, -60));
var _local4:PointOfInterest = new PointOfInterest(PointsOfInterestData.FLOWER, new Vector2d(5, 1), new Vector2d(0, -30));
var _local5:PointOfInterest = new PointOfInterest(PointsOfInterestData.FOOT, new Vector2d(27, 212), new Vector2d(10, -50));
var _local6:PointOfInterest = new PointOfInterest(PointsOfInterestData.LEFT_ANKLE, new Vector2d(-136, 194), new Vector2d(0, -50));
var _local7:PointOfInterest = new PointOfInterest(PointsOfInterestData.RIGHT_KNEE, new Vector2d(64, 85), new Vector2d(0, -50));
var _local8:PointOfInterest = new PointOfInterest(PointsOfInterestData.EYES, new Vector2d(16, -205), new Vector2d(0, -45));
var _local9:PointOfInterest = new PointOfInterest(PointsOfInterestData.RIGHT_HAND, new Vector2d(69, 33), new Vector2d(0, -40));
var _local10:PointOfInterest = new PointOfInterest(PointsOfInterestData.LEFT_ELBOW, new Vector2d(-13, -86), new Vector2d(0, -80));
var _local11:Array = new Array(_local2, _local4, _local5, _local6, _local3, _local10, _local9, _local7, _local8);
characterSystem = new CharacterSystem(characterPosition, _local11, 0);
characterSystem.addEventListener(Character.CHARACTER_CHANGE_COLOR_EVENT, onCharacterChangeColor, false, 0, true);
characterSystem.addEventListener(Character.CHARACTER_SKIN_CHANGE_COLOR_EVENT, onCharacterChangeSkinColor, false, 0, true);
systemsContainer.addChild(characterSystem);
if (!characterSelectionFlag){
characterSystem.updateCharacter(CustomCharOverlay, CustomCharColor, new Array(CustomCharAsset1, CustomCharAsset2, CustomCharAsset3), isSkinEnabled);
};
var _local12:Number = 2.5;
var _local13:IGarment = new Garment(Mouth1Color, Mouth1Overlay, Mouth1Highlight, new Array(), _local2, _local12, 1, new Vector2d(0, 10), null, null, true, false);
var _local14:IGarment = new Garment(Mouth2Color, Mouth2Overlay, Mouth2Highlight, new Array(), _local2, _local12, 1, new Vector2d(0, 10), null, null, true, false);
var _local15:IGarment = new Garment(Mouth3Color, Mouth3Overlay, Mouth3Highlight, new Array(), _local2, _local12, 1, new Vector2d(0, 10), null, null, true, true);
var _local16:IGarment = new Garment(Mouth4Color, Mouth4Overlay, Mouth4Highlight, new Array(), _local2, _local12, 1, new Vector2d(0, 10), null, null, true, false);
var _local17:IGarment = new Garment(Mouth5Color, Mouth5Overlay, Mouth5Highlight, new Array(), _local2, _local12, 1, new Vector2d(0, 10), null, null, true, true);
var _local18:IGarment = new Garment(Mouth6Color, Mouth6Overlay, Mouth6Highlight, new Array(), _local2, _local12, 1, new Vector2d(0, 10), null, null, true, true);
_local12 = 0.6;
var _local19:IGarment = new Garment(Bust1Color, Bust1Overlay, Bust1Highlight, new Array(Bust1Asset1, Bust1Asset2), _local3, _local12, 1, new Vector2d(0, 0));
var _local20:IGarment = new Garment(Bust2Color, Bust2Overlay, Bust2Highlight, new Array(Bust2Asset1), _local3, _local12, 1, new Vector2d(0, 0));
var _local21:IGarment = new Garment(Bust3Color, Bust3Overlay, Bust3Highlight, new Array(Bust3Asset1), _local3, _local12, 1, new Vector2d(0, 0));
var _local22:IGarment = new Garment(Bust4Color, Bust4Overlay, Bust4Highlight, new Array(Bust4Asset1, Bust4Asset2), _local3, _local12, 1, new Vector2d(0, 30));
var _local23:IGarment = new Garment(Bust5Color, Bust5Overlay, Bust5Highlight, new Array(Bust5Asset1), _local3, _local12, 1, new Vector2d(0, 0));
var _local24:IGarment = new Garment(Bust6Color, Bust6Overlay, Bust6Highlight, new Array(Bust6Asset1), _local3, _local12, 1, new Vector2d(0, 0));
_local12 = 0.5;
var _local25:IGarment = new Garment(Flower1Color, Flower1Overlay, Flower1Highlight, new Array(Flower1Asset1, Flower1Asset2), _local4, _local12, 1, new Vector2d(0, -15));
var _local26:IGarment = new Garment(Flower2Color, Flower2Overlay, Flower2Highlight, new Array(), _local4, _local12, 1, new Vector2d(0, -15));
var _local27:IGarment = new Garment(Flower3Color, Flower3Overlay, Flower3Highlight, new Array(), _local4, _local12, 1, new Vector2d(0, -15));
var _local28:IGarment = new Garment(Flower4Color, Flower4Overlay, Flower4Highlight, new Array(Flower4Asset1, Flower4Asset2), _local4, _local12, 1, new Vector2d(0, -15));
var _local29:IGarment = new Garment(Flower5Color, Flower5Overlay, Flower5Highlight, new Array(Flower5Asset1), _local4, _local12, 1, new Vector2d(0, -15));
var _local30:IGarment = new Garment(Flower6Color, Flower6Overlay, Flower6Highlight, new Array(Flower6Asset1), _local4, _local12, 1, new Vector2d(0, -15));
_local12 = 0.5;
var _local31:IGarment = new Garment(Foot1Color, Foot1Overlay, Foot1Highlight, new Array(Foot1Asset1, Foot1Asset2), _local5, _local12, 1, new Vector2d(0, 0));
var _local32:IGarment = new Garment(Foot2Color, Foot2Overlay, Foot2Highlight, new Array(Foot2Asset1), _local5, _local12, 1, new Vector2d(0, 0));
var _local33:IGarment = new Garment(Foot3Color, Foot3Overlay, Foot3Highlight, new Array(), _local5, _local12, 1, new Vector2d(0, 0));
var _local34:IGarment = new Garment(Foot4Color, Foot4Overlay, Foot4Highlight, new Array(Foot4Asset1, Foot4Asset2), _local5, _local12, 1, new Vector2d(0, 0));
var _local35:IGarment = new Garment(Foot5Color, Foot5Overlay, Foot5Highlight, new Array(Foot5Asset1), _local5, _local12, 1, new Vector2d(0, 0));
var _local36:IGarment = new Garment(LeftFoot1Color, LeftFoot1Overlay, LeftFoot1Highlight, new Array(), _local6, _local12, 1, new Vector2d(0, 0));
var _local37:IGarment = new Garment(RightKnee1Color, RightKnee1Overlay, RightKnee1Highlight, new Array(RightKnee1Asset1), _local7, _local12, 1, new Vector2d(0, 0));
var _local38:IGarment = new Garment(Eyes1Color, Eyes1Overlay, Eyes1Highlight, new Array(), _local8, 1.5, 1, new Vector2d(0, 0));
var _local39:IGarment = new Garment(RightHand1Color, RightHand1Overlay, RightHand1Highlight, new Array(RightHand1Asset1), _local9, 1.5, 1, new Vector2d(15, -7));
var _local40:IGarment = new Garment(RightHand2Color, RightHand2Overlay, RightHand2Highlight, new Array(RightHand2Asset1), _local9, _local12, 1, new Vector2d(85, -30));
var _local41:IGarment = new Garment(RightHand3Color, RightHand3Overlay, RightHand3Highlight, new Array(RightHand3Asset1, RightHand3Asset2), _local9, _local12, 1, new Vector2d(15, -30));
var _local42:IGarment = new Garment(RightHand4Color, RightHand4Overlay, RightHand4Highlight, new Array(RightHand4Asset1), _local9, _local12, 1, new Vector2d(-15, 70));
var _local43:IGarment = new Garment(Cape1Color, Cape1Overlay, Cape1Highlight, new Array(), _local10, _local12, 1, new Vector2d(0, 0));
var _local44:IGarment = new Garment(Cape2Color, Cape2Overlay, Cape2Highlight, new Array(Cape2Asset1), _local10, _local12, 1, new Vector2d(0, 0));
_local9.conflictingPOIs = new Array(_local7);
_local7.conflictingPOIs = new Array(_local9);
var _local45:Array = new Array(_local13, _local14, _local15, _local16, _local17, _local18);
var _local46:Array = new Array(_local19, _local20, _local24, _local22, _local23, _local21);
var _local47:Array = new Array(_local29, _local30, _local27, _local28, _local25, _local26);
var _local48:Array = new Array(_local33, _local32, _local31, _local34, _local35, _local36);
var _local49:Array = new Array(_local37, _local38, _local39, _local40, _local42, _local41, _local43, _local44);
garments = new Array();
for each (_local50 in _local45) {
garments.push(_local50);
};
for each (_local50 in _local46) {
garments.push(_local50);
};
for each (_local50 in _local47) {
garments.push(_local50);
};
for each (_local50 in _local48) {
garments.push(_local50);
};
for each (_local50 in _local49) {
garments.push(_local50);
};
for each (_local50 in garments) {
_local50.addEventListener(GarmentEvent.GARMENT_START_DRAG_EVENT, onGarmentStartDrag);
_local50.addEventListener(GarmentEvent.GARMENT_END_DRAG_EVENT, onGarmentEndDrag);
_local50.addEventListener(GarmentEvent.GARMENT_RESET_TO_CUPBOARD_EVENT, onGarmentResetToCupboard);
_local50.addEventListener(GarmentEvent.GARMENT_OPEN_COLOR_EVENT, onGarmentOpenColor);
};
_local51 = new HangerManualCupboard(_local45, CupboardData.CUPBOARD_1, 0, 6);
_local52 = new HangerManualCupboard(_local46, CupboardData.CUPBOARD_2, 1, 6);
_local53 = new HangerManualCupboard(_local47, CupboardData.CUPBOARD_3, 2, 6);
_local54 = new HangerManualCupboard(_local48, CupboardData.CUPBOARD_4, 3, 6.5);
_local55 = new HangerManualCupboard(_local49, CupboardData.CUPBOARD_5, 4, 6);
_local56 = new BackgroundCupboard(_local1, CupboardData.CUPBOARD_SCENE, 5);
BackgroundCupboard(_local56).addEventListener(BackgroundCupboard.BACKGROUND_CHANGE_EVENT, onBackgroundChange);
_local57 = new SimpleInventoryButton(CupboardBackgroundButtonAsset, CupboardHighlightButtonAsset, CupboardForegroundButtonAsset, CupboardButtonTopIconAsset);
_local58 = new SimpleInventoryButton(CupboardBackgroundButtonAsset, CupboardHighlightButtonAsset, CupboardForegroundButtonAsset, CupboardButtonTrouserIconAsset);
_local59 = new SimpleInventoryButton(CupboardBackgroundButtonAsset, CupboardHighlightButtonAsset, CupboardForegroundButtonAsset, CupboardButtonShoeIconAsset);
_local60 = new SimpleInventoryButton(CupboardBackgroundButtonAsset, CupboardHighlightButtonAsset, CupboardForegroundButtonAsset, CupboardButtonBagIconAsset);
_local61 = new SimpleInventoryButton(CupboardBackgroundButtonAsset, CupboardHighlightButtonAsset, CupboardForegroundButtonAsset, CupboardButtonCapeIconAsset);
_local62 = new SimpleInventoryButton(CupboardBackgroundButtonAsset, CupboardHighlightButtonAsset, CupboardForegroundButtonAsset, CupboardButtonSceneIconAsset);
cupboardSystem = new CupboardSystem(cupboardPosition, new Vector2d(-124, -174), 0xD40079, 8488329, 13551519, characterSelectionFlag);
cupboardSystem.addEventListener(CupboardSystemEvent.OPEN_CHARACTER_SELECT_SYSTEM, onOpenCharacterSelectSystem, false, 0, true);
cupboardSystem.addEventListener(CupboardSystemEvent.COLOR_THEME_CHANGE_EVENT, onColorThemeChangeEvent, false, 0, true);
cupboardSystem.addEventListener(CupboardSystem.CUPBOARD_TOOLTIP_SYSTEM_EVENT, onCupboardTooltipSystem, false, 0, true);
cupboardSystem.addEventListener(CupboardSystem.CUPBOARD_TOOLTIP_DESTROY_EVENT, onCupboardTooltipDestroy, false, 0, true);
cupboardSystem.addEventListener(NavigationEvent.NAVIGATION_BUTTON_SELECTED_EVENT, onNavigationChange);
cupboardSystem.addCupboard(_local51, _local57);
cupboardSystem.addCupboard(_local52, _local58);
cupboardSystem.addCupboard(_local53, _local59);
cupboardSystem.addCupboard(_local54, _local60);
cupboardSystem.addCupboard(_local55, _local61);
cupboardSystem.addCupboard(_local56, _local62);
systemsContainer.addChild(cupboardSystem);
tooltipSystem = new TooltipSystem();
systemsContainer.addChild(tooltipSystem);
colorSystem = new ColorSystem();
colorSystem.changeThemeColor(8488329);
addChild(colorSystem);
draggingSystem = new DraggingSystem();
addChild(draggingSystem);
}
private function init():void{
createGame();
createUISystem();
if (!characterSelectionFlag){
uiSystem.showDressupScreen();
};
}
public function enable():void{
var _local1:Garment;
characterSystem.enable();
cupboardSystem.enable();
colorSystem.enable();
systemsContainer.cacheAsBitmap = false;
selectionContainer.cacheAsBitmap = false;
for each (_local1 in garments) {
_local1.convertToVector();
};
}
public function startUp():void{
trace("start up");
if (!characterSelectionFlag){
cupboardSystem.reset();
} else {
characterSelectionSystem.init();
};
}
private function onGarmentStartDrag(_arg1:GarmentEvent):void{
var _local5:Garment;
var _local2:Garment = Garment(_arg1.target);
var _local3:AbstractCupboard = AbstractCupboard(_local2.cupboard);
var _local4:PointOfInterest = PointOfInterest(_local2.pointOfInterest);
if (colorSystem.isOpen){
colorSystem.closePallette();
};
if (tooltipSystem){
tooltipSystem.destroyAllTooltips();
};
_local2.hitzoneSprite.visible = true;
if (_local3.contains(_local2)){
_local3.removeChild(_local2);
};
if (_local4.contains(_local2)){
_local4.removeChild(_local2);
};
if (_local4.garment == null){
_local4.createHighlight(_local2.highlightClass);
};
_local2.x = draggingSystem.mouseX;
_local2.y = draggingSystem.mouseY;
for each (_local5 in garments) {
if (_local5 != _local2){
_local5.mouseChildren = false;
_local5.mouseEnabled = false;
_local5.convertToBitmap();
_local5.stopDrag();
};
};
_local2.startDrag(false);
draggingSystem.addChild(_local2);
}
private function onGarmentOpenColor(_arg1:GarmentEvent):void{
tooltipSystem.destroyAllTooltips();
colorSystem.openWithTarget(Sprite(_arg1.target));
}
private function onColorThemeChangeEvent(_arg1:CupboardSystemEvent):void{
var _local2:uint = cupboardSystem.selectedColorTileHex;
cupboardSystem.changeThemeColor(_local2);
colorSystem.changeThemeColor(_local2);
uiSystem.changeBackgroundColor(_local2);
}
private function onCharacterChangeColor(_arg1:Event):void{
var _local2:Sprite = Sprite(_arg1.target);
colorSystem.openWithTarget(_local2);
if (tooltipSystem){
tooltipSystem.destroyAllTooltips();
};
}
private function onGarmentSkinOpenColor(_arg1:GarmentEvent):void{
if (isSkinEnabled){
colorSystem.openWithTarget(Sprite(_arg1.target), true);
} else {
onGarmentOpenColor(_arg1);
};
}
private function onCharacterChangeSkinColor(_arg1:Event):void{
trace("character skin color");
var _local2:Sprite = Sprite(_arg1.target);
colorSystem.openWithTarget(_local2, true);
if (tooltipSystem){
tooltipSystem.destroyAllTooltips();
};
}
private function onCupboardTooltipDestroy(_arg1:Event):void{
tooltipSystem.destroyAllTooltips();
}
public function localToLocal(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Point=null):Point{
var _local4:Point = (_arg3) ? _arg3 : new Point();
_local4 = _arg1.localToGlobal(_local4);
_local4 = _arg2.globalToLocal(_local4);
return (_local4);
}
private function onOpenCharacterSelectSystem(_arg1:Event):void{
characterSelectionSystem.openViaMask();
uiSystem.showCharacterSelector();
disable();
}
private function onGarmentEndDrag(_arg1:GarmentEvent):void{
var _local7:Garment;
var _local8:Garment;
var _local9:Point;
var _local10:PointOfInterest;
var _local2:Garment = Garment(_arg1.target);
var _local3:Vector2d = new Vector2d(draggingSystem.mouseX, draggingSystem.mouseY);
var _local4:PointOfInterest = _local2.pointOfInterest;
var _local5:Vector2d = new Vector2d(_local4.x, _local4.y);
var _local6:Number = Point.distance(new Point(_local3.x, _local3.y), new Point(_local5.x, _local5.y));
for each (_local7 in garments) {
_local2.stopDrag();
};
if (_local6 < 100){
_local8 = Garment(_local4.garment);
if (_local4.conflictingPOIs != null){
for each (_local10 in _local4.conflictingPOIs) {
_local7 = Garment(_local10.garment);
if (_local7 != null){
if (_local10.contains(_local7)){
_local10.removeChild(_local7);
};
if (!draggingSystem.contains(_local7)){
draggingSystem.addChild(_local7);
};
_local7.mouseChildren = false;
_local7.mouseEnabled = false;
_local7.convertToVector();
_local7.x = _local10.x;
_local7.y = _local10.y;
cupboardSystem.animateBin();
_local7.gotoBin();
_local10.garment = null;
_local7.hitzoneSprite.visible = true;
};
};
};
if (_local8){
if (_local8 != _local2){
if (_local4.contains(_local8)){
_local4.removeChild(_local8);
};
if (!draggingSystem.contains(_local8)){
draggingSystem.addChildAt(_local8, 0);
};
_local8.mouseChildren = false;
_local8.mouseEnabled = false;
_local8.convertToVector();
_local8.x = _local4.x;
_local8.y = _local4.y;
cupboardSystem.animateBin();
_local8.gotoBin();
_local4.garment = null;
_local2.hitzoneSprite.visible = true;
};
};
_local9 = localToLocal(draggingSystem, _local4, new Point(_local2.x, _local2.y));
if (draggingSystem.contains(_local2)){
draggingSystem.removeChild(_local2);
};
if (!_local4.contains(_local2)){
_local4.addChild(_local2);
};
_local2.x = _local9.x;
_local2.y = _local9.y;
for each (_local7 in garments) {
if (_local7 != _local8){
_local7.mouseChildren = true;
_local7.mouseEnabled = true;
if (!_local7.isOnChar){
_local7.convertToBitmap();
} else {
_local7.convertToVector();
};
};
};
_local4.garment = _local2;
if (_local4.isFirstUsed){
if (_local2.isColorEnabled){
_local4.isFirstUsed = false;
if (_local4.isToolTipEnabled){
tooltipSystem.addToolTip(_local4.tooltipString, new Vector2d((_local4.x + _local4.tooltipOffset.x), (_local4.y + _local4.tooltipOffset.y)));
};
};
};
_local2.gotoTarget();
if (_local2.isColorEnabled){
_local2.hitzoneSprite.visible = false;
};
} else {
_local2.mouseChildren = false;
_local2.mouseEnabled = false;
_local2.convertToVector();
cupboardSystem.animateBin();
_local2.gotoBin();
_local2.hitzoneSprite.visible = true;
if (_local4.garment == _local2){
_local4.garment = null;
};
for each (_local7 in garments) {
if (_local7 != _local2){
_local2.mouseChildren = true;
_local2.mouseEnabled = true;
if (!_local7.isOnChar){
_local7.convertToBitmap();
} else {
_local7.convertToVector();
};
};
};
};
}
private function onGarmentResetToCupboard(_arg1:GarmentEvent):void{
var _local4:Garment;
var _local2:Garment = Garment(_arg1.target);
var _local3:AbstractCupboard = AbstractCupboard(_local2.cupboard);
if (draggingSystem.contains(Garment(_local2))){
draggingSystem.removeChild(Garment(_local2));
};
_local2.gotoSource();
if (!_local3.contains(_local2)){
_local3.addChild(_local2);
};
for each (_local4 in garments) {
_local4.mouseChildren = true;
_local4.mouseEnabled = true;
if (!_local4.isOnChar){
_local4.convertToBitmap();
} else {
_local4.convertToVector();
};
};
_local2.hitzoneSprite.visible = true;
}
private function createUISystem():void{
uiSystem = new UISystem();
uiSystem.addEventListener(UISystem.PRINTER_CLICKED_EVENT, onPrinterClicked, false, 0, true);
uiSystem.addEventListener(UISystem.DONE_CLICKED_EVENT, onDoneClicked, false, 0, true);
uiSystem.addEventListener(UISystem.RETRY_CLICKED_EVENT, onRetryClicked, false, 0, true);
uiSystem.firstRunInterface();
addChild(uiSystem);
}
private function onGarmentMouseOut(_arg1:GarmentEvent):void{
var _local2:IGarment = IGarment(_arg1.target);
_local2.pointOfInterest.destroyHighlight();
}
private function onDoneClicked(_arg1:Event):void{
GameData.getInstance().soundManager.playJingle();
characterSystem.disable();
characterSystem.mouseChildren = false;
characterSystem.mouseEnabled = false;
tooltipSystem.destroyAllTooltips();
uiSystem.showPrintScreen();
colorSystem.closePallette();
Tweener.removeTweens(cupboardSystem);
Tweener.addTween(cupboardSystem, {x:-500, time:1, transition:"easeOutExpo"});
isOnPrintScreen = true;
}
public function disable():void{
var _local1:Garment;
characterSystem.disable();
cupboardSystem.disable();
colorSystem.closePallette();
colorSystem.disable();
systemsContainer.cacheAsBitmap = true;
selectionContainer.cacheAsBitmap = true;
for each (_local1 in garments) {
_local1.convertToBitmap();
};
}
private function onGirlSelectionEvent(_arg1:Event):void{
characterSelectionSystem.close();
switch (characterSelectionSystem.selectedName){
case CharacterSelectorCharacter.LILOU_CHARACTER:
characterSystem.updateCharacter(Char3Overlay, Char3Color, new Array(Char3Asset1, Char3Asset2, Char3Asset3, Char3Asset4), isSkinEnabled);
break;
case CharacterSelectorCharacter.LEE_CHARACTER:
characterSystem.updateCharacter(Char2Overlay, Char2Color, new Array(Char2Asset1, Char2Asset2, Char2Asset3, Char2Asset4), isSkinEnabled);
break;
case CharacterSelectorCharacter.LEA_CHARACTER:
characterSystem.updateCharacter(Char1Overlay, Char1Color, new Array(Char1Asset1, Char1Asset2, Char1Asset3, Char1Asset4), isSkinEnabled);
break;
};
enable();
cupboardSystem.reset();
uiSystem.showDressupScreen();
}
private function onPrinterClicked(_arg1:Event):void{
var _local3:Bitmap;
var _local4:Bitmap;
var _local5:Bitmap;
var _local2:BitmapData = new BitmapData(728, 530, true);
uiSystem.removeForPrint();
var _local6:Sprite = new Sprite();
var _local7:PrintJob = new PrintJob();
var _local8:PrintJobOptions = new PrintJobOptions();
var _local9:Boolean = _local7.start();
if (_local9){
if (_local7.orientation == PrintJobOrientation.LANDSCAPE){
backgroundSystem.scaleX = 1.175;
backgroundSystem.scaleY = 1.125;
_local2.draw(backgroundSystem);
backgroundSystem.scaleX = 1;
backgroundSystem.scaleY = 1;
_local3 = new Bitmap(_local2, PixelSnapping.AUTO, true);
_local6.addChild(_local3);
uiSystem.scaleX = 1.175;
uiSystem.scaleY = 1.125;
_local2.draw(uiSystem);
uiSystem.scaleX = 1;
uiSystem.scaleY = 1;
_local4 = new Bitmap(_local2, PixelSnapping.AUTO, true);
_local6.addChild(_local4);
characterSystem.scaleX = 1.175;
characterSystem.scaleY = 1.125;
_local2.draw(characterSystem);
characterSystem.scaleX = 1;
characterSystem.scaleY = 1;
_local5 = new Bitmap(_local2, PixelSnapping.AUTO, true);
_local6.addChild(_local5);
_local6.scaleX = 1.175;
_local6.scaleY = 1.125;
} else {
backgroundSystem.scaleX = 1.2;
backgroundSystem.scaleY = 1.15;
_local2.draw(backgroundSystem);
backgroundSystem.scaleX = 1;
backgroundSystem.scaleY = 1;
_local3 = new Bitmap(_local2, PixelSnapping.AUTO, true);
_local6.addChild(_local3);
uiSystem.scaleX = 1.2;
uiSystem.scaleY = 1.15;
_local2.draw(uiSystem);
uiSystem.scaleX = 1;
uiSystem.scaleY = 1;
_local4 = new Bitmap(_local2, PixelSnapping.AUTO, true);
_local6.addChild(_local4);
characterSystem.scaleX = 1.2;
characterSystem.scaleY = 1.15;
_local2.draw(characterSystem);
characterSystem.scaleX = 1;
characterSystem.scaleY = 1;
_local5 = new Bitmap(_local2, PixelSnapping.AUTO, true);
_local6.addChild(_local5);
_local6.rotation = 90;
_local6.scaleX = 1.2;
_local6.scaleY = 1.15;
};
_local7.addPage(_local6);
_local7.send();
};
uiSystem.returnAfterPrint();
}
private function onRetryClicked(_arg1:Event):void{
GameData.getInstance().soundManager.playJingle();
characterSystem.enable();
characterSystem.mouseChildren = true;
characterSystem.mouseEnabled = true;
cupboardSystem.resetScene();
characterSystem;
uiSystem.showDressupScreen();
Tweener.removeTweens(cupboardSystem);
Tweener.addTween(cupboardSystem, {x:0, time:1, transition:"easeOutExpo", delay:0.8});
isOnPrintScreen = false;
}
private function onNavigationChange(_arg1:Event):void{
if (tooltipSystem != null){
tooltipSystem.destroyAllTooltips();
};
}
}
}//package com.drimlike.games.dressup.systems
Section 61
//TooltipSystem (com.drimlike.games.dressup.systems.TooltipSystem)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.util.*;
import com.drimlike.games.dressup.ui.tooltip.*;
public class TooltipSystem extends Sprite {
private var tooltips:Array;
public function TooltipSystem(){
tooltips = new Array();
super();
mouseChildren = false;
mouseEnabled = false;
}
public function destroyAllTooltips():void{
var _local1:ToolTip;
for each (_local1 in tooltips) {
_local1.notifyDestroy();
};
}
public function addToolTip(_arg1:String, _arg2:Vector2d, _arg3:Vector2d=null):void{
if (_arg3 == null){
_arg3 = new Vector2d(0, -10);
};
var _local4:ToolTip = new ToolTip(_arg1, _arg2, _arg3);
_local4.mouseChildren = false;
_local4.mouseEnabled = false;
_local4.addEventListener(ToolTip.TOOLTIP_TIME_OUT_DESTROY_EVENT, onTooltipDestroy, true, 0, true);
addChild(_local4);
tooltips.push(_local4);
}
private function onTooltipDestroy(_arg1:Event):void{
var _local4:ToolTip;
var _local2:ToolTip = ToolTip(_arg1.target);
var _local3:int;
for each (_local4 in tooltips) {
if (_local4 == _local2){
tooltips.splice(_local3, 1);
break;
};
_local3++;
};
removeChild(_local2);
_local2.destroy();
_local2 = null;
}
}
}//package com.drimlike.games.dressup.systems
Section 62
//UISystem (com.drimlike.games.dressup.systems.UISystem)
package com.drimlike.games.dressup.systems {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.ui.oldstyle.*;
import com.drimlike.games.dressup.ui.xml.*;
import com.drimlike.games.dressup.ui.*;
import flash.net.*;
import caurina.transitions.*;
public class UISystem extends Sprite {
private var urlS:String;
private var doneButton:OldStyleButton;
private var xmlFeed:XMLFeed;
private var xmlRotator:XMLRotator;
private var cobrand:Sprite;
private var soundButton:SoundButton;
private var isCoBrand:Boolean;// = false
private var myGames4Girls:MyGames4Girls;
private var replayButton:OldStyleButton;
private var moreGamesButton:OldStyleButton;
private var printButton:OldStyleButton;
public static const DONE_CLICKED_EVENT:String = "doneClickedEvent";
public static const RETRY_CLICKED_EVENT:String = "retryClickedEvent";
public static const PRINTER_CLICKED_EVENT:String = "printerClickedEvent";
public function UISystem(){
createMyGames4Girls();
createDoneButton();
createXMLFeed();
createSoundButton();
createPrintButton();
createMoreGamesButton();
createReplayButton();
createXMLRotator();
if (isCoBrand){
createCoBrand();
};
}
private function createXMLFeed():void{
xmlFeed = new XMLFeed();
xmlFeed.x = 670;
xmlFeed.y = 7;
addChild(xmlFeed);
}
private function createXMLRotator():void{
xmlRotator = new XMLRotator();
xmlRotator.x = 175;
xmlRotator.y = 355;
addChild(xmlRotator);
}
public function showDressupScreen():void{
Tweener.removeTweens(printButton);
Tweener.removeTweens(moreGamesButton);
Tweener.removeTweens(xmlRotator);
Tweener.removeTweens(replayButton);
Tweener.removeTweens(doneButton);
if (isCoBrand){
Tweener.removeTweens(cobrand);
};
Tweener.addTween(replayButton, {x:(728 + 250), time:1, transition:"easeOutExpo"});
Tweener.addTween(myGames4Girls, {y:500, x:140, time:1, scaleX:1, scaleY:1, transition:"easeOutExpo", delay:0.6});
Tweener.addTween(printButton, {x:-200, time:1, transition:"easeOutExpo", delay:0.2});
Tweener.addTween(moreGamesButton, {x:-200, time:1, transition:"easeOutExpo", delay:0.4});
Tweener.addTween(xmlRotator, {x:-200, time:1, transition:"easeOutExpo", delay:0.6});
Tweener.addTween(doneButton, {x:((728 - (doneButton.buttonWidth / 2)) - 10), time:1, transition:"easeOutExpo", delay:0.8});
if (isCoBrand){
Tweener.addTween(cobrand, {x:5, time:1, transition:"easeOutExpo", delay:1});
};
}
private function onDoneClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(DONE_CLICKED_EVENT, true, true));
}
private function onReplayClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(RETRY_CLICKED_EVENT, true, true));
}
public function showPrintScreen():void{
Tweener.removeTweens(printButton);
Tweener.removeTweens(moreGamesButton);
Tweener.removeTweens(xmlRotator);
Tweener.removeTweens(replayButton);
Tweener.removeTweens(doneButton);
Tweener.removeTweens(myGames4Girls);
if (isCoBrand){
Tweener.removeTweens(cobrand);
};
Tweener.addTween(doneButton, {x:(728 + 250), time:1, transition:"easeOutExpo"});
Tweener.addTween(myGames4Girls, {y:90, time:1, scaleX:1.1, scaleY:1.1, x:175, transition:"easeOutExpo", delay:0.4});
Tweener.addTween(printButton, {x:175, time:1, transition:"easeOutExpo", delay:0.6});
Tweener.addTween(moreGamesButton, {x:175, time:1, transition:"easeOutExpo", delay:0.8});
Tweener.addTween(xmlRotator, {x:175, time:1, transition:"easeOutExpo", delay:1});
Tweener.addTween(replayButton, {x:((728 - (replayButton.buttonWidth / 2)) - 10), time:1, transition:"easeOutExpo", delay:1});
}
private function createSoundButton():void{
soundButton = new SoundButton();
soundButton.x = 700;
soundButton.y = 25;
addChild(soundButton);
}
public function firstRunInterface():void{
if (isCoBrand){
cobrand.x = 5;
};
printButton.x = -200;
moreGamesButton.x = -200;
xmlRotator.x = -200;
replayButton.x = (728 + 250);
doneButton.x = (728 + 250);
}
public function removeForPrint():void{
moreGamesButton.visible = false;
printButton.visible = false;
doneButton.visible = false;
replayButton.visible = false;
xmlRotator.visible = false;
xmlFeed.visible = false;
soundButton.visible = false;
if (isCoBrand){
cobrand.visible = false;
};
}
public function returnAfterPrint():void{
moreGamesButton.visible = true;
printButton.visible = true;
doneButton.visible = true;
replayButton.visible = true;
xmlRotator.visible = true;
xmlFeed.visible = true;
soundButton.visible = true;
if (isCoBrand){
cobrand.visible = true;
};
}
private function onCoBrandClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.kibagames.com/"), "_blank");
}
private function onPrintClick(_arg1:MouseEvent):void{
dispatchEvent(new Event(PRINTER_CLICKED_EVENT, true, true));
}
private function createMyGames4Girls():void{
myGames4Girls = new MyGames4Girls();
myGames4Girls.x = 140;
myGames4Girls.y = 500;
addChild(myGames4Girls);
}
public function changeBackgroundColor(_arg1:uint):void{
xmlRotator.changeBackgroundColor(_arg1);
}
private function createCoBrand():void{
cobrand = new CoBrandKibaAsset();
cobrand.scaleX = (cobrand.scaleY = 0.8);
cobrand.x = 5;
cobrand.y = 5;
cobrand.useHandCursor = true;
cobrand.buttonMode = true;
cobrand.addEventListener(MouseEvent.CLICK, onCoBrandClick);
addChild(cobrand);
}
private function createPrintButton():void{
switch (GameData.getInstance().language){
default:
printButton = new OldStyleButton("PRINT", false);
break;
case GameData.FRENCH:
printButton = new OldStyleButton("IMPRIMER", false);
break;
case GameData.GERMAN:
printButton = new OldStyleButton("DRUCK", false);
break;
case GameData.SPANISH:
printButton = new OldStyleButton("IMPRIMIR", false);
break;
};
printButton.x = 175;
printButton.y = 150;
printButton.addEventListener(MouseEvent.CLICK, onPrintClick, false, 0, true);
addChild(printButton);
}
private function createReplayButton():void{
switch (GameData.getInstance().language){
default:
replayButton = new OldStyleButton("PLAY AGAIN", true);
break;
case GameData.FRENCH:
replayButton = new OldStyleButton("REJOUER", true);
break;
case GameData.GERMAN:
replayButton = new OldStyleButton("NOCHMAL SPIELEN", true);
break;
case GameData.SPANISH:
replayButton = new OldStyleButton("JUGAR OTRA VEZ", true);
break;
};
replayButton.x = (718 - (replayButton.buttonWidth / 2));
replayButton.y = 505;
replayButton.addEventListener(MouseEvent.CLICK, onReplayClick, false, 0, true);
addChild(replayButton);
}
private function createMoreGamesButton():void{
switch (GameData.getInstance().language){
default:
moreGamesButton = new OldStyleButton("MORE GAMES", false);
break;
case GameData.FRENCH:
moreGamesButton = new OldStyleButton("PLUS DE JEUX", false);
break;
case GameData.GERMAN:
moreGamesButton = new OldStyleButton("MEHR SPIELE", false);
break;
case GameData.SPANISH:
moreGamesButton = new OldStyleButton("MÁS JUEGOS", false);
break;
};
moreGamesButton.x = 175;
moreGamesButton.y = 200;
moreGamesButton.addEventListener(MouseEvent.CLICK, onMoreGamesClick, false, 0, true);
addChild(moreGamesButton);
}
public function showCharacterSelector():void{
Tweener.removeTweens(doneButton);
Tweener.addTween(doneButton, {x:(728 + 250), time:1, transition:"easeOutExpo"});
}
private function createDoneButton():void{
switch (GameData.getInstance().language){
default:
doneButton = new OldStyleButton("DONE", true);
break;
case GameData.FRENCH:
doneButton = new OldStyleButton("TERMINÉ", true);
break;
case GameData.GERMAN:
doneButton = new OldStyleButton("FERTIG", true);
break;
case GameData.SPANISH:
doneButton = new OldStyleButton("TERMINADO", true);
break;
};
doneButton.x = (718 - (doneButton.buttonWidth / 2));
doneButton.y = 505;
doneButton.addEventListener(MouseEvent.CLICK, onDoneClick, false, 0, true);
addChild(doneButton);
}
private function onMoreGamesClick(_arg1:MouseEvent):void{
var _local4:Boolean;
var _local5:String;
var _local6:LocalConnection;
var _local7:String;
var _local8:String;
var _local9:String;
var _local10:Number;
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 (GameData.getInstance().language){
default:
if (_local4){
urlS = "http://www.mygames4girls.com";
} else {
urlS = ((("http://www.mygames4girls.com/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
case GameData.FRENCH:
if (_local4){
urlS = "http://www.jeux2filles.fr";
} else {
urlS = ((("http://www.jeux2filles.fr/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
case GameData.GERMAN:
if (_local4){
urlS = "http://www.mygames4girls.de";
} else {
urlS = ((("http://www.mygames4girls.de/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
case GameData.SPANISH:
if (_local4){
urlS = "http://www.juegosxachicas.com";
} else {
urlS = ((("http://www.juegosxachicas.com/?utm_source=" + _local7) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
};
navigateToURL(new URLRequest(urlS), "_blank");
}
}
}//package com.drimlike.games.dressup.systems
Section 63
//AbstractButton (com.drimlike.games.dressup.ui.base.AbstractButton)
package com.drimlike.games.dressup.ui.base {
import flash.events.*;
import flash.display.*;
public class AbstractButton extends Sprite {
public function AbstractButton(){
init();
}
protected function init():void{
useHandCursor = true;
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.ROLL_OUT, onRollOut);
addEventListener(MouseEvent.ROLL_OVER, onRollOver);
addEventListener(MouseEvent.CLICK, onMouseClick);
}
protected function onMouseClick(_arg1:MouseEvent):void{
}
protected function onRollOver(_arg1:MouseEvent):void{
}
protected function onRollOut(_arg1:MouseEvent):void{
}
public function destroy():void{
}
public function reset():void{
}
}
}//package com.drimlike.games.dressup.ui.base
Section 64
//ButtonEvent (com.drimlike.games.dressup.ui.events.ButtonEvent)
package com.drimlike.games.dressup.ui.events {
import flash.events.*;
public class ButtonEvent extends Event {
public static var BUTTON_CLICKED_EVENT:String = "buttonClickedEvent";
public function ButtonEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package com.drimlike.games.dressup.ui.events
Section 65
//OldStyleButton (com.drimlike.games.dressup.ui.oldstyle.OldStyleButton)
package com.drimlike.games.dressup.ui.oldstyle {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import org.flintparticles.twoD.zones.*;
import flash.utils.*;
import com.drimlike.games.dressup.ui.textfields.*;
import com.drimlike.games.dressup.ui.base.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.renderers.*;
import org.flintparticles.common.initializers.*;
import org.flintparticles.twoD.actions.*;
import org.flintparticles.common.actions.*;
import com.drimlike.games.dressup.ui.events.*;
import org.flintparticles.twoD.particles.*;
import org.flintparticles.twoD.initializers.*;
import caurina.transitions.*;
import org.flintparticles.common.counters.*;
public class OldStyleButton extends AbstractButton {
protected var autoResize:Boolean;
protected var backgroundSprite:Sprite;
private var buttonLabel:String;
protected var containerSprite:Sprite;
protected var glint:OldStyleGlintHighlightAsset;
private var particleInterval:Number;
protected var labelField:CoconField;
protected var emitter:Emitter2D;
protected var particleRender:DisplayObjectRenderer;
protected var buttonMask:Sprite;
public function OldStyleButton(_arg1:String, _arg2:Boolean=false){
buttonLabel = _arg1;
autoResize = _arg2;
super();
}
override public function reset():void{
}
override protected function init():void{
super.init();
containerSprite = new Sprite();
addChild(containerSprite);
backgroundSprite = new OldStyleButtonBackgroundAsset();
backgroundSprite.cacheAsBitmap = true;
containerSprite.addChild(backgroundSprite);
labelField = new CoconField(22);
labelField.text = buttonLabel;
labelField.x = (-(labelField.width) / 2);
labelField.y = (-(labelField.height) / 2);
containerSprite.addChild(labelField);
var _local1:GlowFilter = new GlowFilter(9503365, 5, 1.5, 1.5, 10, BitmapFilterQuality.HIGH);
labelField.filters = new Array(_local1);
labelField.cacheAsBitmap = true;
if (autoResize){
backgroundSprite.width = (labelField.width + 40);
};
glint = new OldStyleGlintHighlightAsset();
glint.cacheAsBitmap = true;
glint.x = ((-(backgroundSprite.width) / 2) - 50);
glint.y = (-(backgroundSprite.height) / 2);
glint.height = backgroundSprite.height;
glint.mouseChildren = false;
glint.mouseEnabled = false;
addChild(glint);
buttonMask = new Sprite();
buttonMask.graphics.beginFill(0, 0.5);
buttonMask.graphics.drawRect((-(backgroundSprite.width) / 2), (-(backgroundSprite.height) / 2), backgroundSprite.width, backgroundSprite.height);
buttonMask.graphics.endFill();
addChild(buttonMask);
glint.mask = buttonMask;
}
private function createParticles():void{
destroy();
emitter = new Emitter2D();
emitter.counter = new Steady(50);
var _local1:Array = new Array(Star10Asset, Star4Asset, Star5Asset, Star6Asset, Star7Asset, Star8Asset, Star9Asset);
var _local2:ImageClasses = new ImageClasses(_local1);
emitter.addInitializer(_local2);
var _local3:RectangleZone = new RectangleZone((-(backgroundSprite.width) / 2), (-(backgroundSprite.height) / 2), (backgroundSprite.width / 2), (backgroundSprite.height / 2));
var _local4:RectangleZone = new RectangleZone((-((backgroundSprite.width - 10)) / 2), (-((backgroundSprite.height - 10)) / 2), ((backgroundSprite.width / 2) - 5), ((backgroundSprite.height / 2) - 5));
var _local5:RotateVelocity = new RotateVelocity(5, 15);
var _local6:Lifetime = new Lifetime(1, 2);
emitter.addInitializer(new Position(_local3));
emitter.addInitializer(_local5);
emitter.addInitializer(_local6);
emitter.addInitializer(new Velocity(_local3));
emitter.addInitializer(new ScaleImageInit(0.1, 0.7));
var _local7:Fade = new Fade(0.7, 0);
var _local8:Age = new Age();
var _local9:Friction = new Friction(0.4);
var _local10:Rotate = new Rotate();
emitter.addAction(_local10);
emitter.addAction(_local8);
emitter.addAction(_local7);
emitter.addAction(_local9);
emitter.addAction(new Move());
emitter.addAction(new DeathZone(_local4, true));
particleRender = new DisplayObjectRenderer();
containerSprite.addChild(particleRender);
particleRender.addEmitter(emitter);
emitter.start();
emitter.counter.resume();
}
override protected function onMouseClick(_arg1:MouseEvent):void{
GameData.getInstance().soundManager.playOldStyleButtonClick();
dispatchEvent(new ButtonEvent(ButtonEvent.BUTTON_CLICKED_EVENT, true, true));
}
override protected function onRollOver(_arg1:MouseEvent):void{
GameData.getInstance().soundManager.playOldStyleButtonWhoosh();
GameData.getInstance().soundManager.playTinkleSound();
clearInterval(particleInterval);
createParticles();
Tweener.removeTweens(glint);
Tweener.addTween(glint, {x:(backgroundSprite.width / 2), time:1, transition:"easeOutExpo"});
}
override protected function onRollOut(_arg1:MouseEvent):void{
var stopEmitter:Function;
var e = _arg1;
stopEmitter = function ():void{
clearInterval(particleInterval);
destroy();
};
GameData.getInstance().soundManager.stopTinkleSound();
if (emitter){
emitter.counter.stop();
};
particleInterval = setInterval(stopEmitter, 1000);
Tweener.removeTweens(glint);
Tweener.addTween(glint, {x:((-(backgroundSprite.width) / 2) - 50), time:1, transition:"easeOutExpo"});
}
public function get buttonWidth():Number{
return (backgroundSprite.width);
}
public function get buttonHeight():Number{
return (backgroundSprite.height);
}
override public function destroy():void{
if (emitter){
emitter.killAllParticles();
ParticleCreator2D(emitter.particleFactory).clearAllParticles();
emitter = null;
containerSprite.removeChild(particleRender);
particleRender = null;
};
}
}
}//package com.drimlike.games.dressup.ui.oldstyle
Section 66
//CoconField (com.drimlike.games.dressup.ui.textfields.CoconField)
package com.drimlike.games.dressup.ui.textfields {
import flash.text.*;
public class CoconField extends TextField {
public function CoconField(_arg1:int=30, _arg2:uint=0xFFFFFF){
var _local3:Font = new CoconFontAsset();
var _local4:TextFormat = new TextFormat();
_local4.align = TextFormatAlign.CENTER;
_local4.bold = false;
_local4.color = _arg2;
_local4.size = _arg1;
_local4.font = _local3.fontName;
defaultTextFormat = _local4;
autoSize = TextFieldAutoSize.CENTER;
embedFonts = true;
super();
}
}
}//package com.drimlike.games.dressup.ui.textfields
Section 67
//TrebuchetField (com.drimlike.games.dressup.ui.textfields.TrebuchetField)
package com.drimlike.games.dressup.ui.textfields {
import flash.text.*;
public class TrebuchetField extends TextField {
public function TrebuchetField(_arg1:int=30, _arg2:uint=0xFFFFFF){
var _local3:Font = new TrebuchetMSFontAsset();
var _local4:TextFormat = new TextFormat();
_local4.align = TextFormatAlign.CENTER;
_local4.color = _arg2;
_local4.size = _arg1;
_local4.font = _local3.fontName;
defaultTextFormat = _local4;
autoSize = TextFieldAutoSize.CENTER;
embedFonts = true;
super();
}
}
}//package com.drimlike.games.dressup.ui.textfields
Section 68
//ToolTip (com.drimlike.games.dressup.ui.tooltip.ToolTip)
package com.drimlike.games.dressup.ui.tooltip {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import com.drimlike.games.util.*;
import flash.utils.*;
import flash.text.*;
import com.drimlike.games.dressup.ui.textfields.*;
import caurina.transitions.*;
public class ToolTip extends Sprite {
private var container:Sprite;
private var arrow:Sprite;
private var bubble:Sprite;
private var position:Vector2d;
private var entryInterval:Number;
private var graphicContainer:Sprite;
private var closingInterval:Number;
private var label:TextField;
private var isActive:Boolean;
public static const TOOLTIP_TIME_OUT_DESTROY_EVENT:String = "tooltipTimeOutDestroyEvent";
public function ToolTip(_arg1:String, _arg2:Vector2d, _arg3:Vector2d){
container = new Sprite();
container.x = _arg2.x;
container.y = (_arg2.y + 20);
addChild(container);
graphicContainer = new Sprite();
container.addChild(graphicContainer);
position = _arg2;
label = new TrebuchetField(10, 0);
label.width = 100;
label.text = _arg1;
label.selectable = false;
bubble = new ToolTipBackground();
bubble.width = (label.width + 20);
bubble.height = (label.height + 10);
graphicContainer.addChildAt(bubble, 0);
label.x = -((label.width / 2));
label.y = -((label.height / 2));
container.addChild(label);
arrow = new ToolTipWedge();
arrow.x = _arg3.x;
arrow.y = ((bubble.height / 2) + arrow.height);
graphicContainer.addChild(arrow);
var _local4:DropShadowFilter = new DropShadowFilter();
_local4.distance = 0;
_local4.strength = 1;
graphicContainer.filters = new Array(_local4);
container.alpha = 0;
Tweener.addTween(container, {alpha:1, y:_arg2.y, time:1, transition:"easeOutExpo"});
isActive = true;
entryInterval = setInterval(hideTooltip, 5000);
}
private function hideTooltip():void{
clearInterval(entryInterval);
clearInterval(closingInterval);
Tweener.removeTweens(container);
Tweener.addTween(container, {alpha:0, y:(position.y - 20), time:1, transition:"easeOutExpo"});
closingInterval = setInterval(destroy, 1200);
}
public function notifyDestroy():void{
hideTooltip();
}
public function destroy():void{
if (isActive){
isActive = false;
Tweener.removeTweens(container);
clearInterval(closingInterval);
clearInterval(entryInterval);
if (graphicContainer.contains(arrow)){
graphicContainer.removeChild(arrow);
};
arrow = null;
if (graphicContainer.contains(bubble)){
graphicContainer.removeChild(bubble);
};
bubble = null;
if (container.contains(graphicContainer)){
container.removeChild(graphicContainer);
};
graphicContainer = null;
if (contains(container)){
removeChild(container);
};
container = null;
dispatchEvent(new Event(TOOLTIP_TIME_OUT_DESTROY_EVENT, true, true));
};
}
}
}//package com.drimlike.games.dressup.ui.tooltip
Section 69
//XMLFeed (com.drimlike.games.dressup.ui.xml.XMLFeed)
package com.drimlike.games.dressup.ui.xml {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import org.flintparticles.twoD.emitters.*;
import org.flintparticles.twoD.renderers.*;
import flash.net.*;
import caurina.transitions.*;
public class XMLFeed extends Sprite {
private var items:Array;
private var container:Sprite;
protected var particleRender:DisplayObjectRenderer;
private var itemContainer:Sprite;
private var firstRun:Boolean;// = true
private var isScrolling:Boolean;
private var itemsXML:XMLList;
private var isOpen:Boolean;
private var urlRequest:URLRequest;
private var totalWidth:int;// = 0
private var targetBackgroundWidth:int;
private var background:Sprite;
protected var emitter:Emitter2D;
private var defaultBackgroundWidth:int;
private var icon:MovieClip;
private var backgroundMask:Sprite;
private var highlight:MovieClip;
private var homepage:String;
private var defaultIconX:int;// = 0
public function XMLFeed(_arg1:int=300){
targetBackgroundWidth = _arg1;
this.visible = false;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function onFeedRollOver(_arg1:Event):void{
isScrolling = false;
}
private function initScroll():void{
var _local3:Boolean;
var _local4:String;
var _local5:String;
var _local6:String;
var _local7: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) {
_local5 = _local4.toLowerCase();
_local6 = _local2.toLowerCase();
_local7 = _local6.indexOf(_local5, 0);
if (_local7 != -1){
_local3 = true;
};
};
if (firstRun){
} else {
open();
};
}
private function onXMLComplete(_arg1:Event):void{
var _local3:Array;
var _local4:String;
var _local5:Boolean;
var _local6:String;
var _local7:LocalConnection;
var _local8:String;
var _local9:int;
var _local10:int;
var _local11:String;
var _local12:String;
var _local13:Number;
var _local14:XMLFeedItem;
var _local2:XML = XML(URLLoader(_arg1.target).data);
itemsXML = XMLList(_local2.data.item);
if (_local2.options.xmlFeedEnabled == 1){
this.visible = true;
background = new XMLFeedButton();
defaultBackgroundWidth = background.width;
background.mouseChildren = false;
container.addChild(background);
backgroundMask = new Sprite();
backgroundMask.graphics.beginFill(0xFFFFFF);
backgroundMask.graphics.drawRect(-1, 2, -35, 28);
backgroundMask.graphics.endFill();
container.addChild(backgroundMask);
itemContainer = new Sprite();
container.addChild(itemContainer);
itemContainer.mask = backgroundMask;
highlight = (new XMLFeedHighlight() as MovieClip);
highlight.mouseChildren = false;
highlight.mouseEnabled = false;
highlight.x = 0;
highlight.y = 0;
container.addChild(highlight);
icon = (new XMLFeedIcon() as MovieClip);
icon.buttonMode = true;
icon.mouseChildren = false;
icon.useHandCursor = true;
icon.addEventListener(MouseEvent.CLICK, onMouseClick);
icon.x = (-(background.width) / 2);
icon.y = (background.y + (background.height / 2));
container.addChild(icon);
_local3 = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com");
_local4 = loaderInfo.url;
for each (_local6 in _local3) {
_local11 = _local6.toLowerCase();
_local12 = _local4.toLowerCase();
_local13 = _local12.indexOf(_local11, 0);
if (_local13 != -1){
_local5 = true;
};
};
_local7 = new LocalConnection();
_local8 = _local7.domain;
_local9 = 0;
_local10 = 0;
while (_local10 < itemsXML.length()) {
if (_local5){
_local14 = new XMLFeedItem(String(homepage), String(itemsXML[_local10].@title));
} else {
_local14 = new XMLFeedItem(String(((((itemsXML[_local10].@linkURL + "?utm_source=") + _local8) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY)), String(itemsXML[_local10].@title));
};
_local14.x = _local9;
_local14.y = 8;
itemContainer.addChild(_local14);
_local9 = (_local9 + (_local14.width + 25));
items.push(_local14);
_local10++;
};
totalWidth = _local9;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
addEventListener(XMLFeedItem.FEED_ROLL_OUT, onFeedRollOut);
addEventListener(XMLFeedItem.FEED_ROLL_OVER, onFeedRollOver);
};
}
private function init(_arg1:Event):void{
container = new Sprite();
addChild(container);
items = new Array();
switch (GameData.getInstance().language){
default:
urlRequest = new URLRequest("http://www.mygames4girls.com/games.xml");
homepage = "http://www.mygames4girls.com";
break;
case GameData.GERMAN:
urlRequest = new URLRequest("http://www.mygames4girls.de/games.xml");
homepage = "http://www.mygames4girls.de";
break;
case GameData.SPANISH:
urlRequest = new URLRequest("http://www.juegosxachicas.com/games.xml");
homepage = "http://www.juegosxachicas.com";
break;
case GameData.FRENCH:
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 open():void{
var deleteHighlight:Function;
deleteHighlight = function ():void{
container.removeChild(highlight);
highlight = null;
};
isScrolling = true;
isOpen = true;
Tweener.addTween(background, {width:targetBackgroundWidth, time:1, transition:"easeOutExpo"});
Tweener.addTween(backgroundMask, {width:(targetBackgroundWidth - 40), time:1, transition:"easeOutExpo"});
Tweener.addTween(icon, {x:(-(targetBackgroundWidth) + 20), time:1, transition:"easeOutExpo"});
if (firstRun){
firstRun = false;
Tweener.addTween(highlight, {width:targetBackgroundWidth, time:1, transition:"easeOutExpo"});
Tweener.addTween(highlight, {alpha:0, time:1, delay:1, transition:"easeOutExpo", onComplete:deleteHighlight});
icon.gotoAndStop(0);
};
GameData.getInstance().soundManager.playOpenCloseSound();
}
private function onEnterFrame(_arg1:Event):void{
var _local2:int;
var _local3:XMLFeedItem;
var _local4:XMLFeedItem;
if (isScrolling){
_local2 = 0;
while (_local2 < items.length) {
_local3 = XMLFeedItem(items[_local2]);
if (_local2 == 0){
_local4 = XMLFeedItem(items[(items.length - 1)]);
} else {
_local4 = XMLFeedItem(items[(_local2 - 1)]);
};
_local3.x--;
if (_local3.x < (-(targetBackgroundWidth) - 100)){
_local3.x = ((_local4.x + _local4.width) + 25);
};
_local2++;
};
};
}
private function onError(_arg1:IOErrorEvent):void{
}
private function onFeedRollOut(_arg1:Event):void{
if (isOpen){
isScrolling = true;
};
}
private function onMouseClick(_arg1:MouseEvent):void{
if (isOpen){
close();
} else {
open();
};
}
private function close():void{
isScrolling = false;
isOpen = false;
Tweener.addTween(background, {width:defaultBackgroundWidth, time:1, transition:"easeOutExpo"});
backgroundMask.width = 0;
Tweener.addTween(icon, {x:(defaultIconX - 20), time:1, transition:"easeOutExpo"});
GameData.getInstance().soundManager.playOpenCloseSound();
}
}
}//package com.drimlike.games.dressup.ui.xml
Section 70
//XMLFeedItem (com.drimlike.games.dressup.ui.xml.XMLFeedItem)
package com.drimlike.games.dressup.ui.xml {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import caurina.transitions.*;
public class XMLFeedItem extends Sprite {
private var link:String;
private var textField:TextField;
private var text:String;
private var background:Sprite;
private var highlightSprite:Sprite;
public static const FEED_ROLL_OUT:String = "feedRollOut";
public static const FEED_ROLL_OVER:String = "feedRollOver";
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{
dispatchEvent(new Event(FEED_ROLL_OUT, true, 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{
dispatchEvent(new Event(FEED_ROLL_OVER, true, true));
Tweener.addTween(highlightSprite, {_color:9503365, y:18, time:1, height:2, transition:"easeOutExpo"});
}
}
}//package com.drimlike.games.dressup.ui.xml
Section 71
//XMLRotator (com.drimlike.games.dressup.ui.xml.XMLRotator)
package com.drimlike.games.dressup.ui.xml {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.cupboard.*;
import flash.utils.*;
import flash.net.*;
import caurina.transitions.*;
public class XMLRotator extends Sprite {
private var items:Array;
private var container:Sprite;
private var foreground:Sprite;
private var interval:Number;
private var navigationCounter:int;// = 0
private var homePage:String;
private var girls:Sprite;
private var leftButton:CupboardSectionButton;
private var urlRequest:URLRequest;
private var color:Sprite;
private var imageContainer:Sprite;
private var xmlItems:XMLList;
private var frame:Sprite;
private var rightButton:CupboardSectionButton;
private var background:Sprite;
public function XMLRotator(_arg1:Boolean=true){
var urlLoader:URLLoader;
var showgirls = _arg1;
super();
trace("xml");
container = new Sprite();
addChild(container);
background = new XMLRotatorBackgroundAsset();
background.cacheAsBitmap = true;
container.addChild(background);
color = new XMLRotatorColorAsset();
color.mouseChildren = false;
color.mouseEnabled = false;
container.addChild(color);
foreground = new XMLRotatorForegroundAsset();
foreground.mouseChildren = false;
foreground.mouseEnabled = false;
foreground.cacheAsBitmap = true;
container.addChild(foreground);
imageContainer = new Sprite();
addChild(imageContainer);
frame = new XMLRotatorFrameAsset();
frame.cacheAsBitmap = true;
frame.mouseChildren = false;
frame.mouseEnabled = false;
container.addChild(frame);
leftButton = new CupboardSectionButton();
leftButton.addEventListener(MouseEvent.CLICK, onLeftButtonClick, false, 0, true);
leftButton.x = -105;
leftButton.active();
container.addChild(leftButton);
rightButton = new CupboardSectionButton();
rightButton.addEventListener(MouseEvent.CLICK, onRightButtonClick, false, 0, true);
rightButton.x = 105;
rightButton.scaleX = (rightButton.scaleX * -1);
rightButton.active();
container.addChild(rightButton);
items = new Array();
switch (GameData.getInstance().language){
default:
urlRequest = new URLRequest("http://www.mygames4girls.com/games.xml");
homePage = "http://www.mygames4girls.com";
break;
case GameData.FRENCH:
urlRequest = new URLRequest("http://www.jeux2filles.fr/games.xml");
homePage = "http://www.jeux2filles.fr";
break;
case GameData.GERMAN:
urlRequest = new URLRequest("http://www.mygames4girls.de/games.xml");
homePage = "http://www.mygames4girls.de";
break;
case GameData.SPANISH:
urlRequest = new URLRequest("http://www.juegosxachicas.com/games.xml");
homePage = "http://www.juegosxachicas.com";
break;
};
try {
urlLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, onXMLComplete, false, 0, true);
urlLoader.addEventListener(IOErrorEvent.IO_ERROR, onError, false, 0, true);
urlLoader.load(urlRequest);
} catch(e:Error) {
trace("failed to load");
};
if (showgirls){
girls = new XMLRotatorGirlsAsset();
girls.mouseChildren = false;
girls.mouseEnabled = false;
girls.cacheAsBitmap = true;
girls.y = -90;
container.addChildAt(girls, 0);
};
addEventListener(MouseEvent.ROLL_OUT, onStartScroll);
addEventListener(MouseEvent.ROLL_OVER, onEndScroll);
onStartScroll();
}
private function onXMLComplete(_arg1:Event):void{
var _local5:Boolean;
var _local6:String;
var _local7:LocalConnection;
var _local8:String;
var _local9:int;
var _local10:String;
var _local11:String;
var _local12:Number;
var _local13:XMLRotatorItem;
var _local2:XML = XML(URLLoader(_arg1.target).data);
xmlItems = XMLList(_local2.data.item);
var _local3:Array = new Array("jeux2filles.fr", "juegosxachicas.com", "mygames4girls.de", "mygames4girls.com", "drimlike.com");
var _local4:String = loaderInfo.url;
for each (_local6 in _local3) {
_local10 = _local6.toLowerCase();
_local11 = _local4.toLowerCase();
_local12 = _local11.indexOf(_local10, 0);
if (_local12 != -1){
_local5 = true;
};
};
_local7 = new LocalConnection();
_local8 = _local7.domain;
_local9 = 0;
while (_local9 < xmlItems.length()) {
if (_local5){
_local13 = new XMLRotatorItem(String(homePage), String(xmlItems[_local9].@src));
} else {
_local13 = new XMLRotatorItem(String(((((xmlItems[_local9].@linkURL + "?utm_source=") + _local8) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY)), String(xmlItems[_local9].@src));
};
if (_local9 == 0){
_local13.show();
};
_local13.addEventListener(XMLRotatorItem.FAILED_TO_LOAD_EVENT, onFailedToLoad);
imageContainer.addChild(_local13);
items.push(_local13);
_local9++;
};
}
public function changeBackgroundColor(_arg1:uint):void{
Tweener.addTween(color, {_color:_arg1});
}
private function onFailedToLoad(_arg1:Event):void{
}
private function onLeftButtonClick(_arg1:MouseEvent):void{
var _local3:XMLRotatorItem;
if (navigationCounter == 0){
navigationCounter = (xmlItems.length() - 1);
} else {
navigationCounter--;
};
var _local2:XMLRotatorItem = XMLRotatorItem(items[navigationCounter]);
for each (_local3 in items) {
if (_local3 != _local2){
_local3.hide();
} else {
_local3.show();
};
};
}
private function onError(_arg1:IOErrorEvent):void{
trace("xml error");
}
private function onStartScroll(_arg1:Event=null):void{
interval = setInterval(nextSlide, 1500);
}
private function onEndScroll(_arg1:Event=null):void{
clearInterval(interval);
}
private function onRightButtonClick(_arg1:MouseEvent=null):void{
var rotItem:XMLRotatorItem;
var r:XMLRotatorItem;
var e = _arg1;
try {
if (navigationCounter == (xmlItems.length() - 1)){
navigationCounter = 0;
} else {
navigationCounter++;
};
rotItem = XMLRotatorItem(items[navigationCounter]);
for each (r in items) {
if (r != rotItem){
r.hide();
imageContainer.setChildIndex(r, (imageContainer.numChildren - 1));
} else {
r.show();
};
};
} catch(e:Error) {
};
}
private function nextSlide():void{
onRightButtonClick();
}
}
}//package com.drimlike.games.dressup.ui.xml
Section 72
//XMLRotatorItem (com.drimlike.games.dressup.ui.xml.XMLRotatorItem)
package com.drimlike.games.dressup.ui.xml {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import caurina.transitions.*;
public class XMLRotatorItem extends Sprite {
private var highlightMask:Sprite;
private var container:Sprite;
private var maskMC:MovieClip;
private var loader:Loader;
private var imageURL:String;
private var highlightGlint:Sprite;
private var image:Bitmap;
private var linkURL:String;
private var flasher:Sprite;
private var background:Sprite;
public static const FAILED_TO_LOAD_EVENT:String = "failedToLoadEvent";
public function XMLRotatorItem(_arg1:String, _arg2:String){
linkURL = _arg1;
imageURL = _arg2;
init();
}
private function onIOError(_arg1:IOErrorEvent):void{
dispatchEvent(new Event(FAILED_TO_LOAD_EVENT, true, true));
}
private function init(_arg1:Event=null):void{
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageComplete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.load(new URLRequest(imageURL));
}
public function hide():void{
this.visible = false;
}
private function onImageComplete(_arg1:Event):void{
container = new Sprite();
addChild(container);
image = Bitmap(loader.content);
image.cacheAsBitmap = true;
container.addChild(image);
background = new Sprite();
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, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OUT, onRollOut, false, 0, true);
background.addEventListener(MouseEvent.ROLL_OVER, onRollOver, false, 0, true);
background.cacheAsBitmap = true;
container.addChildAt(background, 0);
container.x = ((-(background.width) / 2) + 2);
container.y = ((-(background.height) / 2) + 2);
highlightGlint = new HighlightGlintAsset();
highlightGlint.mouseChildren = false;
highlightGlint.mouseEnabled = false;
highlightGlint.rotation = 90;
highlightGlint.x = -100;
highlightGlint.width = container.width;
addChild(highlightGlint);
highlightMask = new XMLRotatorFrameAsset();
highlightMask.mouseChildren = false;
highlightMask.mouseEnabled = false;
highlightMask.cacheAsBitmap = false;
addChild(highlightMask);
highlightGlint.mask = highlightMask;
flasher = new XMLRotatorFrameAsset();
flasher.mouseChildren = false;
flasher.mouseEnabled = false;
flasher.alpha = 0;
addChild(flasher);
}
private function onMouseClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(linkURL), "_blank");
}
public function doFlash():void{
Tweener.addTween(flasher, {_color:0xFFFFFF, alpha:1});
Tweener.addTween(flasher, {alpha:0, time:1, transition:"easeOutExpo"});
}
private function onRollOver(_arg1:MouseEvent):void{
Tweener.removeTweens(highlightGlint);
Tweener.addTween(highlightGlint, {x:100, time:0.5});
}
private function onRollOut(_arg1:MouseEvent):void{
Tweener.removeTweens(highlightGlint);
Tweener.addTween(highlightGlint, {x:-100, time:0.5});
}
public function show():void{
doFlash();
this.visible = true;
}
}
}//package com.drimlike.games.dressup.ui.xml
Section 73
//MyGames4Girls (com.drimlike.games.dressup.ui.MyGames4Girls)
package com.drimlike.games.dressup.ui {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import flash.net.*;
import caurina.transitions.*;
public class MyGames4Girls extends Sprite {
private var container:Sprite;
private var sprite:Sprite;
private var spriteDuplicate:Sprite;
private var glint:Sprite;
private var hitzone:Sprite;
public function MyGames4Girls(){
container = new Sprite();
container.mouseChildren = false;
container.mouseEnabled = false;
addChild(container);
var _local1:String = GameData.getInstance().language;
switch (_local1){
default:
sprite = new MyGamesForGirlsCOM();
spriteDuplicate = new MyGamesForGirlsCOM();
break;
case GameData.FRENCH:
sprite = new MyGamesForGirlsFR();
spriteDuplicate = new MyGamesForGirlsFR();
break;
case GameData.GERMAN:
sprite = new MyGamesForGirlsDE();
spriteDuplicate = new MyGamesForGirlsDE();
break;
case GameData.SPANISH:
sprite = new MyGamesForGirlsSP();
spriteDuplicate = new MyGamesForGirlsSP();
break;
};
sprite.mouseChildren = false;
sprite.mouseEnabled = false;
spriteDuplicate.mouseChildren = false;
spriteDuplicate.mouseEnabled = false;
container.addChild(sprite);
container.addChild(spriteDuplicate);
var _local2:Rectangle = sprite.getRect(this);
hitzone = new Sprite();
hitzone.graphics.beginFill(0xFFFFFF, 0);
hitzone.graphics.drawRect(_local2.x, _local2.y, _local2.width, _local2.height);
hitzone.graphics.endFill();
hitzone.useHandCursor = true;
hitzone.buttonMode = true;
hitzone.addEventListener(MouseEvent.ROLL_OUT, onRollOut);
hitzone.addEventListener(MouseEvent.ROLL_OVER, onRollOver);
hitzone.addEventListener(MouseEvent.CLICK, onClick);
addChild(hitzone);
glint = new OldStyleGlintHighlightAsset();
glint.mouseChildren = false;
glint.mouseEnabled = false;
glint.height = hitzone.height;
glint.y = (-(hitzone.height) / 2);
glint.x = -200;
container.addChild(glint);
glint.mask = spriteDuplicate;
}
private function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(getURLLink()), "_blank");
GameData.getInstance().soundManager.playOldStyleButtonClick();
}
private function onRollOver(_arg1:MouseEvent):void{
Tweener.removeTweens(glint);
Tweener.removeTweens(container);
Tweener.addTween(glint, {x:150, time:1, transition:"easeOutExpo"});
Tweener.addTween(container, {scaleX:1.1, scaleY:1.1, time:1, transition:"easeOutExpo"});
GameData.getInstance().soundManager.playOldStyleButtonWhoosh();
GameData.getInstance().soundManager.playTinkleSound();
}
private function onRollOut(_arg1:MouseEvent):void{
Tweener.removeTweens(glint);
Tweener.removeTweens(container);
Tweener.addTween(glint, {x:-190, time:1, transition:"easeOutExpo"});
Tweener.addTween(container, {scaleX:1, scaleY:1, time:1, transition:"easeOutExpo"});
GameData.getInstance().soundManager.stopTinkleSound();
}
protected function getURLLink():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 (GameData.getInstance().language){
default:
if (_local3){
_local4 = "http://www.mygames4girls.com";
} else {
_local4 = ((("http://www.mygames4girls.com/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
case GameData.GERMAN:
if (_local3){
_local4 = "http://www.mygames4girls.de";
} else {
_local4 = ((("http://www.mygames4girls.de/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
case GameData.FRENCH:
if (_local3){
_local4 = "http://www.jeux2filles.fr";
} else {
_local4 = ((("http://www.jeux2filles.fr/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
case GameData.SPANISH:
if (_local3){
_local4 = "http://www.juegosxachicas.com";
} else {
_local4 = ((("http://www.juegosxachicas.com/?utm_source=" + _local6) + "&utm_medium=our_games&utm_campaign=") + GameData.getInstance().TRACKING_KEY);
};
break;
};
return (_local4);
}
}
}//package com.drimlike.games.dressup.ui
Section 74
//SoundButton (com.drimlike.games.dressup.ui.SoundButton)
package com.drimlike.games.dressup.ui {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import flash.media.*;
public class SoundButton extends Sprite {
private var soundOff:Sprite;
private var isSoundOn:Boolean;
private var soundOn:Sprite;
private var sound:Sound;
private var sponge:Sprite;
public function SoundButton(){
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function onMouseClick(_arg1:MouseEvent):void{
soundToggle();
}
public function soundToggle():void{
if (isSoundOn){
isSoundOn = false;
GameData.getInstance().soundManager.stopThemeTune();
soundOn.visible = false;
soundOff.visible = true;
} else {
isSoundOn = true;
GameData.getInstance().soundManager.playThemeTune();
soundOn.visible = true;
soundOff.visible = false;
};
}
private function init(_arg1:Event):void{
soundOn = new SoundOn();
soundOff = new SoundOff();
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;
GameData.getInstance().soundManager.playThemeTune();
this.mouseChildren = false;
this.buttonMode = true;
this.useHandCursor = true;
this.addEventListener(MouseEvent.CLICK, onMouseClick);
}
}
}//package com.drimlike.games.dressup.ui
Section 75
//Vector2d (com.drimlike.games.util.Vector2d)
package com.drimlike.games.util {
public class Vector2d {
private var _x:Number;
private var _y:Number;
public function Vector2d(_arg1:Number, _arg2:Number){
_x = _arg1;
_y = _arg2;
}
public function get y():Number{
return (_y);
}
public function get x():Number{
return (_x);
}
public function getVector():Vector2d{
return (new Vector2d(x, y));
}
}
}//package com.drimlike.games.util
Section 76
//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 77
//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 78
//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 79
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 80
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 81
//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 82
//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 83
//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 84
//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 85
//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 86
//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 87
//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 88
//Action (org.flintparticles.common.actions.Action)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.behaviours.*;
public interface Action extends Behaviour {
function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void;
}
}//package org.flintparticles.common.actions
Section 89
//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 {
protected var _priority:int;// = 0
public function set priority(_arg1:int):void{
_priority = _arg1;
}
public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
}
public function removedFromEmitter(_arg1:Emitter):void{
}
public function addedToEmitter(_arg1:Emitter):void{
}
public function get priority():int{
return (_priority);
}
}
}//package org.flintparticles.common.actions
Section 90
//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 91
//Fade (org.flintparticles.common.actions.Fade)
package org.flintparticles.common.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
public class Fade extends ActionBase {
private var _endAlpha:Number;
private var _diffAlpha:Number;
public function Fade(_arg1:Number=1, _arg2:Number=0){
priority = -5;
_diffAlpha = (_arg1 - _arg2);
_endAlpha = _arg2;
}
public function get endAlpha():Number{
return (_endAlpha);
}
public function set endAlpha(_arg1:Number):void{
_diffAlpha = ((_endAlpha + _diffAlpha) - _arg1);
_endAlpha = _arg1;
}
public function set startAlpha(_arg1:Number):void{
_diffAlpha = (_arg1 - _endAlpha);
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Number = (_endAlpha + (_diffAlpha * _arg2.energy));
_arg2.color = ((_arg2.color & 0xFFFFFF) | (Math.round((_local4 * 0xFF)) << 24));
}
public function get startAlpha():Number{
return ((_endAlpha + _diffAlpha));
}
}
}//package org.flintparticles.common.actions
Section 92
//Activity (org.flintparticles.common.activities.Activity)
package org.flintparticles.common.activities {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.behaviours.*;
public interface Activity extends Behaviour {
function initialize(_arg1:Emitter):void;
function update(_arg1:Emitter, _arg2:Number):void;
}
}//package org.flintparticles.common.activities
Section 93
//ActivityBase (org.flintparticles.common.activities.ActivityBase)
package org.flintparticles.common.activities {
import org.flintparticles.common.emitters.*;
public class ActivityBase implements Activity {
protected var _priority:int;// = 0
public function set priority(_arg1:int):void{
_priority = _arg1;
}
public function update(_arg1:Emitter, _arg2:Number):void{
}
public function initialize(_arg1:Emitter):void{
}
public function removedFromEmitter(_arg1:Emitter):void{
}
public function addedToEmitter(_arg1:Emitter):void{
}
public function get priority():int{
return (_priority);
}
}
}//package org.flintparticles.common.activities
Section 94
//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 95
//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 96
//Behaviour (org.flintparticles.common.behaviours.Behaviour)
package org.flintparticles.common.behaviours {
import org.flintparticles.common.emitters.*;
public interface Behaviour {
function set priority(_arg1:int):void;
function addedToEmitter(_arg1:Emitter):void;
function get priority():int;
function removedFromEmitter(_arg1:Emitter):void;
}
}//package org.flintparticles.common.behaviours
Section 97
//BehaviourArrayUtils (org.flintparticles.common.behaviours.BehaviourArrayUtils)
package org.flintparticles.common.behaviours {
public class BehaviourArrayUtils {
public static function add(_arg1:Array, _arg2:Behaviour):uint{
var _local3:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local3) {
if (Behaviour(_arg1[_local4]).priority < _arg2.priority){
break;
};
_local4++;
};
_arg1.splice(_local4, 0, _arg2);
return ((_local3 + 1));
}
public static function remove(_arg1:Array, _arg2:Behaviour):Boolean{
var _local3:int = _arg1.indexOf(_arg2);
if (_local3 != -1){
_arg1.splice(_local3, 1);
return (true);
};
return (false);
}
public static function removeAt(_arg1:Array, _arg2:uint):Behaviour{
var _local3:Behaviour = (_arg1[_arg2] as Behaviour);
_arg1.splice(_arg2, 1);
return (_local3);
}
public static function containsType(_arg1:Array, _arg2:Class):Boolean{
var _local3:uint = _arg1.length;
var _local4:uint;
while (_local4 < _local3) {
if ((_arg1[_local4] is _arg2)){
return (true);
};
_local4++;
};
return (false);
}
public static function sortArray(_arg1:Array):void{
_arg1.sortOn("priority", Array.NUMERIC);
}
public static function clear(_arg1:Array):void{
_arg1.length = 0;
}
public static function contains(_arg1:Array, _arg2:Behaviour):Boolean{
return (!((_arg1.indexOf(_arg2) == -1)));
}
}
}//package org.flintparticles.common.behaviours
Section 98
//Resetable (org.flintparticles.common.behaviours.Resetable)
package org.flintparticles.common.behaviours {
public interface Resetable {
function reset():void;
}
}//package org.flintparticles.common.behaviours
Section 99
//Blast (org.flintparticles.common.counters.Blast)
package org.flintparticles.common.counters {
import org.flintparticles.common.emitters.*;
public class Blast implements Counter {
private var _done:Boolean;// = false
private var _startCount:uint;
public function Blast(_arg1:uint=0){
_startCount = _arg1;
}
public function updateEmitter(_arg1:Emitter, _arg2:Number):uint{
return (0);
}
public function startEmitter(_arg1:Emitter):uint{
_arg1.dispatchCounterComplete();
return (_startCount);
}
public function resume():void{
}
public function stop():void{
}
public function get startCount():Number{
return (_startCount);
}
public function get complete():Boolean{
return (_done);
}
public function set startCount(_arg1:Number):void{
_startCount = _arg1;
}
}
}//package org.flintparticles.common.counters
Section 100
//Counter (org.flintparticles.common.counters.Counter)
package org.flintparticles.common.counters {
import org.flintparticles.common.emitters.*;
public interface Counter {
function stop():void;
function updateEmitter(_arg1:Emitter, _arg2:Number):uint;
function get complete():Boolean;
function startEmitter(_arg1:Emitter):uint;
function resume():void;
}
}//package org.flintparticles.common.counters
Section 101
//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=0){
_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;
}
public function get complete():Boolean{
return (false);
}
}
}//package org.flintparticles.common.counters
Section 102
//ZeroCounter (org.flintparticles.common.counters.ZeroCounter)
package org.flintparticles.common.counters {
import org.flintparticles.common.emitters.*;
public class ZeroCounter implements Counter {
public function get complete():Boolean{
return (true);
}
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 103
//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.*;
import org.flintparticles.common.behaviours.*;
public class Emitter extends EventDispatcher {
protected var _running:Boolean;// = false
protected var _activities:Array;
protected var _particles:Array;
protected var _initializers:Array;
protected var _dispatchCounterComplete:Boolean;// = false
protected var _counter:Counter;
protected var _started:Boolean;// = false
protected var _actions:Array;
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 Array();
_initializers = new Array();
_activities = new Array();
_counter = new ZeroCounter();
}
public function addInitializer(_arg1:Initializer):void{
BehaviourArrayUtils.add(_initializers, _arg1);
_arg1.addedToEmitter(this);
}
public function stop():void{
if (_useInternalTick){
FrameUpdater.instance.removeEventListener(UpdateEvent.UPDATE, updateEventListener);
};
_started = false;
killAllParticles();
}
public function pause():void{
_running = false;
}
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 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;
}
public function set fixedFrameTime(_arg1:Number):void{
_fixedFrameTime = _arg1;
}
public function get maximumFrameTime():Number{
return (_maximumFrameTime);
}
public function set particles(_arg1:Array):void{
killAllParticles();
addExistingParticles(_arg1, false);
}
public function get useInternalTick():Boolean{
return (_useInternalTick);
}
public function set initializers(_arg1:Array):void{
var _local2:Initializer;
for each (_local2 in _initializers) {
_local2.removedFromEmitter(this);
};
_initializers = _arg1.slice();
BehaviourArrayUtils.sortArray(_initializers);
for each (_local2 in _arg1) {
_local2.addedToEmitter(this);
};
}
public function get particleFactory():ParticleFactory{
return (_particleFactory);
}
private function updateEventListener(_arg1:UpdateEvent):void{
if (_fixedFrameTime){
update(_fixedFrameTime);
} else {
update(_arg1.time);
};
}
protected function createParticle():Particle{
var _local1:Particle = _particleFactory.createParticle();
var _local2:int = _initializers.length;
initParticle(_local1);
var _local3:int;
while (_local3 < _local2) {
Initializer(_initializers[_local3]).initialize(this, _local1);
_local3++;
};
_particles.push(_local1);
dispatchEvent(new ParticleEvent(ParticleEvent.PARTICLE_CREATED, _local1));
return (_local1);
}
public function get particles():Array{
return (_particles);
}
protected function sortParticles():void{
}
public function removeActivity(_arg1:Activity):void{
if (BehaviourArrayUtils.remove(_activities, _arg1)){
_arg1.removedFromEmitter(this);
};
}
public function set maximumFrameTime(_arg1:Number):void{
_maximumFrameTime = _arg1;
}
protected function initParticle(_arg1:Particle):void{
}
public function addAction(_arg1:Action):void{
BehaviourArrayUtils.add(_actions, _arg1);
_arg1.addedToEmitter(this);
}
public function hasInitializerOfType(_arg1:Class):Boolean{
return (BehaviourArrayUtils.containsType(_initializers, _arg1));
}
public function removeInitializer(_arg1:Initializer):void{
if (BehaviourArrayUtils.remove(_initializers, _arg1)){
_arg1.removedFromEmitter(this);
};
}
public function get running():Boolean{
return (_running);
}
public function hasActionOfType(_arg1:Class):Boolean{
return (BehaviourArrayUtils.containsType(_actions, _arg1));
}
public function get fixedFrameTime():Number{
return (_fixedFrameTime);
}
public function set particleFactory(_arg1:ParticleFactory):void{
_particleFactory = _arg1;
}
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 resume():void{
_running = true;
}
public function addActivity(_arg1:Activity):void{
BehaviourArrayUtils.add(_activities, _arg1);
_arg1.addedToEmitter(this);
}
public function get initializers():Array{
return (_initializers);
}
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) {
Initializer(_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 hasActivityOfType(_arg1:Class):Boolean{
return (BehaviourArrayUtils.containsType(_activities, _arg1));
}
public function set activities(_arg1:Array):void{
var _local2:Activity;
for each (_local2 in _activities) {
_local2.removedFromEmitter(this);
};
_activities = _arg1.slice();
BehaviourArrayUtils.sortArray(_activities);
for each (_local2 in _activities) {
_local2.addedToEmitter(this);
};
}
public function hasInitializer(_arg1:Initializer):Boolean{
return (BehaviourArrayUtils.contains(_initializers, _arg1));
}
public function removeAction(_arg1:Action):void{
if (BehaviourArrayUtils.remove(_actions, _arg1)){
_arg1.removedFromEmitter(this);
};
}
public function hasActivity(_arg1:Activity):Boolean{
return (BehaviourArrayUtils.contains(_activities, _arg1));
}
public function get activities():Array{
return (_activities);
}
public function hasAction(_arg1:Action):Boolean{
return (BehaviourArrayUtils.contains(_actions, _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) {
Activity(_activities[_local2]).initialize(this);
_local2++;
};
_local1 = _counter.startEmitter(this);
_local2 = 0;
while (_local2 < _local1) {
createParticle();
_local2++;
};
}
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) {
Activity(_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));
if (_dispatchCounterComplete){
_dispatchCounterComplete = false;
dispatchEvent(new EmitterEvent(EmitterEvent.COUNTER_COMPLETE));
};
}
public function set counter(_arg1:Counter):void{
_counter = _arg1;
if (running){
_counter.startEmitter(this);
};
}
public function set actions(_arg1:Array):void{
var _local2:Action;
for each (_local2 in _actions) {
_local2.removedFromEmitter(this);
};
_actions = _arg1.slice();
BehaviourArrayUtils.sortArray(_actions);
for each (_local2 in _arg1) {
_local2.addedToEmitter(this);
};
}
public function dispatchCounterComplete():void{
_dispatchCounterComplete = true;
}
public function get counter():Counter{
return (_counter);
}
public function get actions():Array{
return (_actions);
}
}
}//package org.flintparticles.common.emitters
Section 104
//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 105
//EmitterEvent (org.flintparticles.common.events.EmitterEvent)
package org.flintparticles.common.events {
import flash.events.*;
public class EmitterEvent extends Event {
public static var COUNTER_COMPLETE:String = "counterComplete";
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 106
//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;
}
override public function clone():Event{
var _local1:ParticleEvent = new ParticleEvent(type, particle, bubbles, cancelable);
_local1.otherObject = otherObject;
return (_local1);
}
}
}//package org.flintparticles.common.events
Section 107
//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;
}
override public function clone():Event{
return (new UpdateEvent(type, time, bubbles, cancelable));
}
}
}//package org.flintparticles.common.events
Section 108
//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=null, ... _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 109
//ImageClasses (org.flintparticles.common.initializers.ImageClasses)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.utils.*;
public class ImageClasses extends InitializerBase {
private var _mxmlImages:Array;
private var _mxmlWeights:Array;
private var _images:WeightedArray;
public function ImageClasses(_arg1:Array=null, _arg2:Array=null){
_images = new WeightedArray();
if (_arg1 == null){
return;
};
init(_arg1, _arg2);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
var _local3:Pair = _images.getRandomValue();
_arg2.image = construct(_local3.image, _local3.parameters);
}
public function addImage(_arg1, _arg2:Number=1):void{
var _local3:Array;
var _local4:Class;
if ((_arg1 is Array)){
_local3 = (_arg1 as Array).concat();
_local4 = _local3.shift();
_images.add(new Pair(_local4, _local3), _arg2);
} else {
_images.add(new Pair(_arg1, []), _arg2);
};
}
private function init(_arg1:Array=null, _arg2:Array=null):void{
var _local4:int;
_images.clear();
var _local3:int = _arg1.length;
if (((!((_arg2 == null))) && ((_arg2.length == _local3)))){
_local4 = 0;
while (_local4 < _local3) {
addImage(_arg1[_local4], _arg2[_local4]);
_local4++;
};
} else {
_local4 = 0;
while (_local4 < _local3) {
addImage(_arg1[_local4], 1);
_local4++;
};
};
}
public function set weights(_arg1:Array):void{
if ((((_arg1.length == 1)) && ((_arg1[0] is String)))){
_mxmlWeights = String(_arg1[0]).split(",");
} else {
_mxmlWeights = _arg1;
};
checkStartValues();
}
public function removeImage(_arg1):void{
_images.remove(_arg1);
}
override public function addedToEmitter(_arg1:Emitter):void{
if (_mxmlImages){
init(_mxmlImages, _mxmlWeights);
_mxmlImages = null;
_mxmlWeights = null;
};
}
private function checkStartValues():void{
if (((_mxmlImages) && (_mxmlWeights))){
init(_mxmlImages, _mxmlWeights);
_mxmlImages = null;
_mxmlWeights = null;
};
}
public function set images(_arg1:Array):void{
_mxmlImages = _arg1;
checkStartValues();
}
}
}//package org.flintparticles.common.initializers
class Pair {
private var parameters:Array;
private var image:Class;
private function Pair(_arg1:Class, _arg2:Array){
this.image = _arg1;
this.parameters = _arg2;
}
}
Section 110
//Initializer (org.flintparticles.common.initializers.Initializer)
package org.flintparticles.common.initializers {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.common.behaviours.*;
public interface Initializer extends Behaviour {
function initialize(_arg1:Emitter, _arg2:Particle):void;
}
}//package org.flintparticles.common.initializers
Section 111
//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 {
protected var _priority:int;// = 0
public function set priority(_arg1:int):void{
_priority = _arg1;
}
public function initialize(_arg1:Emitter, _arg2:Particle):void{
}
public function removedFromEmitter(_arg1:Emitter):void{
}
public function addedToEmitter(_arg1:Emitter):void{
}
public function get priority():int{
return (_priority);
}
}
}//package org.flintparticles.common.initializers
Section 112
//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=1.79769313486232E308, _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 113
//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=1, _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 114
//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 115
//ParticleFactory (org.flintparticles.common.particles.ParticleFactory)
package org.flintparticles.common.particles {
public interface ParticleFactory {
function clearAllParticles():void;
function createParticle():Particle;
function disposeParticle(_arg1:Particle):void;
}
}//package org.flintparticles.common.particles
Section 116
//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 117
//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();
};
}
public function set emitters(_arg1:Array):void{
var _local2:Emitter;
for each (_local2 in _emitters) {
removeEmitter(_local2);
};
for each (_local2 in _arg1) {
addEmitter(_local2);
};
}
private function addedToStage(_arg1:Event):void{
if (stage){
stage.invalidate();
};
}
public function get emitters():Array{
return (_emitters);
}
protected function addParticle(_arg1:Particle):void{
}
protected function updateParticles(_arg1:Event):void{
var _local2:Array = new Array();
var _local3:int;
while (_local3 < _emitters.length) {
_local2 = _local2.concat(Emitter(_emitters[_local3]).particles);
_local3++;
};
renderParticles(_local2);
}
protected 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 {
if (stage){
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 118
//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 119
//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 _running:Boolean;// = false
private var _time:Number;
private static var _instance:FrameUpdater;
public function FrameUpdater(){
_shape = new Shape();
}
private function startTimer():void{
_shape.addEventListener(Event.ENTER_FRAME, frameUpdate, false, 0, true);
_time = getTimer();
_running = true;
}
private function stopTimer():void{
_shape.removeEventListener(Event.ENTER_FRAME, frameUpdate);
_running = false;
}
override public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
super.removeEventListener(_arg1, _arg2, _arg3);
if (((_running) && (!(hasEventListener(UpdateEvent.UPDATE))))){
stopTimer();
};
}
override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
super.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
if (((!(_running)) && (hasEventListener(UpdateEvent.UPDATE)))){
startTimer();
};
}
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 120
//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 121
//WeightedArray (org.flintparticles.common.utils.WeightedArray)
package org.flintparticles.common.utils {
import flash.utils.*;
public class WeightedArray extends Proxy {
private var _values:Array;
private var _totalWeights:Number;
public function WeightedArray(){
_values = new Array();
_totalWeights = 0;
}
public function remove(_arg1):Boolean{
var _local2:uint = _values.length;
while (_local2--) {
if (Pair(_values[_local2]).value == _arg1){
_totalWeights = (_totalWeights - Pair(_values[_local2]).weight);
_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());
}
public function removeAt(_arg1:uint){
var _local2:* = Pair(_values[_arg1]).value;
_totalWeights = (_totalWeights - Pair(_values[_arg1]).weight);
_values.splice(_arg1, 1);
return (_local2);
}
public function add(_arg1, _arg2:Number):uint{
_totalWeights = (_totalWeights + _arg2);
_values.push(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 (Pair(_values[_local2]).value);
};
return (undefined);
}
public function clear():void{
_values.length = 0;
_totalWeights = 0;
}
public function get totalWeights():Number{
return (_totalWeights);
}
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);
}
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)))){
Pair(_values[_local3]).value = _arg2;
};
}
public function getRandomValue(){
var _local1:Number = (Math.random() * _totalWeights);
var _local2:Number = 0;
var _local3:int = _values.length;
var _local4:int;
while (_local4 < _local3) {
_local2 = (_local2 + Pair(_values[_local4]).weight);
if (_local2 >= _local1){
return (Pair(_values[_local4]).value);
};
_local4++;
};
return (Pair(_values[(_local3 - 1)]).value);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextValue(_arg1:int){
return (Pair(_values[(_arg1 - 1)]).value);
}
public function contains(_arg1):Boolean{
var _local2:uint = _values.length;
while (_local2--) {
if (Pair(_values[_local2]).value == _arg1){
return (true);
};
};
return (false);
}
}
}//package org.flintparticles.common.utils
class Pair {
private var weight:Number;
private var value;
private function Pair(_arg1:Number, _arg2){
this.weight = _arg1;
this.value = _arg2;
}
}
Section 122
//DeathZone (org.flintparticles.twoD.actions.DeathZone)
package org.flintparticles.twoD.actions {
import org.flintparticles.common.emitters.*;
import org.flintparticles.common.particles.*;
import org.flintparticles.twoD.zones.*;
import org.flintparticles.common.actions.*;
import org.flintparticles.twoD.particles.*;
public class DeathZone extends ActionBase {
private var _invertZone:Boolean;
private var _zone:Zone2D;
private var p:Particle2D;
private var inside:Boolean;
public function DeathZone(_arg1:Zone2D=null, _arg2:Boolean=false){
priority = -20;
this.zone = _arg1;
this.zoneIsSafe = _arg2;
}
public function get zoneIsSafe():Boolean{
return (_invertZone);
}
public function set zoneIsSafe(_arg1:Boolean):void{
_invertZone = _arg1;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
p = Particle2D(_arg2);
inside = _zone.contains(p.x, p.y);
if (_invertZone){
if (!inside){
p.isDead = true;
};
} else {
if (inside){
p.isDead = true;
};
};
}
public function get zone():Zone2D{
return (_zone);
}
public function set zone(_arg1:Zone2D):void{
_zone = _arg1;
}
}
}//package org.flintparticles.twoD.actions
Section 123
//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.common.behaviours.*;
import org.flintparticles.twoD.particles.*;
public class Explosion extends ActionBase implements Resetable, 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=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=300, _arg5:Number=10, _arg6:Number=1){
this.power = _arg1;
this.x = _arg2;
this.y = _arg3;
this.expansionRate = _arg4;
this.depth = _arg5;
this.epsilon = _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 reset():void{
_radius = 0;
_oldRadius = 0;
_radiusChange = 0;
}
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;
}
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);
}
public function frameUpdate(_arg1:Emitter, _arg2:Number):void{
_oldRadius = _radius;
_radiusChange = (_expansionRate * _arg2);
_radius = (_radius + _radiusChange);
}
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 124
//Friction (org.flintparticles.twoD.actions.Friction)
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 Friction extends ActionBase {
private var _friction:Number;
public function Friction(_arg1:Number=0){
this.friction = _arg1;
}
public function set friction(_arg1:Number):void{
_friction = _arg1;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local6:Number;
var _local4:Particle2D = Particle2D(_arg2);
var _local5:Number = ((_local4.velX * _local4.velX) + (_local4.velY * _local4.velY));
if (_local5 == 0){
return;
};
_local6 = (1 - ((_friction * _arg3) / (Math.sqrt(_local5) * _local4.mass)));
if (_local6 < 0){
_local4.velX = 0;
_local4.velY = 0;
} else {
_local4.velX = (_local4.velX * _local6);
_local4.velY = (_local4.velY * _local6);
};
}
public function get friction():Number{
return (_friction);
}
}
}//package org.flintparticles.twoD.actions
Section 125
//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 {
public function Move(){
priority = -10;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D = Particle2D(_arg2);
Particle2D(_arg2).previousX = _local4.x;
_local4.previousY = _local4.y;
_local4.x = (_local4.x + (_local4.velX * _arg3));
_local4.y = (_local4.y + (_local4.velY * _arg3));
}
}
}//package org.flintparticles.twoD.actions
Section 126
//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=0, _arg2:Number=0){
this.driftX = _arg1;
this.driftY = _arg2;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D;
_local4 = 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 127
//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 {
public function Rotate(){
priority = -10;
}
override public function update(_arg1:Emitter, _arg2:Particle, _arg3:Number):void{
var _local4:Particle2D = Particle2D(_arg2);
Particle2D(_arg2).rotation = (_local4.rotation + (_local4.angVelocity * _arg3));
}
}
}//package org.flintparticles.twoD.actions
Section 128
//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 = Particle2D(_arg1);
_local2.x = _x;
_local2.y = _y;
_local2.previousX = _x;
_local2.previousY = _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) {
Particle2D(_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 129
//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=null){
this.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.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)));
};
_local3.previousX = _local3.x;
_local3.previousY = _local3.y;
}
public function set zone(_arg1:Zone2D):void{
_zone = _arg1;
}
public function get zone():Zone2D{
return (_zone);
}
}
}//package org.flintparticles.twoD.initializers
Section 130
//RotateVelocity (org.flintparticles.twoD.initializers.RotateVelocity)
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 RotateVelocity extends InitializerBase {
private var _max:Number;
private var _min:Number;
public function RotateVelocity(_arg1:Number=0, _arg2:Number=NaN){
this.minAngVelocity = _arg1;
this.maxAngVelocity = _arg2;
}
public function get maxAngVelocity():Number{
return (_max);
}
public function get minAngVelocity():Number{
return (_min);
}
public function set minAngVelocity(_arg1:Number):void{
_min = _arg1;
}
public function set maxAngVelocity(_arg1:Number):void{
_max = _arg1;
}
public function set angVelocity(_arg1:Number):void{
_max = (_min = _arg1);
}
override public function initialize(_arg1:Emitter, _arg2:Particle):void{
var _local3:Particle2D = Particle2D(_arg2);
if (isNaN(_max)){
_local3.angVelocity = _min;
} else {
_local3.angVelocity = (_min + (Math.random() * (_max - _min)));
};
}
public function get angVelocity():Number{
return (((_min == _max)) ? _min : ((_max + _min) / 2));
}
}
}//package org.flintparticles.twoD.initializers
Section 131
//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=0, _arg2:Number=NaN){
this.minAngle = _arg1;
this.maxAngle = _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 132
//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=null){
this.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.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 133
//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 y:Number;// = 0
public var previousX:Number;// = 0
public var previousY:Number;// = 0
private var _previousRadius:Number;
public var angVelocity:Number;// = 0
public var velX:Number;// = 0
public var velY:Number;// = 0
private var _previousMass:Number;
public var x:Number;// = 0
public var sortID:int;// = -1
private var _inertia:Number;
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;
previousX = 0;
previousY = 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 134
//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 135
//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{
var _local2:Particle2D = (_arg1 as Particle2D);
addChildAt(_local2.image, 0);
var _local3:DisplayObject = _local2.image;
_local3.transform.colorTransform = _local2.colorTransform;
_local3.transform.matrix = _local2.matrixTransform;
}
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 136
//LineZone (org.flintparticles.twoD.zones.LineZone)
package org.flintparticles.twoD.zones {
import flash.geom.*;
public class LineZone implements Zone2D {
private var _start:Point;
private var _length:Point;
private var _end:Point;
public function LineZone(_arg1:Point=null, _arg2:Point=null){
if (_arg1 == null){
_start = new Point(0, 0);
} else {
_start = _arg1;
};
if (_arg2 == null){
_end = new Point(0, 0);
} else {
_end = _arg2;
};
_length = _end.subtract(_start);
}
public function get start():Point{
return (_start);
}
public function set start(_arg1:Point):void{
_start = _arg1;
_length = _end.subtract(_start);
}
public function set endY(_arg1:Number):void{
_end.y = _arg1;
_length = _end.subtract(_start);
}
public function set startX(_arg1:Number):void{
_start.x = _arg1;
_length = _end.subtract(_start);
}
public function set startY(_arg1:Number):void{
_start.y = _arg1;
_length = _end.subtract(_start);
}
public function getArea():Number{
return (_length.length);
}
public function getLocation():Point{
var _local1:Point = _start.clone();
var _local2:Number = Math.random();
_local1.x = (_local1.x + (_length.x * _local2));
_local1.y = (_local1.y + (_length.y * _local2));
return (_local1);
}
public function get endX():Number{
return (_end.x);
}
public function set end(_arg1:Point):void{
_end = _arg1;
_length = _end.subtract(_start);
}
public function get startY():Number{
return (_start.y);
}
public function set endX(_arg1:Number):void{
_end.x = _arg1;
_length = _end.subtract(_start);
}
public function get end():Point{
return (_end);
}
public function get startX():Number{
return (_start.x);
}
public function get endY():Number{
return (_end.y);
}
public function contains(_arg1:Number, _arg2:Number):Boolean{
if ((((_arg1 - _start.x) * _length.y) - ((_arg2 - _start.y) * _length.x)) != 0){
return (false);
};
return (((((_arg1 - _start.x) * (_arg1 - _end.x)) + ((_arg2 - _start.y) * (_arg2 - _end.y))) <= 0));
}
}
}//package org.flintparticles.twoD.zones
Section 137
//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=null){
if (_arg1 == null){
_point = new Point(0, 0);
} else {
_point = _arg1;
};
}
public function set point(_arg1:Point):void{
_point = _arg1;
}
public function getArea():Number{
return (1);
}
public function getLocation():Point{
return (_point.clone());
}
public function get point():Point{
return (_point);
}
public function set y(_arg1:Number):void{
_point.y = _arg1;
}
public function set x(_arg1:Number):void{
_point.x = _arg1;
}
public function get x():Number{
return (_point.x);
}
public function get y():Number{
return (_point.y);
}
public function contains(_arg1:Number, _arg2:Number):Boolean{
return ((((_point.x == _arg1)) && ((_point.y == _arg2))));
}
}
}//package org.flintparticles.twoD.zones
Section 138
//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=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
_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;
if (((!(isNaN(_top))) && (!(isNaN(_bottom))))){
_height = (bottom - top);
};
}
public function get right():Number{
return (_right);
}
public function set left(_arg1:Number):void{
_left = _arg1;
if (((!(isNaN(_right))) && (!(isNaN(_left))))){
_width = (right - left);
};
}
public function get left():Number{
return (_left);
}
public function set top(_arg1:Number):void{
_top = _arg1;
if (((!(isNaN(_top))) && (!(isNaN(_bottom))))){
_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;
if (((!(isNaN(_right))) && (!(isNaN(_left))))){
_width = (right - left);
};
}
public function getLocation():Point{
return (new Point((_left + (Math.random() * _width)), (_top + (Math.random() * _height))));
}
}
}//package org.flintparticles.twoD.zones
Section 139
//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 140
//Background1 (Background1)
package {
import flash.display.*;
public dynamic class Background1 extends MovieClip {
}
}//package
Section 141
//Background2 (Background2)
package {
import flash.display.*;
public dynamic class Background2 extends MovieClip {
}
}//package
Section 142
//Background3 (Background3)
package {
import flash.display.*;
public dynamic class Background3 extends MovieClip {
}
}//package
Section 143
//Background4 (Background4)
package {
import flash.display.*;
public dynamic class Background4 extends MovieClip {
}
}//package
Section 144
//BackgroundAsset (BackgroundAsset)
package {
import flash.display.*;
public dynamic class BackgroundAsset extends MovieClip {
}
}//package
Section 145
//Bust1Asset1 (Bust1Asset1)
package {
import flash.display.*;
public dynamic class Bust1Asset1 extends MovieClip {
}
}//package
Section 146
//Bust1Asset2 (Bust1Asset2)
package {
import flash.display.*;
public dynamic class Bust1Asset2 extends MovieClip {
}
}//package
Section 147
//Bust1Color (Bust1Color)
package {
import flash.display.*;
public dynamic class Bust1Color extends MovieClip {
}
}//package
Section 148
//Bust1Highlight (Bust1Highlight)
package {
import flash.display.*;
public dynamic class Bust1Highlight extends MovieClip {
}
}//package
Section 149
//Bust1Overlay (Bust1Overlay)
package {
import flash.display.*;
public dynamic class Bust1Overlay extends MovieClip {
}
}//package
Section 150
//Bust2Asset1 (Bust2Asset1)
package {
import flash.display.*;
public dynamic class Bust2Asset1 extends MovieClip {
}
}//package
Section 151
//Bust2Color (Bust2Color)
package {
import flash.display.*;
public dynamic class Bust2Color extends MovieClip {
}
}//package
Section 152
//Bust2Highlight (Bust2Highlight)
package {
import flash.display.*;
public dynamic class Bust2Highlight extends MovieClip {
}
}//package
Section 153
//Bust2Overlay (Bust2Overlay)
package {
import flash.display.*;
public dynamic class Bust2Overlay extends MovieClip {
}
}//package
Section 154
//Bust3Asset1 (Bust3Asset1)
package {
import flash.display.*;
public dynamic class Bust3Asset1 extends MovieClip {
}
}//package
Section 155
//Bust3Color (Bust3Color)
package {
import flash.display.*;
public dynamic class Bust3Color extends MovieClip {
}
}//package
Section 156
//Bust3Highlight (Bust3Highlight)
package {
import flash.display.*;
public dynamic class Bust3Highlight extends MovieClip {
}
}//package
Section 157
//Bust3Overlay (Bust3Overlay)
package {
import flash.display.*;
public dynamic class Bust3Overlay extends MovieClip {
}
}//package
Section 158
//Bust4Asset1 (Bust4Asset1)
package {
import flash.display.*;
public dynamic class Bust4Asset1 extends MovieClip {
}
}//package
Section 159
//Bust4Asset2 (Bust4Asset2)
package {
import flash.display.*;
public dynamic class Bust4Asset2 extends MovieClip {
}
}//package
Section 160
//Bust4Color (Bust4Color)
package {
import flash.display.*;
public dynamic class Bust4Color extends MovieClip {
}
}//package
Section 161
//Bust4Highlight (Bust4Highlight)
package {
import flash.display.*;
public dynamic class Bust4Highlight extends MovieClip {
}
}//package
Section 162
//Bust4Overlay (Bust4Overlay)
package {
import flash.display.*;
public dynamic class Bust4Overlay extends MovieClip {
}
}//package
Section 163
//Bust5Asset1 (Bust5Asset1)
package {
import flash.display.*;
public dynamic class Bust5Asset1 extends MovieClip {
}
}//package
Section 164
//Bust5Color (Bust5Color)
package {
import flash.display.*;
public dynamic class Bust5Color extends MovieClip {
}
}//package
Section 165
//Bust5Highlight (Bust5Highlight)
package {
import flash.display.*;
public dynamic class Bust5Highlight extends MovieClip {
}
}//package
Section 166
//Bust5Overlay (Bust5Overlay)
package {
import flash.display.*;
public dynamic class Bust5Overlay extends MovieClip {
}
}//package
Section 167
//Bust6Asset1 (Bust6Asset1)
package {
import flash.display.*;
public dynamic class Bust6Asset1 extends MovieClip {
}
}//package
Section 168
//Bust6Color (Bust6Color)
package {
import flash.display.*;
public dynamic class Bust6Color extends MovieClip {
}
}//package
Section 169
//Bust6Highlight (Bust6Highlight)
package {
import flash.display.*;
public dynamic class Bust6Highlight extends MovieClip {
}
}//package
Section 170
//Bust6Overlay (Bust6Overlay)
package {
import flash.display.*;
public dynamic class Bust6Overlay extends MovieClip {
}
}//package
Section 171
//Cape1Color (Cape1Color)
package {
import flash.display.*;
public dynamic class Cape1Color extends MovieClip {
}
}//package
Section 172
//Cape1Highlight (Cape1Highlight)
package {
import flash.display.*;
public dynamic class Cape1Highlight extends MovieClip {
}
}//package
Section 173
//Cape1Overlay (Cape1Overlay)
package {
import flash.display.*;
public dynamic class Cape1Overlay extends MovieClip {
}
}//package
Section 174
//Cape2Asset1 (Cape2Asset1)
package {
import flash.display.*;
public dynamic class Cape2Asset1 extends MovieClip {
}
}//package
Section 175
//Cape2Color (Cape2Color)
package {
import flash.display.*;
public dynamic class Cape2Color extends MovieClip {
}
}//package
Section 176
//Cape2Highlight (Cape2Highlight)
package {
import flash.display.*;
public dynamic class Cape2Highlight extends MovieClip {
}
}//package
Section 177
//Cape2Overlay (Cape2Overlay)
package {
import flash.display.*;
public dynamic class Cape2Overlay extends MovieClip {
}
}//package
Section 178
//Char1Asset (Char1Asset)
package {
import flash.display.*;
public dynamic class Char1Asset extends MovieClip {
}
}//package
Section 179
//Char1Asset1 (Char1Asset1)
package {
import flash.display.*;
public dynamic class Char1Asset1 extends MovieClip {
}
}//package
Section 180
//Char1Asset2 (Char1Asset2)
package {
import flash.display.*;
public dynamic class Char1Asset2 extends MovieClip {
}
}//package
Section 181
//Char1Asset3 (Char1Asset3)
package {
import flash.display.*;
public dynamic class Char1Asset3 extends MovieClip {
}
}//package
Section 182
//Char1Asset4 (Char1Asset4)
package {
import flash.display.*;
public dynamic class Char1Asset4 extends MovieClip {
}
}//package
Section 183
//Char1Color (Char1Color)
package {
import flash.display.*;
public dynamic class Char1Color extends MovieClip {
}
}//package
Section 184
//Char1LabelAsset (Char1LabelAsset)
package {
import flash.display.*;
public dynamic class Char1LabelAsset extends MovieClip {
}
}//package
Section 185
//Char1Overlay (Char1Overlay)
package {
import flash.display.*;
public dynamic class Char1Overlay extends MovieClip {
}
}//package
Section 186
//Char2Asset (Char2Asset)
package {
import flash.display.*;
public dynamic class Char2Asset extends MovieClip {
}
}//package
Section 187
//Char2Asset1 (Char2Asset1)
package {
import flash.display.*;
public dynamic class Char2Asset1 extends MovieClip {
}
}//package
Section 188
//Char2Asset2 (Char2Asset2)
package {
import flash.display.*;
public dynamic class Char2Asset2 extends MovieClip {
}
}//package
Section 189
//Char2Asset3 (Char2Asset3)
package {
import flash.display.*;
public dynamic class Char2Asset3 extends MovieClip {
}
}//package
Section 190
//Char2Asset4 (Char2Asset4)
package {
import flash.display.*;
public dynamic class Char2Asset4 extends MovieClip {
}
}//package
Section 191
//Char2Color (Char2Color)
package {
import flash.display.*;
public dynamic class Char2Color extends MovieClip {
}
}//package
Section 192
//Char2LabelAsset (Char2LabelAsset)
package {
import flash.display.*;
public dynamic class Char2LabelAsset extends MovieClip {
}
}//package
Section 193
//Char2Overlay (Char2Overlay)
package {
import flash.display.*;
public dynamic class Char2Overlay extends MovieClip {
}
}//package
Section 194
//Char3Asset (Char3Asset)
package {
import flash.display.*;
public dynamic class Char3Asset extends MovieClip {
}
}//package
Section 195
//Char3Asset1 (Char3Asset1)
package {
import flash.display.*;
public dynamic class Char3Asset1 extends MovieClip {
}
}//package
Section 196
//Char3Asset2 (Char3Asset2)
package {
import flash.display.*;
public dynamic class Char3Asset2 extends MovieClip {
}
}//package
Section 197
//Char3Asset3 (Char3Asset3)
package {
import flash.display.*;
public dynamic class Char3Asset3 extends MovieClip {
}
}//package
Section 198
//Char3Asset4 (Char3Asset4)
package {
import flash.display.*;
public dynamic class Char3Asset4 extends MovieClip {
}
}//package
Section 199
//Char3Color (Char3Color)
package {
import flash.display.*;
public dynamic class Char3Color extends MovieClip {
}
}//package
Section 200
//Char3LabelAsset (Char3LabelAsset)
package {
import flash.display.*;
public dynamic class Char3LabelAsset extends MovieClip {
}
}//package
Section 201
//Char3Overlay (Char3Overlay)
package {
import flash.display.*;
public dynamic class Char3Overlay extends MovieClip {
}
}//package
Section 202
//CharacterSelectorArrowsAsset (CharacterSelectorArrowsAsset)
package {
import flash.display.*;
public dynamic class CharacterSelectorArrowsAsset extends MovieClip {
}
}//package
Section 203
//CharacterSelectorBackgroundButtonAsset (CharacterSelectorBackgroundButtonAsset)
package {
import flash.display.*;
public dynamic class CharacterSelectorBackgroundButtonAsset extends MovieClip {
}
}//package
Section 204
//CheckBoxAsset (CheckBoxAsset)
package {
import flash.display.*;
public dynamic class CheckBoxAsset extends MovieClip {
}
}//package
Section 205
//CoBrandKibaAsset (CoBrandKibaAsset)
package {
import flash.display.*;
public dynamic class CoBrandKibaAsset extends MovieClip {
}
}//package
Section 206
//CoconFontAsset (CoconFontAsset)
package {
import flash.text.*;
public dynamic class CoconFontAsset extends Font {
}
}//package
Section 207
//ColorDragButtonAsset (ColorDragButtonAsset)
package {
import flash.display.*;
public dynamic class ColorDragButtonAsset extends MovieClip {
}
}//package
Section 208
//ColorPalletteBackgroundAsset (ColorPalletteBackgroundAsset)
package {
import flash.display.*;
public dynamic class ColorPalletteBackgroundAsset extends MovieClip {
}
}//package
Section 209
//ColorPalletteColorAsset (ColorPalletteColorAsset)
package {
import flash.display.*;
public dynamic class ColorPalletteColorAsset extends MovieClip {
}
}//package
Section 210
//ColorPalletteSkinBackgroundAsset (ColorPalletteSkinBackgroundAsset)
package {
import flash.display.*;
public dynamic class ColorPalletteSkinBackgroundAsset extends MovieClip {
}
}//package
Section 211
//ColorPalletteSkinColorAsset (ColorPalletteSkinColorAsset)
package {
import flash.display.*;
public dynamic class ColorPalletteSkinColorAsset extends MovieClip {
}
}//package
Section 212
//ColorTileColorAsset (ColorTileColorAsset)
package {
import flash.display.*;
public dynamic class ColorTileColorAsset extends MovieClip {
}
}//package
Section 213
//ColorTileOutlineAsset (ColorTileOutlineAsset)
package {
import flash.display.*;
public dynamic class ColorTileOutlineAsset extends MovieClip {
}
}//package
Section 214
//CupboardArrowAsset (CupboardArrowAsset)
package {
import flash.display.*;
public dynamic class CupboardArrowAsset extends MovieClip {
}
}//package
Section 215
//CupboardArrowCloseButtonAsset (CupboardArrowCloseButtonAsset)
package {
import flash.display.*;
public dynamic class CupboardArrowCloseButtonAsset extends MovieClip {
}
}//package
Section 216
//CupboardBackgroundAsset (CupboardBackgroundAsset)
package {
import flash.display.*;
public dynamic class CupboardBackgroundAsset extends MovieClip {
}
}//package
Section 217
//CupboardBackgroundButtonAsset (CupboardBackgroundButtonAsset)
package {
import flash.display.*;
public dynamic class CupboardBackgroundButtonAsset extends MovieClip {
}
}//package
Section 218
//CupboardBackgroundMaskAsset (CupboardBackgroundMaskAsset)
package {
import flash.display.*;
public dynamic class CupboardBackgroundMaskAsset extends MovieClip {
}
}//package
Section 219
//CupboardBinIconAsset (CupboardBinIconAsset)
package {
import flash.display.*;
public dynamic class CupboardBinIconAsset extends MovieClip {
}
}//package
Section 220
//CupboardButtonBagIconAsset (CupboardButtonBagIconAsset)
package {
import flash.display.*;
public dynamic class CupboardButtonBagIconAsset extends MovieClip {
}
}//package
Section 221
//CupboardButtonCapeIconAsset (CupboardButtonCapeIconAsset)
package {
import flash.display.*;
public dynamic class CupboardButtonCapeIconAsset extends MovieClip {
}
}//package
Section 222
//CupboardButtonSceneIconAsset (CupboardButtonSceneIconAsset)
package {
import flash.display.*;
public dynamic class CupboardButtonSceneIconAsset extends MovieClip {
}
}//package
Section 223
//CupboardButtonShoeIconAsset (CupboardButtonShoeIconAsset)
package {
import flash.display.*;
public dynamic class CupboardButtonShoeIconAsset extends MovieClip {
}
}//package
Section 224
//CupboardButtonTopIconAsset (CupboardButtonTopIconAsset)
package {
import flash.display.*;
public dynamic class CupboardButtonTopIconAsset extends MovieClip {
}
}//package
Section 225
//CupboardButtonTrouserIconAsset (CupboardButtonTrouserIconAsset)
package {
import flash.display.*;
public dynamic class CupboardButtonTrouserIconAsset extends MovieClip {
}
}//package
Section 226
//CupboardCloseButtonAsset (CupboardCloseButtonAsset)
package {
import flash.display.*;
public dynamic class CupboardCloseButtonAsset extends MovieClip {
}
}//package
Section 227
//CupboardColorAsset (CupboardColorAsset)
package {
import flash.display.*;
public dynamic class CupboardColorAsset extends MovieClip {
}
}//package
Section 228
//CupboardForegroundButtonAsset (CupboardForegroundButtonAsset)
package {
import flash.display.*;
public dynamic class CupboardForegroundButtonAsset extends MovieClip {
}
}//package
Section 229
//CupboardHighlightButtonAsset (CupboardHighlightButtonAsset)
package {
import flash.display.*;
public dynamic class CupboardHighlightButtonAsset extends MovieClip {
}
}//package
Section 230
//CupboardOpenCloseAsset (CupboardOpenCloseAsset)
package {
import flash.media.*;
public dynamic class CupboardOpenCloseAsset extends Sound {
}
}//package
Section 231
//CupboardSectionButtonArrowAsset (CupboardSectionButtonArrowAsset)
package {
import flash.display.*;
public dynamic class CupboardSectionButtonArrowAsset extends MovieClip {
}
}//package
Section 232
//CupboardSectionButtonBackgroundAsset (CupboardSectionButtonBackgroundAsset)
package {
import flash.display.*;
public dynamic class CupboardSectionButtonBackgroundAsset extends MovieClip {
}
}//package
Section 233
//CustomCharAsset1 (CustomCharAsset1)
package {
import flash.display.*;
public dynamic class CustomCharAsset1 extends MovieClip {
}
}//package
Section 234
//CustomCharAsset2 (CustomCharAsset2)
package {
import flash.display.*;
public dynamic class CustomCharAsset2 extends MovieClip {
}
}//package
Section 235
//CustomCharAsset3 (CustomCharAsset3)
package {
import flash.display.*;
public dynamic class CustomCharAsset3 extends MovieClip {
}
}//package
Section 236
//CustomCharColor (CustomCharColor)
package {
import flash.display.*;
public dynamic class CustomCharColor extends MovieClip {
}
}//package
Section 237
//CustomCharOverlay (CustomCharOverlay)
package {
import flash.display.*;
public dynamic class CustomCharOverlay extends MovieClip {
}
}//package
Section 238
//Eyes1Color (Eyes1Color)
package {
import flash.display.*;
public dynamic class Eyes1Color extends MovieClip {
}
}//package
Section 239
//Eyes1Highlight (Eyes1Highlight)
package {
import flash.display.*;
public dynamic class Eyes1Highlight extends MovieClip {
}
}//package
Section 240
//Eyes1Overlay (Eyes1Overlay)
package {
import flash.display.*;
public dynamic class Eyes1Overlay extends MovieClip {
}
}//package
Section 241
//Flower1Asset1 (Flower1Asset1)
package {
import flash.display.*;
public dynamic class Flower1Asset1 extends MovieClip {
}
}//package
Section 242
//Flower1Asset2 (Flower1Asset2)
package {
import flash.display.*;
public dynamic class Flower1Asset2 extends MovieClip {
}
}//package
Section 243
//Flower1Color (Flower1Color)
package {
import flash.display.*;
public dynamic class Flower1Color extends MovieClip {
}
}//package
Section 244
//Flower1Highlight (Flower1Highlight)
package {
import flash.display.*;
public dynamic class Flower1Highlight extends MovieClip {
}
}//package
Section 245
//Flower1Overlay (Flower1Overlay)
package {
import flash.display.*;
public dynamic class Flower1Overlay extends MovieClip {
}
}//package
Section 246
//Flower2Color (Flower2Color)
package {
import flash.display.*;
public dynamic class Flower2Color extends MovieClip {
}
}//package
Section 247
//Flower2Highlight (Flower2Highlight)
package {
import flash.display.*;
public dynamic class Flower2Highlight extends MovieClip {
}
}//package
Section 248
//Flower2Overlay (Flower2Overlay)
package {
import flash.display.*;
public dynamic class Flower2Overlay extends MovieClip {
}
}//package
Section 249
//Flower3Color (Flower3Color)
package {
import flash.display.*;
public dynamic class Flower3Color extends MovieClip {
}
}//package
Section 250
//Flower3Highlight (Flower3Highlight)
package {
import flash.display.*;
public dynamic class Flower3Highlight extends MovieClip {
}
}//package
Section 251
//Flower3Overlay (Flower3Overlay)
package {
import flash.display.*;
public dynamic class Flower3Overlay extends MovieClip {
}
}//package
Section 252
//Flower4Asset1 (Flower4Asset1)
package {
import flash.display.*;
public dynamic class Flower4Asset1 extends MovieClip {
}
}//package
Section 253
//Flower4Asset2 (Flower4Asset2)
package {
import flash.display.*;
public dynamic class Flower4Asset2 extends MovieClip {
}
}//package
Section 254
//Flower4Color (Flower4Color)
package {
import flash.display.*;
public dynamic class Flower4Color extends MovieClip {
}
}//package
Section 255
//Flower4Highlight (Flower4Highlight)
package {
import flash.display.*;
public dynamic class Flower4Highlight extends MovieClip {
}
}//package
Section 256
//Flower4Overlay (Flower4Overlay)
package {
import flash.display.*;
public dynamic class Flower4Overlay extends MovieClip {
}
}//package
Section 257
//Flower5Asset1 (Flower5Asset1)
package {
import flash.display.*;
public dynamic class Flower5Asset1 extends MovieClip {
}
}//package
Section 258
//Flower5Color (Flower5Color)
package {
import flash.display.*;
public dynamic class Flower5Color extends MovieClip {
}
}//package
Section 259
//Flower5Highlight (Flower5Highlight)
package {
import flash.display.*;
public dynamic class Flower5Highlight extends MovieClip {
}
}//package
Section 260
//Flower5Overlay (Flower5Overlay)
package {
import flash.display.*;
public dynamic class Flower5Overlay extends MovieClip {
}
}//package
Section 261
//Flower6Asset1 (Flower6Asset1)
package {
import flash.display.*;
public dynamic class Flower6Asset1 extends MovieClip {
}
}//package
Section 262
//Flower6Color (Flower6Color)
package {
import flash.display.*;
public dynamic class Flower6Color extends MovieClip {
}
}//package
Section 263
//Flower6Highlight (Flower6Highlight)
package {
import flash.display.*;
public dynamic class Flower6Highlight extends MovieClip {
}
}//package
Section 264
//Flower6Overlay (Flower6Overlay)
package {
import flash.display.*;
public dynamic class Flower6Overlay extends MovieClip {
}
}//package
Section 265
//Foot1Asset1 (Foot1Asset1)
package {
import flash.display.*;
public dynamic class Foot1Asset1 extends MovieClip {
}
}//package
Section 266
//Foot1Asset2 (Foot1Asset2)
package {
import flash.display.*;
public dynamic class Foot1Asset2 extends MovieClip {
}
}//package
Section 267
//Foot1Color (Foot1Color)
package {
import flash.display.*;
public dynamic class Foot1Color extends MovieClip {
}
}//package
Section 268
//Foot1Highlight (Foot1Highlight)
package {
import flash.display.*;
public dynamic class Foot1Highlight extends MovieClip {
}
}//package
Section 269
//Foot1Overlay (Foot1Overlay)
package {
import flash.display.*;
public dynamic class Foot1Overlay extends MovieClip {
}
}//package
Section 270
//Foot2Asset1 (Foot2Asset1)
package {
import flash.display.*;
public dynamic class Foot2Asset1 extends MovieClip {
}
}//package
Section 271
//Foot2Color (Foot2Color)
package {
import flash.display.*;
public dynamic class Foot2Color extends MovieClip {
}
}//package
Section 272
//Foot2Highlight (Foot2Highlight)
package {
import flash.display.*;
public dynamic class Foot2Highlight extends MovieClip {
}
}//package
Section 273
//Foot2Overlay (Foot2Overlay)
package {
import flash.display.*;
public dynamic class Foot2Overlay extends MovieClip {
}
}//package
Section 274
//Foot3Color (Foot3Color)
package {
import flash.display.*;
public dynamic class Foot3Color extends MovieClip {
}
}//package
Section 275
//Foot3Highlight (Foot3Highlight)
package {
import flash.display.*;
public dynamic class Foot3Highlight extends MovieClip {
}
}//package
Section 276
//Foot3Overlay (Foot3Overlay)
package {
import flash.display.*;
public dynamic class Foot3Overlay extends MovieClip {
}
}//package
Section 277
//Foot4Asset1 (Foot4Asset1)
package {
import flash.display.*;
public dynamic class Foot4Asset1 extends MovieClip {
}
}//package
Section 278
//Foot4Asset2 (Foot4Asset2)
package {
import flash.display.*;
public dynamic class Foot4Asset2 extends MovieClip {
}
}//package
Section 279
//Foot4Color (Foot4Color)
package {
import flash.display.*;
public dynamic class Foot4Color extends MovieClip {
}
}//package
Section 280
//Foot4Highlight (Foot4Highlight)
package {
import flash.display.*;
public dynamic class Foot4Highlight extends MovieClip {
}
}//package
Section 281
//Foot4Overlay (Foot4Overlay)
package {
import flash.display.*;
public dynamic class Foot4Overlay extends MovieClip {
}
}//package
Section 282
//Foot5Asset1 (Foot5Asset1)
package {
import flash.display.*;
public dynamic class Foot5Asset1 extends MovieClip {
}
}//package
Section 283
//Foot5Color (Foot5Color)
package {
import flash.display.*;
public dynamic class Foot5Color extends MovieClip {
}
}//package
Section 284
//Foot5Highlight (Foot5Highlight)
package {
import flash.display.*;
public dynamic class Foot5Highlight extends MovieClip {
}
}//package
Section 285
//Foot5Overlay (Foot5Overlay)
package {
import flash.display.*;
public dynamic class Foot5Overlay extends MovieClip {
}
}//package
Section 286
//GirlsHeads (GirlsHeads)
package {
import flash.display.*;
public dynamic class GirlsHeads extends MovieClip {
}
}//package
Section 287
//HighlightGlintAsset (HighlightGlintAsset)
package {
import flash.display.*;
public dynamic class HighlightGlintAsset extends MovieClip {
}
}//package
Section 288
//JingleAsset (JingleAsset)
package {
import flash.media.*;
public dynamic class JingleAsset extends Sound {
}
}//package
Section 289
//LeftFoot1Color (LeftFoot1Color)
package {
import flash.display.*;
public dynamic class LeftFoot1Color extends MovieClip {
}
}//package
Section 290
//LeftFoot1Highlight (LeftFoot1Highlight)
package {
import flash.display.*;
public dynamic class LeftFoot1Highlight extends MovieClip {
}
}//package
Section 291
//LeftFoot1Overlay (LeftFoot1Overlay)
package {
import flash.display.*;
public dynamic class LeftFoot1Overlay extends MovieClip {
}
}//package
Section 292
//LightAsset (LightAsset)
package {
import flash.display.*;
public dynamic class LightAsset extends MovieClip {
}
}//package
Section 293
//LightConeAsset (LightConeAsset)
package {
import flash.display.*;
public dynamic class LightConeAsset extends MovieClip {
}
}//package
Section 294
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import com.drimlike.games.dressup.data.*;
import com.drimlike.games.dressup.systems.*;
import com.drimlike.games.dressup.sound.*;
import caurina.transitions.properties.*;
import flash.system.*;
public class Main extends Sprite {
private var sandbox:Sandbox;
private var initSystem:InitSystem;
public function Main(){
init();
}
private function init():void{
languageCheck();
GameData.getInstance().soundManager = new SoundManager();
TextShortcuts.init();
FilterShortcuts.init();
ColorShortcuts.init();
initSystem = new InitSystem(4);
initSystem.addEventListener(InitSystem.START_GAME_EVENT, onGameStart);
addChild(initSystem);
sandbox = new Sandbox(false);
addChildAt(sandbox, 0);
}
private function onGameStart(_arg1:Event):void{
initSystem.removeEventListener(InitSystem.START_GAME_EVENT, onGameStart);
removeChild(initSystem);
initSystem = null;
sandbox.startUp();
}
private function languageCheck():void{
switch (Capabilities.language){
default:
GameData.getInstance().language = GameData.ENGLISH;
break;
case "de":
GameData.getInstance().language = GameData.GERMAN;
break;
case "fr":
GameData.getInstance().language = GameData.FRENCH;
break;
case "es":
GameData.getInstance().language = GameData.SPANISH;
break;
};
}
}
}//package
Section 295
//Mouth1Color (Mouth1Color)
package {
import flash.display.*;
public dynamic class Mouth1Color extends MovieClip {
}
}//package
Section 296
//Mouth1Highlight (Mouth1Highlight)
package {
import flash.display.*;
public dynamic class Mouth1Highlight extends MovieClip {
}
}//package
Section 297
//Mouth1Overlay (Mouth1Overlay)
package {
import flash.display.*;
public dynamic class Mouth1Overlay extends MovieClip {
}
}//package
Section 298
//Mouth2Color (Mouth2Color)
package {
import flash.display.*;
public dynamic class Mouth2Color extends MovieClip {
}
}//package
Section 299
//Mouth2Highlight (Mouth2Highlight)
package {
import flash.display.*;
public dynamic class Mouth2Highlight extends MovieClip {
}
}//package
Section 300
//Mouth2Overlay (Mouth2Overlay)
package {
import flash.display.*;
public dynamic class Mouth2Overlay extends MovieClip {
}
}//package
Section 301
//Mouth3Color (Mouth3Color)
package {
import flash.display.*;
public dynamic class Mouth3Color extends MovieClip {
}
}//package
Section 302
//Mouth3Highlight (Mouth3Highlight)
package {
import flash.display.*;
public dynamic class Mouth3Highlight extends MovieClip {
}
}//package
Section 303
//Mouth3Overlay (Mouth3Overlay)
package {
import flash.display.*;
public dynamic class Mouth3Overlay extends MovieClip {
}
}//package
Section 304
//Mouth4Color (Mouth4Color)
package {
import flash.display.*;
public dynamic class Mouth4Color extends MovieClip {
}
}//package
Section 305
//Mouth4Highlight (Mouth4Highlight)
package {
import flash.display.*;
public dynamic class Mouth4Highlight extends MovieClip {
}
}//package
Section 306
//Mouth4Overlay (Mouth4Overlay)
package {
import flash.display.*;
public dynamic class Mouth4Overlay extends MovieClip {
}
}//package
Section 307
//Mouth5Color (Mouth5Color)
package {
import flash.display.*;
public dynamic class Mouth5Color extends MovieClip {
}
}//package
Section 308
//Mouth5Highlight (Mouth5Highlight)
package {
import flash.display.*;
public dynamic class Mouth5Highlight extends MovieClip {
}
}//package
Section 309
//Mouth5Overlay (Mouth5Overlay)
package {
import flash.display.*;
public dynamic class Mouth5Overlay extends MovieClip {
}
}//package
Section 310
//Mouth6Color (Mouth6Color)
package {
import flash.display.*;
public dynamic class Mouth6Color extends MovieClip {
}
}//package
Section 311
//Mouth6Highlight (Mouth6Highlight)
package {
import flash.display.*;
public dynamic class Mouth6Highlight extends MovieClip {
}
}//package
Section 312
//Mouth6Overlay (Mouth6Overlay)
package {
import flash.display.*;
public dynamic class Mouth6Overlay extends MovieClip {
}
}//package
Section 313
//MyGamesForGirlsCOM (MyGamesForGirlsCOM)
package {
import flash.display.*;
public dynamic class MyGamesForGirlsCOM extends MovieClip {
}
}//package
Section 314
//MyGamesForGirlsDE (MyGamesForGirlsDE)
package {
import flash.display.*;
public dynamic class MyGamesForGirlsDE extends MovieClip {
}
}//package
Section 315
//MyGamesForGirlsFR (MyGamesForGirlsFR)
package {
import flash.display.*;
public dynamic class MyGamesForGirlsFR extends MovieClip {
}
}//package
Section 316
//MyGamesForGirlsSP (MyGamesForGirlsSP)
package {
import flash.display.*;
public dynamic class MyGamesForGirlsSP extends MovieClip {
}
}//package
Section 317
//OldStyleButtonBackgroundAsset (OldStyleButtonBackgroundAsset)
package {
import flash.display.*;
public dynamic class OldStyleButtonBackgroundAsset extends MovieClip {
}
}//package
Section 318
//OldStyleGlintHighlightAsset (OldStyleGlintHighlightAsset)
package {
import flash.display.*;
public dynamic class OldStyleGlintHighlightAsset extends MovieClip {
}
}//package
Section 319
//OldStyleMouseOverSoundAsset (OldStyleMouseOverSoundAsset)
package {
import flash.media.*;
public dynamic class OldStyleMouseOverSoundAsset extends Sound {
}
}//package
Section 320
//OldStyleMouseOverSoundAsset2 (OldStyleMouseOverSoundAsset2)
package {
import flash.media.*;
public dynamic class OldStyleMouseOverSoundAsset2 extends Sound {
}
}//package
Section 321
//PapAsset (PapAsset)
package {
import flash.media.*;
public dynamic class PapAsset extends Sound {
}
}//package
Section 322
//Portrait1Asset (Portrait1Asset)
package {
import flash.display.*;
public dynamic class Portrait1Asset extends MovieClip {
}
}//package
Section 323
//Portrait2Asset (Portrait2Asset)
package {
import flash.display.*;
public dynamic class Portrait2Asset extends MovieClip {
}
}//package
Section 324
//Portrait3Asset (Portrait3Asset)
package {
import flash.display.*;
public dynamic class Portrait3Asset extends MovieClip {
}
}//package
Section 325
//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 = "boyVampire";
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 cobrand:Sprite;
private var MyGames4GirlsCOMGlintData:Class;
private var CoBrandData:Class;
private var MyGames4GirlsDEGlintData:Class;
private var titleHittest:Sprite;
private var loadText:TextField;
private var background:Sprite;
private var LoadingBarHolderData: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 isCoBranded:Boolean;// = false
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 MyGames4GirlsFRData:Class;
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;
CoBrandData = Preload_CoBrandData;
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);
if (isCoBranded){
cobrand = new CoBrandKibaAsset();
cobrand.scaleX = (cobrand.scaleY = 0.8);
cobrand.x = 5;
cobrand.y = 5;
cobrand.useHandCursor = true;
cobrand.buttonMode = true;
cobrand.addEventListener(MouseEvent.CLICK, onCoBrandClick);
addChild(cobrand);
};
sound = (new BurstData() as Sound);
channel = sound.play(0);
channel.stop();
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onTitleRollOut(_arg1:MouseEvent):void{
Tweener.addTween(title, {scaleX:1, scaleY:1, time:0.5, transition:"easeOutExpo"});
}
private function onButtonMouseOver(_arg1:MouseEvent):void{
glint.gotoAndPlay(1);
}
private function onEnterFrame(_arg1:Event):void{
trace("enter frame");
var _local2:int = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
var _local3:int = ((loadingBarHolder.width - 12) / 100);
loadingBar.width = (_local2 * _local3);
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
loadingBar.width = (loadingBarHolder.width - 12);
loadingText.visible = false;
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
convertToButton();
};
if (loadingText != null){
if (_local2 > 10){
loadingText.x = ((loadingBar.width + loadingBar.x) - 40);
};
loadingText.text = (String(_local2) + "%");
};
}
private function onButtonMouseClick(_arg1:MouseEvent):void{
nextFrame();
var _local2:Class = (getDefinitionByName("Main") as Class);
addChild((new (_local2) as DisplayObject));
emitter1.stop();
emitter2.stop();
emitter3.stop();
ParticleCreator2D(emitter1.particleFactory).clearAllParticles();
ParticleCreator2D(emitter2.particleFactory).clearAllParticles();
ParticleCreator2D(emitter3.particleFactory).clearAllParticles();
render1.removeEmitter(emitter1);
render1.removeEmitter(emitter2);
render2.removeEmitter(emitter3);
removeChild(render1);
removeChild(render2);
removeChild(title);
removeChild(girls);
removeChild(loadingBar);
removeChild(loadingBarHolder);
removeChild(background);
removeChild(buttonText);
removeChild(loadingText);
removeChild(glint);
removeChild(titleGlint);
title = null;
girls = null;
loadingBar = null;
loadingBarHolder = null;
background = null;
buttonText = null;
loadingText = null;
glint = null;
render1 = null;
render2 = null;
titleGlint = null;
emitter1 = null;
emitter2 = null;
emitter3 = null;
}
private function addGlint():void{
channel = sound.play(0, 0);
emitter2.start();
glint = (new Glint() as MovieClip);
glint.gotoAndStop(0);
glint.x = (728 / 2);
glint.y = (loadingBar.y + 25);
glint.mouseEnabled = false;
glint.mouseChildren = false;
addChild(glint);
}
private function onTitleRollOver(_arg1:MouseEvent):void{
Tweener.addTween(title, {scaleX:1.1, scaleY:1.1, time:0.5, transition:"easeOutExpo"});
}
private function onCoBrandClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.kibagames.com/"), "_blank");
}
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 326
//Preload_BackgroundData (Preload_BackgroundData)
package {
import mx.core.*;
public class Preload_BackgroundData extends SpriteAsset {
}
}//package
Section 327
//Preload_BurstData (Preload_BurstData)
package {
import mx.core.*;
public class Preload_BurstData extends SoundAsset {
}
}//package
Section 328
//Preload_CoBrandData (Preload_CoBrandData)
package {
import mx.core.*;
public class Preload_CoBrandData extends SpriteAsset {
}
}//package
Section 329
//Preload_GirlsHeadsData (Preload_GirlsHeadsData)
package {
import mx.core.*;
public class Preload_GirlsHeadsData extends SpriteAsset {
}
}//package
Section 330
//Preload_Glint (Preload_Glint)
package {
import mx.core.*;
public class Preload_Glint extends MovieClipAsset {
}
}//package
Section 331
//Preload_LoadingBarData (Preload_LoadingBarData)
package {
import mx.core.*;
public class Preload_LoadingBarData extends SpriteAsset {
}
}//package
Section 332
//Preload_LoadingBarHolderData (Preload_LoadingBarHolderData)
package {
import mx.core.*;
public class Preload_LoadingBarHolderData extends SpriteAsset {
}
}//package
Section 333
//Preload_MyGames4GirlsCOMData (Preload_MyGames4GirlsCOMData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsCOMData extends SpriteAsset {
}
}//package
Section 334
//Preload_MyGames4GirlsCOMGlintData (Preload_MyGames4GirlsCOMGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsCOMGlintData extends MovieClipAsset {
}
}//package
Section 335
//Preload_MyGames4GirlsDEData (Preload_MyGames4GirlsDEData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsDEData extends SpriteAsset {
}
}//package
Section 336
//Preload_MyGames4GirlsDEGlintData (Preload_MyGames4GirlsDEGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsDEGlintData extends MovieClipAsset {
}
}//package
Section 337
//Preload_MyGames4GirlsFRData (Preload_MyGames4GirlsFRData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsFRData extends SpriteAsset {
}
}//package
Section 338
//Preload_MyGames4GirlsFRGlintData (Preload_MyGames4GirlsFRGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsFRGlintData extends MovieClipAsset {
}
}//package
Section 339
//Preload_MyGames4GirlsSPData (Preload_MyGames4GirlsSPData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsSPData extends SpriteAsset {
}
}//package
Section 340
//Preload_MyGames4GirlsSPGlintData (Preload_MyGames4GirlsSPGlintData)
package {
import mx.core.*;
public class Preload_MyGames4GirlsSPGlintData extends MovieClipAsset {
}
}//package
Section 341
//Preload_PlayDEData (Preload_PlayDEData)
package {
import mx.core.*;
public class Preload_PlayDEData extends SpriteAsset {
}
}//package
Section 342
//Preload_PlayENData (Preload_PlayENData)
package {
import mx.core.*;
public class Preload_PlayENData extends SpriteAsset {
}
}//package
Section 343
//Preload_PlayFRData (Preload_PlayFRData)
package {
import mx.core.*;
public class Preload_PlayFRData extends SpriteAsset {
}
}//package
Section 344
//Preload_PlaySPData (Preload_PlaySPData)
package {
import mx.core.*;
public class Preload_PlaySPData extends SpriteAsset {
}
}//package
Section 345
//Preload_Stars1Data (Preload_Stars1Data)
package {
import mx.core.*;
public class Preload_Stars1Data extends SpriteAsset {
}
}//package
Section 346
//PreloaderBackgroundAsset (PreloaderBackgroundAsset)
package {
import flash.display.*;
public dynamic class PreloaderBackgroundAsset extends MovieClip {
}
}//package
Section 347
//RightHand1Asset1 (RightHand1Asset1)
package {
import flash.display.*;
public dynamic class RightHand1Asset1 extends MovieClip {
}
}//package
Section 348
//RightHand1Color (RightHand1Color)
package {
import flash.display.*;
public dynamic class RightHand1Color extends MovieClip {
}
}//package
Section 349
//RightHand1Highlight (RightHand1Highlight)
package {
import flash.display.*;
public dynamic class RightHand1Highlight extends MovieClip {
}
}//package
Section 350
//RightHand1Overlay (RightHand1Overlay)
package {
import flash.display.*;
public dynamic class RightHand1Overlay extends MovieClip {
}
}//package
Section 351
//RightHand2Asset1 (RightHand2Asset1)
package {
import flash.display.*;
public dynamic class RightHand2Asset1 extends MovieClip {
}
}//package
Section 352
//RightHand2Color (RightHand2Color)
package {
import flash.display.*;
public dynamic class RightHand2Color extends MovieClip {
}
}//package
Section 353
//RightHand2Highlight (RightHand2Highlight)
package {
import flash.display.*;
public dynamic class RightHand2Highlight extends MovieClip {
}
}//package
Section 354
//RightHand2Overlay (RightHand2Overlay)
package {
import flash.display.*;
public dynamic class RightHand2Overlay extends MovieClip {
}
}//package
Section 355
//RightHand3Asset1 (RightHand3Asset1)
package {
import flash.display.*;
public dynamic class RightHand3Asset1 extends MovieClip {
}
}//package
Section 356
//RightHand3Asset2 (RightHand3Asset2)
package {
import flash.display.*;
public dynamic class RightHand3Asset2 extends MovieClip {
}
}//package
Section 357
//RightHand3Color (RightHand3Color)
package {
import flash.display.*;
public dynamic class RightHand3Color extends MovieClip {
}
}//package
Section 358
//RightHand3Highlight (RightHand3Highlight)
package {
import flash.display.*;
public dynamic class RightHand3Highlight extends MovieClip {
}
}//package
Section 359
//RightHand3Overlay (RightHand3Overlay)
package {
import flash.display.*;
public dynamic class RightHand3Overlay extends MovieClip {
}
}//package
Section 360
//RightHand4Asset1 (RightHand4Asset1)
package {
import flash.display.*;
public dynamic class RightHand4Asset1 extends MovieClip {
}
}//package
Section 361
//RightHand4Color (RightHand4Color)
package {
import flash.display.*;
public dynamic class RightHand4Color extends MovieClip {
}
}//package
Section 362
//RightHand4Highlight (RightHand4Highlight)
package {
import flash.display.*;
public dynamic class RightHand4Highlight extends MovieClip {
}
}//package
Section 363
//RightHand4Overlay (RightHand4Overlay)
package {
import flash.display.*;
public dynamic class RightHand4Overlay extends MovieClip {
}
}//package
Section 364
//RightKnee1Asset1 (RightKnee1Asset1)
package {
import flash.display.*;
public dynamic class RightKnee1Asset1 extends MovieClip {
}
}//package
Section 365
//RightKnee1Color (RightKnee1Color)
package {
import flash.display.*;
public dynamic class RightKnee1Color extends MovieClip {
}
}//package
Section 366
//RightKnee1Highlight (RightKnee1Highlight)
package {
import flash.display.*;
public dynamic class RightKnee1Highlight extends MovieClip {
}
}//package
Section 367
//RightKnee1Overlay (RightKnee1Overlay)
package {
import flash.display.*;
public dynamic class RightKnee1Overlay extends MovieClip {
}
}//package
Section 368
//SectionClickAsset (SectionClickAsset)
package {
import flash.media.*;
public dynamic class SectionClickAsset extends Sound {
}
}//package
Section 369
//SoundOff (SoundOff)
package {
import flash.display.*;
public dynamic class SoundOff extends MovieClip {
}
}//package
Section 370
//SoundOn (SoundOn)
package {
import flash.display.*;
public dynamic class SoundOn extends MovieClip {
}
}//package
Section 371
//Star10Asset (Star10Asset)
package {
import flash.display.*;
public dynamic class Star10Asset extends MovieClip {
}
}//package
Section 372
//Star4Asset (Star4Asset)
package {
import flash.display.*;
public dynamic class Star4Asset extends MovieClip {
}
}//package
Section 373
//Star5Asset (Star5Asset)
package {
import flash.display.*;
public dynamic class Star5Asset extends MovieClip {
}
}//package
Section 374
//Star6Asset (Star6Asset)
package {
import flash.display.*;
public dynamic class Star6Asset extends MovieClip {
}
}//package
Section 375
//Star7Asset (Star7Asset)
package {
import flash.display.*;
public dynamic class Star7Asset extends MovieClip {
}
}//package
Section 376
//Star8Asset (Star8Asset)
package {
import flash.display.*;
public dynamic class Star8Asset extends MovieClip {
}
}//package
Section 377
//Star9Asset (Star9Asset)
package {
import flash.display.*;
public dynamic class Star9Asset extends MovieClip {
}
}//package
Section 378
//ThemeTuneAsset (ThemeTuneAsset)
package {
import flash.media.*;
public dynamic class ThemeTuneAsset extends Sound {
}
}//package
Section 379
//TinkleSoundAsset (TinkleSoundAsset)
package {
import flash.media.*;
public dynamic class TinkleSoundAsset extends Sound {
}
}//package
Section 380
//ToolTipBackground (ToolTipBackground)
package {
import flash.display.*;
public dynamic class ToolTipBackground extends MovieClip {
}
}//package
Section 381
//ToolTipWedge (ToolTipWedge)
package {
import flash.display.*;
public dynamic class ToolTipWedge extends MovieClip {
}
}//package
Section 382
//TrebuchetMSFontAsset (TrebuchetMSFontAsset)
package {
import flash.text.*;
public dynamic class TrebuchetMSFontAsset extends Font {
}
}//package
Section 383
//XMLFeedButton (XMLFeedButton)
package {
import flash.display.*;
public dynamic class XMLFeedButton extends MovieClip {
}
}//package
Section 384
//XMLFeedHighlight (XMLFeedHighlight)
package {
import flash.display.*;
public dynamic class XMLFeedHighlight extends MovieClip {
}
}//package
Section 385
//XMLFeedIcon (XMLFeedIcon)
package {
import flash.display.*;
public dynamic class XMLFeedIcon extends MovieClip {
}
}//package
Section 386
//XMLRotatorBackgroundAsset (XMLRotatorBackgroundAsset)
package {
import flash.display.*;
public dynamic class XMLRotatorBackgroundAsset extends MovieClip {
}
}//package
Section 387
//XMLRotatorColorAsset (XMLRotatorColorAsset)
package {
import flash.display.*;
public dynamic class XMLRotatorColorAsset extends MovieClip {
}
}//package
Section 388
//XMLRotatorForegroundAsset (XMLRotatorForegroundAsset)
package {
import flash.display.*;
public dynamic class XMLRotatorForegroundAsset extends MovieClip {
}
}//package
Section 389
//XMLRotatorFrameAsset (XMLRotatorFrameAsset)
package {
import flash.display.*;
public dynamic class XMLRotatorFrameAsset extends MovieClip {
}
}//package
Section 390
//XMLRotatorGirlsAsset (XMLRotatorGirlsAsset)
package {
import flash.display.*;
public dynamic class XMLRotatorGirlsAsset extends MovieClip {
}
}//package