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
//Elastic (gs.easing.Elastic)
package gs.easing {
public class Elastic {
private static const _2PI:Number = 6.28318530717959;
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((!(_arg5)) || ((_arg5 < Math.abs(_arg3))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2));
}
}
}//package gs.easing
Section 3
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 4
//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 5
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 6
//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 7
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 8
//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 9
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 10
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import flash.display.*;
import gs.*;
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 11
//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 12
//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 13
//TweenLite (gs.TweenLite)
package gs {
import flash.display.*;
import flash.events.*;
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.092;
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.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 _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 14
//_preloaderandintro_1 (SchoolBagGirl_fla._preloaderandintro_1)
package SchoolBagGirl_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class _preloaderandintro_1 extends MovieClip {
public var bar:MovieClip;
public var a:int;
public var mc:MovieClip;
public var didiButton:SimpleButton;
public function _preloaderandintro_1(){
addFrameScript(0, frame1, 88, frame89, 90, frame91, 264, frame265);
}
function frame265(){
stop();
(parent as MovieClip).gotoAndStop(5);
}
public function didiButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
function frame89(){
a = 1;
trace(a);
}
function frame91(){
a = 1;
}
function frame1(){
didiButton.addEventListener(MouseEvent.CLICK, didiButtonClicked);
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, myloadmovie);
this.loaderInfo.addEventListener(Event.COMPLETE, myover);
}
public function myover(_arg1:Event):void{
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, myloadmovie);
mc.play();
play();
}
public function myloadmovie(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:Number;
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
_local3 = Math.round((_local2 * 100));
trace(_local3);
bar.loading_animation.gotoAndStop(int(_local3));
}
}
}//package SchoolBagGirl_fla
Section 15
//b2_60 (SchoolBagGirl_fla.b2_60)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class b2_60 extends MovieClip {
public function b2_60(){
addFrameScript(2, frame3);
}
function frame3(){
gotoAndStop(1);
}
}
}//package SchoolBagGirl_fla
Section 16
//bar_15 (SchoolBagGirl_fla.bar_15)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class bar_15 extends MovieClip {
public var loading_animation:MovieClip;
}
}//package SchoolBagGirl_fla
Section 17
//didi_logo_53 (SchoolBagGirl_fla.didi_logo_53)
package SchoolBagGirl_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class didi_logo_53 extends MovieClip {
public var fButton:MovieClip;
public function didi_logo_53(){
addFrameScript(0, frame1);
}
function frame1(){
getChildAt(0).addEventListener(MouseEvent.CLICK, fButtonClicked);
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
}
}//package SchoolBagGirl_fla
Section 18
//didi_source_backfds_4 (SchoolBagGirl_fla.didi_source_backfds_4)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class didi_source_backfds_4 extends MovieClip {
public var fButton:SimpleButton;
}
}//package SchoolBagGirl_fla
Section 19
//didigames_first_6 (SchoolBagGirl_fla.didigames_first_6)
package SchoolBagGirl_fla {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class didigames_first_6 extends MovieClip {
public var fButton:MovieClip;
public function didigames_first_6(){
addFrameScript(0, frame1, 59, frame60);
}
function frame1(){
if ((parent as MovieClip).a == 1){
play();
} else {
stop();
};
}
function frame60(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 20
//Timeline_32 (SchoolBagGirl_fla.Timeline_32)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_32 extends MovieClip {
public var 新建符号_1:MovieClip;
public var play_btn:SimpleButton;
public function Timeline_32(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 21
//Timeline_37 (SchoolBagGirl_fla.Timeline_37)
package SchoolBagGirl_fla {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Timeline_37 extends MovieClip {
public function Timeline_37(){
addFrameScript(0, frame1);
}
function frame1(){
getChildAt(0).addEventListener(MouseEvent.CLICK, fButtonClicked);
}
public function fButtonClicked(_arg1:MouseEvent){
var urlRequest:URLRequest;
var e = _arg1;
try {
urlRequest = new URLRequest("http://www.didigames.com/");
navigateToURL(urlRequest, "_blank");
} catch(e:Error) {
};
}
}
}//package SchoolBagGirl_fla
Section 22
//Timeline_62 (SchoolBagGirl_fla.Timeline_62)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_62 extends MovieClip {
public var p4n:MovieClip;
public var p7n:MovieClip;
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p1n:MovieClip;
public var p7:MovieClip;
public var p8:MovieClip;
public var p4:MovieClip;
public var p6:MovieClip;
}
}//package SchoolBagGirl_fla
Section 23
//Timeline_81 (SchoolBagGirl_fla.Timeline_81)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_81 extends MovieClip {
public var b_2:SimpleButton;
public var b_4:SimpleButton;
public var b_5:SimpleButton;
public var b_3:SimpleButton;
public var b_1:SimpleButton;
}
}//package SchoolBagGirl_fla
Section 24
//Timeline_83 (SchoolBagGirl_fla.Timeline_83)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_83 extends MovieClip {
public function Timeline_83(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 25
//Timeline_86 (SchoolBagGirl_fla.Timeline_86)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_86 extends MovieClip {
public function Timeline_86(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 26
//Timeline_89 (SchoolBagGirl_fla.Timeline_89)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_89 extends MovieClip {
public function Timeline_89(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 27
//Timeline_92 (SchoolBagGirl_fla.Timeline_92)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_92 extends MovieClip {
public function Timeline_92(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 28
//Timeline_95 (SchoolBagGirl_fla.Timeline_95)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_95 extends MovieClip {
public function Timeline_95(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package SchoolBagGirl_fla
Section 29
//Timeline_97 (SchoolBagGirl_fla.Timeline_97)
package SchoolBagGirl_fla {
import flash.display.*;
public dynamic class Timeline_97 extends MovieClip {
public var main_mc:Item;
public var b_2:SimpleButton;
public var b_4:SimpleButton;
public var b_5:SimpleButton;
public var b_3:SimpleButton;
public var b_1:SimpleButton;
}
}//package SchoolBagGirl_fla
Section 30
//BgMusic (BgMusic)
package {
import flash.media.*;
public dynamic class BgMusic extends Sound {
}
}//package
Section 31
//Item (Item)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Item extends MovieClip {
public var p1c10:MovieClip;
public var p1c11:MovieClip;
public var p1c12:MovieClip;
public var p1c14:MovieClip;
public var p1c15:MovieClip;
public var p1c13:MovieClip;
public var p2c11:MovieClip;
public var p2c13:MovieClip;
public var p2c15:MovieClip;
public var p2c10:MovieClip;
public var p2c12:MovieClip;
public var p2c14:MovieClip;
public var p3c11:MovieClip;
public var p3c13:MovieClip;
public var p3c14:MovieClip;
public var p3c10:MovieClip;
public var p3c15:MovieClip;
public var p3c12:MovieClip;
public var p3c1:MovieClip;
public var p3c2:MovieClip;
public var p3c3:MovieClip;
public var p3c5:MovieClip;
public var p3c6:MovieClip;
public var p3c8:MovieClip;
public var p3c9:MovieClip;
public var p3c4:MovieClip;
public var p3c7:MovieClip;
public var p2c1:MovieClip;
public var p2c2:MovieClip;
public var p2c3:MovieClip;
public var p2c6:MovieClip;
public var p2c7:MovieClip;
public var p2c8:MovieClip;
public var p2c9:MovieClip;
public var p2c4:MovieClip;
public var p2c5:MovieClip;
public var p1c1:MovieClip;
public var p1c2:MovieClip;
public var p1c3:MovieClip;
public var p1c4:MovieClip;
public var p1c5:MovieClip;
public var p1c6:MovieClip;
public var p1c7:MovieClip;
public var p1c8:MovieClip;
public var p1c9:MovieClip;
public function Item(){
var _local1:uint;
super();
_local1 = 0;
while (_local1 < totalFrames) {
addFrameScript(_local1, refresh);
_local1++;
};
}
private function refresh():void{
var _local1:uint;
var _local2:MovieClip;
_local1 = 1;
while (_local1 < numChildren) {
_local2 = (getChildAt(_local1) as MovieClip);
_local2.gotoAndStop(uint(_local2.name.substr(3)));
_local2.buttonMode = true;
_local2.addEventListener(MouseEvent.MOUSE_DOWN, bagChange);
_local1++;
};
}
private function bagChange(_arg1:MouseEvent):void{
var _local2:uint;
var _local3:uint;
_local2 = uint(_arg1.currentTarget.name.substr(1, 1));
_local3 = uint(_arg1.currentTarget.name.substr(3));
MovieClip(root).save_arr[(_local2 + 5)] = (((_local3 - 1) % 3) + 1);
MovieClip(root).refresh();
}
}
}//package
Section 32
//Main (Main)
package {
import flash.display.*;
import gs.*;
import flash.events.*;
import gs.easing.*;
import flash.media.*;
public dynamic class Main extends MovieClip {
public var replay_btn:SimpleButton;
public var item1_mc:MovieClip;
public var show_btn:SimpleButton;
public var dh_mc:MovieClip;
public var _myChannel:SoundChannel;
public var item2_mc:MovieClip;
public var bg_btn:SimpleButton;
public var reset_btn:SimpleButton;
public var save_arr:Array;
public var _bgMusic:BgMusic;
public var star_mc:MovieClip;
public var bagKind:uint;// = 5
public var person_mc:MovieClip;
public var bg_mc:MovieClip;
public var volumeSize:uint;// = 1
public var musicSet:SoundTransform;
public function Main(){
bagKind = 5;
save_arr = [5, 1, 1, 1, 1, 1, 1, 1, 0];
volumeSize = 1;
_bgMusic = new BgMusic();
musicSet = new SoundTransform((volumeSize * 0.5), 0);
super();
addFrameScript(0, frame1);
addFrameScript(4, gameBegin);
addFrameScript(5, gameMain);
}
private function gameShow(_arg1:MouseEvent):void{
replay_btn.visible = true;
reset_btn.visible = false;
show_btn.visible = false;
bg_btn.visible = true;
star_mc.gotoAndStop(1);
TweenLite.to(item1_mc, 0.5, {x:(item1_mc.initX - 350), y:(item1_mc.initY - 150), ease:Back.easeOut});
TweenLite.to(item2_mc, 0.5, {x:(item2_mc.initX + 200), y:(item2_mc.initY - 150), ease:Back.easeOut});
}
private function item2Change(_arg1:MouseEvent):void{
var _local2:uint;
_local2 = uint(_arg1.currentTarget.name.substr(2));
if (person_mc[("p" + _local2)].currentFrame == person_mc[("p" + _local2)].totalFrames){
save_arr[_local2] = 1;
} else {
var _local3 = save_arr;
var _local4 = _local2;
var _local5 = (_local3[_local4] + 1);
_local3[_local4] = _local5;
};
refresh();
}
function frame1(){
stop();
}
private function bgChange(_arg1:MouseEvent):void{
bg_mc.nextFrame();
}
private function gameReset(_arg1:MouseEvent):void{
save_arr = [5, 1, 1, 1, 1, 1, 1, 1, 0];
bagKind = 5;
refreshItem();
}
private function gameReplay(_arg1:MouseEvent=null):void{
replay_btn.visible = false;
reset_btn.visible = true;
show_btn.visible = true;
bg_btn.visible = false;
star_mc.gotoAndStop(2);
bg_mc.gotoAndStop(1);
item1_mc.x = (item1_mc.initX - 350);
item1_mc.y = (item1_mc.initY - 150);
item2_mc.x = (item2_mc.initX + 200);
item2_mc.y = (item2_mc.initY - 150);
TweenLite.to(item1_mc, 0.5, {x:item1_mc.initX, y:item1_mc.initY, ease:Back.easeOut});
TweenLite.to(item2_mc, 0.5, {x:item2_mc.initX, y:item2_mc.initY, ease:Back.easeOut});
}
private function refreshItem():void{
item1_mc.main_mc.gotoAndStop(bagKind);
Sway.SwayMc(item1_mc.main_mc, 0.7, 1);
refresh();
}
private function gamePlay(_arg1:MouseEvent):void{
gotoAndStop(6);
}
private function item1Change(_arg1:MouseEvent):void{
var _local2:uint;
_local2 = uint(_arg1.currentTarget.name.substr(2));
if (_local2 != bagKind){
bagKind = _local2;
save_arr[0] = bagKind;
save_arr[6] = 1;
save_arr[7] = 1;
save_arr[8] = 0;
refreshItem();
};
}
private function gameMain():void{
var _local1:uint;
_local1 = 1;
while (_local1 <= 5) {
item1_mc[("b_" + _local1)].addEventListener(MouseEvent.MOUSE_DOWN, item1Change);
item2_mc[("b_" + _local1)].addEventListener(MouseEvent.MOUSE_DOWN, item2Change);
_local1++;
};
item1_mc.initX = item1_mc.x;
item1_mc.initY = item1_mc.y;
item2_mc.initX = item2_mc.x;
item2_mc.initY = item2_mc.y;
gameReplay();
refreshItem();
replay_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameReplay);
reset_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameReset);
show_btn.addEventListener(MouseEvent.MOUSE_DOWN, gameShow);
bg_btn.addEventListener(MouseEvent.MOUSE_DOWN, bgChange);
}
private function gameBegin():void{
stop();
dh_mc.play_btn.addEventListener(MouseEvent.MOUSE_DOWN, gamePlay);
}
public function refresh():void{
var _local1:uint;
_local1 = 1;
while (_local1 <= 5) {
person_mc[("p" + _local1)].gotoAndStop(save_arr[_local1]);
if (person_mc[(("p" + _local1) + "n")]){
person_mc[(("p" + _local1) + "n")].gotoAndStop(person_mc[("p" + _local1)].currentFrame);
};
_local1++;
};
person_mc.p6.gotoAndStop((((save_arr[0] - 1) * 3) + save_arr[6]));
person_mc.p7.gotoAndStop((((save_arr[0] - 1) * 3) + save_arr[7]));
person_mc.p7n.gotoAndStop((((save_arr[0] - 1) * 3) + save_arr[7]));
if (save_arr[8]){
person_mc.p8.gotoAndStop((((save_arr[0] - 1) * 3) + save_arr[8]));
} else {
person_mc.p8.gotoAndStop(person_mc.p8.totalFrames);
};
}
}
}//package
Section 33
//MusicBtn (MusicBtn)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class MusicBtn extends MovieClip {
public function MusicBtn(){
if (!MovieClip(root)._myChannel){
MovieClip(root)._myChannel = MovieClip(root)._bgMusic.play(0, 9999);
MovieClip(root)._myChannel.soundTransform = MovieClip(root).musicSet;
};
gotoAndStop((2 - MovieClip(root).volumeSize));
addEventListener(MouseEvent.MOUSE_DOWN, musicChange);
}
private function musicChange(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
MovieClip(root).volumeSize = (1 - MovieClip(root).volumeSize);
gotoAndStop((3 - currentFrame));
MovieClip(root).musicSet = new SoundTransform((MovieClip(root).volumeSize * 0.5), 0);
MovieClip(root)._myChannel.soundTransform = MovieClip(root).musicSet;
}
}
}//package
Section 34
//Sway (Sway)
package {
import flash.display.*;
import gs.*;
import gs.easing.*;
public class Sway {
public static function SwayMc(_arg1:DisplayObject, _arg2:Number, _arg3:Number):void{
_arg1.scaleX = (_arg1.scaleY = _arg3);
TweenLite.from(_arg1, 1, {scaleX:_arg2, scaleY:_arg2, ease:Elastic.easeOut});
}
}
}//package