Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
var _local4:uint;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
}
}//package caurina.transitions
Section 2
//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 3
//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 4
//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 5
//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 6
//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 7
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.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 _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.31.71");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.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(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.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(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
var _local12:Object = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 8
//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 9
//ColorMatrix (com.gskinner.geom.ColorMatrix)
package com.gskinner.geom {
public dynamic class ColorMatrix extends Array {
private static const IDENTITY_MATRIX:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
private static const LENGTH:Number = IDENTITY_MATRIX.length;
private static const DELTA_INDEX:Array = [0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.2, 0.21, 0.22, 0.24, 0.25, 0.27, 0.28, 0.3, 0.32, 0.34, 0.36, 0.38, 0.4, 0.42, 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, 0.71, 0.74, 0.77, 0.8, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10];
public function ColorMatrix(_arg1:Array=null){
_arg1 = fixMatrix(_arg1);
copyMatrix(((_arg1.length)==LENGTH) ? _arg1 : IDENTITY_MATRIX);
}
public function adjustBrightness(_arg1:Number):void{
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
multiplyMatrix([1, 0, 0, 0, _arg1, 0, 1, 0, 0, _arg1, 0, 0, 1, 0, _arg1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function adjustSaturation(_arg1:Number):void{
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
var _local2:Number = (1 + ((_arg1)>0) ? ((3 * _arg1) / 100) : (_arg1 / 100));
var _local3:Number = 0.3086;
var _local4:Number = 0.6094;
var _local5:Number = 0.082;
multiplyMatrix([((_local3 * (1 - _local2)) + _local2), (_local4 * (1 - _local2)), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), ((_local4 * (1 - _local2)) + _local2), (_local5 * (1 - _local2)), 0, 0, (_local3 * (1 - _local2)), (_local4 * (1 - _local2)), ((_local5 * (1 - _local2)) + _local2), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
protected function multiplyMatrix(_arg1:Array):void{
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local2:Array = [];
var _local3:uint;
while (_local3 < 5) {
_local4 = 0;
while (_local4 < 5) {
_local2[_local4] = this[(_local4 + (_local3 * 5))];
_local4++;
};
_local4 = 0;
while (_local4 < 5) {
_local5 = 0;
_local6 = 0;
while (_local6 < 5) {
_local5 = (_local5 + (_arg1[(_local4 + (_local6 * 5))] * _local2[_local6]));
_local6++;
};
this[(_local4 + (_local3 * 5))] = _local5;
_local4++;
};
_local3++;
};
}
protected function cleanValue(_arg1:Number, _arg2:Number):Number{
return (Math.min(_arg2, Math.max(-(_arg2), _arg1)));
}
public function adjustHue(_arg1:Number):void{
_arg1 = ((cleanValue(_arg1, 180) / 180) * Math.PI);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
var _local2:Number = Math.cos(_arg1);
var _local3:Number = Math.sin(_arg1);
var _local4:Number = 0.213;
var _local5:Number = 0.715;
var _local6:Number = 0.072;
multiplyMatrix([((_local4 + (_local2 * (1 - _local4))) + (_local3 * -(_local4))), ((_local5 + (_local2 * -(_local5))) + (_local3 * -(_local5))), ((_local6 + (_local2 * -(_local6))) + (_local3 * (1 - _local6))), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * 0.143)), ((_local5 + (_local2 * (1 - _local5))) + (_local3 * 0.14)), ((_local6 + (_local2 * -(_local6))) + (_local3 * -0.283)), 0, 0, ((_local4 + (_local2 * -(_local4))) + (_local3 * -((1 - _local4)))), ((_local5 + (_local2 * -(_local5))) + (_local3 * _local5)), ((_local6 + (_local2 * (1 - _local6))) + (_local3 * _local6)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function toString():String{
return ((("ColorMatrix [ " + this.join(" , ")) + " ]"));
}
protected function fixMatrix(_arg1:Array=null):Array{
if (_arg1 == null){
return (IDENTITY_MATRIX);
};
if ((_arg1 is ColorMatrix)){
_arg1 = _arg1.slice(0);
};
if (_arg1.length < LENGTH){
_arg1 = _arg1.slice(0, _arg1.length).concat(IDENTITY_MATRIX.slice(_arg1.length, LENGTH));
} else {
if (_arg1.length > LENGTH){
_arg1 = _arg1.slice(0, LENGTH);
};
};
return (_arg1);
}
public function reset():void{
var _local1:uint;
while (_local1 < LENGTH) {
this[_local1] = IDENTITY_MATRIX[_local1];
_local1++;
};
}
public function adjustContrast(_arg1:Number):void{
var _local2:Number;
_arg1 = cleanValue(_arg1, 100);
if ((((_arg1 == 0)) || (isNaN(_arg1)))){
return;
};
if (_arg1 < 0){
_local2 = (127 + ((_arg1 / 100) * 127));
} else {
_local2 = (_arg1 % 1);
if (_local2 == 0){
_local2 = DELTA_INDEX[_arg1];
} else {
_local2 = ((DELTA_INDEX[(_arg1 << 0)] * (1 - _local2)) + (DELTA_INDEX[((_arg1 << 0) + 1)] * _local2));
};
_local2 = ((_local2 * 127) + 127);
};
multiplyMatrix([(_local2 / 127), 0, 0, 0, (0.5 * (127 - _local2)), 0, (_local2 / 127), 0, 0, (0.5 * (127 - _local2)), 0, 0, (_local2 / 127), 0, (0.5 * (127 - _local2)), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
}
public function adjustColor(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
adjustHue(_arg4);
adjustContrast(_arg2);
adjustBrightness(_arg1);
adjustSaturation(_arg3);
}
protected function copyMatrix(_arg1:Array):void{
var _local2:Number = LENGTH;
var _local3:uint;
while (_local3 < _local2) {
this[_local3] = _arg1[_local3];
_local3++;
};
}
public function concat(_arg1:Array):void{
_arg1 = fixMatrix(_arg1);
if (_arg1.length != LENGTH){
return;
};
multiplyMatrix(_arg1);
}
public function clone():ColorMatrix{
return (new ColorMatrix(this));
}
public function toArray():Array{
return (slice(0, 20));
}
}
}//package com.gskinner.geom
Section 10
//dialogfinal_473 (stylish_fla.dialogfinal_473)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class dialogfinal_473 extends MovieClip {
public function dialogfinal_473(){
addFrameScript(0, frame1, 80, frame81, 160, frame161, 239, frame240);
}
function frame240(){
stop();
CEnding.GetInstance().finishDialog();
}
function frame1(){
CEnding.GetInstance().cewek.mulut.gotoAndPlay(2);
}
function frame81(){
CEnding.GetInstance().cowok.mulut.gotoAndPlay(2);
CEnding.GetInstance().cewek.mulut.gotoAndStop(1);
}
function frame161(){
CEnding.GetInstance().cewek.mulut.gotoAndPlay(2);
CEnding.GetInstance().cowok.mulut.gotoAndStop(1);
}
}
}//package stylish_fla
Section 11
//framechoosestyle_347 (stylish_fla.framechoosestyle_347)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class framechoosestyle_347 extends MovieClip {
public var cewek:MovieClip;
public function framechoosestyle_347(){
addFrameScript(0, frame1, 49, frame50);
}
function frame50(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 12
//framesamplemodel_317 (stylish_fla.framesamplemodel_317)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class framesamplemodel_317 extends MovieClip {
public var cewek:MovieClip;
public function framesamplemodel_317(){
addFrameScript(0, frame1, 49, frame50);
}
function frame50(){
gotoAndPlay(2);
}
function frame1(){
stop();
cewek.rambutKanan1.style.gotoAndStop(Data.sampleCewek[(CGame.GetInstance().choosenStyle - 1)].style1);
cewek.rambutKanan2.style.gotoAndStop(Data.sampleCewek[(CGame.GetInstance().choosenStyle - 1)].style2);
cewek.rambutKanan3.style.gotoAndStop(Data.sampleCewek[(CGame.GetInstance().choosenStyle - 1)].style3);
cewek.rambutKiri1.style.gotoAndStop(Data.sampleCewek[(CGame.GetInstance().choosenStyle - 1)].style1);
cewek.rambutKiri2.style.gotoAndStop(Data.sampleCewek[(CGame.GetInstance().choosenStyle - 1)].style2);
cewek.rambutKiri3.style.gotoAndStop(Data.sampleCewek[(CGame.GetInstance().choosenStyle - 1)].style3);
}
}
}//package stylish_fla
Section 13
//greatgirlsgames_full_mc_1 (stylish_fla.greatgirlsgames_full_mc_1)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class greatgirlsgames_full_mc_1 extends MovieClip {
public var linkBTN:MovieClip;
public var same_ct:int;
public var loader_txt:MovieClip;
public var url:String;
public var BYTES_TOTAL:int;
public var request:URLRequest;
public var temp_loaded:int;
public function greatgirlsgames_full_mc_1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
stop();
}
function frame1(){
stop();
this.parent.stop();
loader_txt.bar.scaleX = 0;
BYTES_TOTAL = 399832;
trace(("BYTES TOTAL : " + stage.loaderInfo.bytesTotal));
this.addEventListener(Event.ENTER_FRAME, preloader);
temp_loaded = -777;
same_ct = 0;
url = "http://www.greatgirlsgames.com/?utm_campaign=stylish_date&utm_source=stylish_date";
request = new URLRequest(url);
linkBTN.addEventListener(MouseEvent.CLICK, clickGGG);
linkBTN.buttonMode = true;
}
public function preloader(_arg1:Event):void{
var _local4:*;
if (BYTES_TOTAL == 0){
_local4 = stage.loaderInfo.bytesTotal;
} else {
_local4 = BYTES_TOTAL;
};
var _local2:* = stage.loaderInfo.bytesLoaded;
if (_local2 == temp_loaded){
same_ct++;
} else {
same_ct = 0;
};
var _local3:int = ((_local2 * 100) / _local4);
_local3 = ((_local3 > 100)) ? 100 : _local3;
if ((((same_ct >= 30)) && ((BYTES_TOTAL > 0)))){
_local3 = 100;
};
loader_txt.percent_text.text = (String(_local3) + "%");
loader_txt.bar.scaleX = (_local3 / 100);
temp_loaded = _local2;
if ((((((((BYTES_TOTAL == 0)) && ((_local2 >= _local4)))) && ((same_ct >= 30)))) || ((((BYTES_TOTAL > 0)) && ((same_ct >= 60)))))){
removeEventListener(Event.ENTER_FRAME, preloader);
gotoAndStop(2);
};
}
public function clickGGG(_arg1:MouseEvent){
var e = _arg1;
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
}
}//package stylish_fla
Section 14
//greatgirlsgames_intro_7 (stylish_fla.greatgirlsgames_intro_7)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class greatgirlsgames_intro_7 extends MovieClip {
public var ss:SS;
public var d1:DOT1;
public var d2:DOT2;
public var wink:WINK;
public var d3:DOT3;
public function greatgirlsgames_intro_7(){
addFrameScript(0, frame1, 9, frame10, 14, frame15, 19, frame20, 59, frame60, 149, frame150);
}
function frame1(){
stop();
d1 = new DOT1();
d2 = new DOT2();
d3 = new DOT3();
ss = new SS();
wink = new WINK();
gotoAndPlay(2);
}
function frame150(){
SoundMixer.stopAll();
MovieClip(this.parent.parent).gotoAndStop(2);
}
function frame20(){
d3.play();
ss.play();
}
function frame10(){
d2.play();
}
function frame15(){
d1.play();
}
function frame60(){
wink.play();
}
}
}//package stylish_fla
Section 15
//greatgirlsgames_text_ani_412 (stylish_fla.greatgirlsgames_text_ani_412)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class greatgirlsgames_text_ani_412 extends MovieClip {
public function greatgirlsgames_text_ani_412(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package stylish_fla
Section 16
//greatgirlsgames_total_406 (stylish_fla.greatgirlsgames_total_406)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class greatgirlsgames_total_406 extends MovieClip {
public var request:URLRequest;
public var url:String;
public var btn:MovieClip;
public function greatgirlsgames_total_406(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
url = "http://www.greatgirlsgames.com/?utm_campaign=stylish_date&utm_source=stylish_date";
request = new URLRequest(url);
this.buttonMode = true;
btn.addEventListener(MouseEvent.MOUSE_OVER, rollover);
btn.addEventListener(MouseEvent.CLICK, clickit);
stop();
}
function frame2(){
stop();
}
public function rollout(_arg1:MouseEvent){
btn.removeEventListener(MouseEvent.MOUSE_OUT, rollout);
btn.addEventListener(MouseEvent.MOUSE_OVER, rollover);
this.gotoAndStop(1);
}
public function clickit(_arg1:MouseEvent){
var e = _arg1;
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function rollover(_arg1:MouseEvent){
btn.removeEventListener(MouseEvent.MOUSE_OVER, rollover);
btn.addEventListener(MouseEvent.MOUSE_OUT, rollout);
this.gotoAndStop(2);
}
}
}//package stylish_fla
Section 17
//mulutcewek_263 (stylish_fla.mulutcewek_263)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mulutcewek_263 extends MovieClip {
public function mulutcewek_263(){
addFrameScript(0, frame1, 40, frame41);
}
function frame41(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 18
//mulutcowok_462 (stylish_fla.mulutcowok_462)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class mulutcowok_462 extends MovieClip {
public function mulutcowok_462(){
addFrameScript(0, frame1, 40, frame41);
}
function frame41(){
gotoAndPlay(2);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 19
//MusicBtn_341 (stylish_fla.MusicBtn_341)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class MusicBtn_341 extends MovieClip {
public function MusicBtn_341(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 20
//QualityBtn_342 (stylish_fla.QualityBtn_342)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class QualityBtn_342 extends MovieClip {
public function QualityBtn_342(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 21
//R_103 (stylish_fla.R_103)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_103 extends MovieClip {
public function R_103(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 22
//R_111 (stylish_fla.R_111)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_111 extends MovieClip {
public function R_111(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 23
//R_114 (stylish_fla.R_114)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_114 extends MovieClip {
public function R_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 24
//R_159 (stylish_fla.R_159)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_159 extends MovieClip {
public function R_159(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 25
//R_161 (stylish_fla.R_161)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_161 extends MovieClip {
public function R_161(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 26
//R_162 (stylish_fla.R_162)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_162 extends MovieClip {
public function R_162(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 27
//R_171 (stylish_fla.R_171)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_171 extends MovieClip {
public function R_171(){
addFrameScript(0, frame1, 29, frame30);
}
function frame30(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 28
//R_172 (stylish_fla.R_172)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_172 extends MovieClip {
public function R_172(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 29
//R_174 (stylish_fla.R_174)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_174 extends MovieClip {
public function R_174(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 30
//R_181 (stylish_fla.R_181)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_181 extends MovieClip {
public function R_181(){
addFrameScript(0, frame1, 29, frame30);
}
function frame30(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 31
//R_184 (stylish_fla.R_184)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_184 extends MovieClip {
public function R_184(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 32
//R_199 (stylish_fla.R_199)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_199 extends MovieClip {
public function R_199(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 33
//R_216 (stylish_fla.R_216)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_216 extends MovieClip {
public function R_216(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 34
//R_222 (stylish_fla.R_222)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_222 extends MovieClip {
public function R_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 35
//R_23 (stylish_fla.R_23)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_23 extends MovieClip {
public function R_23(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 36
//R_271 (stylish_fla.R_271)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_271 extends MovieClip {
public function R_271(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 37
//R_273 (stylish_fla.R_273)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_273 extends MovieClip {
public function R_273(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 38
//R_274 (stylish_fla.R_274)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_274 extends MovieClip {
public function R_274(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 39
//R_277 (stylish_fla.R_277)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_277 extends MovieClip {
public function R_277(){
addFrameScript(0, frame1, 29, frame30);
}
function frame30(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 40
//R_279 (stylish_fla.R_279)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_279 extends MovieClip {
public function R_279(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 41
//R_281 (stylish_fla.R_281)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_281 extends MovieClip {
public function R_281(){
addFrameScript(0, frame1, 28, frame29);
}
function frame29(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 42
//R_285 (stylish_fla.R_285)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_285 extends MovieClip {
public function R_285(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 43
//R_294 (stylish_fla.R_294)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_294 extends MovieClip {
public function R_294(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 44
//R_298 (stylish_fla.R_298)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_298 extends MovieClip {
public function R_298(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 45
//R_299 (stylish_fla.R_299)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_299 extends MovieClip {
public function R_299(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 46
//R_300 (stylish_fla.R_300)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_300 extends MovieClip {
public function R_300(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 47
//R_303 (stylish_fla.R_303)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_303 extends MovieClip {
public function R_303(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 48
//R_305 (stylish_fla.R_305)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_305 extends MovieClip {
public function R_305(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 49
//R_309 (stylish_fla.R_309)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_309 extends MovieClip {
public function R_309(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 50
//R_312 (stylish_fla.R_312)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_312 extends MovieClip {
public function R_312(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 51
//R_36 (stylish_fla.R_36)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_36 extends MovieClip {
public function R_36(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 52
//R_41 (stylish_fla.R_41)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_41 extends MovieClip {
public function R_41(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 53
//R_55 (stylish_fla.R_55)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_55 extends MovieClip {
public function R_55(){
addFrameScript(0, frame1, 29, frame30);
}
function frame30(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 54
//R_58 (stylish_fla.R_58)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_58 extends MovieClip {
public function R_58(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 55
//R_60 (stylish_fla.R_60)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_60 extends MovieClip {
public function R_60(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 56
//R_61 (stylish_fla.R_61)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_61 extends MovieClip {
public function R_61(){
addFrameScript(0, frame1, 39, frame40);
}
function frame40(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 57
//R_67 (stylish_fla.R_67)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_67 extends MovieClip {
public function R_67(){
addFrameScript(0, frame1, 24, frame25);
}
function frame25(){
stop();
CGame.GetInstance().finishAnimasi(this.parent.name);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 58
//R_70 (stylish_fla.R_70)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_70 extends MovieClip {
public function R_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 59
//R_87 (stylish_fla.R_87)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_87 extends MovieClip {
public function R_87(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 60
//R_96 (stylish_fla.R_96)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class R_96 extends MovieClip {
public function R_96(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package stylish_fla
Section 61
//rambutkanan1animasi_297 (stylish_fla.rambutkanan1animasi_297)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rambutkanan1animasi_297 extends MovieClip {
public var mc:MovieClip;
public function rambutkanan1animasi_297(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 5, frame6, 6, frame7);
}
public function playAnimasi(){
if (this.visible){
mc.gotoAndPlay(2);
} else {
mc.gotoAndStop(1);
};
}
function frame1(){
playAnimasi();
}
function frame2(){
playAnimasi();
}
function frame3(){
playAnimasi();
}
function frame4(){
playAnimasi();
}
function frame6(){
playAnimasi();
}
function frame7(){
playAnimasi();
}
}
}//package stylish_fla
Section 62
//rambutkanan2animasi_158 (stylish_fla.rambutkanan2animasi_158)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rambutkanan2animasi_158 extends MovieClip {
public var mc:MovieClip;
public function rambutkanan2animasi_158(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 5, frame6, 6, frame7, 7, frame8);
}
public function playAnimasi(){
if (this.visible){
mc.gotoAndPlay(2);
} else {
mc.gotoAndStop(1);
};
}
function frame1(){
playAnimasi();
}
function frame2(){
playAnimasi();
}
function frame3(){
playAnimasi();
}
function frame4(){
playAnimasi();
}
function frame6(){
playAnimasi();
}
function frame7(){
playAnimasi();
}
function frame8(){
playAnimasi();
}
}
}//package stylish_fla
Section 63
//rambutkanan3animasi_22 (stylish_fla.rambutkanan3animasi_22)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rambutkanan3animasi_22 extends MovieClip {
public var mc:MovieClip;
public function rambutkanan3animasi_22(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 9, frame10);
}
function frame1(){
playAnimasi();
}
function frame2(){
playAnimasi();
}
function frame3(){
playAnimasi();
}
function frame4(){
playAnimasi();
}
function frame5(){
playAnimasi();
}
function frame6(){
playAnimasi();
}
function frame7(){
playAnimasi();
}
function frame10(){
playAnimasi();
}
public function playAnimasi(){
if (this.visible){
mc.gotoAndPlay(2);
} else {
mc.gotoAndStop(1);
};
}
}
}//package stylish_fla
Section 64
//rambutkiri1animasi_270 (stylish_fla.rambutkiri1animasi_270)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class rambutkiri1animasi_270 extends MovieClip {
public var mc:MovieClip;
public function rambutkiri1animasi_270(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 5, frame6, 6, frame7);
}
public function playAnimasi(){
if (this.visible){
mc.gotoAndPlay(2);
} else {
mc.gotoAndStop(1);
};
}
function frame1(){
playAnimasi();
}
function frame2(){
playAnimasi();
}
function frame3(){
playAnimasi();
}
function frame4(){
playAnimasi();
}
function frame6(){
playAnimasi();
}
function frame7(){
playAnimasi();
}
}
}//package stylish_fla
Section 65
//SFXBtn_343 (stylish_fla.SFXBtn_343)
package stylish_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class SFXBtn_343 extends MovieClip {
public function SFXBtn_343(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
function frame3(){
stop();
}
function frame4(){
stop();
}
}
}//package stylish_fla
Section 66
//bgm (bgm)
package {
import flash.media.*;
public dynamic class bgm extends Sound {
}
}//package
Section 67
//CBannedWin (CBannedWin)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CBannedWin extends MovieClip {
public var mBtn:SimpleButton;
public function CBannedWin(){
addFrameScript(0, frame1);
}
public function GotoSapi(_arg1:MouseEvent){
var _local2:URLRequest = new URLRequest("http://www.lazybanana.com");
navigateToURL(_local2);
}
function frame1(){
mBtn.addEventListener(MouseEvent.MOUSE_DOWN, GotoSapi);
}
}
}//package
Section 68
//CBaseMovieClip (CBaseMovieClip)
package {
import flash.display.*;
import flash.events.*;
public class CBaseMovieClip extends MovieClip {
public var mEventType:String;
public function CBaseMovieClip(_arg1:String){
mEventType = _arg1;
}
public function AddDispatcher():void{
Main.GetInstance().addEventListener(mEventType, Update, false, 0, true);
}
public function Update(_arg1:Event){
}
public function RemoveDispatcher(){
Main.GetInstance().removeEventListener(mEventType, Update);
}
}
}//package
Section 69
//CCircle (CCircle)
package {
import flash.display.*;
public dynamic class CCircle extends MovieClip {
}
}//package
Section 70
//CCredit (CCredit)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CCredit extends MovieClip {
public var mFilter:Array;
public var mClose:MovieClip;
public var mTitle:MovieClip;
public var mLogo:MovieClip;
public function CCredit(){
addFrameScript(0, frame1);
}
public function onMouseUp(_arg1:MouseEvent){
if ((((_arg1.currentTarget.name == "mTitle")) || ((_arg1.currentTarget.name == "mLogo")))){
Global.openWindow();
};
if (_arg1.currentTarget.name == "mClose"){
parent.removeChild(this);
};
}
function frame1(){
if (!mTitle.hasEventListener(MouseEvent.MOUSE_UP)){
mTitle.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mTitle.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
mTitle.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
mTitle.mouseChildren = false;
mTitle.buttonMode = true;
mTitle.useHandCursor = true;
mLogo.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mLogo.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
mLogo.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
mLogo.mouseChildren = false;
mLogo.buttonMode = true;
mLogo.useHandCursor = true;
mClose.addEventListener(MouseEvent.MOUSE_UP, onMouseUp, false, 0, true);
mClose.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
mClose.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
mClose.mouseChildren = false;
mClose.buttonMode = true;
mClose.useHandCursor = true;
};
}
public function onMouseOut(_arg1:MouseEvent){
if (_arg1.currentTarget.name == "mClose"){
_arg1.currentTarget.filters = mFilter;
return;
};
_arg1.currentTarget.filters = [];
}
public function onMouseOver(_arg1:MouseEvent){
var _local2:GlowFilter = new GlowFilter(0x9900, 1, 5, 5, 3);
if (_arg1.currentTarget.name == "mClose"){
mFilter = _arg1.currentTarget.filters.slice(0, 1);
_arg1.currentTarget.filters = mFilter.concat([_local2]);
return;
};
_arg1.currentTarget.filters = [_local2];
}
}
}//package
Section 71
//CEnding (CEnding)
package {
import com.gskinner.geom.*;
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
public class CEnding extends CBaseMovieClip {
public var cewek:MovieClip;
public var dialog:MovieClip;
public var btnMore:MovieClip;
public var cowok:MovieClip;
public var newMask:MovieClip;
public var hati:MovieClip;
public var btnPlay:MovieClip;
public var choosenStyle:int;
private static var CEndingGlobal:CEnding;
public function CEnding(){
addFrameScript(0, frame1);
super("update");
CEndingGlobal = this;
choosenStyle = Main.GetInstance().choosenStyle;
dialog.gotoAndStop(1);
dialog.visible = false;
hati.visible = false;
btnPlay.visible = false;
btnMore.visible = false;
setCewek();
opening();
cewek.x = -50;
btnPlay.useHandCursor = true;
btnPlay.buttonMode = true;
btnPlay.addEventListener(MouseEvent.CLICK, onPlayAgain, false, 0, true);
btnPlay.addEventListener(MouseEvent.MOUSE_OVER, showGlow, false, 0, true);
btnPlay.addEventListener(MouseEvent.MOUSE_OUT, hideGlow, false, 0, true);
btnMore.useHandCursor = true;
btnMore.buttonMode = true;
btnMore.addEventListener(MouseEvent.CLICK, onMoreGame, false, 0, true);
btnMore.addEventListener(MouseEvent.MOUSE_OVER, showGlow, false, 0, true);
btnMore.addEventListener(MouseEvent.MOUSE_OUT, hideGlow, false, 0, true);
}
private function opening():void{
newMask = new CCircle();
newMask.x = 400;
newMask.y = 300;
newMask.scaleX = 0;
newMask.scaleY = 0;
addChild(newMask);
this.mask = newMask;
Tweener.addTween(newMask, {time:0.5, scaleX:1, scaleY:1, transition:"linear", onComplete:removeNewMask});
}
private function showHati(){
hati.visible = true;
btnPlay.visible = true;
btnMore.visible = true;
}
private function removeNewMask(){
this.mask = null;
removeChild(newMask);
Tweener.addTween(cewek, {time:0.25, x:180, transition:"linear", onComplete:animasiCeweGetar, onCompleteParams:[1]});
}
private function animasiCeweGetar(_arg1:int){
if (_arg1 == 1){
Tweener.addTween(cewek, {time:0.1, rotation:(cewek.rotation + 5), transition:"linear", onComplete:animasiCeweGetar, onCompleteParams:[2]});
} else {
if (_arg1 == 2){
Tweener.addTween(cewek, {time:0.1, rotation:(cewek.rotation - 8), transition:"linear", onComplete:animasiCeweGetar, onCompleteParams:[3]});
} else {
if (_arg1 == 3){
Tweener.addTween(cewek, {time:0.1, rotation:(cewek.rotation + 3), transition:"linear", onComplete:beginDialog});
};
};
};
}
function frame1(){
cewek.rambutKanan1.style.gotoAndStop(Data.sampleCewek[(CEnding.GetInstance().choosenStyle - 1)].style1);
cewek.rambutKanan2.style.gotoAndStop(Data.sampleCewek[(CEnding.GetInstance().choosenStyle - 1)].style2);
cewek.rambutKanan3.style.gotoAndStop(Data.sampleCewek[(CEnding.GetInstance().choosenStyle - 1)].style3);
cewek.rambutKiri1.style.gotoAndStop(Data.sampleCewek[(CEnding.GetInstance().choosenStyle - 1)].style1);
cewek.rambutKiri2.style.gotoAndStop(Data.sampleCewek[(CEnding.GetInstance().choosenStyle - 1)].style2);
cewek.rambutKiri3.style.gotoAndStop(Data.sampleCewek[(CEnding.GetInstance().choosenStyle - 1)].style3);
}
private function onMoreGame(_arg1:MouseEvent):void{
Global.openWindow("http://www.greatgirlsgames.com/?utm_campaign=stylish_date&utm_source=stylish_date");
}
private function beginDialog(){
dialog.visible = true;
dialog.gotoAndPlay(1);
}
private function showGlow(_arg1:MouseEvent):void{
_arg1.currentTarget.scaleX = 1.05;
_arg1.currentTarget.scaleY = 1.05;
_arg1.currentTarget.filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = 10), (blurY = 10), (strength = 5))];
}
private function onPlayAgain(_arg1:MouseEvent):void{
newMask = new CCircle();
newMask.x = 400;
newMask.y = 300;
addChild(newMask);
this.mask = newMask;
Tweener.addTween(newMask, {time:0.5, scaleX:0, scaleY:0, transition:"linear", onComplete:Main.GetInstance().killEnding});
}
private function hideGlow(_arg1:MouseEvent):void{
_arg1.currentTarget.scaleX = 1;
_arg1.currentTarget.scaleY = 1;
_arg1.currentTarget.filters = [];
}
private function cewekFadeOut(_arg1:int){
if (_arg1 == 1){
Tweener.addTween(cewek, {time:0.5, alpha:0, transition:"linear", onComplete:cewekFadeOut, onCompleteParams:[2]});
} else {
if (_arg1 == 2){
cewek.x = 550;
cewek.baju.gotoAndStop(1);
Tweener.addTween(cewek, {time:0.5, alpha:1, transition:"linear", onComplete:showHati});
};
};
}
override public function Update(_arg1:Event){
}
private function setCewek(){
var _local1:ColorMatrix = new ColorMatrix();
_local1.adjustBrightness(Data.sampleCewek[(choosenStyle - 1)].bri);
_local1.adjustSaturation(Data.sampleCewek[(choosenStyle - 1)].sat);
_local1.adjustHue(Data.sampleCewek[(choosenStyle - 1)].hue);
cewek.rambutKanan1.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut1);
cewek.rambutKanan2.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut2);
cewek.rambutKanan3.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut3);
cewek.rambutKiri1.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut1);
cewek.rambutKiri2.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut2);
cewek.rambutKiri3.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut3);
cewek.kepala.gotoAndStop(2);
cewek.baju.gotoAndStop(3);
cewek.rambutKanan1.filters = [new ColorMatrixFilter(_local1)];
cewek.rambutKanan2.filters = [new ColorMatrixFilter(_local1)];
cewek.rambutKanan3.filters = [new ColorMatrixFilter(_local1)];
cewek.rambutKiri1.filters = [new ColorMatrixFilter(_local1)];
cewek.rambutKiri2.filters = [new ColorMatrixFilter(_local1)];
cewek.rambutKiri3.filters = [new ColorMatrixFilter(_local1)];
var _local2 = 1;
while (_local2 <= 3) {
cewek.getChildByName(("animasi_rambutKanan" + _local2)).visible = false;
cewek.getChildByName(("animasi_rambutKanan" + _local2)).gotoAndStop(1);
cewek.getChildByName(("animasi_rambutKiri" + _local2)).visible = false;
cewek.getChildByName(("animasi_rambutKiri" + _local2)).gotoAndStop(1);
_local2++;
};
}
public function finishDialog(){
cewek.mulut.gotoAndStop(1);
cowok.mulut.gotoAndStop(1);
dialog.visible = false;
cewekFadeOut(1);
}
public static function GetInstance():CEnding{
return (CEndingGlobal);
}
}
}//package
Section 72
//CGame (CGame)
package {
import com.gskinner.geom.*;
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
public class CGame extends CBaseMovieClip {
public var indexSetTools:int;
public var btnFinish:MovieClip;
public var target:MovieClip;
public var tool:Array;
public var sample:MovieClip;
public var border:MovieClip;
public var kaca:MovieClip;
public var BlurY:int;// = 5
public var choosenStyle:int;
public var cewek:MovieClip;
public var counterTools:int;
public var kacaKanan:MovieClip;
public var newMask:MovieClip;
public var bg:MovieClip;
public var BlurX:int;// = 5
public var chooseTool:int;
public var btnMore:MovieClip;
public var pickTool:Boolean;
public var BlurDX:int;// = 1
public var BlurDY:int;// = 1
public var hairs:Array;
public var btnNext:MovieClip;
public var kacaKiri:MovieClip;
private static var CGameGlobal:CGame;
public function CGame(){
tool = new Array();
hairs = new Array();
super("update");
CGameGlobal = this;
choosenStyle = Main.GetInstance().choosenStyle;
btnNext.visible = false;
btnFinish.visible = false;
bg.cacheAsBitmap = true;
setRambutDefault();
setSampleCewek();
opening();
setTool();
setEventListener();
}
private function hideGlowButton(_arg1:MouseEvent):void{
_arg1.currentTarget.filters = [];
}
private function animasiSpray(_arg1:MovieClip, _arg2:int){
if (_arg2 == 1){
Tweener.addTween(_arg1, {time:0.25, rotation:(_arg1.rotation - 30), transition:"linear", onComplete:animasiSpray, onCompleteParams:[_arg1, 2]});
} else {
if (_arg2 == 2){
Tweener.addTween(_arg1, {time:0.25, rotation:(_arg1.rotation + 30), transition:"linear", onComplete:animasiSpray, onCompleteParams:[_arg1, 3]});
} else {
if (_arg2 == 3){
Tweener.addTween(_arg1, {time:0.25, rotation:(_arg1.rotation - 30), transition:"linear", onComplete:animasiSpray, onCompleteParams:[_arg1, 4]});
} else {
if (_arg2 == 4){
Tweener.addTween(_arg1, {time:0.25, rotation:(_arg1.rotation + 30), transition:"linear", onComplete:cekColorRambut()});
};
};
};
};
}
private function removeNewMask(){
this.mask = null;
removeChild(newMask);
}
private function onNextTools(_arg1:MouseEvent):void{
btnNext.visible = false;
indexSetTools++;
setTool();
}
private function glowRambut(){
var _local1 = 1;
while (_local1 <= 3) {
if (sample.cewek.getChildByName(("rambutKanan" + _local1)).currentFrame != cewek.getChildByName(("rambutKanan" + _local1)).currentFrame){
cewek.getChildByName(("rambutKanan" + _local1)).filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = BlurX), (blurY = BlurY), (strength = 5))];
} else {
cewek.getChildByName(("rambutKanan" + _local1)).filters = [];
};
if (sample.cewek.getChildByName(("rambutKiri" + _local1)).currentFrame != cewek.getChildByName(("rambutKiri" + _local1)).currentFrame){
cewek.getChildByName(("rambutKiri" + _local1)).filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = BlurX), (blurY = BlurY), (strength = 5))];
} else {
cewek.getChildByName(("rambutKiri" + _local1)).filters = [];
};
_local1++;
};
BlurX = (BlurX + BlurDX);
BlurY = (BlurY + BlurDY);
if ((((BlurX == 20)) || ((BlurX == 5)))){
BlurDX = -(BlurDX);
BlurDY = -(BlurDY);
};
}
private function setTool(){
var _local2:MovieClip;
var _local1:int;
while (_local1 < Data.setTools[indexSetTools].length) {
_local2 = new CTools();
_local2.gotoAndStop(Data.setTools[indexSetTools][_local1]);
if (_local2.currentFrame == Data.BOTOL_WARNA){
_local2.x = (Data.xyTool[Data.setTools[indexSetTools][_local1]].x + (_local1 * 30));
} else {
_local2.x = Data.xyTool[Data.setTools[indexSetTools][_local1]].x;
};
_local2.y = Data.xyTool[Data.setTools[indexSetTools][_local1]].y;
_local2.rotation = Data.xyTool[Data.setTools[indexSetTools][_local1]].rotation;
addChild(_local2);
if (_local2.currentFrame != Data.SISIR){
_local2.addEventListener(MouseEvent.MOUSE_DOWN, onPickTool, false, 0, true);
_local2.addEventListener(MouseEvent.MOUSE_OVER, showGlowTool, false, 0, true);
_local2.addEventListener(MouseEvent.MOUSE_OUT, hideGlowTool, false, 0, true);
};
tool.push(_local2);
_local1++;
};
}
private function onDownRambut(_arg1:MouseEvent):void{
var _local2:ColorMatrix;
if (((((((pickTool) && ((_arg1.currentTarget.filters.length > 0)))) && (!((tool[chooseTool].currentFrame == Data.BOTOL_WARNA))))) && (tool[chooseTool].visible))){
target = _arg1.currentTarget;
_arg1.currentTarget.filters = [];
tool[chooseTool].visible = false;
if (tool[chooseTool].currentFrame == Data.GUNTING){
Main.GetInstance().mOptionBar.PlaySFX("clip");
cewek.getChildByName(("animasi_" + _arg1.currentTarget.name)).visible = true;
cewek.getChildByName(("animasi_" + _arg1.currentTarget.name)).gotoAndStop(13);
cewek.getChildByName(("animasi_" + _arg1.currentTarget.name)).gotoAndStop((((_arg1.currentTarget.currentFrame - 1) * 4) + tool[chooseTool].currentFrame));
_arg1.currentTarget.nextFrame();
_arg1.currentTarget.visible = false;
} else {
if (((!((tool[chooseTool].currentFrame == Data.GUNTING))) && (!((tool[chooseTool].currentFrame == Data.BOTOL_WARNA))))){
cewek.getChildByName(("animasi_" + _arg1.currentTarget.name)).visible = true;
cewek.getChildByName(("animasi_" + _arg1.currentTarget.name)).gotoAndStop(3);
cewek.getChildByName(("animasi_" + _arg1.currentTarget.name)).gotoAndStop((((_arg1.currentTarget.currentFrame - 1) * 4) + tool[chooseTool].currentFrame));
_arg1.currentTarget.style.gotoAndStop(tool[chooseTool].currentFrame);
_arg1.currentTarget.visible = false;
if (((((choosenStyle - 1) == 4)) && ((((_arg1.currentTarget.name == "rambutKanan1")) || ((_arg1.currentTarget.name == "rambutKiri1")))))){
cewek.rambutKanan1.style.gotoAndStop(tool[chooseTool].currentFrame);
cewek.rambutKiri1.style.gotoAndStop(tool[chooseTool].currentFrame);
} else {
if (((((choosenStyle - 1) == 4)) && ((((_arg1.currentTarget.name == "rambutKanan2")) || ((_arg1.currentTarget.name == "rambutKiri2")))))){
cewek.rambutKanan2.style.gotoAndStop(tool[chooseTool].currentFrame);
cewek.rambutKiri2.style.gotoAndStop(tool[chooseTool].currentFrame);
};
};
if (tool[chooseTool].currentFrame == Data.IKET_RAMBUT){
Main.GetInstance().mOptionBar.PlaySFX("spray2");
} else {
Main.GetInstance().mOptionBar.PlaySFX("punch", 0.5);
};
};
};
} else {
if (((((pickTool) && ((tool[chooseTool].currentFrame == Data.BOTOL_WARNA)))) && (!(Tweener.isTweening(tool[chooseTool]))))){
_local2 = new ColorMatrix();
_local2.adjustBrightness(Data.sampleCewek[chooseTool].bri);
_local2.adjustSaturation(Data.sampleCewek[chooseTool].sat);
_local2.adjustHue(Data.sampleCewek[chooseTool].hue);
_arg1.currentTarget.filters = [];
_arg1.currentTarget.filters = [new ColorMatrixFilter(_local2)];
hairs[hairs.indexOf(_arg1.currentTarget)].color = chooseTool;
if (((((choosenStyle - 1) == 4)) && ((((_arg1.currentTarget.name == "rambutKanan1")) || ((_arg1.currentTarget.name == "rambutKiri1")))))){
hairs[0].color = chooseTool;
hairs[1].color = chooseTool;
};
if (((((choosenStyle - 1) == 4)) && ((((_arg1.currentTarget.name == "rambutKanan2")) || ((_arg1.currentTarget.name == "rambutKiri2")))))){
hairs[2].color = chooseTool;
hairs[3].color = chooseTool;
};
animasiSpray(tool[chooseTool], 1);
Main.GetInstance().mOptionBar.PlaySFX("spray");
};
};
}
private function hideGlowTool(_arg1:MouseEvent):void{
if (tool.length > 0){
if (tool[1].currentFrame == Data.SISIR){
tool[1].filters = [];
};
};
_arg1.currentTarget.filters = [];
}
private function cekStyleRambut(){
var _local1:Boolean;
var _local2 = 1;
while (_local2 <= 3) {
if (((!((sample.cewek.getChildByName(("rambutKanan" + _local2)).style.currentFrame == cewek.getChildByName(("rambutKanan" + _local2)).style.currentFrame))) || (!((sample.cewek.getChildByName(("rambutKiri" + _local2)).style.currentFrame == cewek.getChildByName(("rambutKiri" + _local2)).style.currentFrame))))){
_local1 = false;
};
_local2++;
};
if (_local1){
btnNext.visible = true;
pickTool = false;
removeTool();
};
}
private function removeTool(){
var _local1:int;
while (_local1 < tool.length) {
tool[_local1].parent.removeChild(tool[_local1]);
_local1++;
};
tool.splice(0, tool.length);
}
public function finishAnimasi(_arg1:String){
cewek.getChildByName(target.name).visible = true;
cewek.getChildByName(_arg1).visible = false;
tool[chooseTool].visible = true;
if (tool[chooseTool].currentFrame == Data.GUNTING){
cekPjgRambut();
} else {
if (((!((tool[chooseTool].currentFrame == Data.GUNTING))) && (!((tool[chooseTool].currentFrame == Data.BOTOL_WARNA))))){
cekStyleRambut();
};
};
}
private function glowStyle(){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local1 = 1;
while (_local1 <= 3) {
_local2 = sample.cewek.getChildByName(("rambutKanan" + _local1)).style.currentFrame;
_local3 = cewek.getChildByName(("rambutKanan" + _local1)).style.currentFrame;
if (((!((_local2 == _local3))) && ((tool[chooseTool].currentFrame == _local2)))){
cewek.getChildByName(("rambutKanan" + _local1)).filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = BlurX), (blurY = BlurY), (strength = 5))];
} else {
cewek.getChildByName(("rambutKanan" + _local1)).filters = [];
};
_local4 = sample.cewek.getChildByName(("rambutKiri" + _local1)).style.currentFrame;
_local5 = cewek.getChildByName(("rambutKiri" + _local1)).style.currentFrame;
if (((!((_local4 == _local5))) && ((tool[chooseTool].currentFrame == _local4)))){
cewek.getChildByName(("rambutKiri" + _local1)).filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = BlurX), (blurY = BlurY), (strength = 5))];
} else {
cewek.getChildByName(("rambutKiri" + _local1)).filters = [];
};
_local1++;
};
BlurX = (BlurX + BlurDX);
BlurY = (BlurY + BlurDY);
if ((((BlurX == 20)) || ((BlurX == 5)))){
BlurDX = -(BlurDX);
BlurDY = -(BlurDY);
};
}
private function setEventListener(){
btnMore.useHandCursor = true;
btnMore.buttonMode = true;
btnMore.addEventListener(MouseEvent.CLICK, onMoreGame, false, 0, true);
btnMore.addEventListener(MouseEvent.MOUSE_OVER, showGlowButton, false, 0, true);
btnMore.addEventListener(MouseEvent.MOUSE_OUT, hideGlowButton, false, 0, true);
addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove, false, 0, true);
btnNext.useHandCursor = true;
btnNext.buttonMode = true;
btnNext.addEventListener(MouseEvent.CLICK, onNextTools, false, 0, true);
btnNext.addEventListener(MouseEvent.MOUSE_OVER, showGlowButton, false, 0, true);
btnNext.addEventListener(MouseEvent.MOUSE_OUT, hideGlowButton, false, 0, true);
btnFinish.useHandCursor = true;
btnFinish.buttonMode = true;
btnFinish.addEventListener(MouseEvent.CLICK, onFinishGame, false, 0, true);
btnFinish.addEventListener(MouseEvent.MOUSE_OVER, showGlowButton, false, 0, true);
btnFinish.addEventListener(MouseEvent.MOUSE_OUT, hideGlowButton, false, 0, true);
var _local1 = 1;
while (_local1 <= 3) {
cewek.getChildByName(("rambutKanan" + _local1)).addEventListener(MouseEvent.MOUSE_DOWN, onDownRambut, false, 0, true);
hairs.push(cewek.getChildByName(("rambutKanan" + _local1)));
hairs[(hairs.length - 1)].color = -1;
cewek.getChildByName(("rambutKiri" + _local1)).addEventListener(MouseEvent.MOUSE_DOWN, onDownRambut, false, 0, true);
hairs.push(cewek.getChildByName(("rambutKiri" + _local1)));
hairs[(hairs.length - 1)].color = -1;
_local1++;
};
}
private function cekColorRambut(){
var _local1:Boolean;
var _local2:int;
while (_local2 < hairs.length) {
if (hairs[_local2].color != (choosenStyle - 1)){
_local1 = false;
};
_local2++;
};
if (_local1){
btnFinish.visible = true;
pickTool = false;
removeTool();
};
}
private function setRambutDefault(){
cewek.rambutKanan1.gotoAndStop(1);
cewek.rambutKanan2.gotoAndStop(1);
cewek.rambutKanan3.gotoAndStop(1);
cewek.rambutKiri1.gotoAndStop(1);
cewek.rambutKiri2.gotoAndStop(1);
cewek.rambutKiri3.gotoAndStop(1);
cewek.kepala.gotoAndStop(1);
cewek.baju.gotoAndStop(2);
var _local1 = 1;
while (_local1 <= 3) {
cewek.getChildByName(("animasi_rambutKanan" + _local1)).visible = false;
cewek.getChildByName(("animasi_rambutKanan" + _local1)).gotoAndStop(1);
cewek.getChildByName(("animasi_rambutKiri" + _local1)).visible = false;
cewek.getChildByName(("animasi_rambutKiri" + _local1)).gotoAndStop(1);
_local1++;
};
}
private function onMoreGame(_arg1:MouseEvent):void{
Global.openWindow("http://www.greatgirlsgames.com/?utm_campaign=stylish_date&utm_source=stylish_date");
}
private function opening(){
newMask = new CCircle();
newMask.x = 400;
newMask.y = 300;
newMask.scaleX = 0;
newMask.scaleY = 0;
addChild(newMask);
this.mask = newMask;
Tweener.addTween(newMask, {time:0.5, scaleX:1, scaleY:1, transition:"linear", onComplete:removeNewMask});
}
private function onFinishGame(_arg1:MouseEvent):void{
newMask.x = 400;
newMask.y = 300;
addChild(newMask);
this.mask = newMask;
Tweener.addTween(newMask, {time:0.5, scaleX:0, scaleY:0, transition:"linear", onComplete:Main.GetInstance().killGame});
}
private function cekPjgRambut(){
var _local1:Boolean;
var _local2 = 1;
while (_local2 <= 3) {
if (((!((sample.cewek.getChildByName(("rambutKanan" + _local2)).currentFrame == cewek.getChildByName(("rambutKanan" + _local2)).currentFrame))) || (!((sample.cewek.getChildByName(("rambutKiri" + _local2)).currentFrame == cewek.getChildByName(("rambutKiri" + _local2)).currentFrame))))){
_local1 = false;
};
_local2++;
};
if (_local1){
btnNext.visible = true;
pickTool = false;
removeTool();
};
}
private function showGlowTool(_arg1:MouseEvent):void{
if (tool[1].currentFrame == Data.SISIR){
tool[1].filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = 10), (blurY = 10), (strength = 5))];
};
_arg1.currentTarget.filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = 10), (blurY = 10), (strength = 5))];
}
private function setSampleCewek(){
var _local1:ColorMatrix = new ColorMatrix();
_local1.adjustBrightness(Data.sampleCewek[(choosenStyle - 1)].bri);
_local1.adjustSaturation(Data.sampleCewek[(choosenStyle - 1)].sat);
_local1.adjustHue(Data.sampleCewek[(choosenStyle - 1)].hue);
sample.cewek.rambutKanan1.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut1);
sample.cewek.rambutKanan2.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut2);
sample.cewek.rambutKanan3.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut3);
sample.cewek.rambutKiri1.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut1);
sample.cewek.rambutKiri2.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut2);
sample.cewek.rambutKiri3.gotoAndStop(Data.sampleCewek[(choosenStyle - 1)].rambut3);
sample.cewek.kepala.gotoAndStop(1);
sample.cewek.baju.gotoAndStop(1);
sample.cewek.baju.tas.visible = false;
sample.cewek.kepala.mata.gotoAndStop(1);
sample.cewek.rambutKanan1.filters = [new ColorMatrixFilter(_local1)];
sample.cewek.rambutKanan2.filters = [new ColorMatrixFilter(_local1)];
sample.cewek.rambutKanan3.filters = [new ColorMatrixFilter(_local1)];
sample.cewek.rambutKiri1.filters = [new ColorMatrixFilter(_local1)];
sample.cewek.rambutKiri2.filters = [new ColorMatrixFilter(_local1)];
sample.cewek.rambutKiri3.filters = [new ColorMatrixFilter(_local1)];
var _local2 = 1;
while (_local2 <= 3) {
sample.cewek.getChildByName(("animasi_rambutKanan" + _local2)).visible = false;
sample.cewek.getChildByName(("animasi_rambutKanan" + _local2)).gotoAndStop(1);
sample.cewek.getChildByName(("animasi_rambutKiri" + _local2)).visible = false;
sample.cewek.getChildByName(("animasi_rambutKiri" + _local2)).gotoAndStop(1);
_local2++;
};
}
private function onMouseMove(_arg1:MouseEvent):void{
if (pickTool){
tool[chooseTool].x = _arg1.stageX;
tool[chooseTool].y = _arg1.stageY;
};
}
override public function Update(_arg1:Event){
if (pickTool){
if (tool[chooseTool].currentFrame == Data.GUNTING){
glowRambut();
} else {
if (((!((tool[chooseTool].currentFrame == Data.GUNTING))) && (!((tool[chooseTool].currentFrame == Data.BOTOL_WARNA))))){
glowStyle();
};
};
};
}
private function onPickTool(_arg1:MouseEvent):void{
if (pickTool){
if (tool[chooseTool].currentFrame == Data.BOTOL_WARNA){
tool[chooseTool].x = (Data.xyTool[tool[chooseTool].currentFrame].x + (chooseTool * 27));
} else {
tool[chooseTool].x = Data.xyTool[tool[chooseTool].currentFrame].x;
};
tool[chooseTool].y = Data.xyTool[tool[chooseTool].currentFrame].y;
tool[chooseTool].mouseEnabled = true;
tool[chooseTool].mouseChildren = true;
tool[chooseTool].addEventListener(MouseEvent.MOUSE_DOWN, onPickTool, false, 0, true);
tool[chooseTool].addEventListener(MouseEvent.MOUSE_OVER, showGlowTool, false, 0, true);
tool[chooseTool].addEventListener(MouseEvent.MOUSE_OUT, hideGlowTool, false, 0, true);
};
pickTool = true;
chooseTool = tool.indexOf(_arg1.currentTarget);
tool[chooseTool].x = _arg1.stageX;
tool[chooseTool].y = _arg1.stageY;
tool[chooseTool].filters = [];
tool[chooseTool].mouseEnabled = false;
tool[chooseTool].mouseChildren = false;
tool[chooseTool].removeEventListener(MouseEvent.MOUSE_DOWN, onPickTool);
tool[chooseTool].removeEventListener(MouseEvent.MOUSE_OVER, showGlowTool);
tool[chooseTool].removeEventListener(MouseEvent.MOUSE_OUT, hideGlowTool);
if (tool[chooseTool].currentFrame == Data.GUNTING){
tool[1].parent.removeChild(tool[1]);
tool.splice(1, 1);
};
}
private function showGlowButton(_arg1:MouseEvent):void{
_arg1.currentTarget.filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = 10), (blurY = 10), (strength = 5))];
}
public static function GetInstance():CGame{
return (CGameGlobal);
}
}
}//package
Section 73
//clip (clip)
package {
import flash.media.*;
public dynamic class clip extends Sound {
}
}//package
Section 74
//CMainMenu (CMainMenu)
package {
import com.gskinner.geom.*;
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import flash.filters.*;
public class CMainMenu extends MovieClip {
public var slotStyle3:MovieClip;
public var btnMore2:MovieClip;
public var slotStyle5:MovieClip;
public var slotStyle4:MovieClip;
public var pintuKiri:MovieClip;
public var pintuKanan:MovieClip;
public var btnMore:MovieClip;
public var title:MovieClip;
public var btnStart:MovieClip;
public var newMask:MovieClip;
public var btnPlay:MovieClip;
public var mLogo:MovieClip;
public var slotStyle1:MovieClip;
public var slotStyle2:MovieClip;
private static var CMainMenuGlobal:CMainMenu;
public function CMainMenu(){
CMainMenuGlobal = this;
mouseEnabled = false;
btnStart.useHandCursor = true;
btnStart.buttonMode = true;
btnStart.addEventListener(MouseEvent.CLICK, openDoor, false, 0, true);
btnStart.addEventListener(MouseEvent.MOUSE_OVER, showGlow, false, 0, true);
btnStart.addEventListener(MouseEvent.MOUSE_OUT, hideGlow, false, 0, true);
btnMore.useHandCursor = true;
btnMore.buttonMode = true;
btnMore.addEventListener(MouseEvent.CLICK, onMoreGame, false, 0, true);
btnMore.addEventListener(MouseEvent.MOUSE_OVER, showGlow, false, 0, true);
btnMore.addEventListener(MouseEvent.MOUSE_OUT, hideGlow, false, 0, true);
btnPlay.useHandCursor = true;
btnPlay.buttonMode = true;
btnPlay.addEventListener(MouseEvent.CLICK, onPlay, false, 0, true);
btnPlay.addEventListener(MouseEvent.MOUSE_OVER, showGlow, false, 0, true);
btnPlay.addEventListener(MouseEvent.MOUSE_OUT, hideGlow, false, 0, true);
btnMore2.useHandCursor = true;
btnMore2.buttonMode = true;
btnMore2.addEventListener(MouseEvent.CLICK, onMoreGame, false, 0, true);
btnMore2.addEventListener(MouseEvent.MOUSE_OVER, showGlow, false, 0, true);
btnMore2.addEventListener(MouseEvent.MOUSE_OUT, hideGlow, false, 0, true);
setSlotRambut();
opening();
}
private function setSlotRambut(){
var _local2:int;
var _local1 = 1;
while (_local1 <= 5) {
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan1.gotoAndStop(Data.sampleCewek[(_local1 - 1)].rambut1);
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan2.gotoAndStop(Data.sampleCewek[(_local1 - 1)].rambut2);
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan3.gotoAndStop(Data.sampleCewek[(_local1 - 1)].rambut3);
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri1.gotoAndStop(Data.sampleCewek[(_local1 - 1)].rambut1);
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri2.gotoAndStop(Data.sampleCewek[(_local1 - 1)].rambut2);
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri3.gotoAndStop(Data.sampleCewek[(_local1 - 1)].rambut3);
getChildByName(("slotStyle" + _local1)).cewek.baju.gotoAndStop(1);
getChildByName(("slotStyle" + _local1)).cewek.kepala.gotoAndStop(1);
getChildByName(("slotStyle" + _local1)).cewek.kepala.mata.gotoAndStop(1);
getChildByName(("slotStyle" + _local1)).cewek.baju.tas.visible = false;
_local2 = 1;
while (_local2 <= 3) {
getChildByName(("slotStyle" + _local1)).cewek.getChildByName(("animasi_rambutKanan" + _local2)).visible = false;
getChildByName(("slotStyle" + _local1)).cewek.getChildByName(("animasi_rambutKanan" + _local2)).gotoAndStop(1);
getChildByName(("slotStyle" + _local1)).cewek.getChildByName(("animasi_rambutKiri" + _local2)).visible = false;
getChildByName(("slotStyle" + _local1)).cewek.getChildByName(("animasi_rambutKiri" + _local2)).gotoAndStop(1);
_local2++;
};
_local1++;
};
}
private function setEventListenerSlot(){
var _local1 = 1;
while (_local1 <= 5) {
getChildByName(("slotStyle" + _local1)).scaleX = 1;
getChildByName(("slotStyle" + _local1)).scaleY = 1;
getChildByName(("slotStyle" + _local1)).gotoAndStop(1);
getChildByName(("slotStyle" + _local1)).useHandCursor = true;
getChildByName(("slotStyle" + _local1)).buttonMode = true;
getChildByName(("slotStyle" + _local1)).mouseChildren = false;
getChildByName(("slotStyle" + _local1)).addEventListener(MouseEvent.CLICK, onSelected, false, 0, true);
getChildByName(("slotStyle" + _local1)).addEventListener(MouseEvent.MOUSE_OVER, showGlowSlotStyle, false, 0, true);
getChildByName(("slotStyle" + _local1)).addEventListener(MouseEvent.MOUSE_OUT, hideGlowSlotStyle, false, 0, true);
_local1++;
};
}
private function showGlowSlotStyle(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndPlay(2);
_arg1.currentTarget.scaleX = 1.05;
_arg1.currentTarget.scaleY = 1.05;
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OVER, showGlowSlotStyle);
}
private function onPlay(_arg1:MouseEvent):void{
if (Main.GetInstance().choosenStyle != 0){
newMask = new CCircle();
newMask.x = 400;
newMask.y = 300;
addChild(newMask);
this.mask = newMask;
Tweener.addTween(newMask, {time:0.5, scaleX:0, scaleY:0, transition:"linear", onComplete:Main.GetInstance().killMainMenu});
};
}
private function removeNewMask(){
this.mask = null;
removeChild(newMask);
}
private function onSelected(_arg1:MouseEvent){
setEventListenerSlot();
Main.GetInstance().choosenStyle = _arg1.currentTarget.name.substr(9, 1);
_arg1.currentTarget.scaleX = 1.05;
_arg1.currentTarget.scaleY = 1.05;
_arg1.currentTarget.gotoAndPlay(2);
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, onSelected);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OVER, showGlowSlotStyle);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_OUT, hideGlowSlotStyle);
var _local2 = 1;
while (_local2 <= 5) {
getChildByName(("slotStyle" + _local2)).filters = [];
_local2++;
};
_arg1.currentTarget.filters = [new GlowFilter(16773903, 1, 15, 15, 5)];
}
private function hideGlowSlotStyle(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(1);
_arg1.currentTarget.scaleX = 1;
_arg1.currentTarget.scaleY = 1;
_arg1.currentTarget.addEventListener(MouseEvent.MOUSE_OVER, showGlowSlotStyle, false, 0, true);
}
public function opening(){
newMask = new CCircle();
newMask.x = 400;
newMask.y = 300;
newMask.scaleX = 0;
newMask.scaleY = 0;
addChild(newMask);
this.mask = newMask;
Tweener.addTween(newMask, {time:0.5, scaleX:1, scaleY:1, transition:"linear", onComplete:removeNewMask});
}
private function setSlotStyle(){
var _local2:ColorMatrix;
var _local1 = 1;
while (_local1 <= 5) {
_local2 = new ColorMatrix();
_local2.adjustBrightness(Data.sampleCewek[(_local1 - 1)].bri);
_local2.adjustSaturation(Data.sampleCewek[(_local1 - 1)].sat);
_local2.adjustHue(Data.sampleCewek[(_local1 - 1)].hue);
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan1.style.gotoAndStop(Data.sampleCewek[(_local1 - 1)].style1);
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan2.style.gotoAndStop(Data.sampleCewek[(_local1 - 1)].style2);
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan3.style.gotoAndStop(Data.sampleCewek[(_local1 - 1)].style3);
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri1.style.gotoAndStop(Data.sampleCewek[(_local1 - 1)].style1);
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri2.style.gotoAndStop(Data.sampleCewek[(_local1 - 1)].style2);
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri3.style.gotoAndStop(Data.sampleCewek[(_local1 - 1)].style3);
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan1.filters = [new ColorMatrixFilter(_local2)];
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan2.filters = [new ColorMatrixFilter(_local2)];
getChildByName(("slotStyle" + _local1)).cewek.rambutKanan3.filters = [new ColorMatrixFilter(_local2)];
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri1.filters = [new ColorMatrixFilter(_local2)];
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri2.filters = [new ColorMatrixFilter(_local2)];
getChildByName(("slotStyle" + _local1)).cewek.rambutKiri3.filters = [new ColorMatrixFilter(_local2)];
_local1++;
};
}
private function showGlow(_arg1:MouseEvent):void{
_arg1.currentTarget.scaleX = 1.05;
_arg1.currentTarget.scaleY = 1.05;
_arg1.currentTarget.filters = [new GlowFilter(0xFF6600, (alpha = 1), (blurX = 10), (blurY = 10), (strength = 5))];
}
private function onMoreGame(_arg1:MouseEvent):void{
trace("ON MORE GAME");
Global.openWindow("http://www.greatgirlsgames.com/?utm_campaign=stylish_date&utm_source=stylish_date");
}
private function hideGlow(_arg1:MouseEvent):void{
_arg1.currentTarget.scaleX = 1;
_arg1.currentTarget.scaleY = 1;
_arg1.currentTarget.filters = [];
}
private function openDoor(_arg1:MouseEvent){
mLogo.visible = false;
mLogo.mouseEnabled = false;
mLogo.mouseChildren = false;
btnStart.visible = false;
btnMore.visible = false;
title.visible = false;
setSlotStyle();
setEventListenerSlot();
Tweener.addTween(pintuKanan, {time:1, x:(pintuKanan.x + 305), transition:"linear"});
Tweener.addTween(pintuKiri, {time:1, x:(pintuKiri.x - 305), transition:"linear"});
}
public static function GetInstance():CMainMenu{
return (CMainMenuGlobal);
}
}
}//package
Section 75
//COptionBar (COptionBar)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.utils.*;
public class COptionBar extends MovieClip {
public var mMusic:MovieClip;
private var mSfxChannel:Array;
public var mQuality:MovieClip;
public var mSFX:MovieClip;
private var mBgm:Sound;
public var mPopUp:MovieClip;
private var mBgmFlag:Boolean;
private var mBgmChannel:SoundChannel;
private var mSfxFlag:Boolean;// = true
private var mBgmVol:Number;// = 1
public static var Global:COptionBar;
public function COptionBar(_arg1:int=0, _arg2:int=0, _arg3:String=null, _arg4:Number=0.5){
var _local5:Class;
super();
Global = this;
mBgmVol = _arg4;
this.x = _arg1;
this.y = _arg2;
if (_arg3){
_local5 = (getDefinitionByName(_arg3) as Class);
if (_local5){
mBgm = new (_local5);
};
};
mPopUp.mouseEnabled = false;
mMusic.buttonMode = true;
mMusic.useHandCursor = true;
mSFX.buttonMode = true;
mSFX.useHandCursor = true;
mQuality.buttonMode = true;
mQuality.useHandCursor = true;
mMusic.addEventListener(MouseEvent.MOUSE_OVER, MusicOver, false, 0, true);
mMusic.addEventListener(MouseEvent.MOUSE_OUT, MusicOut, false, 0, true);
mMusic.addEventListener(MouseEvent.MOUSE_UP, ToggleMusic, false, 0, true);
mSFX.addEventListener(MouseEvent.MOUSE_OVER, SFXOver, false, 0, true);
mSFX.addEventListener(MouseEvent.MOUSE_OUT, SFXOut, false, 0, true);
mSFX.addEventListener(MouseEvent.MOUSE_UP, ToggleSFX, false, 0, true);
mQuality.addEventListener(MouseEvent.MOUSE_OVER, QualityOver, false, 0, true);
mQuality.addEventListener(MouseEvent.MOUSE_OUT, QualityOut, false, 0, true);
mQuality.addEventListener(MouseEvent.MOUSE_UP, ToggleQuality, false, 0, true);
if (((mBgm) && (!((Main.GetInstance().mState == Main.STATE_PRELOADER))))){
StartBGM();
};
mSfxChannel = new Array();
MusicOut(null);
SFXOut(null);
trace("init option bar");
}
public function StopSFX(_arg1:int){
mSfxChannel[_arg1].stop();
}
private function MusicOut(_arg1:MouseEvent):void{
if (!mBgmFlag){
mMusic.gotoAndStop(2);
} else {
mMusic.gotoAndStop(1);
};
HidePopUp();
}
private function HidePopUp(){
mPopUp.alpha = 0;
}
public function PlaySFX(_arg1:String, _arg2:Number=1):int{
if (!mSfxFlag){
return;
};
var _local3:Class = (getDefinitionByName(_arg1) as Class);
var _local4:Sound = new (_local3);
var _local5:SoundTransform = new SoundTransform(_arg2, 0);
var _local6:SoundChannel = _local4.play(0, 1, _local5);
mSfxChannel.push(_local6);
return ((mSfxChannel.length - 1));
}
private function QualityOver(_arg1:MouseEvent):void{
mQuality.gotoAndStop(2);
ShowPopUp((("Quality: " + Main.GetInstance().stage.quality) + " (B)"));
}
private function SFXOver(_arg1:MouseEvent):void{
if (!mSfxFlag){
mSFX.gotoAndStop(4);
} else {
mSFX.gotoAndStop(3);
};
ShowPopUp("Toggle SFX (N)");
}
public function ToggleMusic(_arg1:MouseEvent=null):void{
if (Main.GetInstance().mState == Main.STATE_PRELOADER){
return;
};
trace("toggle Music");
if (((mBgmFlag) && (mBgmChannel))){
mBgmFlag = false;
mBgmChannel.stop();
} else {
StartBGM();
};
if (_arg1 != null){
MusicOver(null);
} else {
MusicOut(null);
};
}
public function ChangeBGMVol(_arg1:Number){
mBgmVol = _arg1;
mBgmChannel.soundTransform = new SoundTransform(mBgmVol, 0);
}
private function StartBGM(){
trace(("start bgm : " + mBgm));
if (!mBgm){
return;
};
mBgmFlag = true;
var _local1:SoundTransform = new SoundTransform(mBgmVol, 0);
mBgmChannel = mBgm.play(0, 999, _local1);
MusicOut(null);
}
private function SFXOut(_arg1:MouseEvent):void{
if (!mSfxFlag){
mSFX.gotoAndStop(2);
} else {
mSFX.gotoAndStop(1);
};
HidePopUp();
}
private function ShowPopUp(_arg1:String){
if ((this.y - 50) <= 0){
mPopUp.y = 40;
} else {
mPopUp.y = -30;
};
mPopUp.alpha = 1;
mPopUp.mText.text = _arg1;
}
public function ToggleSFX(_arg1:MouseEvent=null):void{
var _local2:int;
if (Main.GetInstance().mState == Main.STATE_PRELOADER){
return;
};
if (mSfxFlag){
mSfxFlag = false;
if (mSfxChannel){
_local2 = 0;
while (_local2 < mSfxChannel.length) {
mSfxChannel[_local2].stop();
_local2++;
};
};
} else {
mSfxFlag = true;
};
if (_arg1 != null){
SFXOver(null);
} else {
SFXOut(null);
};
}
public function ToggleQuality(_arg1:MouseEvent=null):void{
switch (Main.GetInstance().stage.quality){
case "LOW":
Main.GetInstance().stage.quality = StageQuality.MEDIUM;
break;
case "MEDIUM":
Main.GetInstance().stage.quality = StageQuality.HIGH;
break;
case "HIGH":
Main.GetInstance().stage.quality = StageQuality.BEST;
break;
case "BEST":
Main.GetInstance().stage.quality = StageQuality.LOW;
break;
};
ShowPopUp((("Quality: " + Main.GetInstance().stage.quality) + " (B)"));
}
private function QualityOut(_arg1:MouseEvent):void{
mQuality.gotoAndStop(1);
HidePopUp();
}
private function MusicOver(_arg1:MouseEvent):void{
if (!mBgmFlag){
mMusic.gotoAndStop(4);
} else {
mMusic.gotoAndStop(3);
};
ShowPopUp("Toggle Music (M)");
}
public function ChangeBGM(_arg1:String=null){
var _local2:Class;
if (!_arg1){
return;
};
if (_arg1){
_local2 = (getDefinitionByName(_arg1) as Class);
mBgm = new (_local2);
};
if (((mBgmFlag) && (mBgmChannel))){
mBgmChannel.stop();
};
trace(("bgm flag : " + mBgmFlag));
if (mBgmFlag){
StartBGM();
};
}
}
}//package
Section 76
//CProlog (CProlog)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CProlog extends MovieClip {
public var bg:MovieClip;
public function CProlog(){
addFrameScript(0, frame1, 492, frame493);
}
function frame493(){
stop();
this.parent.removeChild(this);
Main.GetInstance().InitMainMenu();
}
function frame1(){
bg.cacheAsBitmap = true;
}
}
}//package
Section 77
//CTools (CTools)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class CTools extends MovieClip {
public var mc:MovieClip;
public var tool:MovieClip;
public function CTools(){
addFrameScript(5, frame6);
}
function frame6(){
mc.gotoAndStop((CGame.GetInstance().tool.indexOf(this) + 1));
}
}
}//package
Section 78
//Data (Data)
package {
public class Data {
public static const BOTOL_WARNA = 6;
public static const KERITING = 3;
public static const CATOKAN_LURUS = 2;
public static const GUNTING = 1;
public static const IKET = 4;
public static const CATOKAN_KERITING2 = 7;
public static const IKET_RAMBUT = 4;
public static const ION = 2;
public static const SISIR = 5;
public static const ASLI = 1;
public static const CATOKAN_KERITING = 3;
public static var counterTools:Array = [[2, 6, 6], [6, 6, 6], [4, 4, 2, 6], [4, 6, 6], [2, 6, 6]];
public static var setTools:Array = [[GUNTING, SISIR], [CATOKAN_LURUS, CATOKAN_KERITING, IKET_RAMBUT], [BOTOL_WARNA, BOTOL_WARNA, BOTOL_WARNA, BOTOL_WARNA, BOTOL_WARNA]];
public static var sampleCewek:Array = [{rambut1:2, rambut2:1, rambut3:1, style1:KERITING, style2:KERITING, style3:KERITING, bri:0, sat:10, hue:-180}, {rambut1:1, rambut2:2, rambut3:3, style1:ION, style2:ION, style3:ION, bri:80, sat:100, hue:0}, {rambut1:2, rambut2:1, rambut3:2, style1:ION, style2:IKET, style3:ION, bri:0, sat:10, hue:-50}, {rambut1:1, rambut2:2, rambut3:2, style1:KERITING, style2:KERITING, style3:KERITING, bri:0, sat:10, hue:30}, {rambut1:1, rambut2:2, rambut3:1, style1:IKET, style2:IKET, style3:IKET, bri:0, sat:10, hue:-140}];
public static var xyTool:Array = [{}, {x:675, y:325, rotation:0}, {x:690, y:270, rotation:-90}, {x:690, y:330, rotation:-90}, {x:690, y:390, rotation:-90}, {x:735, y:325, rotation:0}, {x:630, y:280, rotation:0}];
}
}//package
Section 79
//DOT1 (DOT1)
package {
import flash.media.*;
public dynamic class DOT1 extends Sound {
}
}//package
Section 80
//DOT2 (DOT2)
package {
import flash.media.*;
public dynamic class DOT2 extends Sound {
}
}//package
Section 81
//DOT3 (DOT3)
package {
import flash.media.*;
public dynamic class DOT3 extends Sound {
}
}//package
Section 82
//FPS (FPS)
package {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import flash.system.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
public dynamic class FPS extends MovieClip {
public var secondTime:Number;
public var prevSecondTime:Number;
public var frames:Number;
public var prevFrameTime:Number;
public var frameTime:Number;
public var iBar:MovieClip;
public var time:Number;
public var fps:String;
public var tf:TextField;
public function FPS(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
stop();
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
function frame1(){
prevFrameTime = getTimer();
prevSecondTime = getTimer();
frames = 0;
fps = "...";
}
public function onEnterFrame(_arg1:Event):void{
time = getTimer();
frameTime = (time - prevFrameTime);
secondTime = (time - prevSecondTime);
if (secondTime >= 1000){
fps = frames.toString();
frames = 0;
prevSecondTime = time;
} else {
frames++;
};
prevFrameTime = time;
tf.text = (((((fps + " FPS / ") + frameTime) + " MS") + " - Memory : ") + System.totalMemory);
iBar.scaleX = (iBar.scaleX - ((iBar.scaleX - (frameTime / 10)) / 5));
}
}
}//package
Section 83
//Global (Global)
package {
import flash.geom.*;
import flash.display.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
public class Global {
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STAGE_HEIGHT = 450;
public static var STAGE_WIDTH = 600;
public static function getIsoPoint(_arg1:Point):Point{
return (new Point((_arg1.x - _arg1.y), ((_arg1.x + _arg1.y) / 2)));
}
public static function AngleOfTwoLines(_arg1:Object, _arg2:Object):Number{
var _local3:Number = _arg1.x1;
var _local4:Number = _arg1.y1;
var _local5:Number = _arg1.x2;
var _local6:Number = _arg1.y2;
var _local7:Number = _arg2.x1;
var _local8:Number = _arg2.y1;
var _local9:Number = _arg2.x2;
var _local10:Number = _arg2.y2;
var _local11:Number = Global.Slope(_local3, _local4, _local5, _local6);
var _local12:Number = Global.Slope(_local7, _local8, _local9, _local10);
return (Math.atan(((_local12 - _local11) / (1 + (_local11 * _local12)))));
}
public static function htmlColorToAS(_arg1:String):uint{
var _local2 = "0x";
var _local3 = 1;
while (_local3 < _arg1.length) {
_local2 = _local2.concat(_arg1.charAt(_local3));
_local3++;
};
return (uint(_local2));
}
public static function Slope(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number = (_arg1 - _arg3);
var _local6:Number = (_arg2 - _arg4);
return ((_local6 / _local5));
}
public static function duplicateMovieClip(_arg1:MovieClip):MovieClip{
var _local4:Rectangle;
var _local2:Class = Object(_arg1).constructor;
var _local3:MovieClip = new (_local2);
_local3.transform = _arg1.transform;
_local3.filters = _arg1.filters;
_local3.cacheAsBitmap = _arg1.cacheAsBitmap;
_local3.opaqueBackground = _arg1.opaqueBackground;
if (_arg1.scale9Grid){
_local4 = _arg1.scale9Grid;
_local3.scale9Grid = _local4;
};
return (_local3);
}
public static function AngleOfTwoDots(_arg1, _arg2, _arg3, _arg4):Number{
var _local5:Number = (_arg1 - _arg3);
var _local6:Number = (_arg2 - _arg4);
return (Math.atan2(_local6, _local5));
}
public static function DegToRad(_arg1:Number):Number{
return (((_arg1 / 180) * Math.PI));
}
public static function Distance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.sqrt((Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2))));
}
public static function RadToDeg(_arg1:Number):Number{
return (((_arg1 * 180) / Math.PI));
}
public static function pythagoras(_arg1:Number, _arg2:Number):Number{
return (Math.sqrt((Math.pow(_arg1, 2) + Math.pow(_arg2, 2))));
}
public static function openWindow(_arg1:String="http://www.lazybanana.com", _arg2:String="_blank", _arg3:String=""):String{
var _loc_4:URLRequest;
var _loc_5:String;
var opened:Boolean;
var msg:String;
var url = _arg1;
var target = _arg2;
var param3 = _arg3;
var ok:Boolean;
opened = false;
_loc_4 = new URLRequest(url);
msg = "Start the openWindow func ...\n";
if (!ExternalInterface.available){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag a - 1");
} catch(err:SecurityError) {
navigateToURL(_loc_4, "_blank");
opened = true;
msg = (msg + "flag a - 2");
} finally {
opened = true;
};
msg = (msg + "external interface not available\n");
} else {
try {
_loc_5 = String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase();
msg = (msg + "Trying extenal interface sandbox security\n");
msg = (msg + "flag b - 1");
opened = false;
} catch(err:SecurityError) {
msg = (msg + (err.message + "\n"));
ok = false;
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag b - 2");
} catch(err:SecurityError) {
opened = true;
msg = (msg + "flag b - 3");
navigateToURL(_loc_4, "_blank");
} finally {
opened = true;
};
} catch(err:Error) {
} finally {
opened = false;
};
if (((ok) && (!(opened)))){
msg = (msg + "External interface available, continuing ...\n");
if (((!((_loc_5.indexOf("firefox") == -1))) || (((!((_loc_5.indexOf("msie") == -1))) && ((uint(_loc_5.substr((_loc_5.indexOf("msie") + 5), 3)) >= 7)))))){
try {
ExternalInterface.call("window.open", _loc_4.url, target);
opened = false;
msg = (msg + "flag c - 1");
msg = (msg + "Trying window.open JS ...\n");
} catch(err:SecurityError) {
msg = (msg + (err.message + "\n"));
trace(("e : " + err.message));
if (!opened){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag d - 1");
} catch(err:SecurityError) {
opened = true;
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag d - 2");
} finally {
opened = true;
};
};
} catch(err:Error) {
msg = (msg + (err.message + "\n"));
if (!opened){
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag e - 1");
} catch(err:SecurityError) {
opened = true;
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag e - 2");
} finally {
opened = true;
};
};
} finally {
opened = true;
};
} else {
if (!opened){
msg = (msg + "Open with navigateToURL\n");
try {
opened = false;
navigateToURL(_loc_4, target);
msg = (msg + "flag f - 1");
} catch(err:SecurityError) {
navigateToURL(_loc_4, "_blank");
msg = (msg + "flag f - 2");
} finally {
opened = true;
};
};
};
};
};
return (msg);
}
public static function getMoneyString(_arg1:int):String{
var _local2 = "";
var _local3:String = _arg1;
var _local4:int;
var _local5:int = (_local3.length - 1);
while (_local5 >= 0) {
_local4++;
_local2 = (_local3.charAt(_local5) + _local2);
if ((_local4 % 3) == 0){
_local2 = ("," + _local2);
};
_local5--;
};
if (_local2.charAt(0) == ","){
return (_local2.substr(1, (_local2.length - 1)));
};
return (_local2);
}
public static function getFormatedString(_arg1:String, _arg2:Array, _arg3:String="%"):String{
var _local4:String;
for (_local4 in _arg2) {
_arg1 = _arg1.replace((_arg3 + _local4), _arg2[_local4]);
trace(_local4, _arg2[_local4]);
};
return (_arg1);
}
public static function clone(_arg1:Object){
var _local2:ByteArray = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
}
}//package
Section 84
//Main (Main)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public dynamic class Main extends MovieClip {
public var mBannedWin:CBannedWin;
private var mContextMenu:ContextMenu;
public var mPreloader:MovieClip;
public var mBgmStartFlag:Boolean;// = false
private var mBgm:SoundChannel;
public var mState:int;
public var mBgmFlag:Boolean;// = true
public var mFPSBar:MovieClip;
public var choosenStyle:int;
private var mProlog:MovieClip;
private var mMainMenu:CMainMenu;
public var animasi:Boolean;
private var mSfx:SoundChannel;
public var mSfxFlag:Boolean;// = true
public var mOptionBar:COptionBar;
private var mEnding:CEnding;
private var mGame:CGame;
protected static const WINDOW_OPEN_FUNCTION:String = "window.open";
public static var STATE_GAME = 1;
public static var MainGlobal:Main;
public static var STATE_PRELOADER = 0;
public static var STATE_MAIN_MENU = 2;
public static var STATE_PAUSED = 3;
public function Main(){
mState = STATE_PRELOADER;
super();
addFrameScript(0, frame1, 1, frame2, 15, frame16);
trace("init main 1");
MainGlobal = this;
mState = STATE_MAIN_MENU;
Global.STAGE_HEIGHT = stage.stageHeight;
Global.STAGE_WIDTH = stage.stageWidth;
stage.addEventListener(FocusEvent.FOCUS_IN, OnKeyFocusChange, false, 0, true);
stage.addEventListener(Event.ADDED, OnAddedToStage, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp, false, 0, true);
stage.showDefaultContextMenu = false;
stage.quality = StageQuality.HIGH;
}
private function isDomainNOTAllowed(_arg1:Array):Boolean{
var _local4:Number;
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _local2.domain;
trace(("Domain : " + _local3));
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3 == _arg1[_local4]){
return (true);
};
_local4++;
};
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3.substr(-((_arg1[_local4].length + 1))) == ("." + _arg1[_local4])){
return (true);
};
_local4++;
};
return (false);
}
public function KillWindow(_arg1:String, _arg2:Boolean=true, _arg3:Boolean=true){
var _local6:XML;
var _local7:String;
var _local4:String = ("C" + _arg1);
var _local5:String = ("m" + _arg1);
if (this[_local5]){
if (((this[_local5].parent) && (_arg3))){
this[_local5].parent.removeChild(this[_local5]);
};
if (_arg2){
_local6 = describeType(this[_local5]);
_local7 = _local6.method.@name.toXMLString();
if (_local7.indexOf("RemoveDispatcher") > -1){
this[_local5].RemoveDispatcher();
};
};
this[_local5] = null;
};
if (this[_local5] != null){
trace((("WARNING ### " + _arg1) + "Not null after Kill process"));
};
}
private function menuSelectHandler(_arg1:ContextMenuEvent){
}
public function InitMainMenu(){
ShowWindow("MainMenu");
mState = STATE_MAIN_MENU;
}
public function killEnding(){
mEnding.parent.removeChild(mEnding);
mEnding.RemoveDispatcher();
mEnding = null;
InitMainMenu();
}
private function OnKeyFocusChange(_arg1:FocusEvent):void{
stage.focus = this.stage;
}
private function isDomainAllowed(_arg1:Array):Boolean{
var _local4:Number;
var _local2:LocalConnection = new LocalConnection();
var _local3:String = _local2.domain;
trace(("Domain : " + _local3));
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3 == _arg1[_local4]){
return (true);
};
_local4++;
};
_local4 = 0;
while (_local4 < _arg1.length) {
if (_local3.substr(-((_arg1[_local4].length + 1))) == ("." + _arg1[_local4])){
return (true);
};
_local4++;
};
return (false);
}
public function onKeyUp(_arg1:KeyboardEvent){
if (mState != STATE_PRELOADER){
switch (_arg1.keyCode){
case 77:
if (mOptionBar){
mOptionBar.ToggleMusic();
};
break;
case 66:
if (mOptionBar){
mOptionBar.ToggleQuality();
};
break;
case 78:
if (mOptionBar){
mOptionBar.ToggleSFX();
};
break;
};
};
}
public function killMainMenu(){
mMainMenu.parent.removeChild(mMainMenu);
mMainMenu = null;
InitGame();
}
private function OnAddedToStage(_arg1:Event):void{
if (mOptionBar){
mOptionBar.parent.setChildIndex(mOptionBar, (mOptionBar.parent.numChildren - 1));
};
if (mFPSBar){
mFPSBar.parent.setChildIndex(mFPSBar, (mFPSBar.parent.numChildren - 1));
};
}
public function InitProlog(){
ShowWindow("Prolog");
mProlog.x = 400;
mProlog.y = 300;
mState = STATE_MAIN_MENU;
}
public function InitGame(){
ShowWindow("Game");
mGame.AddDispatcher();
mState = STATE_GAME;
}
public function CheckDomain(){
var _local3:*;
var _local1:Array = new Array("localhost");
var _local2:Array = new Array("ActiveX", "PlugIn", "StandAlone", "External");
if (!isDomainAllowed(_local1)){
trace("BANNED DOMAIN !!!");
if (_local3){
if (_local3.parent){
_local3.parent.removeChild(_local3);
};
_local3 = null;
};
_local3 = new CBannedWin();
this.stage.addChild(_local3);
} else {
trace("Allowed DOMAIN !!!");
};
}
private function InitOnce(){
InitProlog();
mOptionBar = new COptionBar(0, 0, "bgm");
stage.addChild(mOptionBar);
mOptionBar.visible = false;
mFPSBar = new FPS();
stage.addChild(mFPSBar);
mFPSBar.visible = false;
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, OnEnterFrame);
};
this.addEventListener(Event.ENTER_FRAME, OnEnterFrame, false, 0, true);
}
function frame16(){
InitOnce();
}
public function OnEnterFrame(_arg1:Event){
switch (mState){
case STATE_GAME:
RunStateGame();
break;
case STATE_PAUSED:
this.dispatchEvent(new Event("pause"));
break;
default:
break;
};
}
public function initEnding(){
ShowWindow("Ending");
mEnding.AddDispatcher();
mState = STATE_GAME;
}
function frame2(){
gotoAndStop("mainMenu");
}
public function ToggleQuality():void{
switch (stage.quality){
case "LOW":
stage.quality = StageQuality.MEDIUM;
break;
case "MEDIUM":
stage.quality = StageQuality.HIGH;
break;
case "HIGH":
stage.quality = StageQuality.BEST;
break;
case "BEST":
stage.quality = StageQuality.LOW;
break;
default:
break;
};
}
public function ShowWindow(_arg1:String){
var _local2:String = ("C" + _arg1);
var _local3:String = ("m" + _arg1);
var _local4:Class = (getDefinitionByName(_local2) as Class);
if (_local4){
KillWindow(_local3);
this[_local3] = new (_local4);
this.stage.addChild(this[_local3]);
};
}
public function killGame(){
mGame.parent.removeChild(mGame);
mGame.RemoveDispatcher();
mGame = null;
initEnding();
}
function frame1(){
MochiBot.track(this, "154311c6");
stop();
}
private function RunStateGame(){
this.dispatchEvent(new Event("update"));
}
private function isPlayerAllowed(_arg1:Array):Boolean{
var _local2:String = Capabilities.playerType;
trace(("PlayerType : " + _local2));
var _local3:Number = 0;
while (_local3 < _arg1.length) {
if (_local2 == _arg1[_local3]){
return (true);
};
_local3++;
};
return (false);
}
public static function GetInstance():Main{
return (MainGlobal);
}
}
}//package
Section 85
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 86
//punch (punch)
package {
import flash.media.*;
public dynamic class punch extends Sound {
}
}//package
Section 87
//spray (spray)
package {
import flash.media.*;
public dynamic class spray extends Sound {
}
}//package
Section 88
//spray2 (spray2)
package {
import flash.media.*;
public dynamic class spray2 extends Sound {
}
}//package
Section 89
//SS (SS)
package {
import flash.media.*;
public dynamic class SS extends Sound {
}
}//package
Section 90
//WINK (WINK)
package {
import flash.media.*;
public dynamic class WINK extends Sound {
}
}//package