Section 1
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 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.utils.*;
import flash.events.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function pauseAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {overwrite:true, time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
var _local12:Object = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
};
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 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
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var val:int;// = 0
public var len:int;// = 0
}
}//package com.adobe.images
Section 10
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class JPGEncoder {
private var fdtbl_UV:Array;
private var std_ac_chrominance_values:Array;
private var std_dc_chrominance_values:Array;
private var ZigZag:Array;
private var YDC_HT:Array;
private var YAC_HT:Array;
private var bytenew:int;// = 0
private var fdtbl_Y:Array;
private var std_ac_chrominance_nrcodes:Array;
private var DU:Array;
private var std_ac_luminance_values:Array;
private var std_dc_chrominance_nrcodes:Array;
private var UVTable:Array;
private var YDU:Array;
private var UDU:Array;
private var byteout:ByteArray;
private var UVAC_HT:Array;
private var UVDC_HT:Array;
private var bytepos:int;// = 7
private var VDU:Array;
private var std_ac_luminance_nrcodes:Array;
private var std_dc_luminance_values:Array;
private var YTable:Array;
private var std_dc_luminance_nrcodes:Array;
private var bitcode:Array;
private var category:Array;
public function JPGEncoder(_arg1:Number=50){
this.ZigZag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63];
this.YTable = new Array(64);
this.UVTable = new Array(64);
this.fdtbl_Y = new Array(64);
this.fdtbl_UV = new Array(64);
this.std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
this.std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
this.std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
this.std_ac_luminance_values = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250];
this.std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
this.std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
this.std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
this.std_ac_chrominance_values = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
this.bitcode = new Array(0xFFFF);
this.category = new Array(0xFFFF);
this.DU = new Array(64);
this.YDU = new Array(64);
this.UDU = new Array(64);
this.VDU = new Array(64);
super();
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 > 100){
_arg1 = 100;
};
var _local2:int;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
this.initHuffmanTbl();
this.initCategoryNumber();
this.initQuantTables(_local2);
}
private function initHuffmanTbl():void{
this.YDC_HT = this.computeHuffmanTbl(this.std_dc_luminance_nrcodes, this.std_dc_luminance_values);
this.UVDC_HT = this.computeHuffmanTbl(this.std_dc_chrominance_nrcodes, this.std_dc_chrominance_values);
this.YAC_HT = this.computeHuffmanTbl(this.std_ac_luminance_nrcodes, this.std_ac_luminance_values);
this.UVAC_HT = this.computeHuffmanTbl(this.std_ac_chrominance_nrcodes, this.std_ac_chrominance_values);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:int;
var _local5:int;
while (_local5 < 8) {
_local6 = 0;
while (_local6 < 8) {
_local7 = _arg1.getPixel32((_arg2 + _local6), (_arg3 + _local5));
_local8 = Number(((_local7 >> 16) & 0xFF));
_local9 = Number(((_local7 >> 8) & 0xFF));
_local10 = Number((_local7 & 0xFF));
this.YDU[_local4] = ((((0.299 * _local8) + (0.587 * _local9)) + (0.114 * _local10)) - 128);
this.UDU[_local4] = (((-0.16874 * _local8) + (-0.33126 * _local9)) + (0.5 * _local10));
this.VDU[_local4] = (((0.5 * _local8) + (-0.41869 * _local9)) + (-0.08131 * _local10));
_local4++;
_local6++;
};
_local5++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int = _arg1.val;
var _local3:int = (_arg1.len - 1);
while (_local3 >= 0) {
if ((_local2 & uint((1 << _local3)))){
this.bytenew = (this.bytenew | uint((1 << this.bytepos)));
};
_local3--;
this.bytepos--;
if (this.bytepos < 0){
if (this.bytenew == 0xFF){
this.writeByte(0xFF);
this.writeByte(0);
} else {
this.writeByte(this.bytenew);
};
this.bytepos = 7;
this.bytenew = 0;
};
};
}
private function writeWord(_arg1:int):void{
this.writeByte(((_arg1 >> 8) & 0xFF));
this.writeByte((_arg1 & 0xFF));
}
private function writeByte(_arg1:int):void{
this.byteout.writeByte(_arg1);
}
private function writeDHT():void{
var _local1:int;
this.writeWord(65476);
this.writeWord(418);
this.writeByte(0);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_dc_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
this.writeByte(this.std_dc_luminance_values[_local1]);
_local1++;
};
this.writeByte(16);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_ac_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
this.writeByte(this.std_ac_luminance_values[_local1]);
_local1++;
};
this.writeByte(1);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_dc_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
this.writeByte(this.std_dc_chrominance_values[_local1]);
_local1++;
};
this.writeByte(17);
_local1 = 0;
while (_local1 < 16) {
this.writeByte(this.std_ac_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
this.writeByte(this.std_ac_chrominance_values[_local1]);
_local1++;
};
}
public function encode(_arg1:BitmapData):ByteArray{
var _local6:int;
var _local7:BitString;
this.byteout = new ByteArray();
this.bytenew = 0;
this.bytepos = 7;
this.writeWord(65496);
this.writeAPP0();
this.writeDQT();
this.writeSOF0(_arg1.width, _arg1.height);
this.writeDHT();
this.writeSOS();
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
this.bytenew = 0;
this.bytepos = 7;
var _local5:int;
while (_local5 < _arg1.height) {
_local6 = 0;
while (_local6 < _arg1.width) {
this.RGB2YUV(_arg1, _local6, _local5);
_local2 = this.processDU(this.YDU, this.fdtbl_Y, _local2, this.YDC_HT, this.YAC_HT);
_local3 = this.processDU(this.UDU, this.fdtbl_UV, _local3, this.UVDC_HT, this.UVAC_HT);
_local4 = this.processDU(this.VDU, this.fdtbl_UV, _local4, this.UVDC_HT, this.UVAC_HT);
_local6 = (_local6 + 8);
};
_local5 = (_local5 + 8);
};
if (this.bytepos >= 0){
_local7 = new BitString();
_local7.len = (this.bytepos + 1);
_local7.val = ((1 << (this.bytepos + 1)) - 1);
this.writeBits(_local7);
};
this.writeWord(65497);
return (this.byteout);
}
private function initCategoryNumber():void{
var _local3:int;
var _local1 = 1;
var _local2 = 2;
var _local4 = 1;
while (_local4 <= 15) {
_local3 = _local1;
while (_local3 < _local2) {
this.category[(32767 + _local3)] = _local4;
this.bitcode[(32767 + _local3)] = new BitString();
this.bitcode[(32767 + _local3)].len = _local4;
this.bitcode[(32767 + _local3)].val = _local3;
_local3++;
};
_local3 = -((_local2 - 1));
while (_local3 <= -(_local1)) {
this.category[(32767 + _local3)] = _local4;
this.bitcode[(32767 + _local3)] = new BitString();
this.bitcode[(32767 + _local3)].len = _local4;
this.bitcode[(32767 + _local3)].val = ((_local2 - 1) + _local3);
_local3++;
};
_local1 = (_local1 << 1);
_local2 = (_local2 << 1);
_local4++;
};
}
private function writeDQT():void{
var _local1:int;
this.writeWord(65499);
this.writeWord(132);
this.writeByte(0);
_local1 = 0;
while (_local1 < 64) {
this.writeByte(this.YTable[_local1]);
_local1++;
};
this.writeByte(1);
_local1 = 0;
while (_local1 < 64) {
this.writeByte(this.UVTable[_local1]);
_local1++;
};
}
private function writeAPP0():void{
this.writeWord(65504);
this.writeWord(16);
this.writeByte(74);
this.writeByte(70);
this.writeByte(73);
this.writeByte(70);
this.writeByte(0);
this.writeByte(1);
this.writeByte(1);
this.writeByte(0);
this.writeWord(1);
this.writeWord(1);
this.writeByte(0);
this.writeByte(0);
}
private function writeSOS():void{
this.writeWord(65498);
this.writeWord(12);
this.writeByte(3);
this.writeByte(1);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(3);
this.writeByte(17);
this.writeByte(0);
this.writeByte(63);
this.writeByte(0);
}
private function processDU(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Array, _arg5:Array):Number{
var _local8:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local6:BitString = _arg5[0];
var _local7:BitString = _arg5[240];
var _local9:Array = this.fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
this.DU[this.ZigZag[_local8]] = _local9[_local8];
_local8++;
};
var _local10:int = (this.DU[0] - _arg3);
_arg3 = this.DU[0];
if (_local10 == 0){
this.writeBits(_arg4[0]);
} else {
this.writeBits(_arg4[this.category[(32767 + _local10)]]);
this.writeBits(this.bitcode[(32767 + _local10)]);
};
var _local11 = 63;
while ((((_local11 > 0)) && ((this.DU[_local11] == 0)))) {
_local11--;
};
if (_local11 == 0){
this.writeBits(_local6);
return (_arg3);
};
_local8 = 1;
while (_local8 <= _local11) {
_local12 = _local8;
while ((((this.DU[_local8] == 0)) && ((_local8 <= _local11)))) {
_local8++;
};
_local13 = (_local8 - _local12);
if (_local13 >= 16){
_local14 = 1;
while (_local14 <= (_local13 / 16)) {
this.writeBits(_local7);
_local14++;
};
_local13 = int((_local13 & 15));
};
this.writeBits(_arg5[((_local13 * 16) + this.category[(32767 + this.DU[_local8])])]);
this.writeBits(this.bitcode[(32767 + this.DU[_local8])]);
_local8++;
};
if (_local11 != 63){
this.writeBits(_local6);
};
return (_arg3);
}
private function initQuantTables(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local8:int;
var _local4:Array = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local4[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
this.YTable[this.ZigZag[_local2]] = _local3;
_local2++;
};
var _local5:Array = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local5[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
this.UVTable[this.ZigZag[_local2]] = _local3;
_local2++;
};
var _local6:Array = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
var _local7:int;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
this.fdtbl_Y[_local2] = (1 / (((this.YTable[this.ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
this.fdtbl_UV[_local2] = (1 / (((this.UVTable[this.ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
_local2++;
_local8++;
};
_local7++;
};
}
private function writeSOF0(_arg1:int, _arg2:int):void{
this.writeWord(65472);
this.writeWord(17);
this.writeByte(8);
this.writeWord(_arg2);
this.writeWord(_arg1);
this.writeByte(3);
this.writeByte(1);
this.writeByte(17);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(1);
this.writeByte(3);
this.writeByte(17);
this.writeByte(1);
}
private function computeHuffmanTbl(_arg1:Array, _arg2:Array):Array{
var _local7:int;
var _local3:int;
var _local4:int;
var _local5:Array = new Array();
var _local6 = 1;
while (_local6 <= 16) {
_local7 = 1;
while (_local7 <= _arg1[_local6]) {
_local5[_arg2[_local4]] = new BitString();
_local5[_arg2[_local4]].val = _local3;
_local5[_arg2[_local4]].len = _local6;
_local4++;
_local3++;
_local7++;
};
_local3 = (_local3 * 2);
_local6++;
};
return (_local5);
}
private function fDCTQuant(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:int;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 7)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 7)]);
_local4 = (_arg1[(_local23 + 1)] + _arg1[(_local23 + 6)]);
_local9 = (_arg1[(_local23 + 1)] - _arg1[(_local23 + 6)]);
_local5 = (_arg1[(_local23 + 2)] + _arg1[(_local23 + 5)]);
_local8 = (_arg1[(_local23 + 2)] - _arg1[(_local23 + 5)]);
_local6 = (_arg1[(_local23 + 3)] + _arg1[(_local23 + 4)]);
_local7 = (_arg1[(_local23 + 3)] - _arg1[(_local23 + 4)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 4)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 2)] = (_local14 + _local15);
_arg1[(_local23 + 6)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 5)] = (_local21 + _local16);
_arg1[(_local23 + 3)] = (_local21 - _local16);
_arg1[(_local23 + 1)] = (_local20 + _local18);
_arg1[(_local23 + 7)] = (_local20 - _local18);
_local23 = (_local23 + 8);
_local22++;
};
_local23 = 0;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 56)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 56)]);
_local4 = (_arg1[(_local23 + 8)] + _arg1[(_local23 + 48)]);
_local9 = (_arg1[(_local23 + 8)] - _arg1[(_local23 + 48)]);
_local5 = (_arg1[(_local23 + 16)] + _arg1[(_local23 + 40)]);
_local8 = (_arg1[(_local23 + 16)] - _arg1[(_local23 + 40)]);
_local6 = (_arg1[(_local23 + 24)] + _arg1[(_local23 + 32)]);
_local7 = (_arg1[(_local23 + 24)] - _arg1[(_local23 + 32)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 32)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 16)] = (_local14 + _local15);
_arg1[(_local23 + 48)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 40)] = (_local21 + _local16);
_arg1[(_local23 + 24)] = (_local21 - _local16);
_arg1[(_local23 + 8)] = (_local20 + _local18);
_arg1[(_local23 + 56)] = (_local20 - _local18);
_local23++;
_local22++;
};
_local22 = 0;
while (_local22 < 64) {
_arg1[_local22] = Math.round((_arg1[_local22] * _arg2[_local22]));
_local22++;
};
return (_arg1);
}
}
}//package com.adobe.images
Section 11
//bg_152 (Selena_fla.bg_152)
package Selena_fla {
import flash.display.*;
public dynamic class bg_152 extends MovieClip {
public function bg_152(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Selena_fla
Section 12
//EL_182_3685_459 (Selena_fla.EL_182_3685_459)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class EL_182_3685_459 extends MovieClip {
public var col:ColorTransform;
public var p10:MovieClip;
public var p11:MovieClip;
public var p12:MovieClip;
public var p14:MovieClip;
public var p15:MovieClip;
public var p16:MovieClip;
public var p17:MovieClip;
public var p18:MovieClip;
public var p19:MovieClip;
public var p13:MovieClip;
public var p21:MovieClip;
public var p23:MovieClip;
public var p24:MovieClip;
public var p20:MovieClip;
public var p22:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
public var p5:MovieClip;
public var p6:MovieClip;
public var p7:MovieClip;
public var p8:MovieClip;
public var p9:MovieClip;
public var color_mc:MovieClip;
public function EL_182_3685_459(){
addFrameScript(36, frame37);
}
function frame37(){
col = new ColorTransform();
col.color = MovieClip(root).colorArray[MovieClip(root).nowColor];
this.color_mc.transform.colorTransform = col;
}
}
}//package Selena_fla
Section 13
//EL_1910_2617_290 (Selena_fla.EL_1910_2617_290)
package Selena_fla {
import flash.display.*;
public dynamic class EL_1910_2617_290 extends MovieClip {
public function EL_1910_2617_290(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Selena_fla
Section 14
//EL_2243_7885_289 (Selena_fla.EL_2243_7885_289)
package Selena_fla {
import flash.display.*;
public dynamic class EL_2243_7885_289 extends MovieClip {
public function EL_2243_7885_289(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Selena_fla
Section 15
//EL_665_3110_139 (Selena_fla.EL_665_3110_139)
package Selena_fla {
import flash.display.*;
public dynamic class EL_665_3110_139 extends MovieClip {
public function EL_665_3110_139(){
addFrameScript(2, frame3);
}
function frame3(){
gotoAndStop(1);
}
}
}//package Selena_fla
Section 16
//EL_847_3055_458 (Selena_fla.EL_847_3055_458)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class EL_847_3055_458 extends MovieClip {
public var main:MovieClip;
public var pz:MovieClip;
public function EL_847_3055_458(){
addFrameScript(0, frame1, 1, frame2);
}
function frame2(){
this.stopDrag();
this.x = -100;
MovieClip(root).sb1s = 0;
MovieClip(root).sb2s = 0;
MovieClip(root).sb3s = 0;
MovieClip(root).sb4s = 0;
}
function frame1(){
main.gotoAndStop(MovieClip(root).sb1s);
pz.mouseEnabled = false;
this.startDrag(true);
}
}
}//package Selena_fla
Section 17
//logo_btn_149 (Selena_fla.logo_btn_149)
package Selena_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class logo_btn_149 extends MovieClip {
public var logo_btn:SimpleButton;
public function logo_btn_149(){
addFrameScript(0, frame1);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.y8.com/"), "_blank");
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
}
}//package Selena_fla
Section 18
//MainTimeline (Selena_fla.MainTimeline)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import caurina.transitions.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var replay_btn:SimpleButton;
public var personArray:Array;
public var zjArr:Array;
public var my_menu:ContextMenu;
public var asasas;
public var show_btn:SimpleButton;
public var aa:MovieClip;
public var numCount:int;
public var volumeSize:Number;
public var nowColor;
public var Alpha:Number;
public var strength:Number;
public var sf:Boolean;
public var inner:Boolean;
public var color:Number;
public var snd:btnSound;
public var ctrl:MovieClip;
public var more_btn:SimpleButton;
public var reset_btn:SimpleButton;
public var patArray:Array;
public var filter:GlowFilter;
public var sb_mc:MovieClip;
public var save_mc:MovieClip;
public var detectMc:MovieClip;
public var nowBColor;
public var bt_mc:MovieClip;
public var bl_mc:MovieClip;
public var scaleX1;
public var colorArray:Array;
public var myChannel:SoundChannel;
public var wp_mc:MovieClip;
public var person_mc:MovieClip;
public var filterArray:Array;
public var scaleY1;
public var mymp3:bg_sound;
public var detectMcC:MovieClip;
public var my_notice;
public var play_btn:SimpleButton;
public var filterclear:Array;
public var blurY:Number;
public var nowPattern;
public var nailArray:Array;
public var detect2Mc:MovieClip;
public var blurX:Number;
public var music_mc:MovieClip;
public var clickType;
public var sb1s;
public var knockout:Boolean;
public var quality:Number;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function showCtrl(_arg1:MovieClip){
var _local2:ctrlClass = new ctrlClass();
MovieClip(root).save_mc.person_mc.p.p7.addChild(_local2);
_local2.x = _arg1.x;
_local2.y = ((_arg1.y + (_arg1.height / 2)) + 50);
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.visible = true;
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.x = _arg1.x;
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.y = _arg1.y;
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.height = _arg1.height;
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.width = _arg1.width;
}
public function init():void{
more_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gogames);
MovieClip(root).bl_mc.addEventListener(MouseEvent.MOUSE_DOWN, blHandler);
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
MovieClip(root).reset_btn.addEventListener(MouseEvent.MOUSE_DOWN, resetGame);
MovieClip(root).show_btn.addEventListener(MouseEvent.MOUSE_DOWN, showGame);
MovieClip(root).wpContrl();
MovieClip(root).wp_mc.gotoAndStop(1);
MovieClip(root).wp_mc.wp.ctrl_mc1.gotoAndStop(2);
}
public function mouseDownFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
if (_e.currentTarget.n == 2){
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).sb1s = 0;
MovieClip(root).sb_mc.gotoAndStop(2);
if (MovieClip(root).save_mc.person_mc.p[("p" + _e.currentTarget.n)].currentFrame < MovieClip(root).save_mc.person_mc.p[("p" + _e.currentTarget.n)].totalFrames){
MovieClip(root).personArray[_e.currentTarget.n] = (MovieClip(root).save_mc.person_mc.p[("p" + _e.currentTarget.n)].currentFrame + 1);
} else {
MovieClip(root).personArray[_e.currentTarget.n] = 1;
};
} else {
if (MovieClip(root).save_mc.person_mc[("p" + _e.currentTarget.n)].currentFrame < MovieClip(root).save_mc.person_mc[("p" + _e.currentTarget.n)].totalFrames){
MovieClip(root).personArray[_e.currentTarget.n] = (MovieClip(root).save_mc.person_mc[("p" + _e.currentTarget.n)].currentFrame + 1);
} else {
MovieClip(root).personArray[_e.currentTarget.n] = 1;
};
};
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
} catch(err:Error) {
};
}
public function controlWp(_arg1:MouseEvent):void{
var k:int;
var _e = _arg1;
try {
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).sb1s = 0;
MovieClip(root).sb_mc.gotoAndStop(2);
if (MovieClip(root).bl_mc.currentFrame == 10){
k = 1;
while (k <= 4) {
MovieClip(root).wp_mc.wp[("ctrl_mc" + k)].gotoAndStop(1);
k = (k + 1);
};
MovieClip(root).wp_mc.gotoAndStop(_e.currentTarget.n);
_e.currentTarget.gotoAndStop(2);
};
} catch(err:Error) {
};
}
public function wpContrl():void{
var j:int;
try {
j = 1;
while (j <= 4) {
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].n = j;
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].gotoAndStop(1);
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].mouseChildren = false;
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].mouseEnabled = true;
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].buttonMode = true;
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].addEventListener(MouseEvent.MOUSE_OVER, mouseOverFun);
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].addEventListener(MouseEvent.MOUSE_OUT, mouseOutFun);
MovieClip(root).wp_mc.wp[("ctrl_mc" + j)].addEventListener(MouseEvent.MOUSE_DOWN, controlWp);
j = (j + 1);
};
} catch(err:Error) {
};
}
public function drag_stop(_arg1){
aa.stopDrag();
if (((((((((MovieClip(root).aa.hitTestObject(MovieClip(root).save_mc.person_mc.p.hit_mc.hit_mc1)) || (MovieClip(root).aa.hitTestObject(MovieClip(root).save_mc.person_mc.p.hit_mc.hit_mc2)))) || (MovieClip(root).aa.hitTestObject(MovieClip(root).save_mc.person_mc.p.hit_mc.hit_mc3)))) || (MovieClip(root).aa.hitTestObject(MovieClip(root).save_mc.person_mc.p.hit_mc.hit_mc4)))) || (MovieClip(root).aa.hitTestObject(MovieClip(root).save_mc.person_mc.p.hit_mc.hit_mc5)))){
MovieClip(root).save_mc.person_mc.p.p6.addChild(aa);
aa.addEventListener(MouseEvent.MOUSE_DOWN, d_start);
showCtrl(aa);
MovieClip(root).zjArr.push(aa);
} else {
MovieClip(root).removeChild(aa);
};
aa = null;
stage.removeEventListener(MouseEvent.MOUSE_UP, drag_stop);
}
public function plLittleShow(){
var _local1:Rectangle;
var _local2:* = MovieClip(root).save_mc.person_mc.p;
var _local3:BitmapData = new BitmapData(_local2.width, _local2.height, true, 0xFFFFFF);
_local1 = _local2.getRect(_local2);
var _local4:* = new Matrix();
_local4.tx = -(_local1.x);
_local4.ty = -(_local1.y);
_local3.draw(_local2, _local4);
var _local5:Bitmap = new Bitmap(_local3);
_local5.x = (_local1.x + 80);
_local5.y = (_local1.y + 200);
MovieClip(root).save_mc.p.visible = true;
MovieClip(root).save_mc.p.p.addChild(_local5);
}
public function toenailDown(_arg1:MouseEvent):void{
var col:ColorTransform;
var _e = _arg1;
try {
if (MovieClip(root).clickType == 1){
if (MovieClip(root).nowBColor != 0){
MovieClip(root).nailArray[_e.currentTarget.n] = MovieClip(root).nowBColor;
snd.play();
MovieClip(root).save_mc.person_mc.p.p1[("p1c" + _e.currentTarget.n)].gotoAndStop(MovieClip(root).nailArray[_e.currentTarget.n]);
_e.currentTarget.dh.gotoAndPlay(1);
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
};
} else {
if (MovieClip(root).clickType == 2){
if (MovieClip(root).nowPattern != 0){
MovieClip(root).patArray[_e.currentTarget.n] = MovieClip(root).nowPattern;
MovieClip(root).save_mc.person_mc.p.p1[("p2c" + _e.currentTarget.n)].gotoAndStop(MovieClip(root).patArray[_e.currentTarget.n]);
trace(MovieClip(root).patArray[_e.currentTarget.n]);
snd.play();
_e.currentTarget.dh.gotoAndPlay(1);
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
};
} else {
if (MovieClip(root).clickType == 3){
if (MovieClip(root).nowColor != 0){
if (MovieClip(root).patArray[_e.currentTarget.n] != 0){
col = new ColorTransform();
col.color = MovieClip(root).colorArray[MovieClip(root).nowColor];
MovieClip(root).save_mc.person_mc.p.p1[("p2c" + _e.currentTarget.n)].transform.colorTransform = col;
_e.currentTarget.dh.gotoAndPlay(1);
};
};
};
};
};
} catch(err:Error) {
};
}
public function initC():void{
more_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).gogames);
MovieClip(root).play_btn.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).playGame);
MovieClip(root).bt_mc.y = -174.1;
Tweener.addTween(MovieClip(root).bt_mc, {time:1, y:150.7});
MovieClip(root).person_mc.x = -200;
Tweener.addTween(MovieClip(root).person_mc, {time:1, x:346.1});
}
public function init2():void{
MovieClip(root).replay_btn.addEventListener(MouseEvent.MOUSE_DOWN, replayGame);
MovieClip(root).save_mc.bg_mc.gotoAndStop(2);
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
}
public function mouseDownWpFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).sb1s = 0;
MovieClip(root).sb_mc.gotoAndStop(2);
MovieClip(root).personArray[_e.currentTarget.m] = _e.currentTarget.n;
snd.play();
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
} catch(err:Error) {
};
}
public function playGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).gotoAndStop("game");
} catch(err:Error) {
};
}
public function more(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.colorgirlgames.com/"), "_blank");
}
public function openLink(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.colorgirlgames.com"));
}
public function resetp7(){
while (MovieClip(root).save_mc.person_mc.p.p7.numChildren) {
MovieClip(root).save_mc.person_mc.p.p7.removeChildAt(0);
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.visible = false;
};
}
function frame3(){
stop();
this.addEventListener(Event.ENTER_FRAME, doLaterC);
zjArr = new Array();
stop();
if (asasas){
} else {
sf = true;
mymp3 = new bg_sound();
myChannel = mymp3.play(0, 9999);
asasas = 1;
};
volumeSize = 1;
music_mc.addEventListener(MouseEvent.CLICK, mouseClick);
music_mc.gotoAndStop((2 - Number(sf)));
music_mc.mouseChildren = false;
music_mc.buttonMode = true;
}
function frame4(){
stop();
color = 0xFFFFFF;
Alpha = 100;
blurX = 15;
blurY = 15;
strength = 2;
quality = 3;
inner = false;
knockout = false;
filter = new GlowFilter(color, Alpha, blurX, blurY, strength, quality, inner, knockout);
filterArray = new Array();
filterArray.push(filter);
filterclear = new Array();
personArray = new Array(7, 1, 0, 0, 0, 0, 0, 0);
nailArray = new Array(5, 0, 0, 0, 0, 0);
patArray = new Array(5, 0, 0, 0, 0, 0);
colorArray = new Array(0, 16356798, 7593727, 16765246, 14081570, 9447054, 15558856, 44526, 16159261, 9159999, 37220, 16207259, 42652, 16728103, 466818, 9306883, 0xFFFFFF, 10258144, 0xE00000, 5115780, 0);
MovieClip.prototype.displayPerson = function (_arg1:Array, _arg2:MovieClip){
var k:int;
var showListArray = _arg1;
var _m = _arg2;
try {
k = 1;
while (k <= showListArray[0]) {
if (k == 1){
if (showListArray[k]){
_m.p[("p" + k)].gotoAndStop(showListArray[k]);
} else {
_m.p[("p" + k)].gotoAndStop(_m.p[("p" + k)].totalFrames);
};
};
if (k == 2){
if (showListArray[k]){
_m.p[("p" + k)].gotoAndStop(showListArray[k]);
_m[(("p" + k) + "n")].gotoAndStop(showListArray[k]);
} else {
_m.p[("p" + k)].gotoAndStop(_m.p[("p" + k)].totalFrames);
_m[(("p" + k) + "n")].gotoAndStop(_m[(("p" + k) + "n")].totalFrames);
};
};
if ((((k == 3)) || ((k == 4)))){
if (showListArray[k]){
_m.p[("p" + k)].gotoAndStop(showListArray[k]);
} else {
_m.p[("p" + k)].gotoAndStop(_m.p[("p" + k)].totalFrames);
};
};
if (k == 5){
if (showListArray[k]){
_m[("p" + k)].gotoAndStop(showListArray[k]);
} else {
_m[("p" + k)].gotoAndStop(_m[("p" + k)].totalFrames);
};
};
k = (k + 1);
};
} catch(err:Error) {
};
};
numCount = 0;
snd = new btnSound();
clickType = 0;
nowPattern = 0;
nowBColor = 0;
nowColor = 0;
sb1s = 0;
sb_mc.mouseEnabled = false;
sb_mc.gotoAndStop(2);
this.addEventListener(Event.ENTER_FRAME, doLater);
}
function frame5(){
this.addEventListener(Event.ENTER_FRAME, doLater2);
MovieClip(root).save_mc.person_mc.scaleX = 0.5;
MovieClip(root).save_mc.person_mc.scaleY = 0.5;
MovieClip(root).save_mc.person_mc.y = 100;
MovieClip(root).save_mc.person_mc.x = -300;
Tweener.addTween(MovieClip(root).save_mc.person_mc, {time:2, x:-180});
}
public function reMovep6(){
while (MovieClip(root).save_mc.person_mc.p.p6.numChildren) {
MovieClip(root).save_mc.person_mc.p.p6.removeChildAt(0);
};
while (MovieClip(root).save_mc.person_mc.p.p7.numChildren) {
MovieClip(root).save_mc.person_mc.p.p7.removeChildAt(0);
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.visible = false;
};
MovieClip(root).zjArr = new Array();
}
function frame2(){
stop();
my_menu = new ContextMenu();
my_menu.hideBuiltInItems();
my_notice = new ContextMenuItem("colorgirlgames");
my_notice.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, openLink);
my_menu.customItems.push(my_notice);
contextMenu = my_menu;
}
public function replayGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).gotoAndStop("start");
} catch(err:Error) {
};
}
public function mouseOutFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
_e.currentTarget.filters = MovieClip(root).filterclear;
_e.currentTarget.scaleX = MovieClip(root).scaleX1;
_e.currentTarget.scaleY = MovieClip(root).scaleY1;
} catch(err:Error) {
};
}
public function showGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).sb1s = 0;
MovieClip(root).sb_mc.gotoAndStop(2);
MovieClip(root).save_mc.person_mc.p.p7.visible = false;
MovieClip(root).save_mc.person_mc.p.p8.kuang_mc.visible = false;
MovieClip(root).plLittleShow();
MovieClip(root).gotoAndStop("show");
} catch(err:Error) {
};
}
public function doLater2(_arg1:Event):void{
if (detect2Mc){
this.removeEventListener(Event.ENTER_FRAME, doLater2);
init2();
};
}
public function drag_start(_arg1){
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).sb1s = 0;
MovieClip(root).sb_mc.gotoAndStop(2);
resetp7();
var _local2:Class = (ApplicationDomain.currentDomain.getDefinition(("p1c" + _arg1.currentTarget.i)) as Class);
aa = (new (_local2) as MovieClip);
MovieClip(root).addChild(aa);
aa.startDrag(true);
MovieClip(root).xz = aa;
stage.addEventListener(MouseEvent.MOUSE_UP, drag_stop);
}
function frame1(){
stop();
}
public function blHandler(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).bl_mc.gotoAndPlay(2);
} catch(err:Error) {
};
}
public function doLaterC(_arg1:Event):void{
if (detectMcC){
this.removeEventListener(Event.ENTER_FRAME, doLaterC);
initC();
};
}
public function mouseOverFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
_e.currentTarget.filters = MovieClip(root).filterArray;
MovieClip(root).scaleX1 = _e.currentTarget.scaleX;
MovieClip(root).scaleY1 = _e.currentTarget.scaleX;
_e.currentTarget.scaleX = (MovieClip(root).scaleX1 * 1.2);
_e.currentTarget.scaleY = (MovieClip(root).scaleY1 * 1.2);
} catch(err:Error) {
};
}
public function mouseDownNailFun(_arg1:MouseEvent):void{
var _e = _arg1;
try {
switch (_e.currentTarget.m){
case 1:
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = _e.currentTarget.n;
if (MovieClip(root).sb1s != _e.currentTarget.n){
MovieClip(root).sb1s = _e.currentTarget.n;
MovieClip(root).sb_mc.gotoAndStop(1);
MovieClip(root).sb_mc.startDrag(true);
((MovieClip(root).sb_mc.main) && (MovieClip(root).sb_mc.main.gotoAndStop(_e.currentTarget.n)));
};
break;
case 2:
MovieClip(root).nowBColor = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowPattern = _e.currentTarget.n;
if (MovieClip(root).sb1s != int((_e.currentTarget.n + 24))){
MovieClip(root).sb1s = int((_e.currentTarget.n + 24));
MovieClip(root).sb_mc.gotoAndStop(1);
MovieClip(root).sb_mc.startDrag(true);
((MovieClip(root).sb_mc.main) && (MovieClip(root).sb_mc.main.gotoAndStop(int((_e.currentTarget.n + 24)))));
};
break;
case 3:
MovieClip(root).nowPattern = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).nowColor = _e.currentTarget.n;
MovieClip(root).sb1s = 37;
MovieClip(root).sb_mc.gotoAndStop(2);
MovieClip(root).sb_mc.gotoAndStop(1);
MovieClip(root).sb_mc.startDrag(true);
((MovieClip(root).sb_mc.main) && (MovieClip(root).sb_mc.main.gotoAndStop(37)));
break;
};
MovieClip(root).clickType = _e.currentTarget.m;
} catch(err:Error) {
};
}
public function d_start(_arg1){
resetp7();
_arg1.currentTarget.startDrag(false);
MovieClip(root).xz = _arg1.currentTarget;
stage.addEventListener(MouseEvent.MOUSE_UP, d_stop);
}
public function doLater(_arg1:Event):void{
if (detectMc){
this.removeEventListener(Event.ENTER_FRAME, doLater);
init();
};
}
public function resetGame(_arg1:MouseEvent):void{
var _e = _arg1;
try {
MovieClip(root).nowPattern = 0;
MovieClip(root).nowColor = 0;
MovieClip(root).nowBColor = 0;
MovieClip(root).sb1s = 0;
MovieClip(root).sb_mc.gotoAndStop(2);
MovieClip(root).reMovep6();
MovieClip(root).personArray = new Array(7, 1, 0, 0, 0, 0, 0, 0);
MovieClip(root).save_mc.person_mc.displayPerson(MovieClip(root).personArray, MovieClip(root).save_mc.person_mc);
} catch(err:Error) {
};
}
public function gogames(_arg1:MouseEvent){
var _local2:LocalConnection = new LocalConnection();
var _local3:* = "http://www.colorgirlgames.com/";
navigateToURL(new URLRequest(_local3), "_blank");
}
public function mouseClick(_arg1:MouseEvent):void{
if (sf){
volumeSize = 0;
sf = false;
} else {
volumeSize = 1;
sf = true;
};
var _local2:SoundTransform = new SoundTransform(volumeSize, 0);
myChannel.soundTransform = _local2;
music_mc.nextFrame();
}
public function d_stop(_arg1){
MovieClip(root).xz.stopDrag();
showCtrl(MovieClip(root).xz);
stage.removeEventListener(MouseEvent.MOUSE_UP, d_stop);
}
}
}//package Selena_fla
Section 19
//save_mc_151 (Selena_fla.save_mc_151)
package Selena_fla {
import flash.display.*;
public dynamic class save_mc_151 extends MovieClip {
public var p:MovieClip;
public var person_mc:MovieClip;
public var bg_mc:MovieClip;
public function save_mc_151(){
addFrameScript(0, frame1);
}
function frame1(){
this.p.visible = false;
}
}
}//package Selena_fla
Section 20
//Timeline_146 (Selena_fla.Timeline_146)
package Selena_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Timeline_146 extends MovieClip {
public var logo_btn:SimpleButton;
public function Timeline_146(){
addFrameScript(0, frame1);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.colorgirlgames.com/"), "_blank");
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
}
}//package Selena_fla
Section 21
//Timeline_20 (Selena_fla.Timeline_20)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_20 extends MovieClip {
public var aa_mc:MovieClip;
public var logo_btn:SimpleButton;
public function Timeline_20(){
addFrameScript(0, frame1, 1, frame2, 242, frame243);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
public function loadingfile1(_arg1:Event){
var _local2:Number = this.loaderInfo.bytesLoaded;
var _local3:Number = this.loaderInfo.bytesTotal;
var _local4:Number = (_local2 / _local3);
var _local5:* = Math.round((_local4 * 100));
aa_mc.ptxt1.text = (_local5 + "%");
if (_local5 == 100){
addEventListener(Event.ENTER_FRAME, loadingfile1);
};
}
function frame243(){
stop();
}
function frame2(){
addEventListener(Event.ENTER_FRAME, loadingfile1);
}
}
}//package Selena_fla
Section 22
//Timeline_21 (Selena_fla.Timeline_21)
package Selena_fla {
import flash.display.*;
public dynamic class Timeline_21 extends MovieClip {
public var m_heart_txt:MovieClip;
public function Timeline_21(){
addFrameScript(52, frame53);
}
function frame53(){
stop();
}
}
}//package Selena_fla
Section 23
//Timeline_253 (Selena_fla.Timeline_253)
package Selena_fla {
import flash.display.*;
public dynamic class Timeline_253 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p7:MovieClip;
public var hit_mc:MovieClip;
public var p6:MovieClip;
public var p8:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public function Timeline_253(){
addFrameScript(0, frame1);
}
function frame1(){
this.hit_mc.mouseEnabled = false;
this.hit_mc.mouseChildren = false;
}
}
}//package Selena_fla
Section 24
//Timeline_287 (Selena_fla.Timeline_287)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_287 extends MovieClip {
public var p1c3:MovieClip;
public var i2;
public var i4;
public var i;
public var i3;
public var i5;
public var p1c1:MovieClip;
public var p2c1:MovieClip;
public var p2c3:MovieClip;
public var p2c4:MovieClip;
public var p2c5:MovieClip;
public var i1;
public var p2c2:MovieClip;
public var p1c4:MovieClip;
public var p1c5:MovieClip;
public var p1c2:MovieClip;
public function Timeline_287(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame5(){
i4 = 1;
while (i4 <= 5) {
this[("p2c" + i4)].mouseEnabled = false;
this[("p2c" + i4)].mouseChildren = false;
if (MovieClip(root).nailArray[i4]){
this[("p1c" + i4)].gotoAndStop(MovieClip(root).nailArray[i4]);
} else {
this[("p1c" + i4)].gotoAndStop(this[("p1c" + i4)].totalFrames);
};
if (MovieClip(root).patArray[i4]){
this[("p2c" + i4)].gotoAndStop(MovieClip(root).patArray[i4]);
} else {
this[("p2c" + i4)].gotoAndStop(this[("p2c" + i4)].totalFrames);
};
this[("p1c" + i4)].n = i4;
this[("p1c" + i4)].dh.gotoAndStop(this[("p1c" + i4)].dh.totalFrames);
this[("p1c" + i4)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).toenailDown);
i4++;
};
}
function frame6(){
i5 = 1;
while (i5 <= 5) {
this[("p2c" + i5)].mouseEnabled = false;
this[("p2c" + i5)].mouseChildren = false;
if (MovieClip(root).nailArray[i5]){
this[("p1c" + i5)].gotoAndStop(MovieClip(root).nailArray[i5]);
} else {
this[("p1c" + i5)].gotoAndStop(this[("p1c" + i5)].totalFrames);
};
if (MovieClip(root).patArray[i5]){
this[("p2c" + i5)].gotoAndStop(MovieClip(root).patArray[i5]);
} else {
this[("p2c" + i5)].gotoAndStop(this[("p2c" + i5)].totalFrames);
};
this[("p1c" + i5)].n = i5;
this[("p1c" + i5)].dh.gotoAndStop(this[("p1c" + i5)].dh.totalFrames);
this[("p1c" + i5)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).toenailDown);
i5++;
};
}
function frame2(){
i1 = 1;
while (i1 <= 5) {
this[("p2c" + i1)].mouseEnabled = false;
this[("p2c" + i1)].mouseChildren = false;
if (MovieClip(root).nailArray[i1]){
this[("p1c" + i1)].gotoAndStop(MovieClip(root).nailArray[i1]);
} else {
this[("p1c" + i1)].gotoAndStop(this[("p1c" + i1)].totalFrames);
};
if (MovieClip(root).patArray[i1]){
this[("p2c" + i1)].gotoAndStop(MovieClip(root).patArray[i1]);
} else {
this[("p2c" + i1)].gotoAndStop(this[("p2c" + i1)].totalFrames);
};
this[("p1c" + i1)].n = i1;
this[("p1c" + i1)].dh.gotoAndStop(this[("p1c" + i1)].dh.totalFrames);
this[("p1c" + i1)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).toenailDown);
i1++;
};
}
function frame4(){
i3 = 1;
while (i3 <= 5) {
this[("p2c" + i3)].mouseEnabled = false;
this[("p2c" + i3)].mouseChildren = false;
if (MovieClip(root).nailArray[i3]){
this[("p1c" + i3)].gotoAndStop(MovieClip(root).nailArray[i3]);
} else {
this[("p1c" + i3)].gotoAndStop(this[("p1c" + i3)].totalFrames);
};
if (MovieClip(root).patArray[i3]){
this[("p2c" + i3)].gotoAndStop(MovieClip(root).patArray[i3]);
} else {
this[("p2c" + i3)].gotoAndStop(this[("p2c" + i3)].totalFrames);
};
this[("p1c" + i3)].n = i3;
this[("p1c" + i3)].dh.gotoAndStop(this[("p1c" + i3)].dh.totalFrames);
this[("p1c" + i3)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).toenailDown);
i3++;
};
}
function frame3(){
i2 = 1;
while (i2 <= 5) {
this[("p2c" + i2)].mouseEnabled = false;
this[("p2c" + i2)].mouseChildren = false;
if (MovieClip(root).nailArray[i2]){
this[("p1c" + i2)].gotoAndStop(MovieClip(root).nailArray[i2]);
} else {
this[("p1c" + i2)].gotoAndStop(this[("p1c" + i2)].totalFrames);
};
if (MovieClip(root).patArray[i2]){
this[("p2c" + i2)].gotoAndStop(MovieClip(root).patArray[i2]);
} else {
this[("p2c" + i2)].gotoAndStop(this[("p2c" + i2)].totalFrames);
};
this[("p1c" + i2)].n = i2;
this[("p1c" + i2)].dh.gotoAndStop(this[("p1c" + i2)].dh.totalFrames);
this[("p1c" + i2)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).toenailDown);
i2++;
};
}
function frame1(){
i = 1;
while (i <= 5) {
this[("p2c" + i)].mouseEnabled = false;
this[("p2c" + i)].mouseChildren = false;
if (MovieClip(root).nailArray[i]){
this[("p1c" + i)].gotoAndStop(MovieClip(root).nailArray[i]);
} else {
this[("p1c" + i)].gotoAndStop(this[("p1c" + i)].totalFrames);
};
if (MovieClip(root).patArray[i]){
this[("p2c" + i)].gotoAndStop(MovieClip(root).patArray[i]);
} else {
this[("p2c" + i)].gotoAndStop(this[("p2c" + i)].totalFrames);
};
this[("p1c" + i)].n = i;
this[("p1c" + i)].dh.gotoAndStop(this[("p1c" + i)].dh.totalFrames);
this[("p1c" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).toenailDown);
i++;
};
}
}
}//package Selena_fla
Section 25
//Timeline_322 (Selena_fla.Timeline_322)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_322 extends MovieClip {
public var p10:MovieClip;
public var p11:MovieClip;
public var p12:MovieClip;
public var p14:MovieClip;
public var p15:MovieClip;
public var p16:MovieClip;
public var p17:MovieClip;
public var p18:MovieClip;
public var p19:MovieClip;
public var p13:MovieClip;
public var p21:MovieClip;
public var p23:MovieClip;
public var p24:MovieClip;
public var p20:MovieClip;
public var p22:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p4:MovieClip;
public var p5:MovieClip;
public var p6:MovieClip;
public var p7:MovieClip;
public var p8:MovieClip;
public var p9:MovieClip;
public var i:int;
public function Timeline_322(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 24) {
this[("p" + i)].m = 1;
this[("p" + i)].n = i;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownNailFun);
i++;
};
}
}
}//package Selena_fla
Section 26
//Timeline_34 (Selena_fla.Timeline_34)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_34 extends MovieClip {
public var more_btn:SimpleButton;
public function Timeline_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
more_btn.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
}
}
}//package Selena_fla
Section 27
//Timeline_347 (Selena_fla.Timeline_347)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_347 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i;
public function Timeline_347(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 1;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package Selena_fla
Section 28
//Timeline_354 (Selena_fla.Timeline_354)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_354 extends MovieClip {
public var fs_mc:MovieClip;
public function Timeline_354(){
addFrameScript(0, frame1);
}
function frame1(){
this.fs_mc.n = 2;
this.fs_mc.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.fs_mc.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.fs_mc.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownFun);
}
}
}//package Selena_fla
Section 29
//Timeline_356 (Selena_fla.Timeline_356)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_356 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p10:MovieClip;
public var p11:MovieClip;
public var p12:MovieClip;
public var p14:MovieClip;
public var p15:MovieClip;
public var p16:MovieClip;
public var p17:MovieClip;
public var p18:MovieClip;
public var p19:MovieClip;
public var p13:MovieClip;
public var p9:MovieClip;
public var i:int;
public var p8:MovieClip;
public var p20:MovieClip;
public function Timeline_356(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 20) {
this[("p" + i)].m = 3;
this[("p" + i)].n = i;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownNailFun);
i++;
};
}
}
}//package Selena_fla
Section 30
//Timeline_358 (Selena_fla.Timeline_358)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_358 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p7:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var p10:MovieClip;
public var p11:MovieClip;
public var p12:MovieClip;
public var p8:MovieClip;
public var p9:MovieClip;
public var i:int;
public function Timeline_358(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 12) {
this[("p" + i)].m = 2;
this[("p" + i)].n = i;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownNailFun);
i++;
};
}
}
}//package Selena_fla
Section 31
//Timeline_371 (Selena_fla.Timeline_371)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_371 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i;
public function Timeline_371(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 3;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package Selena_fla
Section 32
//Timeline_396 (Selena_fla.Timeline_396)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_396 extends MovieClip {
public var p1:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p2:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
public var i;
public function Timeline_396(){
addFrameScript(0, frame1);
}
function frame1(){
i = 1;
while (i <= 6) {
this[("p" + i)].n = i;
this[("p" + i)].m = 4;
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this[("p" + i)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownWpFun);
i++;
};
}
}
}//package Selena_fla
Section 33
//Timeline_40 (Selena_fla.Timeline_40)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_40 extends MovieClip {
public var play_btn:SimpleButton;
public var more_btn:SimpleButton;
public function Timeline_40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
more_btn.addEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
play_btn.addEventListener(MouseEvent.CLICK, playscene);
}
public function playscene(_arg1:MouseEvent){
more_btn.removeEventListener(MouseEvent.CLICK, MovieClip(root).gogames);
play_btn.removeEventListener(MouseEvent.CLICK, playscene);
MovieClip(root).play();
}
}
}//package Selena_fla
Section 34
//Timeline_415 (Selena_fla.Timeline_415)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_415 extends MovieClip {
public var p1:p1c0;
public var p3:p1c2;
public var p5:p1c4;
public var p7:p1c6;
public var p2:p1c1;
public var p4:p1c3;
public var p6:p1c5;
public var p10:p1c9;
public var p11:p1c10;
public var p12:p1c11;
public var p14:p1c13;
public var p15:p1c14;
public var p16:p1c15;
public var p17:p1c16;
public var p18:p1c17;
public var p19:p1c18;
public var p13:p1c12;
public var p9:p1c8;
public var p8:p1c7;
public var p20:p1c19;
public var a;
public function Timeline_415(){
addFrameScript(0, frame1);
}
function frame1(){
a = 1;
while (a <= 20) {
this[("p" + a)].i = (a - 1);
this[("p" + a)].mouseChildren = false;
this[("p" + a)].buttonMode = true;
this[("p" + a)].addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).drag_start);
a++;
};
}
}
}//package Selena_fla
Section 35
//Timeline_449 (Selena_fla.Timeline_449)
package Selena_fla {
import flash.display.*;
public dynamic class Timeline_449 extends MovieClip {
public function Timeline_449(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package Selena_fla
Section 36
//Timeline_463 (Selena_fla.Timeline_463)
package Selena_fla {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class Timeline_463 extends MovieClip {
public var yf_mc:MovieClip;
public function Timeline_463(){
addFrameScript(0, frame1);
}
function frame1(){
this.yf_mc.n = 5;
this.yf_mc.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).mouseOverFun);
this.yf_mc.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).mouseOutFun);
this.yf_mc.addEventListener(MouseEvent.MOUSE_DOWN, MovieClip(root).mouseDownFun);
}
}
}//package Selena_fla
Section 37
//y8_18 (Selena_fla.y8_18)
package Selena_fla {
import flash.display.*;
import flash.events.*;
public dynamic class y8_18 extends MovieClip {
public var play_btnn:SimpleButton;
public function y8_18(){
addFrameScript(0, frame1);
}
function frame1(){
this.play_btnn.addEventListener(MouseEvent.CLICK, playClick);
}
public function playClick(_arg1:MouseEvent):void{
MovieClip(root).play();
}
}
}//package Selena_fla
Section 38
//y8_pre_004_4 (Selena_fla.y8_pre_004_4)
package Selena_fla {
import flash.display.*;
public dynamic class y8_pre_004_4 extends MovieClip {
public function y8_pre_004_4(){
addFrameScript(24, frame25);
}
function frame25(){
gotoAndPlay(1);
}
}
}//package Selena_fla
Section 39
//y8_pre_009_1 (Selena_fla.y8_pre_009_1)
package Selena_fla {
import flash.display.*;
public dynamic class y8_pre_009_1 extends MovieClip {
public var preloader:MovieClip;
public function y8_pre_009_1(){
addFrameScript(150, frame151);
}
function frame151(){
stop();
}
}
}//package Selena_fla
Section 40
//y8_pre_012_16 (Selena_fla.y8_pre_012_16)
package Selena_fla {
import flash.display.*;
public dynamic class y8_pre_012_16 extends MovieClip {
public function y8_pre_012_16(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package Selena_fla
Section 41
//y8_pre_026_6 (Selena_fla.y8_pre_026_6)
package Selena_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class y8_pre_026_6 extends MovieClip {
public var link_btn:SimpleButton;
public function y8_pre_026_6(){
addFrameScript(0, frame1);
}
function frame1(){
link_btn.addEventListener(MouseEvent.CLICK, linkH);
}
public function linkH(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.y8.com"), "blank");
}
}
}//package Selena_fla
Section 42
//bg_sound (bg_sound)
package {
import flash.media.*;
public dynamic class bg_sound extends Sound {
}
}//package
Section 43
//btnSound (btnSound)
package {
import flash.media.*;
public dynamic class btnSound extends Sound {
}
}//package
Section 44
//ctrlClass (ctrlClass)
package {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.ui.*;
import flash.filters.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public dynamic class ctrlClass extends MovieClip {
public var zuoXZ:MovieClip;
public var zoomIn:MovieClip;
public var moveClipToTop:MovieClip;
public var flipClip:MovieClip;
public var youXZ:MovieClip;
public var moveClipToBack:MovieClip;
public var moveClipToBottom:MovieClip;
public var moveClipToFront:MovieClip;
public var removeClip:MovieClip;
public var zoomOut:MovieClip;
public function ctrlClass(){
addFrameScript(0, frame1);
}
public function fans(_arg1){
MovieClip(root).xz.scaleX = (MovieClip(root).xz.scaleX * -1);
}
public function zuoX(_arg1){
var e = _arg1;
try {
MovieClip(root).xz.rotation = (MovieClip(root).xz.rotation - 5);
} catch(err:Error) {
};
}
public function jians(_arg1){
this.addEventListener(Event.ENTER_FRAME, jianss);
stage.addEventListener(MouseEvent.MOUSE_UP, jian1ss);
}
public function jianss(_arg1){
if (MovieClip(root).xz.scaleY > 0.5){
MovieClip(root).xz.scaleX = (MovieClip(root).xz.scaleX * 0.98);
MovieClip(root).xz.scaleY = (MovieClip(root).xz.scaleY * 0.98);
} else {
this.removeEventListener(Event.ENTER_FRAME, jianss);
};
}
public function jia1ss(_arg1){
this.removeEventListener(Event.ENTER_FRAME, jiass);
}
public function t3s(_arg1){
if (MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz) < (MovieClip(root).zjArr.length - 1)){
MovieClip(root).zjArr.splice(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), 1);
MovieClip(root).zjArr.splice((MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz) + 1), 0, MovieClip(root).xz);
MovieClip(root).save_mc.person_mc.p.p6.swapChildrenAt(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), (MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz) + 1));
};
}
public function youX(_arg1){
var e = _arg1;
try {
MovieClip(root).xz.rotation = (MovieClip(root).xz.rotation + 5);
} catch(err:Error) {
};
}
public function jiass(_arg1){
if (MovieClip(root).xz.scaleY < 2){
MovieClip(root).xz.scaleX = (MovieClip(root).xz.scaleX * 1.02);
MovieClip(root).xz.scaleY = (MovieClip(root).xz.scaleY * 1.02);
} else {
this.removeEventListener(Event.ENTER_FRAME, jiass);
};
}
function frame1(){
zoomIn.addEventListener(MouseEvent.MOUSE_DOWN, jias);
zoomOut.addEventListener(MouseEvent.MOUSE_DOWN, jians);
flipClip.addEventListener(MouseEvent.MOUSE_DOWN, fans);
removeClip.addEventListener(MouseEvent.MOUSE_DOWN, shans);
moveClipToTop.addEventListener(MouseEvent.MOUSE_DOWN, t1s);
moveClipToBottom.addEventListener(MouseEvent.MOUSE_DOWN, t2s);
moveClipToFront.addEventListener(MouseEvent.MOUSE_DOWN, t3s);
moveClipToBack.addEventListener(MouseEvent.MOUSE_DOWN, t4s);
zuoXZ.addEventListener(MouseEvent.MOUSE_DOWN, zuoX);
youXZ.addEventListener(MouseEvent.MOUSE_DOWN, youX);
}
public function jian1ss(_arg1){
this.removeEventListener(Event.ENTER_FRAME, jianss);
}
public function t1s(_arg1){
MovieClip(root).zjArr.splice(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), 1);
MovieClip(root).zjArr.push(MovieClip(root).xz);
MovieClip(root).save_mc.person_mc.p.p6.addChild(MovieClip(root).xz);
}
public function jias(_arg1){
this.addEventListener(Event.ENTER_FRAME, jiass);
stage.addEventListener(MouseEvent.MOUSE_UP, jia1ss);
}
public function t4s(_arg1){
if (MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz) > 0){
MovieClip(root).zjArr.splice(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), 1);
MovieClip(root).zjArr.splice((MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz) - 1), 0, MovieClip(root).xz);
MovieClip(root).save_mc.person_mc.p.p6.swapChildrenAt(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), (MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz) - 1));
};
}
public function t2s(_arg1){
MovieClip(root).zjArr.splice(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), 1);
MovieClip(root).zjArr.splice(0, 0, MovieClip(root).xz);
MovieClip(root).save_mc.person_mc.p.p6.setChildIndex(MovieClip(root).xz, 0);
}
public function shans(_arg1){
MovieClip(root).zjArr.splice(MovieClip(root).save_mc.person_mc.p.p6.getChildIndex(MovieClip(root).xz), 1);
MovieClip(root).save_mc.person_mc.p.p6.removeChild(MovieClip(root).xz);
MovieClip(root).xz = null;
_arg1.currentTarget.parent.visible = false;
}
}
}//package
Section 45
//p1c0 (p1c0)
package {
import flash.display.*;
public dynamic class p1c0 extends MovieClip {
}
}//package
Section 46
//p1c1 (p1c1)
package {
import flash.display.*;
public dynamic class p1c1 extends MovieClip {
}
}//package
Section 47
//p1c10 (p1c10)
package {
import flash.display.*;
public dynamic class p1c10 extends MovieClip {
}
}//package
Section 48
//p1c11 (p1c11)
package {
import flash.display.*;
public dynamic class p1c11 extends MovieClip {
}
}//package
Section 49
//p1c12 (p1c12)
package {
import flash.display.*;
public dynamic class p1c12 extends MovieClip {
}
}//package
Section 50
//p1c13 (p1c13)
package {
import flash.display.*;
public dynamic class p1c13 extends MovieClip {
}
}//package
Section 51
//p1c14 (p1c14)
package {
import flash.display.*;
public dynamic class p1c14 extends MovieClip {
}
}//package
Section 52
//p1c15 (p1c15)
package {
import flash.display.*;
public dynamic class p1c15 extends MovieClip {
}
}//package
Section 53
//p1c16 (p1c16)
package {
import flash.display.*;
public dynamic class p1c16 extends MovieClip {
}
}//package
Section 54
//p1c17 (p1c17)
package {
import flash.display.*;
public dynamic class p1c17 extends MovieClip {
}
}//package
Section 55
//p1c18 (p1c18)
package {
import flash.display.*;
public dynamic class p1c18 extends MovieClip {
}
}//package
Section 56
//p1c19 (p1c19)
package {
import flash.display.*;
public dynamic class p1c19 extends MovieClip {
}
}//package
Section 57
//p1c2 (p1c2)
package {
import flash.display.*;
public dynamic class p1c2 extends MovieClip {
}
}//package
Section 58
//p1c3 (p1c3)
package {
import flash.display.*;
public dynamic class p1c3 extends MovieClip {
}
}//package
Section 59
//p1c4 (p1c4)
package {
import flash.display.*;
public dynamic class p1c4 extends MovieClip {
}
}//package
Section 60
//p1c5 (p1c5)
package {
import flash.display.*;
public dynamic class p1c5 extends MovieClip {
}
}//package
Section 61
//p1c6 (p1c6)
package {
import flash.display.*;
public dynamic class p1c6 extends MovieClip {
}
}//package
Section 62
//p1c7 (p1c7)
package {
import flash.display.*;
public dynamic class p1c7 extends MovieClip {
}
}//package
Section 63
//p1c8 (p1c8)
package {
import flash.display.*;
public dynamic class p1c8 extends MovieClip {
}
}//package
Section 64
//p1c9 (p1c9)
package {
import flash.display.*;
public dynamic class p1c9 extends MovieClip {
}
}//package
Section 65
//SaveImage (SaveImage)
package {
import com.adobe.images.*;
import flash.display.*;
import flash.geom.*;
import flash.net.*;
public class SaveImage extends MovieClip {
public static function drawImage(_arg1:DisplayObject, _arg2:Rectangle, _arg3:String="未命名.jpg"):void{
var _local4:Matrix = new Matrix();
_local4.tx = -(_arg2.x);
_local4.ty = -(_arg2.y);
_arg2.x = 0;
_arg2.y = 0;
var _local5:BitmapData = new BitmapData(_arg2.width, _arg2.height, true);
_local5.draw(_arg1, _local4);
var _local6:FileReference = new FileReference();
var _local7:JPGEncoder = new JPGEncoder(100);
_local6.save(_local7.encode(_local5), _arg3);
}
}
}//package