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 isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
var _local4:uint;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function 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));
}
}
}//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):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:Number=NaN, _arg6:Number=NaN):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):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:Number=NaN):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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:Number=NaN):Number{
if (!_arg5){
_arg5 = 1.70158;
};
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
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):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : ((_arg3 * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN):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):Number{
return (((_arg1)==0) ? _arg2 : ((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5, _arg6));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5, _arg6));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6)))) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):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):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):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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));
};
--_arg1;
return ((((_arg3 / 2) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=NaN, _arg6:Number=NaN):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / (2 * Math.PI)) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _arg6))) + _arg3) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):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):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4));
}
}
}//package caurina.transitions
Section 3
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var modifierParameters:Array;
public var valueComplete:Number;
public var modifierFunction:Function;
public var hasModifier:Boolean;
public var valueStart:Number;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Function, _arg4:Array){
valueStart = _arg1;
valueComplete = _arg2;
hasModifier = Boolean(_arg3);
modifierFunction = _arg3;
modifierParameters = _arg4;
}
public function toString():String{
var _local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_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, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 4
//SpecialPropertiesDefault (caurina.transitions.SpecialPropertiesDefault)
package caurina.transitions {
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
public class SpecialPropertiesDefault {
public function SpecialPropertiesDefault(){
trace("SpecialProperties is a static class and should not be instantiated.");
}
public static function _sound_volume_get(_arg1:Object):Number{
return (_arg1.soundTransform.volume);
}
public static function _color_splitter(_arg1):Array{
var _local2:Array = new Array();
if (_arg1 == null){
_local2.push({name:"_color_ra", value:1});
_local2.push({name:"_color_rb", value:0});
_local2.push({name:"_color_ga", value:1});
_local2.push({name:"_color_gb", value:0});
_local2.push({name:"_color_ba", value:1});
_local2.push({name:"_color_bb", value:0});
} else {
_local2.push({name:"_color_ra", value:0});
_local2.push({name:"_color_rb", value:AuxFunctions.numberToR(_arg1)});
_local2.push({name:"_color_ga", value:0});
_local2.push({name:"_color_gb", value:AuxFunctions.numberToG(_arg1)});
_local2.push({name:"_color_ba", value:0});
_local2.push({name:"_color_bb", value:AuxFunctions.numberToB(_arg1)});
};
return (_local2);
}
public static function frame_get(_arg1:Object):Number{
return (_arg1.currentFrame);
}
public static function _sound_pan_get(_arg1:Object):Number{
return (_arg1.soundTransform.pan);
}
public static function _color_property_get(_arg1:Object, _arg2:Array):Number{
return (_arg1.transform.colorTransform[_arg2[0]]);
}
public static function _sound_volume_set(_arg1:Object, _arg2:Number):void{
var _local3:SoundTransform = _arg1.soundTransform;
_local3.volume = _arg2;
_arg1.soundTransform = _local3;
}
public static function _autoAlpha_get(_arg1:Object):Number{
return (_arg1.alpha);
}
public static function _filter_splitter(_arg1:BitmapFilter):Array{
var _local2:Array = new Array();
if ((_arg1 is BlurFilter)){
_local2.push({name:"_blur_blurX", value:BlurFilter(_arg1).blurX});
_local2.push({name:"_blur_blurY", value:BlurFilter(_arg1).blurY});
_local2.push({name:"_blur_quality", value:BlurFilter(_arg1).quality});
} else {
trace("??");
};
return (_local2);
}
public static function init():void{
Tweener.registerSpecialProperty("_frame", frame_get, frame_set);
Tweener.registerSpecialProperty("_sound_volume", _sound_volume_get, _sound_volume_set);
Tweener.registerSpecialProperty("_sound_pan", _sound_pan_get, _sound_pan_set);
Tweener.registerSpecialProperty("_color_ra", _color_property_get, _color_property_set, ["redMultiplier"]);
Tweener.registerSpecialProperty("_color_rb", _color_property_get, _color_property_set, ["redOffset"]);
Tweener.registerSpecialProperty("_color_ga", _color_property_get, _color_property_set, ["greenMultiplier"]);
Tweener.registerSpecialProperty("_color_gb", _color_property_get, _color_property_set, ["greenOffset"]);
Tweener.registerSpecialProperty("_color_ba", _color_property_get, _color_property_set, ["blueMultiplier"]);
Tweener.registerSpecialProperty("_color_bb", _color_property_get, _color_property_set, ["blueOffset"]);
Tweener.registerSpecialProperty("_color_aa", _color_property_get, _color_property_set, ["alphaMultiplier"]);
Tweener.registerSpecialProperty("_color_ab", _color_property_get, _color_property_set, ["alphaOffset"]);
Tweener.registerSpecialProperty("_autoAlpha", _autoAlpha_get, _autoAlpha_set);
Tweener.registerSpecialPropertySplitter("_color", _color_splitter);
Tweener.registerSpecialPropertySplitter("_colorTransform", _colorTransform_splitter);
Tweener.registerSpecialProperty("_blur_blurX", _filter_property_get, _filter_property_set, [BlurFilter, "blurX"]);
Tweener.registerSpecialProperty("_blur_blurY", _filter_property_get, _filter_property_set, [BlurFilter, "blurY"]);
Tweener.registerSpecialProperty("_blur_quality", _filter_property_get, _filter_property_set, [BlurFilter, "quality"]);
Tweener.registerSpecialPropertySplitter("_filter", _filter_splitter);
Tweener.registerSpecialPropertyModifier("_bezier", _bezier_modifier, _bezier_get);
}
public static function _sound_pan_set(_arg1:Object, _arg2:Number):void{
var _local3:SoundTransform = _arg1.soundTransform;
_local3.pan = _arg2;
_arg1.soundTransform = _local3;
}
public static function _color_property_set(_arg1:Object, _arg2:Number, _arg3:Array):void{
var _local4:ColorTransform = _arg1.transform.colorTransform;
_local4[_arg3[0]] = _arg2;
_arg1.transform.colorTransform = _local4;
}
public static function _filter_property_get(_arg1:Object, _arg2:Array):Number{
var _local4:uint;
var _local7:Object;
var _local3:Array = _arg1.filters;
var _local5:Object = _arg2[0];
var _local6:String = _arg2[1];
_local4 = 0;
while (_local4 < _local3.length) {
if ((((_local3[_local4] is BlurFilter)) && ((_local5 == BlurFilter)))){
return (_local3[_local4][_local6]);
};
_local4++;
};
switch (_local5){
case BlurFilter:
_local7 = {blurX:0, blurY:0, quality:NaN};
break;
};
return (_local7[_local6]);
}
public static function _bezier_get(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Array):Number{
var _local5:uint;
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg4.length == 1){
return ((_arg1 + (_arg3 * (((2 * (1 - _arg3)) * (_arg4[0] - _arg1)) + (_arg3 * (_arg2 - _arg1))))));
};
_local5 = Math.floor((_arg3 * _arg4.length));
_local6 = ((_arg3 - (_local5 * (1 / _arg4.length))) * _arg4.length);
if (_local5 == 0){
_local7 = _arg1;
_local8 = ((_arg4[0] + _arg4[1]) / 2);
} else {
if (_local5 == (_arg4.length - 1)){
_local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2);
_local8 = _arg2;
} else {
_local7 = ((_arg4[(_local5 - 1)] + _arg4[_local5]) / 2);
_local8 = ((_arg4[_local5] + _arg4[(_local5 + 1)]) / 2);
};
};
return ((_local7 + (_local6 * (((2 * (1 - _local6)) * (_arg4[_local5] - _local7)) + (_local6 * (_local8 - _local7))))));
}
public static function frame_set(_arg1:Object, _arg2:Number):void{
_arg1.gotoAndStop(Math.round(_arg2));
}
public static function _filter_property_set(_arg1:Object, _arg2:Number, _arg3:Array):void{
var _local5:uint;
var _local8:BitmapFilter;
var _local4:Array = _arg1.filters;
var _local6:Object = _arg3[0];
var _local7:String = _arg3[1];
_local5 = 0;
while (_local5 < _local4.length) {
if ((((_local4[_local5] is BlurFilter)) && ((_local6 == BlurFilter)))){
_local4[_local5][_local7] = _arg2;
_arg1.filters = _local4;
return;
};
_local5++;
};
if (_local4 == null){
_local4 = new Array();
};
switch (_local6){
case BlurFilter:
_local8 = new BlurFilter(0, 0);
break;
};
_local8[_local7] = _arg2;
_local4.push(_local8);
_arg1.filters = _local4;
}
public static function _autoAlpha_set(_arg1:Object, _arg2:Number):void{
_arg1.alpha = _arg2;
_arg1.visible = (_arg2 > 0);
}
public static function _colorTransform_splitter(_arg1):Array{
var _local2:Array = new Array();
if (_arg1 == null){
_local2.push({name:"_color_ra", value:1});
_local2.push({name:"_color_rb", value:0});
_local2.push({name:"_color_ga", value:1});
_local2.push({name:"_color_gb", value:0});
_local2.push({name:"_color_ba", value:1});
_local2.push({name:"_color_bb", value:0});
} else {
if (_arg1.ra != undefined){
_local2.push({name:"_color_ra", value:_arg1.ra});
};
if (_arg1.rb != undefined){
_local2.push({name:"_color_rb", value:_arg1.rb});
};
if (_arg1.ga != undefined){
_local2.push({name:"_color_ba", value:_arg1.ba});
};
if (_arg1.gb != undefined){
_local2.push({name:"_color_bb", value:_arg1.bb});
};
if (_arg1.ba != undefined){
_local2.push({name:"_color_ga", value:_arg1.ga});
};
if (_arg1.bb != undefined){
_local2.push({name:"_color_gb", value:_arg1.gb});
};
if (_arg1.aa != undefined){
_local2.push({name:"_color_aa", value:_arg1.aa});
};
if (_arg1.ab != undefined){
_local2.push({name:"_color_ab", value:_arg1.ab});
};
};
return (_local2);
}
public static function _bezier_modifier(_arg1):Array{
var _local3:Array;
var _local4:uint;
var _local5:String;
var _local2:Array = [];
if ((_arg1 is Array)){
_local3 = _arg1;
} else {
_local3 = [_arg1];
};
var _local6:Object = {};
_local4 = 0;
while (_local4 < _local3.length) {
for (_local5 in _local3[_local4]) {
if (_local6[_local5] == undefined){
_local6[_local5] = [];
};
_local6[_local5].push(_local3[_local4][_local5]);
};
_local4++;
};
for (_local5 in _local6) {
_local2.push({name:_local5, parameters:_local6[_local5]});
};
return (_local2);
}
}
}//package caurina.transitions
Section 5
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var getValue:Function;
public var setValue:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
}
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 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 6
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 7
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function){
splitValues = _arg1;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 8
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _specialPropertySplitterList:Object;
private static var _engineExists:Boolean = false;
private static var _specialPropertyModifierList:Object;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null):void{
if (!_inited){
init();
};
var _local5:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4);
_specialPropertyList[_arg1] = _local5;
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local5:Number;
var _local6:Number;
var _local10:Function;
var _local11:TweenListObj;
var _local12:Number;
var _local13:String;
if ((((arguments.length < 2)) || ((arguments[0] == undefined)))){
return (false);
};
var _local4:Array = new Array();
if ((arguments[0] is Array)){
_local5 = 0;
while (_local5 < arguments[0].length) {
_local4.push(arguments[0][_local5]);
_local5++;
};
} else {
_local5 = 0;
while (_local5 < (arguments.length - 1)) {
_local4.push(arguments[_local5]);
_local5++;
};
};
var _local7:Object = arguments[(arguments.length - 1)];
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;
if (typeof(_local7.transition) == "string"){
_local13 = _local7.transition.toLowerCase();
_local10 = _transitionList[_local13];
} else {
_local10 = _local7.transition;
};
if (!Boolean(_local10)){
_local10 = _transitionList["easeoutexpo"];
};
_local5 = 0;
while (_local5 < _local4.length) {
_local11 = new TweenListObj(_local4[_local5], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), (_local7.useFrames == true), _local10);
_local11.properties = null;
_local11.onStart = _local7.onStart;
_local11.onUpdate = _local7.onUpdate;
_local11.onComplete = _local7.onComplete;
_local11.onOverwrite = _local7.onOverwrite;
_local11.onStartParams = _local7.onStartParams;
_local11.onUpdateParams = _local7.onUpdateParams;
_local11.onCompleteParams = _local7.onCompleteParams;
_local11.onOverwriteParams = _local7.onOverwriteParams;
_local11.isCaller = true;
_local11.count = _local7.count;
_local11.waitFrames = _local7.waitFrames;
_tweenList.push(_local11);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local12 = (_tweenList.length - 1);
updateTweenByIndex(_local12);
removeTweenByIndex(_local12);
};
_local5++;
};
return (true);
}
public static function init(_arg1=null):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
SpecialPropertiesDefault.init();
}
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 removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function 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 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);
};
_local2.timeStart = (_local2.timeStart + (_currentTime - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_currentTime - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function debug_getList():String{
var _local2:uint;
var _local3:uint;
var _local1 = "";
_local2 = 0;
while (_local2 < _tweenList.length) {
_local1 = (_local1 + (("[" + _local2) + "] ::\n"));
_local3 = 0;
while (_local3 < _tweenList[_local2].properties.length) {
_local1 = (_local1 + ((((" " + _tweenList[_local2].properties[_local3].name) + " -> ") + _tweenList[_local2].properties[_local3].valueComplete) + "\n"));
_local3++;
};
_local2++;
};
return (_local1);
}
public static function getVersion():String{
return ("AS3 1.25.53");
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
var tTweening:TweenListObj = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
if (_currentTime >= 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 (!(_currentTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (_currentTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
try {
tTweening.onStart.apply(tScope, tTweening.onStartParams);
} catch(e:Error) {
};
};
for (pName in tTweening.properties) {
pv = getPropertyValue(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 = (_currentTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, 0, 1, d);
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (_currentTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
setPropertyValue(tScope, pName, nv);
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
try {
tTweening.onUpdate.apply(tScope, tTweening.onUpdateParams);
} catch(e:Error) {
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
try {
tTweening.onComplete.apply(tScope, tTweening.onCompleteParams);
} catch(e:Error) {
};
};
return (!(isOver));
};
return (true);
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
_local2 = 0;
while (_local2 < _tweenList.length) {
_tweenList[_local2].timeStart = (_currentTime - (((_currentTime - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_currentTime - (((_currentTime - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_currentTime - (((_currentTime - _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 startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
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 _local5:Number;
var _local6:Number;
var _local7:String;
var _local8:String;
var _local9:Object;
var _local15:Function;
var _local16:Object;
var _local17:TweenListObj;
var _local18:Number;
var _local19:Array;
var _local20:Array;
var _local21:String;
if ((((arguments.length < 2)) || ((arguments[0] == undefined)))){
return (false);
};
var _local4:Array = new Array();
if ((arguments[0] is Array)){
_local5 = 0;
while (_local5 < arguments[0].length) {
_local4.push(arguments[0][_local5]);
_local5++;
};
} else {
_local5 = 0;
while (_local5 < (arguments.length - 1)) {
_local4.push(arguments[_local5]);
_local5++;
};
};
_local9 = arguments[(arguments.length - 1)];
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local10:Number = (isNaN(_local9.time)) ? 0 : _local9.time;
var _local11:Number = (isNaN(_local9.delay)) ? 0 : _local9.delay;
var _local12:Array = new Array();
var _local13:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true};
var _local14:Object = new Object();
for (_local7 in _local9) {
if (!_local13[_local7]){
if (_specialPropertySplitterList[_local7]){
_local19 = _specialPropertySplitterList[_local7].splitValues(_local9[_local7]);
_local5 = 0;
while (_local5 < _local19.length) {
_local12[_local19[_local5].name] = {valueStart:undefined, valueComplete:_local19[_local5].value};
_local5++;
};
} else {
if (_specialPropertyModifierList[_local7] != undefined){
_local20 = _specialPropertyModifierList[_local7].modifyValues(_local9[_local7]);
_local5 = 0;
while (_local5 < _local20.length) {
_local14[_local20[_local5].name] = {modifierParameters:_local20[_local5].parameters, modifierFunction:_specialPropertyModifierList[_local7].getValue};
_local5++;
};
} else {
_local12[_local7] = {valueStart:undefined, valueComplete:_local9[_local7]};
};
};
};
};
for (_local7 in _local14) {
if (_local12[_local7] != undefined){
_local12[_local7].modifierParameters = _local14[_local7].modifierParameters;
_local12[_local7].modifierFunction = _local14[_local7].modifierFunction;
};
};
if (typeof(_local9.transition) == "string"){
_local21 = _local9.transition.toLowerCase();
_local15 = _transitionList[_local21];
} else {
_local15 = _local9.transition;
};
if (!Boolean(_local15)){
_local15 = _transitionList["easeoutexpo"];
};
_local5 = 0;
while (_local5 < _local4.length) {
_local16 = new Object();
for (_local7 in _local12) {
_local16[_local7] = new PropertyInfoObj(_local12[_local7].valueStart, _local12[_local7].valueComplete, _local12[_local7].modifierFunction, _local12[_local7].modifierParameters);
};
_local17 = new TweenListObj(_local4[_local5], (_currentTime + ((_local11 * 1000) / _timeScale)), (_currentTime + (((_local11 * 1000) + (_local10 * 1000)) / _timeScale)), (_local9.useFrames == true), _local15);
_local17.properties = _local16;
_local17.onStart = _local9.onStart;
_local17.onUpdate = _local9.onUpdate;
_local17.onComplete = _local9.onComplete;
_local17.onOverwrite = _local9.onOverwrite;
_local17.onStartParams = _local9.onStartParams;
_local17.onUpdateParams = _local9.onUpdateParams;
_local17.onCompleteParams = _local9.onCompleteParams;
_local17.onOverwriteParams = _local9.onOverwriteParams;
_local17.rounded = _local9.rounded;
_local17.skipUpdates = _local9.skipUpdates;
removeTweensByTime(_local17.scope, _local17.properties, _local17.timeStart, _local17.timeComplete);
_tweenList.push(_local17);
if ((((_local10 == 0)) && ((_local11 == 0)))){
_local18 = (_tweenList.length - 1);
updateTweenByIndex(_local18);
removeTweenByIndex(_local18);
};
_local5++;
};
return (true);
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
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;
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_tweenList[_local2].scope == _arg1){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
private static function setPropertyValue(_arg1:Object, _arg2:String, _arg3:Number):void{
if (_specialPropertyList[_arg2] != undefined){
if (Boolean(_specialPropertyList[_arg2].parameters)){
_specialPropertyList[_arg2].setValue(_arg1, _arg3, _specialPropertyList[_arg2].parameters);
} else {
_specialPropertyList[_arg2].setValue(_arg1, _arg3);
};
} else {
_arg1[_arg2] = _arg3;
};
}
private static function getPropertyValue(_arg1:Object, _arg2:String):Number{
if (_specialPropertyList[_arg2] != undefined){
if (Boolean(_specialPropertyList[_arg2].parameters)){
return (_specialPropertyList[_arg2].getValue(_arg1, _specialPropertyList[_arg2].parameters));
};
return (_specialPropertyList[_arg2].getValue(_arg1));
} else {
};
return (!NULL!);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_tweenList[_local2].scope == _arg1){
return (true);
};
_local2++;
};
return (false);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (_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;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = _currentTime;
_local2.isPaused = true;
return (true);
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
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)){
try {
_tweenList[i].onOverwrite.apply(_tweenList[i].scope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
};
};
_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):void{
if (!_inited){
init();
};
var _local3:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2);
_specialPropertySplitterList[_arg1] = _local3;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 9
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var hasStarted:Boolean;
public var onUpdate:Function;
public var useFrames:Boolean;
public var count:Number;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var auxProperties:Object;
public var timeComplete:Number;
public var onStartParams:Array;
public var rounded:Boolean;
public var updatesSkipped:Number;
public var onUpdateParams:Array;
public var onComplete:Function;
public var properties:Object;
public var onStart:Function;
public var skipUpdates:Number;
public var scope:Object;
public var isCaller:Boolean;
public var timePaused:Number;
public var transition:Function;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
auxProperties = new Object();
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);
_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.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
};
_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 _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:uint;
while (_local2 < properties.length) {
if (_local2 > 0){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local2].name));
_local1 = (_local1 + (",valueStart:" + properties[_local2].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local2].valueComplete));
_local1 = (_local1 + "]");
_local2++;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
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 (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 (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);
}
}
}//package caurina.transitions
Section 10
//PageFlip (com.foxaweb.pageflip.PageFlip)
package com.foxaweb.pageflip {
import flash.geom.*;
import flash.display.*;
public class PageFlip {
private static function flipPoints(_arg1:Array, _arg2:Point, _arg3:Number, _arg4:Number):void{
var _local5:Number = _arg1.length;
if ((((_arg2.y == 0)) || ((_arg2.x == 0)))){
while (--_local5 >= 0) {
if (_arg2.y == 0){
_arg1[_local5].y = (_arg4 - _arg1[_local5].y);
};
if (_arg2.x == 0){
_arg1[_local5].x = (_arg3 - _arg1[_local5].x);
};
};
};
}
private static function flipDrag(_arg1:Point, _arg2:Point, _arg3:Number, _arg4:Number):void{
if (_arg2.y == 0){
_arg1.y = (_arg4 - _arg1.y);
};
if (_arg2.x == 0){
_arg1.x = (_arg3 - _arg1.x);
};
}
public static function computeFlip(_arg1:Point, _arg2:Point, _arg3:int, _arg4:int, _arg5:Boolean, _arg6:int):Object{
var _local12:Number;
var _local7:Number = (_arg1.x - (_arg3 * _arg2.x));
var _local8:Number = (_arg1.y - (_arg4 * _arg2.y));
var _local9:Point = _arg2.clone();
var _local10:int = _arg3;
var _local11:int = _arg4;
var _local13:Matrix = new Matrix();
if (!_arg5){
_local12 = _arg3;
_arg3 = _arg4;
_arg4 = _local12;
_local12 = _arg1.x;
_arg1.x = _arg1.y;
_arg1.y = _local12;
_local12 = _arg2.x;
_local9.x = _arg2.y;
_local9.y = _local12;
};
var _local14:Point = new Point(0, 0);
var _local15:Point = new Point(0, _arg4);
var _local16:Array = [null, null, null, null];
var _local17:Array = [new Point(0, 0), new Point(_arg3, 0), null, null, new Point(0, _arg4)];
flipDrag(_arg1, _local9, _arg3, _arg4);
limitPoint(_arg1, _local14, (((_arg3 * _arg3) + (_arg4 * _arg4)) * _arg6));
limitPoint(_arg1, _local15, ((_arg3 * _arg3) * _arg6));
_local16[0] = new Point(_arg1.x, _arg1.y);
var _local18:Number = (_local15.y - _arg1.y);
var _local19:Number = ((_arg3 - _arg1.x) - _local14.x);
var _local20:Number = getDx(_local18, _local19);
var _local21:Number = Math.atan2(_local18, _local20);
if (_local18 == 0){
_local21 = 0;
};
var _local22:Number = ((Math.PI / 2) - _local21);
var _local23:Number = ((_arg3 - _local16[0].x) / Math.cos(_local22));
var _local24:Number = _local23;
if ((((_local23 > _arg4)) || ((_local23 < 0)))){
_local24 = _arg4;
};
_local16[1] = new Point((_local16[0].x + (Math.cos(-(_local22)) * _local24)), (_local16[0].y + (Math.sin(-(_local22)) * _local24)));
_local16[3] = new Point((_local16[0].x + _local20), _local15.y);
if (_local23 != _local24){
_local18 = (_local14.y - _local16[1].y);
_local19 = (_arg3 - _local16[1].x);
_local20 = getDx(_local18, _local19);
_local16[2] = new Point((_local16[1].x + _local20), _local14.y);
_local17[1] = _local16[2].clone();
_local17[2] = _local16[3].clone();
_local17.splice(3, 1);
} else {
_local16.splice(2, 1);
_local17[2] = _local16[1].clone();
_local17[3] = _local16[2].clone();
};
flipPoints(_local16, _local9, _arg3, _arg4);
flipPoints(_local17, _local9, _arg3, _arg4);
if (!_arg5){
oriPoints(_local16, _local9, _arg3, _arg4);
oriPoints(_local17, _local9, _arg3, _arg4);
};
var _local25:Number = _local21;
if (_arg2.y == 0){
_local25 = -(_local25);
};
if (_arg2.x == 0){
_local25 = ((Math.PI + Math.PI) - _local25);
};
if (!_arg5){
_local25 = (Math.PI - _local25);
};
_local13.a = Math.cos(_local25);
_local13.b = Math.sin(_local25);
_local13.c = -(Math.sin(_local25));
_local13.d = Math.cos(_local25);
ordMatrix(_local13, _local9, _local10, _local11, _arg5, _local16, _local17, _local25, _local22);
if (_local24 == 0){
_local16 = null;
};
if ((((Math.abs(_local7) < 1)) && ((Math.abs(_local8) < 1)))){
_local16 = null;
};
return ({cPoints:_local16, pPoints:_local17, matrix:_local13, width:_local10, height:_local11});
}
private static function limitPoint(_arg1:Point, _arg2:Point, _arg3:Number):void{
var _local4:Number;
var _local5:Number;
var _local6:Number = (_arg1.y - _arg2.y);
var _local7:Number = (_arg1.x - _arg2.x);
var _local8:Number = (((_arg1.x - _arg2.x) * _local7) + (_local6 * _local6));
if (_local8 > _arg3){
_local4 = Math.atan2(_local6, _local7);
_local5 = Math.sqrt(_arg3);
_arg1.x = (_arg2.x + (Math.cos(_local4) * _local5));
_arg1.y = (_arg2.y + (Math.sin(_local4) * _local5));
};
}
private static function oriPoints(_arg1:Array, _arg2:Point, _arg3:Number, _arg4:Number):void{
var _local6:Number;
var _local5:Number = _arg1.length;
while (--_local5 >= 0) {
_local6 = _arg1[_local5].x;
_arg1[_local5].x = _arg1[_local5].y;
_arg1[_local5].y = _local6;
};
}
private static function getDx(_arg1:Number, _arg2:Number):Number{
return ((((_arg2 * _arg2) - (_arg1 * _arg1)) / (_arg2 * 2)));
}
public static function drawBitmapSheet(_arg1:Object, _arg2:Shape, _arg3:BitmapData, _arg4:BitmapData):void{
var _local7:Number;
var _local5:Number = _arg1.width;
var _local6:Number = _arg1.height;
var _local8:Array = _arg1.pPoints;
var _local9:Array = _arg1.cPoints;
_arg2.graphics.beginBitmapFill(_arg3, new Matrix(), false, true);
_local7 = _local8.length;
_arg2.graphics.moveTo(_local8[(_local7 - 1)].x, _local8[(_local7 - 1)].y);
while (--_local7 >= 0) {
_arg2.graphics.lineTo(_local8[_local7].x, _local8[_local7].y);
};
_arg2.graphics.endFill();
if (_local9 == null){
return;
};
_arg2.graphics.beginBitmapFill(_arg4, _arg1.matrix, false, true);
_local7 = _local9.length;
_arg2.graphics.moveTo(_local9[(_local7 - 1)].x, _local9[(_local7 - 1)].y);
while (--_local7 >= 0) {
_arg2.graphics.lineTo(_local9[_local7].x, _local9[_local7].y);
};
_arg2.graphics.endFill();
}
private static function ordMatrix(_arg1:Matrix, _arg2:Point, _arg3:Number, _arg4:Number, _arg5:Boolean, _arg6:Array, _arg7:Array, _arg8:Number, _arg9:Number):void{
if ((((_arg2.x == 1)) && ((_arg2.y == 0)))){
_arg1.tx = _arg6[0].x;
_arg1.ty = _arg6[0].y;
if (!_arg5){
_arg1.tx = ((_arg6[0].x - (Math.cos(_arg8) * _arg3)) - (Math.cos(-(_arg9)) * _arg4));
_arg1.ty = ((_arg6[0].y - (Math.sin(_arg8) * _arg3)) - (Math.sin(-(_arg9)) * _arg4));
};
};
if ((((_arg2.x == 1)) && ((_arg2.y == 1)))){
_arg1.tx = (_arg6[0].x + (Math.cos(-(_arg9)) * _arg4));
_arg1.ty = (_arg6[0].y + (Math.sin(-(_arg9)) * _arg4));
if (!_arg5){
_arg1.tx = (_arg6[0].x + (Math.cos(-(_arg9)) * _arg4));
_arg1.ty = (_arg6[0].y - (Math.sin(-(_arg9)) * _arg4));
};
};
if ((((_arg2.x == 0)) && ((_arg2.y == 0)))){
_arg1.tx = (_arg6[0].x - (Math.cos(_arg8) * _arg3));
_arg1.ty = (_arg6[0].y - (Math.sin(_arg8) * _arg3));
};
if ((((_arg2.x == 0)) && ((_arg2.y == 1)))){
_arg1.tx = ((_arg6[0].x - (Math.cos(_arg8) * _arg3)) - (Math.cos(-(_arg9)) * _arg4));
_arg1.ty = ((_arg6[0].y - (Math.sin(_arg8) * _arg3)) + (Math.sin(-(_arg9)) * _arg4));
if (!_arg5){
_arg1.tx = _arg6[0].x;
_arg1.ty = _arg6[0].y;
};
};
}
}
}//package com.foxaweb.pageflip
Section 11
//Page (com.hydrotik.book.Page)
package com.hydrotik.book {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import caurina.transitions.*;
import com.foxaweb.pageflip.*;
public class Page extends EventDispatcher {
private var _height:Number;
private var _width:Number;
private var _scope;
private var render:Shape;
public var mc1;
public var mc2:MovieClip;
private var _oPage:Page;
private var back:BitmapData;
private var front:BitmapData;
private var flip:Point;
private var _page:Sprite;
private var _name:String;
public function Page(_arg1, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:MovieClip, _arg7:MovieClip, _arg8:String){
mc1 = _arg6;
mc2 = _arg7;
_scope = _arg1;
_width = _arg2;
_height = _arg3;
_oPage = this;
_name = _arg8;
_page = new Sprite();
_page.name = _arg8;
_page.x = _arg4;
_page.y = _arg5;
_scope.addChild(_page);
render = new Shape();
_page.addChild(render);
flip = new Point(_width, _height);
reDraw();
_page.addEventListener(MouseEvent.CLICK, turnPageForward);
}
public function getName():String{
return (_name);
}
public function drawPage():void{
render.graphics.clear();
var _local1:Object = PageFlip.computeFlip(flip, new Point(1, 1), front.width, back.height, true, 1);
PageFlip.drawBitmapSheet(_local1, render, front, back);
}
public function reDraw():void{
front = new BitmapData(_width, _height, true, 0);
front.draw(mc1);
back = new BitmapData(_width, _height, true, 0);
back.draw(mc2);
drawPage();
}
private function onPageDone():void{
dispatchEvent(new PageEvent(PageEvent.FLIP_COMPLETE, _page, _oPage, true));
}
private function onPageBackDone():void{
dispatchEvent(new PageEvent(PageEvent.FLIP_COMPLETE_BACK, _page, _oPage, true));
}
public function turnPageForward(_arg1:MouseEvent=null):void{
if (_scope.flipping){
return;
};
_page.removeEventListener(MouseEvent.CLICK, turnPageForward);
_page.addEventListener(MouseEvent.CLICK, turnPageBack);
dispatchEvent(new PageEvent(PageEvent.FLIP_START, _page, _oPage, true));
Tweener.addTween(flip, {x:-(_width), y:_height, _bezier:{x:0, y:0}, time:0.5, transition:"easeoutquad", onUpdate:drawPage, onComplete:onPageDone});
}
public function turnPageBack(_arg1:MouseEvent=null):void{
if (_scope.flipping){
return;
};
dispatchEvent(new PageEvent(PageEvent.FLIP_START_BACK, _page, _oPage, true));
_page.addEventListener(MouseEvent.CLICK, turnPageForward);
_page.removeEventListener(MouseEvent.CLICK, turnPageBack);
Tweener.addTween(flip, {x:_width, y:_height, _bezier:{x:0, y:0}, time:0.75, transition:"easeinoutexpo", onUpdate:drawPage, onComplete:onPageBackDone});
}
}
}//package com.hydrotik.book
Section 12
//PageEvent (com.hydrotik.book.PageEvent)
package com.hydrotik.book {
import flash.events.*;
public class PageEvent extends Event {
public var targ;
public var page:Page;
public static const FLIP_START:String = "flipStart";
public static const FLIP_START_BACK:String = "flipStartBack";
public static const FLIP_COMPLETE_BACK:String = "flipCompleteBack";
public static const FLIP_COMPLETE:String = "flipComplete";
public function PageEvent(_arg1:String, _arg2, _arg3:Page, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
targ = _arg2;
page = _arg3;
}
}
}//package com.hydrotik.book
Section 13
//b3_17 (halcHALLOWEEN_fla.b3_17)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class b3_17 extends MovieClip {
public function b3_17(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 14
//betBtn_18 (halcHALLOWEEN_fla.betBtn_18)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class betBtn_18 extends MovieClip {
public function betBtn_18(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 15
//bigBtn_23 (halcHALLOWEEN_fla.bigBtn_23)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class bigBtn_23 extends MovieClip {
public function bigBtn_23(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 16
//btn2_44 (halcHALLOWEEN_fla.btn2_44)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class btn2_44 extends MovieClip {
public function btn2_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 17
//empty_20 (halcHALLOWEEN_fla.empty_20)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class empty_20 extends MovieClip {
public var flipping:Boolean;
public function empty_20(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package halcHALLOWEEN_fla
Section 18
//FINAL_2_26 (halcHALLOWEEN_fla.FINAL_2_26)
package halcHALLOWEEN_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class FINAL_2_26 extends MovieClip {
public var rtb:MovieClip;
public var fco:MovieClip;
public var fc:MovieClip;
public var etmm:MovieClip;
public function FINAL_2_26(){
addFrameScript(39, frame40);
}
function frame40(){
etmm.buttonMode = true;
etmm.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event){
_arg1.target.y = (_arg1.target.y + -2);
});
etmm.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event){
_arg1.target.y = (_arg1.target.y + 2);
});
etmm.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
(parent as MovieClip).gotoAndStop(1, "Menu1");
});
rtb.buttonMode = true;
rtb.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event){
_arg1.target.y = (_arg1.target.y + -2);
});
rtb.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event){
_arg1.target.y = (_arg1.target.y + 2);
});
rtb.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
(parent as MovieClip).winbg.visible = false;
(parent as MovieClip).winmain2.visible = false;
});
fc.visible = false;
fc.buttonMode = true;
fco.buttonMode = true;
fco.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event){
fc.visible = true;
});
fc.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event){
fc.visible = false;
});
fc.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
(parent as MovieClip).config.gotoTDS("fuck-me-2");
});
stop();
}
}
}//package halcHALLOWEEN_fla
Section 19
//MainTimeline (halcHALLOWEEN_fla.MainTimeline)
package halcHALLOWEEN_fla {
import flash.geom.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import com.hydrotik.book.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.xml.*;
import gs.*;
import gs.easing.*;
public dynamic class MainTimeline extends MovieClip {
public var titlebtn:MovieClip;
public var SLOT:slot;
public var bar:MovieClip;
public var slideShowWaitLast:Boolean;
public var winbg:MovieClip;
public var item:ContextMenuItem;
public var spinchnl:SoundChannel;
public var soundON:Boolean;
public var bonusshowed:Boolean;
public var icons:Array;
public var winmain2:MovieClip;
public var sred:MovieClip;
public var prevPageBig:MovieClip;
public var ic:ICON;
public var config:configManager;
public var blY:uint;
public var pagesarea:MovieClip;
public var btn1:MovieClip;
public var btn2:MovieClip;
public var btn:MovieClip;
public var colpointers:Array;
public var nowIsBonus:Boolean;
public var myContextMenu:ContextMenu;
public var menu:MovieClip;
public var closebtn:MovieClip;
public var n:uint;
public var scrollCounter:uint;
public var i:Number;
public var avaliblePages:uint;
public var p;
public var HUForm:MovieClip;
public var ecsmenu:MovieClip;
public var nextPageBig:MovieClip;
public var iconswin:Array;
public var musicCHNL:SoundChannel;
public var slotarea:MovieClip;
public var gameid:String;
public var prevPage:DisplayObject;
public var score:uint;
public var slideShowTimer:Timer;
public var k:uint;
public var slideShowForward:Boolean;
public var proceed:MovieClip;
public var bonusAvalible:Boolean;
public var colinscroll:uint;
public var adv:MovieClip;
public var pageCount:uint;
public var p1:allPages;
public var voteshowed:Boolean;
public var version:uint;
public var pa:Page;
public var cols:Array;
public var stopScrollFrames:Array;
public var close:MovieClip;
public var pagesArr:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 22, frame23, 23, frame24, 24, frame25, 25, frame26);
}
public function enablePages():void{
var _local1:Boolean;
avaliblePages = int((score / 100));
if (avaliblePages > pageCount){
if (!bonusAvalible){
winbg.gotoAndPlay(1);
winbg.visible = true;
winmain2.gotoAndPlay(1);
winmain2.visible = true;
};
bonusAvalible = true;
};
setnum();
var _local2:uint = 3;
while (_local2 < (pageCount + 1)) {
if (pagesArr[_local2]){
if (_local2 <= avaliblePages){
_local1 = false;
if (pagesArr[_local2].mc1.currentFrame != _local2){
_local1 = true;
};
pagesArr[_local2].mc1.gotoAndStop(_local2);
if ((_local2 + 1) <= avaliblePages){
if (pagesArr[_local2].mc2.currentFrame != (_local2 + 1)){
_local1 = true;
};
pagesArr[_local2].mc2.gotoAndStop((_local2 + 1));
} else {
if (pagesArr[_local2].mc2.currentFrame != (pageCount + 2)){
_local1 = true;
};
pagesArr[_local2].mc2.gotoAndStop((pageCount + 2));
};
if (_local1){
pagesArr[_local2].reDraw();
};
} else {
_local1 = false;
if (pagesArr[_local2].mc1.currentFrame < (pageCount + 1)){
_local1 = true;
};
pagesArr[_local2].mc1.gotoAndStop((104 + int((Math.random() * 5))));
pagesArr[_local2].mc2.gotoAndStop(103);
if (_local1){
pagesArr[_local2].reDraw();
};
};
};
_local2++;
};
}
public function comp(_arg1:Event):void{
if (currentFrame == 1){
gotoAndStop(1, "Menu1");
} else {
gotoAndPlay(1, "Preloader2");
};
}
public function betBTN():void{
if (soundON){
new s_bet().play();
};
SLOT.betValue.text = String((int(SLOT.betValue.text) + 2));
if (SLOT.betValue.text == "7"){
SLOT.betValue.text = "1";
};
}
public function hidebonus(_arg1:Event=null):void{
SLOT.visible = true;
}
public function prevBTN():void{
var _local1:uint;
if (((((pagesarea) && (!(pagesarea.flipping)))) && ((int(SLOT.pageNum.text) > 1)))){
_local1 = getVisiblePage(false);
if (pagesArr[_local1]){
pagesArr[_local1].turnPageBack();
};
};
}
public function makeScrollCol(_arg1:uint):void{
var _local2:Number = -10;
if (scrollCounter > 5){
_local2 = -15;
};
if (scrollCounter > stopScrollFrames[_arg1]){
_local2 = -10;
};
if (scrollCounter == (stopScrollFrames[_arg1] + 5)){
_local2 = 6;
};
if (scrollCounter == (stopScrollFrames[_arg1] + 6)){
_local2 = (-3 - 4);
};
if (scrollCounter == (stopScrollFrames[_arg1] + 7)){
_local2 = 1;
};
if (scrollCounter == (stopScrollFrames[_arg1] + 8)){
blY = 10;
colinscroll++;
if (soundON){
new s_stoproll().play();
};
if (colinscroll == 3){
colinscroll = 0;
removeEventListener(Event.ENTER_FRAME, EFscroll);
if (spinchnl){
spinchnl.stop();
};
checkWin();
};
return;
};
if ((((scrollCounter > stopScrollFrames[_arg1])) && ((scrollCounter < (stopScrollFrames[_arg1] + 5))))){
blY = (blY + -2);
};
var _local3:uint;
while (_local3 < 4) {
if ((((((colinscroll == 1)) && ((_arg1 == 0)))) || ((((colinscroll == 2)) && (!((_arg1 == 2))))))){
} else {
icons[_arg1][_local3].y = (icons[_arg1][_local3].y + _local2);
if (scrollCounter == 7){
icons[_arg1][_local3].filters = [new BlurFilter(0, blY, BitmapFilterQuality.LOW)];
};
if ((((scrollCounter > stopScrollFrames[0])) && ((scrollCounter < (stopScrollFrames[0] + 5))))){
icons[_arg1][_local3].filters = [new BlurFilter(0, blY, BitmapFilterQuality.LOW)];
};
if (scrollCounter == (stopScrollFrames[0] + 6)){
icons[_arg1][_local3].filters = [];
};
if (icons[_arg1][_local3].y <= -30){
icons[_arg1][_local3].y = (icons[_arg1][_local3].y + 120);
icons[_arg1][_local3].gotoAndStop(getNextIcon(_arg1));
};
};
_local3++;
};
}
public function makebtn1(_arg1:MovieClip):void{
_arg1.buttonMode = true;
_arg1.useHandCursor = true;
if (!_arg1.hasEventListener(MouseEvent.CLICK)){
_arg1.addEventListener(MouseEvent.CLICK, btnClick);
};
}
public function timerHandler(_arg1:TimerEvent):void{
if (slideShowForward){
nextBTN();
} else {
prevBTN();
};
if ((((getVisiblePage() == 140)) && (slideShowWaitLast))){
slideShowForward = false;
};
if (getVisiblePage() == 140){
slideShowWaitLast = !(slideShowWaitLast);
};
if (getVisiblePage() == 1){
slideShowForward = true;
};
}
public function onFlipCompleteHandler(_arg1:PageEvent):void{
pagesarea.flipping = false;
var _local2:uint = (int(_arg1.targ.name) - 2);
if (pagesarea.getChildByName(String(_local2)) != null){
pagesarea.getChildByName(String(_local2)).visible = false;
};
prevPage = _arg1.targ;
trace(_local2, avaliblePages);
if ((((((_local2 == 99)) && (!(voteshowed)))) && ((avaliblePages >= 102)))){
voteshowed = true;
HUForm.visible = true;
HUForm.gotoAndPlay(1);
SLOT.visible = false;
prevPageBig.visible = false;
nextPageBig.visible = false;
};
}
public function goBTN():void{
if (((!(hasEventListener(Event.ENTER_FRAME))) && (((int(SLOT.counter.text) - int(SLOT.betValue.text)) > 0)))){
if (soundON){
new s_go().play();
spinchnl = new s_spin().play();
};
removeWin();
score = (score + -(int(SLOT.betValue.text)));
SLOT.counter.text = String(score);
blY = 10;
scrollCounter = 0;
stopScrollFrames[0] = (5 + (10 * (2 + int((Math.random() * 2)))));
stopScrollFrames[1] = ((stopScrollFrames[0] + 5) + (10 * (1 + int((Math.random() * 2)))));
stopScrollFrames[2] = ((stopScrollFrames[1] + 5) + (10 * (1 + int((Math.random() * 2)))));
addEventListener(Event.ENTER_FRAME, EFscroll);
};
}
function frame2(){
stop();
bar.width = 1;
loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
btn1.buttonMode = true;
btn2.buttonMode = true;
btn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (btn1.alpha == 1){
btn1.alpha = 0.01;
} else {
btn1.alpha = 1;
};
});
btn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (btn2.alpha == 1){
btn2.alpha = 0.01;
} else {
btn2.alpha = 1;
};
});
}
public function menuCLICK(_arg1:Event):void{
switch (_arg1.target.name){
case "btn_start":
menu.highlight.visible = false;
gotoAndStop(1, "Game");
break;
case "btn_spec":
config.gotoTDS("premium-hentai");
break;
case "btn_mg":
config.gotoTDS("69-lesbians");
break;
case "btn_inst":
gotoAndStop(1, "Splash2");
break;
case "btn_rec":
gotoAndStop(1, "Splash1");
break;
case "titlebtn":
config.gotoTDS("title");
break;
};
}
function frame1(){
gameid = "halc-slot-6";
version = 1;
config = new configManager(gameid, version, stage, loaderInfo.loaderURL);
bonusAvalible = false;
score = 100;
nowIsBonus = false;
voteshowed = false;
bonusshowed = false;
soundON = true;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
loaderInfo.addEventListener(Event.COMPLETE, comp);
}
function frame23(){
stop();
config.addArea("menu", adv);
SoundMixer.stopAll();
if (soundON){
musicCHNL = new s_music().play(0, int.MAX_VALUE);
};
titlebtn.buttonMode = true;
titlebtn.addEventListener(MouseEvent.CLICK, menuCLICK);
mkbtn(menu.btn_start);
mkbtn(menu.btn_spec);
mkbtn(menu.btn_mg);
mkbtn(menu.btn_inst);
mkbtn(menu.btn_rec);
menu.highlight.visible = false;
myContextMenu = new ContextMenu();
item = new ContextMenuItem("SOUND");
myContextMenu.customItems.push(item);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler2);
item = new ContextMenuItem("MORE GAMES");
myContextMenu.customItems.push(item);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler3);
stage.showDefaultContextMenu = false;
contextMenu = myContextMenu;
}
function frame25(){
close.buttonMode = true;
close.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
gotoAndStop(1, "Menu1");
});
sred.buttonMode = true;
sred.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
config.gotoTDS("splash1");
gotoAndStop(1, "Menu1");
});
}
public function keyDownHandler(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == Keyboard.SPACE)) && (SLOT.visible))){
goBTN();
};
if (_arg1.keyCode == Keyboard.LEFT){
slideShowTimer.stop();
prevBTN();
};
if (_arg1.keyCode == Keyboard.RIGHT){
slideShowTimer.stop();
nextBTN();
};
if ((((_arg1.keyCode == Keyboard.UP)) && (SLOT.visible))){
betBTN();
};
if (_arg1.keyCode == Keyboard.ESCAPE){
ecsmenu.visible = !(ecsmenu.visible);
};
if ((((((_arg1.keyCode == Keyboard.ENTER)) && (SLOT))) && (!(ecsmenu.visible)))){
SLOT.visible = !(SLOT.visible);
nextPageBig.visible = !(nextPageBig.visible);
prevPageBig.visible = !(prevPageBig.visible);
};
if ((((_arg1.keyCode == Keyboard.ENTER)) && (ecsmenu.visible))){
fn(null);
};
if ((((_arg1.keyCode > 48)) && ((_arg1.keyCode < 58)))){
slideShowTimer.reset();
slideShowTimer.delay = ((_arg1.keyCode - 48) * 1000);
slideShowTimer.start();
};
if (_arg1.keyCode == 48){
slideShowTimer.stop();
};
}
function frame24(){
config.addArea("game", adv);
HUForm.hubtn1.buttonMode = true;
HUForm.hubtn2.buttonMode = true;
HUForm.hubtn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
config.gotoTDS("hu");
});
HUForm.hubtn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
config.gotoTDS("hu");
});
HUForm.submit.addEventListener(MouseEvent.CLICK, submitf1);
HUForm.visible = false;
HUForm.stop();
HUForm.close.buttonMode = true;
HUForm.close.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
HUForm.visible = false;
HUForm.stop();
proceed.visible = true;
});
proceed.visible = false;
proceed.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
config.gotoTDS("proceed");
proceed.visible = false;
});
proceed.buttonMode = true;
winbg.stop();
winbg.visible = false;
winmain2.stop();
winmain2.visible = false;
slideShowTimer = new Timer(1000);
slideShowForward = true;
slideShowWaitLast = false;
iconswin = [];
cols = [[], [], []];
colpointers = [0, 0, 0];
scrollCounter = 0;
blY = 10;
stopScrollFrames = [25];
colinscroll = 0;
avaliblePages = 3;
pagesArr = [];
slideShowTimer.addEventListener("timer", timerHandler);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
pageCount = 101;
i = pageCount;
while (i > 0) {
p = new allPages();
p.cacheAsBitmap = true;
p.gotoAndStop(i);
p1 = new allPages();
p1.cacheAsBitmap = true;
p1.gotoAndStop((i + 1));
if (!bonusAvalible){
if (i > 3){
p.gotoAndStop((104 + int((Math.random() * 5))));
};
if (i >= 3){
p1.gotoAndStop(103);
};
};
pa = new Page(pagesarea, 275, 400, 275, 0, p, p1, String(i));
pagesArr[i] = pa;
if (i > 1){
pagesarea.getChildByName(String(i)).visible = false;
};
pa.addEventListener(PageEvent.FLIP_START, onFlipStartHandler);
pa.addEventListener(PageEvent.FLIP_START_BACK, onFlipStartBackHandler);
pa.addEventListener(PageEvent.FLIP_COMPLETE, onFlipCompleteHandler);
pa.addEventListener(PageEvent.FLIP_COMPLETE_BACK, onFlipCompleteBackHandler);
i = (i - 2);
};
i = 0;
while (i < 3) {
n = 0;
while (n < 9) {
k = 1;
while (k < 8) {
cols[i].push(k);
k++;
};
n++;
};
i++;
};
cols[0].sort(shuffle);
cols[1].sort(shuffle);
cols[2].sort(shuffle);
if (SLOT == null){
SLOT = new slot();
SLOT.x = 200;
SLOT.y = 5;
slotarea.addChild(SLOT);
};
if (!slotarea.contains(SLOT)){
slotarea.addChild(SLOT);
};
SLOT.counter.text = String(score);
SLOT.cacheAsBitmap = true;
SLOT.winMsg.visible = false;
SLOT.patch.visible = false;
stage.addEventListener(MouseEvent.MOUSE_UP, MU);
if (!SLOT.hasEventListener(MouseEvent.MOUSE_DOWN)){
SLOT.addEventListener(MouseEvent.MOUSE_DOWN, MD);
};
if (!SLOT.hasEventListener(MouseEvent.MOUSE_UP)){
SLOT.addEventListener(MouseEvent.MOUSE_UP, MU);
};
makebtn1(SLOT.goBtn);
makebtn1(SLOT.betBtn);
makebtn1(SLOT.nextPageSml);
makebtn1(SLOT.prevPageSml);
makebtn1(nextPageBig);
makebtn1(prevPageBig);
if (SLOT.iconsArea.numChildren == 0){
icons = [[], [], []];
n = 0;
while (n < 3) {
k = 0;
while (k < 4) {
ic = new ICON();
ic.winRec.gotoAndStop(1);
ic.gotoAndStop(getNextIcon(n));
SLOT.iconsArea.addChild(ic);
ic.y = ((30 * k) - (30 / 2));
ic.x = (30 * n);
icons[n][k] = ic;
k++;
};
n++;
};
};
stage.showDefaultContextMenu = false;
contextMenu = myContextMenu;
if (!bonusAvalible){
enablePages();
} else {
avaliblePages = int((score / 100));
setnum();
};
if (ecsmenu == null){
ecsmenu = new esc();
ecsmenu.x = 165;
ecsmenu.y = 152;
};
if (!contains(ecsmenu)){
addChild(ecsmenu);
};
ecsmenu.addEventListener("OK", fn);
ecsmenu.visible = false;
ecsmenu.okbtn.useHandCursor = true;
ecsmenu.okbtn.buttonMode = true;
if (!ecsmenu.okbtn.hasEventListener(MouseEvent.CLICK)){
ecsmenu.okbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
ecsmenu.dispatchEvent(new Event("OK"));
});
};
ecsmenu.cancelbtn.useHandCursor = true;
ecsmenu.cancelbtn.buttonMode = true;
if (!ecsmenu.cancelbtn.hasEventListener(MouseEvent.CLICK)){
ecsmenu.cancelbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
ecsmenu.visible = false;
});
};
SLOT.pageNum.text = "001";
stop();
}
public function getNextIcon(_arg1:uint):uint{
var _local2 = colpointers;
var _local3 = _arg1;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (colpointers[_arg1] == cols[_arg1].length){
colpointers[_arg1] = 0;
};
return (cols[_arg1][colpointers[_arg1]]);
}
public function btnClick(_arg1:Event=null):void{
if (_arg1){
_arg1.target.play();
};
if (_arg1.target.name == "betBtn"){
betBTN();
};
if ((((_arg1.target.name == "nextPageSml")) || ((_arg1.target.name == "nextPageBig")))){
nextBTN();
};
if ((((_arg1.target.name == "prevPageSml")) || ((_arg1.target.name == "prevPageBig")))){
prevBTN();
};
if (_arg1.target.name == "goBtn"){
goBTN();
};
}
public function onFlipStartHandler(_arg1:PageEvent):void{
if (soundON){
new s_page().play();
};
pagesarea.flipping = true;
SLOT.pageNum.text = String((int(SLOT.pageNum.text) + 2));
if (SLOT.pageNum.text.length == 1){
SLOT.pageNum.text = ("00" + SLOT.pageNum.text);
};
if (SLOT.pageNum.text.length == 2){
SLOT.pageNum.text = ("0" + SLOT.pageNum.text);
};
var _local2:uint = (int(_arg1.targ.name) + 2);
if (pagesarea.getChildByName(String(_local2)) != null){
pagesarea.getChildByName(String(_local2)).visible = true;
};
if (prevPage != null){
pagesarea.setChildIndex(_arg1.targ, (pagesarea.numChildren - 1));
};
}
public function nextBTN():void{
var _local1:uint;
if (((((pagesarea) && (!(pagesarea.flipping)))) && ((int(SLOT.pageNum.text) < (pageCount + 1))))){
_local1 = getVisiblePage();
if (pagesArr[_local1]){
pagesArr[_local1].turnPageForward();
};
};
}
public function submitf1(_arg1:Event):void{
var _local2:URLRequest = new URLRequest("https://secure.pimpboss.com/forms/signup_verifyform.php");
var _local3:URLVariables = new URLVariables();
_local3.ps = "1";
_local3.nc = "0";
_local3.nt = "0";
_local3.freesites = "DYNAMIC";
_local3.site = "4";
_local3.product_id = "9";
_local3.nostate = "1";
_local3.wmid = "300162";
_local3.username = HUForm.username.text;
_local3.password = HUForm.pass.text;
_local3.email = HUForm.email.text;
_local2.method = URLRequestMethod.POST;
_local2.data = _local3;
navigateToURL(_local2, "_blank");
var _local4:URLLoader = new URLLoader();
_local4.load(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=customsplash1")));
HUForm.visible = false;
HUForm.stop();
proceed.visible = true;
proceed.gotoAndPlay(1);
}
public function MD(_arg1:MouseEvent):void{
var _local4:MovieClip;
var _local2:Boolean;
var _local3:uint;
while (_local3 < SLOT.numChildren) {
_local4 = (SLOT.getChildAt(_local3) as MovieClip);
if (((((_local4) && (_local4.buttonMode))) && (_local4.hitTestPoint(_arg1.stageX, _arg1.stageY, true)))){
_local2 = false;
};
_local3++;
};
if (_local2){
SLOT.startDrag(false, new Rectangle(0, 0, (550 - SLOT.width), ((400 - SLOT.height) + 10)));
};
}
public function MU(_arg1:MouseEvent):void{
if (SLOT){
SLOT.stopDrag();
};
}
public function onFlipStartBackHandler(_arg1:PageEvent):void{
if (soundON){
new s_page().play();
};
pagesarea.flipping = true;
SLOT.pageNum.text = String((int(SLOT.pageNum.text) - 2));
if (SLOT.pageNum.text.length == 1){
SLOT.pageNum.text = ("00" + SLOT.pageNum.text);
};
if (SLOT.pageNum.text.length == 2){
SLOT.pageNum.text = ("0" + SLOT.pageNum.text);
};
var _local2:uint = (int(_arg1.targ.name) - 2);
if (pagesarea.getChildByName(String(_local2)) != null){
pagesarea.getChildByName(String(_local2)).visible = true;
};
if (prevPage != null){
pagesarea.setChildIndex(_arg1.targ, (pagesarea.numChildren - 1));
};
}
public function checkWin():void{
var id:*;
var id1:*;
var kk:uint;
var b:MovieClip;
var k:uint;
var allwin:Function = function ():void{
iconswin[0].winRec.gotoAndPlay(2);
iconswin[1].winRec.gotoAndPlay(2);
iconswin[2].winRec.gotoAndPlay(2);
};
iconswin = [];
var win:Array = [];
var am:uint;
var n:uint;
while (n < 3) {
k = 0;
while (k < 4) {
if (icons[n][k].y == 15){
win[n] = icons[n][k].currentFrame;
iconswin[n] = icons[n][k];
};
k = (k + 1);
};
n = (n + 1);
};
if ((((((win[0] == 1)) && ((win[1] == 1)))) && ((win[2] == 1)))){
allwin();
am = 150;
if (soundON){
new s_win3().play();
};
} else {
if ((((((win[0] == 1)) || ((win[1] == 1)))) || ((win[2] == 1)))){
if (soundON){
new s_bell().play();
};
};
};
if ((((((win[0] == 2)) && ((win[1] == 2)))) && ((win[2] == 2)))){
allwin();
am = 100;
if (soundON){
new s_win_big1().play();
};
} else {
if ((((((win[0] == 2)) || ((win[1] == 2)))) || ((win[2] == 2)))){
if (soundON){
new s_seven().play();
};
};
};
if ((((((win[0] == 3)) && ((win[1] == 3)))) && ((win[2] == 3)))){
allwin();
if (soundON){
new s_win1().play();
};
am = 150;
};
if ((((((win[0] == 4)) && ((win[1] == 4)))) && ((win[2] == 4)))){
if (soundON){
new s_win2().play();
};
allwin();
am = 200;
};
n = 0;
while (n < 3) {
if (win[n] == 5){
iconswin[n].winRec.gotoAndPlay(2);
if (am == 20){
am = 250;
};
if (am == 10){
am = 20;
};
if (am == 0){
am = 10;
};
};
n = (n + 1);
};
if ((((am > 0)) && ((am < 250)))){
if (soundON){
new s_cherry().play();
};
};
if (am == 250){
if (soundON){
new s_win_big2().play();
};
};
if ((((((win[0] == 6)) && ((win[1] == 6)))) && ((win[2] == 6)))){
am = 100;
allwin();
if (soundON){
new s_win3().play();
};
};
var dont:Boolean;
if ((((((win[0] == 7)) && ((win[1] == 7)))) && ((win[2] == 7)))){
iconswin[0].winRec.gotoAndPlay(2);
iconswin[1].winRec.gotoAndPlay(2);
iconswin[2].winRec.gotoAndPlay(2);
am = 100;
if (soundON){
new s_win3().play();
};
} else {
if ((((((((win[0] == 7)) && ((win[1] == 7)))) || ((((win[1] == 7)) && ((win[2] == 7)))))) || ((((win[0] == 7)) && ((win[2] == 7)))))){
if (win[0] == 7){
iconswin[0].winRec.gotoAndPlay(2);
};
if (win[1] == 7){
iconswin[1].winRec.gotoAndPlay(2);
};
if (win[2] == 7){
iconswin[2].winRec.gotoAndPlay(2);
};
am = 70;
if (soundON){
new s_win3().play();
};
} else {
if ((((((win[0] == 7)) || ((win[1] == 7)))) || ((win[2] == 7)))){
if (win[0] == 7){
iconswin[0].winRec.gotoAndPlay(2);
};
if (win[1] == 7){
iconswin[1].winRec.gotoAndPlay(2);
};
if (win[2] == 7){
iconswin[2].winRec.gotoAndPlay(2);
};
dont = true;
am = 50;
if (soundON){
new s_win3().play();
};
};
};
};
if ((((((am == 0)) && ((((((win[0] == 5)) || ((win[1] == 5)))) || ((win[2] == 5)))))) && ((((((win[0] == 7)) || ((win[1] == 7)))) || ((win[2] == 7)))))){
if ((((win[0] == 7)) || ((win[0] == 5)))){
iconswin[0].winRec.gotoAndPlay(2);
};
if ((((win[1] == 7)) || ((win[1] == 5)))){
iconswin[1].winRec.gotoAndPlay(2);
};
if ((((win[2] == 7)) || ((win[2] == 5)))){
iconswin[2].winRec.gotoAndPlay(2);
};
am = 100;
if (soundON){
new s_win3().play();
};
};
if ((((am == 0)) && ((win[0] == win[1])))){
iconswin[0].winRec.gotoAndPlay(2);
iconswin[1].winRec.gotoAndPlay(2);
am = 20;
if (soundON){
new s_win3().play();
};
};
if ((((am == 0)) && ((win[2] == win[1])))){
iconswin[2].winRec.gotoAndPlay(2);
iconswin[1].winRec.gotoAndPlay(2);
am = 20;
if (soundON){
new s_win3().play();
};
};
if ((((am == 0)) && ((win[0] == win[2])))){
iconswin[0].winRec.gotoAndPlay(2);
iconswin[2].winRec.gotoAndPlay(2);
am = 20;
if (soundON){
new s_win3().play();
};
};
if (!dont){
am = (am * int(SLOT.betValue.text));
};
if (am > 0){
SLOT.winMsg.visible = true;
SLOT.patch.visible = true;
SLOT.winMsg.text = ("WIN: " + am);
score = (score + am);
};
enablePages();
}
public function EFscroll(_arg1:Event):void{
scrollCounter++;
if (colinscroll == 0){
makeScrollCol(0);
makeScrollCol(1);
makeScrollCol(2);
};
if (colinscroll == 1){
makeScrollCol(1);
makeScrollCol(2);
};
if (colinscroll == 2){
makeScrollCol(2);
};
}
function frame26(){
btn.buttonMode = true;
btn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (btn.currentFrame == 1){
btn.gotoAndStop(2);
} else {
config.gotoTDS("splash2");
gotoAndStop(1, "Menu1");
};
});
closebtn.buttonMode = true;
closebtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
gotoAndStop(1, "Menu1");
});
}
public function removeWin():void{
SLOT.winMsg.visible = false;
SLOT.patch.visible = false;
var _local1:uint;
while (_local1 < 3) {
if (iconswin[_local1]){
iconswin[_local1].winRec.gotoAndStop(1);
};
_local1++;
};
}
public function update(_arg1:ProgressEvent):void{
bar.width = int((Math.floor(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal)) * 2));
}
public function fn(_arg1:Event):void{
removeChild(ecsmenu);
if (((!((slotarea == null))) && (slotarea.contains(SLOT)))){
slotarea.removeChild(SLOT);
};
removeWin();
gotoAndStop(1, "Menu1");
}
public function onFlipCompleteBackHandler(_arg1:PageEvent):void{
pagesarea.flipping = false;
var _local2:uint = (int(_arg1.targ.name) + 2);
if (pagesarea.getChildByName(String(_local2)) != null){
pagesarea.getChildByName(String(_local2)).visible = false;
};
prevPage = _arg1.targ;
}
public function setnum():void{
if (avaliblePages < 3){
avaliblePages = 3;
};
if (avaliblePages > (pageCount + 1)){
avaliblePages = (pageCount + 1);
};
SLOT.avaliblePages.text = String(avaliblePages);
if (SLOT.avaliblePages.text.length == 1){
SLOT.avaliblePages.text = ("00" + SLOT.avaliblePages.text);
};
if (SLOT.avaliblePages.text.length == 2){
SLOT.avaliblePages.text = ("0" + SLOT.avaliblePages.text);
};
if (SLOT.pageNum.text.length == 1){
SLOT.pageNum.text = ("00" + SLOT.pageNum.text);
};
if (SLOT.pageNum.text.length == 2){
SLOT.pageNum.text = ("0" + SLOT.pageNum.text);
};
}
public function getVisiblePage(_arg1:Boolean=true):uint{
var _local5:DisplayObject;
var _local2:Array = [];
var _local3:MovieClip = pagesarea;
var _local4:uint;
while (_local4 < _local3.numChildren) {
_local5 = _local3.getChildAt(_local4);
if (((_local5) && (_local5.visible))){
_local2.push(_local5.name);
};
_local4++;
};
_local2.sort(Array.NUMERIC);
if (_local2){
if (_arg1){
return (int(_local2[(_local2.length - 1)]));
};
return (int(_local2[0]));
//unresolved jump
};
return (0);
}
public function menuItemSelectHandler2(_arg1:ContextMenuEvent):void{
soundON = !(soundON);
var _local2:SoundTransform = musicCHNL.soundTransform;
if (_local2.volume == 1){
SoundMixer.stopAll();
_local2.volume = 0;
} else {
_local2.volume = 1;
musicCHNL = new s_music().play(0, int.MAX_VALUE);
};
musicCHNL.soundTransform = _local2;
}
public function menuItemSelectHandler3(_arg1:ContextMenuEvent):void{
config.gotoTDS("more-games");
}
public function shuffle(_arg1, _arg2):int{
return ((Math.round((Math.random() * 2)) - 1));
}
public function mkbtn(_arg1:MovieClip):void{
var chngClr:Function;
var chngClr1:Function;
var m = _arg1;
chngClr = function (_arg1:Event):void{
menu.highlight.visible = true;
menu.highlight.y = (_arg1.target.y - (menu.highlight.height / 2));
};
chngClr1 = function (_arg1:Event):void{
if (((menu) && (menu.highlight))){
menu.highlight.visible = false;
};
};
m.buttonMode = true;
m.addEventListener(MouseEvent.CLICK, menuCLICK);
m.addEventListener(MouseEvent.MOUSE_OVER, chngClr);
m.addEventListener(MouseEvent.MOUSE_OUT, chngClr1);
}
}
}//package halcHALLOWEEN_fla
Section 20
//nextPageSml_16 (halcHALLOWEEN_fla.nextPageSml_16)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class nextPageSml_16 extends MovieClip {
public function nextPageSml_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 21
//prevPageSml_15 (halcHALLOWEEN_fla.prevPageSml_15)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class prevPageSml_15 extends MovieClip {
public function prevPageSml_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 22
//Splash_NON_NG2_31 (halcHALLOWEEN_fla.Splash_NON_NG2_31)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class Splash_NON_NG2_31 extends MovieClip {
public function Splash_NON_NG2_31(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 23
//start_5 (halcHALLOWEEN_fla.start_5)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class start_5 extends MovieClip {
public var btn_inst:MovieClip;
public var btn_rec:MovieClip;
public var highlight:MovieClip;
public var btn_mg:MovieClip;
public var btn_spec:MovieClip;
public var btn_start:MovieClip;
public function start_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcHALLOWEEN_fla
Section 24
//winRec_22 (halcHALLOWEEN_fla.winRec_22)
package halcHALLOWEEN_fla {
import flash.display.*;
public dynamic class winRec_22 extends MovieClip {
public function winRec_22(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndPlay(2);
}
}
}//package halcHALLOWEEN_fla
Section 25
//allPages (allPages)
package {
import flash.display.*;
public dynamic class allPages extends MovieClip {
}
}//package
Section 26
//configManager (configManager)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class configManager extends MovieClip {
var showonload:String;// = null
var popupurl:String;// = ""
var areas:Dictionary;
public var values:Array;
var gid:String;
var ver:uint;
var areacontent:Dictionary;
var configXML:XML;
var refUrl:String;
public function configManager(_arg1:String, _arg2:uint, _arg3:Stage, _arg4:String):void{
var ioErrorHandler:Function;
var loadXML:Function;
var gameid = _arg1;
var version = _arg2;
var st = _arg3;
var url = _arg4;
configXML = <config></config>
;
areas = new Dictionary(true);
areacontent = new Dictionary(true);
values = [];
super();
ioErrorHandler = function (_arg1:Event):void{
trace("config fail");
};
loadXML = function (_arg1:Event):void{
var k:uint;
var tmpfn:Function;
var e = _arg1;
configXML = new XML(e.target.data);
var i:uint;
while (i < configXML.stages.stage.length()) {
k = 0;
while (k < configXML.stages.stage[i].banners.banner.length()) {
if (configXML.stages.stage[i].banners.banner[k].@autoload == "true"){
trace(((("get content " + configXML.stages.stage[i].@name) + " loc:") + configXML.stages.stage[i].banners.banner[k].@location));
getContent(configXML.stages.stage[i].@name, k, configXML.stages.stage[i].banners.banner[k].@location, configXML.stages.stage[i].banners.banner[k].@x, configXML.stages.stage[i].banners.banner[k].@y, configXML.stages.stage[i].banners.banner[k].@href);
};
if (configXML.stages.stage[i].@name == "popup"){
tmpfn = function (_arg1:Event):void{
if (popupurl != ""){
navigateToURL(new URLRequest(popupurl), "_blank");
};
st.removeEventListener(MouseEvent.CLICK, tmpfn);
};
st.addEventListener(MouseEvent.CLICK, tmpfn);
popupurl = configXML.stages.stage[i].banners.banner[k].@href;
};
k = (k + 1);
};
i = (i + 1);
};
i = 0;
while (i < configXML.values.value.length()) {
if (String(configXML.values.value[i].@stagename).length > 0){
values[configXML.values.value[i].@name] = [configXML.values.value[i].@stagename, configXML.values.value[i].@text];
} else {
values[String(configXML.values.value[i].@name)] = String(configXML.values.value[i].@value);
};
i = (i + 1);
};
dispatchEvent(new Event("CONFIGLOADED"));
trace("config loaded\n\n");
};
gid = gameid;
ver = version;
refUrl = url;
var loader:URLLoader = new URLLoader();
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, ioErrorHandler);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest(((((((("http://config.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&ref=") + escape(refUrl)) + "&player=") + Capabilities.version)));
}
public function gotoTDS(_arg1:String){
navigateToURL(new URLRequest(((((("http://tds.mutanky.com/?gameid=" + gid) + "&action=") + _arg1) + "&ref=") + escape(refUrl))), "_blank");
}
public function addArea(_arg1:String, _arg2:MovieClip):void{
var bannerid:uint;
var i:uint;
var k:uint;
var id = _arg1;
var area = _arg2;
if (areas[id] == undefined){
areas[id] = area;
if (areacontent[id] == undefined){
areacontent[id] = [];
i = 0;
while (i < configXML.stages.stage.length()) {
if (String(configXML.stages.stage[i].@name) == id){
k = 0;
while (k < configXML.stages.stage[i].banners.banner.length()) {
getContent(configXML.stages.stage[i].@name, k, configXML.stages.stage[i].banners.banner[k].@location, configXML.stages.stage[i].banners.banner[k].@x, configXML.stages.stage[i].banners.banner[k].@y, configXML.stages.stage[i].banners.banner[k].@href);
k = (k + 1);
};
};
i = (i + 1);
};
};
};
bannerid = int((Math.random() * areacontent[id].length));
if (((((!((areacontent[id][bannerid] == null))) && (!((areacontent[id][bannerid] == undefined))))) && (!(area.contains(areacontent[id][bannerid]))))){
area.addChild(areacontent[id][bannerid]);
dispatchEvent(new Event(("LOADED_" + id)));
if (areacontent[id][bannerid].href != ""){
areacontent[id][bannerid].addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
navigateToURL(new URLRequest(areacontent[id][bannerid].href), "_blank");
});
};
} else {
showonload = id;
};
trace((("start " + id) + " area"));
}
function getContent(_arg1:String, _arg2:uint, _arg3:String, _arg4:Number, _arg5:Number, _arg6:String):void{
var loadcontent:Function;
var id = _arg1;
var arrid = _arg2;
var loc = _arg3;
var x = _arg4;
var y = _arg5;
var href = _arg6;
loadcontent = function (_arg1:Event):void{
var bannerid:uint;
var e = _arg1;
if (areacontent[id] == undefined){
areacontent[id] = [];
};
e.target.content.x = x;
e.target.content.y = y;
e.target.content.href = href;
e.target.content.gameid = gid;
e.target.content.version = ver;
areacontent[id][arrid] = e.target.content;
if (showonload == id){
bannerid = int((Math.random() * areacontent[id].length));
areas[id].addChild(areacontent[id][bannerid]);
if (areacontent[id][bannerid].href != ""){
areacontent[id][bannerid].addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
navigateToURL(new URLRequest(areacontent[id][bannerid].href), "_blank");
});
};
};
trace("content loaded");
trace(("LOADED_" + id));
dispatchEvent(new Event(("LOADED_" + id)));
};
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadcontent);
loader.load(new URLRequest(loc));
}
}
}//package
Section 27
//esc (esc)
package {
import flash.display.*;
public dynamic class esc extends MovieClip {
public var okbtn:MovieClip;
public var cancelbtn:MovieClip;
}
}//package
Section 28
//ICON (ICON)
package {
import flash.display.*;
public dynamic class ICON extends MovieClip {
public var winRec:MovieClip;
}
}//package
Section 29
//s_bell (s_bell)
package {
import flash.media.*;
public dynamic class s_bell extends Sound {
}
}//package
Section 30
//s_bet (s_bet)
package {
import flash.media.*;
public dynamic class s_bet extends Sound {
}
}//package
Section 31
//s_bonus (s_bonus)
package {
import flash.media.*;
public dynamic class s_bonus extends Sound {
}
}//package
Section 32
//s_cherry (s_cherry)
package {
import flash.media.*;
public dynamic class s_cherry extends Sound {
}
}//package
Section 33
//s_go (s_go)
package {
import flash.media.*;
public dynamic class s_go extends Sound {
}
}//package
Section 34
//s_music (s_music)
package {
import flash.media.*;
public dynamic class s_music extends Sound {
}
}//package
Section 35
//s_page (s_page)
package {
import flash.media.*;
public dynamic class s_page extends Sound {
}
}//package
Section 36
//s_seven (s_seven)
package {
import flash.media.*;
public dynamic class s_seven extends Sound {
}
}//package
Section 37
//s_spin (s_spin)
package {
import flash.media.*;
public dynamic class s_spin extends Sound {
}
}//package
Section 38
//s_stoproll (s_stoproll)
package {
import flash.media.*;
public dynamic class s_stoproll extends Sound {
}
}//package
Section 39
//s_win_big1 (s_win_big1)
package {
import flash.media.*;
public dynamic class s_win_big1 extends Sound {
}
}//package
Section 40
//s_win_big2 (s_win_big2)
package {
import flash.media.*;
public dynamic class s_win_big2 extends Sound {
}
}//package
Section 41
//s_win1 (s_win1)
package {
import flash.media.*;
public dynamic class s_win1 extends Sound {
}
}//package
Section 42
//s_win2 (s_win2)
package {
import flash.media.*;
public dynamic class s_win2 extends Sound {
}
}//package
Section 43
//s_win3 (s_win3)
package {
import flash.media.*;
public dynamic class s_win3 extends Sound {
}
}//package
Section 44
//slot (slot)
package {
import flash.display.*;
import flash.text.*;
public dynamic class slot extends MovieClip {
public var betValue:TextField;
public var patch:MovieClip;
public var winMsg:TextField;
public var iconsArea:MovieClip;
public var betBtn:MovieClip;
public var prevPageSml:MovieClip;
public var avaliblePages:TextField;
public var goBtn:MovieClip;
public var pageNum:TextField;
public var counter:TextField;
public var nextPageSml:MovieClip;
}
}//package
Section 45
//Vo_1 (Vo_1)
package {
import flash.media.*;
public dynamic class Vo_1 extends Sound {
}
}//package
Section 46
//Vo_2 (Vo_2)
package {
import flash.media.*;
public dynamic class Vo_2 extends Sound {
}
}//package
Section 47
//Vo_3 (Vo_3)
package {
import flash.media.*;
public dynamic class Vo_3 extends Sound {
}
}//package