Section 1
//Bounce (gs.easing.Bounce)
package gs.easing {
public class Bounce {
public static function easeOut(_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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 - easeOut((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeIn((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOut(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _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 _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
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 killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 3
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a: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"];
}
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--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_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);
}
}
}//package gs.plugins
Section 4
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
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);
}
}
}//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 _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
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"];
}
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;
}
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{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//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 round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
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 _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
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);
}
}
}//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 _st:SoundTransform;
protected var _target:Object;
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 set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
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);
}
}
}//package gs.plugins
Section 10
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
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 delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started: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 vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.09;
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){
var _local4:int;
super();
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));
_local4 = ((((_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 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 _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_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 get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && ((this.target is TweenLite)))){
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 _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = 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 _local2:Dictionary;
var _local3:Object;
_local2 = 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
//cbvdsfdsf_7 (sort_fla.cbvdsfdsf_7)
package sort_fla {
import flash.display.*;
public dynamic class cbvdsfdsf_7 extends MovieClip {
public var masker:MovieClip;
}
}//package sort_fla
Section 14
//container_40 (sort_fla.container_40)
package sort_fla {
import flash.display.*;
public dynamic class container_40 extends MovieClip {
public var c30:a30;
public var c31:a31;
public var c33:a33;
public var c35:a35;
public var c36:a36;
public var c37:a37;
public var c38:a38;
public var c39:a39;
public var c34:a34;
public var c41:a41;
public var c42:a42;
public var c43:a43;
public var c44:a44;
public var c45:a45;
public var c46:a46;
public var c40:a40;
public var c48:a48;
public var c0:a0;
public var c1:a1;
public var c3:a3;
public var c4:a4;
public var c5:a5;
public var c6:a6;
public var c7:a7;
public var c47:a47;
public var c2:a2;
public var c32:a32;
public var c8:a8;
public var c9:a9;
public var c10:a10;
public var c11:a11;
public var c13:a13;
public var c18:a18;
public var c15:a15;
public var c16:a16;
public var c14:a14;
public var c19:a19;
public var c20:a20;
public var c21:a21;
public var c22:a22;
public var c23:a23;
public var c24:a24;
public var c12:a12;
public var c26:a26;
public var c27:a27;
public var c28:a28;
public var c17:a17;
public var c25:a25;
public var c29:a29;
}
}//package sort_fla
Section 15
//cvbcvbcvbvcy_78_1_20 (sort_fla.cvbcvbcvbvcy_78_1_20)
package sort_fla {
import flash.display.*;
public dynamic class cvbcvbcvbvcy_78_1_20 extends MovieClip {
public function cvbcvbcvbvcy_78_1_20(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
}
}
}//package sort_fla
Section 16
//MainTimeline (sort_fla.MainTimeline)
package sort_fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import gs.easing.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var myarray:Array;
public var title:MovieClip;
public var b:Array;
public var c:Array;
public var a:Array;
public var i:Number;
public var preloader:MovieClip;
public var r:Number;
public var container:MovieClip;
public var contestMenu:ContextMenu;
public var percentage:Number;
public var playagain:MovieClip;
public var logo_mc:MovieClip;
public var BitsLoaded:TextField;
public var play_btn:SimpleButton;
public var imagebg:MovieClip;
public var sndon:SimpleButton;
public var bullet:backscore;
public var nam:MovieClip;
public var count:Number;
public var movie:MovieClip;
public var menuItem1:ContextMenuItem;
public var sndoff:SimpleButton;
public var play1:MovieClip;
public var customContextMenu:ContextMenu;
public var youfinished:MovieClip;
public var bulletChannel:SoundChannel;
public var contextmenuItem:ContextMenuItem;
public var no:Number;
public var box:Class;
public var temp:Number;
public var objec:Array;
public var ball:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function roll211(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.5, {scaleX:1, scaleY:1, ease:Bounce.easeOut});
}
public function two(_arg1:MouseEvent):void{
var _local2:*;
_local2 = _arg1.currentTarget;
_local2.startDrag();
}
function frame2(){
stop();
if (bulletChannel){
bulletChannel.stop();
};
play1.buttonMode = true;
play1.addEventListener(MouseEvent.CLICK, plays);
play1.addEventListener(MouseEvent.ROLL_OVER, roll1);
play1.addEventListener(MouseEvent.ROLL_OUT, roll2);
switch (this.loaderInfo.parameters.lang){
case "fr":
Globe.temp = 6;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "de":
Globe.temp = 5;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "it":
Globe.temp = 4;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "pl":
Globe.temp = 10;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "ru":
Globe.temp = 3;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "tr":
Globe.temp = 7;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "sv":
Globe.temp = 8;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "pt-br":
Globe.temp = 11;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "es":
Globe.temp = 9;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
case "nl":
Globe.temp = 2;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
default:
Globe.temp = 1;
play1.gotoAndStop(Globe.temp);
title.gotoAndStop(Globe.temp);
break;
};
menuItem1 = new ContextMenuItem("http://www.123peppy.com");
menuItem1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, context2Down);
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
customContextMenu.customItems.push(menuItem1);
this.contextMenu = customContextMenu;
play1.addEventListener(MouseEvent.CLICK, five);
}
public function one(_arg1:MouseEvent):void{
var _local2:Object;
play_btn.mouseEnabled = false;
box = (getDefinitionByName(("a" + c[count])) as Class);
_local2 = new box();
_local2.name = ("boxes" + c[count]);
addChild(DisplayObject(_local2));
_local2.x = (c[count] * 100);
_local2.y = (c[count] * 100);
count++;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, two);
_local2.addEventListener(MouseEvent.MOUSE_UP, three);
_local2.x = 500;
_local2.y = 400;
}
function frame4(){
stop();
bulletChannel.stop();
playagain.addEventListener(MouseEvent.CLICK, fun);
playagain.gotoAndStop(Globe.temp);
playagain.buttonMode = true;
youfinished.gotoAndStop(Globe.temp);
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
} else {
logo_mc.visible = true;
logo_mc.addEventListener(MouseEvent.CLICK, link2);
};
playagain.addEventListener(MouseEvent.ROLL_OVER, rollover);
playagain.addEventListener(MouseEvent.ROLL_OUT, rollout);
logo_mc.buttonMode = true;
logo_mc.addEventListener(MouseEvent.ROLL_OVER, roll111);
logo_mc.addEventListener(MouseEvent.ROLL_OUT, roll211);
playagain.addEventListener(MouseEvent.ROLL_OVER, roll111);
playagain.addEventListener(MouseEvent.ROLL_OUT, roll211);
}
function frame1(){
stop();
contestMenu = new ContextMenu();
contestMenu.hideBuiltInItems();
contextmenuItem = new ContextMenuItem("www.123peppy.com");
contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site);
contestMenu.customItems.push(contextmenuItem);
this.contextMenu = contestMenu;
percentage = 0;
stage.addEventListener(Event.ENTER_FRAME, BeeMoving);
}
function frame3(){
MochiBot.track(this, "16a44333");
stop();
container.alpha = 0.3;
a = new Array();
b = new Array();
c = new Array();
objec = new Array();
myarray = new Array();
count = 0;
bullet = new backscore();
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.addEventListener(MouseEvent.CLICK, sndop);
sndon.addEventListener(MouseEvent.CLICK, sndst);
play_btn.addEventListener(MouseEvent.CLICK, one);
i = 0;
while (i < container.numChildren) {
objec.push(container.getChildAt(i));
i++;
};
i = 0;
while (i < objec.length) {
temp = objec[i].name.slice(1);
myarray[temp] = objec[i];
i++;
};
if (loaderInfo.url.match("123peppy")){
logo_mc.visible = false;
} else {
logo_mc.visible = true;
logo_mc.addEventListener(MouseEvent.CLICK, link1);
};
main();
logo_mc.buttonMode = true;
logo_mc.addEventListener(MouseEvent.ROLL_OVER, roll11);
logo_mc.addEventListener(MouseEvent.ROLL_OUT, roll21);
}
public function roll111(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.5, {scaleX:1.2, scaleY:1.2, ease:Bounce.easeOut});
}
public function five(_arg1:MouseEvent){
gotoAndStop(3);
}
public function rollover(_arg1:MouseEvent):void{
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * 1.1);
_arg1.currentTarget.scaleY = (_arg1.currentTarget.scaleY * 1.1);
}
public function sndop(_arg1:MouseEvent):void{
bulletChannel.stop();
sndon.visible = true;
sndoff.visible = false;
}
public function BeeMoving(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = (mouseX - ball.x);
_local3 = (mouseY - ball.y);
ball.x = (ball.x + (_local2 * 0.2));
ball.y = (ball.y + (_local3 * 0.2));
_local4 = loaderInfo.bytesLoaded;
_local5 = loaderInfo.bytesTotal;
percentage = Math.round(((_local4 / _local5) * 100));
BitsLoaded.text = (((_local4 + "kbs /") + _local5) + "kbs");
if (_local4 == _local5){
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
gotoAndStop(2);
};
}
public function roll2(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:0.8, scaleY:0.8, ease:Bounce.easeOut});
}
public function roll1(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.6, {scaleX:0.9, scaleY:0.9, ease:Bounce.easeOut});
}
public function roll11(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.5, {scaleX:1.2, scaleY:1.2, ease:Bounce.easeOut});
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function link1(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function link2(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function roll21(_arg1:MouseEvent):void{
TweenLite.to(_arg1.currentTarget, 0.5, {scaleX:1, scaleY:1, ease:Bounce.easeOut});
}
public function fun(_arg1:MouseEvent){
gotoAndStop(2);
}
public function sndst(_arg1:MouseEvent):void{
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function three(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = _arg1.currentTarget;
no = _local2.name.substr(5);
trace(no);
if (_local2.hitTestObject(myarray[no])){
_local2.x = (myarray[no].x + container.x);
_local2.y = (myarray[no].y + container.y);
_local2.mouseEnabled = false;
play_btn.mouseEnabled = true;
_local2.removeEventListener(MouseEvent.MOUSE_DOWN, two);
_local2.removeEventListener(MouseEvent.MOUSE_UP, three);
_local3 = c[48];
if (no == _local3){
trace("next");
nextFrame();
};
};
stopDrag();
}
public function context2Down(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.123peppy.com"), "_blank");
}
public function rollout(_arg1:MouseEvent):void{
_arg1.currentTarget.scaleY = (_arg1.currentTarget.scaleY * 0.9);
_arg1.currentTarget.scaleX = (_arg1.currentTarget.scaleX * 0.9);
}
public function main(){
i = 0;
while (i < 49) {
a[i] = i;
i++;
};
i = 0;
while (i < 49) {
r = a.length;
b[i] = Math.floor((Math.random() * r));
c[i] = a.splice(b[i], 1);
i++;
};
}
public function plays(_arg1:MouseEvent):void{
gotoAndStop(3);
}
}
}//package sort_fla
Section 17
//peppydfgfsds_19 (sort_fla.peppydfgfsds_19)
package sort_fla {
import flash.display.*;
public dynamic class peppydfgfsds_19 extends MovieClip {
public function peppydfgfsds_19(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
}
}
}//package sort_fla
Section 18
//PlayAgain_149 (sort_fla.PlayAgain_149)
package sort_fla {
import flash.display.*;
public dynamic class PlayAgain_149 extends MovieClip {
public function PlayAgain_149(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package sort_fla
Section 19
//ply_37 (sort_fla.ply_37)
package sort_fla {
import flash.display.*;
public dynamic class ply_37 extends MovieClip {
public function ply_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.buttonMode = true;
}
}
}//package sort_fla
Section 20
//sort_25 (sort_fla.sort_25)
package sort_fla {
import flash.display.*;
public dynamic class sort_25 extends MovieClip {
public function sort_25(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package sort_fla
Section 21
//youfinished_148 (sort_fla.youfinished_148)
package sort_fla {
import flash.display.*;
public dynamic class youfinished_148 extends MovieClip {
public function youfinished_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package sort_fla
Section 22
//a0 (a0)
package {
import flash.display.*;
public dynamic class a0 extends MovieClip {
public var d0:MovieClip;
}
}//package
Section 23
//a1 (a1)
package {
import flash.display.*;
public dynamic class a1 extends MovieClip {
public var d1:MovieClip;
}
}//package
Section 24
//a10 (a10)
package {
import flash.display.*;
public dynamic class a10 extends MovieClip {
public var d10:MovieClip;
}
}//package
Section 25
//a11 (a11)
package {
import flash.display.*;
public dynamic class a11 extends MovieClip {
public var d11:MovieClip;
}
}//package
Section 26
//a12 (a12)
package {
import flash.display.*;
public dynamic class a12 extends MovieClip {
public var d12:MovieClip;
}
}//package
Section 27
//a13 (a13)
package {
import flash.display.*;
public dynamic class a13 extends MovieClip {
public var d13:MovieClip;
}
}//package
Section 28
//a14 (a14)
package {
import flash.display.*;
public dynamic class a14 extends MovieClip {
public var d14:MovieClip;
}
}//package
Section 29
//a15 (a15)
package {
import flash.display.*;
public dynamic class a15 extends MovieClip {
public var d15:MovieClip;
}
}//package
Section 30
//a16 (a16)
package {
import flash.display.*;
public dynamic class a16 extends MovieClip {
public var d16:MovieClip;
}
}//package
Section 31
//a17 (a17)
package {
import flash.display.*;
public dynamic class a17 extends MovieClip {
public var d17:MovieClip;
}
}//package
Section 32
//a18 (a18)
package {
import flash.display.*;
public dynamic class a18 extends MovieClip {
public var d18:MovieClip;
}
}//package
Section 33
//a19 (a19)
package {
import flash.display.*;
public dynamic class a19 extends MovieClip {
public var d19:MovieClip;
}
}//package
Section 34
//a2 (a2)
package {
import flash.display.*;
public dynamic class a2 extends MovieClip {
public var d2:MovieClip;
}
}//package
Section 35
//a20 (a20)
package {
import flash.display.*;
public dynamic class a20 extends MovieClip {
public var d20:MovieClip;
}
}//package
Section 36
//a21 (a21)
package {
import flash.display.*;
public dynamic class a21 extends MovieClip {
public var d21:MovieClip;
}
}//package
Section 37
//a22 (a22)
package {
import flash.display.*;
public dynamic class a22 extends MovieClip {
public var d22:MovieClip;
}
}//package
Section 38
//a23 (a23)
package {
import flash.display.*;
public dynamic class a23 extends MovieClip {
public var d23:MovieClip;
}
}//package
Section 39
//a24 (a24)
package {
import flash.display.*;
public dynamic class a24 extends MovieClip {
public var d24:MovieClip;
}
}//package
Section 40
//a25 (a25)
package {
import flash.display.*;
public dynamic class a25 extends MovieClip {
public var d25:MovieClip;
}
}//package
Section 41
//a26 (a26)
package {
import flash.display.*;
public dynamic class a26 extends MovieClip {
public var d26:MovieClip;
}
}//package
Section 42
//a27 (a27)
package {
import flash.display.*;
public dynamic class a27 extends MovieClip {
public var d27:MovieClip;
}
}//package
Section 43
//a28 (a28)
package {
import flash.display.*;
public dynamic class a28 extends MovieClip {
public var d28:MovieClip;
}
}//package
Section 44
//a29 (a29)
package {
import flash.display.*;
public dynamic class a29 extends MovieClip {
public var d29:MovieClip;
}
}//package
Section 45
//a3 (a3)
package {
import flash.display.*;
public dynamic class a3 extends MovieClip {
public var d3:MovieClip;
}
}//package
Section 46
//a30 (a30)
package {
import flash.display.*;
public dynamic class a30 extends MovieClip {
public var d30:MovieClip;
}
}//package
Section 47
//a31 (a31)
package {
import flash.display.*;
public dynamic class a31 extends MovieClip {
public var d31:MovieClip;
}
}//package
Section 48
//a32 (a32)
package {
import flash.display.*;
public dynamic class a32 extends MovieClip {
public var d32:MovieClip;
}
}//package
Section 49
//a33 (a33)
package {
import flash.display.*;
public dynamic class a33 extends MovieClip {
public var d33:MovieClip;
}
}//package
Section 50
//a34 (a34)
package {
import flash.display.*;
public dynamic class a34 extends MovieClip {
public var d34:MovieClip;
}
}//package
Section 51
//a35 (a35)
package {
import flash.display.*;
public dynamic class a35 extends MovieClip {
public var d35:MovieClip;
}
}//package
Section 52
//a36 (a36)
package {
import flash.display.*;
public dynamic class a36 extends MovieClip {
public var d36:MovieClip;
}
}//package
Section 53
//a37 (a37)
package {
import flash.display.*;
public dynamic class a37 extends MovieClip {
public var d37:MovieClip;
}
}//package
Section 54
//a38 (a38)
package {
import flash.display.*;
public dynamic class a38 extends MovieClip {
public var d38:MovieClip;
}
}//package
Section 55
//a39 (a39)
package {
import flash.display.*;
public dynamic class a39 extends MovieClip {
public var d39:MovieClip;
}
}//package
Section 56
//a4 (a4)
package {
import flash.display.*;
public dynamic class a4 extends MovieClip {
public var d4:MovieClip;
}
}//package
Section 57
//a40 (a40)
package {
import flash.display.*;
public dynamic class a40 extends MovieClip {
public var d40:MovieClip;
}
}//package
Section 58
//a41 (a41)
package {
import flash.display.*;
public dynamic class a41 extends MovieClip {
public var d41:MovieClip;
}
}//package
Section 59
//a42 (a42)
package {
import flash.display.*;
public dynamic class a42 extends MovieClip {
public var d42:MovieClip;
}
}//package
Section 60
//a43 (a43)
package {
import flash.display.*;
public dynamic class a43 extends MovieClip {
public var d43:MovieClip;
}
}//package
Section 61
//a44 (a44)
package {
import flash.display.*;
public dynamic class a44 extends MovieClip {
public var d44:MovieClip;
}
}//package
Section 62
//a45 (a45)
package {
import flash.display.*;
public dynamic class a45 extends MovieClip {
public var d45:MovieClip;
}
}//package
Section 63
//a46 (a46)
package {
import flash.display.*;
public dynamic class a46 extends MovieClip {
public var d46:MovieClip;
}
}//package
Section 64
//a47 (a47)
package {
import flash.display.*;
public dynamic class a47 extends MovieClip {
public var d47:MovieClip;
}
}//package
Section 65
//a48 (a48)
package {
import flash.display.*;
public dynamic class a48 extends MovieClip {
public var d48:MovieClip;
}
}//package
Section 66
//a5 (a5)
package {
import flash.display.*;
public dynamic class a5 extends MovieClip {
public var d5:MovieClip;
}
}//package
Section 67
//a6 (a6)
package {
import flash.display.*;
public dynamic class a6 extends MovieClip {
public var d6:MovieClip;
}
}//package
Section 68
//a7 (a7)
package {
import flash.display.*;
public dynamic class a7 extends MovieClip {
public var d7:MovieClip;
}
}//package
Section 69
//a8 (a8)
package {
import flash.display.*;
public dynamic class a8 extends MovieClip {
public var d8:MovieClip;
}
}//package
Section 70
//a9 (a9)
package {
import flash.display.*;
public dynamic class a9 extends MovieClip {
public var d9:MovieClip;
}
}//package
Section 71
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 72
//Globe (Globe)
package {
public class Globe {
public static var temp:Number = 0;
}
}//package
Section 73
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package