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.events.*;
import flash.display.*;
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.events.*;
import flash.geom.*;
import flash.display.*;
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
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _target:Object;
protected var _visible:Boolean;
protected var _tween:TweenLite;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
}
}//package gs.plugins
Section 14
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _a:Array;
protected var _info:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
public function init(_arg1:Array, _arg2:Array):void{
_a = _arg1;
var _local3:int = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
}
}//package gs.plugins
Section 15
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
protected var _target:MovieClip;
public var frame:int;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
}
}//package gs.plugins
Section 16
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 17
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import gs.*;
import flash.geom.*;
import flash.display.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _target:DisplayObject;
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (!(_arg1 is DisplayObject)){
return (false);
};
var _local4:ColorTransform = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
}
}//package gs.plugins
Section 18
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var propName:String;
public var onComplete:Function;
public var round:Boolean;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 19
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class VisiblePlugin extends TweenPlugin {
protected var _target:Object;
protected var _visible:Boolean;
protected var _tween:TweenLite;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
}
}//package gs.plugins
Section 20
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _target:Object;
protected var _st:SoundTransform;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
}
}//package gs.plugins
Section 21
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var start:Number;
public var index:uint;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 22
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 23
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var started:Boolean;
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var tweens:Array;
public var vars:Object;
public var ease:Function;
public var exposedVars:Object;
public var initTime:Number;
public var combinedTimeScale:Number;
public static const version:Number = 10.091;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
var _local4:int = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
var _local2:Number = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
var _local2:uint = (currentTime = getTimer());
var _local3:Dictionary = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local3:Object;
var _local2:Dictionary = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 24
//b3_31 (halcv5_fla.b3_31)
package halcv5_fla {
import flash.display.*;
public dynamic class b3_31 extends MovieClip {
public function b3_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 25
//betBtn_32 (halcv5_fla.betBtn_32)
package halcv5_fla {
import flash.display.*;
public dynamic class betBtn_32 extends MovieClip {
public function betBtn_32(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 26
//bigBtn_37 (halcv5_fla.bigBtn_37)
package halcv5_fla {
import flash.display.*;
public dynamic class bigBtn_37 extends MovieClip {
public function bigBtn_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 27
//BONUS_GAME_59 (halcv5_fla.BONUS_GAME_59)
package halcv5_fla {
import flash.display.*;
public dynamic class BONUS_GAME_59 extends MovieClip {
public function BONUS_GAME_59(){
addFrameScript(79, frame80);
}
function frame80(){
stop();
}
}
}//package halcv5_fla
Section 28
//BONUS_MOVIC_55 (halcv5_fla.BONUS_MOVIC_55)
package halcv5_fla {
import flash.events.*;
import flash.display.*;
public dynamic class BONUS_MOVIC_55 extends MovieClip {
public var doors:MovieClip;
public var bg:MovieClip;
public var psetid:uint;
public var title:MovieClip;
public var setid:uint;
public function BONUS_MOVIC_55(){
addFrameScript(0, frame1, 104, frame105, 119, frame120);
}
function frame120(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
setid = 1;
psetid = 0;
}
function frame105(){
dispatchEvent(new Event("SETBG"));
}
}
}//package halcv5_fla
Section 29
//bonus_set_1_65 (halcv5_fla.bonus_set_1_65)
package halcv5_fla {
import flash.display.*;
public dynamic class bonus_set_1_65 extends MovieClip {
public function bonus_set_1_65(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 30
//bonus_set_2_66 (halcv5_fla.bonus_set_2_66)
package halcv5_fla {
import flash.display.*;
public dynamic class bonus_set_2_66 extends MovieClip {
public function bonus_set_2_66(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 31
//bonus_set_3_67 (halcv5_fla.bonus_set_3_67)
package halcv5_fla {
import flash.display.*;
public dynamic class bonus_set_3_67 extends MovieClip {
public function bonus_set_3_67(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 32
//btn_95 (halcv5_fla.btn_95)
package halcv5_fla {
import flash.display.*;
public dynamic class btn_95 extends MovieClip {
public function btn_95(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 33
//btn2_94 (halcv5_fla.btn2_94)
package halcv5_fla {
import flash.display.*;
public dynamic class btn2_94 extends MovieClip {
public function btn2_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 34
//Doors_63 (halcv5_fla.Doors_63)
package halcv5_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Doors_63 extends MovieClip {
public var bg:MovieClip;
public var hitbtn:MovieClip;
public var door_right:MovieClip;
public var bg2:MovieClip;
public var contbtn:MovieClip;
public var door_left:MovieClip;
public var skipbtn:MovieClip;
public function Doors_63(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 43, frame44, 49, frame50);
}
function frame20(){
stop();
}
function frame1(){
stop();
dispatchEvent(new Event("SETBTNS"));
}
function frame50(){
dispatchEvent(new Event("CHECK"));
}
function frame10(){
stop();
dispatchEvent(new Event("DOOR"));
}
function frame30(){
stop();
}
function frame44(){
stop();
dispatchEvent(new Event("CONTINUE"));
}
}
}//package halcv5_fla
Section 35
//empty_34 (halcv5_fla.empty_34)
package halcv5_fla {
import flash.display.*;
public dynamic class empty_34 extends MovieClip {
public var flipping:Boolean;
public function empty_34(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package halcv5_fla
Section 36
//FINAL_2_76 (halcv5_fla.FINAL_2_76)
package halcv5_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_76 extends MovieClip {
public var rtb:MovieClip;
public var fco:MovieClip;
public var fc:MovieClip;
public var etmm:MovieClip;
public function FINAL_2_76(){
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 halcv5_fla
Section 37
//Hito_newf_71 (halcv5_fla.Hito_newf_71)
package halcv5_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Hito_newf_71 extends MovieClip {
public function Hito_newf_71(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
dispatchEvent(new Event("START"));
}
}
}//package halcv5_fla
Section 38
//MainTimeline (halcv5_fla.MainTimeline)
package halcv5_fla {
import gs.*;
import flash.events.*;
import flash.geom.*;
import flash.display.*;
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.easing.*;
public dynamic class MainTimeline extends MovieClip {
public var pp;
public var SLOT:slot;
public var close:MovieClip;
public var bar:MovieClip;
public var slideShowWaitLast:Boolean;
public var bonus:MovieClip;
public var winbg:MovieClip;
public var item:ContextMenuItem;
public var spinchnl:SoundChannel;
public var soundON:Boolean;
public var pp1:bonusPictures;
public var bonusshowed:Boolean;
public var loading:MovieClip;
public var winmain2:MovieClip;
public var sred:MovieClip;
public var zz:uint;
public var icons:Array;
public var config:configManager;
public var bonusArea:MovieClip;
public var prevPageBig:MovieClip;
public var blY:uint;
public var pagesarea:MovieClip;
public var ic:ICON;
public var colpointers:Array;
public var nowIsBonus:Boolean;
public var kk:uint;
public var myContextMenu:ContextMenu;
public var btn:MovieClip;
public var closebtn:MovieClip;
public var menu:MovieClip;
public var n:uint;
public var scrollCounter:uint;
public var b:MovieClip;
public var ecsmenu:MovieClip;
public var p;
public var HUForm:MovieClip;
public var avaliblePages:uint;
public var nextPageBig:MovieClip;
public var tv:MovieClip;
public var musicCHNL:SoundChannel;
public var iconswin:Array;
public var slotarea:MovieClip;
public var gameid:String;
public var tv_avalible:Array;
public var score:uint;
public var i:Number;
public var slideShowTimer:Timer;
public var tv_avalibleAll:Boolean;
public var bonusId:uint;
public var prevPage:DisplayObject;
public var slideShowForward:Boolean;
public var k:uint;
public var proceed:MovieClip;
public var bonusAvalible:Boolean;
public var colinscroll:uint;
public var adv:MovieClip;
public var ng:Boolean;
public var p1:allPages;
public var defaultValues:Array;
public var voteshowed:Boolean;
public var pageCount:uint;
public var nglist:Array;
public var version:uint;
public var tvon:MovieClip;
public var pa:Page;
public var cols:Array;
public var stopScrollFrames:Array;
public var fromstart:Boolean;
public var pagesArr:Array;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
public function enablePages():void{
var _local1:Boolean;
avaliblePages = int((score / 100));
if (avaliblePages > pageCount){
if (!bonusAvalible){
HUForm.visible = true;
HUForm.gotoAndPlay(1);
SLOT.visible = false;
prevPageBig.visible = false;
nextPageBig.visible = false;
};
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((154 + int((Math.random() * 5))));
pagesArr[_local2].mc2.gotoAndStop(153);
if (_local1){
pagesArr[_local2].reDraw();
};
};
};
_local2++;
};
}
public function comp(_arg1:Event):void{
gotoAndStop(1, "Menu1");
}
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;
bonus.visible = false;
}
public function setbg(_arg1:Event){
bonus.doors.setid = bonusId;
bonus.doors.bg.gotoAndStop(bonus.doors.setid);
bonus.doors.bg2.gotoAndStop(bonus.doors.setid);
bonus.doors.psetid = 0;
}
public function prevBTN():void{
var _local1:uint;
if (((((((pagesarea) && (!(pagesarea.flipping)))) && ((int(SLOT.pageNum.text) > 1)))) || (bonusArea))){
_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 onFlipStartBackHandler1(_arg1:PageEvent):void{
new s_page().play();
bonusArea.flipping = true;
var _local2:uint = (int(_arg1.targ.name) - 2);
if (bonusArea.getChildByName(String(_local2)) != null){
bonusArea.getChildByName(String(_local2)).visible = true;
};
if (prevPage != null){
bonusArea.setChildIndex(_arg1.targ, (bonusArea.numChildren - 1));
};
}
public function tvbtnclick(_arg1:Event):void{
var _local2:uint;
var _local3:uint;
var _local4:MovieClip;
if ((_arg1.target as MovieClip).currentFrame != 2){
hidevids();
if (_arg1.target.name.substr(1, 2) == 10){
_local2 = 10;
} else {
_local2 = _arg1.target.name.substr(1, 1);
};
tv_avalible[_local2] = true;
tv_avalibleAll = true;
_local3 = 1;
while (_local3 < 11) {
_local4 = (tv.getChildByName(("b" + _local3)) as MovieClip);
_local4.gotoAndStop(1);
if (tv_avalible[_local3]){
_local4.visible = true;
} else {
_local4.visible = false;
tv_avalibleAll = false;
};
_local3++;
};
(_arg1.target as MovieClip).gotoAndStop(2);
(tv.getChildByName(("vid" + _local2)) as MovieClip).visible = true;
(tv.getChildByName(("vid" + _local2)) as MovieClip).play();
};
}
public function onFlipStartHandler1(_arg1:PageEvent):void{
new s_page().play();
bonusArea.flipping = true;
var _local2:uint = (int(_arg1.targ.name) + 2);
if (bonusArea.getChildByName(String(_local2)) != null){
bonusArea.getChildByName(String(_local2)).visible = true;
};
if (prevPage != null){
bonusArea.setChildIndex(_arg1.targ, (bonusArea.numChildren - 1));
};
}
public function bonusDone(_arg1:Event):void{
var setcontbtn:Function;
var chekclick:Function;
var e = _arg1;
setcontbtn = function (_arg1:Event):void{
var e = _arg1;
bonus.doors.contbtn.buttonMode = true;
bonus.doors.contbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
bonus.doors.play();
});
};
chekclick = function (_arg1:Event):void{
if (bonus.doors.bg.pset.currentFrame == bonus.doors.bg.pset.totalFrames){
hidebonus();
};
};
SoundMixer.stopAll();
if (soundON){
musicCHNL = new s_music().play(0, int.MAX_VALUE);
};
bonus.doors.psetid++;
bonus.doors.bg.gotoAndStop(bonus.doors.setid);
bonus.doors.bg.pset.gotoAndStop(bonus.doors.psetid);
bonus.doors.bg2.gotoAndStop(bonus.doors.setid);
bonus.doors.bg2.pset.gotoAndStop((bonus.doors.psetid + 1));
bonus.doors.addEventListener("SETBTNS", bonusDone);
bonus.doors.skipbtn.buttonMode = true;
bonus.doors.skipbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
hidebonus();
});
bonus.doors.door_left.buttonMode = true;
bonus.doors.door_right.buttonMode = true;
bonus.doors.door_left.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
bonus.doors.play();
});
bonus.doors.door_right.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
bonus.doors.play();
});
bonus.doors.addEventListener("DOOR", resetHitBtn);
bonus.doors.addEventListener("CONTINUE", setcontbtn);
bonus.doors.addEventListener("CHECK", chekclick);
}
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 hitbtnaway(_arg1:Event):void{
if (bonus == null){
return;
};
if (bonus.doors == null){
return;
};
if (bonus.doors.hitbtn == null){
return;
};
var _local2:Number = ((bonus.doors.hitbtn.y - stage.mouseY) / (bonus.doors.hitbtn.x - stage.mouseX));
bonus.doors.hitbtn.x = (bonus.doors.hitbtn.x + (4 * Math.sin(_local2)));
bonus.doors.hitbtn.y = (bonus.doors.hitbtn.y + (4 * Math.cos(_local2)));
if (bonus.doors.hitbtn.x < 0){
bonus.doors.hitbtn.x = 0;
};
if ((bonus.doors.hitbtn.x + bonus.doors.hitbtn.width) > 550){
bonus.doors.hitbtn.x = (550 - bonus.doors.hitbtn.width);
};
if (bonus.doors.hitbtn.y < 0){
bonus.doors.hitbtn.y = 0;
};
if ((bonus.doors.hitbtn.y + bonus.doors.hitbtn.height) > 400){
bonus.doors.hitbtn.y = (400 - bonus.doors.hitbtn.height);
};
}
public function onFlipCompleteBackHandler1(_arg1:PageEvent):void{
bonusArea.flipping = false;
var _local2:uint = (int(_arg1.targ.name) + 2);
if (bonusArea.getChildByName(String(_local2)) != null){
bonusArea.getChildByName(String(_local2)).visible = false;
};
prevPage = _arg1.targ;
}
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);
};
}
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 == 149)) && (!(voteshowed)))) && ((avaliblePages >= 152)))){
voteshowed = true;
winbg.gotoAndPlay(1);
winbg.visible = true;
winmain2.gotoAndPlay(1);
winmain2.visible = true;
};
}
function frame2(){
stop();
bar.width = 1;
loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
loading.btn1.buttonMode = true;
loading.btn2.buttonMode = true;
loading.btn1.addEventListener(MouseEvent.MOUSE_MOVE, function (_arg1:Event){
loading.bubble.visible = false;
});
loading.btn2.addEventListener(MouseEvent.MOUSE_MOVE, function (_arg1:Event){
loading.bubble.visible = false;
});
loading.btn1.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (loading.btn1.alpha == 1){
loading.btn1.alpha = 0.01;
} else {
loading.btn1.alpha = 1;
};
});
loading.btn2.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (loading.btn2.alpha == 1){
loading.btn2.alpha = 0.01;
} else {
loading.btn2.alpha = 1;
};
});
}
function frame4(){
config.addArea("menu", adv);
if (fromstart){
fromstart = false;
} else {
SoundMixer.stopAll();
if (soundON){
musicCHNL = new s_music().play(0, int.MAX_VALUE);
};
};
menu.buble.visible = false;
mkbtn(menu.btn_start);
mkbtn(menu.btn_spec);
mkbtn(menu.btn_mg);
mkbtn(menu.btn_inst);
mkbtn(menu.btn_rec);
mkbtn(menu.btn_v2);
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 frame5(){
nowIsBonus = false;
bonusId = 1;
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;
});
bonus.visible = false;
bonus.stop();
bonus.addEventListener("SETBG", setbg);
bonus.addEventListener("DONE", bonusDone);
tvon.useHandCursor = true;
tvon.buttonMode = true;
tvon.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
tv.t2.visible = false;
tv.visible = true;
tvon.visible = false;
});
tv.chnlbtn.useHandCursor = true;
tv.chnlbtn.buttonMode = true;
tv.chnlbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
config.gotoTDS("channel");
});
tv.tvoff.useHandCursor = true;
tv.tvoff.buttonMode = true;
tv.tvoff.addEventListener(MouseEvent.CLICK, toff);
tv_avalible = [null, false, false, false, false, false, false, false, false, false, false];
tv_avalibleAll = false;
tv.visible = false;
hidevids();
kk = 1;
while (kk < 11) {
b = (tv.getChildByName(("b" + kk)) as MovieClip);
b.gotoAndStop(1);
b.useHandCursor = true;
b.buttonMode = true;
b.visible = false;
b.addEventListener(MouseEvent.CLICK, tvbtnclick);
kk++;
};
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 = 151;
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((154 + int((Math.random() * 5))));
};
if (i >= 3){
p1.gotoAndStop(153);
};
};
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].push(8);
cols[0].push(8);
cols[1].push(9);
cols[1].push(9);
cols[2].push(10);
cols[2].push(10);
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 menuCLICK(_arg1:Event):void{
switch (_arg1.target.name){
case "btn_start":
menu.highlight.visible = false;
menu.buble.visible = false;
gotoAndStop(1, "Game");
break;
case "btn_spec":
if (bonusAvalible){
gotoAndStop(1, "Bonus");
};
break;
case "btn_mg":
config.gotoTDS("more-games");
break;
case "btn_inst":
gotoAndStop(1, "Splash2");
break;
case "btn_rec":
gotoAndStop(1, "Splash1");
break;
case "btn_v2":
config.gotoTDS("warehouse");
break;
};
}
function frame7(){
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 keyDownHandler(_arg1:KeyboardEvent):void{
if ((((((_arg1.keyCode == Keyboard.SPACE)) && (SLOT.visible))) && (!(tv.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)))) && (!(bonus.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 frame3(){
SoundMixer.stopAll();
musicCHNL = new s_music().play(0, int.MAX_VALUE);
fromstart = true;
}
public function toff(_arg1:Event):void{
var _local3:MovieClip;
tv.visible = false;
tvon.visible = true;
hidevids();
var _local2:uint = 1;
while (_local2 < 11) {
_local3 = (tv.getChildByName(("b" + _local2)) as MovieClip);
_local3.gotoAndStop(1);
if (tv_avalible[_local2]){
_local3.visible = true;
} else {
_local3.visible = false;
};
_local2++;
};
}
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));
};
}
function frame1(){
gameid = "halc-slot-5";
version = 1;
config = new configManager(gameid, version, stage, loaderInfo.loaderURL);
bonusAvalible = false;
score = 100;
nowIsBonus = false;
voteshowed = false;
bonusshowed = false;
soundON = true;
defaultValues = [];
defaultValues["vote"] = 0;
stage.scaleMode = StageScaleMode.NO_SCALE;
ng = false;
nglist = ["ungrounded.net", "newgrounds.com"];
zz = 0;
while (zz < nglist.length) {
if (loaderInfo.loaderURL.indexOf(nglist[zz]) > 0){
ng = true;
};
zz++;
};
stage.showDefaultContextMenu = false;
loaderInfo.addEventListener(Event.COMPLETE, comp);
}
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 nextBTN():void{
var _local1:uint;
if (((((((pagesarea) && (!(pagesarea.flipping)))) && ((int(SLOT.pageNum.text) < (pageCount + 1))))) || (bonusArea))){
_local1 = getVisiblePage();
if (pagesArr[_local1]){
pagesArr[_local1].turnPageForward();
};
};
}
public function checkWin():void{
var id:*;
var id1:*;
var kk:uint;
var b:MovieClip;
var k:uint;
var id2: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);
};
var winc:Array = [];
var bell:Boolean;
var bonusic:Boolean;
n = 0;
while (n < 3) {
if (win[n] > 7){
bonusic = true;
bonusId = (win[n] - 7);
};
if (win[n] == 1){
bell = true;
};
if ((((win[n] > 7)) || ((win[n] == 1)))){
winc.push(n);
};
n = (n + 1);
};
if ((((((winc.length > 1)) && (bonusic))) && (bell))){
n = 0;
while (n < winc.length) {
iconswin[winc[n]].winRec.gotoAndPlay(2);
n = (n + 1);
};
am = 500;
SLOT.visible = false;
bonus.visible = true;
bonus.gotoAndPlay(1);
SoundMixer.stopAll();
if (soundON){
musicCHNL = new s_bonus().play(0, int.MAX_VALUE);
};
SLOT.winMsg.visible = true;
SLOT.patch.visible = true;
SLOT.winMsg.text = ("WIN: " + am);
score = (score + am);
enablePages();
return;
};
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();
};
if (!tv_avalibleAll){
tv.visible = true;
tvon.visible = false;
tv.t2.visible = true;
id = (int((Math.random() * 10)) + 1);
id1 = (int((Math.random() * 10)) + 1);
while (id == id1) {
id1 = (int((Math.random() * 10)) + 1);
};
id2 = (int((Math.random() * 10)) + 1);
while ((((id == id1)) || ((id == id2)))) {
id2 = (int((Math.random() * 10)) + 1);
};
kk = 1;
while (kk < 11) {
b = (tv.getChildByName(("b" + kk)) as MovieClip);
if (tv_avalible[kk]){
b.visible = true;
b.gotoAndStop(1);
};
if (((!(tv_avalible[kk])) && ((((((id == kk)) || ((id1 == kk)))) || ((id2 == kk)))))){
b.visible = true;
b.gotoAndStop(4);
tv_avalible[kk] = true;
};
if (((tv_avalible[kk]) && ((((((id == kk)) || ((id1 == kk)))) || ((id2 == kk)))))){
b.visible = true;
b.gotoAndStop(3);
};
if (((((((!(tv_avalible[kk])) && (!((id == kk))))) && (!((id1 == kk))))) && (!((id2 == kk))))){
b.visible = false;
};
kk = (kk + 1);
};
tv_avalible[id] = true;
tv_avalible[id1] = true;
tv_avalible[id2] = true;
hidevids();
(tv.getChildByName(("vid" + id)) as MovieClip).visible = true;
(tv.getChildByName(("vid" + id)) as MovieClip).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();
};
if (!tv_avalibleAll){
tv.visible = true;
tvon.visible = false;
tv.t2.visible = false;
id = (int((Math.random() * 10)) + 1);
id1 = (int((Math.random() * 10)) + 1);
while (id == id1) {
id1 = (int((Math.random() * 10)) + 1);
};
kk = 1;
while (kk < 11) {
b = (tv.getChildByName(("b" + kk)) as MovieClip);
if (tv_avalible[kk]){
b.visible = true;
b.gotoAndStop(1);
};
if (((!(tv_avalible[kk])) && ((((id == kk)) || ((id1 == kk)))))){
b.visible = true;
b.gotoAndStop(4);
};
if (((tv_avalible[kk]) && ((((id == kk)) || ((id1 == kk)))))){
b.visible = true;
b.gotoAndStop(3);
};
if (((((!(tv_avalible[kk])) && (!((id == kk))))) && (!((id1 == kk))))){
b.visible = false;
};
kk = (kk + 1);
};
tv_avalible[id] = true;
tv_avalible[id1] = true;
hidevids();
(tv.getChildByName(("vid" + id)) as MovieClip).visible = true;
(tv.getChildByName(("vid" + id)) as MovieClip).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 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 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);
};
}
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));
}
function frame6(){
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");
});
}
function frame8(){
nowIsBonus = true;
btn.visible = false;
btn.buttonMode = true;
btn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
config.gotoTDS("bonus");
btn.visible = false;
closebtn.visible = false;
});
closebtn.visible = false;
closebtn.buttonMode = true;
closebtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
closebtn.visible = false;
btn.visible = false;
});
pagesArr = [];
pageCount = 37;
i = pageCount;
while (i > 0) {
pp = new bonusPictures();
pp.cacheAsBitmap = true;
pp.gotoAndStop(i);
pp1 = new bonusPictures();
pp1.cacheAsBitmap = true;
pp1.gotoAndStop((i + 1));
pa = new Page(bonusArea, 275, 400, 275, 0, pp, pp1, String(i));
pagesArr[i] = pa;
if (i > 1){
bonusArea.getChildByName(String(i)).visible = false;
};
pa.addEventListener(PageEvent.FLIP_START, onFlipStartHandler1);
pa.addEventListener(PageEvent.FLIP_START_BACK, onFlipStartBackHandler1);
pa.addEventListener(PageEvent.FLIP_COMPLETE, onFlipCompleteHandler1);
pa.addEventListener(PageEvent.FLIP_COMPLETE_BACK, onFlipCompleteBackHandler1);
i = (i - 2);
};
if (ecsmenu != null){
if (contains(ecsmenu)){
removeChild(ecsmenu);
};
addChild(ecsmenu);
ecsmenu.visible = false;
};
}
public function fn(_arg1:Event):void{
removeChild(ecsmenu);
if (((!((slotarea == null))) && (slotarea.contains(SLOT)))){
slotarea.removeChild(SLOT);
};
removeWin();
gotoAndStop(1, "Menu1");
}
public function hidevids():void{
var _local1:uint = 1;
while (_local1 < 11) {
(tv.getChildByName(("vid" + _local1)) as MovieClip).visible = false;
(tv.getChildByName(("vid" + _local1)) as MovieClip).stop();
_local1++;
};
}
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 onFlipCompleteHandler1(_arg1:PageEvent):void{
bonusArea.flipping = false;
var _local2:uint = (int(_arg1.targ.name) - 2);
if (bonusArea.getChildByName(String(_local2)) != null){
bonusArea.getChildByName(String(_local2)).visible = false;
};
prevPage = _arg1.targ;
if ((((_local2 == 35)) && (!(bonusshowed)))){
bonusshowed = true;
btn.visible = true;
closebtn.visible = true;
};
}
public function getVisiblePage(_arg1:Boolean=true):uint{
var _local5:DisplayObject;
var _local2:Array = [];
var _local3:MovieClip = pagesarea;
if (nowIsBonus){
_local3 = bonusArea;
};
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 hc(_arg1:Event){
var _local2:SoundChannel;
var _local3:SoundTransform;
if (bonus.doors.hitbtn.currentFrame == 1){
bonus.doors.hitbtn.gotoAndPlay(2);
if (soundON){
_local2 = new s_bell().play();
_local3 = _local2.soundTransform;
_local3.volume = (_local3.volume / 2);
_local2.soundTransform = _local3;
};
};
}
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));
menu.buble.visible = true;
switch (_arg1.target.name){
case "btn_start":
menu.buble.gotoAndStop(2);
break;
case "btn_spec":
if (bonusAvalible){
menu.buble.gotoAndStop(4);
} else {
menu.buble.gotoAndStop(3);
};
break;
case "btn_mg":
menu.buble.gotoAndStop(5);
break;
case "btn_inst":
menu.buble.gotoAndStop(6);
break;
case "btn_rec":
menu.buble.gotoAndStop(8);
break;
case "btn_v2":
menu.buble.gotoAndStop(9);
break;
};
};
chngClr1 = function (_arg1:Event):void{
if (((menu) && (menu.highlight))){
menu.highlight.visible = false;
menu.buble.visible = false;
};
};
m.useHandCursor = true;
m.buttonMode = true;
m.addEventListener(MouseEvent.CLICK, menuCLICK);
m.addEventListener(MouseEvent.MOUSE_OVER, chngClr);
m.addEventListener(MouseEvent.MOUSE_OUT, chngClr1);
}
public function resetHitBtn(_arg1:Event):void{
var hidehitbtn:Function;
var setbtnparam:Function;
var e = _arg1;
hidehitbtn = function (_arg1:Event):void{
if (bonus.doors.currentFrame == 30){
bonus.doors.hitbtn.visible = false;
};
};
setbtnparam = function (_arg1:Event):void{
bonus.doors.hitbtn.x = (Math.random() * 400);
bonus.doors.hitbtn.y = (Math.random() * 350);
bonus.doors.hitbtn.width = 95;
bonus.doors.hitbtn.height = 95;
TweenLite.killTweensOf(bonus.doors.hitbtn);
TweenLite.to(bonus.doors.hitbtn, 9, {scaleX:0.25, scaleY:0.25});
bonus.doors.play();
};
bonus.doors.hitbtn.buttonMode = true;
TweenLite.to(bonus.doors.hitbtn, 9, {scaleX:0.25, scaleY:0.25});
if (!bonus.doors.hitbtn.hasEventListener(MouseEvent.CLICK)){
bonus.doors.hitbtn.addEventListener("START", setbtnparam);
bonus.doors.hitbtn.addEventListener(MouseEvent.CLICK, hc);
bonus.doors.hitbtn.addEventListener("DONE", hidehitbtn);
bonus.doors.addEventListener(Event.ENTER_FRAME, hitbtnaway);
};
}
}
}//package halcv5_fla
Section 39
//menu_7 (halcv5_fla.menu_7)
package halcv5_fla {
import flash.display.*;
public dynamic class menu_7 extends MovieClip {
public function menu_7(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
}
}
}//package halcv5_fla
Section 40
//nextPageSml_30 (halcv5_fla.nextPageSml_30)
package halcv5_fla {
import flash.display.*;
public dynamic class nextPageSml_30 extends MovieClip {
public function nextPageSml_30(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 41
//prevPageSml_29 (halcv5_fla.prevPageSml_29)
package halcv5_fla {
import flash.display.*;
public dynamic class prevPageSml_29 extends MovieClip {
public function prevPageSml_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 42
//Splash_NON_NG2_81 (halcv5_fla.Splash_NON_NG2_81)
package halcv5_fla {
import flash.display.*;
public dynamic class Splash_NON_NG2_81 extends MovieClip {
public function Splash_NON_NG2_81(){
addFrameScript(64, frame65);
}
function frame65(){
stop();
}
}
}//package halcv5_fla
Section 43
//start_19 (halcv5_fla.start_19)
package halcv5_fla {
import flash.display.*;
public dynamic class start_19 extends MovieClip {
public var btn_start:MovieClip;
public var buble:MovieClip;
public var btn_inst:MovieClip;
public var btn_rec:MovieClip;
public var highlight:MovieClip;
public var btn_spec:MovieClip;
public var btn_mg:MovieClip;
public var btn_v2:MovieClip;
public function start_19(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 44
//Symbol1f_57 (halcv5_fla.Symbol1f_57)
package halcv5_fla {
import flash.display.*;
public dynamic class Symbol1f_57 extends MovieClip {
public function Symbol1f_57(){
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package halcv5_fla
Section 45
//text_1_5 (halcv5_fla.text_1_5)
package halcv5_fla {
import flash.display.*;
public dynamic class text_1_5 extends MovieClip {
public function text_1_5(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package halcv5_fla
Section 46
//text_2_9 (halcv5_fla.text_2_9)
package halcv5_fla {
import flash.display.*;
public dynamic class text_2_9 extends MovieClip {
public function text_2_9(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 47
//text_3_10 (halcv5_fla.text_3_10)
package halcv5_fla {
import flash.display.*;
public dynamic class text_3_10 extends MovieClip {
public function text_3_10(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 48
//text_4_11 (halcv5_fla.text_4_11)
package halcv5_fla {
import flash.display.*;
public dynamic class text_4_11 extends MovieClip {
public function text_4_11(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 49
//text_5_12 (halcv5_fla.text_5_12)
package halcv5_fla {
import flash.display.*;
public dynamic class text_5_12 extends MovieClip {
public function text_5_12(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 50
//text_6_13 (halcv5_fla.text_6_13)
package halcv5_fla {
import flash.display.*;
public dynamic class text_6_13 extends MovieClip {
public function text_6_13(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 51
//text_7_14 (halcv5_fla.text_7_14)
package halcv5_fla {
import flash.display.*;
public dynamic class text_7_14 extends MovieClip {
public function text_7_14(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 52
//text_8_15 (halcv5_fla.text_8_15)
package halcv5_fla {
import flash.display.*;
public dynamic class text_8_15 extends MovieClip {
public function text_8_15(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package halcv5_fla
Section 53
//winRec_36 (halcv5_fla.winRec_36)
package halcv5_fla {
import flash.display.*;
public dynamic class winRec_36 extends MovieClip {
public function winRec_36(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndPlay(2);
}
}
}//package halcv5_fla
Section 54
//vtbtn_50 (halcv5_fla.vtbtn_50)
package halcv5_fla {
import flash.display.*;
public dynamic class vtbtn_50 extends MovieClip {
public function vtbtn_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package halcv5_fla
Section 55
//allPages (allPages)
package {
import flash.display.*;
public dynamic class allPages extends MovieClip {
}
}//package
Section 56
//bonusPictures (bonusPictures)
package {
import flash.display.*;
public dynamic class bonusPictures extends MovieClip {
}
}//package
Section 57
//configManager (configManager)
package {
import flash.events.*;
import flash.display.*;
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 58
//esc (esc)
package {
import flash.display.*;
public dynamic class esc extends MovieClip {
public var okbtn:MovieClip;
public var cancelbtn:MovieClip;
}
}//package
Section 59
//ICON (ICON)
package {
import flash.display.*;
public dynamic class ICON extends MovieClip {
public var winRec:MovieClip;
}
}//package
Section 60
//s_bell (s_bell)
package {
import flash.media.*;
public dynamic class s_bell extends Sound {
}
}//package
Section 61
//s_bet (s_bet)
package {
import flash.media.*;
public dynamic class s_bet extends Sound {
}
}//package
Section 62
//s_bonus (s_bonus)
package {
import flash.media.*;
public dynamic class s_bonus extends Sound {
}
}//package
Section 63
//s_cherry (s_cherry)
package {
import flash.media.*;
public dynamic class s_cherry extends Sound {
}
}//package
Section 64
//s_go (s_go)
package {
import flash.media.*;
public dynamic class s_go extends Sound {
}
}//package
Section 65
//s_music (s_music)
package {
import flash.media.*;
public dynamic class s_music extends Sound {
}
}//package
Section 66
//s_page (s_page)
package {
import flash.media.*;
public dynamic class s_page extends Sound {
}
}//package
Section 67
//s_seven (s_seven)
package {
import flash.media.*;
public dynamic class s_seven extends Sound {
}
}//package
Section 68
//s_spin (s_spin)
package {
import flash.media.*;
public dynamic class s_spin extends Sound {
}
}//package
Section 69
//s_stoproll (s_stoproll)
package {
import flash.media.*;
public dynamic class s_stoproll extends Sound {
}
}//package
Section 70
//s_win_big1 (s_win_big1)
package {
import flash.media.*;
public dynamic class s_win_big1 extends Sound {
}
}//package
Section 71
//s_win_big2 (s_win_big2)
package {
import flash.media.*;
public dynamic class s_win_big2 extends Sound {
}
}//package
Section 72
//s_win1 (s_win1)
package {
import flash.media.*;
public dynamic class s_win1 extends Sound {
}
}//package
Section 73
//s_win2 (s_win2)
package {
import flash.media.*;
public dynamic class s_win2 extends Sound {
}
}//package
Section 74
//s_win3 (s_win3)
package {
import flash.media.*;
public dynamic class s_win3 extends Sound {
}
}//package
Section 75
//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 76
//Vo_1 (Vo_1)
package {
import flash.media.*;
public dynamic class Vo_1 extends Sound {
}
}//package
Section 77
//Vo_2 (Vo_2)
package {
import flash.media.*;
public dynamic class Vo_2 extends Sound {
}
}//package
Section 78
//Vo_3 (Vo_3)
package {
import flash.media.*;
public dynamic class Vo_3 extends Sound {
}
}//package