Section 1
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_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));
}
}
}//package gs.easing
Section 2
//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 3
//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 4
//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 5
//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 6
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.geom.*;
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 7
//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 8
//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 9
//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 10
//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 11
//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 12
//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 13
//Buttonsmenu_29 (iFuck_fla.Buttonsmenu_29)
package iFuck_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Buttonsmenu_29 extends MovieClip {
public var backlight_b3:MovieClip;
public var backlight_b2:MovieClip;
public var backlight_b4:MovieClip;
public var b1:MovieClip;
public var b2:MovieClip;
public var b3:MovieClip;
public var b4:MovieClip;
public var backlight_b1:MovieClip;
public function Buttonsmenu_29(){
addFrameScript(44, frame45);
}
function frame45(){
dispatchEvent(new Event("DONE"));
stop();
}
}
}//package iFuck_fla
Section 14
//Girl1_81 (iFuck_fla.Girl1_81)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl1_81 extends MovieClip {
public function Girl1_81(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 15
//Girl10_99 (iFuck_fla.Girl10_99)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl10_99 extends MovieClip {
public function Girl10_99(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 16
//Girl11_101 (iFuck_fla.Girl11_101)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl11_101 extends MovieClip {
public function Girl11_101(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 17
//Girl12_103 (iFuck_fla.Girl12_103)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl12_103 extends MovieClip {
public function Girl12_103(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 18
//Girl13_105 (iFuck_fla.Girl13_105)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl13_105 extends MovieClip {
public function Girl13_105(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 19
//Girl14_107 (iFuck_fla.Girl14_107)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl14_107 extends MovieClip {
public function Girl14_107(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 20
//Girl2_85 (iFuck_fla.Girl2_85)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl2_85 extends MovieClip {
public function Girl2_85(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 21
//Girl3_87 (iFuck_fla.Girl3_87)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl3_87 extends MovieClip {
public function Girl3_87(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 22
//Girl4_89 (iFuck_fla.Girl4_89)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl4_89 extends MovieClip {
public function Girl4_89(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 23
//Girl5_91 (iFuck_fla.Girl5_91)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl5_91 extends MovieClip {
public function Girl5_91(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 24
//Girl6_109 (iFuck_fla.Girl6_109)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl6_109 extends MovieClip {
public function Girl6_109(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 25
//Girl7_93 (iFuck_fla.Girl7_93)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl7_93 extends MovieClip {
public function Girl7_93(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package iFuck_fla
Section 26
//Girl8_95 (iFuck_fla.Girl8_95)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl8_95 extends MovieClip {
public function Girl8_95(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 27
//Girl9_97 (iFuck_fla.Girl9_97)
package iFuck_fla {
import flash.display.*;
public dynamic class Girl9_97 extends MovieClip {
public function Girl9_97(){
addFrameScript(108, frame109);
}
function frame109(){
stop();
}
}
}//package iFuck_fla
Section 28
//Menu_m_23 (iFuck_fla.Menu_m_23)
package iFuck_fla {
import flash.display.*;
public dynamic class Menu_m_23 extends MovieClip {
public var ifuck:MovieClip;
public var screen:MovieClip;
public var bunny:MovieClip;
public var adv:MovieClip;
public var btns:MovieClip;
public function Menu_m_23(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package iFuck_fla
Section 29
//newsllash_49 (iFuck_fla.newsllash_49)
package iFuck_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class newsllash_49 extends MovieClip {
public var closebtn:MovieClip;
public var pass:TextField;
public var username:TextField;
public var submit:MovieClip;
public var email:TextField;
public function newsllash_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
closebtn.buttonMode = true;
closebtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (!(parent as MovieClip).ng){
navigateToURL(new URLRequest("http://tds.mutanky.com/?gameid=ifuck-2&action=closecustomsplash1"));
};
(parent as MovieClip).gotoAndStop(1, "Menu");
});
submit.buttonMode = true;
submit.addEventListener(MouseEvent.CLICK, submitf);
}
public function submitf(_arg1:Event):void{
var _local5:*;
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 = "11";
_local3.product_id = "10";
_local3.nostate = "1";
_local3.wmid = "300162";
_local3.username = username.text;
_local3.password = pass.text;
_local3.email = email.text;
_local2.method = URLRequestMethod.POST;
_local2.data = _local3;
navigateToURL(_local2, "_blank");
var _local4:URLLoader = new URLLoader();
var _local6 = "";
_local4.load(new URLRequest((((("http://tds.mutanky.com/?gameid=" + _local5) + "&version=") + _local6) + "&action=customsplash1")));
(parent as MovieClip).gotoAndStop(1, "Menu");
}
}
}//package iFuck_fla
Section 30
//Pimp_Pass_45 (iFuck_fla.Pimp_Pass_45)
package iFuck_fla {
import flash.display.*;
public dynamic class Pimp_Pass_45 extends MovieClip {
public function Pimp_Pass_45(){
addFrameScript(0, frame1, 14, frame15, 44, frame45, 74, frame75, 104, frame105, 119, frame120, 149, frame150, 179, frame180, 209, frame210, 239, frame240, 254, frame255);
}
function frame240(){
stop();
}
function frame120(){
stop();
}
function frame210(){
stop();
}
function frame255(){
}
function frame105(){
stop();
}
function frame1(){
stop();
}
function frame45(){
stop();
}
function frame15(){
stop();
}
function frame75(){
stop();
}
function frame180(){
stop();
}
function frame150(){
stop();
}
}
}//package iFuck_fla
Section 31
//splash11_38 (iFuck_fla.splash11_38)
package iFuck_fla {
import flash.events.*;
import flash.display.*;
public dynamic class splash11_38 extends MovieClip {
public var submitform:MovieClip;
public function splash11_38(){
addFrameScript(139, frame140);
}
function frame140(){
stop();
dispatchEvent(new Event("FORM"));
}
}
}//package iFuck_fla
Section 32
//BG_1 (BG_1)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_1 extends MovieClip {
public function BG_1(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 33
//BG_10 (BG_10)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_10 extends MovieClip {
public function BG_10(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 34
//BG_11 (BG_11)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_11 extends MovieClip {
public function BG_11(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 35
//BG_12 (BG_12)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_12 extends MovieClip {
public function BG_12(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 36
//BG_13 (BG_13)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_13 extends MovieClip {
public function BG_13(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 37
//BG_14 (BG_14)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_14 extends MovieClip {
public function BG_14(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 38
//BG_2 (BG_2)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 39
//BG_3 (BG_3)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_3 extends MovieClip {
public function BG_3(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 40
//BG_4 (BG_4)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_4 extends MovieClip {
public function BG_4(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 41
//BG_5 (BG_5)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_5 extends MovieClip {
public function BG_5(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 42
//BG_6 (BG_6)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_6 extends MovieClip {
public function BG_6(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 43
//BG_7 (BG_7)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_7 extends MovieClip {
public function BG_7(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 44
//BG_8 (BG_8)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_8 extends MovieClip {
public function BG_8(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 45
//BG_9 (BG_9)
package {
import flash.events.*;
import flash.display.*;
public dynamic class BG_9 extends MovieClip {
public function BG_9(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package
Section 46
//click_snd (click_snd)
package {
import flash.media.*;
public dynamic class click_snd extends Sound {
}
}//package
Section 47
//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;
public function configManager(_arg1:String, _arg2:uint, _arg3:Stage):void{
var ioErrorHandler:Function;
var loadXML:Function;
var gameid = _arg1;
var version = _arg2;
var st = _arg3;
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;
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) + "&player=") + Capabilities.version)));
}
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 48
//Finish1 (Finish1)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish1 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish1(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 49
//Finish10 (Finish10)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish10 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish10(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 50
//Finish11 (Finish11)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish11 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish11(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 51
//Finish12 (Finish12)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish12 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish12(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 52
//Finish13 (Finish13)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish13 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish13(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 53
//Finish14 (Finish14)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish14 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish14(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 54
//Finish2 (Finish2)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish2 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish2(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 55
//Finish3 (Finish3)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish3 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish3(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 56
//Finish4 (Finish4)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish4 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish4(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 57
//Finish5 (Finish5)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish5 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish5(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 58
//Finish6 (Finish6)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish6 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish6(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 59
//Finish7 (Finish7)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish7 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish7(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 60
//Finish8 (Finish8)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish8 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish8(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 61
//Finish9 (Finish9)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Finish9 extends MovieClip {
public var cnt:MovieClip;
public var screen:MovieClip;
public function Finish9(){
addFrameScript(69, frame70);
}
function frame70(){
stop();
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 62
//FX1 (FX1)
package {
import flash.events.*;
import flash.display.*;
public dynamic class FX1 extends MovieClip {
public var b:MovieClip;
public var t:MovieClip;
public var r:MovieClip;
public var l:MovieClip;
public function FX1(){
addFrameScript(14, frame15);
}
function frame15(){
dispatchEvent(new Event("DONE"));
}
}
}//package
Section 63
//game_snd (game_snd)
package {
import flash.media.*;
public dynamic class game_snd extends Sound {
}
}//package
Section 64
//grid_easy (grid_easy)
package {
import flash.display.*;
public dynamic class grid_easy extends MovieClip {
}
}//package
Section 65
//grid_normal (grid_normal)
package {
import flash.display.*;
public dynamic class grid_normal extends MovieClip {
}
}//package
Section 66
//iFuckGame (iFuckGame)
package {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import gs.easing.*;
import flash.media.*;
import flash.utils.*;
import flash.filters.*;
import flash.net.*;
public class iFuckGame extends MovieClip {
public var pp:MovieClip;
public var achBtn7:MovieClip;
public var achBtn8:MovieClip;
public var achBtn9:MovieClip;
var activePeace:MovieClip;
public var newsplash:MovieClip;
public var achBtn6:MovieClip;
public var bar:MovieClip;
var rotatingMc:MovieClip;
var bgid:uint;// = 1
var rotateCounter:uint;// = 0
public var achBtn4:MovieClip;
public var movie:MovieClip;
var cellSizeX:uint;// = 128
var cellSizeY:uint;// = 96
var puzzle:Array;
public var zz:uint;
var grid:MovieClip;
public var config:configManager;
var bghint;
var removeFinal:Boolean;// = false
var clickCounter:uint;// = 0
var Final:MovieClip;
public var menu:MovieClip;
public var closebtn:MovieClip;
public var splash:MovieClip;
var cellSize:uint;// = 110
public var gameid:String;
public var achBtn10:MovieClip;
public var achBtn11:MovieClip;
public var achBtn12:MovieClip;
public var achBtn13:MovieClip;
public var achBtn14:MovieClip;
var mcs:Array;
public var btnBG:MovieClip;
public var adv:MovieClip;
public var ng:Boolean;
public var bgSound:SoundChannel;
var gridSizeX;
var gridSizeY:uint;
public var nglist:Array;
public var version:uint;
public var backBtn:MovieClip;
public var achBtn1:MovieClip;
public var achBtn2:MovieClip;
public var achBtn3:MovieClip;
public var achBtn5:MovieClip;
public function iFuckGame():void{
puzzle = [];
mcs = [];
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7);
addEventListener(MouseEvent.CLICK, function (_arg1:Event){
new click_snd().play();
});
}
public function btnMO(_arg1:Event):void{
if (menu){
if (menu.btns.getChildByName(("backlight_" + _arg1.target.name))){
menu.btns.getChildByName(("backlight_" + _arg1.target.name)).visible = true;
};
};
}
public function comp(_arg1:Event):void{
gotoAndStop(1, "Menu");
}
public function btnMOU(_arg1:Event):void{
if (menu){
if (menu.btns.getChildByName(("backlight_" + _arg1.target.name))){
menu.btns.getChildByName(("backlight_" + _arg1.target.name)).visible = false;
};
};
}
public function submit(_arg1:Event):void{
var _local5:*;
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 = splash.submitform.username.text;
_local3.password = splash.submitform.pass.text;
_local3.email = splash.submitform.email.text;
_local2.method = URLRequestMethod.POST;
_local2.data = _local3;
navigateToURL(_local2, "_blank");
var _local4:URLLoader = new URLLoader();
var _local6 = "";
_local4.load(new URLRequest((((("http://tds.mutanky.com/?gameid=" + _local5) + "&version=") + _local6) + "&action=customsplash2")));
gotoAndStop(1, "Menu");
}
public function makebtn1(_arg1:MovieClip):void{
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, achBtnCL);
}
function chkDone():void{
var i:*;
var k:uint;
var ClassReference:Class;
var donevar:Boolean;
i = 0;
while (i < mcs.length) {
k = 0;
while (k < mcs[i].length) {
if ((((((mcs[i][k].rotation == 0)) && ((Math.floor((mcs[i][k].x / cellSizeX)) == mcs[i][k].goodk)))) && ((Math.floor((mcs[i][k].y / cellSizeY)) == mcs[i][k].goodi)))){
} else {
donevar = false;
};
k = (k + 1);
};
i = (i + 1);
};
if (donevar){
var fn:Function = function (_arg1:Event):void{
var e = _arg1;
trace(Final.screen);
Final.screen.buttonMode = true;
Final.screen.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=screen")), "_blank");
});
Final.cnt.buttonMode = true;
Final.cnt.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
removeFinal = true;
});
};
ClassReference = (getDefinitionByName(("Finish" + bgid)) as Class);
Final = (new (ClassReference) as MovieClip);
Final.addEventListener("DONE", fn);
addChild(Final);
};
}
function Play():void{
bgid = 1;
grid = new grid_easy();
grid.x = 19;
grid.y = 7;
gridSizeX = 4;
gridSizeY = 4;
cellSize = 165;
makeBG();
stage.addEventListener(Event.ENTER_FRAME, EF);
stage.addEventListener(MouseEvent.MOUSE_MOVE, MM);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
}
function frame2(){
bar.stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
config.addArea("preloader", adv);
stop();
}
function frame5(){
config.addArea("game", adv);
if (bgSound){
bgSound.stop();
};
bgSound = new game_snd().play(0, int.MAX_VALUE);
Play();
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 32)) && (Final))){
doneFNC(null);
};
}
function frame1(){
gameid = "ifuck-2";
version = 1;
config = new configManager(gameid, version, stage);
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++;
};
loaderInfo.addEventListener(Event.COMPLETE, comp);
}
function frame3(){
config.addArea("ach", adv);
makebtn1(achBtn1);
makebtn1(achBtn2);
makebtn1(achBtn3);
makebtn1(achBtn4);
makebtn1(achBtn5);
makebtn1(achBtn6);
makebtn1(achBtn7);
makebtn1(achBtn8);
makebtn1(achBtn9);
makebtn1(achBtn10);
makebtn1(achBtn11);
makebtn1(achBtn12);
makebtn1(achBtn13);
makebtn1(achBtn14);
movie.gotoAndStop(13);
movie.visible = false;
backBtn.useHandCursor = true;
backBtn.buttonMode = true;
backBtn.addEventListener(MouseEvent.CLICK, bBtnCL);
}
function frame4(){
stop();
if (bgSound){
bgSound.stop();
};
bgSound = new menu_snd().play(0, int.MAX_VALUE);
config.addArea("menu", adv);
menu.btns.addEventListener("DONE", function (_arg1:Event){
menu.btns.backlight_b1.visible = false;
menu.btns.backlight_b2.visible = false;
menu.btns.backlight_b3.visible = false;
menu.btns.backlight_b4.visible = false;
makebtn(menu.btns.b1);
makebtn(menu.btns.b2);
makebtn(menu.btns.b3);
makebtn(menu.btns.b4);
});
menu.adv.buttonMode = true;
menu.adv.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=menutop")), "_blank");
});
menu.bunny.buttonMode = true;
menu.bunny.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=bunny")), "_blank");
});
}
function frame6(){
stop();
closebtn.buttonMode = true;
closebtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=closecustomsplash2")));
gotoAndStop(1, "Menu");
});
splash.addEventListener("FORM", act);
}
function magnet(_arg1:MovieClip):void{
var onFinishTween:Function;
var fx:MovieClip;
var m = _arg1;
onFinishTween = function ():void{
if (m){
activePeace = null;
m.filters = [];
};
};
var deltaPix:uint = 40;
var nx:uint = (((Math.floor((m.x / cellSizeX)) * cellSizeX) + 19) + (cellSizeX / 2));
var ny:uint = (((Math.floor((m.y / cellSizeY)) * cellSizeY) + 7) + (cellSizeY / 2));
if ((((Math.floor((m.x / cellSizeX)) == m.goodk)) && ((Math.floor((m.y / cellSizeY)) == m.goodi)))){
if ((((m.rotation == 0)) && ((((Math.abs((nx - m.x)) < deltaPix)) || ((Math.abs((ny - m.y)) < deltaPix)))))){
var re:Function = function (_arg1:Event):void{
if (((fx) && (contains(fx)))){
removeChild(fx);
};
if (fx){
fx = null;
};
};
setChildIndex(m, (getChildIndex(grid) + 1));
m.x = nx;
m.y = ny;
new set_snd().play();
fx = new FX1();
fx.x = (nx - (cellSizeX / 2));
fx.y = (ny - (cellSizeY / 2));
fx.width = cellSizeX;
fx.height = cellSizeY;
addChild(fx);
fx.addEventListener("DONE", re);
chkDone();
} else {
m.filters = [new BlurFilter(1.25, 1.25, BitmapFilterQuality.HIGH)];
TweenLite.to(m, 0.35, {scaleX:0.5, scaleY:0.5, ease:Back.easeInOut, onComplete:onFinishTween});
};
} else {
m.filters = [new BlurFilter(1.25, 1.25, BitmapFilterQuality.HIGH)];
TweenLite.to(m, 0.35, {scaleX:0.5, scaleY:0.5, ease:Back.easeInOut, onComplete:onFinishTween});
};
}
function frame7(){
newsplash.visible = false;
pp.buttonMode = true;
pp.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
if (pp.currentFrame == 240){
newsplash.visible = true;
};
pp.play();
});
}
public function bBtnCL(_arg1:Event):void{
btnBG.x = 175;
backBtn.x = 175;
if (movie.visible){
movie.gotoAndStop(13);
movie.visible = false;
} else {
gotoAndStop(1, "Menu");
};
}
public function act(_arg1:Event):void{
splash.submitform.submit.buttonMode = true;
splash.submitform.submit.addEventListener(MouseEvent.CLICK, submit);
}
function MD(_arg1:Event):void{
var i:*;
var k:uint;
var e = _arg1;
if (((rotatingMc) || (Final))){
return;
};
clickCounter = 0;
i = 0;
while (i < mcs.length) {
k = 0;
while (k < mcs[i].length) {
mcs[i][k].filters = [];
k = (k + 1);
};
i = (i + 1);
};
var m:MovieClip = (e.target.parent.parent as MovieClip);
if (!(((m is puzzleItem)) || ((m is puzzleItem3)))){
return;
};
if (m == null){
return;
};
if (!contains(m)){
return;
};
try {
setChildIndex(m, (numChildren - 1));
setChildIndex(adv, (numChildren - 1));
} catch(e:Error) {
};
activePeace = m;
m.startDrag(false, new Rectangle(0, 0, 550, 400));
if (activePeace.scaleX == 0.5){
var onFinishTween:Function = function ():void{
if (activePeace){
activePeace.filters = [new GlowFilter(0, 1, 5, 5, 1, BitmapFilterQuality.LOW, false, false)];
};
};
activePeace.filters = [new BlurFilter(1.25, 1.25, BitmapFilterQuality.HIGH)];
TweenLite.to(activePeace, 0.35, {scaleX:1, scaleY:1, ease:Back.easeInOut, onComplete:onFinishTween});
};
}
function MM(_arg1:Event){
var e = _arg1;
var onFinishTween:Function = function ():void{
if (activePeace){
activePeace.filters = [];
};
};
if (activePeace == null){
return;
};
}
function MU(_arg1:Event):void{
var _local2:*;
var _local3:uint;
if (activePeace == null){
return;
};
_arg1.target.parent.parent.stopDrag();
_local2 = 0;
while (_local2 < mcs.length) {
_local3 = 0;
while (_local3 < mcs[_local2].length) {
mcs[_local2][_local3].filters = [];
_local3++;
};
_local2++;
};
if (clickCounter < 6){
rotatingMc = _arg1.target.parent.parent;
rotateCounter = 0;
activePeace = null;
return;
};
magnet(activePeace);
}
public function makebtn(_arg1:MovieClip):void{
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.MOUSE_OVER, btnMO);
_arg1.addEventListener(MouseEvent.MOUSE_OUT, btnMOU);
_arg1.addEventListener(MouseEvent.CLICK, btnCL);
}
function makeBG():void{
var cl:Function;
var fn:Function;
cl = function (_arg1:Event):void{
if (bghint.currentFrame == 1){
bghint.play();
};
};
fn = function (_arg1:Event):void{
addChild(grid);
makePuzzle(gridSizeX, gridSizeY);
bghint.buttonMode = false;
};
if (contains(grid)){
removeChild(grid);
};
if (((!((bghint == null))) && (contains(bghint)))){
removeChild(bghint);
};
bghint = null;
var ClassReference:Class = (getDefinitionByName(("BG_" + bgid)) as Class);
bghint = (new (ClassReference) as MovieClip);
bghint.buttonMode = true;
bghint.addEventListener(MouseEvent.CLICK, cl);
bghint.addEventListener("DONE", fn);
addChild(bghint);
}
function doneFNC(_arg1:Event):void{
var _local2:*;
var _local3:uint;
bgid++;
_local2 = 0;
while (_local2 < mcs.length) {
_local3 = 0;
while (_local3 < mcs[_local2].length) {
removeChild(mcs[_local2][_local3]);
mcs[_local2][_local3] = null;
_local3++;
};
_local2++;
};
if (bgid == 15){
removeChild(grid);
gotoAndStop(1, "Splash");
return;
};
makeBG();
}
function EF(_arg1:Event){
if (removeFinal){
removeChild(Final);
Final = null;
doneFNC(null);
removeFinal = false;
return;
};
clickCounter++;
if (rotatingMc){
rotatingMc.filters = [new BlurFilter(((2 * Math.abs((3 - rotateCounter))) + 1), ((2 * Math.abs((3 - rotateCounter))) + 1), BitmapFilterQuality.LOW)];
rotateCounter++;
rotatingMc.rotation = (rotatingMc.rotation + 18);
if (rotateCounter == 5){
rotatingMc.filters = [];
magnet(rotatingMc);
chkDone();
rotatingMc = null;
};
};
}
public function btnCL(_arg1:Event):void{
switch (_arg1.target.name){
case "b1":
gotoAndStop(1, "Game");
break;
case "b2":
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=pocket-porn")), "_blank");
break;
case "b3":
navigateToURL(new URLRequest((((("http://tds.mutanky.com/?gameid=" + gameid) + "&version=") + version) + "&action=more-games")), "_blank");
break;
case "b4":
gotoAndStop(1, "Splash2");
break;
};
}
public function update(_arg1:ProgressEvent):void{
bar.gotoAndStop((1 + int((Math.floor(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal)) / 4))));
}
function makePuzzle(_arg1, _arg2:uint):void{
var _local5:uint;
var _local6:Object;
var _local7:MovieClip;
var _local3:Array = [0, 3, 4, 1, 2];
var _local4:uint;
while (_local4 < _arg2) {
_local5 = 0;
while (_local5 < _arg1) {
if (_local5 == 0){
puzzle[_local4] = [];
};
_local6 = {};
_local6.top = null;
_local6.bottom = null;
_local6.left = null;
_local6.right = null;
if (_local5 == 0){
_local6.left = 0;
};
if (_local5 == (_arg1 - 1)){
_local6.right = 0;
};
if (_local4 == 0){
_local6.top = 0;
};
if (_local4 == (_arg2 - 1)){
_local6.bottom = 0;
};
puzzle[_local4][_local5] = _local6;
_local5++;
};
_local4++;
};
_local4 = 0;
while (_local4 < _arg2) {
_local5 = 0;
while (_local5 < _arg1) {
if ((((_local5 == 0)) && (!((mcs[_local4] == null))))){
mcs[_local4][_local5] = null;
};
_local7 = new puzzleItem3();
_local7.pmask.x = (-(cellSizeX) / 2);
_local7.pmask.y = (-(cellSizeY) / 2);
_local7.bg.gotoAndStop(bgid);
_local7.bg.x = (-((_local5 * cellSizeX)) - (cellSizeX / 2));
if (bgid > 1){
_local7.bg.y = ((-((_local4 * cellSizeY)) - (cellSizeY / 2)) - 7);
} else {
_local7.bg.y = (-((_local4 * cellSizeY)) - (cellSizeY / 2));
};
addChild(_local7);
if ((((_local5 == 0)) && ((mcs[_local4] == null)))){
mcs[_local4] = [];
};
mcs[_local4][_local5] = _local7;
_local7.useHandCUrsor = true;
_local7.buttonMode = true;
_local7.addEventListener(MouseEvent.MOUSE_DOWN, MD);
_local7.addEventListener(MouseEvent.MOUSE_UP, MU);
_local7.x = ((Math.random() * 400) + 50);
_local7.y = ((Math.random() * 350) + 20);
_local7.rotation = (int((Math.random() * 3)) * 90);
_local7.goodk = _local5;
_local7.goodi = _local4;
_local7.scaleX = 0.5;
_local7.scaleY = 0.5;
_local5++;
};
_local4++;
};
}
public function achBtnCL(_arg1:Event):void{
movie.visible = true;
backBtn.visible = true;
movie.gotoAndStop(_arg1.target.name.substr(6));
btnBG.x = 50;
backBtn.x = 50;
}
}
}//package
Section 67
//item (item)
package {
import flash.display.*;
public class item extends MovieClip {
public var goodPlace:Boolean;// = false
public var pmask:MovieClip;
public var bg:MovieClip;
public var goodi;
public var goodk:uint;
}
}//package
Section 68
//menu_snd (menu_snd)
package {
import flash.media.*;
public dynamic class menu_snd extends Sound {
}
}//package
Section 69
//puzzleItem (puzzleItem)
package {
public dynamic class puzzleItem extends item {
}
}//package
Section 70
//puzzleItem2 (puzzleItem2)
package {
import flash.display.*;
public dynamic class puzzleItem2 extends MovieClip {
public var pmask:MovieClip;
public var bg:MovieClip;
}
}//package
Section 71
//puzzleItem3 (puzzleItem3)
package {
import flash.display.*;
public dynamic class puzzleItem3 extends MovieClip {
public var pmask:MovieClip;
public var bg:MovieClip;
}
}//package
Section 72
//set_snd (set_snd)
package {
import flash.media.*;
public dynamic class set_snd extends Sound {
}
}//package